cannam@167: #! /bin/sh cannam@167: # Guess values for system-dependent variables and create Makefiles. cannam@167: # Generated by GNU Autoconf 2.69 for fftw 3.3.8. cannam@167: # cannam@167: # Report bugs to . cannam@167: # cannam@167: # cannam@167: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. cannam@167: # cannam@167: # cannam@167: # This configure script is free software; the Free Software Foundation cannam@167: # gives unlimited permission to copy, distribute and modify it. cannam@167: ## -------------------- ## cannam@167: ## M4sh Initialization. ## cannam@167: ## -------------------- ## cannam@167: cannam@167: # Be more Bourne compatible cannam@167: DUALCASE=1; export DUALCASE # for MKS sh cannam@167: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : cannam@167: emulate sh cannam@167: NULLCMD=: cannam@167: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which cannam@167: # is contrary to our usage. Disable this feature. cannam@167: alias -g '${1+"$@"}'='"$@"' cannam@167: setopt NO_GLOB_SUBST cannam@167: else cannam@167: case `(set -o) 2>/dev/null` in #( cannam@167: *posix*) : cannam@167: set -o posix ;; #( cannam@167: *) : cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: cannam@167: cannam@167: as_nl=' cannam@167: ' cannam@167: export as_nl cannam@167: # Printing a long string crashes Solaris 7 /usr/bin/printf. cannam@167: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' cannam@167: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo cannam@167: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo cannam@167: # Prefer a ksh shell builtin over an external printf program on Solaris, cannam@167: # but without wasting forks for bash or zsh. cannam@167: if test -z "$BASH_VERSION$ZSH_VERSION" \ cannam@167: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then cannam@167: as_echo='print -r --' cannam@167: as_echo_n='print -rn --' cannam@167: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then cannam@167: as_echo='printf %s\n' cannam@167: as_echo_n='printf %s' cannam@167: else cannam@167: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then cannam@167: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' cannam@167: as_echo_n='/usr/ucb/echo -n' cannam@167: else cannam@167: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' cannam@167: as_echo_n_body='eval cannam@167: arg=$1; cannam@167: case $arg in #( cannam@167: *"$as_nl"*) cannam@167: expr "X$arg" : "X\\(.*\\)$as_nl"; cannam@167: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; cannam@167: esac; cannam@167: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" cannam@167: ' cannam@167: export as_echo_n_body cannam@167: as_echo_n='sh -c $as_echo_n_body as_echo' cannam@167: fi cannam@167: export as_echo_body cannam@167: as_echo='sh -c $as_echo_body as_echo' cannam@167: fi cannam@167: cannam@167: # The user is always right. cannam@167: if test "${PATH_SEPARATOR+set}" != set; then cannam@167: PATH_SEPARATOR=: cannam@167: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { cannam@167: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || cannam@167: PATH_SEPARATOR=';' cannam@167: } cannam@167: fi cannam@167: cannam@167: cannam@167: # IFS cannam@167: # We need space, tab and new line, in precisely that order. Quoting is cannam@167: # there to prevent editors from complaining about space-tab. cannam@167: # (If _AS_PATH_WALK were called with IFS unset, it would disable word cannam@167: # splitting by setting IFS to empty value.) cannam@167: IFS=" "" $as_nl" cannam@167: cannam@167: # Find who we are. Look in the path if we contain no directory separator. cannam@167: as_myself= cannam@167: case $0 in #(( cannam@167: *[\\/]* ) as_myself=$0 ;; cannam@167: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: ;; cannam@167: esac cannam@167: # We did not find ourselves, most probably we were run as `sh COMMAND' cannam@167: # in which case we are not to be found in the path. cannam@167: if test "x$as_myself" = x; then cannam@167: as_myself=$0 cannam@167: fi cannam@167: if test ! -f "$as_myself"; then cannam@167: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 cannam@167: exit 1 cannam@167: fi cannam@167: cannam@167: # Unset variables that we do not need and which cause bugs (e.g. in cannam@167: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" cannam@167: # suppresses any "Segmentation fault" message there. '((' could cannam@167: # trigger a bug in pdksh 5.2.14. cannam@167: for as_var in BASH_ENV ENV MAIL MAILPATH cannam@167: do eval test x\${$as_var+set} = xset \ cannam@167: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : cannam@167: done cannam@167: PS1='$ ' cannam@167: PS2='> ' cannam@167: PS4='+ ' cannam@167: cannam@167: # NLS nuisances. cannam@167: LC_ALL=C cannam@167: export LC_ALL cannam@167: LANGUAGE=C cannam@167: export LANGUAGE cannam@167: cannam@167: # CDPATH. cannam@167: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH cannam@167: cannam@167: # Use a proper internal environment variable to ensure we don't fall cannam@167: # into an infinite loop, continuously re-executing ourselves. cannam@167: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then cannam@167: _as_can_reexec=no; export _as_can_reexec; cannam@167: # We cannot yet assume a decent shell, so we have to provide a cannam@167: # neutralization value for shells without unset; and this also cannam@167: # works around shells that cannot unset nonexistent variables. cannam@167: # Preserve -v and -x to the replacement shell. cannam@167: BASH_ENV=/dev/null cannam@167: ENV=/dev/null cannam@167: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV cannam@167: case $- in # (((( cannam@167: *v*x* | *x*v* ) as_opts=-vx ;; cannam@167: *v* ) as_opts=-v ;; cannam@167: *x* ) as_opts=-x ;; cannam@167: * ) as_opts= ;; cannam@167: esac cannam@167: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} cannam@167: # Admittedly, this is quite paranoid, since all the known shells bail cannam@167: # out after a failed `exec'. cannam@167: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 cannam@167: as_fn_exit 255 cannam@167: fi cannam@167: # We don't want this to propagate to other subprocesses. cannam@167: { _as_can_reexec=; unset _as_can_reexec;} cannam@167: if test "x$CONFIG_SHELL" = x; then cannam@167: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : cannam@167: emulate sh cannam@167: NULLCMD=: cannam@167: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which cannam@167: # is contrary to our usage. Disable this feature. cannam@167: alias -g '\${1+\"\$@\"}'='\"\$@\"' cannam@167: setopt NO_GLOB_SUBST cannam@167: else cannam@167: case \`(set -o) 2>/dev/null\` in #( cannam@167: *posix*) : cannam@167: set -o posix ;; #( cannam@167: *) : cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: " cannam@167: as_required="as_fn_return () { (exit \$1); } cannam@167: as_fn_success () { as_fn_return 0; } cannam@167: as_fn_failure () { as_fn_return 1; } cannam@167: as_fn_ret_success () { return 0; } cannam@167: as_fn_ret_failure () { return 1; } cannam@167: cannam@167: exitcode=0 cannam@167: as_fn_success || { exitcode=1; echo as_fn_success failed.; } cannam@167: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } cannam@167: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } cannam@167: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } cannam@167: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : cannam@167: cannam@167: else cannam@167: exitcode=1; echo positional parameters were not saved. cannam@167: fi cannam@167: test x\$exitcode = x0 || exit 1 cannam@167: test -x / || exit 1" cannam@167: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO cannam@167: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO cannam@167: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && cannam@167: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 cannam@167: cannam@167: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( cannam@167: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' cannam@167: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO cannam@167: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO cannam@167: PATH=/empty FPATH=/empty; export PATH FPATH cannam@167: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ cannam@167: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 cannam@167: test \$(( 1 + 1 )) = 2 || exit 1" cannam@167: if (eval "$as_required") 2>/dev/null; then : cannam@167: as_have_required=yes cannam@167: else cannam@167: as_have_required=no cannam@167: fi cannam@167: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : cannam@167: cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: as_found=false cannam@167: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: as_found=: cannam@167: case $as_dir in #( cannam@167: /*) cannam@167: for as_base in sh bash ksh sh5; do cannam@167: # Try only shells that exist, to save several forks. cannam@167: as_shell=$as_dir/$as_base cannam@167: if { test -f "$as_shell" || test -f "$as_shell.exe"; } && cannam@167: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : cannam@167: CONFIG_SHELL=$as_shell as_have_required=yes cannam@167: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : cannam@167: break 2 cannam@167: fi cannam@167: fi cannam@167: done;; cannam@167: esac cannam@167: as_found=false cannam@167: done cannam@167: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && cannam@167: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : cannam@167: CONFIG_SHELL=$SHELL as_have_required=yes cannam@167: fi; } cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: cannam@167: if test "x$CONFIG_SHELL" != x; then : cannam@167: export CONFIG_SHELL cannam@167: # We cannot yet assume a decent shell, so we have to provide a cannam@167: # neutralization value for shells without unset; and this also cannam@167: # works around shells that cannot unset nonexistent variables. cannam@167: # Preserve -v and -x to the replacement shell. cannam@167: BASH_ENV=/dev/null cannam@167: ENV=/dev/null cannam@167: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV cannam@167: case $- in # (((( cannam@167: *v*x* | *x*v* ) as_opts=-vx ;; cannam@167: *v* ) as_opts=-v ;; cannam@167: *x* ) as_opts=-x ;; cannam@167: * ) as_opts= ;; cannam@167: esac cannam@167: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} cannam@167: # Admittedly, this is quite paranoid, since all the known shells bail cannam@167: # out after a failed `exec'. cannam@167: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 cannam@167: exit 255 cannam@167: fi cannam@167: cannam@167: if test x$as_have_required = xno; then : cannam@167: $as_echo "$0: This script requires a shell more modern than all" cannam@167: $as_echo "$0: the shells that I found on your system." cannam@167: if test x${ZSH_VERSION+set} = xset ; then cannam@167: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" cannam@167: $as_echo "$0: be upgraded to zsh 4.3.4 or later." cannam@167: else cannam@167: $as_echo "$0: Please tell bug-autoconf@gnu.org and fftw@fftw.org cannam@167: $0: about your system, including any error possibly output cannam@167: $0: before this message. Then install a modern shell, or cannam@167: $0: manually run the script under such a shell if you do cannam@167: $0: have one." cannam@167: fi cannam@167: exit 1 cannam@167: fi cannam@167: fi cannam@167: fi cannam@167: SHELL=${CONFIG_SHELL-/bin/sh} cannam@167: export SHELL cannam@167: # Unset more variables known to interfere with behavior of common tools. cannam@167: CLICOLOR_FORCE= GREP_OPTIONS= cannam@167: unset CLICOLOR_FORCE GREP_OPTIONS cannam@167: cannam@167: ## --------------------- ## cannam@167: ## M4sh Shell Functions. ## cannam@167: ## --------------------- ## cannam@167: # as_fn_unset VAR cannam@167: # --------------- cannam@167: # Portably unset VAR. cannam@167: as_fn_unset () cannam@167: { cannam@167: { eval $1=; unset $1;} cannam@167: } cannam@167: as_unset=as_fn_unset cannam@167: cannam@167: # as_fn_set_status STATUS cannam@167: # ----------------------- cannam@167: # Set $? to STATUS, without forking. cannam@167: as_fn_set_status () cannam@167: { cannam@167: return $1 cannam@167: } # as_fn_set_status cannam@167: cannam@167: # as_fn_exit STATUS cannam@167: # ----------------- cannam@167: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. cannam@167: as_fn_exit () cannam@167: { cannam@167: set +e cannam@167: as_fn_set_status $1 cannam@167: exit $1 cannam@167: } # as_fn_exit cannam@167: cannam@167: # as_fn_mkdir_p cannam@167: # ------------- cannam@167: # Create "$as_dir" as a directory, including parents if necessary. cannam@167: as_fn_mkdir_p () cannam@167: { cannam@167: cannam@167: case $as_dir in #( cannam@167: -*) as_dir=./$as_dir;; cannam@167: esac cannam@167: test -d "$as_dir" || eval $as_mkdir_p || { cannam@167: as_dirs= cannam@167: while :; do cannam@167: case $as_dir in #( cannam@167: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( cannam@167: *) as_qdir=$as_dir;; cannam@167: esac cannam@167: as_dirs="'$as_qdir' $as_dirs" cannam@167: as_dir=`$as_dirname -- "$as_dir" || cannam@167: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@167: X"$as_dir" : 'X\(//\)[^/]' \| \ cannam@167: X"$as_dir" : 'X\(//\)$' \| \ cannam@167: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || cannam@167: $as_echo X"$as_dir" | cannam@167: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\/\)[^/].*/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\/\)$/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\).*/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: s/.*/./; q'` cannam@167: test -d "$as_dir" && break cannam@167: done cannam@167: test -z "$as_dirs" || eval "mkdir $as_dirs" cannam@167: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" cannam@167: cannam@167: cannam@167: } # as_fn_mkdir_p cannam@167: cannam@167: # as_fn_executable_p FILE cannam@167: # ----------------------- cannam@167: # Test if FILE is an executable regular file. cannam@167: as_fn_executable_p () cannam@167: { cannam@167: test -f "$1" && test -x "$1" cannam@167: } # as_fn_executable_p cannam@167: # as_fn_append VAR VALUE cannam@167: # ---------------------- cannam@167: # Append the text in VALUE to the end of the definition contained in VAR. Take cannam@167: # advantage of any shell optimizations that allow amortized linear growth over cannam@167: # repeated appends, instead of the typical quadratic growth present in naive cannam@167: # implementations. cannam@167: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : cannam@167: eval 'as_fn_append () cannam@167: { cannam@167: eval $1+=\$2 cannam@167: }' cannam@167: else cannam@167: as_fn_append () cannam@167: { cannam@167: eval $1=\$$1\$2 cannam@167: } cannam@167: fi # as_fn_append cannam@167: cannam@167: # as_fn_arith ARG... cannam@167: # ------------------ cannam@167: # Perform arithmetic evaluation on the ARGs, and store the result in the cannam@167: # global $as_val. Take advantage of shells that can avoid forks. The arguments cannam@167: # must be portable across $(()) and expr. cannam@167: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : cannam@167: eval 'as_fn_arith () cannam@167: { cannam@167: as_val=$(( $* )) cannam@167: }' cannam@167: else cannam@167: as_fn_arith () cannam@167: { cannam@167: as_val=`expr "$@" || test $? -eq 1` cannam@167: } cannam@167: fi # as_fn_arith cannam@167: cannam@167: cannam@167: # as_fn_error STATUS ERROR [LINENO LOG_FD] cannam@167: # ---------------------------------------- cannam@167: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are cannam@167: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the cannam@167: # script with STATUS, using 1 if that was 0. cannam@167: as_fn_error () cannam@167: { cannam@167: as_status=$1; test $as_status -eq 0 && as_status=1 cannam@167: if test "$4"; then cannam@167: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 cannam@167: fi cannam@167: $as_echo "$as_me: error: $2" >&2 cannam@167: as_fn_exit $as_status cannam@167: } # as_fn_error cannam@167: cannam@167: if expr a : '\(a\)' >/dev/null 2>&1 && cannam@167: test "X`expr 00001 : '.*\(...\)'`" = X001; then cannam@167: as_expr=expr cannam@167: else cannam@167: as_expr=false cannam@167: fi cannam@167: cannam@167: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then cannam@167: as_basename=basename cannam@167: else cannam@167: as_basename=false cannam@167: fi cannam@167: cannam@167: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then cannam@167: as_dirname=dirname cannam@167: else cannam@167: as_dirname=false cannam@167: fi cannam@167: cannam@167: as_me=`$as_basename -- "$0" || cannam@167: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ cannam@167: X"$0" : 'X\(//\)$' \| \ cannam@167: X"$0" : 'X\(/\)' \| . 2>/dev/null || cannam@167: $as_echo X/"$0" | cannam@167: sed '/^.*\/\([^/][^/]*\)\/*$/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\/\(\/\/\)$/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\/\(\/\).*/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: s/.*/./; q'` cannam@167: cannam@167: # Avoid depending upon Character Ranges. cannam@167: as_cr_letters='abcdefghijklmnopqrstuvwxyz' cannam@167: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' cannam@167: as_cr_Letters=$as_cr_letters$as_cr_LETTERS cannam@167: as_cr_digits='0123456789' cannam@167: as_cr_alnum=$as_cr_Letters$as_cr_digits cannam@167: cannam@167: cannam@167: as_lineno_1=$LINENO as_lineno_1a=$LINENO cannam@167: as_lineno_2=$LINENO as_lineno_2a=$LINENO cannam@167: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && cannam@167: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { cannam@167: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) cannam@167: sed -n ' cannam@167: p cannam@167: /[$]LINENO/= cannam@167: ' <$as_myself | cannam@167: sed ' cannam@167: s/[$]LINENO.*/&-/ cannam@167: t lineno cannam@167: b cannam@167: :lineno cannam@167: N cannam@167: :loop cannam@167: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ cannam@167: t loop cannam@167: s/-\n.*// cannam@167: ' >$as_me.lineno && cannam@167: chmod +x "$as_me.lineno" || cannam@167: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } cannam@167: cannam@167: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have cannam@167: # already done that, so ensure we don't try to do so again and fall cannam@167: # in an infinite loop. This has already happened in practice. cannam@167: _as_can_reexec=no; export _as_can_reexec cannam@167: # Don't try to exec as it changes $[0], causing all sort of problems cannam@167: # (the dirname of $[0] is not the place where we might find the cannam@167: # original and so on. Autoconf is especially sensitive to this). cannam@167: . "./$as_me.lineno" cannam@167: # Exit status is that of the last command. cannam@167: exit cannam@167: } cannam@167: cannam@167: ECHO_C= ECHO_N= ECHO_T= cannam@167: case `echo -n x` in #((((( cannam@167: -n*) cannam@167: case `echo 'xy\c'` in cannam@167: *c*) ECHO_T=' ';; # ECHO_T is single tab character. cannam@167: xy) ECHO_C='\c';; cannam@167: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null cannam@167: ECHO_T=' ';; cannam@167: esac;; cannam@167: *) cannam@167: ECHO_N='-n';; cannam@167: esac cannam@167: cannam@167: rm -f conf$$ conf$$.exe conf$$.file cannam@167: if test -d conf$$.dir; then cannam@167: rm -f conf$$.dir/conf$$.file cannam@167: else cannam@167: rm -f conf$$.dir cannam@167: mkdir conf$$.dir 2>/dev/null cannam@167: fi cannam@167: if (echo >conf$$.file) 2>/dev/null; then cannam@167: if ln -s conf$$.file conf$$ 2>/dev/null; then cannam@167: as_ln_s='ln -s' cannam@167: # ... but there are two gotchas: cannam@167: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. cannam@167: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. cannam@167: # In both cases, we have to default to `cp -pR'. cannam@167: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || cannam@167: as_ln_s='cp -pR' cannam@167: elif ln conf$$.file conf$$ 2>/dev/null; then cannam@167: as_ln_s=ln cannam@167: else cannam@167: as_ln_s='cp -pR' cannam@167: fi cannam@167: else cannam@167: as_ln_s='cp -pR' cannam@167: fi cannam@167: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file cannam@167: rmdir conf$$.dir 2>/dev/null cannam@167: cannam@167: if mkdir -p . 2>/dev/null; then cannam@167: as_mkdir_p='mkdir -p "$as_dir"' cannam@167: else cannam@167: test -d ./-p && rmdir ./-p cannam@167: as_mkdir_p=false cannam@167: fi cannam@167: cannam@167: as_test_x='test -x' cannam@167: as_executable_p=as_fn_executable_p cannam@167: cannam@167: # Sed expression to map a string onto a valid CPP name. cannam@167: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" cannam@167: cannam@167: # Sed expression to map a string onto a valid variable name. cannam@167: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" cannam@167: cannam@167: SHELL=${CONFIG_SHELL-/bin/sh} cannam@167: cannam@167: cannam@167: test -n "$DJDIR" || exec 7<&0 &1 cannam@167: cannam@167: # Name of the host. cannam@167: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, cannam@167: # so uname gets run too. cannam@167: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` cannam@167: cannam@167: # cannam@167: # Initializations. cannam@167: # cannam@167: ac_default_prefix=/usr/local cannam@167: ac_clean_files= cannam@167: ac_config_libobj_dir=. cannam@167: LIBOBJS= cannam@167: cross_compiling=no cannam@167: subdirs= cannam@167: MFLAGS= cannam@167: MAKEFLAGS= cannam@167: cannam@167: # Identity of this package. cannam@167: PACKAGE_NAME='fftw' cannam@167: PACKAGE_TARNAME='fftw' cannam@167: PACKAGE_VERSION='3.3.8' cannam@167: PACKAGE_STRING='fftw 3.3.8' cannam@167: PACKAGE_BUGREPORT='fftw@fftw.org' cannam@167: PACKAGE_URL='' cannam@167: cannam@167: ac_unique_file="kernel/ifftw.h" cannam@167: # Factoring default headers for most tests. cannam@167: ac_includes_default="\ cannam@167: #include cannam@167: #ifdef HAVE_SYS_TYPES_H cannam@167: # include cannam@167: #endif cannam@167: #ifdef HAVE_SYS_STAT_H cannam@167: # include cannam@167: #endif cannam@167: #ifdef STDC_HEADERS cannam@167: # include cannam@167: # include cannam@167: #else cannam@167: # ifdef HAVE_STDLIB_H cannam@167: # include cannam@167: # endif cannam@167: #endif cannam@167: #ifdef HAVE_STRING_H cannam@167: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H cannam@167: # include cannam@167: # endif cannam@167: # include cannam@167: #endif cannam@167: #ifdef HAVE_STRINGS_H cannam@167: # include cannam@167: #endif cannam@167: #ifdef HAVE_INTTYPES_H cannam@167: # include cannam@167: #endif cannam@167: #ifdef HAVE_STDINT_H cannam@167: # include cannam@167: #endif cannam@167: #ifdef HAVE_UNISTD_H cannam@167: # include cannam@167: #endif" cannam@167: cannam@167: ac_subst_vars='am__EXEEXT_FALSE cannam@167: am__EXEEXT_TRUE cannam@167: LTLIBOBJS cannam@167: COMBINED_THREADS_FALSE cannam@167: COMBINED_THREADS_TRUE cannam@167: SMP_FALSE cannam@167: SMP_TRUE cannam@167: OPENMP_FALSE cannam@167: OPENMP_TRUE cannam@167: THREADS_FALSE cannam@167: THREADS_TRUE cannam@167: THREADLIBS cannam@167: PTHREAD_CFLAGS cannam@167: PTHREAD_LIBS cannam@167: PTHREAD_CC cannam@167: acx_pthread_config cannam@167: OPENMP_CFLAGS cannam@167: FLIBS cannam@167: ac_ct_F77 cannam@167: FFLAGS cannam@167: F77 cannam@167: INDENT cannam@167: LIBQUADMATH cannam@167: LIBOBJS cannam@167: POW_LIB cannam@167: ALLOCA cannam@167: C_FFTW_R2R_KIND cannam@167: STACK_ALIGN_CFLAGS cannam@167: NEON_CFLAGS cannam@167: VSX_CFLAGS cannam@167: ALTIVEC_CFLAGS cannam@167: KCVI_CFLAGS cannam@167: AVX512_CFLAGS cannam@167: AVX2_CFLAGS cannam@167: AVX_CFLAGS cannam@167: SSE2_CFLAGS cannam@167: MPI_FALSE cannam@167: MPI_TRUE cannam@167: C_MPI_FINT cannam@167: MPIRUN cannam@167: MPILIBS cannam@167: MPICC cannam@167: OCAMLBUILD cannam@167: CPP cannam@167: LT_SYS_LIBRARY_PATH cannam@167: OTOOL64 cannam@167: OTOOL cannam@167: LIPO cannam@167: NMEDIT cannam@167: DSYMUTIL cannam@167: MANIFEST_TOOL cannam@167: RANLIB cannam@167: ac_ct_AR cannam@167: AR cannam@167: NM cannam@167: ac_ct_DUMPBIN cannam@167: DUMPBIN cannam@167: LD cannam@167: FGREP cannam@167: EGREP cannam@167: GREP cannam@167: SED cannam@167: LIBTOOL cannam@167: OBJDUMP cannam@167: DLLTOOL cannam@167: AS cannam@167: LN_S cannam@167: am__fastdepCC_FALSE cannam@167: am__fastdepCC_TRUE cannam@167: CCDEPMODE cannam@167: am__nodep cannam@167: AMDEPBACKSLASH cannam@167: AMDEP_FALSE cannam@167: AMDEP_TRUE cannam@167: am__quote cannam@167: am__include cannam@167: DEPDIR cannam@167: OBJEXT cannam@167: EXEEXT cannam@167: ac_ct_CC cannam@167: CPPFLAGS cannam@167: LDFLAGS cannam@167: CFLAGS cannam@167: CC cannam@167: PREC_SUFFIX cannam@167: HAVE_GENERIC_SIMD256_FALSE cannam@167: HAVE_GENERIC_SIMD256_TRUE cannam@167: HAVE_GENERIC_SIMD128_FALSE cannam@167: HAVE_GENERIC_SIMD128_TRUE cannam@167: HAVE_NEON_FALSE cannam@167: HAVE_NEON_TRUE cannam@167: HAVE_VSX_FALSE cannam@167: HAVE_VSX_TRUE cannam@167: HAVE_ALTIVEC_FALSE cannam@167: HAVE_ALTIVEC_TRUE cannam@167: HAVE_KCVI_FALSE cannam@167: HAVE_KCVI_TRUE cannam@167: HAVE_AVX_128_FMA_FALSE cannam@167: HAVE_AVX_128_FMA_TRUE cannam@167: AVX_128_FMA_CFLAGS cannam@167: HAVE_AVX512_FALSE cannam@167: HAVE_AVX512_TRUE cannam@167: HAVE_AVX2_FALSE cannam@167: HAVE_AVX2_TRUE cannam@167: HAVE_AVX_FALSE cannam@167: HAVE_AVX_TRUE cannam@167: HAVE_SSE2_FALSE cannam@167: HAVE_SSE2_TRUE cannam@167: CHECK_PL_OPTS cannam@167: PRECISION cannam@167: QUAD_FALSE cannam@167: QUAD_TRUE cannam@167: LDOUBLE_FALSE cannam@167: LDOUBLE_TRUE cannam@167: SINGLE_FALSE cannam@167: SINGLE_TRUE cannam@167: BUILD_DOC_FALSE cannam@167: BUILD_DOC_TRUE cannam@167: host_os cannam@167: host_vendor cannam@167: host_cpu cannam@167: host cannam@167: build_os cannam@167: build_vendor cannam@167: build_cpu cannam@167: build cannam@167: SHARED_VERSION_INFO cannam@167: MAINT cannam@167: MAINTAINER_MODE_FALSE cannam@167: MAINTAINER_MODE_TRUE cannam@167: AM_BACKSLASH cannam@167: AM_DEFAULT_VERBOSITY cannam@167: AM_DEFAULT_V cannam@167: AM_V cannam@167: am__untar cannam@167: am__tar cannam@167: AMTAR cannam@167: am__leading_dot cannam@167: SET_MAKE cannam@167: AWK cannam@167: mkdir_p cannam@167: MKDIR_P cannam@167: INSTALL_STRIP_PROGRAM cannam@167: STRIP cannam@167: install_sh cannam@167: MAKEINFO cannam@167: AUTOHEADER cannam@167: AUTOMAKE cannam@167: AUTOCONF cannam@167: ACLOCAL cannam@167: VERSION cannam@167: PACKAGE cannam@167: CYGPATH_W cannam@167: am__isrc cannam@167: INSTALL_DATA cannam@167: INSTALL_SCRIPT cannam@167: INSTALL_PROGRAM cannam@167: target_alias cannam@167: host_alias cannam@167: build_alias cannam@167: LIBS cannam@167: ECHO_T cannam@167: ECHO_N cannam@167: ECHO_C cannam@167: DEFS cannam@167: mandir cannam@167: localedir cannam@167: libdir cannam@167: psdir cannam@167: pdfdir cannam@167: dvidir cannam@167: htmldir cannam@167: infodir cannam@167: docdir cannam@167: oldincludedir cannam@167: includedir cannam@167: runstatedir cannam@167: localstatedir cannam@167: sharedstatedir cannam@167: sysconfdir cannam@167: datadir cannam@167: datarootdir cannam@167: libexecdir cannam@167: sbindir cannam@167: bindir cannam@167: program_transform_name cannam@167: prefix cannam@167: exec_prefix cannam@167: PACKAGE_URL cannam@167: PACKAGE_BUGREPORT cannam@167: PACKAGE_STRING cannam@167: PACKAGE_VERSION cannam@167: PACKAGE_TARNAME cannam@167: PACKAGE_NAME cannam@167: PATH_SEPARATOR cannam@167: SHELL' cannam@167: ac_subst_files='' cannam@167: ac_user_opts=' cannam@167: enable_option_checking cannam@167: enable_silent_rules cannam@167: enable_maintainer_mode cannam@167: enable_shared cannam@167: enable_debug cannam@167: enable_doc cannam@167: enable_random_estimator cannam@167: enable_alloca cannam@167: enable_single cannam@167: enable_float cannam@167: enable_long_double cannam@167: enable_quad_precision cannam@167: enable_sse cannam@167: enable_sse2 cannam@167: enable_avx cannam@167: enable_avx2 cannam@167: enable_avx512 cannam@167: enable_avx_128_fma cannam@167: enable_kcvi cannam@167: enable_altivec cannam@167: enable_vsx cannam@167: enable_neon cannam@167: enable_armv8_pmccntr_el0 cannam@167: enable_armv8_cntvct_el0 cannam@167: enable_armv7a_cntvct cannam@167: enable_armv7a_pmccntr cannam@167: enable_generic_simd128 cannam@167: enable_generic_simd256 cannam@167: with_slow_timer cannam@167: enable_mips_zbus_timer cannam@167: with_our_malloc cannam@167: with_our_malloc16 cannam@167: with_windows_f77_mangling cannam@167: with_incoming_stack_boundary cannam@167: enable_fma cannam@167: enable_dependency_tracking cannam@167: enable_static cannam@167: with_pic cannam@167: enable_fast_install cannam@167: with_aix_soname cannam@167: with_gnu_ld cannam@167: with_sysroot cannam@167: enable_libtool_lock cannam@167: enable_mpi cannam@167: enable_fortran cannam@167: with_g77_wrappers cannam@167: enable_openmp cannam@167: enable_threads cannam@167: with_combined_threads cannam@167: ' cannam@167: ac_precious_vars='build_alias cannam@167: host_alias cannam@167: target_alias cannam@167: CC cannam@167: CFLAGS cannam@167: LDFLAGS cannam@167: LIBS cannam@167: CPPFLAGS cannam@167: LT_SYS_LIBRARY_PATH cannam@167: CPP cannam@167: MPICC cannam@167: F77 cannam@167: FFLAGS' cannam@167: cannam@167: cannam@167: # Initialize some variables set by options. cannam@167: ac_init_help= cannam@167: ac_init_version=false cannam@167: ac_unrecognized_opts= cannam@167: ac_unrecognized_sep= cannam@167: # The variables have the same names as the options, with cannam@167: # dashes changed to underlines. cannam@167: cache_file=/dev/null cannam@167: exec_prefix=NONE cannam@167: no_create= cannam@167: no_recursion= cannam@167: prefix=NONE cannam@167: program_prefix=NONE cannam@167: program_suffix=NONE cannam@167: program_transform_name=s,x,x, cannam@167: silent= cannam@167: site= cannam@167: srcdir= cannam@167: verbose= cannam@167: x_includes=NONE cannam@167: x_libraries=NONE cannam@167: cannam@167: # Installation directory options. cannam@167: # These are left unexpanded so users can "make install exec_prefix=/foo" cannam@167: # and all the variables that are supposed to be based on exec_prefix cannam@167: # by default will actually change. cannam@167: # Use braces instead of parens because sh, perl, etc. also accept them. cannam@167: # (The list follows the same order as the GNU Coding Standards.) cannam@167: bindir='${exec_prefix}/bin' cannam@167: sbindir='${exec_prefix}/sbin' cannam@167: libexecdir='${exec_prefix}/libexec' cannam@167: datarootdir='${prefix}/share' cannam@167: datadir='${datarootdir}' cannam@167: sysconfdir='${prefix}/etc' cannam@167: sharedstatedir='${prefix}/com' cannam@167: localstatedir='${prefix}/var' cannam@167: runstatedir='${localstatedir}/run' cannam@167: includedir='${prefix}/include' cannam@167: oldincludedir='/usr/include' cannam@167: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' cannam@167: infodir='${datarootdir}/info' cannam@167: htmldir='${docdir}' cannam@167: dvidir='${docdir}' cannam@167: pdfdir='${docdir}' cannam@167: psdir='${docdir}' cannam@167: libdir='${exec_prefix}/lib' cannam@167: localedir='${datarootdir}/locale' cannam@167: mandir='${datarootdir}/man' cannam@167: cannam@167: ac_prev= cannam@167: ac_dashdash= cannam@167: for ac_option cannam@167: do cannam@167: # If the previous option needs an argument, assign it. cannam@167: if test -n "$ac_prev"; then cannam@167: eval $ac_prev=\$ac_option cannam@167: ac_prev= cannam@167: continue cannam@167: fi cannam@167: cannam@167: case $ac_option in cannam@167: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; cannam@167: *=) ac_optarg= ;; cannam@167: *) ac_optarg=yes ;; cannam@167: esac cannam@167: cannam@167: # Accept the important Cygnus configure options, so we can diagnose typos. cannam@167: cannam@167: case $ac_dashdash$ac_option in cannam@167: --) cannam@167: ac_dashdash=yes ;; cannam@167: cannam@167: -bindir | --bindir | --bindi | --bind | --bin | --bi) cannam@167: ac_prev=bindir ;; cannam@167: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) cannam@167: bindir=$ac_optarg ;; cannam@167: cannam@167: -build | --build | --buil | --bui | --bu) cannam@167: ac_prev=build_alias ;; cannam@167: -build=* | --build=* | --buil=* | --bui=* | --bu=*) cannam@167: build_alias=$ac_optarg ;; cannam@167: cannam@167: -cache-file | --cache-file | --cache-fil | --cache-fi \ cannam@167: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) cannam@167: ac_prev=cache_file ;; cannam@167: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ cannam@167: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cannam@167: cache_file=$ac_optarg ;; cannam@167: cannam@167: --config-cache | -C) cannam@167: cache_file=config.cache ;; cannam@167: cannam@167: -datadir | --datadir | --datadi | --datad) cannam@167: ac_prev=datadir ;; cannam@167: -datadir=* | --datadir=* | --datadi=* | --datad=*) cannam@167: datadir=$ac_optarg ;; cannam@167: cannam@167: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ cannam@167: | --dataroo | --dataro | --datar) cannam@167: ac_prev=datarootdir ;; cannam@167: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ cannam@167: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) cannam@167: datarootdir=$ac_optarg ;; cannam@167: cannam@167: -disable-* | --disable-*) cannam@167: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` cannam@167: # Reject names that are not valid shell variable names. cannam@167: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && cannam@167: as_fn_error $? "invalid feature name: $ac_useropt" cannam@167: ac_useropt_orig=$ac_useropt cannam@167: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` cannam@167: case $ac_user_opts in cannam@167: *" cannam@167: "enable_$ac_useropt" cannam@167: "*) ;; cannam@167: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" cannam@167: ac_unrecognized_sep=', ';; cannam@167: esac cannam@167: eval enable_$ac_useropt=no ;; cannam@167: cannam@167: -docdir | --docdir | --docdi | --doc | --do) cannam@167: ac_prev=docdir ;; cannam@167: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) cannam@167: docdir=$ac_optarg ;; cannam@167: cannam@167: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) cannam@167: ac_prev=dvidir ;; cannam@167: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) cannam@167: dvidir=$ac_optarg ;; cannam@167: cannam@167: -enable-* | --enable-*) cannam@167: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` cannam@167: # Reject names that are not valid shell variable names. cannam@167: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && cannam@167: as_fn_error $? "invalid feature name: $ac_useropt" cannam@167: ac_useropt_orig=$ac_useropt cannam@167: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` cannam@167: case $ac_user_opts in cannam@167: *" cannam@167: "enable_$ac_useropt" cannam@167: "*) ;; cannam@167: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" cannam@167: ac_unrecognized_sep=', ';; cannam@167: esac cannam@167: eval enable_$ac_useropt=\$ac_optarg ;; cannam@167: cannam@167: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ cannam@167: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ cannam@167: | --exec | --exe | --ex) cannam@167: ac_prev=exec_prefix ;; cannam@167: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ cannam@167: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ cannam@167: | --exec=* | --exe=* | --ex=*) cannam@167: exec_prefix=$ac_optarg ;; cannam@167: cannam@167: -gas | --gas | --ga | --g) cannam@167: # Obsolete; use --with-gas. cannam@167: with_gas=yes ;; cannam@167: cannam@167: -help | --help | --hel | --he | -h) cannam@167: ac_init_help=long ;; cannam@167: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) cannam@167: ac_init_help=recursive ;; cannam@167: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) cannam@167: ac_init_help=short ;; cannam@167: cannam@167: -host | --host | --hos | --ho) cannam@167: ac_prev=host_alias ;; cannam@167: -host=* | --host=* | --hos=* | --ho=*) cannam@167: host_alias=$ac_optarg ;; cannam@167: cannam@167: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) cannam@167: ac_prev=htmldir ;; cannam@167: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ cannam@167: | --ht=*) cannam@167: htmldir=$ac_optarg ;; cannam@167: cannam@167: -includedir | --includedir | --includedi | --included | --include \ cannam@167: | --includ | --inclu | --incl | --inc) cannam@167: ac_prev=includedir ;; cannam@167: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ cannam@167: | --includ=* | --inclu=* | --incl=* | --inc=*) cannam@167: includedir=$ac_optarg ;; cannam@167: cannam@167: -infodir | --infodir | --infodi | --infod | --info | --inf) cannam@167: ac_prev=infodir ;; cannam@167: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) cannam@167: infodir=$ac_optarg ;; cannam@167: cannam@167: -libdir | --libdir | --libdi | --libd) cannam@167: ac_prev=libdir ;; cannam@167: -libdir=* | --libdir=* | --libdi=* | --libd=*) cannam@167: libdir=$ac_optarg ;; cannam@167: cannam@167: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ cannam@167: | --libexe | --libex | --libe) cannam@167: ac_prev=libexecdir ;; cannam@167: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ cannam@167: | --libexe=* | --libex=* | --libe=*) cannam@167: libexecdir=$ac_optarg ;; cannam@167: cannam@167: -localedir | --localedir | --localedi | --localed | --locale) cannam@167: ac_prev=localedir ;; cannam@167: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) cannam@167: localedir=$ac_optarg ;; cannam@167: cannam@167: -localstatedir | --localstatedir | --localstatedi | --localstated \ cannam@167: | --localstate | --localstat | --localsta | --localst | --locals) cannam@167: ac_prev=localstatedir ;; cannam@167: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ cannam@167: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) cannam@167: localstatedir=$ac_optarg ;; cannam@167: cannam@167: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) cannam@167: ac_prev=mandir ;; cannam@167: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) cannam@167: mandir=$ac_optarg ;; cannam@167: cannam@167: -nfp | --nfp | --nf) cannam@167: # Obsolete; use --without-fp. cannam@167: with_fp=no ;; cannam@167: cannam@167: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ cannam@167: | --no-cr | --no-c | -n) cannam@167: no_create=yes ;; cannam@167: cannam@167: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ cannam@167: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) cannam@167: no_recursion=yes ;; cannam@167: cannam@167: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ cannam@167: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ cannam@167: | --oldin | --oldi | --old | --ol | --o) cannam@167: ac_prev=oldincludedir ;; cannam@167: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ cannam@167: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ cannam@167: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) cannam@167: oldincludedir=$ac_optarg ;; cannam@167: cannam@167: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) cannam@167: ac_prev=prefix ;; cannam@167: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) cannam@167: prefix=$ac_optarg ;; cannam@167: cannam@167: -program-prefix | --program-prefix | --program-prefi | --program-pref \ cannam@167: | --program-pre | --program-pr | --program-p) cannam@167: ac_prev=program_prefix ;; cannam@167: -program-prefix=* | --program-prefix=* | --program-prefi=* \ cannam@167: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) cannam@167: program_prefix=$ac_optarg ;; cannam@167: cannam@167: -program-suffix | --program-suffix | --program-suffi | --program-suff \ cannam@167: | --program-suf | --program-su | --program-s) cannam@167: ac_prev=program_suffix ;; cannam@167: -program-suffix=* | --program-suffix=* | --program-suffi=* \ cannam@167: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) cannam@167: program_suffix=$ac_optarg ;; cannam@167: cannam@167: -program-transform-name | --program-transform-name \ cannam@167: | --program-transform-nam | --program-transform-na \ cannam@167: | --program-transform-n | --program-transform- \ cannam@167: | --program-transform | --program-transfor \ cannam@167: | --program-transfo | --program-transf \ cannam@167: | --program-trans | --program-tran \ cannam@167: | --progr-tra | --program-tr | --program-t) cannam@167: ac_prev=program_transform_name ;; cannam@167: -program-transform-name=* | --program-transform-name=* \ cannam@167: | --program-transform-nam=* | --program-transform-na=* \ cannam@167: | --program-transform-n=* | --program-transform-=* \ cannam@167: | --program-transform=* | --program-transfor=* \ cannam@167: | --program-transfo=* | --program-transf=* \ cannam@167: | --program-trans=* | --program-tran=* \ cannam@167: | --progr-tra=* | --program-tr=* | --program-t=*) cannam@167: program_transform_name=$ac_optarg ;; cannam@167: cannam@167: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) cannam@167: ac_prev=pdfdir ;; cannam@167: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) cannam@167: pdfdir=$ac_optarg ;; cannam@167: cannam@167: -psdir | --psdir | --psdi | --psd | --ps) cannam@167: ac_prev=psdir ;; cannam@167: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) cannam@167: psdir=$ac_optarg ;; cannam@167: cannam@167: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ cannam@167: | -silent | --silent | --silen | --sile | --sil) cannam@167: silent=yes ;; cannam@167: cannam@167: -runstatedir | --runstatedir | --runstatedi | --runstated \ cannam@167: | --runstate | --runstat | --runsta | --runst | --runs \ cannam@167: | --run | --ru | --r) cannam@167: ac_prev=runstatedir ;; cannam@167: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ cannam@167: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ cannam@167: | --run=* | --ru=* | --r=*) cannam@167: runstatedir=$ac_optarg ;; cannam@167: cannam@167: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) cannam@167: ac_prev=sbindir ;; cannam@167: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ cannam@167: | --sbi=* | --sb=*) cannam@167: sbindir=$ac_optarg ;; cannam@167: cannam@167: -sharedstatedir | --sharedstatedir | --sharedstatedi \ cannam@167: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ cannam@167: | --sharedst | --shareds | --shared | --share | --shar \ cannam@167: | --sha | --sh) cannam@167: ac_prev=sharedstatedir ;; cannam@167: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ cannam@167: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ cannam@167: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ cannam@167: | --sha=* | --sh=*) cannam@167: sharedstatedir=$ac_optarg ;; cannam@167: cannam@167: -site | --site | --sit) cannam@167: ac_prev=site ;; cannam@167: -site=* | --site=* | --sit=*) cannam@167: site=$ac_optarg ;; cannam@167: cannam@167: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) cannam@167: ac_prev=srcdir ;; cannam@167: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) cannam@167: srcdir=$ac_optarg ;; cannam@167: cannam@167: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ cannam@167: | --syscon | --sysco | --sysc | --sys | --sy) cannam@167: ac_prev=sysconfdir ;; cannam@167: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ cannam@167: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) cannam@167: sysconfdir=$ac_optarg ;; cannam@167: cannam@167: -target | --target | --targe | --targ | --tar | --ta | --t) cannam@167: ac_prev=target_alias ;; cannam@167: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) cannam@167: target_alias=$ac_optarg ;; cannam@167: cannam@167: -v | -verbose | --verbose | --verbos | --verbo | --verb) cannam@167: verbose=yes ;; cannam@167: cannam@167: -version | --version | --versio | --versi | --vers | -V) cannam@167: ac_init_version=: ;; cannam@167: cannam@167: -with-* | --with-*) cannam@167: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` cannam@167: # Reject names that are not valid shell variable names. cannam@167: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && cannam@167: as_fn_error $? "invalid package name: $ac_useropt" cannam@167: ac_useropt_orig=$ac_useropt cannam@167: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` cannam@167: case $ac_user_opts in cannam@167: *" cannam@167: "with_$ac_useropt" cannam@167: "*) ;; cannam@167: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" cannam@167: ac_unrecognized_sep=', ';; cannam@167: esac cannam@167: eval with_$ac_useropt=\$ac_optarg ;; cannam@167: cannam@167: -without-* | --without-*) cannam@167: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` cannam@167: # Reject names that are not valid shell variable names. cannam@167: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && cannam@167: as_fn_error $? "invalid package name: $ac_useropt" cannam@167: ac_useropt_orig=$ac_useropt cannam@167: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` cannam@167: case $ac_user_opts in cannam@167: *" cannam@167: "with_$ac_useropt" cannam@167: "*) ;; cannam@167: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" cannam@167: ac_unrecognized_sep=', ';; cannam@167: esac cannam@167: eval with_$ac_useropt=no ;; cannam@167: cannam@167: --x) cannam@167: # Obsolete; use --with-x. cannam@167: with_x=yes ;; cannam@167: cannam@167: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ cannam@167: | --x-incl | --x-inc | --x-in | --x-i) cannam@167: ac_prev=x_includes ;; cannam@167: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ cannam@167: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) cannam@167: x_includes=$ac_optarg ;; cannam@167: cannam@167: -x-libraries | --x-libraries | --x-librarie | --x-librari \ cannam@167: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) cannam@167: ac_prev=x_libraries ;; cannam@167: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ cannam@167: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) cannam@167: x_libraries=$ac_optarg ;; cannam@167: cannam@167: -*) as_fn_error $? "unrecognized option: \`$ac_option' cannam@167: Try \`$0 --help' for more information" cannam@167: ;; cannam@167: cannam@167: *=*) cannam@167: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` cannam@167: # Reject names that are not valid shell variable names. cannam@167: case $ac_envvar in #( cannam@167: '' | [0-9]* | *[!_$as_cr_alnum]* ) cannam@167: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; cannam@167: esac cannam@167: eval $ac_envvar=\$ac_optarg cannam@167: export $ac_envvar ;; cannam@167: cannam@167: *) cannam@167: # FIXME: should be removed in autoconf 3.0. cannam@167: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 cannam@167: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && cannam@167: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 cannam@167: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" cannam@167: ;; cannam@167: cannam@167: esac cannam@167: done cannam@167: cannam@167: if test -n "$ac_prev"; then cannam@167: ac_option=--`echo $ac_prev | sed 's/_/-/g'` cannam@167: as_fn_error $? "missing argument to $ac_option" cannam@167: fi cannam@167: cannam@167: if test -n "$ac_unrecognized_opts"; then cannam@167: case $enable_option_checking in cannam@167: no) ;; cannam@167: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; cannam@167: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; cannam@167: esac cannam@167: fi cannam@167: cannam@167: # Check all directory arguments for consistency. cannam@167: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ cannam@167: datadir sysconfdir sharedstatedir localstatedir includedir \ cannam@167: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ cannam@167: libdir localedir mandir runstatedir cannam@167: do cannam@167: eval ac_val=\$$ac_var cannam@167: # Remove trailing slashes. cannam@167: case $ac_val in cannam@167: */ ) cannam@167: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` cannam@167: eval $ac_var=\$ac_val;; cannam@167: esac cannam@167: # Be sure to have absolute directory names. cannam@167: case $ac_val in cannam@167: [\\/$]* | ?:[\\/]* ) continue;; cannam@167: NONE | '' ) case $ac_var in *prefix ) continue;; esac;; cannam@167: esac cannam@167: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" cannam@167: done cannam@167: cannam@167: # There might be people who depend on the old broken behavior: `$host' cannam@167: # used to hold the argument of --host etc. cannam@167: # FIXME: To remove some day. cannam@167: build=$build_alias cannam@167: host=$host_alias cannam@167: target=$target_alias cannam@167: cannam@167: # FIXME: To remove some day. cannam@167: if test "x$host_alias" != x; then cannam@167: if test "x$build_alias" = x; then cannam@167: cross_compiling=maybe cannam@167: elif test "x$build_alias" != "x$host_alias"; then cannam@167: cross_compiling=yes cannam@167: fi cannam@167: fi cannam@167: cannam@167: ac_tool_prefix= cannam@167: test -n "$host_alias" && ac_tool_prefix=$host_alias- cannam@167: cannam@167: test "$silent" = yes && exec 6>/dev/null cannam@167: cannam@167: cannam@167: ac_pwd=`pwd` && test -n "$ac_pwd" && cannam@167: ac_ls_di=`ls -di .` && cannam@167: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || cannam@167: as_fn_error $? "working directory cannot be determined" cannam@167: test "X$ac_ls_di" = "X$ac_pwd_ls_di" || cannam@167: as_fn_error $? "pwd does not report name of working directory" cannam@167: cannam@167: cannam@167: # Find the source files, if location was not specified. cannam@167: if test -z "$srcdir"; then cannam@167: ac_srcdir_defaulted=yes cannam@167: # Try the directory containing this script, then the parent directory. cannam@167: ac_confdir=`$as_dirname -- "$as_myself" || cannam@167: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@167: X"$as_myself" : 'X\(//\)[^/]' \| \ cannam@167: X"$as_myself" : 'X\(//\)$' \| \ cannam@167: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || cannam@167: $as_echo X"$as_myself" | cannam@167: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\/\)[^/].*/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\/\)$/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\).*/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: s/.*/./; q'` cannam@167: srcdir=$ac_confdir cannam@167: if test ! -r "$srcdir/$ac_unique_file"; then cannam@167: srcdir=.. cannam@167: fi cannam@167: else cannam@167: ac_srcdir_defaulted=no cannam@167: fi cannam@167: if test ! -r "$srcdir/$ac_unique_file"; then cannam@167: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." cannam@167: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" cannam@167: fi cannam@167: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" cannam@167: ac_abs_confdir=`( cannam@167: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" cannam@167: pwd)` cannam@167: # When building in place, set srcdir=. cannam@167: if test "$ac_abs_confdir" = "$ac_pwd"; then cannam@167: srcdir=. cannam@167: fi cannam@167: # Remove unnecessary trailing slashes from srcdir. cannam@167: # Double slashes in file names in object file debugging info cannam@167: # mess up M-x gdb in Emacs. cannam@167: case $srcdir in cannam@167: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; cannam@167: esac cannam@167: for ac_var in $ac_precious_vars; do cannam@167: eval ac_env_${ac_var}_set=\${${ac_var}+set} cannam@167: eval ac_env_${ac_var}_value=\$${ac_var} cannam@167: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} cannam@167: eval ac_cv_env_${ac_var}_value=\$${ac_var} cannam@167: done cannam@167: cannam@167: # cannam@167: # Report the --help message. cannam@167: # cannam@167: if test "$ac_init_help" = "long"; then cannam@167: # Omit some internal or obsolete options to make the list less imposing. cannam@167: # This message is too long to be a string in the A/UX 3.1 sh. cannam@167: cat <<_ACEOF cannam@167: \`configure' configures fftw 3.3.8 to adapt to many kinds of systems. cannam@167: cannam@167: Usage: $0 [OPTION]... [VAR=VALUE]... cannam@167: cannam@167: To assign environment variables (e.g., CC, CFLAGS...), specify them as cannam@167: VAR=VALUE. See below for descriptions of some of the useful variables. cannam@167: cannam@167: Defaults for the options are specified in brackets. cannam@167: cannam@167: Configuration: cannam@167: -h, --help display this help and exit cannam@167: --help=short display options specific to this package cannam@167: --help=recursive display the short help of all the included packages cannam@167: -V, --version display version information and exit cannam@167: -q, --quiet, --silent do not print \`checking ...' messages cannam@167: --cache-file=FILE cache test results in FILE [disabled] cannam@167: -C, --config-cache alias for \`--cache-file=config.cache' cannam@167: -n, --no-create do not create output files cannam@167: --srcdir=DIR find the sources in DIR [configure dir or \`..'] cannam@167: cannam@167: Installation directories: cannam@167: --prefix=PREFIX install architecture-independent files in PREFIX cannam@167: [$ac_default_prefix] cannam@167: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX cannam@167: [PREFIX] cannam@167: cannam@167: By default, \`make install' will install all the files in cannam@167: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify cannam@167: an installation prefix other than \`$ac_default_prefix' using \`--prefix', cannam@167: for instance \`--prefix=\$HOME'. cannam@167: cannam@167: For better control, use the options below. cannam@167: cannam@167: Fine tuning of the installation directories: cannam@167: --bindir=DIR user executables [EPREFIX/bin] cannam@167: --sbindir=DIR system admin executables [EPREFIX/sbin] cannam@167: --libexecdir=DIR program executables [EPREFIX/libexec] cannam@167: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] cannam@167: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] cannam@167: --localstatedir=DIR modifiable single-machine data [PREFIX/var] cannam@167: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] cannam@167: --libdir=DIR object code libraries [EPREFIX/lib] cannam@167: --includedir=DIR C header files [PREFIX/include] cannam@167: --oldincludedir=DIR C header files for non-gcc [/usr/include] cannam@167: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] cannam@167: --datadir=DIR read-only architecture-independent data [DATAROOTDIR] cannam@167: --infodir=DIR info documentation [DATAROOTDIR/info] cannam@167: --localedir=DIR locale-dependent data [DATAROOTDIR/locale] cannam@167: --mandir=DIR man documentation [DATAROOTDIR/man] cannam@167: --docdir=DIR documentation root [DATAROOTDIR/doc/fftw] cannam@167: --htmldir=DIR html documentation [DOCDIR] cannam@167: --dvidir=DIR dvi documentation [DOCDIR] cannam@167: --pdfdir=DIR pdf documentation [DOCDIR] cannam@167: --psdir=DIR ps documentation [DOCDIR] cannam@167: _ACEOF cannam@167: cannam@167: cat <<\_ACEOF cannam@167: cannam@167: Program names: cannam@167: --program-prefix=PREFIX prepend PREFIX to installed program names cannam@167: --program-suffix=SUFFIX append SUFFIX to installed program names cannam@167: --program-transform-name=PROGRAM run sed PROGRAM on installed program names cannam@167: cannam@167: System types: cannam@167: --build=BUILD configure for building on BUILD [guessed] cannam@167: --host=HOST cross-compile to build programs to run on HOST [BUILD] cannam@167: _ACEOF cannam@167: fi cannam@167: cannam@167: if test -n "$ac_init_help"; then cannam@167: case $ac_init_help in cannam@167: short | recursive ) echo "Configuration of fftw 3.3.8:";; cannam@167: esac cannam@167: cat <<\_ACEOF cannam@167: cannam@167: Optional Features: cannam@167: --disable-option-checking ignore unrecognized --enable/--with options cannam@167: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) cannam@167: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] cannam@167: --enable-silent-rules less verbose build output (undo: "make V=1") cannam@167: --disable-silent-rules verbose build output (undo: "make V=0") cannam@167: --enable-maintainer-mode cannam@167: enable make rules and dependencies not useful (and cannam@167: sometimes confusing) to the casual installer cannam@167: --enable-shared[=PKGS] build shared libraries [default=no] cannam@167: --enable-debug compile fftw with extra runtime checks for debugging cannam@167: --disable-doc disable building the documentation cannam@167: --enable-random-estimator cannam@167: enable pseudorandom estimator (debugging hack) cannam@167: --disable-alloca disable use of the alloca() function (may be broken cannam@167: on mingw64) cannam@167: --enable-single compile fftw in single precision cannam@167: --enable-float synonym for --enable-single cannam@167: --enable-long-double compile fftw in long-double precision cannam@167: --enable-quad-precision compile fftw in quadruple precision if available cannam@167: --enable-sse enable SSE optimizations cannam@167: --enable-sse2 enable SSE/SSE2 optimizations cannam@167: --enable-avx enable AVX optimizations cannam@167: --enable-avx2 enable AVX2 optimizations cannam@167: --enable-avx512 enable AVX512 optimizations cannam@167: --enable-avx-128-fma enable AVX128/FMA optimizations cannam@167: --enable-kcvi enable Knights Corner vector instructions cannam@167: optimizations cannam@167: --enable-altivec enable Altivec optimizations cannam@167: --enable-vsx enable IBM VSX optimizations cannam@167: --enable-neon enable ARM NEON optimizations cannam@167: --enable-armv8-pmccntr-el0 cannam@167: enable the cycle counter on ARMv8 via the cannam@167: PMCCNTR_EL0 register (see README-perfcounters for cannam@167: details and mandatory instructions) cannam@167: --enable-armv8-cntvct-el0 cannam@167: enable the cycle counter on ARMv8 via the CNTVCT_EL0 cannam@167: register (see README-perfcounters for details and cannam@167: mandatory instructions) cannam@167: --enable-armv7a-cntvct enable the cycle counter on Armv7a via the CNTVCT cannam@167: register (see README-perfcounters for details and cannam@167: mandatory instructions) cannam@167: --enable-armv7a-pmccntr enable the cycle counter on Armv7a via the PMCCNTR cannam@167: register (see README-perfcounters for details and cannam@167: mandatory instructions) cannam@167: --enable-generic-simd128 cannam@167: enable generic (gcc) 128-bit SIMD optimizations cannam@167: --enable-generic-simd256 cannam@167: enable generic (gcc) 256-bit SIMD optimizations cannam@167: --enable-mips-zbus-timer cannam@167: use MIPS ZBus cycle-counter cannam@167: --enable-fma enable if the machine architecture "naturally" cannam@167: prefers fused multiply-add instructions cannam@167: --enable-dependency-tracking cannam@167: do not reject slow dependency extractors cannam@167: --disable-dependency-tracking cannam@167: speeds up one-time build cannam@167: --enable-static[=PKGS] build static libraries [default=yes] cannam@167: --enable-fast-install[=PKGS] cannam@167: optimize for fast installation [default=yes] cannam@167: --disable-libtool-lock avoid locking (might break parallel builds) cannam@167: --enable-mpi compile FFTW MPI library cannam@167: --disable-fortran don't include Fortran-callable wrappers cannam@167: --enable-openmp use OpenMP directives for parallelism cannam@167: --enable-threads compile FFTW SMP threads library cannam@167: cannam@167: Optional Packages: cannam@167: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] cannam@167: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) cannam@167: --with-slow-timer use low-precision timers (SLOW) cannam@167: --with-our-malloc use our aligned malloc (helpful for Win32) cannam@167: --with-our-malloc16 Obsolete alias for --with-our-malloc16 cannam@167: --with-windows-f77-mangling cannam@167: use common Win32 Fortran interface styles cannam@167: --with-incoming-stack-boundary=X cannam@167: Assume that stack is aligned to (1< if you have libraries in a cannam@167: nonstandard directory cannam@167: LIBS libraries to pass to the linker, e.g. -l cannam@167: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if cannam@167: you have headers in a nonstandard directory cannam@167: LT_SYS_LIBRARY_PATH cannam@167: User-defined run-time library search path. cannam@167: CPP C preprocessor cannam@167: MPICC MPI C compiler command cannam@167: F77 Fortran 77 compiler command cannam@167: FFLAGS Fortran 77 compiler flags cannam@167: cannam@167: Use these variables to override the choices made by `configure' or to help cannam@167: it to find libraries and programs with nonstandard names/locations. cannam@167: cannam@167: Report bugs to . cannam@167: _ACEOF cannam@167: ac_status=$? cannam@167: fi cannam@167: cannam@167: if test "$ac_init_help" = "recursive"; then cannam@167: # If there are subdirs, report their specific --help. cannam@167: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue cannam@167: test -d "$ac_dir" || cannam@167: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || cannam@167: continue cannam@167: ac_builddir=. cannam@167: cannam@167: case "$ac_dir" in cannam@167: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; cannam@167: *) cannam@167: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` cannam@167: # A ".." for each directory in $ac_dir_suffix. cannam@167: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` cannam@167: case $ac_top_builddir_sub in cannam@167: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; cannam@167: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; cannam@167: esac ;; cannam@167: esac cannam@167: ac_abs_top_builddir=$ac_pwd cannam@167: ac_abs_builddir=$ac_pwd$ac_dir_suffix cannam@167: # for backward compatibility: cannam@167: ac_top_builddir=$ac_top_build_prefix cannam@167: cannam@167: case $srcdir in cannam@167: .) # We are building in place. cannam@167: ac_srcdir=. cannam@167: ac_top_srcdir=$ac_top_builddir_sub cannam@167: ac_abs_top_srcdir=$ac_pwd ;; cannam@167: [\\/]* | ?:[\\/]* ) # Absolute name. cannam@167: ac_srcdir=$srcdir$ac_dir_suffix; cannam@167: ac_top_srcdir=$srcdir cannam@167: ac_abs_top_srcdir=$srcdir ;; cannam@167: *) # Relative name. cannam@167: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix cannam@167: ac_top_srcdir=$ac_top_build_prefix$srcdir cannam@167: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; cannam@167: esac cannam@167: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cannam@167: cannam@167: cd "$ac_dir" || { ac_status=$?; continue; } cannam@167: # Check for guested configure. cannam@167: if test -f "$ac_srcdir/configure.gnu"; then cannam@167: echo && cannam@167: $SHELL "$ac_srcdir/configure.gnu" --help=recursive cannam@167: elif test -f "$ac_srcdir/configure"; then cannam@167: echo && cannam@167: $SHELL "$ac_srcdir/configure" --help=recursive cannam@167: else cannam@167: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 cannam@167: fi || ac_status=$? cannam@167: cd "$ac_pwd" || { ac_status=$?; break; } cannam@167: done cannam@167: fi cannam@167: cannam@167: test -n "$ac_init_help" && exit $ac_status cannam@167: if $ac_init_version; then cannam@167: cat <<\_ACEOF cannam@167: fftw configure 3.3.8 cannam@167: generated by GNU Autoconf 2.69 cannam@167: cannam@167: Copyright (C) 2012 Free Software Foundation, Inc. cannam@167: This configure script is free software; the Free Software Foundation cannam@167: gives unlimited permission to copy, distribute and modify it. cannam@167: _ACEOF cannam@167: exit cannam@167: fi cannam@167: cannam@167: ## ------------------------ ## cannam@167: ## Autoconf initialization. ## cannam@167: ## ------------------------ ## cannam@167: cannam@167: # ac_fn_c_try_compile LINENO cannam@167: # -------------------------- cannam@167: # Try to compile conftest.$ac_ext, and return whether this succeeded. cannam@167: ac_fn_c_try_compile () cannam@167: { cannam@167: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@167: rm -f conftest.$ac_objext cannam@167: if { { ac_try="$ac_compile" cannam@167: case "(($ac_try" in cannam@167: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@167: *) ac_try_echo=$ac_try;; cannam@167: esac cannam@167: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@167: $as_echo "$ac_try_echo"; } >&5 cannam@167: (eval "$ac_compile") 2>conftest.err cannam@167: ac_status=$? cannam@167: if test -s conftest.err; then cannam@167: grep -v '^ *+' conftest.err >conftest.er1 cannam@167: cat conftest.er1 >&5 cannam@167: mv -f conftest.er1 conftest.err cannam@167: fi cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } && { cannam@167: test -z "$ac_c_werror_flag" || cannam@167: test ! -s conftest.err cannam@167: } && test -s conftest.$ac_objext; then : cannam@167: ac_retval=0 cannam@167: else cannam@167: $as_echo "$as_me: failed program was:" >&5 cannam@167: sed 's/^/| /' conftest.$ac_ext >&5 cannam@167: cannam@167: ac_retval=1 cannam@167: fi cannam@167: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@167: as_fn_set_status $ac_retval cannam@167: cannam@167: } # ac_fn_c_try_compile cannam@167: cannam@167: # ac_fn_c_try_link LINENO cannam@167: # ----------------------- cannam@167: # Try to link conftest.$ac_ext, and return whether this succeeded. cannam@167: ac_fn_c_try_link () cannam@167: { cannam@167: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@167: rm -f conftest.$ac_objext conftest$ac_exeext cannam@167: if { { ac_try="$ac_link" cannam@167: case "(($ac_try" in cannam@167: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@167: *) ac_try_echo=$ac_try;; cannam@167: esac cannam@167: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@167: $as_echo "$ac_try_echo"; } >&5 cannam@167: (eval "$ac_link") 2>conftest.err cannam@167: ac_status=$? cannam@167: if test -s conftest.err; then cannam@167: grep -v '^ *+' conftest.err >conftest.er1 cannam@167: cat conftest.er1 >&5 cannam@167: mv -f conftest.er1 conftest.err cannam@167: fi cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } && { cannam@167: test -z "$ac_c_werror_flag" || cannam@167: test ! -s conftest.err cannam@167: } && test -s conftest$ac_exeext && { cannam@167: test "$cross_compiling" = yes || cannam@167: test -x conftest$ac_exeext cannam@167: }; then : cannam@167: ac_retval=0 cannam@167: else cannam@167: $as_echo "$as_me: failed program was:" >&5 cannam@167: sed 's/^/| /' conftest.$ac_ext >&5 cannam@167: cannam@167: ac_retval=1 cannam@167: fi cannam@167: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information cannam@167: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would cannam@167: # interfere with the next link command; also delete a directory that is cannam@167: # left behind by Apple's compiler. We do this before executing the actions. cannam@167: rm -rf conftest.dSYM conftest_ipa8_conftest.oo cannam@167: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@167: as_fn_set_status $ac_retval cannam@167: cannam@167: } # ac_fn_c_try_link cannam@167: cannam@167: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES cannam@167: # ------------------------------------------------------- cannam@167: # Tests whether HEADER exists and can be compiled using the include files in cannam@167: # INCLUDES, setting the cache variable VAR accordingly. cannam@167: ac_fn_c_check_header_compile () cannam@167: { cannam@167: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 cannam@167: $as_echo_n "checking for $2... " >&6; } cannam@167: if eval \${$3+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: $4 cannam@167: #include <$2> cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: eval "$3=yes" cannam@167: else cannam@167: eval "$3=no" cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: fi cannam@167: eval ac_res=\$$3 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 cannam@167: $as_echo "$ac_res" >&6; } cannam@167: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@167: cannam@167: } # ac_fn_c_check_header_compile cannam@167: cannam@167: # ac_fn_c_try_cpp LINENO cannam@167: # ---------------------- cannam@167: # Try to preprocess conftest.$ac_ext, and return whether this succeeded. cannam@167: ac_fn_c_try_cpp () cannam@167: { cannam@167: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@167: if { { ac_try="$ac_cpp conftest.$ac_ext" cannam@167: case "(($ac_try" in cannam@167: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@167: *) ac_try_echo=$ac_try;; cannam@167: esac cannam@167: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@167: $as_echo "$ac_try_echo"; } >&5 cannam@167: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err cannam@167: ac_status=$? cannam@167: if test -s conftest.err; then cannam@167: grep -v '^ *+' conftest.err >conftest.er1 cannam@167: cat conftest.er1 >&5 cannam@167: mv -f conftest.er1 conftest.err cannam@167: fi cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } > conftest.i && { cannam@167: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || cannam@167: test ! -s conftest.err cannam@167: }; then : cannam@167: ac_retval=0 cannam@167: else cannam@167: $as_echo "$as_me: failed program was:" >&5 cannam@167: sed 's/^/| /' conftest.$ac_ext >&5 cannam@167: cannam@167: ac_retval=1 cannam@167: fi cannam@167: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@167: as_fn_set_status $ac_retval cannam@167: cannam@167: } # ac_fn_c_try_cpp cannam@167: cannam@167: # ac_fn_c_try_run LINENO cannam@167: # ---------------------- cannam@167: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes cannam@167: # that executables *can* be run. cannam@167: ac_fn_c_try_run () cannam@167: { cannam@167: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@167: if { { ac_try="$ac_link" cannam@167: case "(($ac_try" in cannam@167: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@167: *) ac_try_echo=$ac_try;; cannam@167: esac cannam@167: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@167: $as_echo "$ac_try_echo"; } >&5 cannam@167: (eval "$ac_link") 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' cannam@167: { { case "(($ac_try" in cannam@167: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@167: *) ac_try_echo=$ac_try;; cannam@167: esac cannam@167: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@167: $as_echo "$ac_try_echo"; } >&5 cannam@167: (eval "$ac_try") 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; }; }; then : cannam@167: ac_retval=0 cannam@167: else cannam@167: $as_echo "$as_me: program exited with status $ac_status" >&5 cannam@167: $as_echo "$as_me: failed program was:" >&5 cannam@167: sed 's/^/| /' conftest.$ac_ext >&5 cannam@167: cannam@167: ac_retval=$ac_status cannam@167: fi cannam@167: rm -rf conftest.dSYM conftest_ipa8_conftest.oo cannam@167: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@167: as_fn_set_status $ac_retval cannam@167: cannam@167: } # ac_fn_c_try_run cannam@167: cannam@167: # ac_fn_c_check_func LINENO FUNC VAR cannam@167: # ---------------------------------- cannam@167: # Tests whether FUNC exists, setting the cache variable VAR accordingly cannam@167: ac_fn_c_check_func () cannam@167: { cannam@167: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 cannam@167: $as_echo_n "checking for $2... " >&6; } cannam@167: if eval \${$3+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: /* Define $2 to an innocuous variant, in case declares $2. cannam@167: For example, HP-UX 11i declares gettimeofday. */ cannam@167: #define $2 innocuous_$2 cannam@167: cannam@167: /* System header to define __stub macros and hopefully few prototypes, cannam@167: which can conflict with char $2 (); below. cannam@167: Prefer to if __STDC__ is defined, since cannam@167: exists even on freestanding compilers. */ cannam@167: cannam@167: #ifdef __STDC__ cannam@167: # include cannam@167: #else cannam@167: # include cannam@167: #endif cannam@167: cannam@167: #undef $2 cannam@167: cannam@167: /* Override any GCC internal prototype to avoid an error. cannam@167: Use char because int might match the return type of a GCC cannam@167: builtin and then its argument prototype would still apply. */ cannam@167: #ifdef __cplusplus cannam@167: extern "C" cannam@167: #endif cannam@167: char $2 (); cannam@167: /* The GNU C library defines this for functions which it implements cannam@167: to always fail with ENOSYS. Some functions are actually named cannam@167: something starting with __ and the normal name is an alias. */ cannam@167: #if defined __stub_$2 || defined __stub___$2 cannam@167: choke me cannam@167: #endif cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: return $2 (); cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: eval "$3=yes" cannam@167: else cannam@167: eval "$3=no" cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: fi cannam@167: eval ac_res=\$$3 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 cannam@167: $as_echo "$ac_res" >&6; } cannam@167: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@167: cannam@167: } # ac_fn_c_check_func cannam@167: cannam@167: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES cannam@167: # -------------------------------------------- cannam@167: # Tries to find the compile-time value of EXPR in a program that includes cannam@167: # INCLUDES, setting VAR accordingly. Returns whether the value could be cannam@167: # computed cannam@167: ac_fn_c_compute_int () cannam@167: { cannam@167: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@167: if test "$cross_compiling" = yes; then cannam@167: # Depending upon the size, compute the lo and hi bounds. cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: $4 cannam@167: int cannam@167: main () cannam@167: { cannam@167: static int test_array [1 - 2 * !(($2) >= 0)]; cannam@167: test_array [0] = 0; cannam@167: return test_array [0]; cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ac_lo=0 ac_mid=0 cannam@167: while :; do cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: $4 cannam@167: int cannam@167: main () cannam@167: { cannam@167: static int test_array [1 - 2 * !(($2) <= $ac_mid)]; cannam@167: test_array [0] = 0; cannam@167: return test_array [0]; cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ac_hi=$ac_mid; break cannam@167: else cannam@167: as_fn_arith $ac_mid + 1 && ac_lo=$as_val cannam@167: if test $ac_lo -le $ac_mid; then cannam@167: ac_lo= ac_hi= cannam@167: break cannam@167: fi cannam@167: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: done cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: $4 cannam@167: int cannam@167: main () cannam@167: { cannam@167: static int test_array [1 - 2 * !(($2) < 0)]; cannam@167: test_array [0] = 0; cannam@167: return test_array [0]; cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ac_hi=-1 ac_mid=-1 cannam@167: while :; do cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: $4 cannam@167: int cannam@167: main () cannam@167: { cannam@167: static int test_array [1 - 2 * !(($2) >= $ac_mid)]; cannam@167: test_array [0] = 0; cannam@167: return test_array [0]; cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ac_lo=$ac_mid; break cannam@167: else cannam@167: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val cannam@167: if test $ac_mid -le $ac_hi; then cannam@167: ac_lo= ac_hi= cannam@167: break cannam@167: fi cannam@167: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: done cannam@167: else cannam@167: ac_lo= ac_hi= cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: # Binary search between lo and hi bounds. cannam@167: while test "x$ac_lo" != "x$ac_hi"; do cannam@167: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: $4 cannam@167: int cannam@167: main () cannam@167: { cannam@167: static int test_array [1 - 2 * !(($2) <= $ac_mid)]; cannam@167: test_array [0] = 0; cannam@167: return test_array [0]; cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ac_hi=$ac_mid cannam@167: else cannam@167: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: done cannam@167: case $ac_lo in #(( cannam@167: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; cannam@167: '') ac_retval=1 ;; cannam@167: esac cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: $4 cannam@167: static long int longval () { return $2; } cannam@167: static unsigned long int ulongval () { return $2; } cannam@167: #include cannam@167: #include cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: FILE *f = fopen ("conftest.val", "w"); cannam@167: if (! f) cannam@167: return 1; cannam@167: if (($2) < 0) cannam@167: { cannam@167: long int i = longval (); cannam@167: if (i != ($2)) cannam@167: return 1; cannam@167: fprintf (f, "%ld", i); cannam@167: } cannam@167: else cannam@167: { cannam@167: unsigned long int i = ulongval (); cannam@167: if (i != ($2)) cannam@167: return 1; cannam@167: fprintf (f, "%lu", i); cannam@167: } cannam@167: /* Do not output a trailing newline, as this causes \r\n confusion cannam@167: on some platforms. */ cannam@167: return ferror (f) || fclose (f) != 0; cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_run "$LINENO"; then : cannam@167: echo >>conftest.val; read $3 &5 cannam@167: $as_echo_n "checking for $2... " >&6; } cannam@167: if eval \${$3+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: fi cannam@167: eval ac_res=\$$3 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 cannam@167: $as_echo "$ac_res" >&6; } cannam@167: else cannam@167: # Is the header compilable? cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 cannam@167: $as_echo_n "checking $2 usability... " >&6; } cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: $4 cannam@167: #include <$2> cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ac_header_compiler=yes cannam@167: else cannam@167: ac_header_compiler=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 cannam@167: $as_echo "$ac_header_compiler" >&6; } cannam@167: cannam@167: # Is the header present? cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 cannam@167: $as_echo_n "checking $2 presence... " >&6; } cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include <$2> cannam@167: _ACEOF cannam@167: if ac_fn_c_try_cpp "$LINENO"; then : cannam@167: ac_header_preproc=yes cannam@167: else cannam@167: ac_header_preproc=no cannam@167: fi cannam@167: rm -f conftest.err conftest.i conftest.$ac_ext cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 cannam@167: $as_echo "$ac_header_preproc" >&6; } cannam@167: cannam@167: # So? What about this header? cannam@167: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( cannam@167: yes:no: ) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 cannam@167: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 cannam@167: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} cannam@167: ;; cannam@167: no:yes:* ) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 cannam@167: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 cannam@167: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 cannam@167: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 cannam@167: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 cannam@167: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} cannam@167: ( $as_echo "## ---------------------------- ## cannam@167: ## Report this to fftw@fftw.org ## cannam@167: ## ---------------------------- ##" cannam@167: ) | sed "s/^/$as_me: WARNING: /" >&2 cannam@167: ;; cannam@167: esac cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 cannam@167: $as_echo_n "checking for $2... " >&6; } cannam@167: if eval \${$3+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: eval "$3=\$ac_header_compiler" cannam@167: fi cannam@167: eval ac_res=\$$3 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 cannam@167: $as_echo "$ac_res" >&6; } cannam@167: fi cannam@167: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@167: cannam@167: } # ac_fn_c_check_header_mongrel cannam@167: cannam@167: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES cannam@167: # ------------------------------------------- cannam@167: # Tests whether TYPE exists after having included INCLUDES, setting cache cannam@167: # variable VAR accordingly. cannam@167: ac_fn_c_check_type () cannam@167: { cannam@167: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 cannam@167: $as_echo_n "checking for $2... " >&6; } cannam@167: if eval \${$3+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: eval "$3=no" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: $4 cannam@167: int cannam@167: main () cannam@167: { cannam@167: if (sizeof ($2)) cannam@167: return 0; cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: $4 cannam@167: int cannam@167: main () cannam@167: { cannam@167: if (sizeof (($2))) cannam@167: return 0; cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: cannam@167: else cannam@167: eval "$3=yes" cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: fi cannam@167: eval ac_res=\$$3 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 cannam@167: $as_echo "$ac_res" >&6; } cannam@167: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@167: cannam@167: } # ac_fn_c_check_type cannam@167: cannam@167: # ac_fn_c_find_uintX_t LINENO BITS VAR cannam@167: # ------------------------------------ cannam@167: # Finds an unsigned integer type with width BITS, setting cache variable VAR cannam@167: # accordingly. cannam@167: ac_fn_c_find_uintX_t () cannam@167: { cannam@167: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 cannam@167: $as_echo_n "checking for uint$2_t... " >&6; } cannam@167: if eval \${$3+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: eval "$3=no" cannam@167: # Order is important - never check a type that is potentially smaller cannam@167: # than half of the expected target width. cannam@167: for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ cannam@167: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: $ac_includes_default cannam@167: int cannam@167: main () cannam@167: { cannam@167: static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; cannam@167: test_array [0] = 0; cannam@167: return test_array [0]; cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: case $ac_type in #( cannam@167: uint$2_t) : cannam@167: eval "$3=yes" ;; #( cannam@167: *) : cannam@167: eval "$3=\$ac_type" ;; cannam@167: esac cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: if eval test \"x\$"$3"\" = x"no"; then : cannam@167: cannam@167: else cannam@167: break cannam@167: fi cannam@167: done cannam@167: fi cannam@167: eval ac_res=\$$3 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 cannam@167: $as_echo "$ac_res" >&6; } cannam@167: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@167: cannam@167: } # ac_fn_c_find_uintX_t cannam@167: cannam@167: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES cannam@167: # --------------------------------------------- cannam@167: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR cannam@167: # accordingly. cannam@167: ac_fn_c_check_decl () cannam@167: { cannam@167: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@167: as_decl_name=`echo $2|sed 's/ *(.*//'` cannam@167: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 cannam@167: $as_echo_n "checking whether $as_decl_name is declared... " >&6; } cannam@167: if eval \${$3+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: $4 cannam@167: int cannam@167: main () cannam@167: { cannam@167: #ifndef $as_decl_name cannam@167: #ifdef __cplusplus cannam@167: (void) $as_decl_use; cannam@167: #else cannam@167: (void) $as_decl_name; cannam@167: #endif cannam@167: #endif cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: eval "$3=yes" cannam@167: else cannam@167: eval "$3=no" cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: fi cannam@167: eval ac_res=\$$3 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 cannam@167: $as_echo "$ac_res" >&6; } cannam@167: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@167: cannam@167: } # ac_fn_c_check_decl cannam@167: cannam@167: # ac_fn_f77_try_compile LINENO cannam@167: # ---------------------------- cannam@167: # Try to compile conftest.$ac_ext, and return whether this succeeded. cannam@167: ac_fn_f77_try_compile () cannam@167: { cannam@167: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@167: rm -f conftest.$ac_objext cannam@167: if { { ac_try="$ac_compile" cannam@167: case "(($ac_try" in cannam@167: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@167: *) ac_try_echo=$ac_try;; cannam@167: esac cannam@167: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@167: $as_echo "$ac_try_echo"; } >&5 cannam@167: (eval "$ac_compile") 2>conftest.err cannam@167: ac_status=$? cannam@167: if test -s conftest.err; then cannam@167: grep -v '^ *+' conftest.err >conftest.er1 cannam@167: cat conftest.er1 >&5 cannam@167: mv -f conftest.er1 conftest.err cannam@167: fi cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } && { cannam@167: test -z "$ac_f77_werror_flag" || cannam@167: test ! -s conftest.err cannam@167: } && test -s conftest.$ac_objext; then : cannam@167: ac_retval=0 cannam@167: else cannam@167: $as_echo "$as_me: failed program was:" >&5 cannam@167: sed 's/^/| /' conftest.$ac_ext >&5 cannam@167: cannam@167: ac_retval=1 cannam@167: fi cannam@167: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@167: as_fn_set_status $ac_retval cannam@167: cannam@167: } # ac_fn_f77_try_compile cannam@167: cannam@167: # ac_fn_f77_try_link LINENO cannam@167: # ------------------------- cannam@167: # Try to link conftest.$ac_ext, and return whether this succeeded. cannam@167: ac_fn_f77_try_link () cannam@167: { cannam@167: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@167: rm -f conftest.$ac_objext conftest$ac_exeext cannam@167: if { { ac_try="$ac_link" cannam@167: case "(($ac_try" in cannam@167: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@167: *) ac_try_echo=$ac_try;; cannam@167: esac cannam@167: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@167: $as_echo "$ac_try_echo"; } >&5 cannam@167: (eval "$ac_link") 2>conftest.err cannam@167: ac_status=$? cannam@167: if test -s conftest.err; then cannam@167: grep -v '^ *+' conftest.err >conftest.er1 cannam@167: cat conftest.er1 >&5 cannam@167: mv -f conftest.er1 conftest.err cannam@167: fi cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } && { cannam@167: test -z "$ac_f77_werror_flag" || cannam@167: test ! -s conftest.err cannam@167: } && test -s conftest$ac_exeext && { cannam@167: test "$cross_compiling" = yes || cannam@167: test -x conftest$ac_exeext cannam@167: }; then : cannam@167: ac_retval=0 cannam@167: else cannam@167: $as_echo "$as_me: failed program was:" >&5 cannam@167: sed 's/^/| /' conftest.$ac_ext >&5 cannam@167: cannam@167: ac_retval=1 cannam@167: fi cannam@167: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information cannam@167: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would cannam@167: # interfere with the next link command; also delete a directory that is cannam@167: # left behind by Apple's compiler. We do this before executing the actions. cannam@167: rm -rf conftest.dSYM conftest_ipa8_conftest.oo cannam@167: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno cannam@167: as_fn_set_status $ac_retval cannam@167: cannam@167: } # ac_fn_f77_try_link cannam@167: cat >config.log <<_ACEOF cannam@167: This file contains any messages produced by compilers while cannam@167: running configure, to aid debugging if configure makes a mistake. cannam@167: cannam@167: It was created by fftw $as_me 3.3.8, which was cannam@167: generated by GNU Autoconf 2.69. Invocation command line was cannam@167: cannam@167: $ $0 $@ cannam@167: cannam@167: _ACEOF cannam@167: exec 5>>config.log cannam@167: { cannam@167: cat <<_ASUNAME cannam@167: ## --------- ## cannam@167: ## Platform. ## cannam@167: ## --------- ## cannam@167: cannam@167: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` cannam@167: uname -m = `(uname -m) 2>/dev/null || echo unknown` cannam@167: uname -r = `(uname -r) 2>/dev/null || echo unknown` cannam@167: uname -s = `(uname -s) 2>/dev/null || echo unknown` cannam@167: uname -v = `(uname -v) 2>/dev/null || echo unknown` cannam@167: cannam@167: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` cannam@167: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` cannam@167: cannam@167: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` cannam@167: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` cannam@167: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` cannam@167: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` cannam@167: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` cannam@167: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` cannam@167: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` cannam@167: cannam@167: _ASUNAME cannam@167: cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: $as_echo "PATH: $as_dir" cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: } >&5 cannam@167: cannam@167: cat >&5 <<_ACEOF cannam@167: cannam@167: cannam@167: ## ----------- ## cannam@167: ## Core tests. ## cannam@167: ## ----------- ## cannam@167: cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: # Keep a trace of the command line. cannam@167: # Strip out --no-create and --no-recursion so they do not pile up. cannam@167: # Strip out --silent because we don't want to record it for future runs. cannam@167: # Also quote any args containing shell meta-characters. cannam@167: # Make two passes to allow for proper duplicate-argument suppression. cannam@167: ac_configure_args= cannam@167: ac_configure_args0= cannam@167: ac_configure_args1= cannam@167: ac_must_keep_next=false cannam@167: for ac_pass in 1 2 cannam@167: do cannam@167: for ac_arg cannam@167: do cannam@167: case $ac_arg in cannam@167: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; cannam@167: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ cannam@167: | -silent | --silent | --silen | --sile | --sil) cannam@167: continue ;; cannam@167: *\'*) cannam@167: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; cannam@167: esac cannam@167: case $ac_pass in cannam@167: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; cannam@167: 2) cannam@167: as_fn_append ac_configure_args1 " '$ac_arg'" cannam@167: if test $ac_must_keep_next = true; then cannam@167: ac_must_keep_next=false # Got value, back to normal. cannam@167: else cannam@167: case $ac_arg in cannam@167: *=* | --config-cache | -C | -disable-* | --disable-* \ cannam@167: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ cannam@167: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ cannam@167: | -with-* | --with-* | -without-* | --without-* | --x) cannam@167: case "$ac_configure_args0 " in cannam@167: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; cannam@167: esac cannam@167: ;; cannam@167: -* ) ac_must_keep_next=true ;; cannam@167: esac cannam@167: fi cannam@167: as_fn_append ac_configure_args " '$ac_arg'" cannam@167: ;; cannam@167: esac cannam@167: done cannam@167: done cannam@167: { ac_configure_args0=; unset ac_configure_args0;} cannam@167: { ac_configure_args1=; unset ac_configure_args1;} cannam@167: cannam@167: # When interrupted or exit'd, cleanup temporary files, and complete cannam@167: # config.log. We remove comments because anyway the quotes in there cannam@167: # would cause problems or look ugly. cannam@167: # WARNING: Use '\'' to represent an apostrophe within the trap. cannam@167: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. cannam@167: trap 'exit_status=$? cannam@167: # Save into config.log some information that might help in debugging. cannam@167: { cannam@167: echo cannam@167: cannam@167: $as_echo "## ---------------- ## cannam@167: ## Cache variables. ## cannam@167: ## ---------------- ##" cannam@167: echo cannam@167: # The following way of writing the cache mishandles newlines in values, cannam@167: ( cannam@167: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do cannam@167: eval ac_val=\$$ac_var cannam@167: case $ac_val in #( cannam@167: *${as_nl}*) cannam@167: case $ac_var in #( cannam@167: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 cannam@167: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; cannam@167: esac cannam@167: case $ac_var in #( cannam@167: _ | IFS | as_nl) ;; #( cannam@167: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( cannam@167: *) { eval $ac_var=; unset $ac_var;} ;; cannam@167: esac ;; cannam@167: esac cannam@167: done cannam@167: (set) 2>&1 | cannam@167: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( cannam@167: *${as_nl}ac_space=\ *) cannam@167: sed -n \ cannam@167: "s/'\''/'\''\\\\'\'''\''/g; cannam@167: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" cannam@167: ;; #( cannam@167: *) cannam@167: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" cannam@167: ;; cannam@167: esac | cannam@167: sort cannam@167: ) cannam@167: echo cannam@167: cannam@167: $as_echo "## ----------------- ## cannam@167: ## Output variables. ## cannam@167: ## ----------------- ##" cannam@167: echo cannam@167: for ac_var in $ac_subst_vars cannam@167: do cannam@167: eval ac_val=\$$ac_var cannam@167: case $ac_val in cannam@167: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; cannam@167: esac cannam@167: $as_echo "$ac_var='\''$ac_val'\''" cannam@167: done | sort cannam@167: echo cannam@167: cannam@167: if test -n "$ac_subst_files"; then cannam@167: $as_echo "## ------------------- ## cannam@167: ## File substitutions. ## cannam@167: ## ------------------- ##" cannam@167: echo cannam@167: for ac_var in $ac_subst_files cannam@167: do cannam@167: eval ac_val=\$$ac_var cannam@167: case $ac_val in cannam@167: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; cannam@167: esac cannam@167: $as_echo "$ac_var='\''$ac_val'\''" cannam@167: done | sort cannam@167: echo cannam@167: fi cannam@167: cannam@167: if test -s confdefs.h; then cannam@167: $as_echo "## ----------- ## cannam@167: ## confdefs.h. ## cannam@167: ## ----------- ##" cannam@167: echo cannam@167: cat confdefs.h cannam@167: echo cannam@167: fi cannam@167: test "$ac_signal" != 0 && cannam@167: $as_echo "$as_me: caught signal $ac_signal" cannam@167: $as_echo "$as_me: exit $exit_status" cannam@167: } >&5 cannam@167: rm -f core *.core core.conftest.* && cannam@167: rm -f -r conftest* confdefs* conf$$* $ac_clean_files && cannam@167: exit $exit_status cannam@167: ' 0 cannam@167: for ac_signal in 1 2 13 15; do cannam@167: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal cannam@167: done cannam@167: ac_signal=0 cannam@167: cannam@167: # confdefs.h avoids OS command line length limits that DEFS can exceed. cannam@167: rm -f -r conftest* confdefs.h cannam@167: cannam@167: $as_echo "/* confdefs.h */" > confdefs.h cannam@167: cannam@167: # Predefined preprocessor variables. cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define PACKAGE_NAME "$PACKAGE_NAME" cannam@167: _ACEOF cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" cannam@167: _ACEOF cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define PACKAGE_VERSION "$PACKAGE_VERSION" cannam@167: _ACEOF cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define PACKAGE_STRING "$PACKAGE_STRING" cannam@167: _ACEOF cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" cannam@167: _ACEOF cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define PACKAGE_URL "$PACKAGE_URL" cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: # Let the site file select an alternate cache file if it wants to. cannam@167: # Prefer an explicitly selected file to automatically selected ones. cannam@167: ac_site_file1=NONE cannam@167: ac_site_file2=NONE cannam@167: if test -n "$CONFIG_SITE"; then cannam@167: # We do not want a PATH search for config.site. cannam@167: case $CONFIG_SITE in #(( cannam@167: -*) ac_site_file1=./$CONFIG_SITE;; cannam@167: */*) ac_site_file1=$CONFIG_SITE;; cannam@167: *) ac_site_file1=./$CONFIG_SITE;; cannam@167: esac cannam@167: elif test "x$prefix" != xNONE; then cannam@167: ac_site_file1=$prefix/share/config.site cannam@167: ac_site_file2=$prefix/etc/config.site cannam@167: else cannam@167: ac_site_file1=$ac_default_prefix/share/config.site cannam@167: ac_site_file2=$ac_default_prefix/etc/config.site cannam@167: fi cannam@167: for ac_site_file in "$ac_site_file1" "$ac_site_file2" cannam@167: do cannam@167: test "x$ac_site_file" = xNONE && continue cannam@167: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 cannam@167: $as_echo "$as_me: loading site script $ac_site_file" >&6;} cannam@167: sed 's/^/| /' "$ac_site_file" >&5 cannam@167: . "$ac_site_file" \ cannam@167: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error $? "failed to load site script $ac_site_file cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: fi cannam@167: done cannam@167: cannam@167: if test -r "$cache_file"; then cannam@167: # Some versions of bash will fail to source /dev/null (special files cannam@167: # actually), so we avoid doing that. DJGPP emulates it as a regular file. cannam@167: if test /dev/null != "$cache_file" && test -f "$cache_file"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 cannam@167: $as_echo "$as_me: loading cache $cache_file" >&6;} cannam@167: case $cache_file in cannam@167: [\\/]* | ?:[\\/]* ) . "$cache_file";; cannam@167: *) . "./$cache_file";; cannam@167: esac cannam@167: fi cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 cannam@167: $as_echo "$as_me: creating cache $cache_file" >&6;} cannam@167: >$cache_file cannam@167: fi cannam@167: cannam@167: # Check that the precious variables saved in the cache have kept the same cannam@167: # value. cannam@167: ac_cache_corrupted=false cannam@167: for ac_var in $ac_precious_vars; do cannam@167: eval ac_old_set=\$ac_cv_env_${ac_var}_set cannam@167: eval ac_new_set=\$ac_env_${ac_var}_set cannam@167: eval ac_old_val=\$ac_cv_env_${ac_var}_value cannam@167: eval ac_new_val=\$ac_env_${ac_var}_value cannam@167: case $ac_old_set,$ac_new_set in cannam@167: set,) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 cannam@167: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} cannam@167: ac_cache_corrupted=: ;; cannam@167: ,set) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 cannam@167: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} cannam@167: ac_cache_corrupted=: ;; cannam@167: ,);; cannam@167: *) cannam@167: if test "x$ac_old_val" != "x$ac_new_val"; then cannam@167: # differences in whitespace do not lead to failure. cannam@167: ac_old_val_w=`echo x $ac_old_val` cannam@167: ac_new_val_w=`echo x $ac_new_val` cannam@167: if test "$ac_old_val_w" != "$ac_new_val_w"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 cannam@167: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} cannam@167: ac_cache_corrupted=: cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 cannam@167: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} cannam@167: eval $ac_var=\$ac_old_val cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 cannam@167: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 cannam@167: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} cannam@167: fi;; cannam@167: esac cannam@167: # Pass precious variables to config.status. cannam@167: if test "$ac_new_set" = set; then cannam@167: case $ac_new_val in cannam@167: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; cannam@167: *) ac_arg=$ac_var=$ac_new_val ;; cannam@167: esac cannam@167: case " $ac_configure_args " in cannam@167: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. cannam@167: *) as_fn_append ac_configure_args " '$ac_arg'" ;; cannam@167: esac cannam@167: fi cannam@167: done cannam@167: if $ac_cache_corrupted; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 cannam@167: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} cannam@167: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 cannam@167: fi cannam@167: ## -------------------- ## cannam@167: ## Main body of script. ## cannam@167: ## -------------------- ## cannam@167: cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: SHARED_VERSION_INFO="8:8:5" # CURRENT:REVISION:AGE cannam@167: cannam@167: am__api_version='1.15' cannam@167: cannam@167: ac_aux_dir= cannam@167: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do cannam@167: if test -f "$ac_dir/install-sh"; then cannam@167: ac_aux_dir=$ac_dir cannam@167: ac_install_sh="$ac_aux_dir/install-sh -c" cannam@167: break cannam@167: elif test -f "$ac_dir/install.sh"; then cannam@167: ac_aux_dir=$ac_dir cannam@167: ac_install_sh="$ac_aux_dir/install.sh -c" cannam@167: break cannam@167: elif test -f "$ac_dir/shtool"; then cannam@167: ac_aux_dir=$ac_dir cannam@167: ac_install_sh="$ac_aux_dir/shtool install -c" cannam@167: break cannam@167: fi cannam@167: done cannam@167: if test -z "$ac_aux_dir"; then cannam@167: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: # These three variables are undocumented and unsupported, cannam@167: # and are intended to be withdrawn in a future Autoconf release. cannam@167: # They can cause serious problems if a builder's source tree is in a directory cannam@167: # whose full name contains unusual characters. cannam@167: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. cannam@167: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. cannam@167: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. cannam@167: cannam@167: cannam@167: # Find a good install program. We prefer a C program (faster), cannam@167: # so one script is as good as another. But avoid the broken or cannam@167: # incompatible versions: cannam@167: # SysV /etc/install, /usr/sbin/install cannam@167: # SunOS /usr/etc/install cannam@167: # IRIX /sbin/install cannam@167: # AIX /bin/install cannam@167: # AmigaOS /C/install, which installs bootblocks on floppy discs cannam@167: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag cannam@167: # AFS /usr/afsws/bin/install, which mishandles nonexistent args cannam@167: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" cannam@167: # OS/2's system install, which has a completely different semantic cannam@167: # ./install, which can be erroneously created by make from ./install.sh. cannam@167: # Reject install programs that cannot install multiple files. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 cannam@167: $as_echo_n "checking for a BSD-compatible install... " >&6; } cannam@167: if test -z "$INSTALL"; then cannam@167: if ${ac_cv_path_install+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: # Account for people who put trailing slashes in PATH elements. cannam@167: case $as_dir/ in #(( cannam@167: ./ | .// | /[cC]/* | \ cannam@167: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ cannam@167: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ cannam@167: /usr/ucb/* ) ;; cannam@167: *) cannam@167: # OSF1 and SCO ODT 3.0 have their own names for install. cannam@167: # Don't use installbsd from OSF since it installs stuff as root cannam@167: # by default. cannam@167: for ac_prog in ginstall scoinst install; do cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then cannam@167: if test $ac_prog = install && cannam@167: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then cannam@167: # AIX install. It has an incompatible calling convention. cannam@167: : cannam@167: elif test $ac_prog = install && cannam@167: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then cannam@167: # program-specific install script used by HP pwplus--don't use. cannam@167: : cannam@167: else cannam@167: rm -rf conftest.one conftest.two conftest.dir cannam@167: echo one > conftest.one cannam@167: echo two > conftest.two cannam@167: mkdir conftest.dir cannam@167: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && cannam@167: test -s conftest.one && test -s conftest.two && cannam@167: test -s conftest.dir/conftest.one && cannam@167: test -s conftest.dir/conftest.two cannam@167: then cannam@167: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" cannam@167: break 3 cannam@167: fi cannam@167: fi cannam@167: fi cannam@167: done cannam@167: done cannam@167: ;; cannam@167: esac cannam@167: cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: rm -rf conftest.one conftest.two conftest.dir cannam@167: cannam@167: fi cannam@167: if test "${ac_cv_path_install+set}" = set; then cannam@167: INSTALL=$ac_cv_path_install cannam@167: else cannam@167: # As a last resort, use the slow shell script. Don't cache a cannam@167: # value for INSTALL within a source directory, because that will cannam@167: # break other packages using the cache if that directory is cannam@167: # removed, or if the value is a relative name. cannam@167: INSTALL=$ac_install_sh cannam@167: fi cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 cannam@167: $as_echo "$INSTALL" >&6; } cannam@167: cannam@167: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. cannam@167: # It thinks the first close brace ends the variable substitution. cannam@167: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' cannam@167: cannam@167: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' cannam@167: cannam@167: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 cannam@167: $as_echo_n "checking whether build environment is sane... " >&6; } cannam@167: # Reject unsafe characters in $srcdir or the absolute working directory cannam@167: # name. Accept space and tab only in the latter. cannam@167: am_lf=' cannam@167: ' cannam@167: case `pwd` in cannam@167: *[\\\"\#\$\&\'\`$am_lf]*) cannam@167: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; cannam@167: esac cannam@167: case $srcdir in cannam@167: *[\\\"\#\$\&\'\`$am_lf\ \ ]*) cannam@167: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; cannam@167: esac cannam@167: cannam@167: # Do 'set' in a subshell so we don't clobber the current shell's cannam@167: # arguments. Must try -L first in case configure is actually a cannam@167: # symlink; some systems play weird games with the mod time of symlinks cannam@167: # (eg FreeBSD returns the mod time of the symlink's containing cannam@167: # directory). cannam@167: if ( cannam@167: am_has_slept=no cannam@167: for am_try in 1 2; do cannam@167: echo "timestamp, slept: $am_has_slept" > conftest.file cannam@167: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` cannam@167: if test "$*" = "X"; then cannam@167: # -L didn't work. cannam@167: set X `ls -t "$srcdir/configure" conftest.file` cannam@167: fi cannam@167: if test "$*" != "X $srcdir/configure conftest.file" \ cannam@167: && test "$*" != "X conftest.file $srcdir/configure"; then cannam@167: cannam@167: # If neither matched, then we have a broken ls. This can happen cannam@167: # if, for instance, CONFIG_SHELL is bash and it inherits a cannam@167: # broken ls alias from the environment. This has actually cannam@167: # happened. Such a system could not be considered "sane". cannam@167: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken cannam@167: alias in your environment" "$LINENO" 5 cannam@167: fi cannam@167: if test "$2" = conftest.file || test $am_try -eq 2; then cannam@167: break cannam@167: fi cannam@167: # Just in case. cannam@167: sleep 1 cannam@167: am_has_slept=yes cannam@167: done cannam@167: test "$2" = conftest.file cannam@167: ) cannam@167: then cannam@167: # Ok. cannam@167: : cannam@167: else cannam@167: as_fn_error $? "newly created file is older than distributed files! cannam@167: Check your system clock" "$LINENO" 5 cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@167: $as_echo "yes" >&6; } cannam@167: # If we didn't sleep, we still need to ensure time stamps of config.status and cannam@167: # generated files are strictly newer. cannam@167: am_sleep_pid= cannam@167: if grep 'slept: no' conftest.file >/dev/null 2>&1; then cannam@167: ( sleep 1 ) & cannam@167: am_sleep_pid=$! cannam@167: fi cannam@167: cannam@167: rm -f conftest.file cannam@167: cannam@167: test "$program_prefix" != NONE && cannam@167: program_transform_name="s&^&$program_prefix&;$program_transform_name" cannam@167: # Use a double $ so make ignores it. cannam@167: test "$program_suffix" != NONE && cannam@167: program_transform_name="s&\$&$program_suffix&;$program_transform_name" cannam@167: # Double any \ or $. cannam@167: # By default was `s,x,x', remove it if useless. cannam@167: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' cannam@167: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` cannam@167: cannam@167: # Expand $ac_aux_dir to an absolute path. cannam@167: am_aux_dir=`cd "$ac_aux_dir" && pwd` cannam@167: cannam@167: if test x"${MISSING+set}" != xset; then cannam@167: case $am_aux_dir in cannam@167: *\ * | *\ *) cannam@167: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; cannam@167: *) cannam@167: MISSING="\${SHELL} $am_aux_dir/missing" ;; cannam@167: esac cannam@167: fi cannam@167: # Use eval to expand $SHELL cannam@167: if eval "$MISSING --is-lightweight"; then cannam@167: am_missing_run="$MISSING " cannam@167: else cannam@167: am_missing_run= cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 cannam@167: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} cannam@167: fi cannam@167: cannam@167: if test x"${install_sh+set}" != xset; then cannam@167: case $am_aux_dir in cannam@167: *\ * | *\ *) cannam@167: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; cannam@167: *) cannam@167: install_sh="\${SHELL} $am_aux_dir/install-sh" cannam@167: esac cannam@167: fi cannam@167: cannam@167: # Installed binaries are usually stripped using 'strip' when the user cannam@167: # run "make install-strip". However 'strip' might not be the right cannam@167: # tool to use in cross-compilation environments, therefore Automake cannam@167: # will honor the 'STRIP' environment variable to overrule this program. cannam@167: if test "$cross_compiling" != no; then cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. cannam@167: set dummy ${ac_tool_prefix}strip; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_STRIP+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$STRIP"; then cannam@167: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_STRIP="${ac_tool_prefix}strip" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: STRIP=$ac_cv_prog_STRIP cannam@167: if test -n "$STRIP"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 cannam@167: $as_echo "$STRIP" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: if test -z "$ac_cv_prog_STRIP"; then cannam@167: ac_ct_STRIP=$STRIP cannam@167: # Extract the first word of "strip", so it can be a program name with args. cannam@167: set dummy strip; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_STRIP+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_STRIP"; then cannam@167: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_STRIP="strip" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP cannam@167: if test -n "$ac_ct_STRIP"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 cannam@167: $as_echo "$ac_ct_STRIP" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: if test "x$ac_ct_STRIP" = x; then cannam@167: STRIP=":" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: STRIP=$ac_ct_STRIP cannam@167: fi cannam@167: else cannam@167: STRIP="$ac_cv_prog_STRIP" cannam@167: fi cannam@167: cannam@167: fi cannam@167: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 cannam@167: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } cannam@167: if test -z "$MKDIR_P"; then cannam@167: if ${ac_cv_path_mkdir+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_prog in mkdir gmkdir; do cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue cannam@167: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( cannam@167: 'mkdir (GNU coreutils) '* | \ cannam@167: 'mkdir (coreutils) '* | \ cannam@167: 'mkdir (fileutils) '4.1*) cannam@167: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext cannam@167: break 3;; cannam@167: esac cannam@167: done cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: cannam@167: test -d ./--version && rmdir ./--version cannam@167: if test "${ac_cv_path_mkdir+set}" = set; then cannam@167: MKDIR_P="$ac_cv_path_mkdir -p" cannam@167: else cannam@167: # As a last resort, use the slow shell script. Don't cache a cannam@167: # value for MKDIR_P within a source directory, because that will cannam@167: # break other packages using the cache if that directory is cannam@167: # removed, or if the value is a relative name. cannam@167: MKDIR_P="$ac_install_sh -d" cannam@167: fi cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 cannam@167: $as_echo "$MKDIR_P" >&6; } cannam@167: cannam@167: for ac_prog in gawk mawk nawk awk cannam@167: do cannam@167: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@167: set dummy $ac_prog; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_AWK+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$AWK"; then cannam@167: ac_cv_prog_AWK="$AWK" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_AWK="$ac_prog" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: AWK=$ac_cv_prog_AWK cannam@167: if test -n "$AWK"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 cannam@167: $as_echo "$AWK" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: test -n "$AWK" && break cannam@167: done cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 cannam@167: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } cannam@167: set x ${MAKE-make} cannam@167: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` cannam@167: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat >conftest.make <<\_ACEOF cannam@167: SHELL = /bin/sh cannam@167: all: cannam@167: @echo '@@@%%%=$(MAKE)=@@@%%%' cannam@167: _ACEOF cannam@167: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. cannam@167: case `${MAKE-make} -f conftest.make 2>/dev/null` in cannam@167: *@@@%%%=?*=@@@%%%*) cannam@167: eval ac_cv_prog_make_${ac_make}_set=yes;; cannam@167: *) cannam@167: eval ac_cv_prog_make_${ac_make}_set=no;; cannam@167: esac cannam@167: rm -f conftest.make cannam@167: fi cannam@167: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@167: $as_echo "yes" >&6; } cannam@167: SET_MAKE= cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: SET_MAKE="MAKE=${MAKE-make}" cannam@167: fi cannam@167: cannam@167: rm -rf .tst 2>/dev/null cannam@167: mkdir .tst 2>/dev/null cannam@167: if test -d .tst; then cannam@167: am__leading_dot=. cannam@167: else cannam@167: am__leading_dot=_ cannam@167: fi cannam@167: rmdir .tst 2>/dev/null cannam@167: cannam@167: # Check whether --enable-silent-rules was given. cannam@167: if test "${enable_silent_rules+set}" = set; then : cannam@167: enableval=$enable_silent_rules; cannam@167: fi cannam@167: cannam@167: case $enable_silent_rules in # ((( cannam@167: yes) AM_DEFAULT_VERBOSITY=0;; cannam@167: no) AM_DEFAULT_VERBOSITY=1;; cannam@167: *) AM_DEFAULT_VERBOSITY=1;; cannam@167: esac cannam@167: am_make=${MAKE-make} cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 cannam@167: $as_echo_n "checking whether $am_make supports nested variables... " >&6; } cannam@167: if ${am_cv_make_support_nested_variables+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if $as_echo 'TRUE=$(BAR$(V)) cannam@167: BAR0=false cannam@167: BAR1=true cannam@167: V=1 cannam@167: am__doit: cannam@167: @$(TRUE) cannam@167: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then cannam@167: am_cv_make_support_nested_variables=yes cannam@167: else cannam@167: am_cv_make_support_nested_variables=no cannam@167: fi cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 cannam@167: $as_echo "$am_cv_make_support_nested_variables" >&6; } cannam@167: if test $am_cv_make_support_nested_variables = yes; then cannam@167: AM_V='$(V)' cannam@167: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' cannam@167: else cannam@167: AM_V=$AM_DEFAULT_VERBOSITY cannam@167: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY cannam@167: fi cannam@167: AM_BACKSLASH='\' cannam@167: cannam@167: if test "`cd $srcdir && pwd`" != "`pwd`"; then cannam@167: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output cannam@167: # is not polluted with repeated "-I." cannam@167: am__isrc=' -I$(srcdir)' cannam@167: # test to see if srcdir already configured cannam@167: if test -f $srcdir/config.status; then cannam@167: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 cannam@167: fi cannam@167: fi cannam@167: cannam@167: # test whether we have cygpath cannam@167: if test -z "$CYGPATH_W"; then cannam@167: if (cygpath --version) >/dev/null 2>/dev/null; then cannam@167: CYGPATH_W='cygpath -w' cannam@167: else cannam@167: CYGPATH_W=echo cannam@167: fi cannam@167: fi cannam@167: cannam@167: cannam@167: # Define the identity of the package. cannam@167: PACKAGE='fftw' cannam@167: VERSION='3.3.8' cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define PACKAGE "$PACKAGE" cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define VERSION "$VERSION" cannam@167: _ACEOF cannam@167: cannam@167: # Some tools Automake needs. cannam@167: cannam@167: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} cannam@167: cannam@167: cannam@167: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} cannam@167: cannam@167: cannam@167: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} cannam@167: cannam@167: cannam@167: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} cannam@167: cannam@167: cannam@167: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} cannam@167: cannam@167: # For better backward compatibility. To be removed once Automake 1.9.x cannam@167: # dies out for good. For more background, see: cannam@167: # cannam@167: # cannam@167: mkdir_p='$(MKDIR_P)' cannam@167: cannam@167: # We need awk for the "check" target (and possibly the TAP driver). The cannam@167: # system "awk" is bad on some platforms. cannam@167: # Always define AMTAR for backward compatibility. Yes, it's still used cannam@167: # in the wild :-( We should find a proper way to deprecate it ... cannam@167: AMTAR='$${TAR-tar}' cannam@167: cannam@167: cannam@167: # We'll loop over all known methods to create a tar archive until one works. cannam@167: _am_tools='gnutar pax cpio none' cannam@167: cannam@167: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # POSIX will say in a future version that running "rm -f" with no argument cannam@167: # is OK; and we want to be able to make that assumption in our Makefile cannam@167: # recipes. So use an aggressive probe to check that the usage we want is cannam@167: # actually supported "in the wild" to an acceptable degree. cannam@167: # See automake bug#10828. cannam@167: # To make any issue more visible, cause the running configure to be aborted cannam@167: # by default if the 'rm' program in use doesn't match our expectations; the cannam@167: # user can still override this though. cannam@167: if rm -f && rm -fr && rm -rf; then : OK; else cannam@167: cat >&2 <<'END' cannam@167: Oops! cannam@167: cannam@167: Your 'rm' program seems unable to run without file operands specified cannam@167: on the command line, even when the '-f' option is present. This is contrary cannam@167: to the behaviour of most rm programs out there, and not conforming with cannam@167: the upcoming POSIX standard: cannam@167: cannam@167: Please tell bug-automake@gnu.org about your system, including the value cannam@167: of your $PATH and any error possibly output before this message. This cannam@167: can help us improve future automake versions. cannam@167: cannam@167: END cannam@167: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then cannam@167: echo 'Configuration will proceed anyway, since you have set the' >&2 cannam@167: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 cannam@167: echo >&2 cannam@167: else cannam@167: cat >&2 <<'END' cannam@167: Aborting the configuration process, to ensure you take notice of the issue. cannam@167: cannam@167: You can download and install GNU coreutils to get an 'rm' implementation cannam@167: that behaves properly: . cannam@167: cannam@167: If you want to complete the configuration process using your problematic cannam@167: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM cannam@167: to "yes", and re-run configure. cannam@167: cannam@167: END cannam@167: as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 cannam@167: fi cannam@167: fi cannam@167: cannam@167: ac_config_headers="$ac_config_headers config.h" cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 cannam@167: $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } cannam@167: # Check whether --enable-maintainer-mode was given. cannam@167: if test "${enable_maintainer_mode+set}" = set; then : cannam@167: enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval cannam@167: else cannam@167: USE_MAINTAINER_MODE=no cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 cannam@167: $as_echo "$USE_MAINTAINER_MODE" >&6; } cannam@167: if test $USE_MAINTAINER_MODE = yes; then cannam@167: MAINTAINER_MODE_TRUE= cannam@167: MAINTAINER_MODE_FALSE='#' cannam@167: else cannam@167: MAINTAINER_MODE_TRUE='#' cannam@167: MAINTAINER_MODE_FALSE= cannam@167: fi cannam@167: cannam@167: MAINT=$MAINTAINER_MODE_TRUE cannam@167: cannam@167: cannam@167: cannam@167: # Check whether --enable-shared was given. cannam@167: if test "${enable_shared+set}" = set; then : cannam@167: enableval=$enable_shared; p=${PACKAGE-default} cannam@167: case $enableval in cannam@167: yes) enable_shared=yes ;; cannam@167: no) enable_shared=no ;; cannam@167: *) cannam@167: enable_shared=no cannam@167: # Look at the argument we got. We use all the common list separators. cannam@167: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, cannam@167: for pkg in $enableval; do cannam@167: IFS=$lt_save_ifs cannam@167: if test "X$pkg" = "X$p"; then cannam@167: enable_shared=yes cannam@167: fi cannam@167: done cannam@167: IFS=$lt_save_ifs cannam@167: ;; cannam@167: esac cannam@167: else cannam@167: enable_shared=no cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # Make sure we can run config.sub. cannam@167: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || cannam@167: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 cannam@167: $as_echo_n "checking build system type... " >&6; } cannam@167: if ${ac_cv_build+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_build_alias=$build_alias cannam@167: test "x$ac_build_alias" = x && cannam@167: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` cannam@167: test "x$ac_build_alias" = x && cannam@167: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 cannam@167: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || cannam@167: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 cannam@167: $as_echo "$ac_cv_build" >&6; } cannam@167: case $ac_cv_build in cannam@167: *-*-*) ;; cannam@167: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; cannam@167: esac cannam@167: build=$ac_cv_build cannam@167: ac_save_IFS=$IFS; IFS='-' cannam@167: set x $ac_cv_build cannam@167: shift cannam@167: build_cpu=$1 cannam@167: build_vendor=$2 cannam@167: shift; shift cannam@167: # Remember, the first character of IFS is used to create $*, cannam@167: # except with old shells: cannam@167: build_os=$* cannam@167: IFS=$ac_save_IFS cannam@167: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 cannam@167: $as_echo_n "checking host system type... " >&6; } cannam@167: if ${ac_cv_host+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test "x$host_alias" = x; then cannam@167: ac_cv_host=$ac_cv_build cannam@167: else cannam@167: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || cannam@167: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 cannam@167: $as_echo "$ac_cv_host" >&6; } cannam@167: case $ac_cv_host in cannam@167: *-*-*) ;; cannam@167: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; cannam@167: esac cannam@167: host=$ac_cv_host cannam@167: ac_save_IFS=$IFS; IFS='-' cannam@167: set x $ac_cv_host cannam@167: shift cannam@167: host_cpu=$1 cannam@167: host_vendor=$2 cannam@167: shift; shift cannam@167: # Remember, the first character of IFS is used to create $*, cannam@167: # except with old shells: cannam@167: host_os=$* cannam@167: IFS=$ac_save_IFS cannam@167: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac cannam@167: cannam@167: cannam@167: cannam@167: case "${host_cpu}" in cannam@167: powerpc*) arch_prefers_fma=yes;; cannam@167: ia64*) arch_prefers_fma=yes;; cannam@167: hppa*) arch_prefers_fma=yes;; cannam@167: mips64*) arch_prefers_fma=yes;; cannam@167: *) arch_prefers_fma=no;; cannam@167: esac cannam@167: cannam@167: # Check whether --enable-debug was given. cannam@167: if test "${enable_debug+set}" = set; then : cannam@167: enableval=$enable_debug; ok=$enableval cannam@167: else cannam@167: ok=no cannam@167: fi cannam@167: cannam@167: if test "$ok" = "yes"; then cannam@167: cannam@167: $as_echo "#define FFTW_DEBUG 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: # Check whether --enable-doc was given. cannam@167: if test "${enable_doc+set}" = set; then : cannam@167: enableval=$enable_doc; build_doc=$enableval cannam@167: else cannam@167: build_doc=yes cannam@167: fi cannam@167: cannam@167: if test x"$build_doc" = xyes; then cannam@167: BUILD_DOC_TRUE= cannam@167: BUILD_DOC_FALSE='#' cannam@167: else cannam@167: BUILD_DOC_TRUE='#' cannam@167: BUILD_DOC_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --enable-random-estimator was given. cannam@167: if test "${enable_random_estimator+set}" = set; then : cannam@167: enableval=$enable_random_estimator; ok=$enableval cannam@167: else cannam@167: ok=no cannam@167: fi cannam@167: cannam@167: if test "$ok" = "yes"; then cannam@167: cannam@167: $as_echo "#define FFTW_RANDOM_ESTIMATOR 1" >>confdefs.h cannam@167: cannam@167: CHECK_PL_OPTS="--estimate" cannam@167: fi cannam@167: cannam@167: # Check whether --enable-alloca was given. cannam@167: if test "${enable_alloca+set}" = set; then : cannam@167: enableval=$enable_alloca; ok=$enableval cannam@167: else cannam@167: ok=yes cannam@167: fi cannam@167: cannam@167: if test "$ok" = "yes"; then cannam@167: cannam@167: $as_echo "#define FFTW_ENABLE_ALLOCA 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: # Check whether --enable-single was given. cannam@167: if test "${enable_single+set}" = set; then : cannam@167: enableval=$enable_single; ok=$enableval cannam@167: else cannam@167: ok=no cannam@167: fi cannam@167: cannam@167: # Check whether --enable-float was given. cannam@167: if test "${enable_float+set}" = set; then : cannam@167: enableval=$enable_float; ok=$enableval cannam@167: fi cannam@167: cannam@167: if test "$ok" = "yes"; then cannam@167: cannam@167: $as_echo "#define FFTW_SINGLE 1" >>confdefs.h cannam@167: cannam@167: cannam@167: $as_echo "#define BENCHFFT_SINGLE 1" >>confdefs.h cannam@167: cannam@167: PRECISION=s cannam@167: else cannam@167: PRECISION=d cannam@167: fi cannam@167: if test "$ok" = "yes"; then cannam@167: SINGLE_TRUE= cannam@167: SINGLE_FALSE='#' cannam@167: else cannam@167: SINGLE_TRUE='#' cannam@167: SINGLE_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --enable-long-double was given. cannam@167: if test "${enable_long_double+set}" = set; then : cannam@167: enableval=$enable_long_double; ok=$enableval cannam@167: else cannam@167: ok=no cannam@167: fi cannam@167: cannam@167: if test "$ok" = "yes"; then cannam@167: if test "$PRECISION" = "s"; then cannam@167: as_fn_error $? "--enable-single/--enable-long-double conflict" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: $as_echo "#define FFTW_LDOUBLE 1" >>confdefs.h cannam@167: cannam@167: cannam@167: $as_echo "#define BENCHFFT_LDOUBLE 1" >>confdefs.h cannam@167: cannam@167: PRECISION=l cannam@167: fi cannam@167: if test "$ok" = "yes"; then cannam@167: LDOUBLE_TRUE= cannam@167: LDOUBLE_FALSE='#' cannam@167: else cannam@167: LDOUBLE_TRUE='#' cannam@167: LDOUBLE_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --enable-quad-precision was given. cannam@167: if test "${enable_quad_precision+set}" = set; then : cannam@167: enableval=$enable_quad_precision; ok=$enableval cannam@167: else cannam@167: ok=no cannam@167: fi cannam@167: cannam@167: if test "$ok" = "yes"; then cannam@167: if test "$PRECISION" != "d"; then cannam@167: as_fn_error $? "conflicting precisions specified" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: $as_echo "#define FFTW_QUAD 1" >>confdefs.h cannam@167: cannam@167: cannam@167: $as_echo "#define BENCHFFT_QUAD 1" >>confdefs.h cannam@167: cannam@167: PRECISION=q cannam@167: fi cannam@167: if test "$ok" = "yes"; then cannam@167: QUAD_TRUE= cannam@167: QUAD_FALSE='#' cannam@167: else cannam@167: QUAD_TRUE='#' cannam@167: QUAD_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # Check whether --enable-sse was given. cannam@167: if test "${enable_sse+set}" = set; then : cannam@167: enableval=$enable_sse; have_sse=$enableval cannam@167: else cannam@167: have_sse=no cannam@167: fi cannam@167: cannam@167: if test "$have_sse" = "yes"; then cannam@167: if test "$PRECISION" != "s"; then cannam@167: as_fn_error $? "SSE requires single precision" "$LINENO" 5 cannam@167: fi cannam@167: fi cannam@167: cannam@167: # Check whether --enable-sse2 was given. cannam@167: if test "${enable_sse2+set}" = set; then : cannam@167: enableval=$enable_sse2; have_sse2=$enableval cannam@167: else cannam@167: have_sse2=no cannam@167: fi cannam@167: cannam@167: if test "$have_sse" = "yes"; then have_sse2=yes; fi cannam@167: if test "$have_sse2" = "yes"; then cannam@167: cannam@167: $as_echo "#define HAVE_SSE2 1" >>confdefs.h cannam@167: cannam@167: if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then cannam@167: as_fn_error $? "SSE2 requires single or double precision" "$LINENO" 5 cannam@167: fi cannam@167: fi cannam@167: if test "$have_sse2" = "yes"; then cannam@167: HAVE_SSE2_TRUE= cannam@167: HAVE_SSE2_FALSE='#' cannam@167: else cannam@167: HAVE_SSE2_TRUE='#' cannam@167: HAVE_SSE2_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --enable-avx was given. cannam@167: if test "${enable_avx+set}" = set; then : cannam@167: enableval=$enable_avx; have_avx=$enableval cannam@167: else cannam@167: have_avx=no cannam@167: fi cannam@167: cannam@167: if test "$have_avx" = "yes"; then cannam@167: cannam@167: $as_echo "#define HAVE_AVX 1" >>confdefs.h cannam@167: cannam@167: if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then cannam@167: as_fn_error $? "AVX requires single or double precision" "$LINENO" 5 cannam@167: fi cannam@167: fi cannam@167: if test "$have_avx" = "yes"; then cannam@167: HAVE_AVX_TRUE= cannam@167: HAVE_AVX_FALSE='#' cannam@167: else cannam@167: HAVE_AVX_TRUE='#' cannam@167: HAVE_AVX_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --enable-avx2 was given. cannam@167: if test "${enable_avx2+set}" = set; then : cannam@167: enableval=$enable_avx2; have_avx2=$enableval cannam@167: else cannam@167: have_avx2=no cannam@167: fi cannam@167: cannam@167: if test "$have_avx2" = "yes"; then cannam@167: cannam@167: $as_echo "#define HAVE_AVX2 1" >>confdefs.h cannam@167: cannam@167: if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then cannam@167: as_fn_error $? "AVX2 requires single or double precision" "$LINENO" 5 cannam@167: fi cannam@167: fi cannam@167: if test "$have_avx2" = "yes"; then cannam@167: HAVE_AVX2_TRUE= cannam@167: HAVE_AVX2_FALSE='#' cannam@167: else cannam@167: HAVE_AVX2_TRUE='#' cannam@167: HAVE_AVX2_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --enable-avx512 was given. cannam@167: if test "${enable_avx512+set}" = set; then : cannam@167: enableval=$enable_avx512; have_avx512=$enableval cannam@167: else cannam@167: have_avx512=no cannam@167: fi cannam@167: cannam@167: if test "$have_avx512" = "yes"; then cannam@167: cannam@167: $as_echo "#define HAVE_AVX512 1" >>confdefs.h cannam@167: cannam@167: if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then cannam@167: as_fn_error $? "AVX512 requires single or double precision" "$LINENO" 5 cannam@167: fi cannam@167: fi cannam@167: if test "$have_avx512" = "yes"; then cannam@167: HAVE_AVX512_TRUE= cannam@167: HAVE_AVX512_FALSE='#' cannam@167: else cannam@167: HAVE_AVX512_TRUE='#' cannam@167: HAVE_AVX512_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --enable-avx-128-fma was given. cannam@167: if test "${enable_avx_128_fma+set}" = set; then : cannam@167: enableval=$enable_avx_128_fma; have_avx_128_fma=$enableval cannam@167: else cannam@167: have_avx_128_fma=no cannam@167: fi cannam@167: cannam@167: if test "$have_avx_128_fma" = "yes"; then cannam@167: cannam@167: $as_echo "#define HAVE_AVX_128_FMA 1" >>confdefs.h cannam@167: cannam@167: AVX_128_FMA_CFLAGS="${AVX_CFLAGS} -mfma4" cannam@167: cannam@167: fi cannam@167: if test "$have_avx_128_fma" = "yes"; then cannam@167: HAVE_AVX_128_FMA_TRUE= cannam@167: HAVE_AVX_128_FMA_FALSE='#' cannam@167: else cannam@167: HAVE_AVX_128_FMA_TRUE='#' cannam@167: HAVE_AVX_128_FMA_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --enable-kcvi was given. cannam@167: if test "${enable_kcvi+set}" = set; then : cannam@167: enableval=$enable_kcvi; have_kcvi=$enableval cannam@167: else cannam@167: have_kcvi=no cannam@167: fi cannam@167: cannam@167: if test "$have_kcvi" = "yes"; then cannam@167: cannam@167: $as_echo "#define HAVE_KCVI 1" >>confdefs.h cannam@167: cannam@167: if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then cannam@167: as_fn_error $? "Knights Corner vector instructions requires single or double precision" "$LINENO" 5 cannam@167: fi cannam@167: fi cannam@167: if test "$have_kcvi" = "yes"; then cannam@167: HAVE_KCVI_TRUE= cannam@167: HAVE_KCVI_FALSE='#' cannam@167: else cannam@167: HAVE_KCVI_TRUE='#' cannam@167: HAVE_KCVI_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --enable-altivec was given. cannam@167: if test "${enable_altivec+set}" = set; then : cannam@167: enableval=$enable_altivec; have_altivec=$enableval cannam@167: else cannam@167: have_altivec=no cannam@167: fi cannam@167: cannam@167: if test "$have_altivec" = "yes"; then cannam@167: cannam@167: $as_echo "#define HAVE_ALTIVEC 1" >>confdefs.h cannam@167: cannam@167: if test "$PRECISION" != "s"; then cannam@167: as_fn_error $? "Altivec requires single precision" "$LINENO" 5 cannam@167: fi cannam@167: fi cannam@167: if test "$have_altivec" = "yes"; then cannam@167: HAVE_ALTIVEC_TRUE= cannam@167: HAVE_ALTIVEC_FALSE='#' cannam@167: else cannam@167: HAVE_ALTIVEC_TRUE='#' cannam@167: HAVE_ALTIVEC_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --enable-vsx was given. cannam@167: if test "${enable_vsx+set}" = set; then : cannam@167: enableval=$enable_vsx; have_vsx=$enableval cannam@167: else cannam@167: have_vsx=no cannam@167: fi cannam@167: cannam@167: if test "$have_vsx" = "yes"; then cannam@167: cannam@167: $as_echo "#define HAVE_VSX 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: if test "$have_vsx" = "yes"; then cannam@167: HAVE_VSX_TRUE= cannam@167: HAVE_VSX_FALSE='#' cannam@167: else cannam@167: HAVE_VSX_TRUE='#' cannam@167: HAVE_VSX_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --enable-neon was given. cannam@167: if test "${enable_neon+set}" = set; then : cannam@167: enableval=$enable_neon; have_neon=$enableval cannam@167: else cannam@167: have_neon=no cannam@167: fi cannam@167: cannam@167: if test "$have_neon" = "yes"; then cannam@167: cannam@167: $as_echo "#define HAVE_NEON 1" >>confdefs.h cannam@167: cannam@167: case "${host_cpu}" in cannam@167: aarch64) cannam@167: ;; cannam@167: *) cannam@167: if test "$PRECISION" != "s"; then cannam@167: as_fn_error $? "NEON requires single precision" "$LINENO" 5 cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: if test "$have_neon" = "yes"; then cannam@167: HAVE_NEON_TRUE= cannam@167: HAVE_NEON_FALSE='#' cannam@167: else cannam@167: HAVE_NEON_TRUE='#' cannam@167: HAVE_NEON_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --enable-armv8-pmccntr-el0 was given. cannam@167: if test "${enable_armv8_pmccntr_el0+set}" = set; then : cannam@167: enableval=$enable_armv8_pmccntr_el0; have_armv8pmccntrel0=$enableval cannam@167: fi cannam@167: cannam@167: if test "$have_armv8pmccntrel0"x = "yes"x; then cannam@167: cannam@167: $as_echo "#define HAVE_ARMV8_PMCCNTR_EL0 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: # Check whether --enable-armv8-cntvct-el0 was given. cannam@167: if test "${enable_armv8_cntvct_el0+set}" = set; then : cannam@167: enableval=$enable_armv8_cntvct_el0; have_armv8cntvctel0=$enableval cannam@167: fi cannam@167: cannam@167: if test "$have_armv8cntvctel0"x = "yes"x; then cannam@167: cannam@167: $as_echo "#define HAVE_ARMV8_CNTVCT_EL0 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: # Check whether --enable-armv7a-cntvct was given. cannam@167: if test "${enable_armv7a_cntvct+set}" = set; then : cannam@167: enableval=$enable_armv7a_cntvct; have_armv7acntvct=$enableval cannam@167: fi cannam@167: cannam@167: if test "$have_armv7acntvct"x = "yes"x; then cannam@167: cannam@167: $as_echo "#define HAVE_ARMV7A_CNTVCT 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: # Check whether --enable-armv7a-pmccntr was given. cannam@167: if test "${enable_armv7a_pmccntr+set}" = set; then : cannam@167: enableval=$enable_armv7a_pmccntr; have_armv7apmccntr=$enableval cannam@167: fi cannam@167: cannam@167: if test "$have_armv7apmccntr"x = "yes"x; then cannam@167: cannam@167: $as_echo "#define HAVE_ARMV7A_PMCCNTR 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: # Check whether --enable-generic-simd128 was given. cannam@167: if test "${enable_generic_simd128+set}" = set; then : cannam@167: enableval=$enable_generic_simd128; have_generic_simd128=$enableval cannam@167: else cannam@167: have_generic_simd128=no cannam@167: fi cannam@167: cannam@167: if test "$have_generic_simd128" = "yes"; then cannam@167: cannam@167: $as_echo "#define HAVE_GENERIC_SIMD128 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: if test "$have_generic_simd128" = "yes"; then cannam@167: HAVE_GENERIC_SIMD128_TRUE= cannam@167: HAVE_GENERIC_SIMD128_FALSE='#' cannam@167: else cannam@167: HAVE_GENERIC_SIMD128_TRUE='#' cannam@167: HAVE_GENERIC_SIMD128_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --enable-generic-simd256 was given. cannam@167: if test "${enable_generic_simd256+set}" = set; then : cannam@167: enableval=$enable_generic_simd256; have_generic_simd256=$enableval cannam@167: else cannam@167: have_generic_simd256=no cannam@167: fi cannam@167: cannam@167: if test "$have_generic_simd256" = "yes"; then cannam@167: cannam@167: $as_echo "#define HAVE_GENERIC_SIMD256 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: if test "$have_generic_simd256" = "yes"; then cannam@167: HAVE_GENERIC_SIMD256_TRUE= cannam@167: HAVE_GENERIC_SIMD256_FALSE='#' cannam@167: else cannam@167: HAVE_GENERIC_SIMD256_TRUE='#' cannam@167: HAVE_GENERIC_SIMD256_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # Check whether --with-slow-timer was given. cannam@167: if test "${with_slow_timer+set}" = set; then : cannam@167: withval=$with_slow_timer; with_slow_timer=$withval cannam@167: else cannam@167: with_slow_timer=no cannam@167: fi cannam@167: cannam@167: if test "$with_slow_timer" = "yes"; then cannam@167: cannam@167: $as_echo "#define WITH_SLOW_TIMER 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: # Check whether --enable-mips_zbus_timer was given. cannam@167: if test "${enable_mips_zbus_timer+set}" = set; then : cannam@167: enableval=$enable_mips_zbus_timer; have_mips_zbus_timer=$enableval cannam@167: else cannam@167: have_mips_zbus_timer=no cannam@167: fi cannam@167: cannam@167: if test "$have_mips_zbus_timer" = "yes"; then cannam@167: cannam@167: $as_echo "#define HAVE_MIPS_ZBUS_TIMER 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --with-our-malloc was given. cannam@167: if test "${with_our_malloc+set}" = set; then : cannam@167: withval=$with_our_malloc; with_our_malloc=$withval cannam@167: else cannam@167: with_our_malloc=no cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --with-our-malloc16 was given. cannam@167: if test "${with_our_malloc16+set}" = set; then : cannam@167: withval=$with_our_malloc16; with_our_malloc=$withval cannam@167: fi cannam@167: cannam@167: if test "$with_our_malloc" = "yes"; then cannam@167: cannam@167: $as_echo "#define WITH_OUR_MALLOC 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --with-windows-f77-mangling was given. cannam@167: if test "${with_windows_f77_mangling+set}" = set; then : cannam@167: withval=$with_windows_f77_mangling; with_windows_f77_mangling=$withval cannam@167: else cannam@167: with_windows_f77_mangling=no cannam@167: fi cannam@167: cannam@167: if test "$with_windows_f77_mangling" = "yes"; then cannam@167: cannam@167: $as_echo "#define WINDOWS_F77_MANGLING 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --with-incoming-stack-boundary was given. cannam@167: if test "${with_incoming_stack_boundary+set}" = set; then : cannam@167: withval=$with_incoming_stack_boundary; with_incoming_stack_boundary=$withval cannam@167: else cannam@167: with_incoming_stack_boundary=no cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: # Check whether --enable-fma was given. cannam@167: if test "${enable_fma+set}" = set; then : cannam@167: enableval=$enable_fma; arch_prefers_fma=$enableval cannam@167: fi cannam@167: cannam@167: if test "$arch_prefers_fma"x = "yes"x; then cannam@167: cannam@167: $as_echo "#define ARCH_PREFERS_FMA 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: case "$PRECISION" in cannam@167: s) PREC_SUFFIX=f;; cannam@167: d) PREC_SUFFIX=;; cannam@167: l) PREC_SUFFIX=l;; cannam@167: q) PREC_SUFFIX=q;; cannam@167: esac cannam@167: cannam@167: cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. cannam@167: set dummy ${ac_tool_prefix}gcc; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_CC+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$CC"; then cannam@167: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_CC="${ac_tool_prefix}gcc" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: CC=$ac_cv_prog_CC cannam@167: if test -n "$CC"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 cannam@167: $as_echo "$CC" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: if test -z "$ac_cv_prog_CC"; then cannam@167: ac_ct_CC=$CC cannam@167: # Extract the first word of "gcc", so it can be a program name with args. cannam@167: set dummy gcc; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_CC+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_CC"; then cannam@167: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_CC="gcc" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_CC=$ac_cv_prog_ac_ct_CC cannam@167: if test -n "$ac_ct_CC"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 cannam@167: $as_echo "$ac_ct_CC" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: if test "x$ac_ct_CC" = x; then cannam@167: CC="" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: CC=$ac_ct_CC cannam@167: fi cannam@167: else cannam@167: CC="$ac_cv_prog_CC" cannam@167: fi cannam@167: cannam@167: if test -z "$CC"; then cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. cannam@167: set dummy ${ac_tool_prefix}cc; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_CC+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$CC"; then cannam@167: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_CC="${ac_tool_prefix}cc" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: CC=$ac_cv_prog_CC cannam@167: if test -n "$CC"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 cannam@167: $as_echo "$CC" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: fi cannam@167: if test -z "$CC"; then cannam@167: # Extract the first word of "cc", so it can be a program name with args. cannam@167: set dummy cc; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_CC+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$CC"; then cannam@167: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@167: else cannam@167: ac_prog_rejected=no cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then cannam@167: ac_prog_rejected=yes cannam@167: continue cannam@167: fi cannam@167: ac_cv_prog_CC="cc" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: if test $ac_prog_rejected = yes; then cannam@167: # We found a bogon in the path, so make sure we never use it. cannam@167: set dummy $ac_cv_prog_CC cannam@167: shift cannam@167: if test $# != 0; then cannam@167: # We chose a different compiler from the bogus one. cannam@167: # However, it has the same basename, so the bogon will be chosen cannam@167: # first if we set CC to just the basename; use the full file name. cannam@167: shift cannam@167: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" cannam@167: fi cannam@167: fi cannam@167: fi cannam@167: fi cannam@167: CC=$ac_cv_prog_CC cannam@167: if test -n "$CC"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 cannam@167: $as_echo "$CC" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: if test -z "$CC"; then cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: for ac_prog in cl.exe cannam@167: do cannam@167: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@167: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_CC+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$CC"; then cannam@167: ac_cv_prog_CC="$CC" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: CC=$ac_cv_prog_CC cannam@167: if test -n "$CC"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 cannam@167: $as_echo "$CC" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: test -n "$CC" && break cannam@167: done cannam@167: fi cannam@167: if test -z "$CC"; then cannam@167: ac_ct_CC=$CC cannam@167: for ac_prog in cl.exe cannam@167: do cannam@167: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@167: set dummy $ac_prog; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_CC+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_CC"; then cannam@167: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_CC="$ac_prog" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_CC=$ac_cv_prog_ac_ct_CC cannam@167: if test -n "$ac_ct_CC"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 cannam@167: $as_echo "$ac_ct_CC" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: test -n "$ac_ct_CC" && break cannam@167: done cannam@167: cannam@167: if test "x$ac_ct_CC" = x; then cannam@167: CC="" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: CC=$ac_ct_CC cannam@167: fi cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: cannam@167: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error $? "no acceptable C compiler found in \$PATH cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: cannam@167: # Provide some information about the compiler. cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 cannam@167: set X $ac_compile cannam@167: ac_compiler=$2 cannam@167: for ac_option in --version -v -V -qversion; do cannam@167: { { ac_try="$ac_compiler $ac_option >&5" cannam@167: case "(($ac_try" in cannam@167: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@167: *) ac_try_echo=$ac_try;; cannam@167: esac cannam@167: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@167: $as_echo "$ac_try_echo"; } >&5 cannam@167: (eval "$ac_compiler $ac_option >&5") 2>conftest.err cannam@167: ac_status=$? cannam@167: if test -s conftest.err; then cannam@167: sed '10a\ cannam@167: ... rest of stderr output deleted ... cannam@167: 10q' conftest.err >conftest.er1 cannam@167: cat conftest.er1 >&5 cannam@167: fi cannam@167: rm -f conftest.er1 conftest.err cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } cannam@167: done cannam@167: cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: ac_clean_files_save=$ac_clean_files cannam@167: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" cannam@167: # Try to create an executable without -o first, disregard a.out. cannam@167: # It will help us diagnose broken compilers, and finding out an intuition cannam@167: # of exeext. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 cannam@167: $as_echo_n "checking whether the C compiler works... " >&6; } cannam@167: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` cannam@167: cannam@167: # The possible output files: cannam@167: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" cannam@167: cannam@167: ac_rmfiles= cannam@167: for ac_file in $ac_files cannam@167: do cannam@167: case $ac_file in cannam@167: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; cannam@167: * ) ac_rmfiles="$ac_rmfiles $ac_file";; cannam@167: esac cannam@167: done cannam@167: rm -f $ac_rmfiles cannam@167: cannam@167: if { { ac_try="$ac_link_default" cannam@167: case "(($ac_try" in cannam@167: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@167: *) ac_try_echo=$ac_try;; cannam@167: esac cannam@167: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@167: $as_echo "$ac_try_echo"; } >&5 cannam@167: (eval "$ac_link_default") 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; }; then : cannam@167: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. cannam@167: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' cannam@167: # in a Makefile. We should not override ac_cv_exeext if it was cached, cannam@167: # so that the user can short-circuit this test for compilers unknown to cannam@167: # Autoconf. cannam@167: for ac_file in $ac_files '' cannam@167: do cannam@167: test -f "$ac_file" || continue cannam@167: case $ac_file in cannam@167: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) cannam@167: ;; cannam@167: [ab].out ) cannam@167: # We found the default executable, but exeext='' is most cannam@167: # certainly right. cannam@167: break;; cannam@167: *.* ) cannam@167: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; cannam@167: then :; else cannam@167: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` cannam@167: fi cannam@167: # We set ac_cv_exeext here because the later test for it is not cannam@167: # safe: cross compilers may not add the suffix if given an `-o' cannam@167: # argument, so we may need to know it at that point already. cannam@167: # Even if this section looks crufty: it has the advantage of cannam@167: # actually working. cannam@167: break;; cannam@167: * ) cannam@167: break;; cannam@167: esac cannam@167: done cannam@167: test "$ac_cv_exeext" = no && ac_cv_exeext= cannam@167: cannam@167: else cannam@167: ac_file='' cannam@167: fi cannam@167: if test -z "$ac_file"; then : cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: $as_echo "$as_me: failed program was:" >&5 cannam@167: sed 's/^/| /' conftest.$ac_ext >&5 cannam@167: cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error 77 "C compiler cannot create executables cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@167: $as_echo "yes" >&6; } cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 cannam@167: $as_echo_n "checking for C compiler default output file name... " >&6; } cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 cannam@167: $as_echo "$ac_file" >&6; } cannam@167: ac_exeext=$ac_cv_exeext cannam@167: cannam@167: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out cannam@167: ac_clean_files=$ac_clean_files_save cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 cannam@167: $as_echo_n "checking for suffix of executables... " >&6; } cannam@167: if { { ac_try="$ac_link" cannam@167: case "(($ac_try" in cannam@167: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@167: *) ac_try_echo=$ac_try;; cannam@167: esac cannam@167: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@167: $as_echo "$ac_try_echo"; } >&5 cannam@167: (eval "$ac_link") 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; }; then : cannam@167: # If both `conftest.exe' and `conftest' are `present' (well, observable) cannam@167: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will cannam@167: # work properly (i.e., refer to `conftest.exe'), while it won't with cannam@167: # `rm'. cannam@167: for ac_file in conftest.exe conftest conftest.*; do cannam@167: test -f "$ac_file" || continue cannam@167: case $ac_file in cannam@167: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; cannam@167: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` cannam@167: break;; cannam@167: * ) break;; cannam@167: esac cannam@167: done cannam@167: else cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error $? "cannot compute suffix of executables: cannot compile and link cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: fi cannam@167: rm -f conftest conftest$ac_cv_exeext cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 cannam@167: $as_echo "$ac_cv_exeext" >&6; } cannam@167: cannam@167: rm -f conftest.$ac_ext cannam@167: EXEEXT=$ac_cv_exeext cannam@167: ac_exeext=$EXEEXT cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: int cannam@167: main () cannam@167: { cannam@167: FILE *f = fopen ("conftest.out", "w"); cannam@167: return ferror (f) || fclose (f) != 0; cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: ac_clean_files="$ac_clean_files conftest.out" cannam@167: # Check that the compiler produces executables we can run. If not, either cannam@167: # the compiler is broken, or we cross compile. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 cannam@167: $as_echo_n "checking whether we are cross compiling... " >&6; } cannam@167: if test "$cross_compiling" != yes; then cannam@167: { { ac_try="$ac_link" cannam@167: case "(($ac_try" in cannam@167: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@167: *) ac_try_echo=$ac_try;; cannam@167: esac cannam@167: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@167: $as_echo "$ac_try_echo"; } >&5 cannam@167: (eval "$ac_link") 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } cannam@167: if { ac_try='./conftest$ac_cv_exeext' cannam@167: { { case "(($ac_try" in cannam@167: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@167: *) ac_try_echo=$ac_try;; cannam@167: esac cannam@167: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@167: $as_echo "$ac_try_echo"; } >&5 cannam@167: (eval "$ac_try") 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; }; }; then cannam@167: cross_compiling=no cannam@167: else cannam@167: if test "$cross_compiling" = maybe; then cannam@167: cross_compiling=yes cannam@167: else cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error $? "cannot run C compiled programs. cannam@167: If you meant to cross compile, use \`--host'. cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: fi cannam@167: fi cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 cannam@167: $as_echo "$cross_compiling" >&6; } cannam@167: cannam@167: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out cannam@167: ac_clean_files=$ac_clean_files_save cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 cannam@167: $as_echo_n "checking for suffix of object files... " >&6; } cannam@167: if ${ac_cv_objext+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: rm -f conftest.o conftest.obj cannam@167: if { { ac_try="$ac_compile" cannam@167: case "(($ac_try" in cannam@167: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@167: *) ac_try_echo=$ac_try;; cannam@167: esac cannam@167: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@167: $as_echo "$ac_try_echo"; } >&5 cannam@167: (eval "$ac_compile") 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; }; then : cannam@167: for ac_file in conftest.o conftest.obj conftest.*; do cannam@167: test -f "$ac_file" || continue; cannam@167: case $ac_file in cannam@167: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; cannam@167: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` cannam@167: break;; cannam@167: esac cannam@167: done cannam@167: else cannam@167: $as_echo "$as_me: failed program was:" >&5 cannam@167: sed 's/^/| /' conftest.$ac_ext >&5 cannam@167: cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error $? "cannot compute suffix of object files: cannot compile cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: fi cannam@167: rm -f conftest.$ac_cv_objext conftest.$ac_ext cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 cannam@167: $as_echo "$ac_cv_objext" >&6; } cannam@167: OBJEXT=$ac_cv_objext cannam@167: ac_objext=$OBJEXT cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 cannam@167: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } cannam@167: if ${ac_cv_c_compiler_gnu+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: #ifndef __GNUC__ cannam@167: choke me cannam@167: #endif cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ac_compiler_gnu=yes cannam@167: else cannam@167: ac_compiler_gnu=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: ac_cv_c_compiler_gnu=$ac_compiler_gnu cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 cannam@167: $as_echo "$ac_cv_c_compiler_gnu" >&6; } cannam@167: if test $ac_compiler_gnu = yes; then cannam@167: GCC=yes cannam@167: else cannam@167: GCC= cannam@167: fi cannam@167: ac_test_CFLAGS=${CFLAGS+set} cannam@167: ac_save_CFLAGS=$CFLAGS cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 cannam@167: $as_echo_n "checking whether $CC accepts -g... " >&6; } cannam@167: if ${ac_cv_prog_cc_g+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_save_c_werror_flag=$ac_c_werror_flag cannam@167: ac_c_werror_flag=yes cannam@167: ac_cv_prog_cc_g=no cannam@167: CFLAGS="-g" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ac_cv_prog_cc_g=yes cannam@167: else cannam@167: CFLAGS="" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: cannam@167: else cannam@167: ac_c_werror_flag=$ac_save_c_werror_flag cannam@167: CFLAGS="-g" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ac_cv_prog_cc_g=yes cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: ac_c_werror_flag=$ac_save_c_werror_flag cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 cannam@167: $as_echo "$ac_cv_prog_cc_g" >&6; } cannam@167: if test "$ac_test_CFLAGS" = set; then cannam@167: CFLAGS=$ac_save_CFLAGS cannam@167: elif test $ac_cv_prog_cc_g = yes; then cannam@167: if test "$GCC" = yes; then cannam@167: CFLAGS="-g -O2" cannam@167: else cannam@167: CFLAGS="-g" cannam@167: fi cannam@167: else cannam@167: if test "$GCC" = yes; then cannam@167: CFLAGS="-O2" cannam@167: else cannam@167: CFLAGS= cannam@167: fi cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 cannam@167: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } cannam@167: if ${ac_cv_prog_cc_c89+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_cv_prog_cc_c89=no cannam@167: ac_save_CC=$CC cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: #include cannam@167: struct stat; cannam@167: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ cannam@167: struct buf { int x; }; cannam@167: FILE * (*rcsopen) (struct buf *, struct stat *, int); cannam@167: static char *e (p, i) cannam@167: char **p; cannam@167: int i; cannam@167: { cannam@167: return p[i]; cannam@167: } cannam@167: static char *f (char * (*g) (char **, int), char **p, ...) cannam@167: { cannam@167: char *s; cannam@167: va_list v; cannam@167: va_start (v,p); cannam@167: s = g (p, va_arg (v,int)); cannam@167: va_end (v); cannam@167: return s; cannam@167: } cannam@167: cannam@167: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has cannam@167: function prototypes and stuff, but not '\xHH' hex character constants. cannam@167: These don't provoke an error unfortunately, instead are silently treated cannam@167: as 'x'. The following induces an error, until -std is added to get cannam@167: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an cannam@167: array size at least. It's necessary to write '\x00'==0 to get something cannam@167: that's true only with -std. */ cannam@167: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; cannam@167: cannam@167: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters cannam@167: inside strings and character constants. */ cannam@167: #define FOO(x) 'x' cannam@167: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; cannam@167: cannam@167: int test (int i, double x); cannam@167: struct s1 {int (*f) (int a);}; cannam@167: struct s2 {int (*f) (double a);}; cannam@167: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); cannam@167: int argc; cannam@167: char **argv; cannam@167: int cannam@167: main () cannam@167: { cannam@167: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ cannam@167: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" cannam@167: do cannam@167: CC="$ac_save_CC $ac_arg" cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ac_cv_prog_cc_c89=$ac_arg cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext cannam@167: test "x$ac_cv_prog_cc_c89" != "xno" && break cannam@167: done cannam@167: rm -f conftest.$ac_ext cannam@167: CC=$ac_save_CC cannam@167: cannam@167: fi cannam@167: # AC_CACHE_VAL cannam@167: case "x$ac_cv_prog_cc_c89" in cannam@167: x) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 cannam@167: $as_echo "none needed" >&6; } ;; cannam@167: xno) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 cannam@167: $as_echo "unsupported" >&6; } ;; cannam@167: *) cannam@167: CC="$CC $ac_cv_prog_cc_c89" cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 cannam@167: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; cannam@167: esac cannam@167: if test "x$ac_cv_prog_cc_c89" != xno; then : cannam@167: cannam@167: fi cannam@167: cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 cannam@167: $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } cannam@167: if ${am_cv_prog_cc_c_o+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: # Make sure it works both with $CC and with simple cc. cannam@167: # Following AC_PROG_CC_C_O, we do the test twice because some cannam@167: # compilers refuse to overwrite an existing .o file with -o, cannam@167: # though they will create one. cannam@167: am_cv_prog_cc_c_o=yes cannam@167: for am_i in 1 2; do cannam@167: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 cannam@167: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 cannam@167: ac_status=$? cannam@167: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@167: (exit $ac_status); } \ cannam@167: && test -f conftest2.$ac_objext; then cannam@167: : OK cannam@167: else cannam@167: am_cv_prog_cc_c_o=no cannam@167: break cannam@167: fi cannam@167: done cannam@167: rm -f core conftest* cannam@167: unset am_i cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 cannam@167: $as_echo "$am_cv_prog_cc_c_o" >&6; } cannam@167: if test "$am_cv_prog_cc_c_o" != yes; then cannam@167: # Losing compiler, so override with the script. cannam@167: # FIXME: It is wrong to rewrite CC. cannam@167: # But if we don't then we get into trouble of one sort or another. cannam@167: # A longer-term fix would be to have automake use am__CC in this case, cannam@167: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" cannam@167: CC="$am_aux_dir/compile $CC" cannam@167: fi cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: DEPDIR="${am__leading_dot}deps" cannam@167: cannam@167: ac_config_commands="$ac_config_commands depfiles" cannam@167: cannam@167: cannam@167: am_make=${MAKE-make} cannam@167: cat > confinc << 'END' cannam@167: am__doit: cannam@167: @echo this is the am__doit target cannam@167: .PHONY: am__doit cannam@167: END cannam@167: # If we don't find an include directive, just comment out the code. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 cannam@167: $as_echo_n "checking for style of include used by $am_make... " >&6; } cannam@167: am__include="#" cannam@167: am__quote= cannam@167: _am_result=none cannam@167: # First try GNU make style include. cannam@167: echo "include confinc" > confmf cannam@167: # Ignore all kinds of additional output from 'make'. cannam@167: case `$am_make -s -f confmf 2> /dev/null` in #( cannam@167: *the\ am__doit\ target*) cannam@167: am__include=include cannam@167: am__quote= cannam@167: _am_result=GNU cannam@167: ;; cannam@167: esac cannam@167: # Now try BSD make style include. cannam@167: if test "$am__include" = "#"; then cannam@167: echo '.include "confinc"' > confmf cannam@167: case `$am_make -s -f confmf 2> /dev/null` in #( cannam@167: *the\ am__doit\ target*) cannam@167: am__include=.include cannam@167: am__quote="\"" cannam@167: _am_result=BSD cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 cannam@167: $as_echo "$_am_result" >&6; } cannam@167: rm -f confinc confmf cannam@167: cannam@167: # Check whether --enable-dependency-tracking was given. cannam@167: if test "${enable_dependency_tracking+set}" = set; then : cannam@167: enableval=$enable_dependency_tracking; cannam@167: fi cannam@167: cannam@167: if test "x$enable_dependency_tracking" != xno; then cannam@167: am_depcomp="$ac_aux_dir/depcomp" cannam@167: AMDEPBACKSLASH='\' cannam@167: am__nodep='_no' cannam@167: fi cannam@167: if test "x$enable_dependency_tracking" != xno; then cannam@167: AMDEP_TRUE= cannam@167: AMDEP_FALSE='#' cannam@167: else cannam@167: AMDEP_TRUE='#' cannam@167: AMDEP_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: depcc="$CC" am_compiler_list= cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 cannam@167: $as_echo_n "checking dependency style of $depcc... " >&6; } cannam@167: if ${am_cv_CC_dependencies_compiler_type+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then cannam@167: # We make a subdir and do the tests there. Otherwise we can end up cannam@167: # making bogus files that we don't know about and never remove. For cannam@167: # instance it was reported that on HP-UX the gcc test will end up cannam@167: # making a dummy file named 'D' -- because '-MD' means "put the output cannam@167: # in D". cannam@167: rm -rf conftest.dir cannam@167: mkdir conftest.dir cannam@167: # Copy depcomp to subdir because otherwise we won't find it if we're cannam@167: # using a relative directory. cannam@167: cp "$am_depcomp" conftest.dir cannam@167: cd conftest.dir cannam@167: # We will build objects and dependencies in a subdirectory because cannam@167: # it helps to detect inapplicable dependency modes. For instance cannam@167: # both Tru64's cc and ICC support -MD to output dependencies as a cannam@167: # side effect of compilation, but ICC will put the dependencies in cannam@167: # the current directory while Tru64 will put them in the object cannam@167: # directory. cannam@167: mkdir sub cannam@167: cannam@167: am_cv_CC_dependencies_compiler_type=none cannam@167: if test "$am_compiler_list" = ""; then cannam@167: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` cannam@167: fi cannam@167: am__universal=false cannam@167: case " $depcc " in #( cannam@167: *\ -arch\ *\ -arch\ *) am__universal=true ;; cannam@167: esac cannam@167: cannam@167: for depmode in $am_compiler_list; do cannam@167: # Setup a source with many dependencies, because some compilers cannam@167: # like to wrap large dependency lists on column 80 (with \), and cannam@167: # we should not choose a depcomp mode which is confused by this. cannam@167: # cannam@167: # We need to recreate these files for each test, as the compiler may cannam@167: # overwrite some of them when testing with obscure command lines. cannam@167: # This happens at least with the AIX C compiler. cannam@167: : > sub/conftest.c cannam@167: for i in 1 2 3 4 5 6; do cannam@167: echo '#include "conftst'$i'.h"' >> sub/conftest.c cannam@167: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with cannam@167: # Solaris 10 /bin/sh. cannam@167: echo '/* dummy */' > sub/conftst$i.h cannam@167: done cannam@167: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf cannam@167: cannam@167: # We check with '-c' and '-o' for the sake of the "dashmstdout" cannam@167: # mode. It turns out that the SunPro C++ compiler does not properly cannam@167: # handle '-M -o', and we need to detect this. Also, some Intel cannam@167: # versions had trouble with output in subdirs. cannam@167: am__obj=sub/conftest.${OBJEXT-o} cannam@167: am__minus_obj="-o $am__obj" cannam@167: case $depmode in cannam@167: gcc) cannam@167: # This depmode causes a compiler race in universal mode. cannam@167: test "$am__universal" = false || continue cannam@167: ;; cannam@167: nosideeffect) cannam@167: # After this tag, mechanisms are not by side-effect, so they'll cannam@167: # only be used when explicitly requested. cannam@167: if test "x$enable_dependency_tracking" = xyes; then cannam@167: continue cannam@167: else cannam@167: break cannam@167: fi cannam@167: ;; cannam@167: msvc7 | msvc7msys | msvisualcpp | msvcmsys) cannam@167: # This compiler won't grok '-c -o', but also, the minuso test has cannam@167: # not run yet. These depmodes are late enough in the game, and cannam@167: # so weak that their functioning should not be impacted. cannam@167: am__obj=conftest.${OBJEXT-o} cannam@167: am__minus_obj= cannam@167: ;; cannam@167: none) break ;; cannam@167: esac cannam@167: if depmode=$depmode \ cannam@167: source=sub/conftest.c object=$am__obj \ cannam@167: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ cannam@167: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ cannam@167: >/dev/null 2>conftest.err && cannam@167: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && cannam@167: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && cannam@167: grep $am__obj sub/conftest.Po > /dev/null 2>&1 && cannam@167: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then cannam@167: # icc doesn't choke on unknown options, it will just issue warnings cannam@167: # or remarks (even with -Werror). So we grep stderr for any message cannam@167: # that says an option was ignored or not supported. cannam@167: # When given -MP, icc 7.0 and 7.1 complain thusly: cannam@167: # icc: Command line warning: ignoring option '-M'; no argument required cannam@167: # The diagnosis changed in icc 8.0: cannam@167: # icc: Command line remark: option '-MP' not supported cannam@167: if (grep 'ignoring option' conftest.err || cannam@167: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else cannam@167: am_cv_CC_dependencies_compiler_type=$depmode cannam@167: break cannam@167: fi cannam@167: fi cannam@167: done cannam@167: cannam@167: cd .. cannam@167: rm -rf conftest.dir cannam@167: else cannam@167: am_cv_CC_dependencies_compiler_type=none cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 cannam@167: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } cannam@167: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type cannam@167: cannam@167: if cannam@167: test "x$enable_dependency_tracking" != xno \ cannam@167: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then cannam@167: am__fastdepCC_TRUE= cannam@167: am__fastdepCC_FALSE='#' cannam@167: else cannam@167: am__fastdepCC_TRUE='#' cannam@167: am__fastdepCC_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 cannam@167: $as_echo_n "checking for C compiler vendor... " >&6; } cannam@167: if ${ax_cv_c_compiler_vendor+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ax_cv_c_compiler_vendor=unknown cannam@167: # note: don't check for gcc first since some other compilers define __GNUC__ cannam@167: 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 cannam@167: vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: #if !($vencpp) cannam@167: thisisanerror; cannam@167: #endif cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: done cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 cannam@167: $as_echo "$ax_cv_c_compiler_vendor" >&6; } cannam@167: cannam@167: case $ac_cv_prog_cc_stdc in #( cannam@167: no) : cannam@167: ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( cannam@167: *) : cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 cannam@167: $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } cannam@167: if ${ac_cv_prog_cc_c99+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_cv_prog_cc_c99=no cannam@167: ac_save_CC=$CC cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: #include cannam@167: #include cannam@167: #include cannam@167: #include cannam@167: cannam@167: // Check varargs macros. These examples are taken from C99 6.10.3.5. cannam@167: #define debug(...) fprintf (stderr, __VA_ARGS__) cannam@167: #define showlist(...) puts (#__VA_ARGS__) cannam@167: #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) cannam@167: static void cannam@167: test_varargs_macros (void) cannam@167: { cannam@167: int x = 1234; cannam@167: int y = 5678; cannam@167: debug ("Flag"); cannam@167: debug ("X = %d\n", x); cannam@167: showlist (The first, second, and third items.); cannam@167: report (x>y, "x is %d but y is %d", x, y); cannam@167: } cannam@167: cannam@167: // Check long long types. cannam@167: #define BIG64 18446744073709551615ull cannam@167: #define BIG32 4294967295ul cannam@167: #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) cannam@167: #if !BIG_OK cannam@167: your preprocessor is broken; cannam@167: #endif cannam@167: #if BIG_OK cannam@167: #else cannam@167: your preprocessor is broken; cannam@167: #endif cannam@167: static long long int bignum = -9223372036854775807LL; cannam@167: static unsigned long long int ubignum = BIG64; cannam@167: cannam@167: struct incomplete_array cannam@167: { cannam@167: int datasize; cannam@167: double data[]; cannam@167: }; cannam@167: cannam@167: struct named_init { cannam@167: int number; cannam@167: const wchar_t *name; cannam@167: double average; cannam@167: }; cannam@167: cannam@167: typedef const char *ccp; cannam@167: cannam@167: static inline int cannam@167: test_restrict (ccp restrict text) cannam@167: { cannam@167: // See if C++-style comments work. cannam@167: // Iterate through items via the restricted pointer. cannam@167: // Also check for declarations in for loops. cannam@167: for (unsigned int i = 0; *(text+i) != '\0'; ++i) cannam@167: continue; cannam@167: return 0; cannam@167: } cannam@167: cannam@167: // Check varargs and va_copy. cannam@167: static void cannam@167: test_varargs (const char *format, ...) cannam@167: { cannam@167: va_list args; cannam@167: va_start (args, format); cannam@167: va_list args_copy; cannam@167: va_copy (args_copy, args); cannam@167: cannam@167: const char *str; cannam@167: int number; cannam@167: float fnumber; cannam@167: cannam@167: while (*format) cannam@167: { cannam@167: switch (*format++) cannam@167: { cannam@167: case 's': // string cannam@167: str = va_arg (args_copy, const char *); cannam@167: break; cannam@167: case 'd': // int cannam@167: number = va_arg (args_copy, int); cannam@167: break; cannam@167: case 'f': // float cannam@167: fnumber = va_arg (args_copy, double); cannam@167: break; cannam@167: default: cannam@167: break; cannam@167: } cannam@167: } cannam@167: va_end (args_copy); cannam@167: va_end (args); cannam@167: } cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: // Check bool. cannam@167: _Bool success = false; cannam@167: cannam@167: // Check restrict. cannam@167: if (test_restrict ("String literal") == 0) cannam@167: success = true; cannam@167: char *restrict newvar = "Another string"; cannam@167: cannam@167: // Check varargs. cannam@167: test_varargs ("s, d' f .", "string", 65, 34.234); cannam@167: test_varargs_macros (); cannam@167: cannam@167: // Check flexible array members. cannam@167: struct incomplete_array *ia = cannam@167: malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); cannam@167: ia->datasize = 10; cannam@167: for (int i = 0; i < ia->datasize; ++i) cannam@167: ia->data[i] = i * 1.234; cannam@167: cannam@167: // Check named initializers. cannam@167: struct named_init ni = { cannam@167: .number = 34, cannam@167: .name = L"Test wide string", cannam@167: .average = 543.34343, cannam@167: }; cannam@167: cannam@167: ni.number = 58; cannam@167: cannam@167: int dynamic_array[ni.number]; cannam@167: dynamic_array[ni.number - 1] = 543; cannam@167: cannam@167: // work around unused variable warnings cannam@167: return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' cannam@167: || dynamic_array[ni.number - 1] != 543); cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 cannam@167: do cannam@167: CC="$ac_save_CC $ac_arg" cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ac_cv_prog_cc_c99=$ac_arg cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext cannam@167: test "x$ac_cv_prog_cc_c99" != "xno" && break cannam@167: done cannam@167: rm -f conftest.$ac_ext cannam@167: CC=$ac_save_CC cannam@167: cannam@167: fi cannam@167: # AC_CACHE_VAL cannam@167: case "x$ac_cv_prog_cc_c99" in cannam@167: x) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 cannam@167: $as_echo "none needed" >&6; } ;; cannam@167: xno) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 cannam@167: $as_echo "unsupported" >&6; } ;; cannam@167: *) cannam@167: CC="$CC $ac_cv_prog_cc_c99" cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 cannam@167: $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; cannam@167: esac cannam@167: if test "x$ac_cv_prog_cc_c99" != xno; then : cannam@167: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 cannam@167: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } cannam@167: if ${ac_cv_prog_cc_c89+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_cv_prog_cc_c89=no cannam@167: ac_save_CC=$CC cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: #include cannam@167: struct stat; cannam@167: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ cannam@167: struct buf { int x; }; cannam@167: FILE * (*rcsopen) (struct buf *, struct stat *, int); cannam@167: static char *e (p, i) cannam@167: char **p; cannam@167: int i; cannam@167: { cannam@167: return p[i]; cannam@167: } cannam@167: static char *f (char * (*g) (char **, int), char **p, ...) cannam@167: { cannam@167: char *s; cannam@167: va_list v; cannam@167: va_start (v,p); cannam@167: s = g (p, va_arg (v,int)); cannam@167: va_end (v); cannam@167: return s; cannam@167: } cannam@167: cannam@167: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has cannam@167: function prototypes and stuff, but not '\xHH' hex character constants. cannam@167: These don't provoke an error unfortunately, instead are silently treated cannam@167: as 'x'. The following induces an error, until -std is added to get cannam@167: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an cannam@167: array size at least. It's necessary to write '\x00'==0 to get something cannam@167: that's true only with -std. */ cannam@167: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; cannam@167: cannam@167: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters cannam@167: inside strings and character constants. */ cannam@167: #define FOO(x) 'x' cannam@167: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; cannam@167: cannam@167: int test (int i, double x); cannam@167: struct s1 {int (*f) (int a);}; cannam@167: struct s2 {int (*f) (double a);}; cannam@167: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); cannam@167: int argc; cannam@167: char **argv; cannam@167: int cannam@167: main () cannam@167: { cannam@167: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ cannam@167: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" cannam@167: do cannam@167: CC="$ac_save_CC $ac_arg" cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ac_cv_prog_cc_c89=$ac_arg cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext cannam@167: test "x$ac_cv_prog_cc_c89" != "xno" && break cannam@167: done cannam@167: rm -f conftest.$ac_ext cannam@167: CC=$ac_save_CC cannam@167: cannam@167: fi cannam@167: # AC_CACHE_VAL cannam@167: case "x$ac_cv_prog_cc_c89" in cannam@167: x) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 cannam@167: $as_echo "none needed" >&6; } ;; cannam@167: xno) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 cannam@167: $as_echo "unsupported" >&6; } ;; cannam@167: *) cannam@167: CC="$CC $ac_cv_prog_cc_c89" cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 cannam@167: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; cannam@167: esac cannam@167: if test "x$ac_cv_prog_cc_c89" != xno; then : cannam@167: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 cannam@167: else cannam@167: ac_cv_prog_cc_stdc=no cannam@167: fi cannam@167: cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 cannam@167: $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } cannam@167: if ${ac_cv_prog_cc_stdc+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: fi cannam@167: cannam@167: case $ac_cv_prog_cc_stdc in #( cannam@167: no) : cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 cannam@167: $as_echo "unsupported" >&6; } ;; #( cannam@167: '') : cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 cannam@167: $as_echo "none needed" >&6; } ;; #( cannam@167: *) : cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 cannam@167: $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; cannam@167: esac cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 cannam@167: $as_echo_n "checking whether ln -s works... " >&6; } cannam@167: LN_S=$as_ln_s cannam@167: if test "$LN_S" = "ln -s"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@167: $as_echo "yes" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 cannam@167: $as_echo "no, using $LN_S" >&6; } cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 cannam@167: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } cannam@167: set x ${MAKE-make} cannam@167: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` cannam@167: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat >conftest.make <<\_ACEOF cannam@167: SHELL = /bin/sh cannam@167: all: cannam@167: @echo '@@@%%%=$(MAKE)=@@@%%%' cannam@167: _ACEOF cannam@167: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. cannam@167: case `${MAKE-make} -f conftest.make 2>/dev/null` in cannam@167: *@@@%%%=?*=@@@%%%*) cannam@167: eval ac_cv_prog_make_${ac_make}_set=yes;; cannam@167: *) cannam@167: eval ac_cv_prog_make_${ac_make}_set=no;; cannam@167: esac cannam@167: rm -f conftest.make cannam@167: fi cannam@167: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@167: $as_echo "yes" >&6; } cannam@167: SET_MAKE= cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: SET_MAKE="MAKE=${MAKE-make}" cannam@167: fi cannam@167: cannam@167: enable_win32_dll=yes cannam@167: cannam@167: case $host in cannam@167: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. cannam@167: set dummy ${ac_tool_prefix}as; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_AS+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$AS"; then cannam@167: ac_cv_prog_AS="$AS" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_AS="${ac_tool_prefix}as" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: AS=$ac_cv_prog_AS cannam@167: if test -n "$AS"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 cannam@167: $as_echo "$AS" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: if test -z "$ac_cv_prog_AS"; then cannam@167: ac_ct_AS=$AS cannam@167: # Extract the first word of "as", so it can be a program name with args. cannam@167: set dummy as; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_AS+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_AS"; then cannam@167: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_AS="as" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_AS=$ac_cv_prog_ac_ct_AS cannam@167: if test -n "$ac_ct_AS"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 cannam@167: $as_echo "$ac_ct_AS" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: if test "x$ac_ct_AS" = x; then cannam@167: AS="false" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: AS=$ac_ct_AS cannam@167: fi cannam@167: else cannam@167: AS="$ac_cv_prog_AS" cannam@167: fi cannam@167: cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. cannam@167: set dummy ${ac_tool_prefix}dlltool; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_DLLTOOL+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$DLLTOOL"; then cannam@167: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: DLLTOOL=$ac_cv_prog_DLLTOOL cannam@167: if test -n "$DLLTOOL"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 cannam@167: $as_echo "$DLLTOOL" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: if test -z "$ac_cv_prog_DLLTOOL"; then cannam@167: ac_ct_DLLTOOL=$DLLTOOL cannam@167: # Extract the first word of "dlltool", so it can be a program name with args. cannam@167: set dummy dlltool; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_DLLTOOL"; then cannam@167: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_DLLTOOL="dlltool" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL cannam@167: if test -n "$ac_ct_DLLTOOL"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 cannam@167: $as_echo "$ac_ct_DLLTOOL" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: if test "x$ac_ct_DLLTOOL" = x; then cannam@167: DLLTOOL="false" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: DLLTOOL=$ac_ct_DLLTOOL cannam@167: fi cannam@167: else cannam@167: DLLTOOL="$ac_cv_prog_DLLTOOL" cannam@167: fi cannam@167: cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. cannam@167: set dummy ${ac_tool_prefix}objdump; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_OBJDUMP+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$OBJDUMP"; then cannam@167: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: OBJDUMP=$ac_cv_prog_OBJDUMP cannam@167: if test -n "$OBJDUMP"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 cannam@167: $as_echo "$OBJDUMP" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: if test -z "$ac_cv_prog_OBJDUMP"; then cannam@167: ac_ct_OBJDUMP=$OBJDUMP cannam@167: # Extract the first word of "objdump", so it can be a program name with args. cannam@167: set dummy objdump; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_OBJDUMP"; then cannam@167: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_OBJDUMP="objdump" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP cannam@167: if test -n "$ac_ct_OBJDUMP"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 cannam@167: $as_echo "$ac_ct_OBJDUMP" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: if test "x$ac_ct_OBJDUMP" = x; then cannam@167: OBJDUMP="false" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: OBJDUMP=$ac_ct_OBJDUMP cannam@167: fi cannam@167: else cannam@167: OBJDUMP="$ac_cv_prog_OBJDUMP" cannam@167: fi cannam@167: cannam@167: ;; cannam@167: esac cannam@167: cannam@167: test -z "$AS" && AS=as cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: test -z "$DLLTOOL" && DLLTOOL=dlltool cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: test -z "$OBJDUMP" && OBJDUMP=objdump cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: case `pwd` in cannam@167: *\ * | *\ *) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 cannam@167: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; cannam@167: esac cannam@167: cannam@167: cannam@167: cannam@167: macro_version='2.4.6' cannam@167: macro_revision='2.4.6' cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: ltmain=$ac_aux_dir/ltmain.sh cannam@167: cannam@167: # Backslashify metacharacters that are still active within cannam@167: # double-quoted strings. cannam@167: sed_quote_subst='s/\(["`$\\]\)/\\\1/g' cannam@167: cannam@167: # Same as above, but do not quote variable references. cannam@167: double_quote_subst='s/\(["`\\]\)/\\\1/g' cannam@167: cannam@167: # Sed substitution to delay expansion of an escaped shell variable in a cannam@167: # double_quote_subst'ed string. cannam@167: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' cannam@167: cannam@167: # Sed substitution to delay expansion of an escaped single quote. cannam@167: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' cannam@167: cannam@167: # Sed substitution to avoid accidental globbing in evaled expressions cannam@167: no_glob_subst='s/\*/\\\*/g' cannam@167: cannam@167: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' cannam@167: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO cannam@167: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 cannam@167: $as_echo_n "checking how to print strings... " >&6; } cannam@167: # Test print first, because it will be a builtin if present. cannam@167: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ cannam@167: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then cannam@167: ECHO='print -r --' cannam@167: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then cannam@167: ECHO='printf %s\n' cannam@167: else cannam@167: # Use this function as a fallback that always works. cannam@167: func_fallback_echo () cannam@167: { cannam@167: eval 'cat <<_LTECHO_EOF cannam@167: $1 cannam@167: _LTECHO_EOF' cannam@167: } cannam@167: ECHO='func_fallback_echo' cannam@167: fi cannam@167: cannam@167: # func_echo_all arg... cannam@167: # Invoke $ECHO with all args, space-separated. cannam@167: func_echo_all () cannam@167: { cannam@167: $ECHO "" cannam@167: } cannam@167: cannam@167: case $ECHO in cannam@167: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 cannam@167: $as_echo "printf" >&6; } ;; cannam@167: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 cannam@167: $as_echo "print -r" >&6; } ;; cannam@167: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 cannam@167: $as_echo "cat" >&6; } ;; cannam@167: esac cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 cannam@167: $as_echo_n "checking for a sed that does not truncate output... " >&6; } cannam@167: if ${ac_cv_path_SED+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ cannam@167: for ac_i in 1 2 3 4 5 6 7; do cannam@167: ac_script="$ac_script$as_nl$ac_script" cannam@167: done cannam@167: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed cannam@167: { ac_script=; unset ac_script;} cannam@167: if test -z "$SED"; then cannam@167: ac_path_SED_found=false cannam@167: # Loop through the user's path and test for each of PROGNAME-LIST cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_prog in sed gsed; do cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" cannam@167: as_fn_executable_p "$ac_path_SED" || continue cannam@167: # Check for GNU ac_path_SED and select it if it is found. cannam@167: # Check for GNU $ac_path_SED cannam@167: case `"$ac_path_SED" --version 2>&1` in cannam@167: *GNU*) cannam@167: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; cannam@167: *) cannam@167: ac_count=0 cannam@167: $as_echo_n 0123456789 >"conftest.in" cannam@167: while : cannam@167: do cannam@167: cat "conftest.in" "conftest.in" >"conftest.tmp" cannam@167: mv "conftest.tmp" "conftest.in" cannam@167: cp "conftest.in" "conftest.nl" cannam@167: $as_echo '' >> "conftest.nl" cannam@167: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break cannam@167: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break cannam@167: as_fn_arith $ac_count + 1 && ac_count=$as_val cannam@167: if test $ac_count -gt ${ac_path_SED_max-0}; then cannam@167: # Best one so far, save it but keep looking for a better one cannam@167: ac_cv_path_SED="$ac_path_SED" cannam@167: ac_path_SED_max=$ac_count cannam@167: fi cannam@167: # 10*(2^10) chars as input seems more than enough cannam@167: test $ac_count -gt 10 && break cannam@167: done cannam@167: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; cannam@167: esac cannam@167: cannam@167: $ac_path_SED_found && break 3 cannam@167: done cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: if test -z "$ac_cv_path_SED"; then cannam@167: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 cannam@167: fi cannam@167: else cannam@167: ac_cv_path_SED=$SED cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 cannam@167: $as_echo "$ac_cv_path_SED" >&6; } cannam@167: SED="$ac_cv_path_SED" cannam@167: rm -f conftest.sed cannam@167: cannam@167: test -z "$SED" && SED=sed cannam@167: Xsed="$SED -e 1s/^X//" cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 cannam@167: $as_echo_n "checking for grep that handles long lines and -e... " >&6; } cannam@167: if ${ac_cv_path_GREP+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -z "$GREP"; then cannam@167: ac_path_GREP_found=false cannam@167: # Loop through the user's path and test for each of PROGNAME-LIST cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_prog in grep ggrep; do cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" cannam@167: as_fn_executable_p "$ac_path_GREP" || continue cannam@167: # Check for GNU ac_path_GREP and select it if it is found. cannam@167: # Check for GNU $ac_path_GREP cannam@167: case `"$ac_path_GREP" --version 2>&1` in cannam@167: *GNU*) cannam@167: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; cannam@167: *) cannam@167: ac_count=0 cannam@167: $as_echo_n 0123456789 >"conftest.in" cannam@167: while : cannam@167: do cannam@167: cat "conftest.in" "conftest.in" >"conftest.tmp" cannam@167: mv "conftest.tmp" "conftest.in" cannam@167: cp "conftest.in" "conftest.nl" cannam@167: $as_echo 'GREP' >> "conftest.nl" cannam@167: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break cannam@167: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break cannam@167: as_fn_arith $ac_count + 1 && ac_count=$as_val cannam@167: if test $ac_count -gt ${ac_path_GREP_max-0}; then cannam@167: # Best one so far, save it but keep looking for a better one cannam@167: ac_cv_path_GREP="$ac_path_GREP" cannam@167: ac_path_GREP_max=$ac_count cannam@167: fi cannam@167: # 10*(2^10) chars as input seems more than enough cannam@167: test $ac_count -gt 10 && break cannam@167: done cannam@167: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; cannam@167: esac cannam@167: cannam@167: $ac_path_GREP_found && break 3 cannam@167: done cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: if test -z "$ac_cv_path_GREP"; then cannam@167: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 cannam@167: fi cannam@167: else cannam@167: ac_cv_path_GREP=$GREP cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 cannam@167: $as_echo "$ac_cv_path_GREP" >&6; } cannam@167: GREP="$ac_cv_path_GREP" cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 cannam@167: $as_echo_n "checking for egrep... " >&6; } cannam@167: if ${ac_cv_path_EGREP+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 cannam@167: then ac_cv_path_EGREP="$GREP -E" cannam@167: else cannam@167: if test -z "$EGREP"; then cannam@167: ac_path_EGREP_found=false cannam@167: # Loop through the user's path and test for each of PROGNAME-LIST cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_prog in egrep; do cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" cannam@167: as_fn_executable_p "$ac_path_EGREP" || continue cannam@167: # Check for GNU ac_path_EGREP and select it if it is found. cannam@167: # Check for GNU $ac_path_EGREP cannam@167: case `"$ac_path_EGREP" --version 2>&1` in cannam@167: *GNU*) cannam@167: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; cannam@167: *) cannam@167: ac_count=0 cannam@167: $as_echo_n 0123456789 >"conftest.in" cannam@167: while : cannam@167: do cannam@167: cat "conftest.in" "conftest.in" >"conftest.tmp" cannam@167: mv "conftest.tmp" "conftest.in" cannam@167: cp "conftest.in" "conftest.nl" cannam@167: $as_echo 'EGREP' >> "conftest.nl" cannam@167: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break cannam@167: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break cannam@167: as_fn_arith $ac_count + 1 && ac_count=$as_val cannam@167: if test $ac_count -gt ${ac_path_EGREP_max-0}; then cannam@167: # Best one so far, save it but keep looking for a better one cannam@167: ac_cv_path_EGREP="$ac_path_EGREP" cannam@167: ac_path_EGREP_max=$ac_count cannam@167: fi cannam@167: # 10*(2^10) chars as input seems more than enough cannam@167: test $ac_count -gt 10 && break cannam@167: done cannam@167: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; cannam@167: esac cannam@167: cannam@167: $ac_path_EGREP_found && break 3 cannam@167: done cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: if test -z "$ac_cv_path_EGREP"; then cannam@167: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 cannam@167: fi cannam@167: else cannam@167: ac_cv_path_EGREP=$EGREP cannam@167: fi cannam@167: cannam@167: fi cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 cannam@167: $as_echo "$ac_cv_path_EGREP" >&6; } cannam@167: EGREP="$ac_cv_path_EGREP" cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 cannam@167: $as_echo_n "checking for fgrep... " >&6; } cannam@167: if ${ac_cv_path_FGREP+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 cannam@167: then ac_cv_path_FGREP="$GREP -F" cannam@167: else cannam@167: if test -z "$FGREP"; then cannam@167: ac_path_FGREP_found=false cannam@167: # Loop through the user's path and test for each of PROGNAME-LIST cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_prog in fgrep; do cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" cannam@167: as_fn_executable_p "$ac_path_FGREP" || continue cannam@167: # Check for GNU ac_path_FGREP and select it if it is found. cannam@167: # Check for GNU $ac_path_FGREP cannam@167: case `"$ac_path_FGREP" --version 2>&1` in cannam@167: *GNU*) cannam@167: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; cannam@167: *) cannam@167: ac_count=0 cannam@167: $as_echo_n 0123456789 >"conftest.in" cannam@167: while : cannam@167: do cannam@167: cat "conftest.in" "conftest.in" >"conftest.tmp" cannam@167: mv "conftest.tmp" "conftest.in" cannam@167: cp "conftest.in" "conftest.nl" cannam@167: $as_echo 'FGREP' >> "conftest.nl" cannam@167: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break cannam@167: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break cannam@167: as_fn_arith $ac_count + 1 && ac_count=$as_val cannam@167: if test $ac_count -gt ${ac_path_FGREP_max-0}; then cannam@167: # Best one so far, save it but keep looking for a better one cannam@167: ac_cv_path_FGREP="$ac_path_FGREP" cannam@167: ac_path_FGREP_max=$ac_count cannam@167: fi cannam@167: # 10*(2^10) chars as input seems more than enough cannam@167: test $ac_count -gt 10 && break cannam@167: done cannam@167: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; cannam@167: esac cannam@167: cannam@167: $ac_path_FGREP_found && break 3 cannam@167: done cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: if test -z "$ac_cv_path_FGREP"; then cannam@167: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 cannam@167: fi cannam@167: else cannam@167: ac_cv_path_FGREP=$FGREP cannam@167: fi cannam@167: cannam@167: fi cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 cannam@167: $as_echo "$ac_cv_path_FGREP" >&6; } cannam@167: FGREP="$ac_cv_path_FGREP" cannam@167: cannam@167: cannam@167: test -z "$GREP" && GREP=grep cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # Check whether --with-gnu-ld was given. cannam@167: if test "${with_gnu_ld+set}" = set; then : cannam@167: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes cannam@167: else cannam@167: with_gnu_ld=no cannam@167: fi cannam@167: cannam@167: ac_prog=ld cannam@167: if test yes = "$GCC"; then cannam@167: # Check if gcc -print-prog-name=ld gives a path. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 cannam@167: $as_echo_n "checking for ld used by $CC... " >&6; } cannam@167: case $host in cannam@167: *-*-mingw*) cannam@167: # gcc leaves a trailing carriage return, which upsets mingw cannam@167: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; cannam@167: *) cannam@167: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; cannam@167: esac cannam@167: case $ac_prog in cannam@167: # Accept absolute paths. cannam@167: [\\/]* | ?:[\\/]*) cannam@167: re_direlt='/[^/][^/]*/\.\./' cannam@167: # Canonicalize the pathname of ld cannam@167: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` cannam@167: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do cannam@167: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` cannam@167: done cannam@167: test -z "$LD" && LD=$ac_prog cannam@167: ;; cannam@167: "") cannam@167: # If it fails, then pretend we aren't using GCC. cannam@167: ac_prog=ld cannam@167: ;; cannam@167: *) cannam@167: # If it is relative, then search for the first ld in PATH. cannam@167: with_gnu_ld=unknown cannam@167: ;; cannam@167: esac cannam@167: elif test yes = "$with_gnu_ld"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 cannam@167: $as_echo_n "checking for GNU ld... " >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 cannam@167: $as_echo_n "checking for non-GNU ld... " >&6; } cannam@167: fi cannam@167: if ${lt_cv_path_LD+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -z "$LD"; then cannam@167: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR cannam@167: for ac_dir in $PATH; do cannam@167: IFS=$lt_save_ifs cannam@167: test -z "$ac_dir" && ac_dir=. cannam@167: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then cannam@167: lt_cv_path_LD=$ac_dir/$ac_prog cannam@167: # Check to see if the program is GNU ld. I'd rather use --version, cannam@167: # but apparently some variants of GNU ld only accept -v. cannam@167: # Break only if it was the GNU/non-GNU ld that we prefer. cannam@167: case `"$lt_cv_path_LD" -v 2>&1 &5 cannam@167: $as_echo "$LD" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 cannam@167: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } cannam@167: if ${lt_cv_prog_gnu_ld+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: # I'd rather use --version here, but apparently some GNU lds only accept -v. cannam@167: case `$LD -v 2>&1 &5 cannam@167: $as_echo "$lt_cv_prog_gnu_ld" >&6; } cannam@167: with_gnu_ld=$lt_cv_prog_gnu_ld cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 cannam@167: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } cannam@167: if ${lt_cv_path_NM+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$NM"; then cannam@167: # Let the user override the test. cannam@167: lt_cv_path_NM=$NM cannam@167: else cannam@167: lt_nm_to_check=${ac_tool_prefix}nm cannam@167: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then cannam@167: lt_nm_to_check="$lt_nm_to_check nm" cannam@167: fi cannam@167: for lt_tmp_nm in $lt_nm_to_check; do cannam@167: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR cannam@167: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do cannam@167: IFS=$lt_save_ifs cannam@167: test -z "$ac_dir" && ac_dir=. cannam@167: tmp_nm=$ac_dir/$lt_tmp_nm cannam@167: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then cannam@167: # Check to see if the nm accepts a BSD-compat flag. cannam@167: # Adding the 'sed 1q' prevents false positives on HP-UX, which says: cannam@167: # nm: unknown option "B" ignored cannam@167: # Tru64's nm complains that /dev/null is an invalid object file cannam@167: # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty cannam@167: case $build_os in cannam@167: mingw*) lt_bad_file=conftest.nm/nofile ;; cannam@167: *) lt_bad_file=/dev/null ;; cannam@167: esac cannam@167: case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in cannam@167: *$lt_bad_file* | *'Invalid file or object type'*) cannam@167: lt_cv_path_NM="$tmp_nm -B" cannam@167: break 2 cannam@167: ;; cannam@167: *) cannam@167: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in cannam@167: */dev/null*) cannam@167: lt_cv_path_NM="$tmp_nm -p" cannam@167: break 2 cannam@167: ;; cannam@167: *) cannam@167: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but cannam@167: continue # so that we can try to find one that supports BSD flags cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: done cannam@167: IFS=$lt_save_ifs cannam@167: done cannam@167: : ${lt_cv_path_NM=no} cannam@167: fi cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 cannam@167: $as_echo "$lt_cv_path_NM" >&6; } cannam@167: if test no != "$lt_cv_path_NM"; then cannam@167: NM=$lt_cv_path_NM cannam@167: else cannam@167: # Didn't find any BSD compatible name lister, look for dumpbin. cannam@167: if test -n "$DUMPBIN"; then : cannam@167: # Let the user override the test. cannam@167: else cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: for ac_prog in dumpbin "link -dump" cannam@167: do cannam@167: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@167: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_DUMPBIN+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$DUMPBIN"; then cannam@167: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: DUMPBIN=$ac_cv_prog_DUMPBIN cannam@167: if test -n "$DUMPBIN"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 cannam@167: $as_echo "$DUMPBIN" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: test -n "$DUMPBIN" && break cannam@167: done cannam@167: fi cannam@167: if test -z "$DUMPBIN"; then cannam@167: ac_ct_DUMPBIN=$DUMPBIN cannam@167: for ac_prog in dumpbin "link -dump" cannam@167: do cannam@167: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@167: set dummy $ac_prog; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_DUMPBIN"; then cannam@167: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN cannam@167: if test -n "$ac_ct_DUMPBIN"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 cannam@167: $as_echo "$ac_ct_DUMPBIN" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: test -n "$ac_ct_DUMPBIN" && break cannam@167: done cannam@167: cannam@167: if test "x$ac_ct_DUMPBIN" = x; then cannam@167: DUMPBIN=":" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: DUMPBIN=$ac_ct_DUMPBIN cannam@167: fi cannam@167: fi cannam@167: cannam@167: case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in cannam@167: *COFF*) cannam@167: DUMPBIN="$DUMPBIN -symbols -headers" cannam@167: ;; cannam@167: *) cannam@167: DUMPBIN=: cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: cannam@167: if test : != "$DUMPBIN"; then cannam@167: NM=$DUMPBIN cannam@167: fi cannam@167: fi cannam@167: test -z "$NM" && NM=nm cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 cannam@167: $as_echo_n "checking the name lister ($NM) interface... " >&6; } cannam@167: if ${lt_cv_nm_interface+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_nm_interface="BSD nm" cannam@167: echo "int some_variable = 0;" > conftest.$ac_ext cannam@167: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) cannam@167: (eval "$ac_compile" 2>conftest.err) cannam@167: cat conftest.err >&5 cannam@167: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) cannam@167: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cannam@167: cat conftest.err >&5 cannam@167: (eval echo "\"\$as_me:$LINENO: output\"" >&5) cannam@167: cat conftest.out >&5 cannam@167: if $GREP 'External.*some_variable' conftest.out > /dev/null; then cannam@167: lt_cv_nm_interface="MS dumpbin" cannam@167: fi cannam@167: rm -f conftest* cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 cannam@167: $as_echo "$lt_cv_nm_interface" >&6; } cannam@167: cannam@167: # find the maximum length of command line arguments cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 cannam@167: $as_echo_n "checking the maximum length of command line arguments... " >&6; } cannam@167: if ${lt_cv_sys_max_cmd_len+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: i=0 cannam@167: teststring=ABCD cannam@167: cannam@167: case $build_os in cannam@167: msdosdjgpp*) cannam@167: # On DJGPP, this test can blow up pretty badly due to problems in libc cannam@167: # (any single argument exceeding 2000 bytes causes a buffer overrun cannam@167: # during glob expansion). Even if it were fixed, the result of this cannam@167: # check would be larger than it should be. cannam@167: lt_cv_sys_max_cmd_len=12288; # 12K is about right cannam@167: ;; cannam@167: cannam@167: gnu*) cannam@167: # Under GNU Hurd, this test is not required because there is cannam@167: # no limit to the length of command line arguments. cannam@167: # Libtool will interpret -1 as no limit whatsoever cannam@167: lt_cv_sys_max_cmd_len=-1; cannam@167: ;; cannam@167: cannam@167: cygwin* | mingw* | cegcc*) cannam@167: # On Win9x/ME, this test blows up -- it succeeds, but takes cannam@167: # about 5 minutes as the teststring grows exponentially. cannam@167: # Worse, since 9x/ME are not pre-emptively multitasking, cannam@167: # you end up with a "frozen" computer, even though with patience cannam@167: # the test eventually succeeds (with a max line length of 256k). cannam@167: # Instead, let's just punt: use the minimum linelength reported by cannam@167: # all of the supported platforms: 8192 (on NT/2K/XP). cannam@167: lt_cv_sys_max_cmd_len=8192; cannam@167: ;; cannam@167: cannam@167: mint*) cannam@167: # On MiNT this can take a long time and run out of memory. cannam@167: lt_cv_sys_max_cmd_len=8192; cannam@167: ;; cannam@167: cannam@167: amigaos*) cannam@167: # On AmigaOS with pdksh, this test takes hours, literally. cannam@167: # So we just punt and use a minimum line length of 8192. cannam@167: lt_cv_sys_max_cmd_len=8192; cannam@167: ;; cannam@167: cannam@167: bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) cannam@167: # This has been around since 386BSD, at least. Likely further. cannam@167: if test -x /sbin/sysctl; then cannam@167: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` cannam@167: elif test -x /usr/sbin/sysctl; then cannam@167: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` cannam@167: else cannam@167: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs cannam@167: fi cannam@167: # And add a safety zone cannam@167: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` cannam@167: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` cannam@167: ;; cannam@167: cannam@167: interix*) cannam@167: # We know the value 262144 and hardcode it with a safety zone (like BSD) cannam@167: lt_cv_sys_max_cmd_len=196608 cannam@167: ;; cannam@167: cannam@167: os2*) cannam@167: # The test takes a long time on OS/2. cannam@167: lt_cv_sys_max_cmd_len=8192 cannam@167: ;; cannam@167: cannam@167: osf*) cannam@167: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure cannam@167: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not cannam@167: # nice to cause kernel panics so lets avoid the loop below. cannam@167: # First set a reasonable default. cannam@167: lt_cv_sys_max_cmd_len=16384 cannam@167: # cannam@167: if test -x /sbin/sysconfig; then cannam@167: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in cannam@167: *1*) lt_cv_sys_max_cmd_len=-1 ;; cannam@167: esac cannam@167: fi cannam@167: ;; cannam@167: sco3.2v5*) cannam@167: lt_cv_sys_max_cmd_len=102400 cannam@167: ;; cannam@167: sysv5* | sco5v6* | sysv4.2uw2*) cannam@167: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` cannam@167: if test -n "$kargmax"; then cannam@167: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` cannam@167: else cannam@167: lt_cv_sys_max_cmd_len=32768 cannam@167: fi cannam@167: ;; cannam@167: *) cannam@167: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` cannam@167: if test -n "$lt_cv_sys_max_cmd_len" && \ cannam@167: test undefined != "$lt_cv_sys_max_cmd_len"; then cannam@167: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` cannam@167: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` cannam@167: else cannam@167: # Make teststring a little bigger before we do anything with it. cannam@167: # a 1K string should be a reasonable start. cannam@167: for i in 1 2 3 4 5 6 7 8; do cannam@167: teststring=$teststring$teststring cannam@167: done cannam@167: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} cannam@167: # If test is not a shell built-in, we'll probably end up computing a cannam@167: # maximum length that is only half of the actual maximum length, but cannam@167: # we can't tell. cannam@167: while { test X`env echo "$teststring$teststring" 2>/dev/null` \ cannam@167: = "X$teststring$teststring"; } >/dev/null 2>&1 && cannam@167: test 17 != "$i" # 1/2 MB should be enough cannam@167: do cannam@167: i=`expr $i + 1` cannam@167: teststring=$teststring$teststring cannam@167: done cannam@167: # Only check the string length outside the loop. cannam@167: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` cannam@167: teststring= cannam@167: # Add a significant safety factor because C++ compilers can tack on cannam@167: # massive amounts of additional arguments before passing them to the cannam@167: # linker. It appears as though 1/2 is a usable value. cannam@167: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: cannam@167: fi cannam@167: cannam@167: if test -n "$lt_cv_sys_max_cmd_len"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 cannam@167: $as_echo "$lt_cv_sys_max_cmd_len" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 cannam@167: $as_echo "none" >&6; } cannam@167: fi cannam@167: max_cmd_len=$lt_cv_sys_max_cmd_len cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: : ${CP="cp -f"} cannam@167: : ${MV="mv -f"} cannam@167: : ${RM="rm -f"} cannam@167: cannam@167: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then cannam@167: lt_unset=unset cannam@167: else cannam@167: lt_unset=false cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # test EBCDIC or ASCII cannam@167: case `echo X|tr X '\101'` in cannam@167: A) # ASCII based system cannam@167: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr cannam@167: lt_SP2NL='tr \040 \012' cannam@167: lt_NL2SP='tr \015\012 \040\040' cannam@167: ;; cannam@167: *) # EBCDIC based system cannam@167: lt_SP2NL='tr \100 \n' cannam@167: lt_NL2SP='tr \r\n \100\100' cannam@167: ;; cannam@167: esac cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 cannam@167: $as_echo_n "checking how to convert $build file names to $host format... " >&6; } cannam@167: if ${lt_cv_to_host_file_cmd+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: case $host in cannam@167: *-*-mingw* ) cannam@167: case $build in cannam@167: *-*-mingw* ) # actually msys cannam@167: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 cannam@167: ;; cannam@167: *-*-cygwin* ) cannam@167: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 cannam@167: ;; cannam@167: * ) # otherwise, assume *nix cannam@167: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: *-*-cygwin* ) cannam@167: case $build in cannam@167: *-*-mingw* ) # actually msys cannam@167: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin cannam@167: ;; cannam@167: *-*-cygwin* ) cannam@167: lt_cv_to_host_file_cmd=func_convert_file_noop cannam@167: ;; cannam@167: * ) # otherwise, assume *nix cannam@167: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: * ) # unhandled hosts (and "normal" native builds) cannam@167: lt_cv_to_host_file_cmd=func_convert_file_noop cannam@167: ;; cannam@167: esac cannam@167: cannam@167: fi cannam@167: cannam@167: to_host_file_cmd=$lt_cv_to_host_file_cmd cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 cannam@167: $as_echo "$lt_cv_to_host_file_cmd" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 cannam@167: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } cannam@167: if ${lt_cv_to_tool_file_cmd+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: #assume ordinary cross tools, or native build. cannam@167: lt_cv_to_tool_file_cmd=func_convert_file_noop cannam@167: case $host in cannam@167: *-*-mingw* ) cannam@167: case $build in cannam@167: *-*-mingw* ) # actually msys cannam@167: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: esac cannam@167: cannam@167: fi cannam@167: cannam@167: to_tool_file_cmd=$lt_cv_to_tool_file_cmd cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 cannam@167: $as_echo "$lt_cv_to_tool_file_cmd" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 cannam@167: $as_echo_n "checking for $LD option to reload object files... " >&6; } cannam@167: if ${lt_cv_ld_reload_flag+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_ld_reload_flag='-r' cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 cannam@167: $as_echo "$lt_cv_ld_reload_flag" >&6; } cannam@167: reload_flag=$lt_cv_ld_reload_flag cannam@167: case $reload_flag in cannam@167: "" | " "*) ;; cannam@167: *) reload_flag=" $reload_flag" ;; cannam@167: esac cannam@167: reload_cmds='$LD$reload_flag -o $output$reload_objs' cannam@167: case $host_os in cannam@167: cygwin* | mingw* | pw32* | cegcc*) cannam@167: if test yes != "$GCC"; then cannam@167: reload_cmds=false cannam@167: fi cannam@167: ;; cannam@167: darwin*) cannam@167: if test yes = "$GCC"; then cannam@167: reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' cannam@167: else cannam@167: reload_cmds='$LD$reload_flag -o $output$reload_objs' cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. cannam@167: set dummy ${ac_tool_prefix}objdump; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_OBJDUMP+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$OBJDUMP"; then cannam@167: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: OBJDUMP=$ac_cv_prog_OBJDUMP cannam@167: if test -n "$OBJDUMP"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 cannam@167: $as_echo "$OBJDUMP" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: if test -z "$ac_cv_prog_OBJDUMP"; then cannam@167: ac_ct_OBJDUMP=$OBJDUMP cannam@167: # Extract the first word of "objdump", so it can be a program name with args. cannam@167: set dummy objdump; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_OBJDUMP"; then cannam@167: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_OBJDUMP="objdump" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP cannam@167: if test -n "$ac_ct_OBJDUMP"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 cannam@167: $as_echo "$ac_ct_OBJDUMP" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: if test "x$ac_ct_OBJDUMP" = x; then cannam@167: OBJDUMP="false" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: OBJDUMP=$ac_ct_OBJDUMP cannam@167: fi cannam@167: else cannam@167: OBJDUMP="$ac_cv_prog_OBJDUMP" cannam@167: fi cannam@167: cannam@167: test -z "$OBJDUMP" && OBJDUMP=objdump cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 cannam@167: $as_echo_n "checking how to recognize dependent libraries... " >&6; } cannam@167: if ${lt_cv_deplibs_check_method+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_file_magic_cmd='$MAGIC_CMD' cannam@167: lt_cv_file_magic_test_file= cannam@167: lt_cv_deplibs_check_method='unknown' cannam@167: # Need to set the preceding variable on all platforms that support cannam@167: # interlibrary dependencies. cannam@167: # 'none' -- dependencies not supported. cannam@167: # 'unknown' -- same as none, but documents that we really don't know. cannam@167: # 'pass_all' -- all dependencies passed with no checks. cannam@167: # 'test_compile' -- check by making test program. cannam@167: # 'file_magic [[regex]]' -- check by looking for files in library path cannam@167: # that responds to the $file_magic_cmd with a given extended regex. cannam@167: # If you have 'file' or equivalent on your system and you're not sure cannam@167: # whether 'pass_all' will *always* work, you probably want this one. cannam@167: cannam@167: case $host_os in cannam@167: aix[4-9]*) cannam@167: lt_cv_deplibs_check_method=pass_all cannam@167: ;; cannam@167: cannam@167: beos*) cannam@167: lt_cv_deplibs_check_method=pass_all cannam@167: ;; cannam@167: cannam@167: bsdi[45]*) cannam@167: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' cannam@167: lt_cv_file_magic_cmd='/usr/bin/file -L' cannam@167: lt_cv_file_magic_test_file=/shlib/libc.so cannam@167: ;; cannam@167: cannam@167: cygwin*) cannam@167: # func_win32_libid is a shell function defined in ltmain.sh cannam@167: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' cannam@167: lt_cv_file_magic_cmd='func_win32_libid' cannam@167: ;; cannam@167: cannam@167: mingw* | pw32*) cannam@167: # Base MSYS/MinGW do not provide the 'file' command needed by cannam@167: # func_win32_libid shell function, so use a weaker test based on 'objdump', cannam@167: # unless we find 'file', for example because we are cross-compiling. cannam@167: if ( file / ) >/dev/null 2>&1; then cannam@167: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' cannam@167: lt_cv_file_magic_cmd='func_win32_libid' cannam@167: else cannam@167: # Keep this pattern in sync with the one in func_win32_libid. cannam@167: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' cannam@167: lt_cv_file_magic_cmd='$OBJDUMP -f' cannam@167: fi cannam@167: ;; cannam@167: cannam@167: cegcc*) cannam@167: # use the weaker test based on 'objdump'. See mingw*. cannam@167: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' cannam@167: lt_cv_file_magic_cmd='$OBJDUMP -f' cannam@167: ;; cannam@167: cannam@167: darwin* | rhapsody*) cannam@167: lt_cv_deplibs_check_method=pass_all cannam@167: ;; cannam@167: cannam@167: freebsd* | dragonfly*) cannam@167: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then cannam@167: case $host_cpu in cannam@167: i*86 ) cannam@167: # Not sure whether the presence of OpenBSD here was a mistake. cannam@167: # Let's accept both of them until this is cleared up. cannam@167: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' cannam@167: lt_cv_file_magic_cmd=/usr/bin/file cannam@167: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` cannam@167: ;; cannam@167: esac cannam@167: else cannam@167: lt_cv_deplibs_check_method=pass_all cannam@167: fi cannam@167: ;; cannam@167: cannam@167: haiku*) cannam@167: lt_cv_deplibs_check_method=pass_all cannam@167: ;; cannam@167: cannam@167: hpux10.20* | hpux11*) cannam@167: lt_cv_file_magic_cmd=/usr/bin/file cannam@167: case $host_cpu in cannam@167: ia64*) cannam@167: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' cannam@167: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so cannam@167: ;; cannam@167: hppa*64*) cannam@167: 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]' cannam@167: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl cannam@167: ;; cannam@167: *) cannam@167: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' cannam@167: lt_cv_file_magic_test_file=/usr/lib/libc.sl cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: interix[3-9]*) cannam@167: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here cannam@167: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' cannam@167: ;; cannam@167: cannam@167: irix5* | irix6* | nonstopux*) cannam@167: case $LD in cannam@167: *-32|*"-32 ") libmagic=32-bit;; cannam@167: *-n32|*"-n32 ") libmagic=N32;; cannam@167: *-64|*"-64 ") libmagic=64-bit;; cannam@167: *) libmagic=never-match;; cannam@167: esac cannam@167: lt_cv_deplibs_check_method=pass_all cannam@167: ;; cannam@167: cannam@167: # This must be glibc/ELF. cannam@167: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) cannam@167: lt_cv_deplibs_check_method=pass_all cannam@167: ;; cannam@167: cannam@167: netbsd* | netbsdelf*-gnu) cannam@167: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then cannam@167: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' cannam@167: else cannam@167: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' cannam@167: fi cannam@167: ;; cannam@167: cannam@167: newos6*) cannam@167: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' cannam@167: lt_cv_file_magic_cmd=/usr/bin/file cannam@167: lt_cv_file_magic_test_file=/usr/lib/libnls.so cannam@167: ;; cannam@167: cannam@167: *nto* | *qnx*) cannam@167: lt_cv_deplibs_check_method=pass_all cannam@167: ;; cannam@167: cannam@167: openbsd* | bitrig*) cannam@167: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then cannam@167: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' cannam@167: else cannam@167: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' cannam@167: fi cannam@167: ;; cannam@167: cannam@167: osf3* | osf4* | osf5*) cannam@167: lt_cv_deplibs_check_method=pass_all cannam@167: ;; cannam@167: cannam@167: rdos*) cannam@167: lt_cv_deplibs_check_method=pass_all cannam@167: ;; cannam@167: cannam@167: solaris*) cannam@167: lt_cv_deplibs_check_method=pass_all cannam@167: ;; cannam@167: cannam@167: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) cannam@167: lt_cv_deplibs_check_method=pass_all cannam@167: ;; cannam@167: cannam@167: sysv4 | sysv4.3*) cannam@167: case $host_vendor in cannam@167: motorola) cannam@167: 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]' cannam@167: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` cannam@167: ;; cannam@167: ncr) cannam@167: lt_cv_deplibs_check_method=pass_all cannam@167: ;; cannam@167: sequent) cannam@167: lt_cv_file_magic_cmd='/bin/file' cannam@167: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' cannam@167: ;; cannam@167: sni) cannam@167: lt_cv_file_magic_cmd='/bin/file' cannam@167: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" cannam@167: lt_cv_file_magic_test_file=/lib/libc.so cannam@167: ;; cannam@167: siemens) cannam@167: lt_cv_deplibs_check_method=pass_all cannam@167: ;; cannam@167: pc) cannam@167: lt_cv_deplibs_check_method=pass_all cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: tpf*) cannam@167: lt_cv_deplibs_check_method=pass_all cannam@167: ;; cannam@167: os2*) cannam@167: lt_cv_deplibs_check_method=pass_all cannam@167: ;; cannam@167: esac cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 cannam@167: $as_echo "$lt_cv_deplibs_check_method" >&6; } cannam@167: cannam@167: file_magic_glob= cannam@167: want_nocaseglob=no cannam@167: if test "$build" = "$host"; then cannam@167: case $host_os in cannam@167: mingw* | pw32*) cannam@167: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then cannam@167: want_nocaseglob=yes cannam@167: else cannam@167: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: cannam@167: file_magic_cmd=$lt_cv_file_magic_cmd cannam@167: deplibs_check_method=$lt_cv_deplibs_check_method cannam@167: test -z "$deplibs_check_method" && deplibs_check_method=unknown cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. cannam@167: set dummy ${ac_tool_prefix}dlltool; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_DLLTOOL+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$DLLTOOL"; then cannam@167: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: DLLTOOL=$ac_cv_prog_DLLTOOL cannam@167: if test -n "$DLLTOOL"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 cannam@167: $as_echo "$DLLTOOL" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: if test -z "$ac_cv_prog_DLLTOOL"; then cannam@167: ac_ct_DLLTOOL=$DLLTOOL cannam@167: # Extract the first word of "dlltool", so it can be a program name with args. cannam@167: set dummy dlltool; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_DLLTOOL"; then cannam@167: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_DLLTOOL="dlltool" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL cannam@167: if test -n "$ac_ct_DLLTOOL"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 cannam@167: $as_echo "$ac_ct_DLLTOOL" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: if test "x$ac_ct_DLLTOOL" = x; then cannam@167: DLLTOOL="false" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: DLLTOOL=$ac_ct_DLLTOOL cannam@167: fi cannam@167: else cannam@167: DLLTOOL="$ac_cv_prog_DLLTOOL" cannam@167: fi cannam@167: cannam@167: test -z "$DLLTOOL" && DLLTOOL=dlltool cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 cannam@167: $as_echo_n "checking how to associate runtime and link libraries... " >&6; } cannam@167: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_sharedlib_from_linklib_cmd='unknown' cannam@167: cannam@167: case $host_os in cannam@167: cygwin* | mingw* | pw32* | cegcc*) cannam@167: # two different shell functions defined in ltmain.sh; cannam@167: # decide which one to use based on capabilities of $DLLTOOL cannam@167: case `$DLLTOOL --help 2>&1` in cannam@167: *--identify-strict*) cannam@167: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib cannam@167: ;; cannam@167: *) cannam@167: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: *) cannam@167: # fallback: assume linklib IS sharedlib cannam@167: lt_cv_sharedlib_from_linklib_cmd=$ECHO cannam@167: ;; cannam@167: esac cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 cannam@167: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } cannam@167: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd cannam@167: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: for ac_prog in ar cannam@167: do cannam@167: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@167: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_AR+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$AR"; then cannam@167: ac_cv_prog_AR="$AR" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_AR="$ac_tool_prefix$ac_prog" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: AR=$ac_cv_prog_AR cannam@167: if test -n "$AR"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 cannam@167: $as_echo "$AR" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: test -n "$AR" && break cannam@167: done cannam@167: fi cannam@167: if test -z "$AR"; then cannam@167: ac_ct_AR=$AR cannam@167: for ac_prog in ar cannam@167: do cannam@167: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@167: set dummy $ac_prog; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_AR+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_AR"; then cannam@167: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_AR="$ac_prog" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_AR=$ac_cv_prog_ac_ct_AR cannam@167: if test -n "$ac_ct_AR"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 cannam@167: $as_echo "$ac_ct_AR" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: test -n "$ac_ct_AR" && break cannam@167: done cannam@167: cannam@167: if test "x$ac_ct_AR" = x; then cannam@167: AR="false" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: AR=$ac_ct_AR cannam@167: fi cannam@167: fi cannam@167: cannam@167: : ${AR=ar} cannam@167: : ${AR_FLAGS=cru} cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 cannam@167: $as_echo_n "checking for archiver @FILE support... " >&6; } cannam@167: if ${lt_cv_ar_at_file+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_ar_at_file=no cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: echo conftest.$ac_objext > conftest.lst cannam@167: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' cannam@167: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 cannam@167: (eval $lt_ar_try) 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } cannam@167: if test 0 -eq "$ac_status"; then cannam@167: # Ensure the archiver fails upon bogus file names. cannam@167: rm -f conftest.$ac_objext libconftest.a cannam@167: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 cannam@167: (eval $lt_ar_try) 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } cannam@167: if test 0 -ne "$ac_status"; then cannam@167: lt_cv_ar_at_file=@ cannam@167: fi cannam@167: fi cannam@167: rm -f conftest.* libconftest.a cannam@167: cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 cannam@167: $as_echo "$lt_cv_ar_at_file" >&6; } cannam@167: cannam@167: if test no = "$lt_cv_ar_at_file"; then cannam@167: archiver_list_spec= cannam@167: else cannam@167: archiver_list_spec=$lt_cv_ar_at_file cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. cannam@167: set dummy ${ac_tool_prefix}strip; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_STRIP+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$STRIP"; then cannam@167: ac_cv_prog_STRIP="$STRIP" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_STRIP="${ac_tool_prefix}strip" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: STRIP=$ac_cv_prog_STRIP cannam@167: if test -n "$STRIP"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 cannam@167: $as_echo "$STRIP" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: if test -z "$ac_cv_prog_STRIP"; then cannam@167: ac_ct_STRIP=$STRIP cannam@167: # Extract the first word of "strip", so it can be a program name with args. cannam@167: set dummy strip; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_STRIP+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_STRIP"; then cannam@167: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_STRIP="strip" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP cannam@167: if test -n "$ac_ct_STRIP"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 cannam@167: $as_echo "$ac_ct_STRIP" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: if test "x$ac_ct_STRIP" = x; then cannam@167: STRIP=":" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: STRIP=$ac_ct_STRIP cannam@167: fi cannam@167: else cannam@167: STRIP="$ac_cv_prog_STRIP" cannam@167: fi cannam@167: cannam@167: test -z "$STRIP" && STRIP=: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. cannam@167: set dummy ${ac_tool_prefix}ranlib; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_RANLIB+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$RANLIB"; then cannam@167: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: RANLIB=$ac_cv_prog_RANLIB cannam@167: if test -n "$RANLIB"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 cannam@167: $as_echo "$RANLIB" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: if test -z "$ac_cv_prog_RANLIB"; then cannam@167: ac_ct_RANLIB=$RANLIB cannam@167: # Extract the first word of "ranlib", so it can be a program name with args. cannam@167: set dummy ranlib; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_RANLIB"; then cannam@167: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_RANLIB="ranlib" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB cannam@167: if test -n "$ac_ct_RANLIB"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 cannam@167: $as_echo "$ac_ct_RANLIB" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: if test "x$ac_ct_RANLIB" = x; then cannam@167: RANLIB=":" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: RANLIB=$ac_ct_RANLIB cannam@167: fi cannam@167: else cannam@167: RANLIB="$ac_cv_prog_RANLIB" cannam@167: fi cannam@167: cannam@167: test -z "$RANLIB" && RANLIB=: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # Determine commands to create old-style static archives. cannam@167: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' cannam@167: old_postinstall_cmds='chmod 644 $oldlib' cannam@167: old_postuninstall_cmds= cannam@167: cannam@167: if test -n "$RANLIB"; then cannam@167: case $host_os in cannam@167: bitrig* | openbsd*) cannam@167: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" cannam@167: ;; cannam@167: *) cannam@167: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" cannam@167: ;; cannam@167: esac cannam@167: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" cannam@167: fi cannam@167: cannam@167: case $host_os in cannam@167: darwin*) cannam@167: lock_old_archive_extraction=yes ;; cannam@167: *) cannam@167: lock_old_archive_extraction=no ;; cannam@167: esac cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # If no C compiler was specified, use CC. cannam@167: LTCC=${LTCC-"$CC"} cannam@167: cannam@167: # If no C compiler flags were specified, use CFLAGS. cannam@167: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} cannam@167: cannam@167: # Allow CC to be a program name with arguments. cannam@167: compiler=$CC cannam@167: cannam@167: cannam@167: # Check for command to grab the raw symbol name followed by C symbol from nm. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 cannam@167: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } cannam@167: if ${lt_cv_sys_global_symbol_pipe+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: # These are sane defaults that work on at least a few old systems. cannam@167: # [They come from Ultrix. What could be older than Ultrix?!! ;)] cannam@167: cannam@167: # Character class describing NM global symbol codes. cannam@167: symcode='[BCDEGRST]' cannam@167: cannam@167: # Regexp to match symbols that can be accessed directly from C. cannam@167: sympat='\([_A-Za-z][_A-Za-z0-9]*\)' cannam@167: cannam@167: # Define system-specific variables. cannam@167: case $host_os in cannam@167: aix*) cannam@167: symcode='[BCDT]' cannam@167: ;; cannam@167: cygwin* | mingw* | pw32* | cegcc*) cannam@167: symcode='[ABCDGISTW]' cannam@167: ;; cannam@167: hpux*) cannam@167: if test ia64 = "$host_cpu"; then cannam@167: symcode='[ABCDEGRST]' cannam@167: fi cannam@167: ;; cannam@167: irix* | nonstopux*) cannam@167: symcode='[BCDEGRST]' cannam@167: ;; cannam@167: osf*) cannam@167: symcode='[BCDEGQRST]' cannam@167: ;; cannam@167: solaris*) cannam@167: symcode='[BDRT]' cannam@167: ;; cannam@167: sco3.2v5*) cannam@167: symcode='[DT]' cannam@167: ;; cannam@167: sysv4.2uw2*) cannam@167: symcode='[DT]' cannam@167: ;; cannam@167: sysv5* | sco5v6* | unixware* | OpenUNIX*) cannam@167: symcode='[ABDT]' cannam@167: ;; cannam@167: sysv4) cannam@167: symcode='[DFNSTU]' cannam@167: ;; cannam@167: esac cannam@167: cannam@167: # If we're using GNU nm, then use its standard symbol codes. cannam@167: case `$NM -V 2>&1` in cannam@167: *GNU* | *'with BFD'*) cannam@167: symcode='[ABCDGIRSTW]' ;; cannam@167: esac cannam@167: cannam@167: if test "$lt_cv_nm_interface" = "MS dumpbin"; then cannam@167: # Gets list of data symbols to import. cannam@167: lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" cannam@167: # Adjust the below global symbol transforms to fixup imported variables. cannam@167: lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" cannam@167: lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" cannam@167: lt_c_name_lib_hook="\ cannam@167: -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ cannam@167: -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" cannam@167: else cannam@167: # Disable hooks by default. cannam@167: lt_cv_sys_global_symbol_to_import= cannam@167: lt_cdecl_hook= cannam@167: lt_c_name_hook= cannam@167: lt_c_name_lib_hook= cannam@167: fi cannam@167: cannam@167: # Transform an extracted symbol line into a proper C declaration. cannam@167: # Some systems (esp. on ia64) link data and code symbols differently, cannam@167: # so use this general approach. cannam@167: lt_cv_sys_global_symbol_to_cdecl="sed -n"\ cannam@167: $lt_cdecl_hook\ cannam@167: " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ cannam@167: " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" cannam@167: cannam@167: # Transform an extracted symbol line into symbol name and symbol address cannam@167: lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ cannam@167: $lt_c_name_hook\ cannam@167: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ cannam@167: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" cannam@167: cannam@167: # Transform an extracted symbol line into symbol name with lib prefix and cannam@167: # symbol address. cannam@167: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ cannam@167: $lt_c_name_lib_hook\ cannam@167: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ cannam@167: " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ cannam@167: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" cannam@167: cannam@167: # Handle CRLF in mingw tool chain cannam@167: opt_cr= cannam@167: case $build_os in cannam@167: mingw*) cannam@167: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp cannam@167: ;; cannam@167: esac cannam@167: cannam@167: # Try without a prefix underscore, then with it. cannam@167: for ac_symprfx in "" "_"; do cannam@167: cannam@167: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. cannam@167: symxfrm="\\1 $ac_symprfx\\2 \\2" cannam@167: cannam@167: # Write the raw and C identifiers. cannam@167: if test "$lt_cv_nm_interface" = "MS dumpbin"; then cannam@167: # Fake it for dumpbin and say T for any non-static function, cannam@167: # D for any global variable and I for any imported variable. cannam@167: # Also find C++ and __fastcall symbols from MSVC++, cannam@167: # which start with @ or ?. cannam@167: lt_cv_sys_global_symbol_pipe="$AWK '"\ cannam@167: " {last_section=section; section=\$ 3};"\ cannam@167: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ cannam@167: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ cannam@167: " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ cannam@167: " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ cannam@167: " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ cannam@167: " \$ 0!~/External *\|/{next};"\ cannam@167: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ cannam@167: " {if(hide[section]) next};"\ cannam@167: " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ cannam@167: " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ cannam@167: " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ cannam@167: " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ cannam@167: " ' prfx=^$ac_symprfx" cannam@167: else cannam@167: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" cannam@167: fi cannam@167: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" cannam@167: cannam@167: # Check to see that the pipe works correctly. cannam@167: pipe_works=no cannam@167: cannam@167: rm -f conftest* cannam@167: cat > conftest.$ac_ext <<_LT_EOF cannam@167: #ifdef __cplusplus cannam@167: extern "C" { cannam@167: #endif cannam@167: char nm_test_var; cannam@167: void nm_test_func(void); cannam@167: void nm_test_func(void){} cannam@167: #ifdef __cplusplus cannam@167: } cannam@167: #endif cannam@167: int main(){nm_test_var='a';nm_test_func();return(0);} cannam@167: _LT_EOF cannam@167: cannam@167: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 cannam@167: (eval $ac_compile) 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; }; then cannam@167: # Now try to grab the symbols. cannam@167: nlist=conftest.nm cannam@167: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 cannam@167: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } && test -s "$nlist"; then cannam@167: # Try sorting and uniquifying the output. cannam@167: if sort "$nlist" | uniq > "$nlist"T; then cannam@167: mv -f "$nlist"T "$nlist" cannam@167: else cannam@167: rm -f "$nlist"T cannam@167: fi cannam@167: cannam@167: # Make sure that we snagged all the symbols we need. cannam@167: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then cannam@167: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cannam@167: cat <<_LT_EOF > conftest.$ac_ext cannam@167: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ cannam@167: #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE cannam@167: /* DATA imports from DLLs on WIN32 can't be const, because runtime cannam@167: relocations are performed -- see ld's documentation on pseudo-relocs. */ cannam@167: # define LT_DLSYM_CONST cannam@167: #elif defined __osf__ cannam@167: /* This system does not cope well with relocations in const data. */ cannam@167: # define LT_DLSYM_CONST cannam@167: #else cannam@167: # define LT_DLSYM_CONST const cannam@167: #endif cannam@167: cannam@167: #ifdef __cplusplus cannam@167: extern "C" { cannam@167: #endif cannam@167: cannam@167: _LT_EOF cannam@167: # Now generate the symbol file. cannam@167: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cannam@167: cannam@167: cat <<_LT_EOF >> conftest.$ac_ext cannam@167: cannam@167: /* The mapping between symbol names and symbols. */ cannam@167: LT_DLSYM_CONST struct { cannam@167: const char *name; cannam@167: void *address; cannam@167: } cannam@167: lt__PROGRAM__LTX_preloaded_symbols[] = cannam@167: { cannam@167: { "@PROGRAM@", (void *) 0 }, cannam@167: _LT_EOF cannam@167: $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cannam@167: cat <<\_LT_EOF >> conftest.$ac_ext cannam@167: {0, (void *) 0} cannam@167: }; cannam@167: cannam@167: /* This works around a problem in FreeBSD linker */ cannam@167: #ifdef FREEBSD_WORKAROUND cannam@167: static const void *lt_preloaded_setup() { cannam@167: return lt__PROGRAM__LTX_preloaded_symbols; cannam@167: } cannam@167: #endif cannam@167: cannam@167: #ifdef __cplusplus cannam@167: } cannam@167: #endif cannam@167: _LT_EOF cannam@167: # Now try linking the two files. cannam@167: mv conftest.$ac_objext conftstm.$ac_objext cannam@167: lt_globsym_save_LIBS=$LIBS cannam@167: lt_globsym_save_CFLAGS=$CFLAGS cannam@167: LIBS=conftstm.$ac_objext cannam@167: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" cannam@167: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 cannam@167: (eval $ac_link) 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } && test -s conftest$ac_exeext; then cannam@167: pipe_works=yes cannam@167: fi cannam@167: LIBS=$lt_globsym_save_LIBS cannam@167: CFLAGS=$lt_globsym_save_CFLAGS cannam@167: else cannam@167: echo "cannot find nm_test_func in $nlist" >&5 cannam@167: fi cannam@167: else cannam@167: echo "cannot find nm_test_var in $nlist" >&5 cannam@167: fi cannam@167: else cannam@167: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 cannam@167: fi cannam@167: else cannam@167: echo "$progname: failed program was:" >&5 cannam@167: cat conftest.$ac_ext >&5 cannam@167: fi cannam@167: rm -rf conftest* conftst* cannam@167: cannam@167: # Do not use the global_symbol_pipe unless it works. cannam@167: if test yes = "$pipe_works"; then cannam@167: break cannam@167: else cannam@167: lt_cv_sys_global_symbol_pipe= cannam@167: fi cannam@167: done cannam@167: cannam@167: fi cannam@167: cannam@167: if test -z "$lt_cv_sys_global_symbol_pipe"; then cannam@167: lt_cv_sys_global_symbol_to_cdecl= cannam@167: fi cannam@167: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 cannam@167: $as_echo "failed" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 cannam@167: $as_echo "ok" >&6; } cannam@167: fi cannam@167: cannam@167: # Response file support. cannam@167: if test "$lt_cv_nm_interface" = "MS dumpbin"; then cannam@167: nm_file_list_spec='@' cannam@167: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then cannam@167: nm_file_list_spec='@' cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 cannam@167: $as_echo_n "checking for sysroot... " >&6; } cannam@167: cannam@167: # Check whether --with-sysroot was given. cannam@167: if test "${with_sysroot+set}" = set; then : cannam@167: withval=$with_sysroot; cannam@167: else cannam@167: with_sysroot=no cannam@167: fi cannam@167: cannam@167: cannam@167: lt_sysroot= cannam@167: case $with_sysroot in #( cannam@167: yes) cannam@167: if test yes = "$GCC"; then cannam@167: lt_sysroot=`$CC --print-sysroot 2>/dev/null` cannam@167: fi cannam@167: ;; #( cannam@167: /*) cannam@167: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` cannam@167: ;; #( cannam@167: no|'') cannam@167: ;; #( cannam@167: *) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 cannam@167: $as_echo "$with_sysroot" >&6; } cannam@167: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 cannam@167: ;; cannam@167: esac cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 cannam@167: $as_echo "${lt_sysroot:-no}" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 cannam@167: $as_echo_n "checking for a working dd... " >&6; } cannam@167: if ${ac_cv_path_lt_DD+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: printf 0123456789abcdef0123456789abcdef >conftest.i cannam@167: cat conftest.i conftest.i >conftest2.i cannam@167: : ${lt_DD:=$DD} cannam@167: if test -z "$lt_DD"; then cannam@167: ac_path_lt_DD_found=false cannam@167: # Loop through the user's path and test for each of PROGNAME-LIST cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_prog in dd; do cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" cannam@167: as_fn_executable_p "$ac_path_lt_DD" || continue cannam@167: if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cannam@167: cmp -s conftest.i conftest.out \ cannam@167: && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: cannam@167: fi cannam@167: $ac_path_lt_DD_found && break 3 cannam@167: done cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: if test -z "$ac_cv_path_lt_DD"; then cannam@167: : cannam@167: fi cannam@167: else cannam@167: ac_cv_path_lt_DD=$lt_DD cannam@167: fi cannam@167: cannam@167: rm -f conftest.i conftest2.i conftest.out cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 cannam@167: $as_echo "$ac_cv_path_lt_DD" >&6; } cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 cannam@167: $as_echo_n "checking how to truncate binary pipes... " >&6; } cannam@167: if ${lt_cv_truncate_bin+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: printf 0123456789abcdef0123456789abcdef >conftest.i cannam@167: cat conftest.i conftest.i >conftest2.i cannam@167: lt_cv_truncate_bin= cannam@167: if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cannam@167: cmp -s conftest.i conftest.out \ cannam@167: && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" cannam@167: fi cannam@167: rm -f conftest.i conftest2.i conftest.out cannam@167: test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 cannam@167: $as_echo "$lt_cv_truncate_bin" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. cannam@167: func_cc_basename () cannam@167: { cannam@167: for cc_temp in $*""; do cannam@167: case $cc_temp in cannam@167: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; cannam@167: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; cannam@167: \-*) ;; cannam@167: *) break;; cannam@167: esac cannam@167: done cannam@167: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` cannam@167: } cannam@167: cannam@167: # Check whether --enable-libtool-lock was given. cannam@167: if test "${enable_libtool_lock+set}" = set; then : cannam@167: enableval=$enable_libtool_lock; cannam@167: fi cannam@167: cannam@167: test no = "$enable_libtool_lock" || enable_libtool_lock=yes cannam@167: cannam@167: # Some flags need to be propagated to the compiler or linker for good cannam@167: # libtool support. cannam@167: case $host in cannam@167: ia64-*-hpux*) cannam@167: # Find out what ABI is being produced by ac_compile, and set mode cannam@167: # options accordingly. cannam@167: echo 'int i;' > conftest.$ac_ext cannam@167: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 cannam@167: (eval $ac_compile) 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; }; then cannam@167: case `/usr/bin/file conftest.$ac_objext` in cannam@167: *ELF-32*) cannam@167: HPUX_IA64_MODE=32 cannam@167: ;; cannam@167: *ELF-64*) cannam@167: HPUX_IA64_MODE=64 cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: rm -rf conftest* cannam@167: ;; cannam@167: *-*-irix6*) cannam@167: # Find out what ABI is being produced by ac_compile, and set linker cannam@167: # options accordingly. cannam@167: echo '#line '$LINENO' "configure"' > conftest.$ac_ext cannam@167: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 cannam@167: (eval $ac_compile) 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; }; then cannam@167: if test yes = "$lt_cv_prog_gnu_ld"; then cannam@167: case `/usr/bin/file conftest.$ac_objext` in cannam@167: *32-bit*) cannam@167: LD="${LD-ld} -melf32bsmip" cannam@167: ;; cannam@167: *N32*) cannam@167: LD="${LD-ld} -melf32bmipn32" cannam@167: ;; cannam@167: *64-bit*) cannam@167: LD="${LD-ld} -melf64bmip" cannam@167: ;; cannam@167: esac cannam@167: else cannam@167: case `/usr/bin/file conftest.$ac_objext` in cannam@167: *32-bit*) cannam@167: LD="${LD-ld} -32" cannam@167: ;; cannam@167: *N32*) cannam@167: LD="${LD-ld} -n32" cannam@167: ;; cannam@167: *64-bit*) cannam@167: LD="${LD-ld} -64" cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: fi cannam@167: rm -rf conftest* cannam@167: ;; cannam@167: cannam@167: mips64*-*linux*) cannam@167: # Find out what ABI is being produced by ac_compile, and set linker cannam@167: # options accordingly. cannam@167: echo '#line '$LINENO' "configure"' > conftest.$ac_ext cannam@167: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 cannam@167: (eval $ac_compile) 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; }; then cannam@167: emul=elf cannam@167: case `/usr/bin/file conftest.$ac_objext` in cannam@167: *32-bit*) cannam@167: emul="${emul}32" cannam@167: ;; cannam@167: *64-bit*) cannam@167: emul="${emul}64" cannam@167: ;; cannam@167: esac cannam@167: case `/usr/bin/file conftest.$ac_objext` in cannam@167: *MSB*) cannam@167: emul="${emul}btsmip" cannam@167: ;; cannam@167: *LSB*) cannam@167: emul="${emul}ltsmip" cannam@167: ;; cannam@167: esac cannam@167: case `/usr/bin/file conftest.$ac_objext` in cannam@167: *N32*) cannam@167: emul="${emul}n32" cannam@167: ;; cannam@167: esac cannam@167: LD="${LD-ld} -m $emul" cannam@167: fi cannam@167: rm -rf conftest* cannam@167: ;; cannam@167: cannam@167: x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ cannam@167: s390*-*linux*|s390*-*tpf*|sparc*-*linux*) cannam@167: # Find out what ABI is being produced by ac_compile, and set linker cannam@167: # options accordingly. Note that the listed cases only cover the cannam@167: # situations where additional linker options are needed (such as when cannam@167: # doing 32-bit compilation for a host where ld defaults to 64-bit, or cannam@167: # vice versa); the common cases where no linker options are needed do cannam@167: # not appear in the list. cannam@167: echo 'int i;' > conftest.$ac_ext cannam@167: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 cannam@167: (eval $ac_compile) 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; }; then cannam@167: case `/usr/bin/file conftest.o` in cannam@167: *32-bit*) cannam@167: case $host in cannam@167: x86_64-*kfreebsd*-gnu) cannam@167: LD="${LD-ld} -m elf_i386_fbsd" cannam@167: ;; cannam@167: x86_64-*linux*) cannam@167: case `/usr/bin/file conftest.o` in cannam@167: *x86-64*) cannam@167: LD="${LD-ld} -m elf32_x86_64" cannam@167: ;; cannam@167: *) cannam@167: LD="${LD-ld} -m elf_i386" cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: powerpc64le-*linux*) cannam@167: LD="${LD-ld} -m elf32lppclinux" cannam@167: ;; cannam@167: powerpc64-*linux*) cannam@167: LD="${LD-ld} -m elf32ppclinux" cannam@167: ;; cannam@167: s390x-*linux*) cannam@167: LD="${LD-ld} -m elf_s390" cannam@167: ;; cannam@167: sparc64-*linux*) cannam@167: LD="${LD-ld} -m elf32_sparc" cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: *64-bit*) cannam@167: case $host in cannam@167: x86_64-*kfreebsd*-gnu) cannam@167: LD="${LD-ld} -m elf_x86_64_fbsd" cannam@167: ;; cannam@167: x86_64-*linux*) cannam@167: LD="${LD-ld} -m elf_x86_64" cannam@167: ;; cannam@167: powerpcle-*linux*) cannam@167: LD="${LD-ld} -m elf64lppc" cannam@167: ;; cannam@167: powerpc-*linux*) cannam@167: LD="${LD-ld} -m elf64ppc" cannam@167: ;; cannam@167: s390*-*linux*|s390*-*tpf*) cannam@167: LD="${LD-ld} -m elf64_s390" cannam@167: ;; cannam@167: sparc*-*linux*) cannam@167: LD="${LD-ld} -m elf64_sparc" cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: rm -rf conftest* cannam@167: ;; cannam@167: cannam@167: *-*-sco3.2v5*) cannam@167: # On SCO OpenServer 5, we need -belf to get full-featured binaries. cannam@167: SAVE_CFLAGS=$CFLAGS cannam@167: CFLAGS="$CFLAGS -belf" cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 cannam@167: $as_echo_n "checking whether the C compiler needs -belf... " >&6; } cannam@167: if ${lt_cv_cc_needs_belf+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: lt_cv_cc_needs_belf=yes cannam@167: else cannam@167: lt_cv_cc_needs_belf=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 cannam@167: $as_echo "$lt_cv_cc_needs_belf" >&6; } cannam@167: if test yes != "$lt_cv_cc_needs_belf"; then cannam@167: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf cannam@167: CFLAGS=$SAVE_CFLAGS cannam@167: fi cannam@167: ;; cannam@167: *-*solaris*) cannam@167: # Find out what ABI is being produced by ac_compile, and set linker cannam@167: # options accordingly. cannam@167: echo 'int i;' > conftest.$ac_ext cannam@167: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 cannam@167: (eval $ac_compile) 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; }; then cannam@167: case `/usr/bin/file conftest.o` in cannam@167: *64-bit*) cannam@167: case $lt_cv_prog_gnu_ld in cannam@167: yes*) cannam@167: case $host in cannam@167: i?86-*-solaris*|x86_64-*-solaris*) cannam@167: LD="${LD-ld} -m elf_x86_64" cannam@167: ;; cannam@167: sparc*-*-solaris*) cannam@167: LD="${LD-ld} -m elf64_sparc" cannam@167: ;; cannam@167: esac cannam@167: # GNU ld 2.21 introduced _sol2 emulations. Use them if available. cannam@167: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then cannam@167: LD=${LD-ld}_sol2 cannam@167: fi cannam@167: ;; cannam@167: *) cannam@167: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then cannam@167: LD="${LD-ld} -64" cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: rm -rf conftest* cannam@167: ;; cannam@167: esac cannam@167: cannam@167: need_locks=$enable_libtool_lock cannam@167: cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. cannam@167: set dummy ${ac_tool_prefix}mt; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$MANIFEST_TOOL"; then cannam@167: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL cannam@167: if test -n "$MANIFEST_TOOL"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 cannam@167: $as_echo "$MANIFEST_TOOL" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then cannam@167: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL cannam@167: # Extract the first word of "mt", so it can be a program name with args. cannam@167: set dummy mt; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_MANIFEST_TOOL"; then cannam@167: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL cannam@167: if test -n "$ac_ct_MANIFEST_TOOL"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 cannam@167: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: if test "x$ac_ct_MANIFEST_TOOL" = x; then cannam@167: MANIFEST_TOOL=":" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL cannam@167: fi cannam@167: else cannam@167: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" cannam@167: fi cannam@167: cannam@167: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 cannam@167: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } cannam@167: if ${lt_cv_path_mainfest_tool+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_path_mainfest_tool=no cannam@167: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 cannam@167: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cannam@167: cat conftest.err >&5 cannam@167: if $GREP 'Manifest Tool' conftest.out > /dev/null; then cannam@167: lt_cv_path_mainfest_tool=yes cannam@167: fi cannam@167: rm -f conftest* cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 cannam@167: $as_echo "$lt_cv_path_mainfest_tool" >&6; } cannam@167: if test yes != "$lt_cv_path_mainfest_tool"; then cannam@167: MANIFEST_TOOL=: cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: case $host_os in cannam@167: rhapsody* | darwin*) cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. cannam@167: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_DSYMUTIL+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$DSYMUTIL"; then cannam@167: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: DSYMUTIL=$ac_cv_prog_DSYMUTIL cannam@167: if test -n "$DSYMUTIL"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 cannam@167: $as_echo "$DSYMUTIL" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: if test -z "$ac_cv_prog_DSYMUTIL"; then cannam@167: ac_ct_DSYMUTIL=$DSYMUTIL cannam@167: # Extract the first word of "dsymutil", so it can be a program name with args. cannam@167: set dummy dsymutil; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_DSYMUTIL"; then cannam@167: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL cannam@167: if test -n "$ac_ct_DSYMUTIL"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 cannam@167: $as_echo "$ac_ct_DSYMUTIL" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: if test "x$ac_ct_DSYMUTIL" = x; then cannam@167: DSYMUTIL=":" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: DSYMUTIL=$ac_ct_DSYMUTIL cannam@167: fi cannam@167: else cannam@167: DSYMUTIL="$ac_cv_prog_DSYMUTIL" cannam@167: fi cannam@167: cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. cannam@167: set dummy ${ac_tool_prefix}nmedit; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_NMEDIT+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$NMEDIT"; then cannam@167: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: NMEDIT=$ac_cv_prog_NMEDIT cannam@167: if test -n "$NMEDIT"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 cannam@167: $as_echo "$NMEDIT" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: if test -z "$ac_cv_prog_NMEDIT"; then cannam@167: ac_ct_NMEDIT=$NMEDIT cannam@167: # Extract the first word of "nmedit", so it can be a program name with args. cannam@167: set dummy nmedit; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_NMEDIT"; then cannam@167: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_NMEDIT="nmedit" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT cannam@167: if test -n "$ac_ct_NMEDIT"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 cannam@167: $as_echo "$ac_ct_NMEDIT" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: if test "x$ac_ct_NMEDIT" = x; then cannam@167: NMEDIT=":" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: NMEDIT=$ac_ct_NMEDIT cannam@167: fi cannam@167: else cannam@167: NMEDIT="$ac_cv_prog_NMEDIT" cannam@167: fi cannam@167: cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. cannam@167: set dummy ${ac_tool_prefix}lipo; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_LIPO+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$LIPO"; then cannam@167: ac_cv_prog_LIPO="$LIPO" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_LIPO="${ac_tool_prefix}lipo" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: LIPO=$ac_cv_prog_LIPO cannam@167: if test -n "$LIPO"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 cannam@167: $as_echo "$LIPO" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: if test -z "$ac_cv_prog_LIPO"; then cannam@167: ac_ct_LIPO=$LIPO cannam@167: # Extract the first word of "lipo", so it can be a program name with args. cannam@167: set dummy lipo; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_LIPO+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_LIPO"; then cannam@167: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_LIPO="lipo" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO cannam@167: if test -n "$ac_ct_LIPO"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 cannam@167: $as_echo "$ac_ct_LIPO" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: if test "x$ac_ct_LIPO" = x; then cannam@167: LIPO=":" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: LIPO=$ac_ct_LIPO cannam@167: fi cannam@167: else cannam@167: LIPO="$ac_cv_prog_LIPO" cannam@167: fi cannam@167: cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. cannam@167: set dummy ${ac_tool_prefix}otool; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_OTOOL+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$OTOOL"; then cannam@167: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_OTOOL="${ac_tool_prefix}otool" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: OTOOL=$ac_cv_prog_OTOOL cannam@167: if test -n "$OTOOL"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 cannam@167: $as_echo "$OTOOL" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: if test -z "$ac_cv_prog_OTOOL"; then cannam@167: ac_ct_OTOOL=$OTOOL cannam@167: # Extract the first word of "otool", so it can be a program name with args. cannam@167: set dummy otool; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_OTOOL"; then cannam@167: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_OTOOL="otool" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL cannam@167: if test -n "$ac_ct_OTOOL"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 cannam@167: $as_echo "$ac_ct_OTOOL" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: if test "x$ac_ct_OTOOL" = x; then cannam@167: OTOOL=":" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: OTOOL=$ac_ct_OTOOL cannam@167: fi cannam@167: else cannam@167: OTOOL="$ac_cv_prog_OTOOL" cannam@167: fi cannam@167: cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. cannam@167: set dummy ${ac_tool_prefix}otool64; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_OTOOL64+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$OTOOL64"; then cannam@167: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: OTOOL64=$ac_cv_prog_OTOOL64 cannam@167: if test -n "$OTOOL64"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 cannam@167: $as_echo "$OTOOL64" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: if test -z "$ac_cv_prog_OTOOL64"; then cannam@167: ac_ct_OTOOL64=$OTOOL64 cannam@167: # Extract the first word of "otool64", so it can be a program name with args. cannam@167: set dummy otool64; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_OTOOL64"; then cannam@167: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_OTOOL64="otool64" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 cannam@167: if test -n "$ac_ct_OTOOL64"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 cannam@167: $as_echo "$ac_ct_OTOOL64" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: if test "x$ac_ct_OTOOL64" = x; then cannam@167: OTOOL64=":" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: OTOOL64=$ac_ct_OTOOL64 cannam@167: fi cannam@167: else cannam@167: OTOOL64="$ac_cv_prog_OTOOL64" cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 cannam@167: $as_echo_n "checking for -single_module linker flag... " >&6; } cannam@167: if ${lt_cv_apple_cc_single_mod+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_apple_cc_single_mod=no cannam@167: if test -z "$LT_MULTI_MODULE"; then cannam@167: # By default we will add the -single_module flag. You can override cannam@167: # by either setting the environment variable LT_MULTI_MODULE cannam@167: # non-empty at configure time, or by adding -multi_module to the cannam@167: # link flags. cannam@167: rm -rf libconftest.dylib* cannam@167: echo "int foo(void){return 1;}" > conftest.c cannam@167: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ cannam@167: -dynamiclib -Wl,-single_module conftest.c" >&5 cannam@167: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ cannam@167: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err cannam@167: _lt_result=$? cannam@167: # If there is a non-empty error log, and "single_module" cannam@167: # appears in it, assume the flag caused a linker warning cannam@167: if test -s conftest.err && $GREP single_module conftest.err; then cannam@167: cat conftest.err >&5 cannam@167: # Otherwise, if the output was created with a 0 exit code from cannam@167: # the compiler, it worked. cannam@167: elif test -f libconftest.dylib && test 0 = "$_lt_result"; then cannam@167: lt_cv_apple_cc_single_mod=yes cannam@167: else cannam@167: cat conftest.err >&5 cannam@167: fi cannam@167: rm -rf libconftest.dylib* cannam@167: rm -f conftest.* cannam@167: fi cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 cannam@167: $as_echo "$lt_cv_apple_cc_single_mod" >&6; } cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 cannam@167: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } cannam@167: if ${lt_cv_ld_exported_symbols_list+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_ld_exported_symbols_list=no cannam@167: save_LDFLAGS=$LDFLAGS cannam@167: echo "_main" > conftest.sym cannam@167: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: lt_cv_ld_exported_symbols_list=yes cannam@167: else cannam@167: lt_cv_ld_exported_symbols_list=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: LDFLAGS=$save_LDFLAGS cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 cannam@167: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 cannam@167: $as_echo_n "checking for -force_load linker flag... " >&6; } cannam@167: if ${lt_cv_ld_force_load+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_ld_force_load=no cannam@167: cat > conftest.c << _LT_EOF cannam@167: int forced_loaded() { return 2;} cannam@167: _LT_EOF cannam@167: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 cannam@167: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 cannam@167: echo "$AR cru libconftest.a conftest.o" >&5 cannam@167: $AR cru libconftest.a conftest.o 2>&5 cannam@167: echo "$RANLIB libconftest.a" >&5 cannam@167: $RANLIB libconftest.a 2>&5 cannam@167: cat > conftest.c << _LT_EOF cannam@167: int main() { return 0;} cannam@167: _LT_EOF cannam@167: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 cannam@167: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err cannam@167: _lt_result=$? cannam@167: if test -s conftest.err && $GREP force_load conftest.err; then cannam@167: cat conftest.err >&5 cannam@167: elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then cannam@167: lt_cv_ld_force_load=yes cannam@167: else cannam@167: cat conftest.err >&5 cannam@167: fi cannam@167: rm -f conftest.err libconftest.a conftest conftest.c cannam@167: rm -rf conftest.dSYM cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 cannam@167: $as_echo "$lt_cv_ld_force_load" >&6; } cannam@167: case $host_os in cannam@167: rhapsody* | darwin1.[012]) cannam@167: _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; cannam@167: darwin1.*) cannam@167: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; cannam@167: darwin*) # darwin 5.x on cannam@167: # if running on 10.5 or later, the deployment target defaults cannam@167: # to the OS version, if on x86, and 10.4, the deployment cannam@167: # target defaults to 10.4. Don't you love it? cannam@167: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in cannam@167: 10.0,*86*-darwin8*|10.0,*-darwin[91]*) cannam@167: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; cannam@167: 10.[012][,.]*) cannam@167: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; cannam@167: 10.*) cannam@167: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; cannam@167: esac cannam@167: ;; cannam@167: esac cannam@167: if test yes = "$lt_cv_apple_cc_single_mod"; then cannam@167: _lt_dar_single_mod='$single_module' cannam@167: fi cannam@167: if test yes = "$lt_cv_ld_exported_symbols_list"; then cannam@167: _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' cannam@167: else cannam@167: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' cannam@167: fi cannam@167: if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then cannam@167: _lt_dsymutil='~$DSYMUTIL $lib || :' cannam@167: else cannam@167: _lt_dsymutil= cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: cannam@167: # func_munge_path_list VARIABLE PATH cannam@167: # ----------------------------------- cannam@167: # VARIABLE is name of variable containing _space_ separated list of cannam@167: # directories to be munged by the contents of PATH, which is string cannam@167: # having a format: cannam@167: # "DIR[:DIR]:" cannam@167: # string "DIR[ DIR]" will be prepended to VARIABLE cannam@167: # ":DIR[:DIR]" cannam@167: # string "DIR[ DIR]" will be appended to VARIABLE cannam@167: # "DIRP[:DIRP]::[DIRA:]DIRA" cannam@167: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string cannam@167: # "DIRA[ DIRA]" will be appended to VARIABLE cannam@167: # "DIR[:DIR]" cannam@167: # VARIABLE will be replaced by "DIR[ DIR]" cannam@167: func_munge_path_list () cannam@167: { cannam@167: case x$2 in cannam@167: x) cannam@167: ;; cannam@167: *:) cannam@167: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" cannam@167: ;; cannam@167: x:*) cannam@167: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" cannam@167: ;; cannam@167: *::*) cannam@167: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" cannam@167: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" cannam@167: ;; cannam@167: *) cannam@167: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" cannam@167: ;; cannam@167: esac cannam@167: } cannam@167: cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 cannam@167: $as_echo_n "checking how to run the C preprocessor... " >&6; } cannam@167: # On Suns, sometimes $CPP names a directory. cannam@167: if test -n "$CPP" && test -d "$CPP"; then cannam@167: CPP= cannam@167: fi cannam@167: if test -z "$CPP"; then cannam@167: if ${ac_cv_prog_CPP+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: # Double quotes because CPP needs to be expanded cannam@167: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" cannam@167: do cannam@167: ac_preproc_ok=false cannam@167: for ac_c_preproc_warn_flag in '' yes cannam@167: do cannam@167: # Use a header file that comes with gcc, so configuring glibc cannam@167: # with a fresh cross-compiler works. cannam@167: # Prefer to if __STDC__ is defined, since cannam@167: # exists even on freestanding compilers. cannam@167: # On the NeXT, cc -E runs the code through the compiler's parser, cannam@167: # not just through cpp. "Syntax error" is here to catch this case. cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #ifdef __STDC__ cannam@167: # include cannam@167: #else cannam@167: # include cannam@167: #endif cannam@167: Syntax error cannam@167: _ACEOF cannam@167: if ac_fn_c_try_cpp "$LINENO"; then : cannam@167: cannam@167: else cannam@167: # Broken: fails on valid input. cannam@167: continue cannam@167: fi cannam@167: rm -f conftest.err conftest.i conftest.$ac_ext cannam@167: cannam@167: # OK, works on sane cases. Now check whether nonexistent headers cannam@167: # can be detected and how. cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: _ACEOF cannam@167: if ac_fn_c_try_cpp "$LINENO"; then : cannam@167: # Broken: success on invalid input. cannam@167: continue cannam@167: else cannam@167: # Passes both tests. cannam@167: ac_preproc_ok=: cannam@167: break cannam@167: fi cannam@167: rm -f conftest.err conftest.i conftest.$ac_ext cannam@167: cannam@167: done cannam@167: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. cannam@167: rm -f conftest.i conftest.err conftest.$ac_ext cannam@167: if $ac_preproc_ok; then : cannam@167: break cannam@167: fi cannam@167: cannam@167: done cannam@167: ac_cv_prog_CPP=$CPP cannam@167: cannam@167: fi cannam@167: CPP=$ac_cv_prog_CPP cannam@167: else cannam@167: ac_cv_prog_CPP=$CPP cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 cannam@167: $as_echo "$CPP" >&6; } cannam@167: ac_preproc_ok=false cannam@167: for ac_c_preproc_warn_flag in '' yes cannam@167: do cannam@167: # Use a header file that comes with gcc, so configuring glibc cannam@167: # with a fresh cross-compiler works. cannam@167: # Prefer to if __STDC__ is defined, since cannam@167: # exists even on freestanding compilers. cannam@167: # On the NeXT, cc -E runs the code through the compiler's parser, cannam@167: # not just through cpp. "Syntax error" is here to catch this case. cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #ifdef __STDC__ cannam@167: # include cannam@167: #else cannam@167: # include cannam@167: #endif cannam@167: Syntax error cannam@167: _ACEOF cannam@167: if ac_fn_c_try_cpp "$LINENO"; then : cannam@167: cannam@167: else cannam@167: # Broken: fails on valid input. cannam@167: continue cannam@167: fi cannam@167: rm -f conftest.err conftest.i conftest.$ac_ext cannam@167: cannam@167: # OK, works on sane cases. Now check whether nonexistent headers cannam@167: # can be detected and how. cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: _ACEOF cannam@167: if ac_fn_c_try_cpp "$LINENO"; then : cannam@167: # Broken: success on invalid input. cannam@167: continue cannam@167: else cannam@167: # Passes both tests. cannam@167: ac_preproc_ok=: cannam@167: break cannam@167: fi cannam@167: rm -f conftest.err conftest.i conftest.$ac_ext cannam@167: cannam@167: done cannam@167: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. cannam@167: rm -f conftest.i conftest.err conftest.$ac_ext cannam@167: if $ac_preproc_ok; then : cannam@167: cannam@167: else cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: fi cannam@167: cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 cannam@167: $as_echo_n "checking for ANSI C header files... " >&6; } cannam@167: if ${ac_cv_header_stdc+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: #include cannam@167: #include cannam@167: #include cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ac_cv_header_stdc=yes cannam@167: else cannam@167: ac_cv_header_stdc=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: cannam@167: if test $ac_cv_header_stdc = yes; then cannam@167: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: cannam@167: _ACEOF cannam@167: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@167: $EGREP "memchr" >/dev/null 2>&1; then : cannam@167: cannam@167: else cannam@167: ac_cv_header_stdc=no cannam@167: fi cannam@167: rm -f conftest* cannam@167: cannam@167: fi cannam@167: cannam@167: if test $ac_cv_header_stdc = yes; then cannam@167: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: cannam@167: _ACEOF cannam@167: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@167: $EGREP "free" >/dev/null 2>&1; then : cannam@167: cannam@167: else cannam@167: ac_cv_header_stdc=no cannam@167: fi cannam@167: rm -f conftest* cannam@167: cannam@167: fi cannam@167: cannam@167: if test $ac_cv_header_stdc = yes; then cannam@167: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. cannam@167: if test "$cross_compiling" = yes; then : cannam@167: : cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: #include cannam@167: #if ((' ' & 0x0FF) == 0x020) cannam@167: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') cannam@167: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) cannam@167: #else cannam@167: # define ISLOWER(c) \ cannam@167: (('a' <= (c) && (c) <= 'i') \ cannam@167: || ('j' <= (c) && (c) <= 'r') \ cannam@167: || ('s' <= (c) && (c) <= 'z')) cannam@167: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) cannam@167: #endif cannam@167: cannam@167: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) cannam@167: int cannam@167: main () cannam@167: { cannam@167: int i; cannam@167: for (i = 0; i < 256; i++) cannam@167: if (XOR (islower (i), ISLOWER (i)) cannam@167: || toupper (i) != TOUPPER (i)) cannam@167: return 2; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_run "$LINENO"; then : cannam@167: cannam@167: else cannam@167: ac_cv_header_stdc=no cannam@167: fi cannam@167: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ cannam@167: conftest.$ac_objext conftest.beam conftest.$ac_ext cannam@167: fi cannam@167: cannam@167: fi cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 cannam@167: $as_echo "$ac_cv_header_stdc" >&6; } cannam@167: if test $ac_cv_header_stdc = yes; then cannam@167: cannam@167: $as_echo "#define STDC_HEADERS 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: # On IRIX 5.3, sys/types and inttypes.h are conflicting. cannam@167: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ cannam@167: inttypes.h stdint.h unistd.h cannam@167: do : cannam@167: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` cannam@167: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default cannam@167: " cannam@167: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 cannam@167: _ACEOF cannam@167: cannam@167: fi cannam@167: cannam@167: done cannam@167: cannam@167: cannam@167: for ac_header in dlfcn.h cannam@167: do : cannam@167: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default cannam@167: " cannam@167: if test "x$ac_cv_header_dlfcn_h" = xyes; then : cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define HAVE_DLFCN_H 1 cannam@167: _ACEOF cannam@167: cannam@167: fi cannam@167: cannam@167: done cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # Set options cannam@167: cannam@167: cannam@167: cannam@167: enable_dlopen=no cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # Check whether --enable-static was given. cannam@167: if test "${enable_static+set}" = set; then : cannam@167: enableval=$enable_static; p=${PACKAGE-default} cannam@167: case $enableval in cannam@167: yes) enable_static=yes ;; cannam@167: no) enable_static=no ;; cannam@167: *) cannam@167: enable_static=no cannam@167: # Look at the argument we got. We use all the common list separators. cannam@167: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, cannam@167: for pkg in $enableval; do cannam@167: IFS=$lt_save_ifs cannam@167: if test "X$pkg" = "X$p"; then cannam@167: enable_static=yes cannam@167: fi cannam@167: done cannam@167: IFS=$lt_save_ifs cannam@167: ;; cannam@167: esac cannam@167: else cannam@167: enable_static=yes cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # Check whether --with-pic was given. cannam@167: if test "${with_pic+set}" = set; then : cannam@167: withval=$with_pic; lt_p=${PACKAGE-default} cannam@167: case $withval in cannam@167: yes|no) pic_mode=$withval ;; cannam@167: *) cannam@167: pic_mode=default cannam@167: # Look at the argument we got. We use all the common list separators. cannam@167: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, cannam@167: for lt_pkg in $withval; do cannam@167: IFS=$lt_save_ifs cannam@167: if test "X$lt_pkg" = "X$lt_p"; then cannam@167: pic_mode=yes cannam@167: fi cannam@167: done cannam@167: IFS=$lt_save_ifs cannam@167: ;; cannam@167: esac cannam@167: else cannam@167: pic_mode=default cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # Check whether --enable-fast-install was given. cannam@167: if test "${enable_fast_install+set}" = set; then : cannam@167: enableval=$enable_fast_install; p=${PACKAGE-default} cannam@167: case $enableval in cannam@167: yes) enable_fast_install=yes ;; cannam@167: no) enable_fast_install=no ;; cannam@167: *) cannam@167: enable_fast_install=no cannam@167: # Look at the argument we got. We use all the common list separators. cannam@167: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, cannam@167: for pkg in $enableval; do cannam@167: IFS=$lt_save_ifs cannam@167: if test "X$pkg" = "X$p"; then cannam@167: enable_fast_install=yes cannam@167: fi cannam@167: done cannam@167: IFS=$lt_save_ifs cannam@167: ;; cannam@167: esac cannam@167: else cannam@167: enable_fast_install=yes cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: shared_archive_member_spec= cannam@167: case $host,$enable_shared in cannam@167: power*-*-aix[5-9]*,yes) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 cannam@167: $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } cannam@167: cannam@167: # Check whether --with-aix-soname was given. cannam@167: if test "${with_aix_soname+set}" = set; then : cannam@167: withval=$with_aix_soname; case $withval in cannam@167: aix|svr4|both) cannam@167: ;; cannam@167: *) cannam@167: as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 cannam@167: ;; cannam@167: esac cannam@167: lt_cv_with_aix_soname=$with_aix_soname cannam@167: else cannam@167: if ${lt_cv_with_aix_soname+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_with_aix_soname=aix cannam@167: fi cannam@167: cannam@167: with_aix_soname=$lt_cv_with_aix_soname cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 cannam@167: $as_echo "$with_aix_soname" >&6; } cannam@167: if test aix != "$with_aix_soname"; then cannam@167: # For the AIX way of multilib, we name the shared archive member cannam@167: # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', cannam@167: # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. cannam@167: # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, cannam@167: # the AIX toolchain works better with OBJECT_MODE set (default 32). cannam@167: if test 64 = "${OBJECT_MODE-32}"; then cannam@167: shared_archive_member_spec=shr_64 cannam@167: else cannam@167: shared_archive_member_spec=shr cannam@167: fi cannam@167: fi cannam@167: ;; cannam@167: *) cannam@167: with_aix_soname=aix cannam@167: ;; cannam@167: esac cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # This can be used to rebuild libtool when needed cannam@167: LIBTOOL_DEPS=$ltmain cannam@167: cannam@167: # Always use our own libtool. cannam@167: LIBTOOL='$(SHELL) $(top_builddir)/libtool' cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: test -z "$LN_S" && LN_S="ln -s" cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: if test -n "${ZSH_VERSION+set}"; then cannam@167: setopt NO_GLOB_SUBST cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 cannam@167: $as_echo_n "checking for objdir... " >&6; } cannam@167: if ${lt_cv_objdir+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: rm -f .libs 2>/dev/null cannam@167: mkdir .libs 2>/dev/null cannam@167: if test -d .libs; then cannam@167: lt_cv_objdir=.libs cannam@167: else cannam@167: # MS-DOS does not allow filenames that begin with a dot. cannam@167: lt_cv_objdir=_libs cannam@167: fi cannam@167: rmdir .libs 2>/dev/null cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 cannam@167: $as_echo "$lt_cv_objdir" >&6; } cannam@167: objdir=$lt_cv_objdir cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define LT_OBJDIR "$lt_cv_objdir/" cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: case $host_os in cannam@167: aix3*) cannam@167: # AIX sometimes has problems with the GCC collect2 program. For some cannam@167: # reason, if we set the COLLECT_NAMES environment variable, the problems cannam@167: # vanish in a puff of smoke. cannam@167: if test set != "${COLLECT_NAMES+set}"; then cannam@167: COLLECT_NAMES= cannam@167: export COLLECT_NAMES cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: cannam@167: # Global variables: cannam@167: ofile=libtool cannam@167: can_build_shared=yes cannam@167: cannam@167: # All known linkers require a '.a' archive for static linking (except MSVC, cannam@167: # which needs '.lib'). cannam@167: libext=a cannam@167: cannam@167: with_gnu_ld=$lt_cv_prog_gnu_ld cannam@167: cannam@167: old_CC=$CC cannam@167: old_CFLAGS=$CFLAGS cannam@167: cannam@167: # Set sane defaults for various variables cannam@167: test -z "$CC" && CC=cc cannam@167: test -z "$LTCC" && LTCC=$CC cannam@167: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS cannam@167: test -z "$LD" && LD=ld cannam@167: test -z "$ac_objext" && ac_objext=o cannam@167: cannam@167: func_cc_basename $compiler cannam@167: cc_basename=$func_cc_basename_result cannam@167: cannam@167: cannam@167: # Only perform the check for file, if the check method requires it cannam@167: test -z "$MAGIC_CMD" && MAGIC_CMD=file cannam@167: case $deplibs_check_method in cannam@167: file_magic*) cannam@167: if test "$file_magic_cmd" = '$MAGIC_CMD'; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 cannam@167: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } cannam@167: if ${lt_cv_path_MAGIC_CMD+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: case $MAGIC_CMD in cannam@167: [\\/*] | ?:[\\/]*) cannam@167: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. cannam@167: ;; cannam@167: *) cannam@167: lt_save_MAGIC_CMD=$MAGIC_CMD cannam@167: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR cannam@167: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" cannam@167: for ac_dir in $ac_dummy; do cannam@167: IFS=$lt_save_ifs cannam@167: test -z "$ac_dir" && ac_dir=. cannam@167: if test -f "$ac_dir/${ac_tool_prefix}file"; then cannam@167: lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" cannam@167: if test -n "$file_magic_test_file"; then cannam@167: case $deplibs_check_method in cannam@167: "file_magic "*) cannam@167: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` cannam@167: MAGIC_CMD=$lt_cv_path_MAGIC_CMD cannam@167: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | cannam@167: $EGREP "$file_magic_regex" > /dev/null; then cannam@167: : cannam@167: else cannam@167: cat <<_LT_EOF 1>&2 cannam@167: cannam@167: *** Warning: the command libtool uses to detect shared libraries, cannam@167: *** $file_magic_cmd, produces output that libtool cannot recognize. cannam@167: *** The result is that libtool may fail to recognize shared libraries cannam@167: *** as such. This will affect the creation of libtool libraries that cannam@167: *** depend on shared libraries, but programs linked with such libtool cannam@167: *** libraries will work regardless of this problem. Nevertheless, you cannam@167: *** may want to report the problem to your system manager and/or to cannam@167: *** bug-libtool@gnu.org cannam@167: cannam@167: _LT_EOF cannam@167: fi ;; cannam@167: esac cannam@167: fi cannam@167: break cannam@167: fi cannam@167: done cannam@167: IFS=$lt_save_ifs cannam@167: MAGIC_CMD=$lt_save_MAGIC_CMD cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: cannam@167: MAGIC_CMD=$lt_cv_path_MAGIC_CMD cannam@167: if test -n "$MAGIC_CMD"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 cannam@167: $as_echo "$MAGIC_CMD" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: if test -z "$lt_cv_path_MAGIC_CMD"; then cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 cannam@167: $as_echo_n "checking for file... " >&6; } cannam@167: if ${lt_cv_path_MAGIC_CMD+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: case $MAGIC_CMD in cannam@167: [\\/*] | ?:[\\/]*) cannam@167: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. cannam@167: ;; cannam@167: *) cannam@167: lt_save_MAGIC_CMD=$MAGIC_CMD cannam@167: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR cannam@167: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" cannam@167: for ac_dir in $ac_dummy; do cannam@167: IFS=$lt_save_ifs cannam@167: test -z "$ac_dir" && ac_dir=. cannam@167: if test -f "$ac_dir/file"; then cannam@167: lt_cv_path_MAGIC_CMD=$ac_dir/"file" cannam@167: if test -n "$file_magic_test_file"; then cannam@167: case $deplibs_check_method in cannam@167: "file_magic "*) cannam@167: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` cannam@167: MAGIC_CMD=$lt_cv_path_MAGIC_CMD cannam@167: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | cannam@167: $EGREP "$file_magic_regex" > /dev/null; then cannam@167: : cannam@167: else cannam@167: cat <<_LT_EOF 1>&2 cannam@167: cannam@167: *** Warning: the command libtool uses to detect shared libraries, cannam@167: *** $file_magic_cmd, produces output that libtool cannot recognize. cannam@167: *** The result is that libtool may fail to recognize shared libraries cannam@167: *** as such. This will affect the creation of libtool libraries that cannam@167: *** depend on shared libraries, but programs linked with such libtool cannam@167: *** libraries will work regardless of this problem. Nevertheless, you cannam@167: *** may want to report the problem to your system manager and/or to cannam@167: *** bug-libtool@gnu.org cannam@167: cannam@167: _LT_EOF cannam@167: fi ;; cannam@167: esac cannam@167: fi cannam@167: break cannam@167: fi cannam@167: done cannam@167: IFS=$lt_save_ifs cannam@167: MAGIC_CMD=$lt_save_MAGIC_CMD cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: cannam@167: MAGIC_CMD=$lt_cv_path_MAGIC_CMD cannam@167: if test -n "$MAGIC_CMD"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 cannam@167: $as_echo "$MAGIC_CMD" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: else cannam@167: MAGIC_CMD=: cannam@167: fi cannam@167: fi cannam@167: cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: cannam@167: # Use C for the default configuration in the libtool script cannam@167: cannam@167: lt_save_CC=$CC cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: cannam@167: # Source file extension for C test sources. cannam@167: ac_ext=c cannam@167: cannam@167: # Object file extension for compiled C test sources. cannam@167: objext=o cannam@167: objext=$objext cannam@167: cannam@167: # Code to be used in simple compile tests cannam@167: lt_simple_compile_test_code="int some_variable = 0;" cannam@167: cannam@167: # Code to be used in simple link tests cannam@167: lt_simple_link_test_code='int main(){return(0);}' cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # If no C compiler was specified, use CC. cannam@167: LTCC=${LTCC-"$CC"} cannam@167: cannam@167: # If no C compiler flags were specified, use CFLAGS. cannam@167: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} cannam@167: cannam@167: # Allow CC to be a program name with arguments. cannam@167: compiler=$CC cannam@167: cannam@167: # Save the default compiler, since it gets overwritten when the other cannam@167: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. cannam@167: compiler_DEFAULT=$CC cannam@167: cannam@167: # save warnings/boilerplate of simple test code cannam@167: ac_outfile=conftest.$ac_objext cannam@167: echo "$lt_simple_compile_test_code" >conftest.$ac_ext cannam@167: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err cannam@167: _lt_compiler_boilerplate=`cat conftest.err` cannam@167: $RM conftest* cannam@167: cannam@167: ac_outfile=conftest.$ac_objext cannam@167: echo "$lt_simple_link_test_code" >conftest.$ac_ext cannam@167: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err cannam@167: _lt_linker_boilerplate=`cat conftest.err` cannam@167: $RM -r conftest* cannam@167: cannam@167: cannam@167: ## CAVEAT EMPTOR: cannam@167: ## There is no encapsulation within the following macros, do not change cannam@167: ## the running order or otherwise move them around unless you know exactly cannam@167: ## what you are doing... cannam@167: if test -n "$compiler"; then cannam@167: cannam@167: lt_prog_compiler_no_builtin_flag= cannam@167: cannam@167: if test yes = "$GCC"; then cannam@167: case $cc_basename in cannam@167: nvcc*) cannam@167: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; cannam@167: *) cannam@167: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; cannam@167: esac cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 cannam@167: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } cannam@167: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_prog_compiler_rtti_exceptions=no cannam@167: ac_outfile=conftest.$ac_objext cannam@167: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@167: lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment cannam@167: # Insert the option either (1) after the last *FLAGS variable, or cannam@167: # (2) before a word containing "conftest.", or (3) at the end. cannam@167: # Note that $ac_compile itself does not contain backslashes and begins cannam@167: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@167: # The option is referenced via a variable to avoid confusing sed. cannam@167: lt_compile=`echo "$ac_compile" | $SED \ cannam@167: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ cannam@167: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@167: -e 's:$: $lt_compiler_flag:'` cannam@167: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) cannam@167: (eval "$lt_compile" 2>conftest.err) cannam@167: ac_status=$? cannam@167: cat conftest.err >&5 cannam@167: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@167: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@167: # The compiler can only warn and ignore the option if not recognized cannam@167: # So say no if there are warnings other than the usual output. cannam@167: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp cannam@167: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 cannam@167: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then cannam@167: lt_cv_prog_compiler_rtti_exceptions=yes cannam@167: fi cannam@167: fi cannam@167: $RM conftest* cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 cannam@167: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } cannam@167: cannam@167: if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then cannam@167: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: lt_prog_compiler_wl= cannam@167: lt_prog_compiler_pic= cannam@167: lt_prog_compiler_static= cannam@167: cannam@167: cannam@167: if test yes = "$GCC"; then cannam@167: lt_prog_compiler_wl='-Wl,' cannam@167: lt_prog_compiler_static='-static' cannam@167: cannam@167: case $host_os in cannam@167: aix*) cannam@167: # All AIX code is PIC. cannam@167: if test ia64 = "$host_cpu"; then cannam@167: # AIX 5 now supports IA64 processor cannam@167: lt_prog_compiler_static='-Bstatic' cannam@167: fi cannam@167: lt_prog_compiler_pic='-fPIC' cannam@167: ;; cannam@167: cannam@167: amigaos*) cannam@167: case $host_cpu in cannam@167: powerpc) cannam@167: # see comment about AmigaOS4 .so support cannam@167: lt_prog_compiler_pic='-fPIC' cannam@167: ;; cannam@167: m68k) cannam@167: # FIXME: we need at least 68020 code to build shared libraries, but cannam@167: # adding the '-m68020' flag to GCC prevents building anything better, cannam@167: # like '-m68040'. cannam@167: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) cannam@167: # PIC is the default for these OSes. cannam@167: ;; cannam@167: cannam@167: mingw* | cygwin* | pw32* | os2* | cegcc*) cannam@167: # This hack is so that the source file can tell whether it is being cannam@167: # built for inclusion in a dll (and should export symbols for example). cannam@167: # Although the cygwin gcc ignores -fPIC, still need this for old-style cannam@167: # (--disable-auto-import) libraries cannam@167: lt_prog_compiler_pic='-DDLL_EXPORT' cannam@167: case $host_os in cannam@167: os2*) cannam@167: lt_prog_compiler_static='$wl-static' cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: darwin* | rhapsody*) cannam@167: # PIC is the default on this platform cannam@167: # Common symbols not allowed in MH_DYLIB files cannam@167: lt_prog_compiler_pic='-fno-common' cannam@167: ;; cannam@167: cannam@167: haiku*) cannam@167: # PIC is the default for Haiku. cannam@167: # The "-static" flag exists, but is broken. cannam@167: lt_prog_compiler_static= cannam@167: ;; cannam@167: cannam@167: hpux*) cannam@167: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit cannam@167: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag cannam@167: # sets the default TLS model and affects inlining. cannam@167: case $host_cpu in cannam@167: hppa*64*) cannam@167: # +Z the default cannam@167: ;; cannam@167: *) cannam@167: lt_prog_compiler_pic='-fPIC' cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: interix[3-9]*) cannam@167: # Interix 3.x gcc -fpic/-fPIC options generate broken code. cannam@167: # Instead, we relocate shared libraries at runtime. cannam@167: ;; cannam@167: cannam@167: msdosdjgpp*) cannam@167: # Just because we use GCC doesn't mean we suddenly get shared libraries cannam@167: # on systems that don't support them. cannam@167: lt_prog_compiler_can_build_shared=no cannam@167: enable_shared=no cannam@167: ;; cannam@167: cannam@167: *nto* | *qnx*) cannam@167: # QNX uses GNU C++, but need to define -shared option too, otherwise cannam@167: # it will coredump. cannam@167: lt_prog_compiler_pic='-fPIC -shared' cannam@167: ;; cannam@167: cannam@167: sysv4*MP*) cannam@167: if test -d /usr/nec; then cannam@167: lt_prog_compiler_pic=-Kconform_pic cannam@167: fi cannam@167: ;; cannam@167: cannam@167: *) cannam@167: lt_prog_compiler_pic='-fPIC' cannam@167: ;; cannam@167: esac cannam@167: cannam@167: case $cc_basename in cannam@167: nvcc*) # Cuda Compiler Driver 2.2 cannam@167: lt_prog_compiler_wl='-Xlinker ' cannam@167: if test -n "$lt_prog_compiler_pic"; then cannam@167: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: else cannam@167: # PORTME Check for flag to pass linker flags through the system compiler. cannam@167: case $host_os in cannam@167: aix*) cannam@167: lt_prog_compiler_wl='-Wl,' cannam@167: if test ia64 = "$host_cpu"; then cannam@167: # AIX 5 now supports IA64 processor cannam@167: lt_prog_compiler_static='-Bstatic' cannam@167: else cannam@167: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' cannam@167: fi cannam@167: ;; cannam@167: cannam@167: darwin* | rhapsody*) cannam@167: # PIC is the default on this platform cannam@167: # Common symbols not allowed in MH_DYLIB files cannam@167: lt_prog_compiler_pic='-fno-common' cannam@167: case $cc_basename in cannam@167: nagfor*) cannam@167: # NAG Fortran compiler cannam@167: lt_prog_compiler_wl='-Wl,-Wl,,' cannam@167: lt_prog_compiler_pic='-PIC' cannam@167: lt_prog_compiler_static='-Bstatic' cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: mingw* | cygwin* | pw32* | os2* | cegcc*) cannam@167: # This hack is so that the source file can tell whether it is being cannam@167: # built for inclusion in a dll (and should export symbols for example). cannam@167: lt_prog_compiler_pic='-DDLL_EXPORT' cannam@167: case $host_os in cannam@167: os2*) cannam@167: lt_prog_compiler_static='$wl-static' cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: hpux9* | hpux10* | hpux11*) cannam@167: lt_prog_compiler_wl='-Wl,' cannam@167: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@167: # not for PA HP-UX. cannam@167: case $host_cpu in cannam@167: hppa*64*|ia64*) cannam@167: # +Z the default cannam@167: ;; cannam@167: *) cannam@167: lt_prog_compiler_pic='+Z' cannam@167: ;; cannam@167: esac cannam@167: # Is there a better lt_prog_compiler_static that works with the bundled CC? cannam@167: lt_prog_compiler_static='$wl-a ${wl}archive' cannam@167: ;; cannam@167: cannam@167: irix5* | irix6* | nonstopux*) cannam@167: lt_prog_compiler_wl='-Wl,' cannam@167: # PIC (with -KPIC) is the default. cannam@167: lt_prog_compiler_static='-non_shared' cannam@167: ;; cannam@167: cannam@167: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) cannam@167: case $cc_basename in cannam@167: # old Intel for x86_64, which still supported -KPIC. cannam@167: ecc*) cannam@167: lt_prog_compiler_wl='-Wl,' cannam@167: lt_prog_compiler_pic='-KPIC' cannam@167: lt_prog_compiler_static='-static' cannam@167: ;; cannam@167: # icc used to be incompatible with GCC. cannam@167: # ICC 10 doesn't accept -KPIC any more. cannam@167: icc* | ifort*) cannam@167: lt_prog_compiler_wl='-Wl,' cannam@167: lt_prog_compiler_pic='-fPIC' cannam@167: lt_prog_compiler_static='-static' cannam@167: ;; cannam@167: # Lahey Fortran 8.1. cannam@167: lf95*) cannam@167: lt_prog_compiler_wl='-Wl,' cannam@167: lt_prog_compiler_pic='--shared' cannam@167: lt_prog_compiler_static='--static' cannam@167: ;; cannam@167: nagfor*) cannam@167: # NAG Fortran compiler cannam@167: lt_prog_compiler_wl='-Wl,-Wl,,' cannam@167: lt_prog_compiler_pic='-PIC' cannam@167: lt_prog_compiler_static='-Bstatic' cannam@167: ;; cannam@167: tcc*) cannam@167: # Fabrice Bellard et al's Tiny C Compiler cannam@167: lt_prog_compiler_wl='-Wl,' cannam@167: lt_prog_compiler_pic='-fPIC' cannam@167: lt_prog_compiler_static='-static' cannam@167: ;; cannam@167: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) cannam@167: # Portland Group compilers (*not* the Pentium gcc compiler, cannam@167: # which looks to be a dead project) cannam@167: lt_prog_compiler_wl='-Wl,' cannam@167: lt_prog_compiler_pic='-fpic' cannam@167: lt_prog_compiler_static='-Bstatic' cannam@167: ;; cannam@167: ccc*) cannam@167: lt_prog_compiler_wl='-Wl,' cannam@167: # All Alpha code is PIC. cannam@167: lt_prog_compiler_static='-non_shared' cannam@167: ;; cannam@167: xl* | bgxl* | bgf* | mpixl*) cannam@167: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene cannam@167: lt_prog_compiler_wl='-Wl,' cannam@167: lt_prog_compiler_pic='-qpic' cannam@167: lt_prog_compiler_static='-qstaticlink' cannam@167: ;; cannam@167: *) cannam@167: case `$CC -V 2>&1 | sed 5q` in cannam@167: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) cannam@167: # Sun Fortran 8.3 passes all unrecognized flags to the linker cannam@167: lt_prog_compiler_pic='-KPIC' cannam@167: lt_prog_compiler_static='-Bstatic' cannam@167: lt_prog_compiler_wl='' cannam@167: ;; cannam@167: *Sun\ F* | *Sun*Fortran*) cannam@167: lt_prog_compiler_pic='-KPIC' cannam@167: lt_prog_compiler_static='-Bstatic' cannam@167: lt_prog_compiler_wl='-Qoption ld ' cannam@167: ;; cannam@167: *Sun\ C*) cannam@167: # Sun C 5.9 cannam@167: lt_prog_compiler_pic='-KPIC' cannam@167: lt_prog_compiler_static='-Bstatic' cannam@167: lt_prog_compiler_wl='-Wl,' cannam@167: ;; cannam@167: *Intel*\ [CF]*Compiler*) cannam@167: lt_prog_compiler_wl='-Wl,' cannam@167: lt_prog_compiler_pic='-fPIC' cannam@167: lt_prog_compiler_static='-static' cannam@167: ;; cannam@167: *Portland\ Group*) cannam@167: lt_prog_compiler_wl='-Wl,' cannam@167: lt_prog_compiler_pic='-fpic' cannam@167: lt_prog_compiler_static='-Bstatic' cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: newsos6) cannam@167: lt_prog_compiler_pic='-KPIC' cannam@167: lt_prog_compiler_static='-Bstatic' cannam@167: ;; cannam@167: cannam@167: *nto* | *qnx*) cannam@167: # QNX uses GNU C++, but need to define -shared option too, otherwise cannam@167: # it will coredump. cannam@167: lt_prog_compiler_pic='-fPIC -shared' cannam@167: ;; cannam@167: cannam@167: osf3* | osf4* | osf5*) cannam@167: lt_prog_compiler_wl='-Wl,' cannam@167: # All OSF/1 code is PIC. cannam@167: lt_prog_compiler_static='-non_shared' cannam@167: ;; cannam@167: cannam@167: rdos*) cannam@167: lt_prog_compiler_static='-non_shared' cannam@167: ;; cannam@167: cannam@167: solaris*) cannam@167: lt_prog_compiler_pic='-KPIC' cannam@167: lt_prog_compiler_static='-Bstatic' cannam@167: case $cc_basename in cannam@167: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) cannam@167: lt_prog_compiler_wl='-Qoption ld ';; cannam@167: *) cannam@167: lt_prog_compiler_wl='-Wl,';; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: sunos4*) cannam@167: lt_prog_compiler_wl='-Qoption ld ' cannam@167: lt_prog_compiler_pic='-PIC' cannam@167: lt_prog_compiler_static='-Bstatic' cannam@167: ;; cannam@167: cannam@167: sysv4 | sysv4.2uw2* | sysv4.3*) cannam@167: lt_prog_compiler_wl='-Wl,' cannam@167: lt_prog_compiler_pic='-KPIC' cannam@167: lt_prog_compiler_static='-Bstatic' cannam@167: ;; cannam@167: cannam@167: sysv4*MP*) cannam@167: if test -d /usr/nec; then cannam@167: lt_prog_compiler_pic='-Kconform_pic' cannam@167: lt_prog_compiler_static='-Bstatic' cannam@167: fi cannam@167: ;; cannam@167: cannam@167: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) cannam@167: lt_prog_compiler_wl='-Wl,' cannam@167: lt_prog_compiler_pic='-KPIC' cannam@167: lt_prog_compiler_static='-Bstatic' cannam@167: ;; cannam@167: cannam@167: unicos*) cannam@167: lt_prog_compiler_wl='-Wl,' cannam@167: lt_prog_compiler_can_build_shared=no cannam@167: ;; cannam@167: cannam@167: uts4*) cannam@167: lt_prog_compiler_pic='-pic' cannam@167: lt_prog_compiler_static='-Bstatic' cannam@167: ;; cannam@167: cannam@167: *) cannam@167: lt_prog_compiler_can_build_shared=no cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: cannam@167: case $host_os in cannam@167: # For platforms that do not support PIC, -DPIC is meaningless: cannam@167: *djgpp*) cannam@167: lt_prog_compiler_pic= cannam@167: ;; cannam@167: *) cannam@167: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" cannam@167: ;; cannam@167: esac cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 cannam@167: $as_echo_n "checking for $compiler option to produce PIC... " >&6; } cannam@167: if ${lt_cv_prog_compiler_pic+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 cannam@167: $as_echo "$lt_cv_prog_compiler_pic" >&6; } cannam@167: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic cannam@167: cannam@167: # cannam@167: # Check to make sure the PIC flag actually works. cannam@167: # cannam@167: if test -n "$lt_prog_compiler_pic"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 cannam@167: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } cannam@167: if ${lt_cv_prog_compiler_pic_works+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_prog_compiler_pic_works=no cannam@167: ac_outfile=conftest.$ac_objext cannam@167: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@167: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment cannam@167: # Insert the option either (1) after the last *FLAGS variable, or cannam@167: # (2) before a word containing "conftest.", or (3) at the end. cannam@167: # Note that $ac_compile itself does not contain backslashes and begins cannam@167: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@167: # The option is referenced via a variable to avoid confusing sed. cannam@167: lt_compile=`echo "$ac_compile" | $SED \ cannam@167: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ cannam@167: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@167: -e 's:$: $lt_compiler_flag:'` cannam@167: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) cannam@167: (eval "$lt_compile" 2>conftest.err) cannam@167: ac_status=$? cannam@167: cat conftest.err >&5 cannam@167: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@167: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@167: # The compiler can only warn and ignore the option if not recognized cannam@167: # So say no if there are warnings other than the usual output. cannam@167: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp cannam@167: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 cannam@167: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then cannam@167: lt_cv_prog_compiler_pic_works=yes cannam@167: fi cannam@167: fi cannam@167: $RM conftest* cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 cannam@167: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } cannam@167: cannam@167: if test yes = "$lt_cv_prog_compiler_pic_works"; then cannam@167: case $lt_prog_compiler_pic in cannam@167: "" | " "*) ;; cannam@167: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; cannam@167: esac cannam@167: else cannam@167: lt_prog_compiler_pic= cannam@167: lt_prog_compiler_can_build_shared=no cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # cannam@167: # Check to make sure the static flag actually works. cannam@167: # cannam@167: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 cannam@167: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } cannam@167: if ${lt_cv_prog_compiler_static_works+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_prog_compiler_static_works=no cannam@167: save_LDFLAGS=$LDFLAGS cannam@167: LDFLAGS="$LDFLAGS $lt_tmp_static_flag" cannam@167: echo "$lt_simple_link_test_code" > conftest.$ac_ext cannam@167: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then cannam@167: # The linker can only warn and ignore the option if not recognized cannam@167: # So say no if there are warnings cannam@167: if test -s conftest.err; then cannam@167: # Append any errors to the config.log. cannam@167: cat conftest.err 1>&5 cannam@167: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp cannam@167: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 cannam@167: if diff conftest.exp conftest.er2 >/dev/null; then cannam@167: lt_cv_prog_compiler_static_works=yes cannam@167: fi cannam@167: else cannam@167: lt_cv_prog_compiler_static_works=yes cannam@167: fi cannam@167: fi cannam@167: $RM -r conftest* cannam@167: LDFLAGS=$save_LDFLAGS cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 cannam@167: $as_echo "$lt_cv_prog_compiler_static_works" >&6; } cannam@167: cannam@167: if test yes = "$lt_cv_prog_compiler_static_works"; then cannam@167: : cannam@167: else cannam@167: lt_prog_compiler_static= cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 cannam@167: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } cannam@167: if ${lt_cv_prog_compiler_c_o+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_prog_compiler_c_o=no cannam@167: $RM -r conftest 2>/dev/null cannam@167: mkdir conftest cannam@167: cd conftest cannam@167: mkdir out cannam@167: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@167: cannam@167: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@167: # Insert the option either (1) after the last *FLAGS variable, or cannam@167: # (2) before a word containing "conftest.", or (3) at the end. cannam@167: # Note that $ac_compile itself does not contain backslashes and begins cannam@167: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@167: lt_compile=`echo "$ac_compile" | $SED \ cannam@167: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ cannam@167: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@167: -e 's:$: $lt_compiler_flag:'` cannam@167: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) cannam@167: (eval "$lt_compile" 2>out/conftest.err) cannam@167: ac_status=$? cannam@167: cat out/conftest.err >&5 cannam@167: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@167: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@167: then cannam@167: # The compiler can only warn and ignore the option if not recognized cannam@167: # So say no if there are warnings cannam@167: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp cannam@167: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 cannam@167: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then cannam@167: lt_cv_prog_compiler_c_o=yes cannam@167: fi cannam@167: fi cannam@167: chmod u+w . 2>&5 cannam@167: $RM conftest* cannam@167: # SGI C++ compiler will create directory out/ii_files/ for cannam@167: # template instantiation cannam@167: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files cannam@167: $RM out/* && rmdir out cannam@167: cd .. cannam@167: $RM -r conftest cannam@167: $RM conftest* cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 cannam@167: $as_echo "$lt_cv_prog_compiler_c_o" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 cannam@167: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } cannam@167: if ${lt_cv_prog_compiler_c_o+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_prog_compiler_c_o=no cannam@167: $RM -r conftest 2>/dev/null cannam@167: mkdir conftest cannam@167: cd conftest cannam@167: mkdir out cannam@167: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@167: cannam@167: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@167: # Insert the option either (1) after the last *FLAGS variable, or cannam@167: # (2) before a word containing "conftest.", or (3) at the end. cannam@167: # Note that $ac_compile itself does not contain backslashes and begins cannam@167: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@167: lt_compile=`echo "$ac_compile" | $SED \ cannam@167: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ cannam@167: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@167: -e 's:$: $lt_compiler_flag:'` cannam@167: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) cannam@167: (eval "$lt_compile" 2>out/conftest.err) cannam@167: ac_status=$? cannam@167: cat out/conftest.err >&5 cannam@167: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@167: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@167: then cannam@167: # The compiler can only warn and ignore the option if not recognized cannam@167: # So say no if there are warnings cannam@167: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp cannam@167: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 cannam@167: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then cannam@167: lt_cv_prog_compiler_c_o=yes cannam@167: fi cannam@167: fi cannam@167: chmod u+w . 2>&5 cannam@167: $RM conftest* cannam@167: # SGI C++ compiler will create directory out/ii_files/ for cannam@167: # template instantiation cannam@167: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files cannam@167: $RM out/* && rmdir out cannam@167: cd .. cannam@167: $RM -r conftest cannam@167: $RM conftest* cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 cannam@167: $as_echo "$lt_cv_prog_compiler_c_o" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: hard_links=nottested cannam@167: if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then cannam@167: # do not overwrite the value of need_locks provided by the user cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 cannam@167: $as_echo_n "checking if we can lock with hard links... " >&6; } cannam@167: hard_links=yes cannam@167: $RM conftest* cannam@167: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@167: touch conftest.a cannam@167: ln conftest.a conftest.b 2>&5 || hard_links=no cannam@167: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 cannam@167: $as_echo "$hard_links" >&6; } cannam@167: if test no = "$hard_links"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 cannam@167: $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} cannam@167: need_locks=warn cannam@167: fi cannam@167: else cannam@167: need_locks=no cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 cannam@167: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } cannam@167: cannam@167: runpath_var= cannam@167: allow_undefined_flag= cannam@167: always_export_symbols=no cannam@167: archive_cmds= cannam@167: archive_expsym_cmds= cannam@167: compiler_needs_object=no cannam@167: enable_shared_with_static_runtimes=no cannam@167: export_dynamic_flag_spec= cannam@167: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@167: hardcode_automatic=no cannam@167: hardcode_direct=no cannam@167: hardcode_direct_absolute=no cannam@167: hardcode_libdir_flag_spec= cannam@167: hardcode_libdir_separator= cannam@167: hardcode_minus_L=no cannam@167: hardcode_shlibpath_var=unsupported cannam@167: inherit_rpath=no cannam@167: link_all_deplibs=unknown cannam@167: module_cmds= cannam@167: module_expsym_cmds= cannam@167: old_archive_from_new_cmds= cannam@167: old_archive_from_expsyms_cmds= cannam@167: thread_safe_flag_spec= cannam@167: whole_archive_flag_spec= cannam@167: # include_expsyms should be a list of space-separated symbols to be *always* cannam@167: # included in the symbol list cannam@167: include_expsyms= cannam@167: # exclude_expsyms can be an extended regexp of symbols to exclude cannam@167: # it will be wrapped by ' (' and ')$', so one must not match beginning or cannam@167: # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', cannam@167: # as well as any symbol that contains 'd'. cannam@167: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' cannam@167: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out cannam@167: # platforms (ab)use it in PIC code, but their linkers get confused if cannam@167: # the symbol is explicitly referenced. Since portable code cannot cannam@167: # rely on this symbol name, it's probably fine to never include it in cannam@167: # preloaded symbol tables. cannam@167: # Exclude shared library initialization/finalization symbols. cannam@167: extract_expsyms_cmds= cannam@167: cannam@167: case $host_os in cannam@167: cygwin* | mingw* | pw32* | cegcc*) cannam@167: # FIXME: the MSVC++ port hasn't been tested in a loooong time cannam@167: # When not using gcc, we currently assume that we are using cannam@167: # Microsoft Visual C++. cannam@167: if test yes != "$GCC"; then cannam@167: with_gnu_ld=no cannam@167: fi cannam@167: ;; cannam@167: interix*) cannam@167: # we just hope/assume this is gcc and not c89 (= MSVC++) cannam@167: with_gnu_ld=yes cannam@167: ;; cannam@167: openbsd* | bitrig*) cannam@167: with_gnu_ld=no cannam@167: ;; cannam@167: linux* | k*bsd*-gnu | gnu*) cannam@167: link_all_deplibs=no cannam@167: ;; cannam@167: esac cannam@167: cannam@167: ld_shlibs=yes cannam@167: cannam@167: # On some targets, GNU ld is compatible enough with the native linker cannam@167: # that we're better off using the native interface for both. cannam@167: lt_use_gnu_ld_interface=no cannam@167: if test yes = "$with_gnu_ld"; then cannam@167: case $host_os in cannam@167: aix*) cannam@167: # The AIX port of GNU ld has always aspired to compatibility cannam@167: # with the native linker. However, as the warning in the GNU ld cannam@167: # block says, versions before 2.19.5* couldn't really create working cannam@167: # shared libraries, regardless of the interface used. cannam@167: case `$LD -v 2>&1` in cannam@167: *\ \(GNU\ Binutils\)\ 2.19.5*) ;; cannam@167: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; cannam@167: *\ \(GNU\ Binutils\)\ [3-9]*) ;; cannam@167: *) cannam@167: lt_use_gnu_ld_interface=yes cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: *) cannam@167: lt_use_gnu_ld_interface=yes cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: cannam@167: if test yes = "$lt_use_gnu_ld_interface"; then cannam@167: # If archive_cmds runs LD, not CC, wlarc should be empty cannam@167: wlarc='$wl' cannam@167: cannam@167: # Set some defaults for GNU ld with shared library support. These cannam@167: # are reset later if shared libraries are not supported. Putting them cannam@167: # here allows them to be overridden if necessary. cannam@167: runpath_var=LD_RUN_PATH cannam@167: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' cannam@167: export_dynamic_flag_spec='$wl--export-dynamic' cannam@167: # ancient GNU ld didn't support --whole-archive et. al. cannam@167: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then cannam@167: whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' cannam@167: else cannam@167: whole_archive_flag_spec= cannam@167: fi cannam@167: supports_anon_versioning=no cannam@167: case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in cannam@167: *GNU\ gold*) supports_anon_versioning=yes ;; cannam@167: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 cannam@167: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... cannam@167: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... cannam@167: *\ 2.11.*) ;; # other 2.11 versions cannam@167: *) supports_anon_versioning=yes ;; cannam@167: esac cannam@167: cannam@167: # See if GNU ld supports shared libraries. cannam@167: case $host_os in cannam@167: aix[3-9]*) cannam@167: # On AIX/PPC, the GNU linker is very broken cannam@167: if test ia64 != "$host_cpu"; then cannam@167: ld_shlibs=no cannam@167: cat <<_LT_EOF 1>&2 cannam@167: cannam@167: *** Warning: the GNU linker, at least up to release 2.19, is reported cannam@167: *** to be unable to reliably create shared libraries on AIX. cannam@167: *** Therefore, libtool is disabling shared libraries support. If you cannam@167: *** really care for shared libraries, you may want to install binutils cannam@167: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. cannam@167: *** You will then need to restart the configuration process. cannam@167: cannam@167: _LT_EOF cannam@167: fi cannam@167: ;; cannam@167: cannam@167: amigaos*) cannam@167: case $host_cpu in cannam@167: powerpc) cannam@167: # see comment about AmigaOS4 .so support cannam@167: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@167: archive_expsym_cmds='' cannam@167: ;; cannam@167: m68k) cannam@167: 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)' cannam@167: hardcode_libdir_flag_spec='-L$libdir' cannam@167: hardcode_minus_L=yes cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: beos*) cannam@167: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then cannam@167: allow_undefined_flag=unsupported cannam@167: # Joseph Beckenbach says some releases of gcc cannam@167: # support --undefined. This deserves some investigation. FIXME cannam@167: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@167: else cannam@167: ld_shlibs=no cannam@167: fi cannam@167: ;; cannam@167: cannam@167: cygwin* | mingw* | pw32* | cegcc*) cannam@167: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, cannam@167: # as there is no search path for DLLs. cannam@167: hardcode_libdir_flag_spec='-L$libdir' cannam@167: export_dynamic_flag_spec='$wl--export-all-symbols' cannam@167: allow_undefined_flag=unsupported cannam@167: always_export_symbols=no cannam@167: enable_shared_with_static_runtimes=yes cannam@167: 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' cannam@167: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' cannam@167: cannam@167: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then cannam@167: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' cannam@167: # If the export-symbols file already is a .def file, use it as cannam@167: # is; otherwise, prepend EXPORTS... cannam@167: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cannam@167: cp $export_symbols $output_objdir/$soname.def; cannam@167: else cannam@167: echo EXPORTS > $output_objdir/$soname.def; cannam@167: cat $export_symbols >> $output_objdir/$soname.def; cannam@167: fi~ cannam@167: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' cannam@167: else cannam@167: ld_shlibs=no cannam@167: fi cannam@167: ;; cannam@167: cannam@167: haiku*) cannam@167: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@167: link_all_deplibs=yes cannam@167: ;; cannam@167: cannam@167: os2*) cannam@167: hardcode_libdir_flag_spec='-L$libdir' cannam@167: hardcode_minus_L=yes cannam@167: allow_undefined_flag=unsupported cannam@167: shrext_cmds=.dll cannam@167: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ cannam@167: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ cannam@167: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ cannam@167: $ECHO EXPORTS >> $output_objdir/$libname.def~ cannam@167: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ cannam@167: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ cannam@167: emximp -o $lib $output_objdir/$libname.def' cannam@167: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ cannam@167: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ cannam@167: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ cannam@167: $ECHO EXPORTS >> $output_objdir/$libname.def~ cannam@167: prefix_cmds="$SED"~ cannam@167: if test EXPORTS = "`$SED 1q $export_symbols`"; then cannam@167: prefix_cmds="$prefix_cmds -e 1d"; cannam@167: fi~ cannam@167: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cannam@167: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ cannam@167: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ cannam@167: emximp -o $lib $output_objdir/$libname.def' cannam@167: old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' cannam@167: enable_shared_with_static_runtimes=yes cannam@167: ;; cannam@167: cannam@167: interix[3-9]*) cannam@167: hardcode_direct=no cannam@167: hardcode_shlibpath_var=no cannam@167: hardcode_libdir_flag_spec='$wl-rpath,$libdir' cannam@167: export_dynamic_flag_spec='$wl-E' cannam@167: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. cannam@167: # Instead, shared libraries are loaded at an image base (0x10000000 by cannam@167: # default) and relocated if they conflict, which is a slow very memory cannam@167: # consuming and fragmenting process. To avoid this, we pick a random, cannam@167: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link cannam@167: # time. Moving up from 0x10000000 also allows more sbrk(2) space. cannam@167: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' cannam@167: 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' cannam@167: ;; cannam@167: cannam@167: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) cannam@167: tmp_diet=no cannam@167: if test linux-dietlibc = "$host_os"; then cannam@167: case $cc_basename in cannam@167: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) cannam@167: esac cannam@167: fi cannam@167: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ cannam@167: && test no = "$tmp_diet" cannam@167: then cannam@167: tmp_addflag=' $pic_flag' cannam@167: tmp_sharedflag='-shared' cannam@167: case $cc_basename,$host_cpu in cannam@167: pgcc*) # Portland Group C compiler cannam@167: 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' cannam@167: tmp_addflag=' $pic_flag' cannam@167: ;; cannam@167: pgf77* | pgf90* | pgf95* | pgfortran*) cannam@167: # Portland Group f77 and f90 compilers cannam@167: 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' cannam@167: tmp_addflag=' $pic_flag -Mnomain' ;; cannam@167: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 cannam@167: tmp_addflag=' -i_dynamic' ;; cannam@167: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 cannam@167: tmp_addflag=' -i_dynamic -nofor_main' ;; cannam@167: ifc* | ifort*) # Intel Fortran compiler cannam@167: tmp_addflag=' -nofor_main' ;; cannam@167: lf95*) # Lahey Fortran 8.1 cannam@167: whole_archive_flag_spec= cannam@167: tmp_sharedflag='--shared' ;; cannam@167: nagfor*) # NAGFOR 5.3 cannam@167: tmp_sharedflag='-Wl,-shared' ;; cannam@167: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) cannam@167: tmp_sharedflag='-qmkshrobj' cannam@167: tmp_addflag= ;; cannam@167: nvcc*) # Cuda Compiler Driver 2.2 cannam@167: 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' cannam@167: compiler_needs_object=yes cannam@167: ;; cannam@167: esac cannam@167: case `$CC -V 2>&1 | sed 5q` in cannam@167: *Sun\ C*) # Sun C 5.9 cannam@167: 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' cannam@167: compiler_needs_object=yes cannam@167: tmp_sharedflag='-G' ;; cannam@167: *Sun\ F*) # Sun Fortran 8.3 cannam@167: tmp_sharedflag='-G' ;; cannam@167: esac cannam@167: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@167: cannam@167: if test yes = "$supports_anon_versioning"; then cannam@167: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cannam@167: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ cannam@167: echo "local: *; };" >> $output_objdir/$libname.ver~ cannam@167: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' cannam@167: fi cannam@167: cannam@167: case $cc_basename in cannam@167: tcc*) cannam@167: export_dynamic_flag_spec='-rdynamic' cannam@167: ;; cannam@167: xlf* | bgf* | bgxlf* | mpixlf*) cannam@167: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself cannam@167: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' cannam@167: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' cannam@167: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' cannam@167: if test yes = "$supports_anon_versioning"; then cannam@167: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cannam@167: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ cannam@167: echo "local: *; };" >> $output_objdir/$libname.ver~ cannam@167: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: else cannam@167: ld_shlibs=no cannam@167: fi cannam@167: ;; cannam@167: cannam@167: netbsd* | netbsdelf*-gnu) cannam@167: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then cannam@167: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' cannam@167: wlarc= cannam@167: else cannam@167: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@167: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' cannam@167: fi cannam@167: ;; cannam@167: cannam@167: solaris*) cannam@167: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then cannam@167: ld_shlibs=no cannam@167: cat <<_LT_EOF 1>&2 cannam@167: cannam@167: *** Warning: The releases 2.8.* of the GNU linker cannot reliably cannam@167: *** create shared libraries on Solaris systems. Therefore, libtool cannam@167: *** is disabling shared libraries support. We urge you to upgrade GNU cannam@167: *** binutils to release 2.9.1 or newer. Another option is to modify cannam@167: *** your PATH or compiler configuration so that the native linker is cannam@167: *** used, and then restart. cannam@167: cannam@167: _LT_EOF cannam@167: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then cannam@167: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@167: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' cannam@167: else cannam@167: ld_shlibs=no cannam@167: fi cannam@167: ;; cannam@167: cannam@167: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) cannam@167: case `$LD -v 2>&1` in cannam@167: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) cannam@167: ld_shlibs=no cannam@167: cat <<_LT_EOF 1>&2 cannam@167: cannam@167: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot cannam@167: *** reliably create shared libraries on SCO systems. Therefore, libtool cannam@167: *** is disabling shared libraries support. We urge you to upgrade GNU cannam@167: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify cannam@167: *** your PATH or compiler configuration so that the native linker is cannam@167: *** used, and then restart. cannam@167: cannam@167: _LT_EOF cannam@167: ;; cannam@167: *) cannam@167: # For security reasons, it is highly recommended that you always cannam@167: # use absolute paths for naming shared libraries, and exclude the cannam@167: # DT_RUNPATH tag from executables and libraries. But doing so cannam@167: # requires that you compile everything twice, which is a pain. cannam@167: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then cannam@167: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' cannam@167: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@167: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' cannam@167: else cannam@167: ld_shlibs=no cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: sunos4*) cannam@167: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@167: wlarc= cannam@167: hardcode_direct=yes cannam@167: hardcode_shlibpath_var=no cannam@167: ;; cannam@167: cannam@167: *) cannam@167: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then cannam@167: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@167: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' cannam@167: else cannam@167: ld_shlibs=no cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: cannam@167: if test no = "$ld_shlibs"; then cannam@167: runpath_var= cannam@167: hardcode_libdir_flag_spec= cannam@167: export_dynamic_flag_spec= cannam@167: whole_archive_flag_spec= cannam@167: fi cannam@167: else cannam@167: # PORTME fill in a description of your system's linker (not GNU ld) cannam@167: case $host_os in cannam@167: aix3*) cannam@167: allow_undefined_flag=unsupported cannam@167: always_export_symbols=yes cannam@167: 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' cannam@167: # Note: this linker hardcodes the directories in LIBPATH if there cannam@167: # are no directories specified by -L. cannam@167: hardcode_minus_L=yes cannam@167: if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then cannam@167: # Neither direct hardcoding nor static linking is supported with a cannam@167: # broken collect2. cannam@167: hardcode_direct=unsupported cannam@167: fi cannam@167: ;; cannam@167: cannam@167: aix[4-9]*) cannam@167: if test ia64 = "$host_cpu"; then cannam@167: # On IA64, the linker does run time linking by default, so we don't cannam@167: # have to do anything special. cannam@167: aix_use_runtimelinking=no cannam@167: exp_sym_flag='-Bexport' cannam@167: no_entry_flag= cannam@167: else cannam@167: # If we're using GNU nm, then we don't want the "-C" option. cannam@167: # -C means demangle to GNU nm, but means don't demangle to AIX nm. cannam@167: # Without the "-l" option, or with the "-B" option, AIX nm treats cannam@167: # weak defined symbols like other global defined symbols, whereas cannam@167: # GNU nm marks them as "W". cannam@167: # While the 'weak' keyword is ignored in the Export File, we need cannam@167: # it in the Import File for the 'aix-soname' feature, so we have cannam@167: # to replace the "-B" option with "-P" for AIX nm. cannam@167: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then cannam@167: 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' cannam@167: else cannam@167: 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' cannam@167: fi cannam@167: aix_use_runtimelinking=no cannam@167: cannam@167: # Test if we are trying to use run time linking or normal cannam@167: # AIX style linking. If -brtl is somewhere in LDFLAGS, we cannam@167: # have runtime linking enabled, and use it for executables. cannam@167: # For shared libraries, we enable/disable runtime linking cannam@167: # depending on the kind of the shared library created - cannam@167: # when "with_aix_soname,aix_use_runtimelinking" is: cannam@167: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables cannam@167: # "aix,yes" lib.so shared, rtl:yes, for executables cannam@167: # lib.a static archive cannam@167: # "both,no" lib.so.V(shr.o) shared, rtl:yes cannam@167: # lib.a(lib.so.V) shared, rtl:no, for executables cannam@167: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables cannam@167: # lib.a(lib.so.V) shared, rtl:no cannam@167: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables cannam@167: # lib.a static archive cannam@167: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) cannam@167: for ld_flag in $LDFLAGS; do cannam@167: if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then cannam@167: aix_use_runtimelinking=yes cannam@167: break cannam@167: fi cannam@167: done cannam@167: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then cannam@167: # With aix-soname=svr4, we create the lib.so.V shared archives only, cannam@167: # so we don't have lib.a shared libs to link our executables. cannam@167: # We have to force runtime linking in this case. cannam@167: aix_use_runtimelinking=yes cannam@167: LDFLAGS="$LDFLAGS -Wl,-brtl" cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: cannam@167: exp_sym_flag='-bexport' cannam@167: no_entry_flag='-bnoentry' cannam@167: fi cannam@167: cannam@167: # When large executables or shared objects are built, AIX ld can cannam@167: # have problems creating the table of contents. If linking a library cannam@167: # or program results in "error TOC overflow" add -mminimal-toc to cannam@167: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not cannam@167: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. cannam@167: cannam@167: archive_cmds='' cannam@167: hardcode_direct=yes cannam@167: hardcode_direct_absolute=yes cannam@167: hardcode_libdir_separator=':' cannam@167: link_all_deplibs=yes cannam@167: file_list_spec='$wl-f,' cannam@167: case $with_aix_soname,$aix_use_runtimelinking in cannam@167: aix,*) ;; # traditional, no import file cannam@167: svr4,* | *,yes) # use import file cannam@167: # The Import File defines what to hardcode. cannam@167: hardcode_direct=no cannam@167: hardcode_direct_absolute=no cannam@167: ;; cannam@167: esac cannam@167: cannam@167: if test yes = "$GCC"; then cannam@167: case $host_os in aix4.[012]|aix4.[012].*) cannam@167: # We only want to do this on AIX 4.2 and lower, the check cannam@167: # below for broken collect2 doesn't work under 4.3+ cannam@167: collect2name=`$CC -print-prog-name=collect2` cannam@167: if test -f "$collect2name" && cannam@167: strings "$collect2name" | $GREP resolve_lib_name >/dev/null cannam@167: then cannam@167: # We have reworked collect2 cannam@167: : cannam@167: else cannam@167: # We have old collect2 cannam@167: hardcode_direct=unsupported cannam@167: # It fails to find uninstalled libraries when the uninstalled cannam@167: # path is not listed in the libpath. Setting hardcode_minus_L cannam@167: # to unsupported forces relinking cannam@167: hardcode_minus_L=yes cannam@167: hardcode_libdir_flag_spec='-L$libdir' cannam@167: hardcode_libdir_separator= cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: shared_flag='-shared' cannam@167: if test yes = "$aix_use_runtimelinking"; then cannam@167: shared_flag="$shared_flag "'$wl-G' cannam@167: fi cannam@167: # Need to ensure runtime linking is disabled for the traditional cannam@167: # shared library, or the linker may eventually find shared libraries cannam@167: # /with/ Import File - we do not want to mix them. cannam@167: shared_flag_aix='-shared' cannam@167: shared_flag_svr4='-shared $wl-G' cannam@167: else cannam@167: # not using gcc cannam@167: if test ia64 = "$host_cpu"; then cannam@167: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release cannam@167: # chokes on -Wl,-G. The following line is correct: cannam@167: shared_flag='-G' cannam@167: else cannam@167: if test yes = "$aix_use_runtimelinking"; then cannam@167: shared_flag='$wl-G' cannam@167: else cannam@167: shared_flag='$wl-bM:SRE' cannam@167: fi cannam@167: shared_flag_aix='$wl-bM:SRE' cannam@167: shared_flag_svr4='$wl-G' cannam@167: fi cannam@167: fi cannam@167: cannam@167: export_dynamic_flag_spec='$wl-bexpall' cannam@167: # It seems that -bexpall does not export symbols beginning with cannam@167: # underscore (_), so it is better to generate a list of symbols to export. cannam@167: always_export_symbols=yes cannam@167: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then cannam@167: # Warning - without using the other runtime loading flags (-brtl), cannam@167: # -berok will link without error, but may produce a broken library. cannam@167: allow_undefined_flag='-berok' cannam@167: # Determine the default libpath from the value encoded in an cannam@167: # empty executable. cannam@167: if test set = "${lt_cv_aix_libpath+set}"; then cannam@167: aix_libpath=$lt_cv_aix_libpath cannam@167: else cannam@167: if ${lt_cv_aix_libpath_+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: cannam@167: lt_aix_libpath_sed=' cannam@167: /Import File Strings/,/^$/ { cannam@167: /^0/ { cannam@167: s/^0 *\([^ ]*\) *$/\1/ cannam@167: p cannam@167: } cannam@167: }' cannam@167: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@167: # Check for a 64-bit object if we didn't find anything. cannam@167: if test -z "$lt_cv_aix_libpath_"; then cannam@167: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@167: fi cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: if test -z "$lt_cv_aix_libpath_"; then cannam@167: lt_cv_aix_libpath_=/usr/lib:/lib cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: aix_libpath=$lt_cv_aix_libpath_ cannam@167: fi cannam@167: cannam@167: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" cannam@167: 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 cannam@167: else cannam@167: if test ia64 = "$host_cpu"; then cannam@167: hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' cannam@167: allow_undefined_flag="-z nodefs" cannam@167: 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" cannam@167: else cannam@167: # Determine the default libpath from the value encoded in an cannam@167: # empty executable. cannam@167: if test set = "${lt_cv_aix_libpath+set}"; then cannam@167: aix_libpath=$lt_cv_aix_libpath cannam@167: else cannam@167: if ${lt_cv_aix_libpath_+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: cannam@167: lt_aix_libpath_sed=' cannam@167: /Import File Strings/,/^$/ { cannam@167: /^0/ { cannam@167: s/^0 *\([^ ]*\) *$/\1/ cannam@167: p cannam@167: } cannam@167: }' cannam@167: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@167: # Check for a 64-bit object if we didn't find anything. cannam@167: if test -z "$lt_cv_aix_libpath_"; then cannam@167: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@167: fi cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: if test -z "$lt_cv_aix_libpath_"; then cannam@167: lt_cv_aix_libpath_=/usr/lib:/lib cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: aix_libpath=$lt_cv_aix_libpath_ cannam@167: fi cannam@167: cannam@167: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" cannam@167: # Warning - without using the other run time loading flags, cannam@167: # -berok will link without error, but may produce a broken library. cannam@167: no_undefined_flag=' $wl-bernotok' cannam@167: allow_undefined_flag=' $wl-berok' cannam@167: if test yes = "$with_gnu_ld"; then cannam@167: # We only use this code for GNU lds that support --whole-archive. cannam@167: whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' cannam@167: else cannam@167: # Exported symbols can be pulled into shared objects from archives cannam@167: whole_archive_flag_spec='$convenience' cannam@167: fi cannam@167: archive_cmds_need_lc=yes cannam@167: archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' cannam@167: # -brtl affects multiple linker settings, -berok does not and is overridden later cannam@167: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' cannam@167: if test svr4 != "$with_aix_soname"; then cannam@167: # This is similar to how AIX traditionally builds its shared libraries. cannam@167: 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' cannam@167: fi cannam@167: if test aix != "$with_aix_soname"; then cannam@167: 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' cannam@167: else cannam@167: # used by -dlpreopen to get the symbols cannam@167: archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' cannam@167: fi cannam@167: archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' cannam@167: fi cannam@167: fi cannam@167: ;; cannam@167: cannam@167: amigaos*) cannam@167: case $host_cpu in cannam@167: powerpc) cannam@167: # see comment about AmigaOS4 .so support cannam@167: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@167: archive_expsym_cmds='' cannam@167: ;; cannam@167: m68k) cannam@167: 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)' cannam@167: hardcode_libdir_flag_spec='-L$libdir' cannam@167: hardcode_minus_L=yes cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: bsdi[45]*) cannam@167: export_dynamic_flag_spec=-rdynamic cannam@167: ;; cannam@167: cannam@167: cygwin* | mingw* | pw32* | cegcc*) cannam@167: # When not using gcc, we currently assume that we are using cannam@167: # Microsoft Visual C++. cannam@167: # hardcode_libdir_flag_spec is actually meaningless, as there is cannam@167: # no search path for DLLs. cannam@167: case $cc_basename in cannam@167: cl*) cannam@167: # Native MSVC cannam@167: hardcode_libdir_flag_spec=' ' cannam@167: allow_undefined_flag=unsupported cannam@167: always_export_symbols=yes cannam@167: file_list_spec='@' cannam@167: # Tell ltmain to make .lib files, not .a files. cannam@167: libext=lib cannam@167: # Tell ltmain to make .dll files, not .so files. cannam@167: shrext_cmds=.dll cannam@167: # FIXME: Setting linknames here is a bad hack. cannam@167: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' cannam@167: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cannam@167: cp "$export_symbols" "$output_objdir/$soname.def"; cannam@167: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; cannam@167: else cannam@167: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; cannam@167: fi~ cannam@167: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ cannam@167: linknames=' cannam@167: # The linker will not automatically build a static lib if we build a DLL. cannam@167: # _LT_TAGVAR(old_archive_from_new_cmds, )='true' cannam@167: enable_shared_with_static_runtimes=yes cannam@167: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' cannam@167: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' cannam@167: # Don't use ranlib cannam@167: old_postinstall_cmds='chmod 644 $oldlib' cannam@167: postlink_cmds='lt_outputfile="@OUTPUT@"~ cannam@167: lt_tool_outputfile="@TOOL_OUTPUT@"~ cannam@167: case $lt_outputfile in cannam@167: *.exe|*.EXE) ;; cannam@167: *) cannam@167: lt_outputfile=$lt_outputfile.exe cannam@167: lt_tool_outputfile=$lt_tool_outputfile.exe cannam@167: ;; cannam@167: esac~ cannam@167: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then cannam@167: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; cannam@167: $RM "$lt_outputfile.manifest"; cannam@167: fi' cannam@167: ;; cannam@167: *) cannam@167: # Assume MSVC wrapper cannam@167: hardcode_libdir_flag_spec=' ' cannam@167: allow_undefined_flag=unsupported cannam@167: # Tell ltmain to make .lib files, not .a files. cannam@167: libext=lib cannam@167: # Tell ltmain to make .dll files, not .so files. cannam@167: shrext_cmds=.dll cannam@167: # FIXME: Setting linknames here is a bad hack. cannam@167: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' cannam@167: # The linker will automatically build a .lib file if we build a DLL. cannam@167: old_archive_from_new_cmds='true' cannam@167: # FIXME: Should let the user specify the lib program. cannam@167: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' cannam@167: enable_shared_with_static_runtimes=yes cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: darwin* | rhapsody*) cannam@167: cannam@167: cannam@167: archive_cmds_need_lc=no cannam@167: hardcode_direct=no cannam@167: hardcode_automatic=yes cannam@167: hardcode_shlibpath_var=unsupported cannam@167: if test yes = "$lt_cv_ld_force_load"; then cannam@167: 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\"`' cannam@167: cannam@167: else cannam@167: whole_archive_flag_spec='' cannam@167: fi cannam@167: link_all_deplibs=yes cannam@167: allow_undefined_flag=$_lt_dar_allow_undefined cannam@167: case $cc_basename in cannam@167: ifort*|nagfor*) _lt_dar_can_shared=yes ;; cannam@167: *) _lt_dar_can_shared=$GCC ;; cannam@167: esac cannam@167: if test yes = "$_lt_dar_can_shared"; then cannam@167: output_verbose_link_cmd=func_echo_all cannam@167: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" cannam@167: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" cannam@167: 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" cannam@167: 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" cannam@167: cannam@167: else cannam@167: ld_shlibs=no cannam@167: fi cannam@167: cannam@167: ;; cannam@167: cannam@167: dgux*) cannam@167: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@167: hardcode_libdir_flag_spec='-L$libdir' cannam@167: hardcode_shlibpath_var=no cannam@167: ;; cannam@167: cannam@167: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor cannam@167: # support. Future versions do this automatically, but an explicit c++rt0.o cannam@167: # does not break anything, and helps significantly (at the cost of a little cannam@167: # extra space). cannam@167: freebsd2.2*) cannam@167: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' cannam@167: hardcode_libdir_flag_spec='-R$libdir' cannam@167: hardcode_direct=yes cannam@167: hardcode_shlibpath_var=no cannam@167: ;; cannam@167: cannam@167: # Unfortunately, older versions of FreeBSD 2 do not have this feature. cannam@167: freebsd2.*) cannam@167: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@167: hardcode_direct=yes cannam@167: hardcode_minus_L=yes cannam@167: hardcode_shlibpath_var=no cannam@167: ;; cannam@167: cannam@167: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. cannam@167: freebsd* | dragonfly*) cannam@167: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@167: hardcode_libdir_flag_spec='-R$libdir' cannam@167: hardcode_direct=yes cannam@167: hardcode_shlibpath_var=no cannam@167: ;; cannam@167: cannam@167: hpux9*) cannam@167: if test yes = "$GCC"; then cannam@167: 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' cannam@167: else cannam@167: 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' cannam@167: fi cannam@167: hardcode_libdir_flag_spec='$wl+b $wl$libdir' cannam@167: hardcode_libdir_separator=: cannam@167: hardcode_direct=yes cannam@167: cannam@167: # hardcode_minus_L: Not really in the search PATH, cannam@167: # but as the default location of the library. cannam@167: hardcode_minus_L=yes cannam@167: export_dynamic_flag_spec='$wl-E' cannam@167: ;; cannam@167: cannam@167: hpux10*) cannam@167: if test yes,no = "$GCC,$with_gnu_ld"; then cannam@167: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@167: else cannam@167: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' cannam@167: fi cannam@167: if test no = "$with_gnu_ld"; then cannam@167: hardcode_libdir_flag_spec='$wl+b $wl$libdir' cannam@167: hardcode_libdir_separator=: cannam@167: hardcode_direct=yes cannam@167: hardcode_direct_absolute=yes cannam@167: export_dynamic_flag_spec='$wl-E' cannam@167: # hardcode_minus_L: Not really in the search PATH, cannam@167: # but as the default location of the library. cannam@167: hardcode_minus_L=yes cannam@167: fi cannam@167: ;; cannam@167: cannam@167: hpux11*) cannam@167: if test yes,no = "$GCC,$with_gnu_ld"; then cannam@167: case $host_cpu in cannam@167: hppa*64*) cannam@167: archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: ;; cannam@167: ia64*) cannam@167: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' cannam@167: ;; cannam@167: *) cannam@167: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@167: ;; cannam@167: esac cannam@167: else cannam@167: case $host_cpu in cannam@167: hppa*64*) cannam@167: archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: ;; cannam@167: ia64*) cannam@167: archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' cannam@167: ;; cannam@167: *) cannam@167: cannam@167: # Older versions of the 11.00 compiler do not understand -b yet cannam@167: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 cannam@167: $as_echo_n "checking if $CC understands -b... " >&6; } cannam@167: if ${lt_cv_prog_compiler__b+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_prog_compiler__b=no cannam@167: save_LDFLAGS=$LDFLAGS cannam@167: LDFLAGS="$LDFLAGS -b" cannam@167: echo "$lt_simple_link_test_code" > conftest.$ac_ext cannam@167: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then cannam@167: # The linker can only warn and ignore the option if not recognized cannam@167: # So say no if there are warnings cannam@167: if test -s conftest.err; then cannam@167: # Append any errors to the config.log. cannam@167: cat conftest.err 1>&5 cannam@167: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp cannam@167: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 cannam@167: if diff conftest.exp conftest.er2 >/dev/null; then cannam@167: lt_cv_prog_compiler__b=yes cannam@167: fi cannam@167: else cannam@167: lt_cv_prog_compiler__b=yes cannam@167: fi cannam@167: fi cannam@167: $RM -r conftest* cannam@167: LDFLAGS=$save_LDFLAGS cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 cannam@167: $as_echo "$lt_cv_prog_compiler__b" >&6; } cannam@167: cannam@167: if test yes = "$lt_cv_prog_compiler__b"; then cannam@167: archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@167: else cannam@167: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' cannam@167: fi cannam@167: cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: if test no = "$with_gnu_ld"; then cannam@167: hardcode_libdir_flag_spec='$wl+b $wl$libdir' cannam@167: hardcode_libdir_separator=: cannam@167: cannam@167: case $host_cpu in cannam@167: hppa*64*|ia64*) cannam@167: hardcode_direct=no cannam@167: hardcode_shlibpath_var=no cannam@167: ;; cannam@167: *) cannam@167: hardcode_direct=yes cannam@167: hardcode_direct_absolute=yes cannam@167: export_dynamic_flag_spec='$wl-E' cannam@167: cannam@167: # hardcode_minus_L: Not really in the search PATH, cannam@167: # but as the default location of the library. cannam@167: hardcode_minus_L=yes cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: ;; cannam@167: cannam@167: irix5* | irix6* | nonstopux*) cannam@167: if test yes = "$GCC"; then cannam@167: 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' cannam@167: # Try to use the -exported_symbol ld option, if it does not cannam@167: # work, assume that -exports_file does not work either and cannam@167: # implicitly export all symbols. cannam@167: # This should be the same for all languages, so no per-tag cache variable. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 cannam@167: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } cannam@167: if ${lt_cv_irix_exported_symbol+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: save_LDFLAGS=$LDFLAGS cannam@167: LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: int foo (void) { return 0; } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: lt_cv_irix_exported_symbol=yes cannam@167: else cannam@167: lt_cv_irix_exported_symbol=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: LDFLAGS=$save_LDFLAGS cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 cannam@167: $as_echo "$lt_cv_irix_exported_symbol" >&6; } cannam@167: if test yes = "$lt_cv_irix_exported_symbol"; then cannam@167: 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' cannam@167: fi cannam@167: link_all_deplibs=no cannam@167: else cannam@167: 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' cannam@167: 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' cannam@167: fi cannam@167: archive_cmds_need_lc='no' cannam@167: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' cannam@167: hardcode_libdir_separator=: cannam@167: inherit_rpath=yes cannam@167: link_all_deplibs=yes cannam@167: ;; cannam@167: cannam@167: linux*) cannam@167: case $cc_basename in cannam@167: tcc*) cannam@167: # Fabrice Bellard et al's Tiny C Compiler cannam@167: ld_shlibs=yes cannam@167: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: netbsd* | netbsdelf*-gnu) cannam@167: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then cannam@167: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out cannam@167: else cannam@167: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF cannam@167: fi cannam@167: hardcode_libdir_flag_spec='-R$libdir' cannam@167: hardcode_direct=yes cannam@167: hardcode_shlibpath_var=no cannam@167: ;; cannam@167: cannam@167: newsos6) cannam@167: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@167: hardcode_direct=yes cannam@167: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' cannam@167: hardcode_libdir_separator=: cannam@167: hardcode_shlibpath_var=no cannam@167: ;; cannam@167: cannam@167: *nto* | *qnx*) cannam@167: ;; cannam@167: cannam@167: openbsd* | bitrig*) cannam@167: if test -f /usr/libexec/ld.so; then cannam@167: hardcode_direct=yes cannam@167: hardcode_shlibpath_var=no cannam@167: hardcode_direct_absolute=yes cannam@167: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then cannam@167: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@167: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' cannam@167: hardcode_libdir_flag_spec='$wl-rpath,$libdir' cannam@167: export_dynamic_flag_spec='$wl-E' cannam@167: else cannam@167: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@167: hardcode_libdir_flag_spec='$wl-rpath,$libdir' cannam@167: fi cannam@167: else cannam@167: ld_shlibs=no cannam@167: fi cannam@167: ;; cannam@167: cannam@167: os2*) cannam@167: hardcode_libdir_flag_spec='-L$libdir' cannam@167: hardcode_minus_L=yes cannam@167: allow_undefined_flag=unsupported cannam@167: shrext_cmds=.dll cannam@167: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ cannam@167: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ cannam@167: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ cannam@167: $ECHO EXPORTS >> $output_objdir/$libname.def~ cannam@167: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ cannam@167: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ cannam@167: emximp -o $lib $output_objdir/$libname.def' cannam@167: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ cannam@167: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ cannam@167: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ cannam@167: $ECHO EXPORTS >> $output_objdir/$libname.def~ cannam@167: prefix_cmds="$SED"~ cannam@167: if test EXPORTS = "`$SED 1q $export_symbols`"; then cannam@167: prefix_cmds="$prefix_cmds -e 1d"; cannam@167: fi~ cannam@167: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cannam@167: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ cannam@167: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ cannam@167: emximp -o $lib $output_objdir/$libname.def' cannam@167: old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' cannam@167: enable_shared_with_static_runtimes=yes cannam@167: ;; cannam@167: cannam@167: osf3*) cannam@167: if test yes = "$GCC"; then cannam@167: allow_undefined_flag=' $wl-expect_unresolved $wl\*' cannam@167: 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' cannam@167: else cannam@167: allow_undefined_flag=' -expect_unresolved \*' cannam@167: 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' cannam@167: fi cannam@167: archive_cmds_need_lc='no' cannam@167: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' cannam@167: hardcode_libdir_separator=: cannam@167: ;; cannam@167: cannam@167: osf4* | osf5*) # as osf3* with the addition of -msym flag cannam@167: if test yes = "$GCC"; then cannam@167: allow_undefined_flag=' $wl-expect_unresolved $wl\*' cannam@167: 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' cannam@167: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' cannam@167: else cannam@167: allow_undefined_flag=' -expect_unresolved \*' cannam@167: 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' cannam@167: 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~ cannam@167: $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' cannam@167: cannam@167: # Both c and cxx compiler support -rpath directly cannam@167: hardcode_libdir_flag_spec='-rpath $libdir' cannam@167: fi cannam@167: archive_cmds_need_lc='no' cannam@167: hardcode_libdir_separator=: cannam@167: ;; cannam@167: cannam@167: solaris*) cannam@167: no_undefined_flag=' -z defs' cannam@167: if test yes = "$GCC"; then cannam@167: wlarc='$wl' cannam@167: archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ cannam@167: $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' cannam@167: else cannam@167: case `$CC -V 2>&1` in cannam@167: *"Compilers 5.0"*) cannam@167: wlarc='' cannam@167: archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@167: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ cannam@167: $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' cannam@167: ;; cannam@167: *) cannam@167: wlarc='$wl' cannam@167: archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ cannam@167: $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: hardcode_libdir_flag_spec='-R$libdir' cannam@167: hardcode_shlibpath_var=no cannam@167: case $host_os in cannam@167: solaris2.[0-5] | solaris2.[0-5].*) ;; cannam@167: *) cannam@167: # The compiler driver will combine and reorder linker options, cannam@167: # but understands '-z linker_flag'. GCC discards it without '$wl', cannam@167: # but is careful enough not to reorder. cannam@167: # Supported since Solaris 2.6 (maybe 2.5.1?) cannam@167: if test yes = "$GCC"; then cannam@167: whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' cannam@167: else cannam@167: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: link_all_deplibs=yes cannam@167: ;; cannam@167: cannam@167: sunos4*) cannam@167: if test sequent = "$host_vendor"; then cannam@167: # Use $CC to link under sequent, because it throws in some extra .o cannam@167: # files that make .init and .fini sections work. cannam@167: archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: else cannam@167: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' cannam@167: fi cannam@167: hardcode_libdir_flag_spec='-L$libdir' cannam@167: hardcode_direct=yes cannam@167: hardcode_minus_L=yes cannam@167: hardcode_shlibpath_var=no cannam@167: ;; cannam@167: cannam@167: sysv4) cannam@167: case $host_vendor in cannam@167: sni) cannam@167: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@167: hardcode_direct=yes # is this really true??? cannam@167: ;; cannam@167: siemens) cannam@167: ## LD is ld it makes a PLAMLIB cannam@167: ## CC just makes a GrossModule. cannam@167: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' cannam@167: reload_cmds='$CC -r -o $output$reload_objs' cannam@167: hardcode_direct=no cannam@167: ;; cannam@167: motorola) cannam@167: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@167: hardcode_direct=no #Motorola manual says yes, but my tests say they lie cannam@167: ;; cannam@167: esac cannam@167: runpath_var='LD_RUN_PATH' cannam@167: hardcode_shlibpath_var=no cannam@167: ;; cannam@167: cannam@167: sysv4.3*) cannam@167: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@167: hardcode_shlibpath_var=no cannam@167: export_dynamic_flag_spec='-Bexport' cannam@167: ;; cannam@167: cannam@167: sysv4*MP*) cannam@167: if test -d /usr/nec; then cannam@167: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@167: hardcode_shlibpath_var=no cannam@167: runpath_var=LD_RUN_PATH cannam@167: hardcode_runpath_var=yes cannam@167: ld_shlibs=yes cannam@167: fi cannam@167: ;; cannam@167: cannam@167: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) cannam@167: no_undefined_flag='$wl-z,text' cannam@167: archive_cmds_need_lc=no cannam@167: hardcode_shlibpath_var=no cannam@167: runpath_var='LD_RUN_PATH' cannam@167: cannam@167: if test yes = "$GCC"; then cannam@167: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: else cannam@167: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: fi cannam@167: ;; cannam@167: cannam@167: sysv5* | sco3.2v5* | sco5v6*) cannam@167: # Note: We CANNOT use -z defs as we might desire, because we do not cannam@167: # link with -lc, and that would cause any symbols used from libc to cannam@167: # always be unresolved, which means just about no library would cannam@167: # ever link correctly. If we're not using GNU ld we use -z text cannam@167: # though, which does catch some bad symbols but isn't as heavy-handed cannam@167: # as -z defs. cannam@167: no_undefined_flag='$wl-z,text' cannam@167: allow_undefined_flag='$wl-z,nodefs' cannam@167: archive_cmds_need_lc=no cannam@167: hardcode_shlibpath_var=no cannam@167: hardcode_libdir_flag_spec='$wl-R,$libdir' cannam@167: hardcode_libdir_separator=':' cannam@167: link_all_deplibs=yes cannam@167: export_dynamic_flag_spec='$wl-Bexport' cannam@167: runpath_var='LD_RUN_PATH' cannam@167: cannam@167: if test yes = "$GCC"; then cannam@167: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: else cannam@167: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: fi cannam@167: ;; cannam@167: cannam@167: uts4*) cannam@167: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@167: hardcode_libdir_flag_spec='-L$libdir' cannam@167: hardcode_shlibpath_var=no cannam@167: ;; cannam@167: cannam@167: *) cannam@167: ld_shlibs=no cannam@167: ;; cannam@167: esac cannam@167: cannam@167: if test sni = "$host_vendor"; then cannam@167: case $host in cannam@167: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@167: export_dynamic_flag_spec='$wl-Blargedynsym' cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 cannam@167: $as_echo "$ld_shlibs" >&6; } cannam@167: test no = "$ld_shlibs" && can_build_shared=no cannam@167: cannam@167: with_gnu_ld=$with_gnu_ld cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # cannam@167: # Do we need to explicitly link libc? cannam@167: # cannam@167: case "x$archive_cmds_need_lc" in cannam@167: x|xyes) cannam@167: # Assume -lc should be added cannam@167: archive_cmds_need_lc=yes cannam@167: cannam@167: if test yes,yes = "$GCC,$enable_shared"; then cannam@167: case $archive_cmds in cannam@167: *'~'*) cannam@167: # FIXME: we may have to deal with multi-command sequences. cannam@167: ;; cannam@167: '$CC '*) cannam@167: # Test whether the compiler implicitly links with -lc since on some cannam@167: # systems, -lgcc has to come before -lc. If gcc already passes -lc cannam@167: # to ld, don't add -lc before -lgcc. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 cannam@167: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } cannam@167: if ${lt_cv_archive_cmds_need_lc+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: $RM conftest* cannam@167: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@167: cannam@167: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 cannam@167: (eval $ac_compile) 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } 2>conftest.err; then cannam@167: soname=conftest cannam@167: lib=conftest cannam@167: libobjs=conftest.$ac_objext cannam@167: deplibs= cannam@167: wl=$lt_prog_compiler_wl cannam@167: pic_flag=$lt_prog_compiler_pic cannam@167: compiler_flags=-v cannam@167: linker_flags=-v cannam@167: verstring= cannam@167: output_objdir=. cannam@167: libname=conftest cannam@167: lt_save_allow_undefined_flag=$allow_undefined_flag cannam@167: allow_undefined_flag= cannam@167: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 cannam@167: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } cannam@167: then cannam@167: lt_cv_archive_cmds_need_lc=no cannam@167: else cannam@167: lt_cv_archive_cmds_need_lc=yes cannam@167: fi cannam@167: allow_undefined_flag=$lt_save_allow_undefined_flag cannam@167: else cannam@167: cat conftest.err 1>&5 cannam@167: fi cannam@167: $RM conftest* cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 cannam@167: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } cannam@167: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 cannam@167: $as_echo_n "checking dynamic linker characteristics... " >&6; } cannam@167: cannam@167: if test yes = "$GCC"; then cannam@167: case $host_os in cannam@167: darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; cannam@167: *) lt_awk_arg='/^libraries:/' ;; cannam@167: esac cannam@167: case $host_os in cannam@167: mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; cannam@167: *) lt_sed_strip_eq='s|=/|/|g' ;; cannam@167: esac cannam@167: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` cannam@167: case $lt_search_path_spec in cannam@167: *\;*) cannam@167: # if the path contains ";" then we assume it to be the separator cannam@167: # otherwise default to the standard path separator (i.e. ":") - it is cannam@167: # assumed that no part of a normal pathname contains ";" but that should cannam@167: # okay in the real world where ";" in dirpaths is itself problematic. cannam@167: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` cannam@167: ;; cannam@167: *) cannam@167: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` cannam@167: ;; cannam@167: esac cannam@167: # Ok, now we have the path, separated by spaces, we can step through it cannam@167: # and add multilib dir if necessary... cannam@167: lt_tmp_lt_search_path_spec= cannam@167: lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` cannam@167: # ...but if some path component already ends with the multilib dir we assume cannam@167: # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). cannam@167: case "$lt_multi_os_dir; $lt_search_path_spec " in cannam@167: "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) cannam@167: lt_multi_os_dir= cannam@167: ;; cannam@167: esac cannam@167: for lt_sys_path in $lt_search_path_spec; do cannam@167: if test -d "$lt_sys_path$lt_multi_os_dir"; then cannam@167: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" cannam@167: elif test -n "$lt_multi_os_dir"; then cannam@167: test -d "$lt_sys_path" && \ cannam@167: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" cannam@167: fi cannam@167: done cannam@167: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' cannam@167: BEGIN {RS = " "; FS = "/|\n";} { cannam@167: lt_foo = ""; cannam@167: lt_count = 0; cannam@167: for (lt_i = NF; lt_i > 0; lt_i--) { cannam@167: if ($lt_i != "" && $lt_i != ".") { cannam@167: if ($lt_i == "..") { cannam@167: lt_count++; cannam@167: } else { cannam@167: if (lt_count == 0) { cannam@167: lt_foo = "/" $lt_i lt_foo; cannam@167: } else { cannam@167: lt_count--; cannam@167: } cannam@167: } cannam@167: } cannam@167: } cannam@167: if (lt_foo != "") { lt_freq[lt_foo]++; } cannam@167: if (lt_freq[lt_foo] == 1) { print lt_foo; } cannam@167: }'` cannam@167: # AWK program above erroneously prepends '/' to C:/dos/paths cannam@167: # for these hosts. cannam@167: case $host_os in cannam@167: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ cannam@167: $SED 's|/\([A-Za-z]:\)|\1|g'` ;; cannam@167: esac cannam@167: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` cannam@167: else cannam@167: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" cannam@167: fi cannam@167: library_names_spec= cannam@167: libname_spec='lib$name' cannam@167: soname_spec= cannam@167: shrext_cmds=.so cannam@167: postinstall_cmds= cannam@167: postuninstall_cmds= cannam@167: finish_cmds= cannam@167: finish_eval= cannam@167: shlibpath_var= cannam@167: shlibpath_overrides_runpath=unknown cannam@167: version_type=none cannam@167: dynamic_linker="$host_os ld.so" cannam@167: sys_lib_dlsearch_path_spec="/lib /usr/lib" cannam@167: need_lib_prefix=unknown cannam@167: hardcode_into_libs=no cannam@167: cannam@167: # when you set need_version to no, make sure it does not cause -set_version cannam@167: # flags to be left without arguments cannam@167: need_version=unknown cannam@167: cannam@167: cannam@167: cannam@167: case $host_os in cannam@167: aix3*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname.a' cannam@167: shlibpath_var=LIBPATH cannam@167: cannam@167: # AIX 3 has no versioning support, so we append a major version to the name. cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: ;; cannam@167: cannam@167: aix[4-9]*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: hardcode_into_libs=yes cannam@167: if test ia64 = "$host_cpu"; then cannam@167: # AIX 5 supports IA64 cannam@167: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: else cannam@167: # With GCC up to 2.95.x, collect2 would create an import file cannam@167: # for dependence libraries. The import file would start with cannam@167: # the line '#! .'. This would cause the generated library to cannam@167: # depend on '.', always an invalid library. This was fixed in cannam@167: # development snapshots of GCC prior to 3.0. cannam@167: case $host_os in cannam@167: aix4 | aix4.[01] | aix4.[01].*) cannam@167: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' cannam@167: echo ' yes ' cannam@167: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then cannam@167: : cannam@167: else cannam@167: can_build_shared=no cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: # Using Import Files as archive members, it is possible to support cannam@167: # filename-based versioning of shared library archives on AIX. While cannam@167: # this would work for both with and without runtime linking, it will cannam@167: # prevent static linking of such archives. So we do filename-based cannam@167: # shared library versioning with .so extension only, which is used cannam@167: # when both runtime linking and shared linking is enabled. cannam@167: # Unfortunately, runtime linking may impact performance, so we do cannam@167: # not want this to be the default eventually. Also, we use the cannam@167: # versioned .so libs for executables only if there is the -brtl cannam@167: # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. cannam@167: # To allow for filename-based versioning support, we need to create cannam@167: # libNAME.so.V as an archive file, containing: cannam@167: # *) an Import File, referring to the versioned filename of the cannam@167: # archive as well as the shared archive member, telling the cannam@167: # bitwidth (32 or 64) of that shared object, and providing the cannam@167: # list of exported symbols of that shared object, eventually cannam@167: # decorated with the 'weak' keyword cannam@167: # *) the shared object with the F_LOADONLY flag set, to really avoid cannam@167: # it being seen by the linker. cannam@167: # At run time we better use the real file rather than another symlink, cannam@167: # but for link time we create the symlink libNAME.so -> libNAME.so.V cannam@167: cannam@167: case $with_aix_soname,$aix_use_runtimelinking in cannam@167: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct cannam@167: # soname into executable. Probably we can add versioning support to cannam@167: # collect2, so additional links can be useful in future. cannam@167: aix,yes) # traditional libtool cannam@167: dynamic_linker='AIX unversionable lib.so' cannam@167: # If using run time linking (on AIX 4.2 or later) use lib.so cannam@167: # instead of lib.a to let people know that these are not cannam@167: # typical AIX shared libraries. cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: ;; cannam@167: aix,no) # traditional AIX only cannam@167: dynamic_linker='AIX lib.a(lib.so.V)' cannam@167: # We preserve .a as extension for shared libraries through AIX4.2 cannam@167: # and later when we are not doing run time linking. cannam@167: library_names_spec='$libname$release.a $libname.a' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: ;; cannam@167: svr4,*) # full svr4 only cannam@167: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" cannam@167: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' cannam@167: # We do not specify a path in Import Files, so LIBPATH fires. cannam@167: shlibpath_overrides_runpath=yes cannam@167: ;; cannam@167: *,yes) # both, prefer svr4 cannam@167: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" cannam@167: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' cannam@167: # unpreferred sharedlib libNAME.a needs extra handling cannam@167: 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"' cannam@167: 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"' cannam@167: # We do not specify a path in Import Files, so LIBPATH fires. cannam@167: shlibpath_overrides_runpath=yes cannam@167: ;; cannam@167: *,no) # both, prefer aix cannam@167: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" cannam@167: library_names_spec='$libname$release.a $libname.a' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling cannam@167: 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)' cannam@167: 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"' cannam@167: ;; cannam@167: esac cannam@167: shlibpath_var=LIBPATH cannam@167: fi cannam@167: ;; cannam@167: cannam@167: amigaos*) cannam@167: case $host_cpu in cannam@167: powerpc) cannam@167: # Since July 2007 AmigaOS4 officially supports .so libraries. cannam@167: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: ;; cannam@167: m68k) cannam@167: library_names_spec='$libname.ixlibrary $libname.a' cannam@167: # Create ${libname}_ixlibrary.a entries in /sys/libs. cannam@167: 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' cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: beos*) cannam@167: library_names_spec='$libname$shared_ext' cannam@167: dynamic_linker="$host_os ld.so" cannam@167: shlibpath_var=LIBRARY_PATH cannam@167: ;; cannam@167: cannam@167: bsdi[45]*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" cannam@167: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" cannam@167: # the default ld.so.conf also contains /usr/contrib/lib and cannam@167: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow cannam@167: # libtool to hard-code these into programs cannam@167: ;; cannam@167: cannam@167: cygwin* | mingw* | pw32* | cegcc*) cannam@167: version_type=windows cannam@167: shrext_cmds=.dll cannam@167: need_version=no cannam@167: need_lib_prefix=no cannam@167: cannam@167: case $GCC,$cc_basename in cannam@167: yes,*) cannam@167: # gcc cannam@167: library_names_spec='$libname.dll.a' cannam@167: # DLL is installed to $(libdir)/../bin by postinstall_cmds cannam@167: postinstall_cmds='base_file=`basename \$file`~ cannam@167: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ cannam@167: dldir=$destdir/`dirname \$dlpath`~ cannam@167: test -d \$dldir || mkdir -p \$dldir~ cannam@167: $install_prog $dir/$dlname \$dldir/$dlname~ cannam@167: chmod a+x \$dldir/$dlname~ cannam@167: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then cannam@167: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; cannam@167: fi' cannam@167: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ cannam@167: dlpath=$dir/\$dldll~ cannam@167: $RM \$dlpath' cannam@167: shlibpath_overrides_runpath=yes cannam@167: cannam@167: case $host_os in cannam@167: cygwin*) cannam@167: # Cygwin DLLs use 'cyg' prefix rather than 'lib' cannam@167: soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' cannam@167: cannam@167: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" cannam@167: ;; cannam@167: mingw* | cegcc*) cannam@167: # MinGW DLLs use traditional 'lib' prefix cannam@167: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' cannam@167: ;; cannam@167: pw32*) cannam@167: # pw32 DLLs use 'pw' prefix rather than 'lib' cannam@167: library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' cannam@167: ;; cannam@167: esac cannam@167: dynamic_linker='Win32 ld.exe' cannam@167: ;; cannam@167: cannam@167: *,cl*) cannam@167: # Native MSVC cannam@167: libname_spec='$name' cannam@167: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' cannam@167: library_names_spec='$libname.dll.lib' cannam@167: cannam@167: case $build_os in cannam@167: mingw*) cannam@167: sys_lib_search_path_spec= cannam@167: lt_save_ifs=$IFS cannam@167: IFS=';' cannam@167: for lt_path in $LIB cannam@167: do cannam@167: IFS=$lt_save_ifs cannam@167: # Let DOS variable expansion print the short 8.3 style file name. cannam@167: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` cannam@167: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" cannam@167: done cannam@167: IFS=$lt_save_ifs cannam@167: # Convert to MSYS style. cannam@167: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` cannam@167: ;; cannam@167: cygwin*) cannam@167: # Convert to unix form, then to dos form, then back to unix form cannam@167: # but this time dos style (no spaces!) so that the unix form looks cannam@167: # like /cygdrive/c/PROGRA~1:/cygdr... cannam@167: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` cannam@167: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` cannam@167: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@167: ;; cannam@167: *) cannam@167: sys_lib_search_path_spec=$LIB cannam@167: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then cannam@167: # It is most probably a Windows format PATH. cannam@167: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@167: else cannam@167: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@167: fi cannam@167: # FIXME: find the short name or the path components, as spaces are cannam@167: # common. (e.g. "Program Files" -> "PROGRA~1") cannam@167: ;; cannam@167: esac cannam@167: cannam@167: # DLL is installed to $(libdir)/../bin by postinstall_cmds cannam@167: postinstall_cmds='base_file=`basename \$file`~ cannam@167: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ cannam@167: dldir=$destdir/`dirname \$dlpath`~ cannam@167: test -d \$dldir || mkdir -p \$dldir~ cannam@167: $install_prog $dir/$dlname \$dldir/$dlname' cannam@167: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ cannam@167: dlpath=$dir/\$dldll~ cannam@167: $RM \$dlpath' cannam@167: shlibpath_overrides_runpath=yes cannam@167: dynamic_linker='Win32 link.exe' cannam@167: ;; cannam@167: cannam@167: *) cannam@167: # Assume MSVC wrapper cannam@167: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' cannam@167: dynamic_linker='Win32 ld.exe' cannam@167: ;; cannam@167: esac cannam@167: # FIXME: first we should search . and the directory the executable is in cannam@167: shlibpath_var=PATH cannam@167: ;; cannam@167: cannam@167: darwin* | rhapsody*) cannam@167: dynamic_linker="$host_os dyld" cannam@167: version_type=darwin cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' cannam@167: soname_spec='$libname$release$major$shared_ext' cannam@167: shlibpath_overrides_runpath=yes cannam@167: shlibpath_var=DYLD_LIBRARY_PATH cannam@167: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' cannam@167: cannam@167: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" cannam@167: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' cannam@167: ;; cannam@167: cannam@167: dgux*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: ;; cannam@167: cannam@167: freebsd* | dragonfly*) cannam@167: # DragonFly does not have aout. When/if they implement a new cannam@167: # versioning mechanism, adjust this. cannam@167: if test -x /usr/bin/objformat; then cannam@167: objformat=`/usr/bin/objformat` cannam@167: else cannam@167: case $host_os in cannam@167: freebsd[23].*) objformat=aout ;; cannam@167: *) objformat=elf ;; cannam@167: esac cannam@167: fi cannam@167: version_type=freebsd-$objformat cannam@167: case $version_type in cannam@167: freebsd-elf*) cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: need_version=no cannam@167: need_lib_prefix=no cannam@167: ;; cannam@167: freebsd-*) cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' cannam@167: need_version=yes cannam@167: ;; cannam@167: esac cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: case $host_os in cannam@167: freebsd2.*) cannam@167: shlibpath_overrides_runpath=yes cannam@167: ;; cannam@167: freebsd3.[01]* | freebsdelf3.[01]*) cannam@167: shlibpath_overrides_runpath=yes cannam@167: hardcode_into_libs=yes cannam@167: ;; cannam@167: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ cannam@167: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) cannam@167: shlibpath_overrides_runpath=no cannam@167: hardcode_into_libs=yes cannam@167: ;; cannam@167: *) # from 4.6 on, and DragonFly cannam@167: shlibpath_overrides_runpath=yes cannam@167: hardcode_into_libs=yes cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: haiku*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: dynamic_linker="$host_os runtime_loader" cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: shlibpath_var=LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=no cannam@167: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' cannam@167: hardcode_into_libs=yes cannam@167: ;; cannam@167: cannam@167: hpux9* | hpux10* | hpux11*) cannam@167: # Give a soname corresponding to the major version so that dld.sl refuses to cannam@167: # link against other versions. cannam@167: version_type=sunos cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: case $host_cpu in cannam@167: ia64*) cannam@167: shrext_cmds='.so' cannam@167: hardcode_into_libs=yes cannam@167: dynamic_linker="$host_os dld.so" cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: if test 32 = "$HPUX_IA64_MODE"; then cannam@167: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" cannam@167: sys_lib_dlsearch_path_spec=/usr/lib/hpux32 cannam@167: else cannam@167: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" cannam@167: sys_lib_dlsearch_path_spec=/usr/lib/hpux64 cannam@167: fi cannam@167: ;; cannam@167: hppa*64*) cannam@167: shrext_cmds='.sl' cannam@167: hardcode_into_libs=yes cannam@167: dynamic_linker="$host_os dld.sl" cannam@167: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH cannam@167: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" cannam@167: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@167: ;; cannam@167: *) cannam@167: shrext_cmds='.sl' cannam@167: dynamic_linker="$host_os dld.sl" cannam@167: shlibpath_var=SHLIB_PATH cannam@167: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: ;; cannam@167: esac cannam@167: # HP-UX runs *really* slowly unless shared libraries are mode 555, ... cannam@167: postinstall_cmds='chmod 555 $lib' cannam@167: # or fails outright, so override atomically: cannam@167: install_override_mode=555 cannam@167: ;; cannam@167: cannam@167: interix[3-9]*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=no cannam@167: hardcode_into_libs=yes cannam@167: ;; cannam@167: cannam@167: irix5* | irix6* | nonstopux*) cannam@167: case $host_os in cannam@167: nonstopux*) version_type=nonstopux ;; cannam@167: *) cannam@167: if test yes = "$lt_cv_prog_gnu_ld"; then cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: else cannam@167: version_type=irix cannam@167: fi ;; cannam@167: esac cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' cannam@167: case $host_os in cannam@167: irix5* | nonstopux*) cannam@167: libsuff= shlibsuff= cannam@167: ;; cannam@167: *) cannam@167: case $LD in # libtool.m4 will add one of these switches to LD cannam@167: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") cannam@167: libsuff= shlibsuff= libmagic=32-bit;; cannam@167: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") cannam@167: libsuff=32 shlibsuff=N32 libmagic=N32;; cannam@167: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") cannam@167: libsuff=64 shlibsuff=64 libmagic=64-bit;; cannam@167: *) libsuff= shlibsuff= libmagic=never-match;; cannam@167: esac cannam@167: ;; cannam@167: esac cannam@167: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH cannam@167: shlibpath_overrides_runpath=no cannam@167: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" cannam@167: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" cannam@167: hardcode_into_libs=yes cannam@167: ;; cannam@167: cannam@167: # No shared lib support for Linux oldld, aout, or coff. cannam@167: linux*oldld* | linux*aout* | linux*coff*) cannam@167: dynamic_linker=no cannam@167: ;; cannam@167: cannam@167: linux*android*) cannam@167: version_type=none # Android doesn't support versioned libraries. cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext' cannam@167: finish_cmds= cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=yes cannam@167: cannam@167: # This implies no fast_install, which is unacceptable. cannam@167: # Some rework will be needed to allow for fast_install cannam@167: # before this can be enabled. cannam@167: hardcode_into_libs=yes cannam@167: cannam@167: dynamic_linker='Android linker' cannam@167: # Don't embed -rpath directories since the linker doesn't support them. cannam@167: hardcode_libdir_flag_spec='-L$libdir' cannam@167: ;; cannam@167: cannam@167: # This must be glibc/ELF. cannam@167: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=no cannam@167: cannam@167: # Some binutils ld are patched to set DT_RUNPATH cannam@167: if ${lt_cv_shlibpath_overrides_runpath+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_shlibpath_overrides_runpath=no cannam@167: save_LDFLAGS=$LDFLAGS cannam@167: save_libdir=$libdir cannam@167: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ cannam@167: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : cannam@167: lt_cv_shlibpath_overrides_runpath=yes cannam@167: fi cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: LDFLAGS=$save_LDFLAGS cannam@167: libdir=$save_libdir cannam@167: cannam@167: fi cannam@167: cannam@167: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath cannam@167: cannam@167: # This implies no fast_install, which is unacceptable. cannam@167: # Some rework will be needed to allow for fast_install cannam@167: # before this can be enabled. cannam@167: hardcode_into_libs=yes cannam@167: cannam@167: # Ideally, we could use ldconfig to report *all* directores which are cannam@167: # searched for libraries, however this is still not possible. Aside from not cannam@167: # being certain /sbin/ldconfig is available, command cannam@167: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, cannam@167: # even though it is searched at run-time. Try to do the best guess by cannam@167: # appending ld.so.conf contents (and includes) to the search path. cannam@167: if test -f /etc/ld.so.conf; then cannam@167: 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' ' '` cannam@167: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" cannam@167: fi cannam@167: cannam@167: # We used to test for /lib/ld.so.1 and disable shared libraries on cannam@167: # powerpc, because MkLinux only supported shared libraries with the cannam@167: # GNU dynamic linker. Since this was broken with cross compilers, cannam@167: # most powerpc-linux boxes support dynamic linking these days and cannam@167: # people can always --disable-shared, the test was removed, and we cannam@167: # assume the GNU/Linux dynamic linker is in use. cannam@167: dynamic_linker='GNU/Linux ld.so' cannam@167: ;; cannam@167: cannam@167: netbsdelf*-gnu) cannam@167: version_type=linux cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@167: soname_spec='${libname}${release}${shared_ext}$major' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=no cannam@167: hardcode_into_libs=yes cannam@167: dynamic_linker='NetBSD ld.elf_so' cannam@167: ;; cannam@167: cannam@167: netbsd*) cannam@167: version_type=sunos cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' cannam@167: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@167: dynamic_linker='NetBSD (a.out) ld.so' cannam@167: else cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: dynamic_linker='NetBSD ld.elf_so' cannam@167: fi cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=yes cannam@167: hardcode_into_libs=yes cannam@167: ;; cannam@167: cannam@167: newsos6) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=yes cannam@167: ;; cannam@167: cannam@167: *nto* | *qnx*) cannam@167: version_type=qnx cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=no cannam@167: hardcode_into_libs=yes cannam@167: dynamic_linker='ldqnx.so' cannam@167: ;; cannam@167: cannam@167: openbsd* | bitrig*) cannam@167: version_type=sunos cannam@167: sys_lib_dlsearch_path_spec=/usr/lib cannam@167: need_lib_prefix=no cannam@167: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then cannam@167: need_version=no cannam@167: else cannam@167: need_version=yes cannam@167: fi cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' cannam@167: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=yes cannam@167: ;; cannam@167: cannam@167: os2*) cannam@167: libname_spec='$name' cannam@167: version_type=windows cannam@167: shrext_cmds=.dll cannam@167: need_version=no cannam@167: need_lib_prefix=no cannam@167: # OS/2 can only load a DLL with a base name of 8 characters or less. cannam@167: soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; cannam@167: v=$($ECHO $release$versuffix | tr -d .-); cannam@167: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); cannam@167: $ECHO $n$v`$shared_ext' cannam@167: library_names_spec='${libname}_dll.$libext' cannam@167: dynamic_linker='OS/2 ld.exe' cannam@167: shlibpath_var=BEGINLIBPATH cannam@167: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" cannam@167: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@167: postinstall_cmds='base_file=`basename \$file`~ cannam@167: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ cannam@167: dldir=$destdir/`dirname \$dlpath`~ cannam@167: test -d \$dldir || mkdir -p \$dldir~ cannam@167: $install_prog $dir/$dlname \$dldir/$dlname~ cannam@167: chmod a+x \$dldir/$dlname~ cannam@167: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then cannam@167: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; cannam@167: fi' cannam@167: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ cannam@167: dlpath=$dir/\$dldll~ cannam@167: $RM \$dlpath' cannam@167: ;; cannam@167: cannam@167: osf3* | osf4* | osf5*) cannam@167: version_type=osf cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" cannam@167: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@167: ;; cannam@167: cannam@167: rdos*) cannam@167: dynamic_linker=no cannam@167: ;; cannam@167: cannam@167: solaris*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=yes cannam@167: hardcode_into_libs=yes cannam@167: # ldd complains unless libraries are executable cannam@167: postinstall_cmds='chmod +x $lib' cannam@167: ;; cannam@167: cannam@167: sunos4*) cannam@167: version_type=sunos cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' cannam@167: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=yes cannam@167: if test yes = "$with_gnu_ld"; then cannam@167: need_lib_prefix=no cannam@167: fi cannam@167: need_version=yes cannam@167: ;; cannam@167: cannam@167: sysv4 | sysv4.3*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: case $host_vendor in cannam@167: sni) cannam@167: shlibpath_overrides_runpath=no cannam@167: need_lib_prefix=no cannam@167: runpath_var=LD_RUN_PATH cannam@167: ;; cannam@167: siemens) cannam@167: need_lib_prefix=no cannam@167: ;; cannam@167: motorola) cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: shlibpath_overrides_runpath=no cannam@167: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: sysv4*MP*) cannam@167: if test -d /usr/nec; then cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' cannam@167: soname_spec='$libname$shared_ext.$major' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: fi cannam@167: ;; cannam@167: cannam@167: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) cannam@167: version_type=sco cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=yes cannam@167: hardcode_into_libs=yes cannam@167: if test yes = "$with_gnu_ld"; then cannam@167: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' cannam@167: else cannam@167: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' cannam@167: case $host_os in cannam@167: sco3.2v5*) cannam@167: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: sys_lib_dlsearch_path_spec='/usr/lib' cannam@167: ;; cannam@167: cannam@167: tpf*) cannam@167: # TPF is a cross-target only. Preferred cross-host = GNU/Linux. cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=no cannam@167: hardcode_into_libs=yes cannam@167: ;; cannam@167: cannam@167: uts4*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: ;; cannam@167: cannam@167: *) cannam@167: dynamic_linker=no cannam@167: ;; cannam@167: esac cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 cannam@167: $as_echo "$dynamic_linker" >&6; } cannam@167: test no = "$dynamic_linker" && can_build_shared=no cannam@167: cannam@167: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" cannam@167: if test yes = "$GCC"; then cannam@167: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" cannam@167: fi cannam@167: cannam@167: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then cannam@167: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec cannam@167: fi cannam@167: cannam@167: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then cannam@167: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec cannam@167: fi cannam@167: cannam@167: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... cannam@167: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec cannam@167: cannam@167: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code cannam@167: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" cannam@167: cannam@167: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool cannam@167: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 cannam@167: $as_echo_n "checking how to hardcode library paths into programs... " >&6; } cannam@167: hardcode_action= cannam@167: if test -n "$hardcode_libdir_flag_spec" || cannam@167: test -n "$runpath_var" || cannam@167: test yes = "$hardcode_automatic"; then cannam@167: cannam@167: # We can hardcode non-existent directories. cannam@167: if test no != "$hardcode_direct" && cannam@167: # If the only mechanism to avoid hardcoding is shlibpath_var, we cannam@167: # have to relink, otherwise we might link with an installed library cannam@167: # when we should be linking with a yet-to-be-installed one cannam@167: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && cannam@167: test no != "$hardcode_minus_L"; then cannam@167: # Linking always hardcodes the temporary library directory. cannam@167: hardcode_action=relink cannam@167: else cannam@167: # We can link without hardcoding, and we can hardcode nonexisting dirs. cannam@167: hardcode_action=immediate cannam@167: fi cannam@167: else cannam@167: # We cannot hardcode anything, or else we can only hardcode existing cannam@167: # directories. cannam@167: hardcode_action=unsupported cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 cannam@167: $as_echo "$hardcode_action" >&6; } cannam@167: cannam@167: if test relink = "$hardcode_action" || cannam@167: test yes = "$inherit_rpath"; then cannam@167: # Fast installation is not supported cannam@167: enable_fast_install=no cannam@167: elif test yes = "$shlibpath_overrides_runpath" || cannam@167: test no = "$enable_shared"; then cannam@167: # Fast installation is not necessary cannam@167: enable_fast_install=needless cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: if test yes != "$enable_dlopen"; then cannam@167: enable_dlopen=unknown cannam@167: enable_dlopen_self=unknown cannam@167: enable_dlopen_self_static=unknown cannam@167: else cannam@167: lt_cv_dlopen=no cannam@167: lt_cv_dlopen_libs= cannam@167: cannam@167: case $host_os in cannam@167: beos*) cannam@167: lt_cv_dlopen=load_add_on cannam@167: lt_cv_dlopen_libs= cannam@167: lt_cv_dlopen_self=yes cannam@167: ;; cannam@167: cannam@167: mingw* | pw32* | cegcc*) cannam@167: lt_cv_dlopen=LoadLibrary cannam@167: lt_cv_dlopen_libs= cannam@167: ;; cannam@167: cannam@167: cygwin*) cannam@167: lt_cv_dlopen=dlopen cannam@167: lt_cv_dlopen_libs= cannam@167: ;; cannam@167: cannam@167: darwin*) cannam@167: # if libdl is installed we need to link against it cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 cannam@167: $as_echo_n "checking for dlopen in -ldl... " >&6; } cannam@167: if ${ac_cv_lib_dl_dlopen+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_check_lib_save_LIBS=$LIBS cannam@167: LIBS="-ldl $LIBS" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: /* Override any GCC internal prototype to avoid an error. cannam@167: Use char because int might match the return type of a GCC cannam@167: builtin and then its argument prototype would still apply. */ cannam@167: #ifdef __cplusplus cannam@167: extern "C" cannam@167: #endif cannam@167: char dlopen (); cannam@167: int cannam@167: main () cannam@167: { cannam@167: return dlopen (); cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: ac_cv_lib_dl_dlopen=yes cannam@167: else cannam@167: ac_cv_lib_dl_dlopen=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: LIBS=$ac_check_lib_save_LIBS cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 cannam@167: $as_echo "$ac_cv_lib_dl_dlopen" >&6; } cannam@167: if test "x$ac_cv_lib_dl_dlopen" = xyes; then : cannam@167: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl cannam@167: else cannam@167: cannam@167: lt_cv_dlopen=dyld cannam@167: lt_cv_dlopen_libs= cannam@167: lt_cv_dlopen_self=yes cannam@167: cannam@167: fi cannam@167: cannam@167: ;; cannam@167: cannam@167: tpf*) cannam@167: # Don't try to run any link tests for TPF. We know it's impossible cannam@167: # because TPF is a cross-compiler, and we know how we open DSOs. cannam@167: lt_cv_dlopen=dlopen cannam@167: lt_cv_dlopen_libs= cannam@167: lt_cv_dlopen_self=no cannam@167: ;; cannam@167: cannam@167: *) cannam@167: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" cannam@167: if test "x$ac_cv_func_shl_load" = xyes; then : cannam@167: lt_cv_dlopen=shl_load cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 cannam@167: $as_echo_n "checking for shl_load in -ldld... " >&6; } cannam@167: if ${ac_cv_lib_dld_shl_load+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_check_lib_save_LIBS=$LIBS cannam@167: LIBS="-ldld $LIBS" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: /* Override any GCC internal prototype to avoid an error. cannam@167: Use char because int might match the return type of a GCC cannam@167: builtin and then its argument prototype would still apply. */ cannam@167: #ifdef __cplusplus cannam@167: extern "C" cannam@167: #endif cannam@167: char shl_load (); cannam@167: int cannam@167: main () cannam@167: { cannam@167: return shl_load (); cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: ac_cv_lib_dld_shl_load=yes cannam@167: else cannam@167: ac_cv_lib_dld_shl_load=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: LIBS=$ac_check_lib_save_LIBS cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 cannam@167: $as_echo "$ac_cv_lib_dld_shl_load" >&6; } cannam@167: if test "x$ac_cv_lib_dld_shl_load" = xyes; then : cannam@167: lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld cannam@167: else cannam@167: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" cannam@167: if test "x$ac_cv_func_dlopen" = xyes; then : cannam@167: lt_cv_dlopen=dlopen cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 cannam@167: $as_echo_n "checking for dlopen in -ldl... " >&6; } cannam@167: if ${ac_cv_lib_dl_dlopen+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_check_lib_save_LIBS=$LIBS cannam@167: LIBS="-ldl $LIBS" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: /* Override any GCC internal prototype to avoid an error. cannam@167: Use char because int might match the return type of a GCC cannam@167: builtin and then its argument prototype would still apply. */ cannam@167: #ifdef __cplusplus cannam@167: extern "C" cannam@167: #endif cannam@167: char dlopen (); cannam@167: int cannam@167: main () cannam@167: { cannam@167: return dlopen (); cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: ac_cv_lib_dl_dlopen=yes cannam@167: else cannam@167: ac_cv_lib_dl_dlopen=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: LIBS=$ac_check_lib_save_LIBS cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 cannam@167: $as_echo "$ac_cv_lib_dl_dlopen" >&6; } cannam@167: if test "x$ac_cv_lib_dl_dlopen" = xyes; then : cannam@167: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 cannam@167: $as_echo_n "checking for dlopen in -lsvld... " >&6; } cannam@167: if ${ac_cv_lib_svld_dlopen+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_check_lib_save_LIBS=$LIBS cannam@167: LIBS="-lsvld $LIBS" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: /* Override any GCC internal prototype to avoid an error. cannam@167: Use char because int might match the return type of a GCC cannam@167: builtin and then its argument prototype would still apply. */ cannam@167: #ifdef __cplusplus cannam@167: extern "C" cannam@167: #endif cannam@167: char dlopen (); cannam@167: int cannam@167: main () cannam@167: { cannam@167: return dlopen (); cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: ac_cv_lib_svld_dlopen=yes cannam@167: else cannam@167: ac_cv_lib_svld_dlopen=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: LIBS=$ac_check_lib_save_LIBS cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 cannam@167: $as_echo "$ac_cv_lib_svld_dlopen" >&6; } cannam@167: if test "x$ac_cv_lib_svld_dlopen" = xyes; then : cannam@167: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 cannam@167: $as_echo_n "checking for dld_link in -ldld... " >&6; } cannam@167: if ${ac_cv_lib_dld_dld_link+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_check_lib_save_LIBS=$LIBS cannam@167: LIBS="-ldld $LIBS" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: /* Override any GCC internal prototype to avoid an error. cannam@167: Use char because int might match the return type of a GCC cannam@167: builtin and then its argument prototype would still apply. */ cannam@167: #ifdef __cplusplus cannam@167: extern "C" cannam@167: #endif cannam@167: char dld_link (); cannam@167: int cannam@167: main () cannam@167: { cannam@167: return dld_link (); cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: ac_cv_lib_dld_dld_link=yes cannam@167: else cannam@167: ac_cv_lib_dld_dld_link=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: LIBS=$ac_check_lib_save_LIBS cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 cannam@167: $as_echo "$ac_cv_lib_dld_dld_link" >&6; } cannam@167: if test "x$ac_cv_lib_dld_dld_link" = xyes; then : cannam@167: lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: cannam@167: ;; cannam@167: esac cannam@167: cannam@167: if test no = "$lt_cv_dlopen"; then cannam@167: enable_dlopen=no cannam@167: else cannam@167: enable_dlopen=yes cannam@167: fi cannam@167: cannam@167: case $lt_cv_dlopen in cannam@167: dlopen) cannam@167: save_CPPFLAGS=$CPPFLAGS cannam@167: test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" cannam@167: cannam@167: save_LDFLAGS=$LDFLAGS cannam@167: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" cannam@167: cannam@167: save_LIBS=$LIBS cannam@167: LIBS="$lt_cv_dlopen_libs $LIBS" cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 cannam@167: $as_echo_n "checking whether a program can dlopen itself... " >&6; } cannam@167: if ${lt_cv_dlopen_self+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test yes = "$cross_compiling"; then : cannam@167: lt_cv_dlopen_self=cross cannam@167: else cannam@167: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@167: lt_status=$lt_dlunknown cannam@167: cat > conftest.$ac_ext <<_LT_EOF cannam@167: #line $LINENO "configure" cannam@167: #include "confdefs.h" cannam@167: cannam@167: #if HAVE_DLFCN_H cannam@167: #include cannam@167: #endif cannam@167: cannam@167: #include cannam@167: cannam@167: #ifdef RTLD_GLOBAL cannam@167: # define LT_DLGLOBAL RTLD_GLOBAL cannam@167: #else cannam@167: # ifdef DL_GLOBAL cannam@167: # define LT_DLGLOBAL DL_GLOBAL cannam@167: # else cannam@167: # define LT_DLGLOBAL 0 cannam@167: # endif cannam@167: #endif cannam@167: cannam@167: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@167: find out it does not work in some platform. */ cannam@167: #ifndef LT_DLLAZY_OR_NOW cannam@167: # ifdef RTLD_LAZY cannam@167: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@167: # else cannam@167: # ifdef DL_LAZY cannam@167: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@167: # else cannam@167: # ifdef RTLD_NOW cannam@167: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@167: # else cannam@167: # ifdef DL_NOW cannam@167: # define LT_DLLAZY_OR_NOW DL_NOW cannam@167: # else cannam@167: # define LT_DLLAZY_OR_NOW 0 cannam@167: # endif cannam@167: # endif cannam@167: # endif cannam@167: # endif cannam@167: #endif cannam@167: cannam@167: /* When -fvisibility=hidden is used, assume the code has been annotated cannam@167: correspondingly for the symbols needed. */ cannam@167: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) cannam@167: int fnord () __attribute__((visibility("default"))); cannam@167: #endif cannam@167: cannam@167: int fnord () { return 42; } cannam@167: int main () cannam@167: { cannam@167: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@167: int status = $lt_dlunknown; cannam@167: cannam@167: if (self) cannam@167: { cannam@167: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@167: else cannam@167: { cannam@167: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@167: else puts (dlerror ()); cannam@167: } cannam@167: /* dlclose (self); */ cannam@167: } cannam@167: else cannam@167: puts (dlerror ()); cannam@167: cannam@167: return status; cannam@167: } cannam@167: _LT_EOF cannam@167: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 cannam@167: (eval $ac_link) 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then cannam@167: (./conftest; exit; ) >&5 2>/dev/null cannam@167: lt_status=$? cannam@167: case x$lt_status in cannam@167: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; cannam@167: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; cannam@167: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; cannam@167: esac cannam@167: else : cannam@167: # compilation failed cannam@167: lt_cv_dlopen_self=no cannam@167: fi cannam@167: fi cannam@167: rm -fr conftest* cannam@167: cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 cannam@167: $as_echo "$lt_cv_dlopen_self" >&6; } cannam@167: cannam@167: if test yes = "$lt_cv_dlopen_self"; then cannam@167: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 cannam@167: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } cannam@167: if ${lt_cv_dlopen_self_static+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test yes = "$cross_compiling"; then : cannam@167: lt_cv_dlopen_self_static=cross cannam@167: else cannam@167: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@167: lt_status=$lt_dlunknown cannam@167: cat > conftest.$ac_ext <<_LT_EOF cannam@167: #line $LINENO "configure" cannam@167: #include "confdefs.h" cannam@167: cannam@167: #if HAVE_DLFCN_H cannam@167: #include cannam@167: #endif cannam@167: cannam@167: #include cannam@167: cannam@167: #ifdef RTLD_GLOBAL cannam@167: # define LT_DLGLOBAL RTLD_GLOBAL cannam@167: #else cannam@167: # ifdef DL_GLOBAL cannam@167: # define LT_DLGLOBAL DL_GLOBAL cannam@167: # else cannam@167: # define LT_DLGLOBAL 0 cannam@167: # endif cannam@167: #endif cannam@167: cannam@167: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@167: find out it does not work in some platform. */ cannam@167: #ifndef LT_DLLAZY_OR_NOW cannam@167: # ifdef RTLD_LAZY cannam@167: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@167: # else cannam@167: # ifdef DL_LAZY cannam@167: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@167: # else cannam@167: # ifdef RTLD_NOW cannam@167: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@167: # else cannam@167: # ifdef DL_NOW cannam@167: # define LT_DLLAZY_OR_NOW DL_NOW cannam@167: # else cannam@167: # define LT_DLLAZY_OR_NOW 0 cannam@167: # endif cannam@167: # endif cannam@167: # endif cannam@167: # endif cannam@167: #endif cannam@167: cannam@167: /* When -fvisibility=hidden is used, assume the code has been annotated cannam@167: correspondingly for the symbols needed. */ cannam@167: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) cannam@167: int fnord () __attribute__((visibility("default"))); cannam@167: #endif cannam@167: cannam@167: int fnord () { return 42; } cannam@167: int main () cannam@167: { cannam@167: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@167: int status = $lt_dlunknown; cannam@167: cannam@167: if (self) cannam@167: { cannam@167: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@167: else cannam@167: { cannam@167: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@167: else puts (dlerror ()); cannam@167: } cannam@167: /* dlclose (self); */ cannam@167: } cannam@167: else cannam@167: puts (dlerror ()); cannam@167: cannam@167: return status; cannam@167: } cannam@167: _LT_EOF cannam@167: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 cannam@167: (eval $ac_link) 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then cannam@167: (./conftest; exit; ) >&5 2>/dev/null cannam@167: lt_status=$? cannam@167: case x$lt_status in cannam@167: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; cannam@167: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; cannam@167: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; cannam@167: esac cannam@167: else : cannam@167: # compilation failed cannam@167: lt_cv_dlopen_self_static=no cannam@167: fi cannam@167: fi cannam@167: rm -fr conftest* cannam@167: cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 cannam@167: $as_echo "$lt_cv_dlopen_self_static" >&6; } cannam@167: fi cannam@167: cannam@167: CPPFLAGS=$save_CPPFLAGS cannam@167: LDFLAGS=$save_LDFLAGS cannam@167: LIBS=$save_LIBS cannam@167: ;; cannam@167: esac cannam@167: cannam@167: case $lt_cv_dlopen_self in cannam@167: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; cannam@167: *) enable_dlopen_self=unknown ;; cannam@167: esac cannam@167: cannam@167: case $lt_cv_dlopen_self_static in cannam@167: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; cannam@167: *) enable_dlopen_self_static=unknown ;; cannam@167: esac cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: striplib= cannam@167: old_striplib= cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 cannam@167: $as_echo_n "checking whether stripping libraries is possible... " >&6; } cannam@167: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then cannam@167: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" cannam@167: test -z "$striplib" && striplib="$STRIP --strip-unneeded" cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@167: $as_echo "yes" >&6; } cannam@167: else cannam@167: # FIXME - insert some real tests, host_os isn't really good enough cannam@167: case $host_os in cannam@167: darwin*) cannam@167: if test -n "$STRIP"; then cannam@167: striplib="$STRIP -x" cannam@167: old_striplib="$STRIP -S" cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@167: $as_echo "yes" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: ;; cannam@167: *) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # Report what library types will actually be built cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 cannam@167: $as_echo_n "checking if libtool supports shared libraries... " >&6; } cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 cannam@167: $as_echo "$can_build_shared" >&6; } cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 cannam@167: $as_echo_n "checking whether to build shared libraries... " >&6; } cannam@167: test no = "$can_build_shared" && enable_shared=no cannam@167: cannam@167: # On AIX, shared libraries and static libraries use the same namespace, and cannam@167: # are all built from PIC. cannam@167: case $host_os in cannam@167: aix3*) cannam@167: test yes = "$enable_shared" && enable_static=no cannam@167: if test -n "$RANLIB"; then cannam@167: archive_cmds="$archive_cmds~\$RANLIB \$lib" cannam@167: postinstall_cmds='$RANLIB $lib' cannam@167: fi cannam@167: ;; cannam@167: cannam@167: aix[4-9]*) cannam@167: if test ia64 != "$host_cpu"; then cannam@167: case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in cannam@167: yes,aix,yes) ;; # shared object as lib.so file only cannam@167: yes,svr4,*) ;; # shared object as lib.so archive member only cannam@167: yes,*) enable_static=no ;; # shared object in lib.a archive as well cannam@167: esac cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 cannam@167: $as_echo "$enable_shared" >&6; } cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 cannam@167: $as_echo_n "checking whether to build static libraries... " >&6; } cannam@167: # Make sure either enable_shared or enable_static is yes. cannam@167: test yes = "$enable_shared" || enable_static=yes cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 cannam@167: $as_echo "$enable_static" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: fi cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: CC=$lt_save_CC cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: ac_config_commands="$ac_config_commands libtool" cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # Only expand once: cannam@167: cannam@167: cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. cannam@167: set dummy ${ac_tool_prefix}ranlib; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_RANLIB+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$RANLIB"; then cannam@167: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: RANLIB=$ac_cv_prog_RANLIB cannam@167: if test -n "$RANLIB"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 cannam@167: $as_echo "$RANLIB" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: if test -z "$ac_cv_prog_RANLIB"; then cannam@167: ac_ct_RANLIB=$RANLIB cannam@167: # Extract the first word of "ranlib", so it can be a program name with args. cannam@167: set dummy ranlib; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_RANLIB"; then cannam@167: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_RANLIB="ranlib" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB cannam@167: if test -n "$ac_ct_RANLIB"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 cannam@167: $as_echo "$ac_ct_RANLIB" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: if test "x$ac_ct_RANLIB" = x; then cannam@167: RANLIB=":" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: RANLIB=$ac_ct_RANLIB cannam@167: fi cannam@167: else cannam@167: RANLIB="$ac_cv_prog_RANLIB" cannam@167: fi cannam@167: cannam@167: cannam@167: # Extract the first word of "ocamlbuild", so it can be a program name with args. cannam@167: set dummy ocamlbuild; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_OCAMLBUILD+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$OCAMLBUILD"; then cannam@167: ac_cv_prog_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_OCAMLBUILD="ocamlbuild" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: OCAMLBUILD=$ac_cv_prog_OCAMLBUILD cannam@167: if test -n "$OCAMLBUILD"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5 cannam@167: $as_echo "$OCAMLBUILD" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # Check whether --enable-mpi was given. cannam@167: if test "${enable_mpi+set}" = set; then : cannam@167: enableval=$enable_mpi; enable_mpi=$enableval cannam@167: else cannam@167: enable_mpi=no cannam@167: fi cannam@167: cannam@167: cannam@167: if test "$enable_mpi" = "yes"; then cannam@167: if test $PRECISION = q; then cannam@167: as_fn_error $? "quad precision is not supported in MPI" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: for ac_prog in mpicc hcc mpcc mpcc_r mpxlc cmpicc cannam@167: do cannam@167: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@167: set dummy $ac_prog; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_MPICC+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$MPICC"; then cannam@167: ac_cv_prog_MPICC="$MPICC" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_MPICC="$ac_prog" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: MPICC=$ac_cv_prog_MPICC cannam@167: if test -n "$MPICC"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5 cannam@167: $as_echo "$MPICC" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: test -n "$MPICC" && break cannam@167: done cannam@167: test -n "$MPICC" || MPICC="$CC" cannam@167: cannam@167: acx_mpi_save_CC="$CC" cannam@167: CC="$MPICC" cannam@167: cannam@167: cannam@167: cannam@167: if test x = x"$MPILIBS"; then cannam@167: ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" cannam@167: if test "x$ac_cv_func_MPI_Init" = xyes; then : cannam@167: MPILIBS=" " cannam@167: fi cannam@167: cannam@167: fi cannam@167: if test x = x"$MPILIBS"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 cannam@167: $as_echo_n "checking for MPI_Init in -lmpi... " >&6; } cannam@167: if ${ac_cv_lib_mpi_MPI_Init+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_check_lib_save_LIBS=$LIBS cannam@167: LIBS="-lmpi $LIBS" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: /* Override any GCC internal prototype to avoid an error. cannam@167: Use char because int might match the return type of a GCC cannam@167: builtin and then its argument prototype would still apply. */ cannam@167: #ifdef __cplusplus cannam@167: extern "C" cannam@167: #endif cannam@167: char MPI_Init (); cannam@167: int cannam@167: main () cannam@167: { cannam@167: return MPI_Init (); cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: ac_cv_lib_mpi_MPI_Init=yes cannam@167: else cannam@167: ac_cv_lib_mpi_MPI_Init=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: LIBS=$ac_check_lib_save_LIBS cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 cannam@167: $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } cannam@167: if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then : cannam@167: MPILIBS="-lmpi" cannam@167: fi cannam@167: cannam@167: fi cannam@167: if test x = x"$MPILIBS"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 cannam@167: $as_echo_n "checking for MPI_Init in -lmpich... " >&6; } cannam@167: if ${ac_cv_lib_mpich_MPI_Init+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_check_lib_save_LIBS=$LIBS cannam@167: LIBS="-lmpich $LIBS" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: /* Override any GCC internal prototype to avoid an error. cannam@167: Use char because int might match the return type of a GCC cannam@167: builtin and then its argument prototype would still apply. */ cannam@167: #ifdef __cplusplus cannam@167: extern "C" cannam@167: #endif cannam@167: char MPI_Init (); cannam@167: int cannam@167: main () cannam@167: { cannam@167: return MPI_Init (); cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: ac_cv_lib_mpich_MPI_Init=yes cannam@167: else cannam@167: ac_cv_lib_mpich_MPI_Init=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: LIBS=$ac_check_lib_save_LIBS cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 cannam@167: $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } cannam@167: if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then : cannam@167: MPILIBS="-lmpich" cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: if test x != x"$MPILIBS"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 cannam@167: $as_echo_n "checking for mpi.h... " >&6; } cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@167: $as_echo "yes" >&6; } cannam@167: else cannam@167: MPILIBS="" cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: fi cannam@167: cannam@167: CC="$acx_mpi_save_CC" cannam@167: cannam@167: cannam@167: cannam@167: # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: cannam@167: if test x = x"$MPILIBS"; then cannam@167: as_fn_error $? "could not find mpi library for --enable-mpi" "$LINENO" 5 cannam@167: : cannam@167: else cannam@167: cannam@167: $as_echo "#define HAVE_MPI 1" >>confdefs.h cannam@167: cannam@167: : cannam@167: fi cannam@167: cannam@167: # Extract the first word of "mpirun", so it can be a program name with args. cannam@167: set dummy mpirun; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_MPIRUN+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$MPIRUN"; then cannam@167: ac_cv_prog_MPIRUN="$MPIRUN" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_MPIRUN="mpirun" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: MPIRUN=$ac_cv_prog_MPIRUN cannam@167: if test -n "$MPIRUN"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIRUN" >&5 cannam@167: $as_echo "$MPIRUN" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: save_CC=$CC cannam@167: CC=$MPICC cannam@167: # The cast to long int works around a bug in the HP C Compiler cannam@167: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@167: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@167: # This bug is HP SR number 8606223364. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of MPI_Fint" >&5 cannam@167: $as_echo_n "checking size of MPI_Fint... " >&6; } cannam@167: if ${ac_cv_sizeof_MPI_Fint+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (MPI_Fint))" "ac_cv_sizeof_MPI_Fint" "#include cannam@167: "; then : cannam@167: cannam@167: else cannam@167: if test "$ac_cv_type_MPI_Fint" = yes; then cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error 77 "cannot compute sizeof (MPI_Fint) cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: else cannam@167: ac_cv_sizeof_MPI_Fint=0 cannam@167: fi cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_MPI_Fint" >&5 cannam@167: $as_echo "$ac_cv_sizeof_MPI_Fint" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define SIZEOF_MPI_FINT $ac_cv_sizeof_MPI_Fint cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: CC=$save_CC cannam@167: if test 0 = $ac_cv_sizeof_MPI_Fint; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sizeof(MPI_Fint) test failed" >&5 cannam@167: $as_echo "$as_me: WARNING: sizeof(MPI_Fint) test failed" >&2;}; cannam@167: # The cast to long int works around a bug in the HP C Compiler cannam@167: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@167: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@167: # This bug is HP SR number 8606223364. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 cannam@167: $as_echo_n "checking size of int... " >&6; } cannam@167: if ${ac_cv_sizeof_int+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : cannam@167: cannam@167: else cannam@167: if test "$ac_cv_type_int" = yes; then cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error 77 "cannot compute sizeof (int) cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: else cannam@167: ac_cv_sizeof_int=0 cannam@167: fi cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 cannam@167: $as_echo "$ac_cv_sizeof_int" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define SIZEOF_INT $ac_cv_sizeof_int cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: if test 0 = $ac_cv_sizeof_int; then as_fn_error $? "sizeof(int) test failed" "$LINENO" 5; fi cannam@167: ac_cv_sizeof_MPI_Fint=$ac_cv_sizeof_int cannam@167: fi cannam@167: C_MPI_FINT=C_INT`expr $ac_cv_sizeof_MPI_Fint \* 8`_T cannam@167: cannam@167: fi cannam@167: if test "$enable_mpi" = "yes"; then cannam@167: MPI_TRUE= cannam@167: MPI_FALSE='#' cannam@167: else cannam@167: MPI_TRUE='#' cannam@167: MPI_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # Try to determine "good" native compiler flags if none specified via CFLAGS cannam@167: if test "$ac_test_CFLAGS" != "set"; then cannam@167: CFLAGS="" cannam@167: case $ax_cv_c_compiler_vendor in cannam@167: dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host" cannam@167: ;; cannam@167: cannam@167: sun) CFLAGS="-native -fast -xO5 -dalign" cannam@167: ;; cannam@167: cannam@167: hp) CFLAGS="+Oall +Optrs_ansi +DSnative" cannam@167: ;; cannam@167: cannam@167: ibm) xlc_opt="-qarch=auto -qtune=auto" cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; } cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="$xlc_opt" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=yes cannam@167: else cannam@167: eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh` cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: CFLAGS="-O3 -qalias=ansi -w $xlc_opt" cannam@167: else cannam@167: CFLAGS="-O3 -qalias=ansi -w" cannam@167: fi cannam@167: cannam@167: ;; cannam@167: cannam@167: intel) CFLAGS="-O3" cannam@167: # Intel seems to have changed the spelling of this flag recently cannam@167: icc_ansi_alias="unknown" cannam@167: for flag in -ansi-alias -ansi_alias; do cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts $flag... " >&6; } cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="$flag" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes cannam@167: else cannam@167: eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh` cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: icc_ansi_alias=$flag; break cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: done cannam@167: if test "x$icc_ansi_alias" != xunknown; then cannam@167: CFLAGS="$CFLAGS $icc_ansi_alias" cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; } cannam@167: if ${ax_cv_c_flags__malign_double+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-malign-double" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__malign_double=yes cannam@167: else cannam@167: ax_cv_c_flags__malign_double=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: CFLAGS="$CFLAGS -malign-double" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: # We used to check for architecture flags here, e.g. -xHost etc., cannam@167: # but these flags are problematic. On icc-12.0.0, "-mavx -xHost" cannam@167: # overrides -mavx with -xHost, generating SSE2 code instead of AVX cannam@167: # code. ICC does not seem to support -mtune=host or equivalent cannam@167: # non-ABI changing flag. cannam@167: ;; cannam@167: cannam@167: clang) cannam@167: CFLAGS="-O3 -fomit-frame-pointer" cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mtune=native" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -mtune=native... " >&6; } cannam@167: if ${ax_cv_c_flags__mtune_native+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-mtune=native" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__mtune_native=yes cannam@167: else cannam@167: ax_cv_c_flags__mtune_native=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__mtune_native cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: CFLAGS="$CFLAGS -mtune=native" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; } cannam@167: if ${ax_cv_c_flags__fstrict_aliasing+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-fstrict-aliasing" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__fstrict_aliasing=yes cannam@167: else cannam@167: ax_cv_c_flags__fstrict_aliasing=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: CFLAGS="$CFLAGS -fstrict-aliasing" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: ;; cannam@167: cannam@167: gnu) cannam@167: # Default optimization flags for gcc on all systems. cannam@167: # Somehow -O3 does not imply -fomit-frame-pointer on ia32 cannam@167: CFLAGS="-O3 -fomit-frame-pointer" cannam@167: cannam@167: # tune for the host by default cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mtune=native" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -mtune=native... " >&6; } cannam@167: if ${ax_cv_c_flags__mtune_native+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-mtune=native" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__mtune_native=yes cannam@167: else cannam@167: ax_cv_c_flags__mtune_native=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__mtune_native cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: CFLAGS="$CFLAGS -mtune=native" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: cannam@167: # -malign-double for x86 systems cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; } cannam@167: if ${ax_cv_c_flags__malign_double+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-malign-double" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__malign_double=yes cannam@167: else cannam@167: ax_cv_c_flags__malign_double=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: CFLAGS="$CFLAGS -malign-double" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: cannam@167: # -fstrict-aliasing for gcc-2.95+ cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; } cannam@167: if ${ax_cv_c_flags__fstrict_aliasing+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-fstrict-aliasing" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__fstrict_aliasing=yes cannam@167: else cannam@167: ax_cv_c_flags__fstrict_aliasing=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: CFLAGS="$CFLAGS -fstrict-aliasing" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: cannam@167: # -fno-schedule-insns is pretty much required on all risc cannam@167: # processors. cannam@167: # cannam@167: # gcc performs one pass of instruction scheduling, then a pass of cannam@167: # register allocation, then another pass of instruction cannam@167: # scheduling. The first pass reorders instructions in a way that cannam@167: # is pretty much the worst possible for the purposes of register cannam@167: # allocation. We disable the first pass. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-schedule-insns" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -fno-schedule-insns... " >&6; } cannam@167: if ${ax_cv_c_flags__fno_schedule_insns+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-fno-schedule-insns" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__fno_schedule_insns=yes cannam@167: else cannam@167: ax_cv_c_flags__fno_schedule_insns=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__fno_schedule_insns cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: CFLAGS="$CFLAGS -fno-schedule-insns" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: cannam@167: # flags to enable power ISA 2.07 instructions with gcc (always true with vsx) cannam@167: if test "$have_vsx" = "yes"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mcpu=power8" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -mcpu=power8... " >&6; } cannam@167: if ${ax_cv_c_flags__mcpu_power8+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-mcpu=power8" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__mcpu_power8=yes cannam@167: else cannam@167: ax_cv_c_flags__mcpu_power8=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__mcpu_power8 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: CFLAGS="$CFLAGS -mcpu=power8" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpower8-fusion" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -mpower8-fusion... " >&6; } cannam@167: if ${ax_cv_c_flags__mpower8_fusion+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-mpower8-fusion" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__mpower8_fusion=yes cannam@167: else cannam@167: ax_cv_c_flags__mpower8_fusion=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__mpower8_fusion cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: CFLAGS="$CFLAGS -mpower8-fusion" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpower8-vector" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -mpower8-vector... " >&6; } cannam@167: if ${ax_cv_c_flags__mpower8_vector+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-mpower8-vector" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__mpower8_vector=yes cannam@167: else cannam@167: ax_cv_c_flags__mpower8_vector=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__mpower8_vector cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: CFLAGS="$CFLAGS -mpower8-vector" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mdirect-move" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -mdirect-move... " >&6; } cannam@167: if ${ax_cv_c_flags__mdirect_move+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-mdirect-move" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__mdirect_move=yes cannam@167: else cannam@167: ax_cv_c_flags__mdirect_move=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__mdirect_move cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: CFLAGS="$CFLAGS -mdirect-move" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: cannam@167: if test -z "$CFLAGS"; then cannam@167: echo "" cannam@167: echo "********************************************************" cannam@167: echo "* WARNING: Don't know the best CFLAGS for this system *" cannam@167: echo "* Use ./configure CFLAGS=... to specify your own flags *" cannam@167: echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" cannam@167: echo "********************************************************" cannam@167: echo "" cannam@167: CFLAGS="-O3" cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; } cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="$CFLAGS" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=yes cannam@167: else cannam@167: eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh` cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: : cannam@167: else cannam@167: cannam@167: echo "" cannam@167: echo "********************************************************" cannam@167: echo "* WARNING: The guessed CFLAGS don't seem to work with *" cannam@167: echo "* your compiler. *" cannam@167: echo "* Use ./configure CFLAGS=... to specify your own flags *" cannam@167: echo "********************************************************" cannam@167: echo "" cannam@167: CFLAGS="" cannam@167: cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: cannam@167: cannam@167: case "${ax_cv_c_compiler_vendor}" in cannam@167: intel) # Stop icc from defining __GNUC__, except on MacOS where this fails cannam@167: case "${host_os}" in cannam@167: *darwin*) ;; # icc -no-gcc fails to compile some system headers cannam@167: *) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-gcc" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -no-gcc... " >&6; } cannam@167: if ${ax_cv_c_flags__no_gcc+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-no-gcc" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__no_gcc=yes cannam@167: else cannam@167: ax_cv_c_flags__no_gcc=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__no_gcc cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: CC="$CC -no-gcc" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: hp) # must (sometimes) manually increase cpp limits to handle fftw3.h cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wp,-H128000" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -Wp,-H128000... " >&6; } cannam@167: if ${ax_cv_c_flags__Wp+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-Wp,-H128000" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__Wp=yes cannam@167: else cannam@167: ax_cv_c_flags__Wp=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__Wp cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: CC="$CC -Wp,-H128000" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: ;; cannam@167: cannam@167: portland) # -Masmkeyword required for asm("") cycle counters cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Masmkeyword" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -Masmkeyword... " >&6; } cannam@167: if ${ax_cv_c_flags__Masmkeyword+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-Masmkeyword" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__Masmkeyword=yes cannam@167: else cannam@167: ax_cv_c_flags__Masmkeyword=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__Masmkeyword cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: CC="$CC -Masmkeyword" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: ;; cannam@167: esac cannam@167: cannam@167: case "${ax_cv_c_compiler_vendor}" in cannam@167: gnu|intel) cannam@167: # SSE/SSE2 cannam@167: if test "$have_sse2" = "yes" -a "x$SSE2_CFLAGS" = x; then cannam@167: if test "$PRECISION" = d; then flag=msse2; else flag=msse; fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -$flag" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -$flag... " >&6; } cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-$flag" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=yes cannam@167: else cannam@167: eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh` cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: SSE2_CFLAGS="-$flag" cannam@167: else cannam@167: as_fn_error $? "Need a version of gcc with -$flag" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: # AVX cannam@167: if test "$have_avx" = "yes" -a "x$AVX_CFLAGS" = x; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -mavx... " >&6; } cannam@167: if ${ax_cv_c_flags__mavx+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-mavx" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__mavx=yes cannam@167: else cannam@167: ax_cv_c_flags__mavx=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__mavx cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: AVX_CFLAGS="-mavx" cannam@167: else cannam@167: as_fn_error $? "Need a version of gcc with -mavx" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: # AVX2 cannam@167: # gcc-4.8 works with -march=core-avx2, but -mavx2 is not enough. cannam@167: # Later versions seem to happy with -mavx2, so try the arch one first. cannam@167: if test "$have_avx2" = "yes" -a "x$AVX2_CFLAGS" = x; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -march=core-avx2" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -march=core-avx2... " >&6; } cannam@167: if ${ax_cv_c_flags__march_core_avx2+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-march=core-avx2" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__march_core_avx2=yes cannam@167: else cannam@167: ax_cv_c_flags__march_core_avx2=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__march_core_avx2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: AVX2_CFLAGS="-march=core-avx2" cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -mavx2... " >&6; } cannam@167: if ${ax_cv_c_flags__mavx2+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-mavx2" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__mavx2=yes cannam@167: else cannam@167: ax_cv_c_flags__mavx2=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__mavx2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: AVX2_CFLAGS="-mavx2" cannam@167: else cannam@167: as_fn_error $? "Need a version of gcc with either -march=core-avx2 or -mavx2" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfma" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -mfma... " >&6; } cannam@167: if ${ax_cv_c_flags__mfma+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-mfma" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__mfma=yes cannam@167: else cannam@167: ax_cv_c_flags__mfma=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__mfma cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: AVX2_CFLAGS="$AVX2_CFLAGS -mfma" cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need a version of gcc with -mfma (harmless for icc)" >&5 cannam@167: $as_echo "$as_me: WARNING: Need a version of gcc with -mfma (harmless for icc)" >&2;} cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: # AVX512 cannam@167: if test "$have_avx512" = "yes" -a "x$AVX512_CFLAGS" = x; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -mavx512f... " >&6; } cannam@167: if ${ax_cv_c_flags__mavx512f+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-mavx512f" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__mavx512f=yes cannam@167: else cannam@167: ax_cv_c_flags__mavx512f=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__mavx512f cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: AVX512_CFLAGS="-mavx512f" cannam@167: else cannam@167: as_fn_error $? "Need a version of gcc with -mavx512f" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: if test "$host_vendor" = "apple"; then cannam@167: # We need to tell gcc to use an external assembler to get AVX/AVX2 with gcc on OS X cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wa,-q" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -Wa,-q... " >&6; } cannam@167: if ${ax_cv_c_flags__Wa+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-Wa,-q" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__Wa=yes cannam@167: else cannam@167: ax_cv_c_flags__Wa=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__Wa cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: CFLAGS="$CFLAGS -Wa,-q" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: # Disable the new compact unwinding format so we avoid warnings/potential errors. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wl,-no_compact_unwind" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -Wl,-no_compact_unwind... " >&6; } cannam@167: if ${ax_cv_c_flags__Wl+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-Wl,-no_compact_unwind" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__Wl=yes cannam@167: else cannam@167: ax_cv_c_flags__Wl=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__Wl cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: CFLAGS="$CFLAGS -Wl,-no_compact_unwind" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: # KCVI cannam@167: if test "$have_kcvi" = "yes" -a "x$KCVI_CFLAGS" = x; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmic" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -mmic... " >&6; } cannam@167: if ${ax_cv_c_flags__mmic+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-mmic" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__mmic=yes cannam@167: else cannam@167: ax_cv_c_flags__mmic=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__mmic cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: KCVI_CFLAGS="-mmic" cannam@167: else cannam@167: as_fn_error $? "Need a version of icc with -mmic" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: if test "$have_altivec" = "yes" -a "x$ALTIVEC_CFLAGS" = x; then cannam@167: # -DFAKE__VEC__ is a workaround because gcc-3.3 does not cannam@167: # #define __VEC__ with -maltivec. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -faltivec" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -faltivec... " >&6; } cannam@167: if ${ax_cv_c_flags__faltivec+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-faltivec" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__faltivec=yes cannam@167: else cannam@167: ax_cv_c_flags__faltivec=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__faltivec cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: ALTIVEC_CFLAGS="-faltivec" cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec -mabi=altivec" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -maltivec -mabi=altivec... " >&6; } cannam@167: if ${ax_cv_c_flags__maltivec__mabi_altivec+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-maltivec -mabi=altivec" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__maltivec__mabi_altivec=yes cannam@167: else cannam@167: ax_cv_c_flags__maltivec__mabi_altivec=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec__mabi_altivec cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: ALTIVEC_CFLAGS="-maltivec -mabi=altivec -DFAKE__VEC__" cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvec" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -fvec... " >&6; } cannam@167: if ${ax_cv_c_flags__fvec+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-fvec" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__fvec=yes cannam@167: else cannam@167: ax_cv_c_flags__fvec=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__fvec cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: ALTIVEC_CFLAGS="-fvec" cannam@167: else cannam@167: as_fn_error $? "Need a version of gcc with -maltivec" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: case "${host_cpu}" in cannam@167: aarch64) cannam@167: ;; cannam@167: *) cannam@167: if test "$have_neon" = "yes" -a "x$NEON_CFLAGS" = x; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfpu=neon" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -mfpu=neon... " >&6; } cannam@167: if ${ax_cv_c_flags__mfpu_neon+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-mfpu=neon" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__mfpu_neon=yes cannam@167: else cannam@167: ax_cv_c_flags__mfpu_neon=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__mfpu_neon cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: NEON_CFLAGS="-mfpu=neon" cannam@167: else cannam@167: as_fn_error $? "Need a version of gcc with -mfpu=neon" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: cannam@167: if test "$have_vsx" = "yes" -a "x$VSX_CFLAGS" = x; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mvsx" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -mvsx... " >&6; } cannam@167: if ${ax_cv_c_flags__mvsx+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-mvsx" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__mvsx=yes cannam@167: else cannam@167: ax_cv_c_flags__mvsx=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__mvsx cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: VSX_CFLAGS="-mvsx" cannam@167: else cannam@167: as_fn_error $? "Need a version of gcc with -mvsx" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: ;; cannam@167: cannam@167: clang) cannam@167: cannam@167: if test "$have_avx" = "yes" -a "x$AVX_CFLAGS" = x; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -mavx... " >&6; } cannam@167: if ${ax_cv_c_flags__mavx+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-mavx" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__mavx=yes cannam@167: else cannam@167: ax_cv_c_flags__mavx=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__mavx cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: AVX_CFLAGS="-mavx" cannam@167: else cannam@167: as_fn_error $? "Need a version of clang with -mavx" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: if test "$have_avx2" = "yes" -a "x$AVX2_CFLAGS" = x; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -mavx2... " >&6; } cannam@167: if ${ax_cv_c_flags__mavx2+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-mavx2" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__mavx2=yes cannam@167: else cannam@167: ax_cv_c_flags__mavx2=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__mavx2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: AVX2_CFLAGS="-mavx2" cannam@167: else cannam@167: as_fn_error $? "Need a version of clang with -mavx2" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfma" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -mfma... " >&6; } cannam@167: if ${ax_cv_c_flags__mfma+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-mfma" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__mfma=yes cannam@167: else cannam@167: ax_cv_c_flags__mfma=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__mfma cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: AVX2_CFLAGS="$AVX2_CFLAGS -mfma" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: if test "$have_vsx" = "yes" -a "x$VSX_CFLAGS" = x; then cannam@167: # clang appears to need both -mvsx and -maltivec for VSX cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -maltivec... " >&6; } cannam@167: if ${ax_cv_c_flags__maltivec+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-maltivec" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__maltivec=yes cannam@167: else cannam@167: ax_cv_c_flags__maltivec=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: VSX_CFLAGS="-maltivec" cannam@167: else cannam@167: as_fn_error $? "Need a version of gcc with -maltivec" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mvsx" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -mvsx... " >&6; } cannam@167: if ${ax_cv_c_flags__mvsx+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-mvsx" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__mvsx=yes cannam@167: else cannam@167: ax_cv_c_flags__mvsx=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__mvsx cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: VSX_CFLAGS="-mvsx $VSX_CFLAGS" cannam@167: else cannam@167: as_fn_error $? "Need a version of gcc with -mvsx" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: fi cannam@167: ;; cannam@167: cannam@167: ibm) cannam@167: if test "$have_vsx" = "yes" -a "x$VSX_CFLAGS" = x; then cannam@167: # Note that IBM xlC uses -qaltivec for VSX too. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -qaltivec" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -qaltivec... " >&6; } cannam@167: if ${ax_cv_c_flags__qaltivec+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-qaltivec" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__qaltivec=yes cannam@167: else cannam@167: ax_cv_c_flags__qaltivec=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__qaltivec cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: VSX_CFLAGS="-qaltivec" cannam@167: else cannam@167: as_fn_error $? "Need a version of gcc with -qaltivec" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: if test "$with_incoming_stack_boundary"x != "no"x; then cannam@167: case "${ax_cv_c_compiler_vendor}" in cannam@167: gnu) cannam@167: tentative_flags="-mincoming-stack-boundary=$with_incoming_stack_boundary"; cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $tentative_flags" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts $tentative_flags... " >&6; } cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="$tentative_flags" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=yes cannam@167: else cannam@167: eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh` cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: STACK_ALIGN_CFLAGS=$tentative_flags cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 cannam@167: $as_echo_n "checking for ANSI C header files... " >&6; } cannam@167: if ${ac_cv_header_stdc+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: #include cannam@167: #include cannam@167: #include cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ac_cv_header_stdc=yes cannam@167: else cannam@167: ac_cv_header_stdc=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: cannam@167: if test $ac_cv_header_stdc = yes; then cannam@167: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: cannam@167: _ACEOF cannam@167: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@167: $EGREP "memchr" >/dev/null 2>&1; then : cannam@167: cannam@167: else cannam@167: ac_cv_header_stdc=no cannam@167: fi cannam@167: rm -f conftest* cannam@167: cannam@167: fi cannam@167: cannam@167: if test $ac_cv_header_stdc = yes; then cannam@167: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: cannam@167: _ACEOF cannam@167: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@167: $EGREP "free" >/dev/null 2>&1; then : cannam@167: cannam@167: else cannam@167: ac_cv_header_stdc=no cannam@167: fi cannam@167: rm -f conftest* cannam@167: cannam@167: fi cannam@167: cannam@167: if test $ac_cv_header_stdc = yes; then cannam@167: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. cannam@167: if test "$cross_compiling" = yes; then : cannam@167: : cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: #include cannam@167: #if ((' ' & 0x0FF) == 0x020) cannam@167: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') cannam@167: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) cannam@167: #else cannam@167: # define ISLOWER(c) \ cannam@167: (('a' <= (c) && (c) <= 'i') \ cannam@167: || ('j' <= (c) && (c) <= 'r') \ cannam@167: || ('s' <= (c) && (c) <= 'z')) cannam@167: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) cannam@167: #endif cannam@167: cannam@167: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) cannam@167: int cannam@167: main () cannam@167: { cannam@167: int i; cannam@167: for (i = 0; i < 256; i++) cannam@167: if (XOR (islower (i), ISLOWER (i)) cannam@167: || toupper (i) != TOUPPER (i)) cannam@167: return 2; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_run "$LINENO"; then : cannam@167: cannam@167: else cannam@167: ac_cv_header_stdc=no cannam@167: fi cannam@167: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ cannam@167: conftest.$ac_objext conftest.beam conftest.$ac_ext cannam@167: fi cannam@167: cannam@167: fi cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 cannam@167: $as_echo "$ac_cv_header_stdc" >&6; } cannam@167: if test $ac_cv_header_stdc = yes; then cannam@167: cannam@167: $as_echo "#define STDC_HEADERS 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: for ac_header in fcntl.h fenv.h limits.h malloc.h stddef.h sys/time.h cannam@167: do : cannam@167: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` cannam@167: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" cannam@167: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 cannam@167: _ACEOF cannam@167: cannam@167: fi cannam@167: cannam@167: done cannam@167: cannam@167: cannam@167: save_CFLAGS="$CFLAGS" cannam@167: save_CPPFLAGS="$CPPFLAGS" cannam@167: CFLAGS="$CFLAGS $ALTIVEC_CFLAGS $VSX_CFLAGS" cannam@167: CPPFLAGS="$CPPFLAGS $ALTIVEC_CFLAGS $VSX_CFLAGS" cannam@167: for ac_header in altivec.h cannam@167: do : cannam@167: ac_fn_c_check_header_mongrel "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default" cannam@167: if test "x$ac_cv_header_altivec_h" = xyes; then : cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define HAVE_ALTIVEC_H 1 cannam@167: _ACEOF cannam@167: cannam@167: fi cannam@167: cannam@167: done cannam@167: cannam@167: CFLAGS="$save_CFLAGS" cannam@167: CPPFLAGS="$save_CPPFLAGS" cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 cannam@167: $as_echo_n "checking for an ANSI C-conforming const... " >&6; } cannam@167: if ${ac_cv_c_const+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: #ifndef __cplusplus cannam@167: /* Ultrix mips cc rejects this sort of thing. */ cannam@167: typedef int charset[2]; cannam@167: const charset cs = { 0, 0 }; cannam@167: /* SunOS 4.1.1 cc rejects this. */ cannam@167: char const *const *pcpcc; cannam@167: char **ppc; cannam@167: /* NEC SVR4.0.2 mips cc rejects this. */ cannam@167: struct point {int x, y;}; cannam@167: static struct point const zero = {0,0}; cannam@167: /* AIX XL C 1.02.0.0 rejects this. cannam@167: It does not let you subtract one const X* pointer from another in cannam@167: an arm of an if-expression whose if-part is not a constant cannam@167: expression */ cannam@167: const char *g = "string"; cannam@167: pcpcc = &g + (g ? g-g : 0); cannam@167: /* HPUX 7.0 cc rejects these. */ cannam@167: ++pcpcc; cannam@167: ppc = (char**) pcpcc; cannam@167: pcpcc = (char const *const *) ppc; cannam@167: { /* SCO 3.2v4 cc rejects this sort of thing. */ cannam@167: char tx; cannam@167: char *t = &tx; cannam@167: char const *s = 0 ? (char *) 0 : (char const *) 0; cannam@167: cannam@167: *t++ = 0; cannam@167: if (s) return 0; cannam@167: } cannam@167: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ cannam@167: int x[] = {25, 17}; cannam@167: const int *foo = &x[0]; cannam@167: ++foo; cannam@167: } cannam@167: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ cannam@167: typedef const int *iptr; cannam@167: iptr p = 0; cannam@167: ++p; cannam@167: } cannam@167: { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying cannam@167: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ cannam@167: struct s { int j; const int *ap[3]; } bx; cannam@167: struct s *b = &bx; b->j = 5; cannam@167: } cannam@167: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ cannam@167: const int foo = 10; cannam@167: if (!foo) return 0; cannam@167: } cannam@167: return !cs[0] && !zero.x; cannam@167: #endif cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ac_cv_c_const=yes cannam@167: else cannam@167: ac_cv_c_const=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 cannam@167: $as_echo "$ac_cv_c_const" >&6; } cannam@167: if test $ac_cv_c_const = no; then cannam@167: cannam@167: $as_echo "#define const /**/" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 cannam@167: $as_echo_n "checking for inline... " >&6; } cannam@167: if ${ac_cv_c_inline+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_cv_c_inline=no cannam@167: for ac_kw in inline __inline__ __inline; do cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #ifndef __cplusplus cannam@167: typedef int foo_t; cannam@167: static $ac_kw foo_t static_foo () {return 0; } cannam@167: $ac_kw foo_t foo () {return 0; } cannam@167: #endif cannam@167: cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ac_cv_c_inline=$ac_kw cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: test "$ac_cv_c_inline" != no && break cannam@167: done cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 cannam@167: $as_echo "$ac_cv_c_inline" >&6; } cannam@167: cannam@167: case $ac_cv_c_inline in cannam@167: inline | yes) ;; cannam@167: *) cannam@167: case $ac_cv_c_inline in cannam@167: no) ac_val=;; cannam@167: *) ac_val=$ac_cv_c_inline;; cannam@167: esac cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #ifndef __cplusplus cannam@167: #define inline $ac_val cannam@167: #endif cannam@167: _ACEOF cannam@167: ;; cannam@167: esac cannam@167: cannam@167: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" cannam@167: if test "x$ac_cv_type_size_t" = xyes; then : cannam@167: cannam@167: else cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define size_t unsigned int cannam@167: _ACEOF cannam@167: cannam@167: fi cannam@167: cannam@167: ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" cannam@167: case $ac_cv_c_uint32_t in #( cannam@167: no|yes) ;; #( cannam@167: *) cannam@167: cannam@167: $as_echo "#define _UINT32_T 1" >>confdefs.h cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define uint32_t $ac_cv_c_uint32_t cannam@167: _ACEOF cannam@167: ;; cannam@167: esac cannam@167: cannam@167: ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" cannam@167: case $ac_cv_c_uint64_t in #( cannam@167: no|yes) ;; #( cannam@167: *) cannam@167: cannam@167: $as_echo "#define _UINT64_T 1" >>confdefs.h cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define uint64_t $ac_cv_c_uint64_t cannam@167: _ACEOF cannam@167: ;; cannam@167: esac cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 cannam@167: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } cannam@167: if ${ac_cv_header_time+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: #include cannam@167: #include cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: if ((struct tm *) 0) cannam@167: return 0; cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ac_cv_header_time=yes cannam@167: else cannam@167: ac_cv_header_time=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 cannam@167: $as_echo "$ac_cv_header_time" >&6; } cannam@167: if test $ac_cv_header_time = yes; then cannam@167: cannam@167: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" cannam@167: if test "x$ac_cv_type_long_double" = xyes; then : cannam@167: cannam@167: $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h cannam@167: cannam@167: else cannam@167: cannam@167: if test $PRECISION = l; then cannam@167: as_fn_error $? "long double is not a supported type with your compiler." "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: ac_fn_c_check_type "$LINENO" "hrtime_t" "ac_cv_type_hrtime_t" " cannam@167: #if HAVE_SYS_TIME_H cannam@167: #include cannam@167: #endif cannam@167: cannam@167: " cannam@167: if test "x$ac_cv_type_hrtime_t" = xyes; then : cannam@167: cannam@167: $as_echo "#define HAVE_HRTIME_T 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: cannam@167: # The cast to long int works around a bug in the HP C Compiler cannam@167: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@167: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@167: # This bug is HP SR number 8606223364. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 cannam@167: $as_echo_n "checking size of int... " >&6; } cannam@167: if ${ac_cv_sizeof_int+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : cannam@167: cannam@167: else cannam@167: if test "$ac_cv_type_int" = yes; then cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error 77 "cannot compute sizeof (int) cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: else cannam@167: ac_cv_sizeof_int=0 cannam@167: fi cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 cannam@167: $as_echo "$ac_cv_sizeof_int" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define SIZEOF_INT $ac_cv_sizeof_int cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: # The cast to long int works around a bug in the HP C Compiler cannam@167: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@167: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@167: # This bug is HP SR number 8606223364. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 cannam@167: $as_echo_n "checking size of unsigned int... " >&6; } cannam@167: if ${ac_cv_sizeof_unsigned_int+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : cannam@167: cannam@167: else cannam@167: if test "$ac_cv_type_unsigned_int" = yes; then cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error 77 "cannot compute sizeof (unsigned int) cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: else cannam@167: ac_cv_sizeof_unsigned_int=0 cannam@167: fi cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 cannam@167: $as_echo "$ac_cv_sizeof_unsigned_int" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: # The cast to long int works around a bug in the HP C Compiler cannam@167: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@167: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@167: # This bug is HP SR number 8606223364. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 cannam@167: $as_echo_n "checking size of long... " >&6; } cannam@167: if ${ac_cv_sizeof_long+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : cannam@167: cannam@167: else cannam@167: if test "$ac_cv_type_long" = yes; then cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error 77 "cannot compute sizeof (long) cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: else cannam@167: ac_cv_sizeof_long=0 cannam@167: fi cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 cannam@167: $as_echo "$ac_cv_sizeof_long" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define SIZEOF_LONG $ac_cv_sizeof_long cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: # The cast to long int works around a bug in the HP C Compiler cannam@167: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@167: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@167: # This bug is HP SR number 8606223364. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 cannam@167: $as_echo_n "checking size of unsigned long... " >&6; } cannam@167: if ${ac_cv_sizeof_unsigned_long+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : cannam@167: cannam@167: else cannam@167: if test "$ac_cv_type_unsigned_long" = yes; then cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error 77 "cannot compute sizeof (unsigned long) cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: else cannam@167: ac_cv_sizeof_unsigned_long=0 cannam@167: fi cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 cannam@167: $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: # The cast to long int works around a bug in the HP C Compiler cannam@167: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@167: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@167: # This bug is HP SR number 8606223364. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 cannam@167: $as_echo_n "checking size of long long... " >&6; } cannam@167: if ${ac_cv_sizeof_long_long+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : cannam@167: cannam@167: else cannam@167: if test "$ac_cv_type_long_long" = yes; then cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error 77 "cannot compute sizeof (long long) cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: else cannam@167: ac_cv_sizeof_long_long=0 cannam@167: fi cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 cannam@167: $as_echo "$ac_cv_sizeof_long_long" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: # The cast to long int works around a bug in the HP C Compiler cannam@167: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@167: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@167: # This bug is HP SR number 8606223364. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 cannam@167: $as_echo_n "checking size of unsigned long long... " >&6; } cannam@167: if ${ac_cv_sizeof_unsigned_long_long+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : cannam@167: cannam@167: else cannam@167: if test "$ac_cv_type_unsigned_long_long" = yes; then cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error 77 "cannot compute sizeof (unsigned long long) cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: else cannam@167: ac_cv_sizeof_unsigned_long_long=0 cannam@167: fi cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 cannam@167: $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: # The cast to long int works around a bug in the HP C Compiler cannam@167: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@167: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@167: # This bug is HP SR number 8606223364. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 cannam@167: $as_echo_n "checking size of size_t... " >&6; } cannam@167: if ${ac_cv_sizeof_size_t+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : cannam@167: cannam@167: else cannam@167: if test "$ac_cv_type_size_t" = yes; then cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error 77 "cannot compute sizeof (size_t) cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: else cannam@167: ac_cv_sizeof_size_t=0 cannam@167: fi cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 cannam@167: $as_echo "$ac_cv_sizeof_size_t" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: # The cast to long int works around a bug in the HP C Compiler cannam@167: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@167: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@167: # This bug is HP SR number 8606223364. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 cannam@167: $as_echo_n "checking size of ptrdiff_t... " >&6; } cannam@167: if ${ac_cv_sizeof_ptrdiff_t+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then : cannam@167: cannam@167: else cannam@167: if test "$ac_cv_type_ptrdiff_t" = yes; then cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error 77 "cannot compute sizeof (ptrdiff_t) cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: else cannam@167: ac_cv_sizeof_ptrdiff_t=0 cannam@167: fi cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5 cannam@167: $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: cannam@167: ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" cannam@167: if test "x$ac_cv_type_ptrdiff_t" = xyes; then : cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define HAVE_PTRDIFF_T 1 cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: fi cannam@167: cannam@167: ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default cannam@167: #ifdef HAVE_STDINT_H cannam@167: # include cannam@167: #endif cannam@167: " cannam@167: if test "x$ac_cv_type_uintptr_t" = xyes; then : cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define HAVE_UINTPTR_T 1 cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: else cannam@167: # The cast to long int works around a bug in the HP C Compiler cannam@167: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@167: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@167: # This bug is HP SR number 8606223364. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 cannam@167: $as_echo_n "checking size of void *... " >&6; } cannam@167: if ${ac_cv_sizeof_void_p+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : cannam@167: cannam@167: else cannam@167: if test "$ac_cv_type_void_p" = yes; then cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error 77 "cannot compute sizeof (void *) cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: else cannam@167: ac_cv_sizeof_void_p=0 cannam@167: fi cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 cannam@167: $as_echo "$ac_cv_sizeof_void_p" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: fi cannam@167: cannam@167: cannam@167: # The cast to long int works around a bug in the HP C Compiler cannam@167: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@167: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@167: # This bug is HP SR number 8606223364. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 cannam@167: $as_echo_n "checking size of float... " >&6; } cannam@167: if ${ac_cv_sizeof_float+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : cannam@167: cannam@167: else cannam@167: if test "$ac_cv_type_float" = yes; then cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error 77 "cannot compute sizeof (float) cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: else cannam@167: ac_cv_sizeof_float=0 cannam@167: fi cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 cannam@167: $as_echo "$ac_cv_sizeof_float" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define SIZEOF_FLOAT $ac_cv_sizeof_float cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: # The cast to long int works around a bug in the HP C Compiler cannam@167: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@167: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@167: # This bug is HP SR number 8606223364. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 cannam@167: $as_echo_n "checking size of double... " >&6; } cannam@167: if ${ac_cv_sizeof_double+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : cannam@167: cannam@167: else cannam@167: if test "$ac_cv_type_double" = yes; then cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error 77 "cannot compute sizeof (double) cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: else cannam@167: ac_cv_sizeof_double=0 cannam@167: fi cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 cannam@167: $as_echo "$ac_cv_sizeof_double" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define SIZEOF_DOUBLE $ac_cv_sizeof_double cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: cannam@167: # The cast to long int works around a bug in the HP C Compiler cannam@167: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects cannam@167: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. cannam@167: # This bug is HP SR number 8606223364. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fftw_r2r_kind" >&5 cannam@167: $as_echo_n "checking size of fftw_r2r_kind... " >&6; } cannam@167: if ${ac_cv_sizeof_fftw_r2r_kind+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fftw_r2r_kind))" "ac_cv_sizeof_fftw_r2r_kind" "typedef enum { cannam@167: FFTW_R2HC=0, FFTW_HC2R=1, FFTW_DHT=2, cannam@167: FFTW_REDFT00=3, FFTW_REDFT01=4, FFTW_REDFT10=5, FFTW_REDFT11=6, cannam@167: FFTW_RODFT00=7, FFTW_RODFT01=8, FFTW_RODFT10=9, FFTW_RODFT11=10 cannam@167: } fftw_r2r_kind; cannam@167: "; then : cannam@167: cannam@167: else cannam@167: if test "$ac_cv_type_fftw_r2r_kind" = yes; then cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error 77 "cannot compute sizeof (fftw_r2r_kind) cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: else cannam@167: ac_cv_sizeof_fftw_r2r_kind=0 cannam@167: fi cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fftw_r2r_kind" >&5 cannam@167: $as_echo "$ac_cv_sizeof_fftw_r2r_kind" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define SIZEOF_FFTW_R2R_KIND $ac_cv_sizeof_fftw_r2r_kind cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: if test 0 = $ac_cv_sizeof_fftw_r2r_kind; then as_fn_error $? "sizeof(fftw_r2r_kind) test failed" "$LINENO" 5; fi cannam@167: C_FFTW_R2R_KIND=C_INT`expr $ac_cv_sizeof_fftw_r2r_kind \* 8`_T cannam@167: cannam@167: cannam@167: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works cannam@167: # for constant arguments. Useless! cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 cannam@167: $as_echo_n "checking for working alloca.h... " >&6; } cannam@167: if ${ac_cv_working_alloca_h+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: int cannam@167: main () cannam@167: { cannam@167: char *p = (char *) alloca (2 * sizeof (int)); cannam@167: if (p) return 0; cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: ac_cv_working_alloca_h=yes cannam@167: else cannam@167: ac_cv_working_alloca_h=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 cannam@167: $as_echo "$ac_cv_working_alloca_h" >&6; } cannam@167: if test $ac_cv_working_alloca_h = yes; then cannam@167: cannam@167: $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 cannam@167: $as_echo_n "checking for alloca... " >&6; } cannam@167: if ${ac_cv_func_alloca_works+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #ifdef __GNUC__ cannam@167: # define alloca __builtin_alloca cannam@167: #else cannam@167: # ifdef _MSC_VER cannam@167: # include cannam@167: # define alloca _alloca cannam@167: # else cannam@167: # ifdef HAVE_ALLOCA_H cannam@167: # include cannam@167: # else cannam@167: # ifdef _AIX cannam@167: #pragma alloca cannam@167: # else cannam@167: # ifndef alloca /* predefined by HP cc +Olibcalls */ cannam@167: void *alloca (size_t); cannam@167: # endif cannam@167: # endif cannam@167: # endif cannam@167: # endif cannam@167: #endif cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: char *p = (char *) alloca (1); cannam@167: if (p) return 0; cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: ac_cv_func_alloca_works=yes cannam@167: else cannam@167: ac_cv_func_alloca_works=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 cannam@167: $as_echo "$ac_cv_func_alloca_works" >&6; } cannam@167: cannam@167: if test $ac_cv_func_alloca_works = yes; then cannam@167: cannam@167: $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h cannam@167: cannam@167: else cannam@167: # The SVR3 libPW and SVR4 libucb both contain incompatible functions cannam@167: # that cause trouble. Some versions do not even contain alloca or cannam@167: # contain a buggy version. If you still want to use their alloca, cannam@167: # use ar to extract alloca.o from them instead of compiling alloca.c. cannam@167: cannam@167: ALLOCA=\${LIBOBJDIR}alloca.$ac_objext cannam@167: cannam@167: $as_echo "#define C_ALLOCA 1" >>confdefs.h cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 cannam@167: $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } cannam@167: if ${ac_cv_os_cray+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #if defined CRAY && ! defined CRAY2 cannam@167: webecray cannam@167: #else cannam@167: wenotbecray cannam@167: #endif cannam@167: cannam@167: _ACEOF cannam@167: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@167: $EGREP "webecray" >/dev/null 2>&1; then : cannam@167: ac_cv_os_cray=yes cannam@167: else cannam@167: ac_cv_os_cray=no cannam@167: fi cannam@167: rm -f conftest* cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 cannam@167: $as_echo "$ac_cv_os_cray" >&6; } cannam@167: if test $ac_cv_os_cray = yes; then cannam@167: for ac_func in _getb67 GETB67 getb67; do cannam@167: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` cannam@167: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" cannam@167: if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define CRAY_STACKSEG_END $ac_func cannam@167: _ACEOF cannam@167: cannam@167: break cannam@167: fi cannam@167: cannam@167: done cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 cannam@167: $as_echo_n "checking stack direction for C alloca... " >&6; } cannam@167: if ${ac_cv_c_stack_direction+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test "$cross_compiling" = yes; then : cannam@167: ac_cv_c_stack_direction=0 cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: $ac_includes_default cannam@167: int cannam@167: find_stack_direction (int *addr, int depth) cannam@167: { cannam@167: int dir, dummy = 0; cannam@167: if (! addr) cannam@167: addr = &dummy; cannam@167: *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; cannam@167: dir = depth ? find_stack_direction (addr, depth - 1) : 0; cannam@167: return dir + dummy; cannam@167: } cannam@167: cannam@167: int cannam@167: main (int argc, char **argv) cannam@167: { cannam@167: return find_stack_direction (0, argc + !argv + 20) < 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_run "$LINENO"; then : cannam@167: ac_cv_c_stack_direction=1 cannam@167: else cannam@167: ac_cv_c_stack_direction=-1 cannam@167: fi cannam@167: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ cannam@167: conftest.$ac_objext conftest.beam conftest.$ac_ext cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 cannam@167: $as_echo "$ac_cv_c_stack_direction" >&6; } cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define STACK_DIRECTION $ac_cv_c_stack_direction cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 cannam@167: $as_echo_n "checking for working strtod... " >&6; } cannam@167: if ${ac_cv_func_strtod+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test "$cross_compiling" = yes; then : cannam@167: ac_cv_func_strtod=no cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: $ac_includes_default cannam@167: #ifndef strtod cannam@167: double strtod (); cannam@167: #endif cannam@167: int cannam@167: main() cannam@167: { cannam@167: { cannam@167: /* Some versions of Linux strtod mis-parse strings with leading '+'. */ cannam@167: char *string = " +69"; cannam@167: char *term; cannam@167: double value; cannam@167: value = strtod (string, &term); cannam@167: if (value != 69 || term != (string + 4)) cannam@167: return 1; cannam@167: } cannam@167: cannam@167: { cannam@167: /* Under Solaris 2.4, strtod returns the wrong value for the cannam@167: terminating character under some conditions. */ cannam@167: char *string = "NaN"; cannam@167: char *term; cannam@167: strtod (string, &term); cannam@167: if (term != string && *(term - 1) == 0) cannam@167: return 1; cannam@167: } cannam@167: return 0; cannam@167: } cannam@167: cannam@167: _ACEOF cannam@167: if ac_fn_c_try_run "$LINENO"; then : cannam@167: ac_cv_func_strtod=yes cannam@167: else cannam@167: ac_cv_func_strtod=no cannam@167: fi cannam@167: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ cannam@167: conftest.$ac_objext conftest.beam conftest.$ac_ext cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 cannam@167: $as_echo "$ac_cv_func_strtod" >&6; } cannam@167: if test $ac_cv_func_strtod = no; then cannam@167: case " $LIBOBJS " in cannam@167: *" strtod.$ac_objext "* ) ;; cannam@167: *) LIBOBJS="$LIBOBJS strtod.$ac_objext" cannam@167: ;; cannam@167: esac cannam@167: cannam@167: ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" cannam@167: if test "x$ac_cv_func_pow" = xyes; then : cannam@167: cannam@167: fi cannam@167: cannam@167: if test $ac_cv_func_pow = no; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 cannam@167: $as_echo_n "checking for pow in -lm... " >&6; } cannam@167: if ${ac_cv_lib_m_pow+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_check_lib_save_LIBS=$LIBS cannam@167: LIBS="-lm $LIBS" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: /* Override any GCC internal prototype to avoid an error. cannam@167: Use char because int might match the return type of a GCC cannam@167: builtin and then its argument prototype would still apply. */ cannam@167: #ifdef __cplusplus cannam@167: extern "C" cannam@167: #endif cannam@167: char pow (); cannam@167: int cannam@167: main () cannam@167: { cannam@167: return pow (); cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: ac_cv_lib_m_pow=yes cannam@167: else cannam@167: ac_cv_lib_m_pow=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: LIBS=$ac_check_lib_save_LIBS cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 cannam@167: $as_echo "$ac_cv_lib_m_pow" >&6; } cannam@167: if test "x$ac_cv_lib_m_pow" = xyes; then : cannam@167: POW_LIB=-lm cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 cannam@167: $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: for ac_func in vprintf cannam@167: do : cannam@167: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" cannam@167: if test "x$ac_cv_func_vprintf" = xyes; then : cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define HAVE_VPRINTF 1 cannam@167: _ACEOF cannam@167: cannam@167: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" cannam@167: if test "x$ac_cv_func__doprnt" = xyes; then : cannam@167: cannam@167: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: fi cannam@167: done cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 cannam@167: $as_echo_n "checking for sin in -lm... " >&6; } cannam@167: if ${ac_cv_lib_m_sin+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_check_lib_save_LIBS=$LIBS cannam@167: LIBS="-lm $LIBS" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: /* Override any GCC internal prototype to avoid an error. cannam@167: Use char because int might match the return type of a GCC cannam@167: builtin and then its argument prototype would still apply. */ cannam@167: #ifdef __cplusplus cannam@167: extern "C" cannam@167: #endif cannam@167: char sin (); cannam@167: int cannam@167: main () cannam@167: { cannam@167: return sin (); cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: ac_cv_lib_m_sin=yes cannam@167: else cannam@167: ac_cv_lib_m_sin=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: LIBS=$ac_check_lib_save_LIBS cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 cannam@167: $as_echo "$ac_cv_lib_m_sin" >&6; } cannam@167: if test "x$ac_cv_lib_m_sin" = xyes; then : cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define HAVE_LIBM 1 cannam@167: _ACEOF cannam@167: cannam@167: LIBS="-lm $LIBS" cannam@167: cannam@167: fi cannam@167: cannam@167: cannam@167: if test $PRECISION = q; then cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 4.6.0 or later" >&5 cannam@167: $as_echo_n "checking whether we are using gcc 4.6.0 or later... " >&6; } cannam@167: if ${ax_cv_gcc_4_6_0+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_cv_gcc_4_6_0=no cannam@167: if test "$GCC" = "yes"; then cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: #ifdef __GNUC__ cannam@167: # if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ > 6) \ cannam@167: || (__GNUC__ == 4 && __GNUC_MINOR__ == 6 && __GNUC_PATCHLEVEL__ >= 0) cannam@167: yes; cannam@167: # endif cannam@167: #endif cannam@167: cannam@167: _ACEOF cannam@167: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@167: $EGREP "yes" >/dev/null 2>&1; then : cannam@167: ax_cv_gcc_4_6_0=yes cannam@167: fi cannam@167: rm -f conftest* cannam@167: cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_4_6_0" >&5 cannam@167: $as_echo "$ax_cv_gcc_4_6_0" >&6; } cannam@167: if test "$ax_cv_gcc_4_6_0" = yes; then cannam@167: : cannam@167: else cannam@167: as_fn_error $? "gcc 4.6 or later required for quad precision support" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinq in -lquadmath" >&5 cannam@167: $as_echo_n "checking for sinq in -lquadmath... " >&6; } cannam@167: if ${ac_cv_lib_quadmath_sinq+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_check_lib_save_LIBS=$LIBS cannam@167: LIBS="-lquadmath $LIBS" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: /* Override any GCC internal prototype to avoid an error. cannam@167: Use char because int might match the return type of a GCC cannam@167: builtin and then its argument prototype would still apply. */ cannam@167: #ifdef __cplusplus cannam@167: extern "C" cannam@167: #endif cannam@167: char sinq (); cannam@167: int cannam@167: main () cannam@167: { cannam@167: return sinq (); cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: ac_cv_lib_quadmath_sinq=yes cannam@167: else cannam@167: ac_cv_lib_quadmath_sinq=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: LIBS=$ac_check_lib_save_LIBS cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quadmath_sinq" >&5 cannam@167: $as_echo "$ac_cv_lib_quadmath_sinq" >&6; } cannam@167: if test "x$ac_cv_lib_quadmath_sinq" = xyes; then : cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define HAVE_LIBQUADMATH 1 cannam@167: _ACEOF cannam@167: cannam@167: LIBS="-lquadmath $LIBS" cannam@167: cannam@167: else cannam@167: as_fn_error $? "quad precision requires libquadmath for quad-precision trigonometric routines" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: LIBQUADMATH=-lquadmath cannam@167: fi cannam@167: cannam@167: cannam@167: 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 cannam@167: do : cannam@167: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` cannam@167: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" cannam@167: if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 cannam@167: _ACEOF cannam@167: cannam@167: fi cannam@167: done cannam@167: cannam@167: ac_fn_c_check_decl "$LINENO" "sinl" "ac_cv_have_decl_sinl" "#include cannam@167: " cannam@167: if test "x$ac_cv_have_decl_sinl" = xyes; then : cannam@167: ac_have_decl=1 cannam@167: else cannam@167: ac_have_decl=0 cannam@167: fi cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define HAVE_DECL_SINL $ac_have_decl cannam@167: _ACEOF cannam@167: ac_fn_c_check_decl "$LINENO" "cosl" "ac_cv_have_decl_cosl" "#include cannam@167: " cannam@167: if test "x$ac_cv_have_decl_cosl" = xyes; then : cannam@167: ac_have_decl=1 cannam@167: else cannam@167: ac_have_decl=0 cannam@167: fi cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define HAVE_DECL_COSL $ac_have_decl cannam@167: _ACEOF cannam@167: ac_fn_c_check_decl "$LINENO" "sinq" "ac_cv_have_decl_sinq" "#include cannam@167: " cannam@167: if test "x$ac_cv_have_decl_sinq" = xyes; then : cannam@167: ac_have_decl=1 cannam@167: else cannam@167: ac_have_decl=0 cannam@167: fi cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define HAVE_DECL_SINQ $ac_have_decl cannam@167: _ACEOF cannam@167: ac_fn_c_check_decl "$LINENO" "cosq" "ac_cv_have_decl_cosq" "#include cannam@167: " cannam@167: if test "x$ac_cv_have_decl_cosq" = xyes; then : cannam@167: ac_have_decl=1 cannam@167: else cannam@167: ac_have_decl=0 cannam@167: fi cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define HAVE_DECL_COSQ $ac_have_decl cannam@167: _ACEOF cannam@167: cannam@167: ac_fn_c_check_decl "$LINENO" "memalign" "ac_cv_have_decl_memalign" " cannam@167: #ifdef HAVE_MALLOC_H cannam@167: #include cannam@167: #endif cannam@167: " cannam@167: if test "x$ac_cv_have_decl_memalign" = xyes; then : cannam@167: ac_have_decl=1 cannam@167: else cannam@167: ac_have_decl=0 cannam@167: fi cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define HAVE_DECL_MEMALIGN $ac_have_decl cannam@167: _ACEOF cannam@167: cannam@167: ac_fn_c_check_decl "$LINENO" "drand48" "ac_cv_have_decl_drand48" "$ac_includes_default" cannam@167: if test "x$ac_cv_have_decl_drand48" = xyes; then : cannam@167: ac_have_decl=1 cannam@167: else cannam@167: ac_have_decl=0 cannam@167: fi cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define HAVE_DECL_DRAND48 $ac_have_decl cannam@167: _ACEOF cannam@167: ac_fn_c_check_decl "$LINENO" "srand48" "ac_cv_have_decl_srand48" "$ac_includes_default" cannam@167: if test "x$ac_cv_have_decl_srand48" = xyes; then : cannam@167: ac_have_decl=1 cannam@167: else cannam@167: ac_have_decl=0 cannam@167: fi cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define HAVE_DECL_SRAND48 $ac_have_decl cannam@167: _ACEOF cannam@167: ac_fn_c_check_decl "$LINENO" "posix_memalign" "ac_cv_have_decl_posix_memalign" "$ac_includes_default" cannam@167: if test "x$ac_cv_have_decl_posix_memalign" = xyes; then : cannam@167: ac_have_decl=1 cannam@167: else cannam@167: ac_have_decl=0 cannam@167: fi cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define HAVE_DECL_POSIX_MEMALIGN $ac_have_decl cannam@167: _ACEOF cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _rtc intrinsic" >&5 cannam@167: $as_echo_n "checking for _rtc intrinsic... " >&6; } cannam@167: rtc_ok=yes cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #ifdef HAVE_INTRINSICS_H cannam@167: #include cannam@167: #endif cannam@167: int cannam@167: main () cannam@167: { cannam@167: _rtc() cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: cannam@167: $as_echo "#define HAVE__RTC 1" >>confdefs.h cannam@167: cannam@167: else cannam@167: rtc_ok=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rtc_ok" >&5 cannam@167: $as_echo "$rtc_ok" >&6; } cannam@167: cannam@167: if test "$PRECISION" = "l"; then cannam@167: for ac_func in cosl sinl tanl cannam@167: do : cannam@167: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` cannam@167: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" cannam@167: if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 cannam@167: _ACEOF cannam@167: cannam@167: else cannam@167: as_fn_error $? "long-double precision requires long-double trigonometric routines" "$LINENO" 5 cannam@167: fi cannam@167: done cannam@167: cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5 cannam@167: $as_echo_n "checking for isnan... " >&6; } cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: if (!isnan(3.14159)) isnan(2.7183); cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: ok=yes cannam@167: else cannam@167: ok=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: if test "$ok" = "yes"; then cannam@167: cannam@167: $as_echo "#define HAVE_ISNAN 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5 cannam@167: $as_echo "${ok}" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: ax_gcc_aligns_stack=no cannam@167: if test "$GCC" = "yes"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpreferred-stack-boundary=4" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -mpreferred-stack-boundary=4... " >&6; } cannam@167: if ${ax_cv_c_flags__mpreferred_stack_boundary_4+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-mpreferred-stack-boundary=4" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__mpreferred_stack_boundary_4=yes cannam@167: else cannam@167: ax_cv_c_flags__mpreferred_stack_boundary_4=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__mpreferred_stack_boundary_4 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the stack is at least 8-byte aligned by gcc" >&5 cannam@167: $as_echo_n "checking whether the stack is at least 8-byte aligned by gcc... " >&6; } cannam@167: save_CFLAGS="$CFLAGS" cannam@167: CFLAGS="-O" cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5 cannam@167: $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; } cannam@167: if ${ax_cv_c_flags__malign_double+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_save_FLAGS=$CFLAGS cannam@167: CFLAGS="-malign-double" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_compile "$LINENO"; then : cannam@167: ax_cv_c_flags__malign_double=yes cannam@167: else cannam@167: ax_cv_c_flags__malign_double=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: CFLAGS=$ax_save_FLAGS cannam@167: fi cannam@167: cannam@167: eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 cannam@167: $as_echo "$ax_check_compiler_flags" >&6; } cannam@167: if test "x$ax_check_compiler_flags" = xyes; then cannam@167: CFLAGS="$CFLAGS -malign-double" cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: if test "$cross_compiling" = yes; then : cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 3.0.0 or later" >&5 cannam@167: $as_echo_n "checking whether we are using gcc 3.0.0 or later... " >&6; } cannam@167: if ${ax_cv_gcc_3_0_0+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cannam@167: ax_cv_gcc_3_0_0=no cannam@167: if test "$GCC" = "yes"; then cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: #ifdef __GNUC__ cannam@167: # if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ > 0) \ cannam@167: || (__GNUC__ == 3 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ >= 0) cannam@167: yes; cannam@167: # endif cannam@167: #endif cannam@167: cannam@167: _ACEOF cannam@167: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | cannam@167: $EGREP "yes" >/dev/null 2>&1; then : cannam@167: ax_cv_gcc_3_0_0=yes cannam@167: fi cannam@167: rm -f conftest* cannam@167: cannam@167: fi cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_3_0_0" >&5 cannam@167: $as_echo "$ax_cv_gcc_3_0_0" >&6; } cannam@167: if test "$ax_cv_gcc_3_0_0" = yes; then cannam@167: ax_gcc_stack_align_bug=no cannam@167: else cannam@167: ax_gcc_stack_align_bug=yes cannam@167: fi cannam@167: cannam@167: else cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: # include cannam@167: struct yuck { int blechh; }; cannam@167: int one(void) { return 1; } cannam@167: struct yuck ick(void) { struct yuck y; y.blechh = 3; return y; } cannam@167: # define CHK_ALIGN(x) if ((((long) &(x)) & 0x7)) { fprintf(stderr, "bad alignment of " #x "\n"); exit(1); } cannam@167: void blah(int foo) { double foobar; CHK_ALIGN(foobar); } cannam@167: int main2(void) {double ok1; struct yuck y; double ok2; CHK_ALIGN(ok1); cannam@167: CHK_ALIGN(ok2); y = ick(); blah(one()); return 0;} cannam@167: int main(void) { if ((((long) (__builtin_alloca(0))) & 0x7)) __builtin_alloca(4); return main2(); } cannam@167: cannam@167: _ACEOF cannam@167: if ac_fn_c_try_run "$LINENO"; then : cannam@167: ax_gcc_aligns_stack=yes; ax_gcc_stack_align_bug=no cannam@167: else cannam@167: ax_gcc_stack_align_bug=yes cannam@167: fi cannam@167: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ cannam@167: conftest.$ac_objext conftest.beam conftest.$ac_ext cannam@167: fi cannam@167: cannam@167: CFLAGS="$save_CFLAGS" cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_gcc_aligns_stack" >&5 cannam@167: $as_echo "$ax_gcc_aligns_stack" >&6; } cannam@167: cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: fi cannam@167: if test "$ax_gcc_aligns_stack" = yes; then cannam@167: : cannam@167: else cannam@167: : cannam@167: fi cannam@167: cannam@167: cannam@167: if test "${enable_debug}" = "yes"; then cannam@167: CFLAGS="-g" cannam@167: fi cannam@167: cannam@167: if test "$enable_debug" = yes || test "$USE_MAINTAINER_MODE" = yes; then cannam@167: if test "$ac_test_CFLAGS" != "set"; then cannam@167: if test $ac_cv_c_compiler_gnu = yes; then cannam@167: 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 cannam@167: fi cannam@167: fi cannam@167: fi cannam@167: cannam@167: if test "$USE_MAINTAINER_MODE" = yes; then cannam@167: # Extract the first word of "indent", so it can be a program name with args. cannam@167: set dummy indent; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_path_INDENT+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: case $INDENT in cannam@167: [\\/]* | ?:[\\/]*) cannam@167: ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path. cannam@167: ;; cannam@167: *) cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="indent" cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: INDENT=$ac_cv_path_INDENT cannam@167: if test -n "$INDENT"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5 cannam@167: $as_echo "$INDENT" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: # if INDENT is set to 'indent' then we didn't find indent cannam@167: if test "$INDENT" != indent ; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $INDENT is GNU indent" >&5 cannam@167: $as_echo_n "checking if $INDENT is GNU indent... " >&6; } cannam@167: if $INDENT --version 2>/dev/null | head -n 1|grep "GNU indent" > /dev/null ; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@167: $as_echo "yes" >&6; } cannam@167: INDENT="$INDENT -kr -cs -i5 -l800 -fca -nfc1 -sc -sob -cli4 -TR -Tplanner -TV" cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $INDENT does not appear to be GNU indent." >&5 cannam@167: $as_echo "$as_me: WARNING: $INDENT does not appear to be GNU indent." >&2;} cannam@167: fi cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no indent program found: codelets will be ugly" >&5 cannam@167: $as_echo "$as_me: WARNING: no indent program found: codelets will be ugly" >&2;} cannam@167: INDENT=cat cannam@167: fi cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --enable-fortran was given. cannam@167: if test "${enable_fortran+set}" = set; then : cannam@167: enableval=$enable_fortran; enable_fortran=$enableval cannam@167: else cannam@167: enable_fortran=yes cannam@167: fi cannam@167: cannam@167: cannam@167: if test "$enable_fortran" = "yes"; then cannam@167: ac_ext=f cannam@167: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_f77_compiler_gnu cannam@167: if test -n "$ac_tool_prefix"; then cannam@167: 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 cannam@167: do cannam@167: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. cannam@167: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_F77+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$F77"; then cannam@167: ac_cv_prog_F77="$F77" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_F77="$ac_tool_prefix$ac_prog" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: F77=$ac_cv_prog_F77 cannam@167: if test -n "$F77"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 cannam@167: $as_echo "$F77" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: test -n "$F77" && break cannam@167: done cannam@167: fi cannam@167: if test -z "$F77"; then cannam@167: ac_ct_F77=$F77 cannam@167: 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 cannam@167: do cannam@167: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@167: set dummy $ac_prog; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_ac_ct_F77+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$ac_ct_F77"; then cannam@167: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_ac_ct_F77="$ac_prog" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: ac_ct_F77=$ac_cv_prog_ac_ct_F77 cannam@167: if test -n "$ac_ct_F77"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 cannam@167: $as_echo "$ac_ct_F77" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: test -n "$ac_ct_F77" && break cannam@167: done cannam@167: cannam@167: if test "x$ac_ct_F77" = x; then cannam@167: F77="" cannam@167: else cannam@167: case $cross_compiling:$ac_tool_warned in cannam@167: yes:) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 cannam@167: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} cannam@167: ac_tool_warned=yes ;; cannam@167: esac cannam@167: F77=$ac_ct_F77 cannam@167: fi cannam@167: fi cannam@167: cannam@167: cannam@167: # Provide some information about the compiler. cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 cannam@167: set X $ac_compile cannam@167: ac_compiler=$2 cannam@167: for ac_option in --version -v -V -qversion; do cannam@167: { { ac_try="$ac_compiler $ac_option >&5" cannam@167: case "(($ac_try" in cannam@167: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; cannam@167: *) ac_try_echo=$ac_try;; cannam@167: esac cannam@167: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" cannam@167: $as_echo "$ac_try_echo"; } >&5 cannam@167: (eval "$ac_compiler $ac_option >&5") 2>conftest.err cannam@167: ac_status=$? cannam@167: if test -s conftest.err; then cannam@167: sed '10a\ cannam@167: ... rest of stderr output deleted ... cannam@167: 10q' conftest.err >conftest.er1 cannam@167: cat conftest.er1 >&5 cannam@167: fi cannam@167: rm -f conftest.er1 conftest.err cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } cannam@167: done cannam@167: rm -f a.out cannam@167: cannam@167: # If we don't use `.F' as extension, the preprocessor is not run on the cannam@167: # input file. (Note that this only needs to work for GNU compilers.) cannam@167: ac_save_ext=$ac_ext cannam@167: ac_ext=F cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 cannam@167: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } cannam@167: if ${ac_cv_f77_compiler_gnu+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat > conftest.$ac_ext <<_ACEOF cannam@167: program main cannam@167: #ifndef __GNUC__ cannam@167: choke me cannam@167: #endif cannam@167: cannam@167: end cannam@167: _ACEOF cannam@167: if ac_fn_f77_try_compile "$LINENO"; then : cannam@167: ac_compiler_gnu=yes cannam@167: else cannam@167: ac_compiler_gnu=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: ac_cv_f77_compiler_gnu=$ac_compiler_gnu cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 cannam@167: $as_echo "$ac_cv_f77_compiler_gnu" >&6; } cannam@167: ac_ext=$ac_save_ext cannam@167: ac_test_FFLAGS=${FFLAGS+set} cannam@167: ac_save_FFLAGS=$FFLAGS cannam@167: FFLAGS= cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 cannam@167: $as_echo_n "checking whether $F77 accepts -g... " >&6; } cannam@167: if ${ac_cv_prog_f77_g+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: FFLAGS=-g cannam@167: cat > conftest.$ac_ext <<_ACEOF cannam@167: program main cannam@167: cannam@167: end cannam@167: _ACEOF cannam@167: if ac_fn_f77_try_compile "$LINENO"; then : cannam@167: ac_cv_prog_f77_g=yes cannam@167: else cannam@167: ac_cv_prog_f77_g=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 cannam@167: $as_echo "$ac_cv_prog_f77_g" >&6; } cannam@167: if test "$ac_test_FFLAGS" = set; then cannam@167: FFLAGS=$ac_save_FFLAGS cannam@167: elif test $ac_cv_prog_f77_g = yes; then cannam@167: if test "x$ac_cv_f77_compiler_gnu" = xyes; then cannam@167: FFLAGS="-g -O2" cannam@167: else cannam@167: FFLAGS="-g" cannam@167: fi cannam@167: else cannam@167: if test "x$ac_cv_f77_compiler_gnu" = xyes; then cannam@167: FFLAGS="-O2" cannam@167: else cannam@167: FFLAGS= cannam@167: fi cannam@167: fi cannam@167: cannam@167: if test $ac_compiler_gnu = yes; then cannam@167: G77=yes cannam@167: else cannam@167: G77= cannam@167: fi cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: ac_ext=f cannam@167: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_f77_compiler_gnu cannam@167: cannam@167: if test -z "$F77" || test no = "$F77"; then cannam@167: _lt_disable_F77=yes cannam@167: fi cannam@167: cannam@167: archive_cmds_need_lc_F77=no cannam@167: allow_undefined_flag_F77= cannam@167: always_export_symbols_F77=no cannam@167: archive_expsym_cmds_F77= cannam@167: export_dynamic_flag_spec_F77= cannam@167: hardcode_direct_F77=no cannam@167: hardcode_direct_absolute_F77=no cannam@167: hardcode_libdir_flag_spec_F77= cannam@167: hardcode_libdir_separator_F77= cannam@167: hardcode_minus_L_F77=no cannam@167: hardcode_automatic_F77=no cannam@167: inherit_rpath_F77=no cannam@167: module_cmds_F77= cannam@167: module_expsym_cmds_F77= cannam@167: link_all_deplibs_F77=unknown cannam@167: old_archive_cmds_F77=$old_archive_cmds cannam@167: reload_flag_F77=$reload_flag cannam@167: reload_cmds_F77=$reload_cmds cannam@167: no_undefined_flag_F77= cannam@167: whole_archive_flag_spec_F77= cannam@167: enable_shared_with_static_runtimes_F77=no cannam@167: cannam@167: # Source file extension for f77 test sources. cannam@167: ac_ext=f cannam@167: cannam@167: # Object file extension for compiled f77 test sources. cannam@167: objext=o cannam@167: objext_F77=$objext cannam@167: cannam@167: # No sense in running all these tests if we already determined that cannam@167: # the F77 compiler isn't working. Some variables (like enable_shared) cannam@167: # are currently assumed to apply to all compilers on this platform, cannam@167: # and will be corrupted by setting them based on a non-working compiler. cannam@167: if test yes != "$_lt_disable_F77"; then cannam@167: # Code to be used in simple compile tests cannam@167: lt_simple_compile_test_code="\ cannam@167: subroutine t cannam@167: return cannam@167: end cannam@167: " cannam@167: cannam@167: # Code to be used in simple link tests cannam@167: lt_simple_link_test_code="\ cannam@167: program t cannam@167: end cannam@167: " cannam@167: cannam@167: # ltmain only uses $CC for tagged configurations so make sure $CC is set. cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # If no C compiler was specified, use CC. cannam@167: LTCC=${LTCC-"$CC"} cannam@167: cannam@167: # If no C compiler flags were specified, use CFLAGS. cannam@167: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} cannam@167: cannam@167: # Allow CC to be a program name with arguments. cannam@167: compiler=$CC cannam@167: cannam@167: cannam@167: # save warnings/boilerplate of simple test code cannam@167: ac_outfile=conftest.$ac_objext cannam@167: echo "$lt_simple_compile_test_code" >conftest.$ac_ext cannam@167: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err cannam@167: _lt_compiler_boilerplate=`cat conftest.err` cannam@167: $RM conftest* cannam@167: cannam@167: ac_outfile=conftest.$ac_objext cannam@167: echo "$lt_simple_link_test_code" >conftest.$ac_ext cannam@167: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err cannam@167: _lt_linker_boilerplate=`cat conftest.err` cannam@167: $RM -r conftest* cannam@167: cannam@167: cannam@167: # Allow CC to be a program name with arguments. cannam@167: lt_save_CC=$CC cannam@167: lt_save_GCC=$GCC cannam@167: lt_save_CFLAGS=$CFLAGS cannam@167: CC=${F77-"f77"} cannam@167: CFLAGS=$FFLAGS cannam@167: compiler=$CC cannam@167: compiler_F77=$CC cannam@167: func_cc_basename $compiler cannam@167: cc_basename=$func_cc_basename_result cannam@167: cannam@167: GCC=$G77 cannam@167: if test -n "$compiler"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 cannam@167: $as_echo_n "checking if libtool supports shared libraries... " >&6; } cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 cannam@167: $as_echo "$can_build_shared" >&6; } cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 cannam@167: $as_echo_n "checking whether to build shared libraries... " >&6; } cannam@167: test no = "$can_build_shared" && enable_shared=no cannam@167: cannam@167: # On AIX, shared libraries and static libraries use the same namespace, and cannam@167: # are all built from PIC. cannam@167: case $host_os in cannam@167: aix3*) cannam@167: test yes = "$enable_shared" && enable_static=no cannam@167: if test -n "$RANLIB"; then cannam@167: archive_cmds="$archive_cmds~\$RANLIB \$lib" cannam@167: postinstall_cmds='$RANLIB $lib' cannam@167: fi cannam@167: ;; cannam@167: aix[4-9]*) cannam@167: if test ia64 != "$host_cpu"; then cannam@167: case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in cannam@167: yes,aix,yes) ;; # shared object as lib.so file only cannam@167: yes,svr4,*) ;; # shared object as lib.so archive member only cannam@167: yes,*) enable_static=no ;; # shared object in lib.a archive as well cannam@167: esac cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 cannam@167: $as_echo "$enable_shared" >&6; } cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 cannam@167: $as_echo_n "checking whether to build static libraries... " >&6; } cannam@167: # Make sure either enable_shared or enable_static is yes. cannam@167: test yes = "$enable_shared" || enable_static=yes cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 cannam@167: $as_echo "$enable_static" >&6; } cannam@167: cannam@167: GCC_F77=$G77 cannam@167: LD_F77=$LD cannam@167: cannam@167: ## CAVEAT EMPTOR: cannam@167: ## There is no encapsulation within the following macros, do not change cannam@167: ## the running order or otherwise move them around unless you know exactly cannam@167: ## what you are doing... cannam@167: lt_prog_compiler_wl_F77= cannam@167: lt_prog_compiler_pic_F77= cannam@167: lt_prog_compiler_static_F77= cannam@167: cannam@167: cannam@167: if test yes = "$GCC"; then cannam@167: lt_prog_compiler_wl_F77='-Wl,' cannam@167: lt_prog_compiler_static_F77='-static' cannam@167: cannam@167: case $host_os in cannam@167: aix*) cannam@167: # All AIX code is PIC. cannam@167: if test ia64 = "$host_cpu"; then cannam@167: # AIX 5 now supports IA64 processor cannam@167: lt_prog_compiler_static_F77='-Bstatic' cannam@167: fi cannam@167: lt_prog_compiler_pic_F77='-fPIC' cannam@167: ;; cannam@167: cannam@167: amigaos*) cannam@167: case $host_cpu in cannam@167: powerpc) cannam@167: # see comment about AmigaOS4 .so support cannam@167: lt_prog_compiler_pic_F77='-fPIC' cannam@167: ;; cannam@167: m68k) cannam@167: # FIXME: we need at least 68020 code to build shared libraries, but cannam@167: # adding the '-m68020' flag to GCC prevents building anything better, cannam@167: # like '-m68040'. cannam@167: lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) cannam@167: # PIC is the default for these OSes. cannam@167: ;; cannam@167: cannam@167: mingw* | cygwin* | pw32* | os2* | cegcc*) cannam@167: # This hack is so that the source file can tell whether it is being cannam@167: # built for inclusion in a dll (and should export symbols for example). cannam@167: # Although the cygwin gcc ignores -fPIC, still need this for old-style cannam@167: # (--disable-auto-import) libraries cannam@167: lt_prog_compiler_pic_F77='-DDLL_EXPORT' cannam@167: case $host_os in cannam@167: os2*) cannam@167: lt_prog_compiler_static_F77='$wl-static' cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: darwin* | rhapsody*) cannam@167: # PIC is the default on this platform cannam@167: # Common symbols not allowed in MH_DYLIB files cannam@167: lt_prog_compiler_pic_F77='-fno-common' cannam@167: ;; cannam@167: cannam@167: haiku*) cannam@167: # PIC is the default for Haiku. cannam@167: # The "-static" flag exists, but is broken. cannam@167: lt_prog_compiler_static_F77= cannam@167: ;; cannam@167: cannam@167: hpux*) cannam@167: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit cannam@167: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag cannam@167: # sets the default TLS model and affects inlining. cannam@167: case $host_cpu in cannam@167: hppa*64*) cannam@167: # +Z the default cannam@167: ;; cannam@167: *) cannam@167: lt_prog_compiler_pic_F77='-fPIC' cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: interix[3-9]*) cannam@167: # Interix 3.x gcc -fpic/-fPIC options generate broken code. cannam@167: # Instead, we relocate shared libraries at runtime. cannam@167: ;; cannam@167: cannam@167: msdosdjgpp*) cannam@167: # Just because we use GCC doesn't mean we suddenly get shared libraries cannam@167: # on systems that don't support them. cannam@167: lt_prog_compiler_can_build_shared_F77=no cannam@167: enable_shared=no cannam@167: ;; cannam@167: cannam@167: *nto* | *qnx*) cannam@167: # QNX uses GNU C++, but need to define -shared option too, otherwise cannam@167: # it will coredump. cannam@167: lt_prog_compiler_pic_F77='-fPIC -shared' cannam@167: ;; cannam@167: cannam@167: sysv4*MP*) cannam@167: if test -d /usr/nec; then cannam@167: lt_prog_compiler_pic_F77=-Kconform_pic cannam@167: fi cannam@167: ;; cannam@167: cannam@167: *) cannam@167: lt_prog_compiler_pic_F77='-fPIC' cannam@167: ;; cannam@167: esac cannam@167: cannam@167: case $cc_basename in cannam@167: nvcc*) # Cuda Compiler Driver 2.2 cannam@167: lt_prog_compiler_wl_F77='-Xlinker ' cannam@167: if test -n "$lt_prog_compiler_pic_F77"; then cannam@167: lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77" cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: else cannam@167: # PORTME Check for flag to pass linker flags through the system compiler. cannam@167: case $host_os in cannam@167: aix*) cannam@167: lt_prog_compiler_wl_F77='-Wl,' cannam@167: if test ia64 = "$host_cpu"; then cannam@167: # AIX 5 now supports IA64 processor cannam@167: lt_prog_compiler_static_F77='-Bstatic' cannam@167: else cannam@167: lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' cannam@167: fi cannam@167: ;; cannam@167: cannam@167: darwin* | rhapsody*) cannam@167: # PIC is the default on this platform cannam@167: # Common symbols not allowed in MH_DYLIB files cannam@167: lt_prog_compiler_pic_F77='-fno-common' cannam@167: case $cc_basename in cannam@167: nagfor*) cannam@167: # NAG Fortran compiler cannam@167: lt_prog_compiler_wl_F77='-Wl,-Wl,,' cannam@167: lt_prog_compiler_pic_F77='-PIC' cannam@167: lt_prog_compiler_static_F77='-Bstatic' cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: mingw* | cygwin* | pw32* | os2* | cegcc*) cannam@167: # This hack is so that the source file can tell whether it is being cannam@167: # built for inclusion in a dll (and should export symbols for example). cannam@167: lt_prog_compiler_pic_F77='-DDLL_EXPORT' cannam@167: case $host_os in cannam@167: os2*) cannam@167: lt_prog_compiler_static_F77='$wl-static' cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: hpux9* | hpux10* | hpux11*) cannam@167: lt_prog_compiler_wl_F77='-Wl,' cannam@167: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@167: # not for PA HP-UX. cannam@167: case $host_cpu in cannam@167: hppa*64*|ia64*) cannam@167: # +Z the default cannam@167: ;; cannam@167: *) cannam@167: lt_prog_compiler_pic_F77='+Z' cannam@167: ;; cannam@167: esac cannam@167: # Is there a better lt_prog_compiler_static that works with the bundled CC? cannam@167: lt_prog_compiler_static_F77='$wl-a ${wl}archive' cannam@167: ;; cannam@167: cannam@167: irix5* | irix6* | nonstopux*) cannam@167: lt_prog_compiler_wl_F77='-Wl,' cannam@167: # PIC (with -KPIC) is the default. cannam@167: lt_prog_compiler_static_F77='-non_shared' cannam@167: ;; cannam@167: cannam@167: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) cannam@167: case $cc_basename in cannam@167: # old Intel for x86_64, which still supported -KPIC. cannam@167: ecc*) cannam@167: lt_prog_compiler_wl_F77='-Wl,' cannam@167: lt_prog_compiler_pic_F77='-KPIC' cannam@167: lt_prog_compiler_static_F77='-static' cannam@167: ;; cannam@167: # icc used to be incompatible with GCC. cannam@167: # ICC 10 doesn't accept -KPIC any more. cannam@167: icc* | ifort*) cannam@167: lt_prog_compiler_wl_F77='-Wl,' cannam@167: lt_prog_compiler_pic_F77='-fPIC' cannam@167: lt_prog_compiler_static_F77='-static' cannam@167: ;; cannam@167: # Lahey Fortran 8.1. cannam@167: lf95*) cannam@167: lt_prog_compiler_wl_F77='-Wl,' cannam@167: lt_prog_compiler_pic_F77='--shared' cannam@167: lt_prog_compiler_static_F77='--static' cannam@167: ;; cannam@167: nagfor*) cannam@167: # NAG Fortran compiler cannam@167: lt_prog_compiler_wl_F77='-Wl,-Wl,,' cannam@167: lt_prog_compiler_pic_F77='-PIC' cannam@167: lt_prog_compiler_static_F77='-Bstatic' cannam@167: ;; cannam@167: tcc*) cannam@167: # Fabrice Bellard et al's Tiny C Compiler cannam@167: lt_prog_compiler_wl_F77='-Wl,' cannam@167: lt_prog_compiler_pic_F77='-fPIC' cannam@167: lt_prog_compiler_static_F77='-static' cannam@167: ;; cannam@167: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) cannam@167: # Portland Group compilers (*not* the Pentium gcc compiler, cannam@167: # which looks to be a dead project) cannam@167: lt_prog_compiler_wl_F77='-Wl,' cannam@167: lt_prog_compiler_pic_F77='-fpic' cannam@167: lt_prog_compiler_static_F77='-Bstatic' cannam@167: ;; cannam@167: ccc*) cannam@167: lt_prog_compiler_wl_F77='-Wl,' cannam@167: # All Alpha code is PIC. cannam@167: lt_prog_compiler_static_F77='-non_shared' cannam@167: ;; cannam@167: xl* | bgxl* | bgf* | mpixl*) cannam@167: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene cannam@167: lt_prog_compiler_wl_F77='-Wl,' cannam@167: lt_prog_compiler_pic_F77='-qpic' cannam@167: lt_prog_compiler_static_F77='-qstaticlink' cannam@167: ;; cannam@167: *) cannam@167: case `$CC -V 2>&1 | sed 5q` in cannam@167: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) cannam@167: # Sun Fortran 8.3 passes all unrecognized flags to the linker cannam@167: lt_prog_compiler_pic_F77='-KPIC' cannam@167: lt_prog_compiler_static_F77='-Bstatic' cannam@167: lt_prog_compiler_wl_F77='' cannam@167: ;; cannam@167: *Sun\ F* | *Sun*Fortran*) cannam@167: lt_prog_compiler_pic_F77='-KPIC' cannam@167: lt_prog_compiler_static_F77='-Bstatic' cannam@167: lt_prog_compiler_wl_F77='-Qoption ld ' cannam@167: ;; cannam@167: *Sun\ C*) cannam@167: # Sun C 5.9 cannam@167: lt_prog_compiler_pic_F77='-KPIC' cannam@167: lt_prog_compiler_static_F77='-Bstatic' cannam@167: lt_prog_compiler_wl_F77='-Wl,' cannam@167: ;; cannam@167: *Intel*\ [CF]*Compiler*) cannam@167: lt_prog_compiler_wl_F77='-Wl,' cannam@167: lt_prog_compiler_pic_F77='-fPIC' cannam@167: lt_prog_compiler_static_F77='-static' cannam@167: ;; cannam@167: *Portland\ Group*) cannam@167: lt_prog_compiler_wl_F77='-Wl,' cannam@167: lt_prog_compiler_pic_F77='-fpic' cannam@167: lt_prog_compiler_static_F77='-Bstatic' cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: newsos6) cannam@167: lt_prog_compiler_pic_F77='-KPIC' cannam@167: lt_prog_compiler_static_F77='-Bstatic' cannam@167: ;; cannam@167: cannam@167: *nto* | *qnx*) cannam@167: # QNX uses GNU C++, but need to define -shared option too, otherwise cannam@167: # it will coredump. cannam@167: lt_prog_compiler_pic_F77='-fPIC -shared' cannam@167: ;; cannam@167: cannam@167: osf3* | osf4* | osf5*) cannam@167: lt_prog_compiler_wl_F77='-Wl,' cannam@167: # All OSF/1 code is PIC. cannam@167: lt_prog_compiler_static_F77='-non_shared' cannam@167: ;; cannam@167: cannam@167: rdos*) cannam@167: lt_prog_compiler_static_F77='-non_shared' cannam@167: ;; cannam@167: cannam@167: solaris*) cannam@167: lt_prog_compiler_pic_F77='-KPIC' cannam@167: lt_prog_compiler_static_F77='-Bstatic' cannam@167: case $cc_basename in cannam@167: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) cannam@167: lt_prog_compiler_wl_F77='-Qoption ld ';; cannam@167: *) cannam@167: lt_prog_compiler_wl_F77='-Wl,';; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: sunos4*) cannam@167: lt_prog_compiler_wl_F77='-Qoption ld ' cannam@167: lt_prog_compiler_pic_F77='-PIC' cannam@167: lt_prog_compiler_static_F77='-Bstatic' cannam@167: ;; cannam@167: cannam@167: sysv4 | sysv4.2uw2* | sysv4.3*) cannam@167: lt_prog_compiler_wl_F77='-Wl,' cannam@167: lt_prog_compiler_pic_F77='-KPIC' cannam@167: lt_prog_compiler_static_F77='-Bstatic' cannam@167: ;; cannam@167: cannam@167: sysv4*MP*) cannam@167: if test -d /usr/nec; then cannam@167: lt_prog_compiler_pic_F77='-Kconform_pic' cannam@167: lt_prog_compiler_static_F77='-Bstatic' cannam@167: fi cannam@167: ;; cannam@167: cannam@167: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) cannam@167: lt_prog_compiler_wl_F77='-Wl,' cannam@167: lt_prog_compiler_pic_F77='-KPIC' cannam@167: lt_prog_compiler_static_F77='-Bstatic' cannam@167: ;; cannam@167: cannam@167: unicos*) cannam@167: lt_prog_compiler_wl_F77='-Wl,' cannam@167: lt_prog_compiler_can_build_shared_F77=no cannam@167: ;; cannam@167: cannam@167: uts4*) cannam@167: lt_prog_compiler_pic_F77='-pic' cannam@167: lt_prog_compiler_static_F77='-Bstatic' cannam@167: ;; cannam@167: cannam@167: *) cannam@167: lt_prog_compiler_can_build_shared_F77=no cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: cannam@167: case $host_os in cannam@167: # For platforms that do not support PIC, -DPIC is meaningless: cannam@167: *djgpp*) cannam@167: lt_prog_compiler_pic_F77= cannam@167: ;; cannam@167: *) cannam@167: lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" cannam@167: ;; cannam@167: esac cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 cannam@167: $as_echo_n "checking for $compiler option to produce PIC... " >&6; } cannam@167: if ${lt_cv_prog_compiler_pic_F77+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77 cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5 cannam@167: $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; } cannam@167: lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77 cannam@167: cannam@167: # cannam@167: # Check to make sure the PIC flag actually works. cannam@167: # cannam@167: if test -n "$lt_prog_compiler_pic_F77"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 cannam@167: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } cannam@167: if ${lt_cv_prog_compiler_pic_works_F77+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_prog_compiler_pic_works_F77=no cannam@167: ac_outfile=conftest.$ac_objext cannam@167: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@167: lt_compiler_flag="$lt_prog_compiler_pic_F77" ## exclude from sc_useless_quotes_in_assignment cannam@167: # Insert the option either (1) after the last *FLAGS variable, or cannam@167: # (2) before a word containing "conftest.", or (3) at the end. cannam@167: # Note that $ac_compile itself does not contain backslashes and begins cannam@167: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@167: # The option is referenced via a variable to avoid confusing sed. cannam@167: lt_compile=`echo "$ac_compile" | $SED \ cannam@167: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ cannam@167: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@167: -e 's:$: $lt_compiler_flag:'` cannam@167: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) cannam@167: (eval "$lt_compile" 2>conftest.err) cannam@167: ac_status=$? cannam@167: cat conftest.err >&5 cannam@167: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@167: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@167: # The compiler can only warn and ignore the option if not recognized cannam@167: # So say no if there are warnings other than the usual output. cannam@167: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp cannam@167: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 cannam@167: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then cannam@167: lt_cv_prog_compiler_pic_works_F77=yes cannam@167: fi cannam@167: fi cannam@167: $RM conftest* cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5 cannam@167: $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } cannam@167: cannam@167: if test yes = "$lt_cv_prog_compiler_pic_works_F77"; then cannam@167: case $lt_prog_compiler_pic_F77 in cannam@167: "" | " "*) ;; cannam@167: *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; cannam@167: esac cannam@167: else cannam@167: lt_prog_compiler_pic_F77= cannam@167: lt_prog_compiler_can_build_shared_F77=no cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # cannam@167: # Check to make sure the static flag actually works. cannam@167: # cannam@167: wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 cannam@167: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } cannam@167: if ${lt_cv_prog_compiler_static_works_F77+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_prog_compiler_static_works_F77=no cannam@167: save_LDFLAGS=$LDFLAGS cannam@167: LDFLAGS="$LDFLAGS $lt_tmp_static_flag" cannam@167: echo "$lt_simple_link_test_code" > conftest.$ac_ext cannam@167: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then cannam@167: # The linker can only warn and ignore the option if not recognized cannam@167: # So say no if there are warnings cannam@167: if test -s conftest.err; then cannam@167: # Append any errors to the config.log. cannam@167: cat conftest.err 1>&5 cannam@167: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp cannam@167: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 cannam@167: if diff conftest.exp conftest.er2 >/dev/null; then cannam@167: lt_cv_prog_compiler_static_works_F77=yes cannam@167: fi cannam@167: else cannam@167: lt_cv_prog_compiler_static_works_F77=yes cannam@167: fi cannam@167: fi cannam@167: $RM -r conftest* cannam@167: LDFLAGS=$save_LDFLAGS cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5 cannam@167: $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } cannam@167: cannam@167: if test yes = "$lt_cv_prog_compiler_static_works_F77"; then cannam@167: : cannam@167: else cannam@167: lt_prog_compiler_static_F77= cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 cannam@167: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } cannam@167: if ${lt_cv_prog_compiler_c_o_F77+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_prog_compiler_c_o_F77=no cannam@167: $RM -r conftest 2>/dev/null cannam@167: mkdir conftest cannam@167: cd conftest cannam@167: mkdir out cannam@167: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@167: cannam@167: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@167: # Insert the option either (1) after the last *FLAGS variable, or cannam@167: # (2) before a word containing "conftest.", or (3) at the end. cannam@167: # Note that $ac_compile itself does not contain backslashes and begins cannam@167: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@167: lt_compile=`echo "$ac_compile" | $SED \ cannam@167: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ cannam@167: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@167: -e 's:$: $lt_compiler_flag:'` cannam@167: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) cannam@167: (eval "$lt_compile" 2>out/conftest.err) cannam@167: ac_status=$? cannam@167: cat out/conftest.err >&5 cannam@167: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@167: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@167: then cannam@167: # The compiler can only warn and ignore the option if not recognized cannam@167: # So say no if there are warnings cannam@167: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp cannam@167: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 cannam@167: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then cannam@167: lt_cv_prog_compiler_c_o_F77=yes cannam@167: fi cannam@167: fi cannam@167: chmod u+w . 2>&5 cannam@167: $RM conftest* cannam@167: # SGI C++ compiler will create directory out/ii_files/ for cannam@167: # template instantiation cannam@167: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files cannam@167: $RM out/* && rmdir out cannam@167: cd .. cannam@167: $RM -r conftest cannam@167: $RM conftest* cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 cannam@167: $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 cannam@167: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } cannam@167: if ${lt_cv_prog_compiler_c_o_F77+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_prog_compiler_c_o_F77=no cannam@167: $RM -r conftest 2>/dev/null cannam@167: mkdir conftest cannam@167: cd conftest cannam@167: mkdir out cannam@167: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@167: cannam@167: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@167: # Insert the option either (1) after the last *FLAGS variable, or cannam@167: # (2) before a word containing "conftest.", or (3) at the end. cannam@167: # Note that $ac_compile itself does not contain backslashes and begins cannam@167: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@167: lt_compile=`echo "$ac_compile" | $SED \ cannam@167: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ cannam@167: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ cannam@167: -e 's:$: $lt_compiler_flag:'` cannam@167: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) cannam@167: (eval "$lt_compile" 2>out/conftest.err) cannam@167: ac_status=$? cannam@167: cat out/conftest.err >&5 cannam@167: echo "$as_me:$LINENO: \$? = $ac_status" >&5 cannam@167: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@167: then cannam@167: # The compiler can only warn and ignore the option if not recognized cannam@167: # So say no if there are warnings cannam@167: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp cannam@167: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 cannam@167: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then cannam@167: lt_cv_prog_compiler_c_o_F77=yes cannam@167: fi cannam@167: fi cannam@167: chmod u+w . 2>&5 cannam@167: $RM conftest* cannam@167: # SGI C++ compiler will create directory out/ii_files/ for cannam@167: # template instantiation cannam@167: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files cannam@167: $RM out/* && rmdir out cannam@167: cd .. cannam@167: $RM -r conftest cannam@167: $RM conftest* cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 cannam@167: $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: hard_links=nottested cannam@167: if test no = "$lt_cv_prog_compiler_c_o_F77" && test no != "$need_locks"; then cannam@167: # do not overwrite the value of need_locks provided by the user cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 cannam@167: $as_echo_n "checking if we can lock with hard links... " >&6; } cannam@167: hard_links=yes cannam@167: $RM conftest* cannam@167: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@167: touch conftest.a cannam@167: ln conftest.a conftest.b 2>&5 || hard_links=no cannam@167: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 cannam@167: $as_echo "$hard_links" >&6; } cannam@167: if test no = "$hard_links"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 cannam@167: $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} cannam@167: need_locks=warn cannam@167: fi cannam@167: else cannam@167: need_locks=no cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 cannam@167: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } cannam@167: cannam@167: runpath_var= cannam@167: allow_undefined_flag_F77= cannam@167: always_export_symbols_F77=no cannam@167: archive_cmds_F77= cannam@167: archive_expsym_cmds_F77= cannam@167: compiler_needs_object_F77=no cannam@167: enable_shared_with_static_runtimes_F77=no cannam@167: export_dynamic_flag_spec_F77= cannam@167: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@167: hardcode_automatic_F77=no cannam@167: hardcode_direct_F77=no cannam@167: hardcode_direct_absolute_F77=no cannam@167: hardcode_libdir_flag_spec_F77= cannam@167: hardcode_libdir_separator_F77= cannam@167: hardcode_minus_L_F77=no cannam@167: hardcode_shlibpath_var_F77=unsupported cannam@167: inherit_rpath_F77=no cannam@167: link_all_deplibs_F77=unknown cannam@167: module_cmds_F77= cannam@167: module_expsym_cmds_F77= cannam@167: old_archive_from_new_cmds_F77= cannam@167: old_archive_from_expsyms_cmds_F77= cannam@167: thread_safe_flag_spec_F77= cannam@167: whole_archive_flag_spec_F77= cannam@167: # include_expsyms should be a list of space-separated symbols to be *always* cannam@167: # included in the symbol list cannam@167: include_expsyms_F77= cannam@167: # exclude_expsyms can be an extended regexp of symbols to exclude cannam@167: # it will be wrapped by ' (' and ')$', so one must not match beginning or cannam@167: # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', cannam@167: # as well as any symbol that contains 'd'. cannam@167: exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' cannam@167: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out cannam@167: # platforms (ab)use it in PIC code, but their linkers get confused if cannam@167: # the symbol is explicitly referenced. Since portable code cannot cannam@167: # rely on this symbol name, it's probably fine to never include it in cannam@167: # preloaded symbol tables. cannam@167: # Exclude shared library initialization/finalization symbols. cannam@167: extract_expsyms_cmds= cannam@167: cannam@167: case $host_os in cannam@167: cygwin* | mingw* | pw32* | cegcc*) cannam@167: # FIXME: the MSVC++ port hasn't been tested in a loooong time cannam@167: # When not using gcc, we currently assume that we are using cannam@167: # Microsoft Visual C++. cannam@167: if test yes != "$GCC"; then cannam@167: with_gnu_ld=no cannam@167: fi cannam@167: ;; cannam@167: interix*) cannam@167: # we just hope/assume this is gcc and not c89 (= MSVC++) cannam@167: with_gnu_ld=yes cannam@167: ;; cannam@167: openbsd* | bitrig*) cannam@167: with_gnu_ld=no cannam@167: ;; cannam@167: linux* | k*bsd*-gnu | gnu*) cannam@167: link_all_deplibs_F77=no cannam@167: ;; cannam@167: esac cannam@167: cannam@167: ld_shlibs_F77=yes cannam@167: cannam@167: # On some targets, GNU ld is compatible enough with the native linker cannam@167: # that we're better off using the native interface for both. cannam@167: lt_use_gnu_ld_interface=no cannam@167: if test yes = "$with_gnu_ld"; then cannam@167: case $host_os in cannam@167: aix*) cannam@167: # The AIX port of GNU ld has always aspired to compatibility cannam@167: # with the native linker. However, as the warning in the GNU ld cannam@167: # block says, versions before 2.19.5* couldn't really create working cannam@167: # shared libraries, regardless of the interface used. cannam@167: case `$LD -v 2>&1` in cannam@167: *\ \(GNU\ Binutils\)\ 2.19.5*) ;; cannam@167: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; cannam@167: *\ \(GNU\ Binutils\)\ [3-9]*) ;; cannam@167: *) cannam@167: lt_use_gnu_ld_interface=yes cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: *) cannam@167: lt_use_gnu_ld_interface=yes cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: cannam@167: if test yes = "$lt_use_gnu_ld_interface"; then cannam@167: # If archive_cmds runs LD, not CC, wlarc should be empty cannam@167: wlarc='$wl' cannam@167: cannam@167: # Set some defaults for GNU ld with shared library support. These cannam@167: # are reset later if shared libraries are not supported. Putting them cannam@167: # here allows them to be overridden if necessary. cannam@167: runpath_var=LD_RUN_PATH cannam@167: hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' cannam@167: export_dynamic_flag_spec_F77='$wl--export-dynamic' cannam@167: # ancient GNU ld didn't support --whole-archive et. al. cannam@167: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then cannam@167: whole_archive_flag_spec_F77=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' cannam@167: else cannam@167: whole_archive_flag_spec_F77= cannam@167: fi cannam@167: supports_anon_versioning=no cannam@167: case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in cannam@167: *GNU\ gold*) supports_anon_versioning=yes ;; cannam@167: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 cannam@167: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... cannam@167: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... cannam@167: *\ 2.11.*) ;; # other 2.11 versions cannam@167: *) supports_anon_versioning=yes ;; cannam@167: esac cannam@167: cannam@167: # See if GNU ld supports shared libraries. cannam@167: case $host_os in cannam@167: aix[3-9]*) cannam@167: # On AIX/PPC, the GNU linker is very broken cannam@167: if test ia64 != "$host_cpu"; then cannam@167: ld_shlibs_F77=no cannam@167: cat <<_LT_EOF 1>&2 cannam@167: cannam@167: *** Warning: the GNU linker, at least up to release 2.19, is reported cannam@167: *** to be unable to reliably create shared libraries on AIX. cannam@167: *** Therefore, libtool is disabling shared libraries support. If you cannam@167: *** really care for shared libraries, you may want to install binutils cannam@167: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. cannam@167: *** You will then need to restart the configuration process. cannam@167: cannam@167: _LT_EOF cannam@167: fi cannam@167: ;; cannam@167: cannam@167: amigaos*) cannam@167: case $host_cpu in cannam@167: powerpc) cannam@167: # see comment about AmigaOS4 .so support cannam@167: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@167: archive_expsym_cmds_F77='' cannam@167: ;; cannam@167: m68k) cannam@167: 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)' cannam@167: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@167: hardcode_minus_L_F77=yes cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: beos*) cannam@167: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then cannam@167: allow_undefined_flag_F77=unsupported cannam@167: # Joseph Beckenbach says some releases of gcc cannam@167: # support --undefined. This deserves some investigation. FIXME cannam@167: archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@167: else cannam@167: ld_shlibs_F77=no cannam@167: fi cannam@167: ;; cannam@167: cannam@167: cygwin* | mingw* | pw32* | cegcc*) cannam@167: # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, cannam@167: # as there is no search path for DLLs. cannam@167: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@167: export_dynamic_flag_spec_F77='$wl--export-all-symbols' cannam@167: allow_undefined_flag_F77=unsupported cannam@167: always_export_symbols_F77=no cannam@167: enable_shared_with_static_runtimes_F77=yes cannam@167: 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' cannam@167: exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' cannam@167: cannam@167: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then cannam@167: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' cannam@167: # If the export-symbols file already is a .def file, use it as cannam@167: # is; otherwise, prepend EXPORTS... cannam@167: archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cannam@167: cp $export_symbols $output_objdir/$soname.def; cannam@167: else cannam@167: echo EXPORTS > $output_objdir/$soname.def; cannam@167: cat $export_symbols >> $output_objdir/$soname.def; cannam@167: fi~ cannam@167: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' cannam@167: else cannam@167: ld_shlibs_F77=no cannam@167: fi cannam@167: ;; cannam@167: cannam@167: haiku*) cannam@167: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@167: link_all_deplibs_F77=yes cannam@167: ;; cannam@167: cannam@167: os2*) cannam@167: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@167: hardcode_minus_L_F77=yes cannam@167: allow_undefined_flag_F77=unsupported cannam@167: shrext_cmds=.dll cannam@167: archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ cannam@167: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ cannam@167: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ cannam@167: $ECHO EXPORTS >> $output_objdir/$libname.def~ cannam@167: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ cannam@167: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ cannam@167: emximp -o $lib $output_objdir/$libname.def' cannam@167: archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ cannam@167: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ cannam@167: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ cannam@167: $ECHO EXPORTS >> $output_objdir/$libname.def~ cannam@167: prefix_cmds="$SED"~ cannam@167: if test EXPORTS = "`$SED 1q $export_symbols`"; then cannam@167: prefix_cmds="$prefix_cmds -e 1d"; cannam@167: fi~ cannam@167: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cannam@167: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ cannam@167: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ cannam@167: emximp -o $lib $output_objdir/$libname.def' cannam@167: old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' cannam@167: enable_shared_with_static_runtimes_F77=yes cannam@167: ;; cannam@167: cannam@167: interix[3-9]*) cannam@167: hardcode_direct_F77=no cannam@167: hardcode_shlibpath_var_F77=no cannam@167: hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' cannam@167: export_dynamic_flag_spec_F77='$wl-E' cannam@167: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. cannam@167: # Instead, shared libraries are loaded at an image base (0x10000000 by cannam@167: # default) and relocated if they conflict, which is a slow very memory cannam@167: # consuming and fragmenting process. To avoid this, we pick a random, cannam@167: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link cannam@167: # time. Moving up from 0x10000000 also allows more sbrk(2) space. cannam@167: 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' cannam@167: 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' cannam@167: ;; cannam@167: cannam@167: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) cannam@167: tmp_diet=no cannam@167: if test linux-dietlibc = "$host_os"; then cannam@167: case $cc_basename in cannam@167: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) cannam@167: esac cannam@167: fi cannam@167: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ cannam@167: && test no = "$tmp_diet" cannam@167: then cannam@167: tmp_addflag=' $pic_flag' cannam@167: tmp_sharedflag='-shared' cannam@167: case $cc_basename,$host_cpu in cannam@167: pgcc*) # Portland Group C compiler cannam@167: 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' cannam@167: tmp_addflag=' $pic_flag' cannam@167: ;; cannam@167: pgf77* | pgf90* | pgf95* | pgfortran*) cannam@167: # Portland Group f77 and f90 compilers cannam@167: 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' cannam@167: tmp_addflag=' $pic_flag -Mnomain' ;; cannam@167: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 cannam@167: tmp_addflag=' -i_dynamic' ;; cannam@167: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 cannam@167: tmp_addflag=' -i_dynamic -nofor_main' ;; cannam@167: ifc* | ifort*) # Intel Fortran compiler cannam@167: tmp_addflag=' -nofor_main' ;; cannam@167: lf95*) # Lahey Fortran 8.1 cannam@167: whole_archive_flag_spec_F77= cannam@167: tmp_sharedflag='--shared' ;; cannam@167: nagfor*) # NAGFOR 5.3 cannam@167: tmp_sharedflag='-Wl,-shared' ;; cannam@167: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) cannam@167: tmp_sharedflag='-qmkshrobj' cannam@167: tmp_addflag= ;; cannam@167: nvcc*) # Cuda Compiler Driver 2.2 cannam@167: 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' cannam@167: compiler_needs_object_F77=yes cannam@167: ;; cannam@167: esac cannam@167: case `$CC -V 2>&1 | sed 5q` in cannam@167: *Sun\ C*) # Sun C 5.9 cannam@167: 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' cannam@167: compiler_needs_object_F77=yes cannam@167: tmp_sharedflag='-G' ;; cannam@167: *Sun\ F*) # Sun Fortran 8.3 cannam@167: tmp_sharedflag='-G' ;; cannam@167: esac cannam@167: archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@167: cannam@167: if test yes = "$supports_anon_versioning"; then cannam@167: archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ cannam@167: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ cannam@167: echo "local: *; };" >> $output_objdir/$libname.ver~ cannam@167: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' cannam@167: fi cannam@167: cannam@167: case $cc_basename in cannam@167: tcc*) cannam@167: export_dynamic_flag_spec_F77='-rdynamic' cannam@167: ;; cannam@167: xlf* | bgf* | bgxlf* | mpixlf*) cannam@167: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself cannam@167: whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive' cannam@167: hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' cannam@167: archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' cannam@167: if test yes = "$supports_anon_versioning"; then cannam@167: archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ cannam@167: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ cannam@167: echo "local: *; };" >> $output_objdir/$libname.ver~ cannam@167: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: else cannam@167: ld_shlibs_F77=no cannam@167: fi cannam@167: ;; cannam@167: cannam@167: netbsd* | netbsdelf*-gnu) cannam@167: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then cannam@167: archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' cannam@167: wlarc= cannam@167: else cannam@167: archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@167: 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' cannam@167: fi cannam@167: ;; cannam@167: cannam@167: solaris*) cannam@167: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then cannam@167: ld_shlibs_F77=no cannam@167: cat <<_LT_EOF 1>&2 cannam@167: cannam@167: *** Warning: The releases 2.8.* of the GNU linker cannot reliably cannam@167: *** create shared libraries on Solaris systems. Therefore, libtool cannam@167: *** is disabling shared libraries support. We urge you to upgrade GNU cannam@167: *** binutils to release 2.9.1 or newer. Another option is to modify cannam@167: *** your PATH or compiler configuration so that the native linker is cannam@167: *** used, and then restart. cannam@167: cannam@167: _LT_EOF cannam@167: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then cannam@167: archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@167: 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' cannam@167: else cannam@167: ld_shlibs_F77=no cannam@167: fi cannam@167: ;; cannam@167: cannam@167: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) cannam@167: case `$LD -v 2>&1` in cannam@167: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) cannam@167: ld_shlibs_F77=no cannam@167: cat <<_LT_EOF 1>&2 cannam@167: cannam@167: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot cannam@167: *** reliably create shared libraries on SCO systems. Therefore, libtool cannam@167: *** is disabling shared libraries support. We urge you to upgrade GNU cannam@167: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify cannam@167: *** your PATH or compiler configuration so that the native linker is cannam@167: *** used, and then restart. cannam@167: cannam@167: _LT_EOF cannam@167: ;; cannam@167: *) cannam@167: # For security reasons, it is highly recommended that you always cannam@167: # use absolute paths for naming shared libraries, and exclude the cannam@167: # DT_RUNPATH tag from executables and libraries. But doing so cannam@167: # requires that you compile everything twice, which is a pain. cannam@167: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then cannam@167: hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' cannam@167: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@167: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' cannam@167: else cannam@167: ld_shlibs_F77=no cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: sunos4*) cannam@167: archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@167: wlarc= cannam@167: hardcode_direct_F77=yes cannam@167: hardcode_shlibpath_var_F77=no cannam@167: ;; cannam@167: cannam@167: *) cannam@167: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then cannam@167: archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@167: 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' cannam@167: else cannam@167: ld_shlibs_F77=no cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: cannam@167: if test no = "$ld_shlibs_F77"; then cannam@167: runpath_var= cannam@167: hardcode_libdir_flag_spec_F77= cannam@167: export_dynamic_flag_spec_F77= cannam@167: whole_archive_flag_spec_F77= cannam@167: fi cannam@167: else cannam@167: # PORTME fill in a description of your system's linker (not GNU ld) cannam@167: case $host_os in cannam@167: aix3*) cannam@167: allow_undefined_flag_F77=unsupported cannam@167: always_export_symbols_F77=yes cannam@167: 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' cannam@167: # Note: this linker hardcodes the directories in LIBPATH if there cannam@167: # are no directories specified by -L. cannam@167: hardcode_minus_L_F77=yes cannam@167: if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then cannam@167: # Neither direct hardcoding nor static linking is supported with a cannam@167: # broken collect2. cannam@167: hardcode_direct_F77=unsupported cannam@167: fi cannam@167: ;; cannam@167: cannam@167: aix[4-9]*) cannam@167: if test ia64 = "$host_cpu"; then cannam@167: # On IA64, the linker does run time linking by default, so we don't cannam@167: # have to do anything special. cannam@167: aix_use_runtimelinking=no cannam@167: exp_sym_flag='-Bexport' cannam@167: no_entry_flag= cannam@167: else cannam@167: # If we're using GNU nm, then we don't want the "-C" option. cannam@167: # -C means demangle to GNU nm, but means don't demangle to AIX nm. cannam@167: # Without the "-l" option, or with the "-B" option, AIX nm treats cannam@167: # weak defined symbols like other global defined symbols, whereas cannam@167: # GNU nm marks them as "W". cannam@167: # While the 'weak' keyword is ignored in the Export File, we need cannam@167: # it in the Import File for the 'aix-soname' feature, so we have cannam@167: # to replace the "-B" option with "-P" for AIX nm. cannam@167: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then cannam@167: 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' cannam@167: else cannam@167: 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' cannam@167: fi cannam@167: aix_use_runtimelinking=no cannam@167: cannam@167: # Test if we are trying to use run time linking or normal cannam@167: # AIX style linking. If -brtl is somewhere in LDFLAGS, we cannam@167: # have runtime linking enabled, and use it for executables. cannam@167: # For shared libraries, we enable/disable runtime linking cannam@167: # depending on the kind of the shared library created - cannam@167: # when "with_aix_soname,aix_use_runtimelinking" is: cannam@167: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables cannam@167: # "aix,yes" lib.so shared, rtl:yes, for executables cannam@167: # lib.a static archive cannam@167: # "both,no" lib.so.V(shr.o) shared, rtl:yes cannam@167: # lib.a(lib.so.V) shared, rtl:no, for executables cannam@167: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables cannam@167: # lib.a(lib.so.V) shared, rtl:no cannam@167: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables cannam@167: # lib.a static archive cannam@167: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) cannam@167: for ld_flag in $LDFLAGS; do cannam@167: if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then cannam@167: aix_use_runtimelinking=yes cannam@167: break cannam@167: fi cannam@167: done cannam@167: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then cannam@167: # With aix-soname=svr4, we create the lib.so.V shared archives only, cannam@167: # so we don't have lib.a shared libs to link our executables. cannam@167: # We have to force runtime linking in this case. cannam@167: aix_use_runtimelinking=yes cannam@167: LDFLAGS="$LDFLAGS -Wl,-brtl" cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: cannam@167: exp_sym_flag='-bexport' cannam@167: no_entry_flag='-bnoentry' cannam@167: fi cannam@167: cannam@167: # When large executables or shared objects are built, AIX ld can cannam@167: # have problems creating the table of contents. If linking a library cannam@167: # or program results in "error TOC overflow" add -mminimal-toc to cannam@167: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not cannam@167: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. cannam@167: cannam@167: archive_cmds_F77='' cannam@167: hardcode_direct_F77=yes cannam@167: hardcode_direct_absolute_F77=yes cannam@167: hardcode_libdir_separator_F77=':' cannam@167: link_all_deplibs_F77=yes cannam@167: file_list_spec_F77='$wl-f,' cannam@167: case $with_aix_soname,$aix_use_runtimelinking in cannam@167: aix,*) ;; # traditional, no import file cannam@167: svr4,* | *,yes) # use import file cannam@167: # The Import File defines what to hardcode. cannam@167: hardcode_direct_F77=no cannam@167: hardcode_direct_absolute_F77=no cannam@167: ;; cannam@167: esac cannam@167: cannam@167: if test yes = "$GCC"; then cannam@167: case $host_os in aix4.[012]|aix4.[012].*) cannam@167: # We only want to do this on AIX 4.2 and lower, the check cannam@167: # below for broken collect2 doesn't work under 4.3+ cannam@167: collect2name=`$CC -print-prog-name=collect2` cannam@167: if test -f "$collect2name" && cannam@167: strings "$collect2name" | $GREP resolve_lib_name >/dev/null cannam@167: then cannam@167: # We have reworked collect2 cannam@167: : cannam@167: else cannam@167: # We have old collect2 cannam@167: hardcode_direct_F77=unsupported cannam@167: # It fails to find uninstalled libraries when the uninstalled cannam@167: # path is not listed in the libpath. Setting hardcode_minus_L cannam@167: # to unsupported forces relinking cannam@167: hardcode_minus_L_F77=yes cannam@167: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@167: hardcode_libdir_separator_F77= cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: shared_flag='-shared' cannam@167: if test yes = "$aix_use_runtimelinking"; then cannam@167: shared_flag="$shared_flag "'$wl-G' cannam@167: fi cannam@167: # Need to ensure runtime linking is disabled for the traditional cannam@167: # shared library, or the linker may eventually find shared libraries cannam@167: # /with/ Import File - we do not want to mix them. cannam@167: shared_flag_aix='-shared' cannam@167: shared_flag_svr4='-shared $wl-G' cannam@167: else cannam@167: # not using gcc cannam@167: if test ia64 = "$host_cpu"; then cannam@167: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release cannam@167: # chokes on -Wl,-G. The following line is correct: cannam@167: shared_flag='-G' cannam@167: else cannam@167: if test yes = "$aix_use_runtimelinking"; then cannam@167: shared_flag='$wl-G' cannam@167: else cannam@167: shared_flag='$wl-bM:SRE' cannam@167: fi cannam@167: shared_flag_aix='$wl-bM:SRE' cannam@167: shared_flag_svr4='$wl-G' cannam@167: fi cannam@167: fi cannam@167: cannam@167: export_dynamic_flag_spec_F77='$wl-bexpall' cannam@167: # It seems that -bexpall does not export symbols beginning with cannam@167: # underscore (_), so it is better to generate a list of symbols to export. cannam@167: always_export_symbols_F77=yes cannam@167: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then cannam@167: # Warning - without using the other runtime loading flags (-brtl), cannam@167: # -berok will link without error, but may produce a broken library. cannam@167: allow_undefined_flag_F77='-berok' cannam@167: # Determine the default libpath from the value encoded in an cannam@167: # empty executable. cannam@167: if test set = "${lt_cv_aix_libpath+set}"; then cannam@167: aix_libpath=$lt_cv_aix_libpath cannam@167: else cannam@167: if ${lt_cv_aix_libpath__F77+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat > conftest.$ac_ext <<_ACEOF cannam@167: program main cannam@167: cannam@167: end cannam@167: _ACEOF cannam@167: if ac_fn_f77_try_link "$LINENO"; then : cannam@167: cannam@167: lt_aix_libpath_sed=' cannam@167: /Import File Strings/,/^$/ { cannam@167: /^0/ { cannam@167: s/^0 *\([^ ]*\) *$/\1/ cannam@167: p cannam@167: } cannam@167: }' cannam@167: lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@167: # Check for a 64-bit object if we didn't find anything. cannam@167: if test -z "$lt_cv_aix_libpath__F77"; then cannam@167: lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@167: fi cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: if test -z "$lt_cv_aix_libpath__F77"; then cannam@167: lt_cv_aix_libpath__F77=/usr/lib:/lib cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: aix_libpath=$lt_cv_aix_libpath__F77 cannam@167: fi cannam@167: cannam@167: hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath" cannam@167: 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 cannam@167: else cannam@167: if test ia64 = "$host_cpu"; then cannam@167: hardcode_libdir_flag_spec_F77='$wl-R $libdir:/usr/lib:/lib' cannam@167: allow_undefined_flag_F77="-z nodefs" cannam@167: 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" cannam@167: else cannam@167: # Determine the default libpath from the value encoded in an cannam@167: # empty executable. cannam@167: if test set = "${lt_cv_aix_libpath+set}"; then cannam@167: aix_libpath=$lt_cv_aix_libpath cannam@167: else cannam@167: if ${lt_cv_aix_libpath__F77+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat > conftest.$ac_ext <<_ACEOF cannam@167: program main cannam@167: cannam@167: end cannam@167: _ACEOF cannam@167: if ac_fn_f77_try_link "$LINENO"; then : cannam@167: cannam@167: lt_aix_libpath_sed=' cannam@167: /Import File Strings/,/^$/ { cannam@167: /^0/ { cannam@167: s/^0 *\([^ ]*\) *$/\1/ cannam@167: p cannam@167: } cannam@167: }' cannam@167: lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@167: # Check for a 64-bit object if we didn't find anything. cannam@167: if test -z "$lt_cv_aix_libpath__F77"; then cannam@167: lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` cannam@167: fi cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: if test -z "$lt_cv_aix_libpath__F77"; then cannam@167: lt_cv_aix_libpath__F77=/usr/lib:/lib cannam@167: fi cannam@167: cannam@167: fi cannam@167: cannam@167: aix_libpath=$lt_cv_aix_libpath__F77 cannam@167: fi cannam@167: cannam@167: hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath" cannam@167: # Warning - without using the other run time loading flags, cannam@167: # -berok will link without error, but may produce a broken library. cannam@167: no_undefined_flag_F77=' $wl-bernotok' cannam@167: allow_undefined_flag_F77=' $wl-berok' cannam@167: if test yes = "$with_gnu_ld"; then cannam@167: # We only use this code for GNU lds that support --whole-archive. cannam@167: whole_archive_flag_spec_F77='$wl--whole-archive$convenience $wl--no-whole-archive' cannam@167: else cannam@167: # Exported symbols can be pulled into shared objects from archives cannam@167: whole_archive_flag_spec_F77='$convenience' cannam@167: fi cannam@167: archive_cmds_need_lc_F77=yes cannam@167: archive_expsym_cmds_F77='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' cannam@167: # -brtl affects multiple linker settings, -berok does not and is overridden later cannam@167: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' cannam@167: if test svr4 != "$with_aix_soname"; then cannam@167: # This is similar to how AIX traditionally builds its shared libraries. cannam@167: 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' cannam@167: fi cannam@167: if test aix != "$with_aix_soname"; then cannam@167: 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' cannam@167: else cannam@167: # used by -dlpreopen to get the symbols cannam@167: archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$MV $output_objdir/$realname.d/$soname $output_objdir' cannam@167: fi cannam@167: archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$RM -r $output_objdir/$realname.d' cannam@167: fi cannam@167: fi cannam@167: ;; cannam@167: cannam@167: amigaos*) cannam@167: case $host_cpu in cannam@167: powerpc) cannam@167: # see comment about AmigaOS4 .so support cannam@167: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' cannam@167: archive_expsym_cmds_F77='' cannam@167: ;; cannam@167: m68k) cannam@167: 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)' cannam@167: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@167: hardcode_minus_L_F77=yes cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: bsdi[45]*) cannam@167: export_dynamic_flag_spec_F77=-rdynamic cannam@167: ;; cannam@167: cannam@167: cygwin* | mingw* | pw32* | cegcc*) cannam@167: # When not using gcc, we currently assume that we are using cannam@167: # Microsoft Visual C++. cannam@167: # hardcode_libdir_flag_spec is actually meaningless, as there is cannam@167: # no search path for DLLs. cannam@167: case $cc_basename in cannam@167: cl*) cannam@167: # Native MSVC cannam@167: hardcode_libdir_flag_spec_F77=' ' cannam@167: allow_undefined_flag_F77=unsupported cannam@167: always_export_symbols_F77=yes cannam@167: file_list_spec_F77='@' cannam@167: # Tell ltmain to make .lib files, not .a files. cannam@167: libext=lib cannam@167: # Tell ltmain to make .dll files, not .so files. cannam@167: shrext_cmds=.dll cannam@167: # FIXME: Setting linknames here is a bad hack. cannam@167: archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' cannam@167: archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cannam@167: cp "$export_symbols" "$output_objdir/$soname.def"; cannam@167: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; cannam@167: else cannam@167: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; cannam@167: fi~ cannam@167: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ cannam@167: linknames=' cannam@167: # The linker will not automatically build a static lib if we build a DLL. cannam@167: # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true' cannam@167: enable_shared_with_static_runtimes_F77=yes cannam@167: exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' cannam@167: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' cannam@167: # Don't use ranlib cannam@167: old_postinstall_cmds_F77='chmod 644 $oldlib' cannam@167: postlink_cmds_F77='lt_outputfile="@OUTPUT@"~ cannam@167: lt_tool_outputfile="@TOOL_OUTPUT@"~ cannam@167: case $lt_outputfile in cannam@167: *.exe|*.EXE) ;; cannam@167: *) cannam@167: lt_outputfile=$lt_outputfile.exe cannam@167: lt_tool_outputfile=$lt_tool_outputfile.exe cannam@167: ;; cannam@167: esac~ cannam@167: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then cannam@167: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; cannam@167: $RM "$lt_outputfile.manifest"; cannam@167: fi' cannam@167: ;; cannam@167: *) cannam@167: # Assume MSVC wrapper cannam@167: hardcode_libdir_flag_spec_F77=' ' cannam@167: allow_undefined_flag_F77=unsupported cannam@167: # Tell ltmain to make .lib files, not .a files. cannam@167: libext=lib cannam@167: # Tell ltmain to make .dll files, not .so files. cannam@167: shrext_cmds=.dll cannam@167: # FIXME: Setting linknames here is a bad hack. cannam@167: archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' cannam@167: # The linker will automatically build a .lib file if we build a DLL. cannam@167: old_archive_from_new_cmds_F77='true' cannam@167: # FIXME: Should let the user specify the lib program. cannam@167: old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' cannam@167: enable_shared_with_static_runtimes_F77=yes cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: darwin* | rhapsody*) cannam@167: cannam@167: cannam@167: archive_cmds_need_lc_F77=no cannam@167: hardcode_direct_F77=no cannam@167: hardcode_automatic_F77=yes cannam@167: hardcode_shlibpath_var_F77=unsupported cannam@167: if test yes = "$lt_cv_ld_force_load"; then cannam@167: 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\"`' cannam@167: compiler_needs_object_F77=yes cannam@167: else cannam@167: whole_archive_flag_spec_F77='' cannam@167: fi cannam@167: link_all_deplibs_F77=yes cannam@167: allow_undefined_flag_F77=$_lt_dar_allow_undefined cannam@167: case $cc_basename in cannam@167: ifort*|nagfor*) _lt_dar_can_shared=yes ;; cannam@167: *) _lt_dar_can_shared=$GCC ;; cannam@167: esac cannam@167: if test yes = "$_lt_dar_can_shared"; then cannam@167: output_verbose_link_cmd=func_echo_all cannam@167: 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" cannam@167: module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" cannam@167: 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" cannam@167: 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" cannam@167: cannam@167: else cannam@167: ld_shlibs_F77=no cannam@167: fi cannam@167: cannam@167: ;; cannam@167: cannam@167: dgux*) cannam@167: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@167: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@167: hardcode_shlibpath_var_F77=no cannam@167: ;; cannam@167: cannam@167: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor cannam@167: # support. Future versions do this automatically, but an explicit c++rt0.o cannam@167: # does not break anything, and helps significantly (at the cost of a little cannam@167: # extra space). cannam@167: freebsd2.2*) cannam@167: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' cannam@167: hardcode_libdir_flag_spec_F77='-R$libdir' cannam@167: hardcode_direct_F77=yes cannam@167: hardcode_shlibpath_var_F77=no cannam@167: ;; cannam@167: cannam@167: # Unfortunately, older versions of FreeBSD 2 do not have this feature. cannam@167: freebsd2.*) cannam@167: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@167: hardcode_direct_F77=yes cannam@167: hardcode_minus_L_F77=yes cannam@167: hardcode_shlibpath_var_F77=no cannam@167: ;; cannam@167: cannam@167: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. cannam@167: freebsd* | dragonfly*) cannam@167: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@167: hardcode_libdir_flag_spec_F77='-R$libdir' cannam@167: hardcode_direct_F77=yes cannam@167: hardcode_shlibpath_var_F77=no cannam@167: ;; cannam@167: cannam@167: hpux9*) cannam@167: if test yes = "$GCC"; then cannam@167: 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' cannam@167: else cannam@167: 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' cannam@167: fi cannam@167: hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' cannam@167: hardcode_libdir_separator_F77=: cannam@167: hardcode_direct_F77=yes cannam@167: cannam@167: # hardcode_minus_L: Not really in the search PATH, cannam@167: # but as the default location of the library. cannam@167: hardcode_minus_L_F77=yes cannam@167: export_dynamic_flag_spec_F77='$wl-E' cannam@167: ;; cannam@167: cannam@167: hpux10*) cannam@167: if test yes,no = "$GCC,$with_gnu_ld"; then cannam@167: archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@167: else cannam@167: archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' cannam@167: fi cannam@167: if test no = "$with_gnu_ld"; then cannam@167: hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' cannam@167: hardcode_libdir_separator_F77=: cannam@167: hardcode_direct_F77=yes cannam@167: hardcode_direct_absolute_F77=yes cannam@167: export_dynamic_flag_spec_F77='$wl-E' cannam@167: # hardcode_minus_L: Not really in the search PATH, cannam@167: # but as the default location of the library. cannam@167: hardcode_minus_L_F77=yes cannam@167: fi cannam@167: ;; cannam@167: cannam@167: hpux11*) cannam@167: if test yes,no = "$GCC,$with_gnu_ld"; then cannam@167: case $host_cpu in cannam@167: hppa*64*) cannam@167: archive_cmds_F77='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: ;; cannam@167: ia64*) cannam@167: archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' cannam@167: ;; cannam@167: *) cannam@167: archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@167: ;; cannam@167: esac cannam@167: else cannam@167: case $host_cpu in cannam@167: hppa*64*) cannam@167: archive_cmds_F77='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: ;; cannam@167: ia64*) cannam@167: archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' cannam@167: ;; cannam@167: *) cannam@167: archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: if test no = "$with_gnu_ld"; then cannam@167: hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' cannam@167: hardcode_libdir_separator_F77=: cannam@167: cannam@167: case $host_cpu in cannam@167: hppa*64*|ia64*) cannam@167: hardcode_direct_F77=no cannam@167: hardcode_shlibpath_var_F77=no cannam@167: ;; cannam@167: *) cannam@167: hardcode_direct_F77=yes cannam@167: hardcode_direct_absolute_F77=yes cannam@167: export_dynamic_flag_spec_F77='$wl-E' cannam@167: cannam@167: # hardcode_minus_L: Not really in the search PATH, cannam@167: # but as the default location of the library. cannam@167: hardcode_minus_L_F77=yes cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: ;; cannam@167: cannam@167: irix5* | irix6* | nonstopux*) cannam@167: if test yes = "$GCC"; then cannam@167: 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' cannam@167: # Try to use the -exported_symbol ld option, if it does not cannam@167: # work, assume that -exports_file does not work either and cannam@167: # implicitly export all symbols. cannam@167: # This should be the same for all languages, so no per-tag cache variable. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 cannam@167: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } cannam@167: if ${lt_cv_irix_exported_symbol+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: save_LDFLAGS=$LDFLAGS cannam@167: LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cannam@167: cat > conftest.$ac_ext <<_ACEOF cannam@167: cannam@167: subroutine foo cannam@167: end cannam@167: _ACEOF cannam@167: if ac_fn_f77_try_link "$LINENO"; then : cannam@167: lt_cv_irix_exported_symbol=yes cannam@167: else cannam@167: lt_cv_irix_exported_symbol=no cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: LDFLAGS=$save_LDFLAGS cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 cannam@167: $as_echo "$lt_cv_irix_exported_symbol" >&6; } cannam@167: if test yes = "$lt_cv_irix_exported_symbol"; then cannam@167: 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' cannam@167: fi cannam@167: link_all_deplibs_F77=no cannam@167: else cannam@167: 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' cannam@167: 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' cannam@167: fi cannam@167: archive_cmds_need_lc_F77='no' cannam@167: hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' cannam@167: hardcode_libdir_separator_F77=: cannam@167: inherit_rpath_F77=yes cannam@167: link_all_deplibs_F77=yes cannam@167: ;; cannam@167: cannam@167: linux*) cannam@167: case $cc_basename in cannam@167: tcc*) cannam@167: # Fabrice Bellard et al's Tiny C Compiler cannam@167: ld_shlibs_F77=yes cannam@167: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: netbsd* | netbsdelf*-gnu) cannam@167: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then cannam@167: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out cannam@167: else cannam@167: archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF cannam@167: fi cannam@167: hardcode_libdir_flag_spec_F77='-R$libdir' cannam@167: hardcode_direct_F77=yes cannam@167: hardcode_shlibpath_var_F77=no cannam@167: ;; cannam@167: cannam@167: newsos6) cannam@167: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@167: hardcode_direct_F77=yes cannam@167: hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' cannam@167: hardcode_libdir_separator_F77=: cannam@167: hardcode_shlibpath_var_F77=no cannam@167: ;; cannam@167: cannam@167: *nto* | *qnx*) cannam@167: ;; cannam@167: cannam@167: openbsd* | bitrig*) cannam@167: if test -f /usr/libexec/ld.so; then cannam@167: hardcode_direct_F77=yes cannam@167: hardcode_shlibpath_var_F77=no cannam@167: hardcode_direct_absolute_F77=yes cannam@167: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then cannam@167: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@167: archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' cannam@167: hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' cannam@167: export_dynamic_flag_spec_F77='$wl-E' cannam@167: else cannam@167: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@167: hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' cannam@167: fi cannam@167: else cannam@167: ld_shlibs_F77=no cannam@167: fi cannam@167: ;; cannam@167: cannam@167: os2*) cannam@167: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@167: hardcode_minus_L_F77=yes cannam@167: allow_undefined_flag_F77=unsupported cannam@167: shrext_cmds=.dll cannam@167: archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ cannam@167: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ cannam@167: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ cannam@167: $ECHO EXPORTS >> $output_objdir/$libname.def~ cannam@167: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ cannam@167: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ cannam@167: emximp -o $lib $output_objdir/$libname.def' cannam@167: archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ cannam@167: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ cannam@167: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ cannam@167: $ECHO EXPORTS >> $output_objdir/$libname.def~ cannam@167: prefix_cmds="$SED"~ cannam@167: if test EXPORTS = "`$SED 1q $export_symbols`"; then cannam@167: prefix_cmds="$prefix_cmds -e 1d"; cannam@167: fi~ cannam@167: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cannam@167: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ cannam@167: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ cannam@167: emximp -o $lib $output_objdir/$libname.def' cannam@167: old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' cannam@167: enable_shared_with_static_runtimes_F77=yes cannam@167: ;; cannam@167: cannam@167: osf3*) cannam@167: if test yes = "$GCC"; then cannam@167: allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*' cannam@167: 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' cannam@167: else cannam@167: allow_undefined_flag_F77=' -expect_unresolved \*' cannam@167: 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' cannam@167: fi cannam@167: archive_cmds_need_lc_F77='no' cannam@167: hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' cannam@167: hardcode_libdir_separator_F77=: cannam@167: ;; cannam@167: cannam@167: osf4* | osf5*) # as osf3* with the addition of -msym flag cannam@167: if test yes = "$GCC"; then cannam@167: allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*' cannam@167: 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' cannam@167: hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' cannam@167: else cannam@167: allow_undefined_flag_F77=' -expect_unresolved \*' cannam@167: 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' cannam@167: 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~ cannam@167: $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' cannam@167: cannam@167: # Both c and cxx compiler support -rpath directly cannam@167: hardcode_libdir_flag_spec_F77='-rpath $libdir' cannam@167: fi cannam@167: archive_cmds_need_lc_F77='no' cannam@167: hardcode_libdir_separator_F77=: cannam@167: ;; cannam@167: cannam@167: solaris*) cannam@167: no_undefined_flag_F77=' -z defs' cannam@167: if test yes = "$GCC"; then cannam@167: wlarc='$wl' cannam@167: archive_cmds_F77='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ cannam@167: $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' cannam@167: else cannam@167: case `$CC -V 2>&1` in cannam@167: *"Compilers 5.0"*) cannam@167: wlarc='' cannam@167: archive_cmds_F77='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@167: archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ cannam@167: $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' cannam@167: ;; cannam@167: *) cannam@167: wlarc='$wl' cannam@167: archive_cmds_F77='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ cannam@167: $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: hardcode_libdir_flag_spec_F77='-R$libdir' cannam@167: hardcode_shlibpath_var_F77=no cannam@167: case $host_os in cannam@167: solaris2.[0-5] | solaris2.[0-5].*) ;; cannam@167: *) cannam@167: # The compiler driver will combine and reorder linker options, cannam@167: # but understands '-z linker_flag'. GCC discards it without '$wl', cannam@167: # but is careful enough not to reorder. cannam@167: # Supported since Solaris 2.6 (maybe 2.5.1?) cannam@167: if test yes = "$GCC"; then cannam@167: whole_archive_flag_spec_F77='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' cannam@167: else cannam@167: whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: link_all_deplibs_F77=yes cannam@167: ;; cannam@167: cannam@167: sunos4*) cannam@167: if test sequent = "$host_vendor"; then cannam@167: # Use $CC to link under sequent, because it throws in some extra .o cannam@167: # files that make .init and .fini sections work. cannam@167: archive_cmds_F77='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: else cannam@167: archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' cannam@167: fi cannam@167: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@167: hardcode_direct_F77=yes cannam@167: hardcode_minus_L_F77=yes cannam@167: hardcode_shlibpath_var_F77=no cannam@167: ;; cannam@167: cannam@167: sysv4) cannam@167: case $host_vendor in cannam@167: sni) cannam@167: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@167: hardcode_direct_F77=yes # is this really true??? cannam@167: ;; cannam@167: siemens) cannam@167: ## LD is ld it makes a PLAMLIB cannam@167: ## CC just makes a GrossModule. cannam@167: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' cannam@167: reload_cmds_F77='$CC -r -o $output$reload_objs' cannam@167: hardcode_direct_F77=no cannam@167: ;; cannam@167: motorola) cannam@167: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@167: hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie cannam@167: ;; cannam@167: esac cannam@167: runpath_var='LD_RUN_PATH' cannam@167: hardcode_shlibpath_var_F77=no cannam@167: ;; cannam@167: cannam@167: sysv4.3*) cannam@167: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@167: hardcode_shlibpath_var_F77=no cannam@167: export_dynamic_flag_spec_F77='-Bexport' cannam@167: ;; cannam@167: cannam@167: sysv4*MP*) cannam@167: if test -d /usr/nec; then cannam@167: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@167: hardcode_shlibpath_var_F77=no cannam@167: runpath_var=LD_RUN_PATH cannam@167: hardcode_runpath_var=yes cannam@167: ld_shlibs_F77=yes cannam@167: fi cannam@167: ;; cannam@167: cannam@167: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) cannam@167: no_undefined_flag_F77='$wl-z,text' cannam@167: archive_cmds_need_lc_F77=no cannam@167: hardcode_shlibpath_var_F77=no cannam@167: runpath_var='LD_RUN_PATH' cannam@167: cannam@167: if test yes = "$GCC"; then cannam@167: archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: else cannam@167: archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: fi cannam@167: ;; cannam@167: cannam@167: sysv5* | sco3.2v5* | sco5v6*) cannam@167: # Note: We CANNOT use -z defs as we might desire, because we do not cannam@167: # link with -lc, and that would cause any symbols used from libc to cannam@167: # always be unresolved, which means just about no library would cannam@167: # ever link correctly. If we're not using GNU ld we use -z text cannam@167: # though, which does catch some bad symbols but isn't as heavy-handed cannam@167: # as -z defs. cannam@167: no_undefined_flag_F77='$wl-z,text' cannam@167: allow_undefined_flag_F77='$wl-z,nodefs' cannam@167: archive_cmds_need_lc_F77=no cannam@167: hardcode_shlibpath_var_F77=no cannam@167: hardcode_libdir_flag_spec_F77='$wl-R,$libdir' cannam@167: hardcode_libdir_separator_F77=':' cannam@167: link_all_deplibs_F77=yes cannam@167: export_dynamic_flag_spec_F77='$wl-Bexport' cannam@167: runpath_var='LD_RUN_PATH' cannam@167: cannam@167: if test yes = "$GCC"; then cannam@167: archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: else cannam@167: archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@167: fi cannam@167: ;; cannam@167: cannam@167: uts4*) cannam@167: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@167: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@167: hardcode_shlibpath_var_F77=no cannam@167: ;; cannam@167: cannam@167: *) cannam@167: ld_shlibs_F77=no cannam@167: ;; cannam@167: esac cannam@167: cannam@167: if test sni = "$host_vendor"; then cannam@167: case $host in cannam@167: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@167: export_dynamic_flag_spec_F77='$wl-Blargedynsym' cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5 cannam@167: $as_echo "$ld_shlibs_F77" >&6; } cannam@167: test no = "$ld_shlibs_F77" && can_build_shared=no cannam@167: cannam@167: with_gnu_ld_F77=$with_gnu_ld cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # cannam@167: # Do we need to explicitly link libc? cannam@167: # cannam@167: case "x$archive_cmds_need_lc_F77" in cannam@167: x|xyes) cannam@167: # Assume -lc should be added cannam@167: archive_cmds_need_lc_F77=yes cannam@167: cannam@167: if test yes,yes = "$GCC,$enable_shared"; then cannam@167: case $archive_cmds_F77 in cannam@167: *'~'*) cannam@167: # FIXME: we may have to deal with multi-command sequences. cannam@167: ;; cannam@167: '$CC '*) cannam@167: # Test whether the compiler implicitly links with -lc since on some cannam@167: # systems, -lgcc has to come before -lc. If gcc already passes -lc cannam@167: # to ld, don't add -lc before -lgcc. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 cannam@167: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } cannam@167: if ${lt_cv_archive_cmds_need_lc_F77+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: $RM conftest* cannam@167: echo "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@167: cannam@167: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 cannam@167: (eval $ac_compile) 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } 2>conftest.err; then cannam@167: soname=conftest cannam@167: lib=conftest cannam@167: libobjs=conftest.$ac_objext cannam@167: deplibs= cannam@167: wl=$lt_prog_compiler_wl_F77 cannam@167: pic_flag=$lt_prog_compiler_pic_F77 cannam@167: compiler_flags=-v cannam@167: linker_flags=-v cannam@167: verstring= cannam@167: output_objdir=. cannam@167: libname=conftest cannam@167: lt_save_allow_undefined_flag=$allow_undefined_flag_F77 cannam@167: allow_undefined_flag_F77= cannam@167: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 cannam@167: (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 cannam@167: ac_status=$? cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 cannam@167: test $ac_status = 0; } cannam@167: then cannam@167: lt_cv_archive_cmds_need_lc_F77=no cannam@167: else cannam@167: lt_cv_archive_cmds_need_lc_F77=yes cannam@167: fi cannam@167: allow_undefined_flag_F77=$lt_save_allow_undefined_flag cannam@167: else cannam@167: cat conftest.err 1>&5 cannam@167: fi cannam@167: $RM conftest* cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5 cannam@167: $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; } cannam@167: archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77 cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 cannam@167: $as_echo_n "checking dynamic linker characteristics... " >&6; } cannam@167: cannam@167: library_names_spec= cannam@167: libname_spec='lib$name' cannam@167: soname_spec= cannam@167: shrext_cmds=.so cannam@167: postinstall_cmds= cannam@167: postuninstall_cmds= cannam@167: finish_cmds= cannam@167: finish_eval= cannam@167: shlibpath_var= cannam@167: shlibpath_overrides_runpath=unknown cannam@167: version_type=none cannam@167: dynamic_linker="$host_os ld.so" cannam@167: sys_lib_dlsearch_path_spec="/lib /usr/lib" cannam@167: need_lib_prefix=unknown cannam@167: hardcode_into_libs=no cannam@167: cannam@167: # when you set need_version to no, make sure it does not cause -set_version cannam@167: # flags to be left without arguments cannam@167: need_version=unknown cannam@167: cannam@167: cannam@167: cannam@167: case $host_os in cannam@167: aix3*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname.a' cannam@167: shlibpath_var=LIBPATH cannam@167: cannam@167: # AIX 3 has no versioning support, so we append a major version to the name. cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: ;; cannam@167: cannam@167: aix[4-9]*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: hardcode_into_libs=yes cannam@167: if test ia64 = "$host_cpu"; then cannam@167: # AIX 5 supports IA64 cannam@167: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: else cannam@167: # With GCC up to 2.95.x, collect2 would create an import file cannam@167: # for dependence libraries. The import file would start with cannam@167: # the line '#! .'. This would cause the generated library to cannam@167: # depend on '.', always an invalid library. This was fixed in cannam@167: # development snapshots of GCC prior to 3.0. cannam@167: case $host_os in cannam@167: aix4 | aix4.[01] | aix4.[01].*) cannam@167: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' cannam@167: echo ' yes ' cannam@167: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then cannam@167: : cannam@167: else cannam@167: can_build_shared=no cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: # Using Import Files as archive members, it is possible to support cannam@167: # filename-based versioning of shared library archives on AIX. While cannam@167: # this would work for both with and without runtime linking, it will cannam@167: # prevent static linking of such archives. So we do filename-based cannam@167: # shared library versioning with .so extension only, which is used cannam@167: # when both runtime linking and shared linking is enabled. cannam@167: # Unfortunately, runtime linking may impact performance, so we do cannam@167: # not want this to be the default eventually. Also, we use the cannam@167: # versioned .so libs for executables only if there is the -brtl cannam@167: # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. cannam@167: # To allow for filename-based versioning support, we need to create cannam@167: # libNAME.so.V as an archive file, containing: cannam@167: # *) an Import File, referring to the versioned filename of the cannam@167: # archive as well as the shared archive member, telling the cannam@167: # bitwidth (32 or 64) of that shared object, and providing the cannam@167: # list of exported symbols of that shared object, eventually cannam@167: # decorated with the 'weak' keyword cannam@167: # *) the shared object with the F_LOADONLY flag set, to really avoid cannam@167: # it being seen by the linker. cannam@167: # At run time we better use the real file rather than another symlink, cannam@167: # but for link time we create the symlink libNAME.so -> libNAME.so.V cannam@167: cannam@167: case $with_aix_soname,$aix_use_runtimelinking in cannam@167: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct cannam@167: # soname into executable. Probably we can add versioning support to cannam@167: # collect2, so additional links can be useful in future. cannam@167: aix,yes) # traditional libtool cannam@167: dynamic_linker='AIX unversionable lib.so' cannam@167: # If using run time linking (on AIX 4.2 or later) use lib.so cannam@167: # instead of lib.a to let people know that these are not cannam@167: # typical AIX shared libraries. cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: ;; cannam@167: aix,no) # traditional AIX only cannam@167: dynamic_linker='AIX lib.a(lib.so.V)' cannam@167: # We preserve .a as extension for shared libraries through AIX4.2 cannam@167: # and later when we are not doing run time linking. cannam@167: library_names_spec='$libname$release.a $libname.a' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: ;; cannam@167: svr4,*) # full svr4 only cannam@167: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" cannam@167: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' cannam@167: # We do not specify a path in Import Files, so LIBPATH fires. cannam@167: shlibpath_overrides_runpath=yes cannam@167: ;; cannam@167: *,yes) # both, prefer svr4 cannam@167: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" cannam@167: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' cannam@167: # unpreferred sharedlib libNAME.a needs extra handling cannam@167: 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"' cannam@167: 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"' cannam@167: # We do not specify a path in Import Files, so LIBPATH fires. cannam@167: shlibpath_overrides_runpath=yes cannam@167: ;; cannam@167: *,no) # both, prefer aix cannam@167: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" cannam@167: library_names_spec='$libname$release.a $libname.a' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling cannam@167: 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)' cannam@167: 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"' cannam@167: ;; cannam@167: esac cannam@167: shlibpath_var=LIBPATH cannam@167: fi cannam@167: ;; cannam@167: cannam@167: amigaos*) cannam@167: case $host_cpu in cannam@167: powerpc) cannam@167: # Since July 2007 AmigaOS4 officially supports .so libraries. cannam@167: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: ;; cannam@167: m68k) cannam@167: library_names_spec='$libname.ixlibrary $libname.a' cannam@167: # Create ${libname}_ixlibrary.a entries in /sys/libs. cannam@167: 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' cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: beos*) cannam@167: library_names_spec='$libname$shared_ext' cannam@167: dynamic_linker="$host_os ld.so" cannam@167: shlibpath_var=LIBRARY_PATH cannam@167: ;; cannam@167: cannam@167: bsdi[45]*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" cannam@167: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" cannam@167: # the default ld.so.conf also contains /usr/contrib/lib and cannam@167: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow cannam@167: # libtool to hard-code these into programs cannam@167: ;; cannam@167: cannam@167: cygwin* | mingw* | pw32* | cegcc*) cannam@167: version_type=windows cannam@167: shrext_cmds=.dll cannam@167: need_version=no cannam@167: need_lib_prefix=no cannam@167: cannam@167: case $GCC,$cc_basename in cannam@167: yes,*) cannam@167: # gcc cannam@167: library_names_spec='$libname.dll.a' cannam@167: # DLL is installed to $(libdir)/../bin by postinstall_cmds cannam@167: postinstall_cmds='base_file=`basename \$file`~ cannam@167: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ cannam@167: dldir=$destdir/`dirname \$dlpath`~ cannam@167: test -d \$dldir || mkdir -p \$dldir~ cannam@167: $install_prog $dir/$dlname \$dldir/$dlname~ cannam@167: chmod a+x \$dldir/$dlname~ cannam@167: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then cannam@167: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; cannam@167: fi' cannam@167: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ cannam@167: dlpath=$dir/\$dldll~ cannam@167: $RM \$dlpath' cannam@167: shlibpath_overrides_runpath=yes cannam@167: cannam@167: case $host_os in cannam@167: cygwin*) cannam@167: # Cygwin DLLs use 'cyg' prefix rather than 'lib' cannam@167: soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' cannam@167: cannam@167: ;; cannam@167: mingw* | cegcc*) cannam@167: # MinGW DLLs use traditional 'lib' prefix cannam@167: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' cannam@167: ;; cannam@167: pw32*) cannam@167: # pw32 DLLs use 'pw' prefix rather than 'lib' cannam@167: library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' cannam@167: ;; cannam@167: esac cannam@167: dynamic_linker='Win32 ld.exe' cannam@167: ;; cannam@167: cannam@167: *,cl*) cannam@167: # Native MSVC cannam@167: libname_spec='$name' cannam@167: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' cannam@167: library_names_spec='$libname.dll.lib' cannam@167: cannam@167: case $build_os in cannam@167: mingw*) cannam@167: sys_lib_search_path_spec= cannam@167: lt_save_ifs=$IFS cannam@167: IFS=';' cannam@167: for lt_path in $LIB cannam@167: do cannam@167: IFS=$lt_save_ifs cannam@167: # Let DOS variable expansion print the short 8.3 style file name. cannam@167: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` cannam@167: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" cannam@167: done cannam@167: IFS=$lt_save_ifs cannam@167: # Convert to MSYS style. cannam@167: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` cannam@167: ;; cannam@167: cygwin*) cannam@167: # Convert to unix form, then to dos form, then back to unix form cannam@167: # but this time dos style (no spaces!) so that the unix form looks cannam@167: # like /cygdrive/c/PROGRA~1:/cygdr... cannam@167: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` cannam@167: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` cannam@167: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@167: ;; cannam@167: *) cannam@167: sys_lib_search_path_spec=$LIB cannam@167: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then cannam@167: # It is most probably a Windows format PATH. cannam@167: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@167: else cannam@167: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@167: fi cannam@167: # FIXME: find the short name or the path components, as spaces are cannam@167: # common. (e.g. "Program Files" -> "PROGRA~1") cannam@167: ;; cannam@167: esac cannam@167: cannam@167: # DLL is installed to $(libdir)/../bin by postinstall_cmds cannam@167: postinstall_cmds='base_file=`basename \$file`~ cannam@167: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ cannam@167: dldir=$destdir/`dirname \$dlpath`~ cannam@167: test -d \$dldir || mkdir -p \$dldir~ cannam@167: $install_prog $dir/$dlname \$dldir/$dlname' cannam@167: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ cannam@167: dlpath=$dir/\$dldll~ cannam@167: $RM \$dlpath' cannam@167: shlibpath_overrides_runpath=yes cannam@167: dynamic_linker='Win32 link.exe' cannam@167: ;; cannam@167: cannam@167: *) cannam@167: # Assume MSVC wrapper cannam@167: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' cannam@167: dynamic_linker='Win32 ld.exe' cannam@167: ;; cannam@167: esac cannam@167: # FIXME: first we should search . and the directory the executable is in cannam@167: shlibpath_var=PATH cannam@167: ;; cannam@167: cannam@167: darwin* | rhapsody*) cannam@167: dynamic_linker="$host_os dyld" cannam@167: version_type=darwin cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' cannam@167: soname_spec='$libname$release$major$shared_ext' cannam@167: shlibpath_overrides_runpath=yes cannam@167: shlibpath_var=DYLD_LIBRARY_PATH cannam@167: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' cannam@167: cannam@167: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' cannam@167: ;; cannam@167: cannam@167: dgux*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: ;; cannam@167: cannam@167: freebsd* | dragonfly*) cannam@167: # DragonFly does not have aout. When/if they implement a new cannam@167: # versioning mechanism, adjust this. cannam@167: if test -x /usr/bin/objformat; then cannam@167: objformat=`/usr/bin/objformat` cannam@167: else cannam@167: case $host_os in cannam@167: freebsd[23].*) objformat=aout ;; cannam@167: *) objformat=elf ;; cannam@167: esac cannam@167: fi cannam@167: version_type=freebsd-$objformat cannam@167: case $version_type in cannam@167: freebsd-elf*) cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: need_version=no cannam@167: need_lib_prefix=no cannam@167: ;; cannam@167: freebsd-*) cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' cannam@167: need_version=yes cannam@167: ;; cannam@167: esac cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: case $host_os in cannam@167: freebsd2.*) cannam@167: shlibpath_overrides_runpath=yes cannam@167: ;; cannam@167: freebsd3.[01]* | freebsdelf3.[01]*) cannam@167: shlibpath_overrides_runpath=yes cannam@167: hardcode_into_libs=yes cannam@167: ;; cannam@167: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ cannam@167: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) cannam@167: shlibpath_overrides_runpath=no cannam@167: hardcode_into_libs=yes cannam@167: ;; cannam@167: *) # from 4.6 on, and DragonFly cannam@167: shlibpath_overrides_runpath=yes cannam@167: hardcode_into_libs=yes cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: haiku*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: dynamic_linker="$host_os runtime_loader" cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: shlibpath_var=LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=no cannam@167: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' cannam@167: hardcode_into_libs=yes cannam@167: ;; cannam@167: cannam@167: hpux9* | hpux10* | hpux11*) cannam@167: # Give a soname corresponding to the major version so that dld.sl refuses to cannam@167: # link against other versions. cannam@167: version_type=sunos cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: case $host_cpu in cannam@167: ia64*) cannam@167: shrext_cmds='.so' cannam@167: hardcode_into_libs=yes cannam@167: dynamic_linker="$host_os dld.so" cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: if test 32 = "$HPUX_IA64_MODE"; then cannam@167: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" cannam@167: sys_lib_dlsearch_path_spec=/usr/lib/hpux32 cannam@167: else cannam@167: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" cannam@167: sys_lib_dlsearch_path_spec=/usr/lib/hpux64 cannam@167: fi cannam@167: ;; cannam@167: hppa*64*) cannam@167: shrext_cmds='.sl' cannam@167: hardcode_into_libs=yes cannam@167: dynamic_linker="$host_os dld.sl" cannam@167: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH cannam@167: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" cannam@167: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@167: ;; cannam@167: *) cannam@167: shrext_cmds='.sl' cannam@167: dynamic_linker="$host_os dld.sl" cannam@167: shlibpath_var=SHLIB_PATH cannam@167: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: ;; cannam@167: esac cannam@167: # HP-UX runs *really* slowly unless shared libraries are mode 555, ... cannam@167: postinstall_cmds='chmod 555 $lib' cannam@167: # or fails outright, so override atomically: cannam@167: install_override_mode=555 cannam@167: ;; cannam@167: cannam@167: interix[3-9]*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=no cannam@167: hardcode_into_libs=yes cannam@167: ;; cannam@167: cannam@167: irix5* | irix6* | nonstopux*) cannam@167: case $host_os in cannam@167: nonstopux*) version_type=nonstopux ;; cannam@167: *) cannam@167: if test yes = "$lt_cv_prog_gnu_ld"; then cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: else cannam@167: version_type=irix cannam@167: fi ;; cannam@167: esac cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' cannam@167: case $host_os in cannam@167: irix5* | nonstopux*) cannam@167: libsuff= shlibsuff= cannam@167: ;; cannam@167: *) cannam@167: case $LD in # libtool.m4 will add one of these switches to LD cannam@167: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") cannam@167: libsuff= shlibsuff= libmagic=32-bit;; cannam@167: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") cannam@167: libsuff=32 shlibsuff=N32 libmagic=N32;; cannam@167: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") cannam@167: libsuff=64 shlibsuff=64 libmagic=64-bit;; cannam@167: *) libsuff= shlibsuff= libmagic=never-match;; cannam@167: esac cannam@167: ;; cannam@167: esac cannam@167: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH cannam@167: shlibpath_overrides_runpath=no cannam@167: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" cannam@167: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" cannam@167: hardcode_into_libs=yes cannam@167: ;; cannam@167: cannam@167: # No shared lib support for Linux oldld, aout, or coff. cannam@167: linux*oldld* | linux*aout* | linux*coff*) cannam@167: dynamic_linker=no cannam@167: ;; cannam@167: cannam@167: linux*android*) cannam@167: version_type=none # Android doesn't support versioned libraries. cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext' cannam@167: finish_cmds= cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=yes cannam@167: cannam@167: # This implies no fast_install, which is unacceptable. cannam@167: # Some rework will be needed to allow for fast_install cannam@167: # before this can be enabled. cannam@167: hardcode_into_libs=yes cannam@167: cannam@167: dynamic_linker='Android linker' cannam@167: # Don't embed -rpath directories since the linker doesn't support them. cannam@167: hardcode_libdir_flag_spec_F77='-L$libdir' cannam@167: ;; cannam@167: cannam@167: # This must be glibc/ELF. cannam@167: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=no cannam@167: cannam@167: # Some binutils ld are patched to set DT_RUNPATH cannam@167: if ${lt_cv_shlibpath_overrides_runpath+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: lt_cv_shlibpath_overrides_runpath=no cannam@167: save_LDFLAGS=$LDFLAGS cannam@167: save_libdir=$libdir cannam@167: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \ cannam@167: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\"" cannam@167: cat > conftest.$ac_ext <<_ACEOF cannam@167: program main cannam@167: cannam@167: end cannam@167: _ACEOF cannam@167: if ac_fn_f77_try_link "$LINENO"; then : cannam@167: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : cannam@167: lt_cv_shlibpath_overrides_runpath=yes cannam@167: fi cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: LDFLAGS=$save_LDFLAGS cannam@167: libdir=$save_libdir cannam@167: cannam@167: fi cannam@167: cannam@167: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath cannam@167: cannam@167: # This implies no fast_install, which is unacceptable. cannam@167: # Some rework will be needed to allow for fast_install cannam@167: # before this can be enabled. cannam@167: hardcode_into_libs=yes cannam@167: cannam@167: # Ideally, we could use ldconfig to report *all* directores which are cannam@167: # searched for libraries, however this is still not possible. Aside from not cannam@167: # being certain /sbin/ldconfig is available, command cannam@167: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, cannam@167: # even though it is searched at run-time. Try to do the best guess by cannam@167: # appending ld.so.conf contents (and includes) to the search path. cannam@167: if test -f /etc/ld.so.conf; then cannam@167: 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' ' '` cannam@167: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" cannam@167: fi cannam@167: cannam@167: # We used to test for /lib/ld.so.1 and disable shared libraries on cannam@167: # powerpc, because MkLinux only supported shared libraries with the cannam@167: # GNU dynamic linker. Since this was broken with cross compilers, cannam@167: # most powerpc-linux boxes support dynamic linking these days and cannam@167: # people can always --disable-shared, the test was removed, and we cannam@167: # assume the GNU/Linux dynamic linker is in use. cannam@167: dynamic_linker='GNU/Linux ld.so' cannam@167: ;; cannam@167: cannam@167: netbsdelf*-gnu) cannam@167: version_type=linux cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@167: soname_spec='${libname}${release}${shared_ext}$major' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=no cannam@167: hardcode_into_libs=yes cannam@167: dynamic_linker='NetBSD ld.elf_so' cannam@167: ;; cannam@167: cannam@167: netbsd*) cannam@167: version_type=sunos cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' cannam@167: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@167: dynamic_linker='NetBSD (a.out) ld.so' cannam@167: else cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: dynamic_linker='NetBSD ld.elf_so' cannam@167: fi cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=yes cannam@167: hardcode_into_libs=yes cannam@167: ;; cannam@167: cannam@167: newsos6) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=yes cannam@167: ;; cannam@167: cannam@167: *nto* | *qnx*) cannam@167: version_type=qnx cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=no cannam@167: hardcode_into_libs=yes cannam@167: dynamic_linker='ldqnx.so' cannam@167: ;; cannam@167: cannam@167: openbsd* | bitrig*) cannam@167: version_type=sunos cannam@167: sys_lib_dlsearch_path_spec=/usr/lib cannam@167: need_lib_prefix=no cannam@167: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then cannam@167: need_version=no cannam@167: else cannam@167: need_version=yes cannam@167: fi cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' cannam@167: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=yes cannam@167: ;; cannam@167: cannam@167: os2*) cannam@167: libname_spec='$name' cannam@167: version_type=windows cannam@167: shrext_cmds=.dll cannam@167: need_version=no cannam@167: need_lib_prefix=no cannam@167: # OS/2 can only load a DLL with a base name of 8 characters or less. cannam@167: soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; cannam@167: v=$($ECHO $release$versuffix | tr -d .-); cannam@167: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); cannam@167: $ECHO $n$v`$shared_ext' cannam@167: library_names_spec='${libname}_dll.$libext' cannam@167: dynamic_linker='OS/2 ld.exe' cannam@167: shlibpath_var=BEGINLIBPATH cannam@167: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" cannam@167: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@167: postinstall_cmds='base_file=`basename \$file`~ cannam@167: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ cannam@167: dldir=$destdir/`dirname \$dlpath`~ cannam@167: test -d \$dldir || mkdir -p \$dldir~ cannam@167: $install_prog $dir/$dlname \$dldir/$dlname~ cannam@167: chmod a+x \$dldir/$dlname~ cannam@167: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then cannam@167: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; cannam@167: fi' cannam@167: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ cannam@167: dlpath=$dir/\$dldll~ cannam@167: $RM \$dlpath' cannam@167: ;; cannam@167: cannam@167: osf3* | osf4* | osf5*) cannam@167: version_type=osf cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" cannam@167: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@167: ;; cannam@167: cannam@167: rdos*) cannam@167: dynamic_linker=no cannam@167: ;; cannam@167: cannam@167: solaris*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=yes cannam@167: hardcode_into_libs=yes cannam@167: # ldd complains unless libraries are executable cannam@167: postinstall_cmds='chmod +x $lib' cannam@167: ;; cannam@167: cannam@167: sunos4*) cannam@167: version_type=sunos cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' cannam@167: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=yes cannam@167: if test yes = "$with_gnu_ld"; then cannam@167: need_lib_prefix=no cannam@167: fi cannam@167: need_version=yes cannam@167: ;; cannam@167: cannam@167: sysv4 | sysv4.3*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: case $host_vendor in cannam@167: sni) cannam@167: shlibpath_overrides_runpath=no cannam@167: need_lib_prefix=no cannam@167: runpath_var=LD_RUN_PATH cannam@167: ;; cannam@167: siemens) cannam@167: need_lib_prefix=no cannam@167: ;; cannam@167: motorola) cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: shlibpath_overrides_runpath=no cannam@167: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: cannam@167: sysv4*MP*) cannam@167: if test -d /usr/nec; then cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' cannam@167: soname_spec='$libname$shared_ext.$major' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: fi cannam@167: ;; cannam@167: cannam@167: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) cannam@167: version_type=sco cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=yes cannam@167: hardcode_into_libs=yes cannam@167: if test yes = "$with_gnu_ld"; then cannam@167: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' cannam@167: else cannam@167: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' cannam@167: case $host_os in cannam@167: sco3.2v5*) cannam@167: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: sys_lib_dlsearch_path_spec='/usr/lib' cannam@167: ;; cannam@167: cannam@167: tpf*) cannam@167: # TPF is a cross-target only. Preferred cross-host = GNU/Linux. cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: need_lib_prefix=no cannam@167: need_version=no cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: shlibpath_overrides_runpath=no cannam@167: hardcode_into_libs=yes cannam@167: ;; cannam@167: cannam@167: uts4*) cannam@167: version_type=linux # correct to gnu/linux during the next big refactor cannam@167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' cannam@167: soname_spec='$libname$release$shared_ext$major' cannam@167: shlibpath_var=LD_LIBRARY_PATH cannam@167: ;; cannam@167: cannam@167: *) cannam@167: dynamic_linker=no cannam@167: ;; cannam@167: esac cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 cannam@167: $as_echo "$dynamic_linker" >&6; } cannam@167: test no = "$dynamic_linker" && can_build_shared=no cannam@167: cannam@167: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" cannam@167: if test yes = "$GCC"; then cannam@167: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" cannam@167: fi cannam@167: cannam@167: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then cannam@167: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec cannam@167: fi cannam@167: cannam@167: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then cannam@167: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec cannam@167: fi cannam@167: cannam@167: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... cannam@167: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec cannam@167: cannam@167: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code cannam@167: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" cannam@167: cannam@167: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool cannam@167: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 cannam@167: $as_echo_n "checking how to hardcode library paths into programs... " >&6; } cannam@167: hardcode_action_F77= cannam@167: if test -n "$hardcode_libdir_flag_spec_F77" || cannam@167: test -n "$runpath_var_F77" || cannam@167: test yes = "$hardcode_automatic_F77"; then cannam@167: cannam@167: # We can hardcode non-existent directories. cannam@167: if test no != "$hardcode_direct_F77" && cannam@167: # If the only mechanism to avoid hardcoding is shlibpath_var, we cannam@167: # have to relink, otherwise we might link with an installed library cannam@167: # when we should be linking with a yet-to-be-installed one cannam@167: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" && cannam@167: test no != "$hardcode_minus_L_F77"; then cannam@167: # Linking always hardcodes the temporary library directory. cannam@167: hardcode_action_F77=relink cannam@167: else cannam@167: # We can link without hardcoding, and we can hardcode nonexisting dirs. cannam@167: hardcode_action_F77=immediate cannam@167: fi cannam@167: else cannam@167: # We cannot hardcode anything, or else we can only hardcode existing cannam@167: # directories. cannam@167: hardcode_action_F77=unsupported cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5 cannam@167: $as_echo "$hardcode_action_F77" >&6; } cannam@167: cannam@167: if test relink = "$hardcode_action_F77" || cannam@167: test yes = "$inherit_rpath_F77"; then cannam@167: # Fast installation is not supported cannam@167: enable_fast_install=no cannam@167: elif test yes = "$shlibpath_overrides_runpath" || cannam@167: test no = "$enable_shared"; then cannam@167: # Fast installation is not necessary cannam@167: enable_fast_install=needless cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: fi # test -n "$compiler" cannam@167: cannam@167: GCC=$lt_save_GCC cannam@167: CC=$lt_save_CC cannam@167: CFLAGS=$lt_save_CFLAGS cannam@167: fi # test yes != "$_lt_disable_F77" cannam@167: cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: cannam@167: if test -z "$F77"; then cannam@167: enable_fortran=no cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&5 cannam@167: $as_echo "$as_me: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&2;} cannam@167: else cannam@167: ac_ext=f cannam@167: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_f77_compiler_gnu cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5 cannam@167: $as_echo_n "checking how to get verbose linking output from $F77... " >&6; } cannam@167: if ${ac_cv_prog_f77_v+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat > conftest.$ac_ext <<_ACEOF cannam@167: program main cannam@167: cannam@167: end cannam@167: _ACEOF cannam@167: if ac_fn_f77_try_compile "$LINENO"; then : cannam@167: ac_cv_prog_f77_v= cannam@167: # Try some options frequently used verbose output cannam@167: for ac_verb in -v -verbose --verbose -V -\#\#\#; do cannam@167: cat > conftest.$ac_ext <<_ACEOF cannam@167: program main cannam@167: cannam@167: end cannam@167: _ACEOF cannam@167: cannam@167: # Compile and link our simple test program by passing a flag (argument cannam@167: # 1 to this macro) to the Fortran compiler in order to get cannam@167: # "verbose" output that we can then parse for the Fortran linker cannam@167: # flags. cannam@167: ac_save_FFLAGS=$FFLAGS cannam@167: FFLAGS="$FFLAGS $ac_verb" cannam@167: eval "set x $ac_link" cannam@167: shift cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 cannam@167: # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, cannam@167: # LIBRARY_PATH; skip all such settings. cannam@167: ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | cannam@167: sed '/^Driving:/d; /^Configured with:/d; cannam@167: '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` cannam@167: $as_echo "$ac_f77_v_output" >&5 cannam@167: FFLAGS=$ac_save_FFLAGS cannam@167: cannam@167: rm -rf conftest* cannam@167: cannam@167: # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where cannam@167: # /foo, /bar, and /baz are search directories for the Fortran linker. cannam@167: # Here, we change these into -L/foo -L/bar -L/baz (and put it first): cannam@167: ac_f77_v_output="`echo $ac_f77_v_output | cannam@167: grep 'LPATH is:' | cannam@167: sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" cannam@167: cannam@167: # FIXME: we keep getting bitten by quoted arguments; a more general fix cannam@167: # that detects unbalanced quotes in FLIBS should be implemented cannam@167: # and (ugh) tested at some point. cannam@167: case $ac_f77_v_output in cannam@167: # With xlf replace commas with spaces, cannam@167: # and remove "-link" and closing parenthesis. cannam@167: *xlfentry*) cannam@167: ac_f77_v_output=`echo $ac_f77_v_output | cannam@167: sed ' cannam@167: s/,/ /g cannam@167: s/ -link / /g cannam@167: s/) *$// cannam@167: ' cannam@167: ` ;; cannam@167: cannam@167: # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted cannam@167: # $LIBS confuse us, and the libraries appear later in the output anyway). cannam@167: *mGLOB_options_string*) cannam@167: ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; cannam@167: cannam@167: # Portland Group compiler has singly- or doubly-quoted -cmdline argument cannam@167: # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. cannam@167: # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". cannam@167: *-cmdline\ * | *-ignore\ * | *-def\ *) cannam@167: ac_f77_v_output=`echo $ac_f77_v_output | sed "\ cannam@167: s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g cannam@167: s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g cannam@167: s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; cannam@167: cannam@167: # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. cannam@167: *fort77*f2c*gcc*) cannam@167: ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n ' cannam@167: /:[ ]\+Running[ ]\{1,\}"gcc"/{ cannam@167: /"-c"/d cannam@167: /[.]c"*/d cannam@167: s/^.*"gcc"/"gcc"/ cannam@167: s/"//gp cannam@167: }'` ;; cannam@167: cannam@167: # If we are using Cray Fortran then delete quotes. cannam@167: *cft90*) cannam@167: ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; cannam@167: esac cannam@167: cannam@167: cannam@167: # look for -l* and *.a constructs in the output cannam@167: for ac_arg in $ac_f77_v_output; do cannam@167: case $ac_arg in cannam@167: [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) cannam@167: ac_cv_prog_f77_v=$ac_verb cannam@167: break 2 ;; cannam@167: esac cannam@167: done cannam@167: done cannam@167: if test -z "$ac_cv_prog_f77_v"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5 cannam@167: $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} cannam@167: fi cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 cannam@167: $as_echo "$as_me: WARNING: compilation failed" >&2;} cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5 cannam@167: $as_echo "$ac_cv_prog_f77_v" >&6; } cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5 cannam@167: $as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; } cannam@167: if ${ac_cv_f77_libs+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test "x$FLIBS" != "x"; then cannam@167: ac_cv_f77_libs="$FLIBS" # Let the user override the test. cannam@167: else cannam@167: cannam@167: cat > conftest.$ac_ext <<_ACEOF cannam@167: program main cannam@167: cannam@167: end cannam@167: _ACEOF cannam@167: cannam@167: # Compile and link our simple test program by passing a flag (argument cannam@167: # 1 to this macro) to the Fortran compiler in order to get cannam@167: # "verbose" output that we can then parse for the Fortran linker cannam@167: # flags. cannam@167: ac_save_FFLAGS=$FFLAGS cannam@167: FFLAGS="$FFLAGS $ac_cv_prog_f77_v" cannam@167: eval "set x $ac_link" cannam@167: shift cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 cannam@167: # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, cannam@167: # LIBRARY_PATH; skip all such settings. cannam@167: ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | cannam@167: sed '/^Driving:/d; /^Configured with:/d; cannam@167: '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` cannam@167: $as_echo "$ac_f77_v_output" >&5 cannam@167: FFLAGS=$ac_save_FFLAGS cannam@167: cannam@167: rm -rf conftest* cannam@167: cannam@167: # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where cannam@167: # /foo, /bar, and /baz are search directories for the Fortran linker. cannam@167: # Here, we change these into -L/foo -L/bar -L/baz (and put it first): cannam@167: ac_f77_v_output="`echo $ac_f77_v_output | cannam@167: grep 'LPATH is:' | cannam@167: sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" cannam@167: cannam@167: # FIXME: we keep getting bitten by quoted arguments; a more general fix cannam@167: # that detects unbalanced quotes in FLIBS should be implemented cannam@167: # and (ugh) tested at some point. cannam@167: case $ac_f77_v_output in cannam@167: # With xlf replace commas with spaces, cannam@167: # and remove "-link" and closing parenthesis. cannam@167: *xlfentry*) cannam@167: ac_f77_v_output=`echo $ac_f77_v_output | cannam@167: sed ' cannam@167: s/,/ /g cannam@167: s/ -link / /g cannam@167: s/) *$// cannam@167: ' cannam@167: ` ;; cannam@167: cannam@167: # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted cannam@167: # $LIBS confuse us, and the libraries appear later in the output anyway). cannam@167: *mGLOB_options_string*) cannam@167: ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; cannam@167: cannam@167: # Portland Group compiler has singly- or doubly-quoted -cmdline argument cannam@167: # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. cannam@167: # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". cannam@167: *-cmdline\ * | *-ignore\ * | *-def\ *) cannam@167: ac_f77_v_output=`echo $ac_f77_v_output | sed "\ cannam@167: s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g cannam@167: s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g cannam@167: s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; cannam@167: cannam@167: # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. cannam@167: *fort77*f2c*gcc*) cannam@167: ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n ' cannam@167: /:[ ]\+Running[ ]\{1,\}"gcc"/{ cannam@167: /"-c"/d cannam@167: /[.]c"*/d cannam@167: s/^.*"gcc"/"gcc"/ cannam@167: s/"//gp cannam@167: }'` ;; cannam@167: cannam@167: # If we are using Cray Fortran then delete quotes. cannam@167: *cft90*) cannam@167: ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; cannam@167: esac cannam@167: cannam@167: cannam@167: cannam@167: ac_cv_f77_libs= cannam@167: cannam@167: # Save positional arguments (if any) cannam@167: ac_save_positional="$@" cannam@167: cannam@167: set X $ac_f77_v_output cannam@167: while test $# != 1; do cannam@167: shift cannam@167: ac_arg=$1 cannam@167: case $ac_arg in cannam@167: [\\/]*.a | ?:[\\/]*.a) cannam@167: ac_exists=false cannam@167: for ac_i in $ac_cv_f77_libs; do cannam@167: if test x"$ac_arg" = x"$ac_i"; then cannam@167: ac_exists=true cannam@167: break cannam@167: fi cannam@167: done cannam@167: cannam@167: if test x"$ac_exists" = xtrue; then : cannam@167: cannam@167: else cannam@167: ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" cannam@167: fi cannam@167: ;; cannam@167: -bI:*) cannam@167: ac_exists=false cannam@167: for ac_i in $ac_cv_f77_libs; do cannam@167: if test x"$ac_arg" = x"$ac_i"; then cannam@167: ac_exists=true cannam@167: break cannam@167: fi cannam@167: done cannam@167: cannam@167: if test x"$ac_exists" = xtrue; then : cannam@167: cannam@167: else cannam@167: if test "$ac_compiler_gnu" = yes; then cannam@167: for ac_link_opt in $ac_arg; do cannam@167: ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" cannam@167: done cannam@167: else cannam@167: ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" cannam@167: fi cannam@167: fi cannam@167: ;; cannam@167: # Ignore these flags. cannam@167: -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ cannam@167: |-LANG:=* | -LIST:* | -LNO:* | -link) cannam@167: ;; cannam@167: -lkernel32) cannam@167: case $host_os in cannam@167: *cygwin*) ;; cannam@167: *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: -[LRuYz]) cannam@167: # These flags, when seen by themselves, take an argument. cannam@167: # We remove the space between option and argument and re-iterate cannam@167: # unless we find an empty arg or a new option (starting with -) cannam@167: case $2 in cannam@167: "" | -*);; cannam@167: *) cannam@167: ac_arg="$ac_arg$2" cannam@167: shift; shift cannam@167: set X $ac_arg "$@" cannam@167: ;; cannam@167: esac cannam@167: ;; cannam@167: -YP,*) cannam@167: for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do cannam@167: ac_exists=false cannam@167: for ac_i in $ac_cv_f77_libs; do cannam@167: if test x"$ac_j" = x"$ac_i"; then cannam@167: ac_exists=true cannam@167: break cannam@167: fi cannam@167: done cannam@167: cannam@167: if test x"$ac_exists" = xtrue; then : cannam@167: cannam@167: else cannam@167: ac_arg="$ac_arg $ac_j" cannam@167: ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" cannam@167: fi cannam@167: done cannam@167: ;; cannam@167: -[lLR]*) cannam@167: ac_exists=false cannam@167: for ac_i in $ac_cv_f77_libs; do cannam@167: if test x"$ac_arg" = x"$ac_i"; then cannam@167: ac_exists=true cannam@167: break cannam@167: fi cannam@167: done cannam@167: cannam@167: if test x"$ac_exists" = xtrue; then : cannam@167: cannam@167: else cannam@167: ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" cannam@167: fi cannam@167: ;; cannam@167: -zallextract*| -zdefaultextract) cannam@167: ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" cannam@167: ;; cannam@167: # Ignore everything else. cannam@167: esac cannam@167: done cannam@167: # restore positional arguments cannam@167: set X $ac_save_positional; shift cannam@167: cannam@167: # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, cannam@167: # then we insist that the "run path" must be an absolute path (i.e. it cannam@167: # must begin with a "/"). cannam@167: case `(uname -sr) 2>/dev/null` in cannam@167: "SunOS 5"*) cannam@167: ac_ld_run_path=`$as_echo "$ac_f77_v_output" | cannam@167: sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` cannam@167: test "x$ac_ld_run_path" != x && cannam@167: if test "$ac_compiler_gnu" = yes; then cannam@167: for ac_link_opt in $ac_ld_run_path; do cannam@167: ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" cannam@167: done cannam@167: else cannam@167: ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" cannam@167: fi cannam@167: ;; cannam@167: esac cannam@167: fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5 cannam@167: $as_echo "$ac_cv_f77_libs" >&6; } cannam@167: FLIBS="$ac_cv_f77_libs" cannam@167: cannam@167: cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: ac_ext=f cannam@167: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_f77_compiler_gnu cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5 cannam@167: $as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; } cannam@167: if ${ac_cv_f77_dummy_main+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: ac_f77_dm_save_LIBS=$LIBS cannam@167: LIBS="$LIBS $FLIBS" cannam@167: ac_fortran_dm_var=F77_DUMMY_MAIN cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: # First, try linking without a dummy main: cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: #ifdef F77_DUMMY_MAIN cannam@167: cannam@167: # ifdef __cplusplus cannam@167: extern "C" cannam@167: # endif cannam@167: int F77_DUMMY_MAIN() { return 1; } cannam@167: cannam@167: #endif cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: ac_cv_fortran_dummy_main=none cannam@167: else cannam@167: ac_cv_fortran_dummy_main=unknown cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: cannam@167: if test $ac_cv_fortran_dummy_main = unknown; then cannam@167: for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #define $ac_fortran_dm_var $ac_func cannam@167: #ifdef F77_DUMMY_MAIN cannam@167: cannam@167: # ifdef __cplusplus cannam@167: extern "C" cannam@167: # endif cannam@167: int F77_DUMMY_MAIN() { return 1; } cannam@167: cannam@167: #endif cannam@167: int cannam@167: main () cannam@167: { cannam@167: cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: ac_cv_fortran_dummy_main=$ac_func; break cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: done cannam@167: fi cannam@167: ac_ext=f cannam@167: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_f77_compiler_gnu cannam@167: ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main cannam@167: rm -rf conftest* cannam@167: LIBS=$ac_f77_dm_save_LIBS cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5 cannam@167: $as_echo "$ac_cv_f77_dummy_main" >&6; } cannam@167: F77_DUMMY_MAIN=$ac_cv_f77_dummy_main cannam@167: if test "$F77_DUMMY_MAIN" != unknown; then : cannam@167: if test $F77_DUMMY_MAIN != none; then cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define F77_DUMMY_MAIN $F77_DUMMY_MAIN cannam@167: _ACEOF cannam@167: cannam@167: if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then cannam@167: cannam@167: $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: fi cannam@167: else cannam@167: enable_fortran=no cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&5 cannam@167: $as_echo "$as_me: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&2;} cannam@167: fi cannam@167: cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: fi cannam@167: else cannam@167: cannam@167: $as_echo "#define DISABLE_FORTRAN 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: if test "x$enable_fortran" = xyes; then cannam@167: ac_ext=f cannam@167: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_f77_compiler_gnu cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5 cannam@167: $as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; } cannam@167: if ${ac_cv_f77_mangling+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: cat > conftest.$ac_ext <<_ACEOF cannam@167: subroutine foobar() cannam@167: return cannam@167: end cannam@167: subroutine foo_bar() cannam@167: return cannam@167: end cannam@167: _ACEOF cannam@167: if ac_fn_f77_try_compile "$LINENO"; then : cannam@167: mv conftest.$ac_objext cfortran_test.$ac_objext cannam@167: cannam@167: ac_save_LIBS=$LIBS cannam@167: LIBS="cfortran_test.$ac_objext $LIBS $FLIBS" cannam@167: cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: ac_success=no cannam@167: for ac_foobar in foobar FOOBAR; do cannam@167: for ac_underscore in "" "_"; do cannam@167: ac_func="$ac_foobar$ac_underscore" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: /* Override any GCC internal prototype to avoid an error. cannam@167: Use char because int might match the return type of a GCC cannam@167: builtin and then its argument prototype would still apply. */ cannam@167: #ifdef __cplusplus cannam@167: extern "C" cannam@167: #endif cannam@167: char $ac_func (); cannam@167: #ifdef F77_DUMMY_MAIN cannam@167: cannam@167: # ifdef __cplusplus cannam@167: extern "C" cannam@167: # endif cannam@167: int F77_DUMMY_MAIN() { return 1; } cannam@167: cannam@167: #endif cannam@167: int cannam@167: main () cannam@167: { cannam@167: return $ac_func (); cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: ac_success=yes; break 2 cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: done cannam@167: done cannam@167: ac_ext=f cannam@167: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_f77_compiler_gnu cannam@167: cannam@167: if test "$ac_success" = "yes"; then cannam@167: case $ac_foobar in cannam@167: foobar) cannam@167: ac_case=lower cannam@167: ac_foo_bar=foo_bar cannam@167: ;; cannam@167: FOOBAR) cannam@167: ac_case=upper cannam@167: ac_foo_bar=FOO_BAR cannam@167: ;; cannam@167: esac cannam@167: cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: ac_success_extra=no cannam@167: for ac_extra in "" "_"; do cannam@167: ac_func="$ac_foo_bar$ac_underscore$ac_extra" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: /* Override any GCC internal prototype to avoid an error. cannam@167: Use char because int might match the return type of a GCC cannam@167: builtin and then its argument prototype would still apply. */ cannam@167: #ifdef __cplusplus cannam@167: extern "C" cannam@167: #endif cannam@167: char $ac_func (); cannam@167: #ifdef F77_DUMMY_MAIN cannam@167: cannam@167: # ifdef __cplusplus cannam@167: extern "C" cannam@167: # endif cannam@167: int F77_DUMMY_MAIN() { return 1; } cannam@167: cannam@167: #endif cannam@167: int cannam@167: main () cannam@167: { cannam@167: return $ac_func (); cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: ac_success_extra=yes; break cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: done cannam@167: ac_ext=f cannam@167: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_f77_compiler_gnu cannam@167: cannam@167: if test "$ac_success_extra" = "yes"; then cannam@167: ac_cv_f77_mangling="$ac_case case" cannam@167: if test -z "$ac_underscore"; then cannam@167: ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore" cannam@167: else cannam@167: ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore" cannam@167: fi cannam@167: if test -z "$ac_extra"; then cannam@167: ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore" cannam@167: else cannam@167: ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore" cannam@167: fi cannam@167: else cannam@167: ac_cv_f77_mangling="unknown" cannam@167: fi cannam@167: else cannam@167: ac_cv_f77_mangling="unknown" cannam@167: fi cannam@167: cannam@167: LIBS=$ac_save_LIBS cannam@167: rm -rf conftest* cannam@167: rm -f cfortran_test* cannam@167: else cannam@167: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 cannam@167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} cannam@167: as_fn_error $? "cannot compile a simple Fortran program cannam@167: See \`config.log' for more details" "$LINENO" 5; } cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5 cannam@167: $as_echo "$ac_cv_f77_mangling" >&6; } cannam@167: cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: ac_ext=f cannam@167: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_f77_compiler_gnu cannam@167: case $ac_cv_f77_mangling in cannam@167: "lower case, no underscore, no extra underscore") cannam@167: $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h cannam@167: cannam@167: $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h cannam@167: ;; cannam@167: "lower case, no underscore, extra underscore") cannam@167: $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h cannam@167: cannam@167: $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h cannam@167: ;; cannam@167: "lower case, underscore, no extra underscore") cannam@167: $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h cannam@167: cannam@167: $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h cannam@167: ;; cannam@167: "lower case, underscore, extra underscore") cannam@167: $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h cannam@167: cannam@167: $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h cannam@167: ;; cannam@167: "upper case, no underscore, no extra underscore") cannam@167: $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h cannam@167: cannam@167: $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h cannam@167: ;; cannam@167: "upper case, no underscore, extra underscore") cannam@167: $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h cannam@167: cannam@167: $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h cannam@167: ;; cannam@167: "upper case, underscore, no extra underscore") cannam@167: $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h cannam@167: cannam@167: $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h cannam@167: ;; cannam@167: "upper case, underscore, extra underscore") cannam@167: $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h cannam@167: cannam@167: $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h cannam@167: ;; cannam@167: *) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 cannam@167: $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} cannam@167: ;; cannam@167: esac cannam@167: cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: ac_ext=f cannam@167: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_f77_compiler_gnu cannam@167: case $ac_cv_f77_mangling in cannam@167: upper*) ac_val="F77FOO" ;; cannam@167: lower*) ac_val="f77foo" ;; cannam@167: *) ac_val="unknown" ;; cannam@167: esac cannam@167: case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac cannam@167: cannam@167: f77foo="$ac_val" cannam@167: cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: ac_ext=f cannam@167: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_f77_compiler_gnu cannam@167: case $ac_cv_f77_mangling in cannam@167: upper*) ac_val="F77_FOO" ;; cannam@167: lower*) ac_val="f77_foo" ;; cannam@167: *) ac_val="unknown" ;; cannam@167: esac cannam@167: case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac cannam@167: case $ac_cv_f77_mangling in *," extra underscore"*) ac_val="$ac_val"_ ;; esac cannam@167: cannam@167: f77_foo="$ac_val" cannam@167: cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: f77_foo2=`echo $f77foo | sed 's/77/77_/'` cannam@167: if test "$f77_foo" = "$f77_foo2"; then cannam@167: cannam@167: $as_echo "#define F77_FUNC_EQUIV 1" >>confdefs.h cannam@167: cannam@167: cannam@167: # Include g77 wrappers by default for GNU systems or gfortran cannam@167: with_g77_wrappers=$ac_cv_f77_compiler_gnu cannam@167: case $host_os in *gnu*) with_g77_wrappers=yes ;; esac cannam@167: fi cannam@167: else cannam@167: with_g77_wrappers=no cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --with-g77-wrappers was given. cannam@167: if test "${with_g77_wrappers+set}" = set; then : cannam@167: withval=$with_g77_wrappers; with_g77_wrappers=$withval cannam@167: fi cannam@167: cannam@167: if test "x$with_g77_wrappers" = "xyes"; then cannam@167: cannam@167: $as_echo "#define WITH_G77_WRAPPERS 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: have_smp="no" cannam@167: # Check whether --enable-openmp was given. cannam@167: if test "${enable_openmp+set}" = set; then : cannam@167: enableval=$enable_openmp; enable_openmp=$enableval cannam@167: else cannam@167: enable_openmp=no cannam@167: fi cannam@167: cannam@167: cannam@167: if test "$enable_openmp" = "yes"; then cannam@167: cannam@167: $as_echo "#define HAVE_OPENMP 1" >>confdefs.h cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag of C compiler" >&5 cannam@167: $as_echo_n "checking for OpenMP flag of C compiler... " >&6; } cannam@167: if ${ax_cv_c_openmp+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: saveCFLAGS=$CFLAGS cannam@167: ax_cv_c_openmp=unknown cannam@167: # Flags to try: -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI), cannam@167: # -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX), none cannam@167: ax_openmp_flags="-fopenmp -openmp -mp -xopenmp -omp -qsmp=omp none" cannam@167: if test "x$OPENMP_CFLAGS" != x; then cannam@167: ax_openmp_flags="$OPENMP_CFLAGS $ax_openmp_flags" cannam@167: fi cannam@167: for ax_openmp_flag in $ax_openmp_flags; do cannam@167: case $ax_openmp_flag in cannam@167: none) CFLAGS=$saveC ;; cannam@167: *) CFLAGS="$saveCFLAGS $ax_openmp_flag" ;; cannam@167: esac cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: /* Override any GCC internal prototype to avoid an error. cannam@167: Use char because int might match the return type of a GCC cannam@167: builtin and then its argument prototype would still apply. */ cannam@167: #ifdef __cplusplus cannam@167: extern "C" cannam@167: #endif cannam@167: char omp_set_num_threads (); cannam@167: #ifdef F77_DUMMY_MAIN cannam@167: cannam@167: # ifdef __cplusplus cannam@167: extern "C" cannam@167: # endif cannam@167: int F77_DUMMY_MAIN() { return 1; } cannam@167: cannam@167: #endif cannam@167: int cannam@167: main () cannam@167: { cannam@167: return omp_set_num_threads (); cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: ax_cv_c_openmp=$ax_openmp_flag; break cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: done cannam@167: CFLAGS=$saveCFLAGS cannam@167: cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_openmp" >&5 cannam@167: $as_echo "$ax_cv_c_openmp" >&6; } cannam@167: if test "x$ax_cv_c_openmp" = "xunknown"; then cannam@167: as_fn_error $? "don't know how to enable OpenMP" "$LINENO" 5 cannam@167: else cannam@167: if test "x$ax_cv_c_openmp" != "xnone"; then cannam@167: OPENMP_CFLAGS=$ax_cv_c_openmp cannam@167: fi cannam@167: cannam@167: $as_echo "#define HAVE_OPENMP 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: cannam@167: fi cannam@167: cannam@167: # Check whether --enable-threads was given. cannam@167: if test "${enable_threads+set}" = set; then : cannam@167: enableval=$enable_threads; enable_threads=$enableval cannam@167: else cannam@167: enable_threads=no cannam@167: fi cannam@167: cannam@167: cannam@167: if test "$enable_threads" = "yes"; then cannam@167: cannam@167: $as_echo "#define HAVE_THREADS 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: cannam@167: # Check whether --with-combined-threads was given. cannam@167: if test "${with_combined_threads+set}" = set; then : cannam@167: withval=$with_combined_threads; with_combined_threads=$withval cannam@167: else cannam@167: with_combined_threads=no cannam@167: fi cannam@167: cannam@167: cannam@167: if test "$with_combined_threads" = yes; then cannam@167: if test "$enable_openmp" = "yes"; then cannam@167: as_fn_error $? "--with-combined-threads incompatible with --enable-openmp" "$LINENO" 5 cannam@167: fi cannam@167: if test "$enable_threads" != "yes"; then cannam@167: as_fn_error $? "--with-combined-threads requires --enable-threads" "$LINENO" 5 cannam@167: fi cannam@167: fi cannam@167: cannam@167: THREADLIBS="" cannam@167: if test "$enable_threads" = "yes"; then cannam@167: # Win32 threads are the default on Windows: cannam@167: if test -z "$THREADLIBS"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 threads" >&5 cannam@167: $as_echo_n "checking for Win32 threads... " >&6; } cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: #ifdef F77_DUMMY_MAIN cannam@167: cannam@167: # ifdef __cplusplus cannam@167: extern "C" cannam@167: # endif cannam@167: int F77_DUMMY_MAIN() { return 1; } cannam@167: cannam@167: #endif cannam@167: int cannam@167: main () cannam@167: { cannam@167: _beginthreadex(0,0,0,0,0,0); cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: THREADLIBS=" "; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 cannam@167: $as_echo "yes" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: fi cannam@167: cannam@167: # POSIX threads, the default choice everywhere else: cannam@167: if test -z "$THREADLIBS"; then cannam@167: cannam@167: cannam@167: cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: acx_pthread_ok=no cannam@167: cannam@167: # We used to check for pthread.h first, but this fails if pthread.h cannam@167: # requires special compiler flags (e.g. on True64 or Sequent). cannam@167: # It gets checked for in the link test anyway. cannam@167: cannam@167: # First of all, check if the user has set any of the PTHREAD_LIBS, cannam@167: # etcetera environment variables, and if threads linking works using cannam@167: # them: cannam@167: if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then cannam@167: save_CFLAGS="$CFLAGS" cannam@167: CFLAGS="$CFLAGS $PTHREAD_CFLAGS" cannam@167: save_LIBS="$LIBS" cannam@167: LIBS="$PTHREAD_LIBS $LIBS" cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 cannam@167: $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: cannam@167: /* Override any GCC internal prototype to avoid an error. cannam@167: Use char because int might match the return type of a GCC cannam@167: builtin and then its argument prototype would still apply. */ cannam@167: #ifdef __cplusplus cannam@167: extern "C" cannam@167: #endif cannam@167: char pthread_join (); cannam@167: #ifdef F77_DUMMY_MAIN cannam@167: cannam@167: # ifdef __cplusplus cannam@167: extern "C" cannam@167: # endif cannam@167: int F77_DUMMY_MAIN() { return 1; } cannam@167: cannam@167: #endif cannam@167: int cannam@167: main () cannam@167: { cannam@167: return pthread_join (); cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: acx_pthread_ok=yes cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 cannam@167: $as_echo "$acx_pthread_ok" >&6; } cannam@167: if test x"$acx_pthread_ok" = xno; then cannam@167: PTHREAD_LIBS="" cannam@167: PTHREAD_CFLAGS="" cannam@167: fi cannam@167: LIBS="$save_LIBS" cannam@167: CFLAGS="$save_CFLAGS" cannam@167: fi cannam@167: cannam@167: # We must check for the threads library under a number of different cannam@167: # names; the ordering is very important because some systems cannam@167: # (e.g. DEC) have both -lpthread and -lpthreads, where one of the cannam@167: # libraries is broken (non-POSIX). cannam@167: cannam@167: # Create a list of thread flags to try. Items starting with a "-" are cannam@167: # C compiler flags, and other items are library names, except for "none" cannam@167: # which indicates that we try without any flags at all, and "pthread-config" cannam@167: # which is a program returning the flags for the Pth emulation library. cannam@167: cannam@167: acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config" cannam@167: cannam@167: # The ordering *is* (sometimes) important. Some notes on the cannam@167: # individual items follow: cannam@167: cannam@167: # pthreads: AIX (must check this before -lpthread) cannam@167: # none: in case threads are in libc; should be tried before -Kthread and cannam@167: # other compiler flags to prevent continual compiler warnings cannam@167: # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) cannam@167: # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) cannam@167: # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) cannam@167: # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) cannam@167: # -pthreads: Solaris/gcc cannam@167: # -mthreads: Mingw32/gcc, Lynx/gcc cannam@167: # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it cannam@167: # doesn't hurt to check since this sometimes defines pthreads too; cannam@167: # also defines -D_REENTRANT) cannam@167: # ... -mt is also the pthreads flag for HP/aCC cannam@167: # (where it should come before -mthreads to avoid spurious warnings) cannam@167: # pthread: Linux, etcetera cannam@167: # --thread-safe: KAI C++ cannam@167: # pthread-config: use pthread-config program (for GNU Pth library) cannam@167: cannam@167: case "${host_cpu}-${host_os}" in cannam@167: *solaris*) cannam@167: cannam@167: # On Solaris (at least, for some versions), libc contains stubbed cannam@167: # (non-functional) versions of the pthreads routines, so link-based cannam@167: # tests will erroneously succeed. (We need to link with -pthreads/-mt/ cannam@167: # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather cannam@167: # a function called by this macro, so we could check for that, but cannam@167: # who knows whether they'll stub that too in a future libc.) So, cannam@167: # we'll just look for -pthreads and -lpthread first: cannam@167: cannam@167: acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" cannam@167: ;; cannam@167: esac cannam@167: cannam@167: if test x"$acx_pthread_ok" = xno; then cannam@167: for flag in $acx_pthread_flags; do cannam@167: cannam@167: case $flag in cannam@167: none) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 cannam@167: $as_echo_n "checking whether pthreads work without any flags... " >&6; } cannam@167: ;; cannam@167: cannam@167: -*) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 cannam@167: $as_echo_n "checking whether pthreads work with $flag... " >&6; } cannam@167: PTHREAD_CFLAGS="$flag" cannam@167: ;; cannam@167: cannam@167: pthread-config) cannam@167: # Extract the first word of "pthread-config", so it can be a program name with args. cannam@167: set dummy pthread-config; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_acx_pthread_config+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$acx_pthread_config"; then cannam@167: ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_acx_pthread_config="yes" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" cannam@167: fi cannam@167: fi cannam@167: acx_pthread_config=$ac_cv_prog_acx_pthread_config cannam@167: if test -n "$acx_pthread_config"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 cannam@167: $as_echo "$acx_pthread_config" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: if test x"$acx_pthread_config" = xno; then continue; fi cannam@167: PTHREAD_CFLAGS="`pthread-config --cflags`" cannam@167: PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" cannam@167: ;; cannam@167: cannam@167: *) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 cannam@167: $as_echo_n "checking for the pthreads library -l$flag... " >&6; } cannam@167: PTHREAD_LIBS="-l$flag" cannam@167: ;; cannam@167: esac cannam@167: cannam@167: save_LIBS="$LIBS" cannam@167: save_CFLAGS="$CFLAGS" cannam@167: LIBS="$PTHREAD_LIBS $LIBS" cannam@167: CFLAGS="$CFLAGS $PTHREAD_CFLAGS" cannam@167: cannam@167: # Check for various functions. We must include pthread.h, cannam@167: # since some functions may be macros. (On the Sequent, we cannam@167: # need a special flag -Kthread to make this header compile.) cannam@167: # We check for pthread_join because it is in -lpthread on IRIX cannam@167: # while pthread_create is in libc. We check for pthread_attr_init cannam@167: # due to DEC craziness with -lpthreads. We check for cannam@167: # pthread_cleanup_push because it is one of the few pthread cannam@167: # functions on Solaris that doesn't have a non-functional libc stub. cannam@167: # We try pthread_create on general principles. cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: #ifdef F77_DUMMY_MAIN cannam@167: cannam@167: # ifdef __cplusplus cannam@167: extern "C" cannam@167: # endif cannam@167: int F77_DUMMY_MAIN() { return 1; } cannam@167: cannam@167: #endif cannam@167: int cannam@167: main () cannam@167: { cannam@167: pthread_t th; pthread_join(th, (void**) 0); cannam@167: pthread_attr_init((pthread_attr_t*) 0); cannam@167: pthread_cleanup_push((void(*)(void *)) 0, (void*) 0); cannam@167: pthread_create((pthread_t*) 0, (pthread_attr_t*) 0, cannam@167: (void*(*)(void *)) 0, (void*) 0); cannam@167: pthread_cleanup_pop(0); cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: acx_pthread_ok=yes cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: cannam@167: LIBS="$save_LIBS" cannam@167: CFLAGS="$save_CFLAGS" cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 cannam@167: $as_echo "$acx_pthread_ok" >&6; } cannam@167: if test "x$acx_pthread_ok" = xyes; then cannam@167: break; cannam@167: fi cannam@167: cannam@167: PTHREAD_LIBS="" cannam@167: PTHREAD_CFLAGS="" cannam@167: done cannam@167: fi cannam@167: cannam@167: # Various other checks: cannam@167: if test "x$acx_pthread_ok" = xyes; then cannam@167: save_LIBS="$LIBS" cannam@167: LIBS="$PTHREAD_LIBS $LIBS" cannam@167: save_CFLAGS="$CFLAGS" cannam@167: CFLAGS="$CFLAGS $PTHREAD_CFLAGS" cannam@167: cannam@167: # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 cannam@167: $as_echo_n "checking for joinable pthread attribute... " >&6; } cannam@167: attr_name=unknown cannam@167: for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include cannam@167: #ifdef F77_DUMMY_MAIN cannam@167: cannam@167: # ifdef __cplusplus cannam@167: extern "C" cannam@167: # endif cannam@167: int F77_DUMMY_MAIN() { return 1; } cannam@167: cannam@167: #endif cannam@167: int cannam@167: main () cannam@167: { cannam@167: int attr=$attr; return attr; cannam@167: ; cannam@167: return 0; cannam@167: } cannam@167: _ACEOF cannam@167: if ac_fn_c_try_link "$LINENO"; then : cannam@167: attr_name=$attr; break cannam@167: fi cannam@167: rm -f core conftest.err conftest.$ac_objext \ cannam@167: conftest$ac_exeext conftest.$ac_ext cannam@167: done cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 cannam@167: $as_echo "$attr_name" >&6; } cannam@167: if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define PTHREAD_CREATE_JOINABLE $attr_name cannam@167: _ACEOF cannam@167: cannam@167: fi cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 cannam@167: $as_echo_n "checking if more special flags are required for pthreads... " >&6; } cannam@167: flag=no cannam@167: case "${host_cpu}-${host_os}" in cannam@167: *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; cannam@167: *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; cannam@167: esac cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 cannam@167: $as_echo "${flag}" >&6; } cannam@167: if test "x$flag" != xno; then cannam@167: PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" cannam@167: fi cannam@167: cannam@167: LIBS="$save_LIBS" cannam@167: CFLAGS="$save_CFLAGS" cannam@167: cannam@167: # More AIX lossage: must compile with xlc_r or cc_r cannam@167: if test x"$GCC" != xyes; then cannam@167: for ac_prog in xlc_r cc_r cannam@167: do cannam@167: # Extract the first word of "$ac_prog", so it can be a program name with args. cannam@167: set dummy $ac_prog; ac_word=$2 cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 cannam@167: $as_echo_n "checking for $ac_word... " >&6; } cannam@167: if ${ac_cv_prog_PTHREAD_CC+:} false; then : cannam@167: $as_echo_n "(cached) " >&6 cannam@167: else cannam@167: if test -n "$PTHREAD_CC"; then cannam@167: ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. cannam@167: else cannam@167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: for ac_exec_ext in '' $ac_executable_extensions; do cannam@167: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then cannam@167: ac_cv_prog_PTHREAD_CC="$ac_prog" cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 cannam@167: break 2 cannam@167: fi cannam@167: done cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: fi cannam@167: fi cannam@167: PTHREAD_CC=$ac_cv_prog_PTHREAD_CC cannam@167: if test -n "$PTHREAD_CC"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 cannam@167: $as_echo "$PTHREAD_CC" >&6; } cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 cannam@167: $as_echo "no" >&6; } cannam@167: fi cannam@167: cannam@167: cannam@167: test -n "$PTHREAD_CC" && break cannam@167: done cannam@167: test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" cannam@167: cannam@167: else cannam@167: PTHREAD_CC=$CC cannam@167: fi cannam@167: else cannam@167: PTHREAD_CC="$CC" cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: cannam@167: if test x"$acx_pthread_ok" = xyes; then cannam@167: THREADLIBS="$PTHREAD_LIBS " cannam@167: CC="$PTHREAD_CC" cannam@167: cannam@167: $as_echo "#define USING_POSIX_THREADS 1" >>confdefs.h cannam@167: cannam@167: : cannam@167: else cannam@167: acx_pthread_ok=no cannam@167: cannam@167: fi cannam@167: ac_ext=c cannam@167: ac_cpp='$CPP $CPPFLAGS' cannam@167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' cannam@167: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' cannam@167: ac_compiler_gnu=$ac_cv_c_compiler_gnu cannam@167: cannam@167: cannam@167: fi cannam@167: cannam@167: if test -z "$THREADLIBS"; then cannam@167: as_fn_error $? "couldn't find threads library for --enable-threads" "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: $as_echo "#define HAVE_THREADS 1" >>confdefs.h cannam@167: cannam@167: fi cannam@167: cannam@167: if test "$enable_threads" = "yes"; then cannam@167: THREADS_TRUE= cannam@167: THREADS_FALSE='#' cannam@167: else cannam@167: THREADS_TRUE='#' cannam@167: THREADS_FALSE= cannam@167: fi cannam@167: cannam@167: if test "$enable_openmp" = "yes"; then cannam@167: OPENMP_TRUE= cannam@167: OPENMP_FALSE='#' cannam@167: else cannam@167: OPENMP_TRUE='#' cannam@167: OPENMP_FALSE= cannam@167: fi cannam@167: cannam@167: if test "$enable_threads" = "yes" -o "$enable_openmp" = "yes"; then cannam@167: SMP_TRUE= cannam@167: SMP_FALSE='#' cannam@167: else cannam@167: SMP_TRUE='#' cannam@167: SMP_FALSE= cannam@167: fi cannam@167: cannam@167: if test x"$with_combined_threads" = xyes; then cannam@167: COMBINED_THREADS_TRUE= cannam@167: COMBINED_THREADS_FALSE='#' cannam@167: else cannam@167: COMBINED_THREADS_TRUE='#' cannam@167: COMBINED_THREADS_FALSE= cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a cycle counter is available" >&5 cannam@167: $as_echo_n "checking whether a cycle counter is available... " >&6; } cannam@167: save_CPPFLAGS=$CPPFLAGS cannam@167: CPPFLAGS="$CPPFLAGS -I$srcdir/kernel" cannam@167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext cannam@167: /* end confdefs.h. */ cannam@167: #include "cycle.h" cannam@167: #ifndef HAVE_TICK_COUNTER cannam@167: # error No cycle counter cannam@167: #endif cannam@167: _ACEOF cannam@167: if ac_fn_c_try_cpp "$LINENO"; then : cannam@167: ok=yes cannam@167: else cannam@167: ok=no cannam@167: fi cannam@167: rm -f conftest.err conftest.i conftest.$ac_ext cannam@167: CPPFLAGS=$save_CPPFLAGS cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5 cannam@167: $as_echo "$ok" >&6; } cannam@167: if test $ok = no && test "x$with_slow_timer" = xno; then cannam@167: echo "***************************************************************" cannam@167: echo "WARNING: No cycle counter found. FFTW will use ESTIMATE mode " cannam@167: echo " for all plans. See the manual for more information." cannam@167: echo "***************************************************************" cannam@167: fi cannam@167: cannam@167: cannam@167: cannam@167: cat >>confdefs.h <<_ACEOF cannam@167: #define FFTW_CC "$CC $CFLAGS" cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: 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" cannam@167: cannam@167: cannam@167: cat >confcache <<\_ACEOF cannam@167: # This file is a shell script that caches the results of configure cannam@167: # tests run on this system so they can be shared between configure cannam@167: # scripts and configure runs, see configure's option --config-cache. cannam@167: # It is not useful on other systems. If it contains results you don't cannam@167: # want to keep, you may remove or edit it. cannam@167: # cannam@167: # config.status only pays attention to the cache file if you give it cannam@167: # the --recheck option to rerun configure. cannam@167: # cannam@167: # `ac_cv_env_foo' variables (set or unset) will be overridden when cannam@167: # loading this file, other *unset* `ac_cv_foo' will be assigned the cannam@167: # following values. cannam@167: cannam@167: _ACEOF cannam@167: cannam@167: # The following way of writing the cache mishandles newlines in values, cannam@167: # but we know of no workaround that is simple, portable, and efficient. cannam@167: # So, we kill variables containing newlines. cannam@167: # Ultrix sh set writes to stderr and can't be redirected directly, cannam@167: # and sets the high bit in the cache file unless we assign to the vars. cannam@167: ( cannam@167: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do cannam@167: eval ac_val=\$$ac_var cannam@167: case $ac_val in #( cannam@167: *${as_nl}*) cannam@167: case $ac_var in #( cannam@167: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 cannam@167: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; cannam@167: esac cannam@167: case $ac_var in #( cannam@167: _ | IFS | as_nl) ;; #( cannam@167: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( cannam@167: *) { eval $ac_var=; unset $ac_var;} ;; cannam@167: esac ;; cannam@167: esac cannam@167: done cannam@167: cannam@167: (set) 2>&1 | cannam@167: case $as_nl`(ac_space=' '; set) 2>&1` in #( cannam@167: *${as_nl}ac_space=\ *) cannam@167: # `set' does not quote correctly, so add quotes: double-quote cannam@167: # substitution turns \\\\ into \\, and sed turns \\ into \. cannam@167: sed -n \ cannam@167: "s/'/'\\\\''/g; cannam@167: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" cannam@167: ;; #( cannam@167: *) cannam@167: # `set' quotes correctly as required by POSIX, so do not add quotes. cannam@167: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" cannam@167: ;; cannam@167: esac | cannam@167: sort cannam@167: ) | cannam@167: sed ' cannam@167: /^ac_cv_env_/b end cannam@167: t clear cannam@167: :clear cannam@167: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ cannam@167: t end cannam@167: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ cannam@167: :end' >>confcache cannam@167: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else cannam@167: if test -w "$cache_file"; then cannam@167: if test "x$cache_file" != "x/dev/null"; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 cannam@167: $as_echo "$as_me: updating cache $cache_file" >&6;} cannam@167: if test ! -f "$cache_file" || test -h "$cache_file"; then cannam@167: cat confcache >"$cache_file" cannam@167: else cannam@167: case $cache_file in #( cannam@167: */* | ?:*) cannam@167: mv -f confcache "$cache_file"$$ && cannam@167: mv -f "$cache_file"$$ "$cache_file" ;; #( cannam@167: *) cannam@167: mv -f confcache "$cache_file" ;; cannam@167: esac cannam@167: fi cannam@167: fi cannam@167: else cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 cannam@167: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} cannam@167: fi cannam@167: fi cannam@167: rm -f confcache cannam@167: cannam@167: test "x$prefix" = xNONE && prefix=$ac_default_prefix cannam@167: # Let make expand exec_prefix. cannam@167: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' cannam@167: cannam@167: DEFS=-DHAVE_CONFIG_H cannam@167: cannam@167: ac_libobjs= cannam@167: ac_ltlibobjs= cannam@167: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue cannam@167: # 1. Remove the extension, and $U if already installed. cannam@167: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' cannam@167: ac_i=`$as_echo "$ac_i" | sed "$ac_script"` cannam@167: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR cannam@167: # will be set to the directory where LIBOBJS objects are built. cannam@167: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" cannam@167: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' cannam@167: done cannam@167: LIBOBJS=$ac_libobjs cannam@167: cannam@167: LTLIBOBJS=$ac_ltlibobjs cannam@167: cannam@167: cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 cannam@167: $as_echo_n "checking that generated files are newer than configure... " >&6; } cannam@167: if test -n "$am_sleep_pid"; then cannam@167: # Hide warnings about reused PIDs. cannam@167: wait $am_sleep_pid 2>/dev/null cannam@167: fi cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 cannam@167: $as_echo "done" >&6; } cannam@167: if test -n "$EXEEXT"; then cannam@167: am__EXEEXT_TRUE= cannam@167: am__EXEEXT_FALSE='#' cannam@167: else cannam@167: am__EXEEXT_TRUE='#' cannam@167: am__EXEEXT_FALSE= cannam@167: fi cannam@167: cannam@167: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then cannam@167: as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then cannam@167: as_fn_error $? "conditional \"BUILD_DOC\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${SINGLE_TRUE}" && test -z "${SINGLE_FALSE}"; then cannam@167: as_fn_error $? "conditional \"SINGLE\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${LDOUBLE_TRUE}" && test -z "${LDOUBLE_FALSE}"; then cannam@167: as_fn_error $? "conditional \"LDOUBLE\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${QUAD_TRUE}" && test -z "${QUAD_FALSE}"; then cannam@167: as_fn_error $? "conditional \"QUAD\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then cannam@167: as_fn_error $? "conditional \"HAVE_SSE2\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then cannam@167: as_fn_error $? "conditional \"HAVE_AVX\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${HAVE_AVX2_TRUE}" && test -z "${HAVE_AVX2_FALSE}"; then cannam@167: as_fn_error $? "conditional \"HAVE_AVX2\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${HAVE_AVX512_TRUE}" && test -z "${HAVE_AVX512_FALSE}"; then cannam@167: as_fn_error $? "conditional \"HAVE_AVX512\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${HAVE_AVX_128_FMA_TRUE}" && test -z "${HAVE_AVX_128_FMA_FALSE}"; then cannam@167: as_fn_error $? "conditional \"HAVE_AVX_128_FMA\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${HAVE_KCVI_TRUE}" && test -z "${HAVE_KCVI_FALSE}"; then cannam@167: as_fn_error $? "conditional \"HAVE_KCVI\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${HAVE_ALTIVEC_TRUE}" && test -z "${HAVE_ALTIVEC_FALSE}"; then cannam@167: as_fn_error $? "conditional \"HAVE_ALTIVEC\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${HAVE_VSX_TRUE}" && test -z "${HAVE_VSX_FALSE}"; then cannam@167: as_fn_error $? "conditional \"HAVE_VSX\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${HAVE_NEON_TRUE}" && test -z "${HAVE_NEON_FALSE}"; then cannam@167: as_fn_error $? "conditional \"HAVE_NEON\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${HAVE_GENERIC_SIMD128_TRUE}" && test -z "${HAVE_GENERIC_SIMD128_FALSE}"; then cannam@167: as_fn_error $? "conditional \"HAVE_GENERIC_SIMD128\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${HAVE_GENERIC_SIMD256_TRUE}" && test -z "${HAVE_GENERIC_SIMD256_FALSE}"; then cannam@167: as_fn_error $? "conditional \"HAVE_GENERIC_SIMD256\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then cannam@167: as_fn_error $? "conditional \"AMDEP\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then cannam@167: as_fn_error $? "conditional \"am__fastdepCC\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${MPI_TRUE}" && test -z "${MPI_FALSE}"; then cannam@167: as_fn_error $? "conditional \"MPI\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then cannam@167: as_fn_error $? "conditional \"THREADS\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${OPENMP_TRUE}" && test -z "${OPENMP_FALSE}"; then cannam@167: as_fn_error $? "conditional \"OPENMP\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${SMP_TRUE}" && test -z "${SMP_FALSE}"; then cannam@167: as_fn_error $? "conditional \"SMP\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: if test -z "${COMBINED_THREADS_TRUE}" && test -z "${COMBINED_THREADS_FALSE}"; then cannam@167: as_fn_error $? "conditional \"COMBINED_THREADS\" was never defined. cannam@167: Usually this means the macro was only invoked conditionally." "$LINENO" 5 cannam@167: fi cannam@167: cannam@167: : "${CONFIG_STATUS=./config.status}" cannam@167: ac_write_fail=0 cannam@167: ac_clean_files_save=$ac_clean_files cannam@167: ac_clean_files="$ac_clean_files $CONFIG_STATUS" cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 cannam@167: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} cannam@167: as_write_fail=0 cannam@167: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 cannam@167: #! $SHELL cannam@167: # Generated by $as_me. cannam@167: # Run this file to recreate the current configuration. cannam@167: # Compiler output produced by configure, useful for debugging cannam@167: # configure, is in config.log if it exists. cannam@167: cannam@167: debug=false cannam@167: ac_cs_recheck=false cannam@167: ac_cs_silent=false cannam@167: cannam@167: SHELL=\${CONFIG_SHELL-$SHELL} cannam@167: export SHELL cannam@167: _ASEOF cannam@167: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 cannam@167: ## -------------------- ## cannam@167: ## M4sh Initialization. ## cannam@167: ## -------------------- ## cannam@167: cannam@167: # Be more Bourne compatible cannam@167: DUALCASE=1; export DUALCASE # for MKS sh cannam@167: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : cannam@167: emulate sh cannam@167: NULLCMD=: cannam@167: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which cannam@167: # is contrary to our usage. Disable this feature. cannam@167: alias -g '${1+"$@"}'='"$@"' cannam@167: setopt NO_GLOB_SUBST cannam@167: else cannam@167: case `(set -o) 2>/dev/null` in #( cannam@167: *posix*) : cannam@167: set -o posix ;; #( cannam@167: *) : cannam@167: ;; cannam@167: esac cannam@167: fi cannam@167: cannam@167: cannam@167: as_nl=' cannam@167: ' cannam@167: export as_nl cannam@167: # Printing a long string crashes Solaris 7 /usr/bin/printf. cannam@167: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' cannam@167: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo cannam@167: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo cannam@167: # Prefer a ksh shell builtin over an external printf program on Solaris, cannam@167: # but without wasting forks for bash or zsh. cannam@167: if test -z "$BASH_VERSION$ZSH_VERSION" \ cannam@167: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then cannam@167: as_echo='print -r --' cannam@167: as_echo_n='print -rn --' cannam@167: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then cannam@167: as_echo='printf %s\n' cannam@167: as_echo_n='printf %s' cannam@167: else cannam@167: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then cannam@167: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' cannam@167: as_echo_n='/usr/ucb/echo -n' cannam@167: else cannam@167: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' cannam@167: as_echo_n_body='eval cannam@167: arg=$1; cannam@167: case $arg in #( cannam@167: *"$as_nl"*) cannam@167: expr "X$arg" : "X\\(.*\\)$as_nl"; cannam@167: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; cannam@167: esac; cannam@167: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" cannam@167: ' cannam@167: export as_echo_n_body cannam@167: as_echo_n='sh -c $as_echo_n_body as_echo' cannam@167: fi cannam@167: export as_echo_body cannam@167: as_echo='sh -c $as_echo_body as_echo' cannam@167: fi cannam@167: cannam@167: # The user is always right. cannam@167: if test "${PATH_SEPARATOR+set}" != set; then cannam@167: PATH_SEPARATOR=: cannam@167: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { cannam@167: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || cannam@167: PATH_SEPARATOR=';' cannam@167: } cannam@167: fi cannam@167: cannam@167: cannam@167: # IFS cannam@167: # We need space, tab and new line, in precisely that order. Quoting is cannam@167: # there to prevent editors from complaining about space-tab. cannam@167: # (If _AS_PATH_WALK were called with IFS unset, it would disable word cannam@167: # splitting by setting IFS to empty value.) cannam@167: IFS=" "" $as_nl" cannam@167: cannam@167: # Find who we are. Look in the path if we contain no directory separator. cannam@167: as_myself= cannam@167: case $0 in #(( cannam@167: *[\\/]* ) as_myself=$0 ;; cannam@167: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@167: for as_dir in $PATH cannam@167: do cannam@167: IFS=$as_save_IFS cannam@167: test -z "$as_dir" && as_dir=. cannam@167: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break cannam@167: done cannam@167: IFS=$as_save_IFS cannam@167: cannam@167: ;; cannam@167: esac cannam@167: # We did not find ourselves, most probably we were run as `sh COMMAND' cannam@167: # in which case we are not to be found in the path. cannam@167: if test "x$as_myself" = x; then cannam@167: as_myself=$0 cannam@167: fi cannam@167: if test ! -f "$as_myself"; then cannam@167: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 cannam@167: exit 1 cannam@167: fi cannam@167: cannam@167: # Unset variables that we do not need and which cause bugs (e.g. in cannam@167: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" cannam@167: # suppresses any "Segmentation fault" message there. '((' could cannam@167: # trigger a bug in pdksh 5.2.14. cannam@167: for as_var in BASH_ENV ENV MAIL MAILPATH cannam@167: do eval test x\${$as_var+set} = xset \ cannam@167: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : cannam@167: done cannam@167: PS1='$ ' cannam@167: PS2='> ' cannam@167: PS4='+ ' cannam@167: cannam@167: # NLS nuisances. cannam@167: LC_ALL=C cannam@167: export LC_ALL cannam@167: LANGUAGE=C cannam@167: export LANGUAGE cannam@167: cannam@167: # CDPATH. cannam@167: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH cannam@167: cannam@167: cannam@167: # as_fn_error STATUS ERROR [LINENO LOG_FD] cannam@167: # ---------------------------------------- cannam@167: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are cannam@167: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the cannam@167: # script with STATUS, using 1 if that was 0. cannam@167: as_fn_error () cannam@167: { cannam@167: as_status=$1; test $as_status -eq 0 && as_status=1 cannam@167: if test "$4"; then cannam@167: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack cannam@167: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 cannam@167: fi cannam@167: $as_echo "$as_me: error: $2" >&2 cannam@167: as_fn_exit $as_status cannam@167: } # as_fn_error cannam@167: cannam@167: cannam@167: # as_fn_set_status STATUS cannam@167: # ----------------------- cannam@167: # Set $? to STATUS, without forking. cannam@167: as_fn_set_status () cannam@167: { cannam@167: return $1 cannam@167: } # as_fn_set_status cannam@167: cannam@167: # as_fn_exit STATUS cannam@167: # ----------------- cannam@167: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. cannam@167: as_fn_exit () cannam@167: { cannam@167: set +e cannam@167: as_fn_set_status $1 cannam@167: exit $1 cannam@167: } # as_fn_exit cannam@167: cannam@167: # as_fn_unset VAR cannam@167: # --------------- cannam@167: # Portably unset VAR. cannam@167: as_fn_unset () cannam@167: { cannam@167: { eval $1=; unset $1;} cannam@167: } cannam@167: as_unset=as_fn_unset cannam@167: # as_fn_append VAR VALUE cannam@167: # ---------------------- cannam@167: # Append the text in VALUE to the end of the definition contained in VAR. Take cannam@167: # advantage of any shell optimizations that allow amortized linear growth over cannam@167: # repeated appends, instead of the typical quadratic growth present in naive cannam@167: # implementations. cannam@167: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : cannam@167: eval 'as_fn_append () cannam@167: { cannam@167: eval $1+=\$2 cannam@167: }' cannam@167: else cannam@167: as_fn_append () cannam@167: { cannam@167: eval $1=\$$1\$2 cannam@167: } cannam@167: fi # as_fn_append cannam@167: cannam@167: # as_fn_arith ARG... cannam@167: # ------------------ cannam@167: # Perform arithmetic evaluation on the ARGs, and store the result in the cannam@167: # global $as_val. Take advantage of shells that can avoid forks. The arguments cannam@167: # must be portable across $(()) and expr. cannam@167: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : cannam@167: eval 'as_fn_arith () cannam@167: { cannam@167: as_val=$(( $* )) cannam@167: }' cannam@167: else cannam@167: as_fn_arith () cannam@167: { cannam@167: as_val=`expr "$@" || test $? -eq 1` cannam@167: } cannam@167: fi # as_fn_arith cannam@167: cannam@167: cannam@167: if expr a : '\(a\)' >/dev/null 2>&1 && cannam@167: test "X`expr 00001 : '.*\(...\)'`" = X001; then cannam@167: as_expr=expr cannam@167: else cannam@167: as_expr=false cannam@167: fi cannam@167: cannam@167: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then cannam@167: as_basename=basename cannam@167: else cannam@167: as_basename=false cannam@167: fi cannam@167: cannam@167: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then cannam@167: as_dirname=dirname cannam@167: else cannam@167: as_dirname=false cannam@167: fi cannam@167: cannam@167: as_me=`$as_basename -- "$0" || cannam@167: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ cannam@167: X"$0" : 'X\(//\)$' \| \ cannam@167: X"$0" : 'X\(/\)' \| . 2>/dev/null || cannam@167: $as_echo X/"$0" | cannam@167: sed '/^.*\/\([^/][^/]*\)\/*$/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\/\(\/\/\)$/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\/\(\/\).*/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: s/.*/./; q'` cannam@167: cannam@167: # Avoid depending upon Character Ranges. cannam@167: as_cr_letters='abcdefghijklmnopqrstuvwxyz' cannam@167: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' cannam@167: as_cr_Letters=$as_cr_letters$as_cr_LETTERS cannam@167: as_cr_digits='0123456789' cannam@167: as_cr_alnum=$as_cr_Letters$as_cr_digits cannam@167: cannam@167: ECHO_C= ECHO_N= ECHO_T= cannam@167: case `echo -n x` in #((((( cannam@167: -n*) cannam@167: case `echo 'xy\c'` in cannam@167: *c*) ECHO_T=' ';; # ECHO_T is single tab character. cannam@167: xy) ECHO_C='\c';; cannam@167: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null cannam@167: ECHO_T=' ';; cannam@167: esac;; cannam@167: *) cannam@167: ECHO_N='-n';; cannam@167: esac cannam@167: cannam@167: rm -f conf$$ conf$$.exe conf$$.file cannam@167: if test -d conf$$.dir; then cannam@167: rm -f conf$$.dir/conf$$.file cannam@167: else cannam@167: rm -f conf$$.dir cannam@167: mkdir conf$$.dir 2>/dev/null cannam@167: fi cannam@167: if (echo >conf$$.file) 2>/dev/null; then cannam@167: if ln -s conf$$.file conf$$ 2>/dev/null; then cannam@167: as_ln_s='ln -s' cannam@167: # ... but there are two gotchas: cannam@167: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. cannam@167: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. cannam@167: # In both cases, we have to default to `cp -pR'. cannam@167: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || cannam@167: as_ln_s='cp -pR' cannam@167: elif ln conf$$.file conf$$ 2>/dev/null; then cannam@167: as_ln_s=ln cannam@167: else cannam@167: as_ln_s='cp -pR' cannam@167: fi cannam@167: else cannam@167: as_ln_s='cp -pR' cannam@167: fi cannam@167: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file cannam@167: rmdir conf$$.dir 2>/dev/null cannam@167: cannam@167: cannam@167: # as_fn_mkdir_p cannam@167: # ------------- cannam@167: # Create "$as_dir" as a directory, including parents if necessary. cannam@167: as_fn_mkdir_p () cannam@167: { cannam@167: cannam@167: case $as_dir in #( cannam@167: -*) as_dir=./$as_dir;; cannam@167: esac cannam@167: test -d "$as_dir" || eval $as_mkdir_p || { cannam@167: as_dirs= cannam@167: while :; do cannam@167: case $as_dir in #( cannam@167: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( cannam@167: *) as_qdir=$as_dir;; cannam@167: esac cannam@167: as_dirs="'$as_qdir' $as_dirs" cannam@167: as_dir=`$as_dirname -- "$as_dir" || cannam@167: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@167: X"$as_dir" : 'X\(//\)[^/]' \| \ cannam@167: X"$as_dir" : 'X\(//\)$' \| \ cannam@167: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || cannam@167: $as_echo X"$as_dir" | cannam@167: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\/\)[^/].*/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\/\)$/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\).*/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: s/.*/./; q'` cannam@167: test -d "$as_dir" && break cannam@167: done cannam@167: test -z "$as_dirs" || eval "mkdir $as_dirs" cannam@167: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" cannam@167: cannam@167: cannam@167: } # as_fn_mkdir_p cannam@167: if mkdir -p . 2>/dev/null; then cannam@167: as_mkdir_p='mkdir -p "$as_dir"' cannam@167: else cannam@167: test -d ./-p && rmdir ./-p cannam@167: as_mkdir_p=false cannam@167: fi cannam@167: cannam@167: cannam@167: # as_fn_executable_p FILE cannam@167: # ----------------------- cannam@167: # Test if FILE is an executable regular file. cannam@167: as_fn_executable_p () cannam@167: { cannam@167: test -f "$1" && test -x "$1" cannam@167: } # as_fn_executable_p cannam@167: as_test_x='test -x' cannam@167: as_executable_p=as_fn_executable_p cannam@167: cannam@167: # Sed expression to map a string onto a valid CPP name. cannam@167: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" cannam@167: cannam@167: # Sed expression to map a string onto a valid variable name. cannam@167: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" cannam@167: cannam@167: cannam@167: exec 6>&1 cannam@167: ## ----------------------------------- ## cannam@167: ## Main body of $CONFIG_STATUS script. ## cannam@167: ## ----------------------------------- ## cannam@167: _ASEOF cannam@167: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cannam@167: cannam@167: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@167: # Save the log message, to keep $0 and so on meaningful, and to cannam@167: # report actual input values of CONFIG_FILES etc. instead of their cannam@167: # values after options handling. cannam@167: ac_log=" cannam@167: This file was extended by fftw $as_me 3.3.8, which was cannam@167: generated by GNU Autoconf 2.69. Invocation command line was cannam@167: cannam@167: CONFIG_FILES = $CONFIG_FILES cannam@167: CONFIG_HEADERS = $CONFIG_HEADERS cannam@167: CONFIG_LINKS = $CONFIG_LINKS cannam@167: CONFIG_COMMANDS = $CONFIG_COMMANDS cannam@167: $ $0 $@ cannam@167: cannam@167: on `(hostname || uname -n) 2>/dev/null | sed 1q` cannam@167: " cannam@167: cannam@167: _ACEOF cannam@167: cannam@167: case $ac_config_files in *" cannam@167: "*) set x $ac_config_files; shift; ac_config_files=$*;; cannam@167: esac cannam@167: cannam@167: case $ac_config_headers in *" cannam@167: "*) set x $ac_config_headers; shift; ac_config_headers=$*;; cannam@167: esac cannam@167: cannam@167: cannam@167: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@167: # Files that config.status was made for. cannam@167: config_files="$ac_config_files" cannam@167: config_headers="$ac_config_headers" cannam@167: config_commands="$ac_config_commands" cannam@167: cannam@167: _ACEOF cannam@167: cannam@167: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@167: ac_cs_usage="\ cannam@167: \`$as_me' instantiates files and other configuration actions cannam@167: from templates according to the current configuration. Unless the files cannam@167: and actions are specified as TAGs, all are instantiated by default. cannam@167: cannam@167: Usage: $0 [OPTION]... [TAG]... cannam@167: cannam@167: -h, --help print this help, then exit cannam@167: -V, --version print version number and configuration settings, then exit cannam@167: --config print configuration, then exit cannam@167: -q, --quiet, --silent cannam@167: do not print progress messages cannam@167: -d, --debug don't remove temporary files cannam@167: --recheck update $as_me by reconfiguring in the same conditions cannam@167: --file=FILE[:TEMPLATE] cannam@167: instantiate the configuration file FILE cannam@167: --header=FILE[:TEMPLATE] cannam@167: instantiate the configuration header FILE cannam@167: cannam@167: Configuration files: cannam@167: $config_files cannam@167: cannam@167: Configuration headers: cannam@167: $config_headers cannam@167: cannam@167: Configuration commands: cannam@167: $config_commands cannam@167: cannam@167: Report bugs to ." cannam@167: cannam@167: _ACEOF cannam@167: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@167: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" cannam@167: ac_cs_version="\\ cannam@167: fftw config.status 3.3.8 cannam@167: configured by $0, generated by GNU Autoconf 2.69, cannam@167: with options \\"\$ac_cs_config\\" cannam@167: cannam@167: Copyright (C) 2012 Free Software Foundation, Inc. cannam@167: This config.status script is free software; the Free Software Foundation cannam@167: gives unlimited permission to copy, distribute and modify it." cannam@167: cannam@167: ac_pwd='$ac_pwd' cannam@167: srcdir='$srcdir' cannam@167: INSTALL='$INSTALL' cannam@167: MKDIR_P='$MKDIR_P' cannam@167: AWK='$AWK' cannam@167: test -n "\$AWK" || AWK=awk cannam@167: _ACEOF cannam@167: cannam@167: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@167: # The default lists apply if the user does not specify any file. cannam@167: ac_need_defaults=: cannam@167: while test $# != 0 cannam@167: do cannam@167: case $1 in cannam@167: --*=?*) cannam@167: ac_option=`expr "X$1" : 'X\([^=]*\)='` cannam@167: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` cannam@167: ac_shift=: cannam@167: ;; cannam@167: --*=) cannam@167: ac_option=`expr "X$1" : 'X\([^=]*\)='` cannam@167: ac_optarg= cannam@167: ac_shift=: cannam@167: ;; cannam@167: *) cannam@167: ac_option=$1 cannam@167: ac_optarg=$2 cannam@167: ac_shift=shift cannam@167: ;; cannam@167: esac cannam@167: cannam@167: case $ac_option in cannam@167: # Handling of the options. cannam@167: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) cannam@167: ac_cs_recheck=: ;; cannam@167: --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) cannam@167: $as_echo "$ac_cs_version"; exit ;; cannam@167: --config | --confi | --conf | --con | --co | --c ) cannam@167: $as_echo "$ac_cs_config"; exit ;; cannam@167: --debug | --debu | --deb | --de | --d | -d ) cannam@167: debug=: ;; cannam@167: --file | --fil | --fi | --f ) cannam@167: $ac_shift cannam@167: case $ac_optarg in cannam@167: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; cannam@167: '') as_fn_error $? "missing file argument" ;; cannam@167: esac cannam@167: as_fn_append CONFIG_FILES " '$ac_optarg'" cannam@167: ac_need_defaults=false;; cannam@167: --header | --heade | --head | --hea ) cannam@167: $ac_shift cannam@167: case $ac_optarg in cannam@167: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; cannam@167: esac cannam@167: as_fn_append CONFIG_HEADERS " '$ac_optarg'" cannam@167: ac_need_defaults=false;; cannam@167: --he | --h) cannam@167: # Conflict between --help and --header cannam@167: as_fn_error $? "ambiguous option: \`$1' cannam@167: Try \`$0 --help' for more information.";; cannam@167: --help | --hel | -h ) cannam@167: $as_echo "$ac_cs_usage"; exit ;; cannam@167: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ cannam@167: | -silent | --silent | --silen | --sile | --sil | --si | --s) cannam@167: ac_cs_silent=: ;; cannam@167: cannam@167: # This is an error. cannam@167: -*) as_fn_error $? "unrecognized option: \`$1' cannam@167: Try \`$0 --help' for more information." ;; cannam@167: cannam@167: *) as_fn_append ac_config_targets " $1" cannam@167: ac_need_defaults=false ;; cannam@167: cannam@167: esac cannam@167: shift cannam@167: done cannam@167: cannam@167: ac_configure_extra_args= cannam@167: cannam@167: if $ac_cs_silent; then cannam@167: exec 6>/dev/null cannam@167: ac_configure_extra_args="$ac_configure_extra_args --silent" cannam@167: fi cannam@167: cannam@167: _ACEOF cannam@167: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@167: if \$ac_cs_recheck; then cannam@167: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion cannam@167: shift cannam@167: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 cannam@167: CONFIG_SHELL='$SHELL' cannam@167: export CONFIG_SHELL cannam@167: exec "\$@" cannam@167: fi cannam@167: cannam@167: _ACEOF cannam@167: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@167: exec 5>>config.log cannam@167: { cannam@167: echo cannam@167: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX cannam@167: ## Running $as_me. ## cannam@167: _ASBOX cannam@167: $as_echo "$ac_log" cannam@167: } >&5 cannam@167: cannam@167: _ACEOF cannam@167: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@167: # cannam@167: # INIT-COMMANDS cannam@167: # cannam@167: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" cannam@167: cannam@167: cannam@167: # The HP-UX ksh and POSIX shell print the target directory to stdout cannam@167: # if CDPATH is set. cannam@167: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH cannam@167: cannam@167: sed_quote_subst='$sed_quote_subst' cannam@167: double_quote_subst='$double_quote_subst' cannam@167: delay_variable_subst='$delay_variable_subst' cannam@167: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' cannam@167: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' cannam@167: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' cannam@167: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' cannam@167: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' cannam@167: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' cannam@167: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' cannam@167: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' cannam@167: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' cannam@167: shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' cannam@167: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' cannam@167: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' cannam@167: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' cannam@167: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' cannam@167: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' cannam@167: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' cannam@167: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' cannam@167: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' cannam@167: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' cannam@167: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' cannam@167: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' cannam@167: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' cannam@167: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' cannam@167: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' cannam@167: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' cannam@167: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' cannam@167: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' cannam@167: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' cannam@167: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' cannam@167: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' cannam@167: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' cannam@167: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' cannam@167: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' cannam@167: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' cannam@167: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' cannam@167: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' cannam@167: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' cannam@167: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' cannam@167: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' cannam@167: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' cannam@167: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' cannam@167: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' cannam@167: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' cannam@167: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' cannam@167: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' cannam@167: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' cannam@167: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' cannam@167: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' cannam@167: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' cannam@167: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' cannam@167: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' cannam@167: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' cannam@167: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' cannam@167: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' cannam@167: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' cannam@167: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' cannam@167: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' cannam@167: lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' cannam@167: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' cannam@167: 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"`' cannam@167: lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' cannam@167: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' cannam@167: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' cannam@167: lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' cannam@167: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' cannam@167: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' cannam@167: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' cannam@167: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' cannam@167: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' cannam@167: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' cannam@167: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' cannam@167: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' cannam@167: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' cannam@167: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' cannam@167: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' cannam@167: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' cannam@167: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' cannam@167: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' cannam@167: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' cannam@167: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' cannam@167: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' cannam@167: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' cannam@167: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' cannam@167: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' cannam@167: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' cannam@167: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' cannam@167: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' cannam@167: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' cannam@167: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' cannam@167: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' cannam@167: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' cannam@167: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' cannam@167: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' cannam@167: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' cannam@167: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' cannam@167: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' cannam@167: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' cannam@167: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' cannam@167: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' cannam@167: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' cannam@167: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' cannam@167: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' cannam@167: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' cannam@167: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' cannam@167: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' cannam@167: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' cannam@167: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' cannam@167: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' cannam@167: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' cannam@167: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' cannam@167: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' cannam@167: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' cannam@167: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' cannam@167: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' cannam@167: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' cannam@167: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' cannam@167: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' cannam@167: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' cannam@167: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' cannam@167: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' cannam@167: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' cannam@167: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' cannam@167: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' cannam@167: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' cannam@167: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' cannam@167: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' cannam@167: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' cannam@167: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' cannam@167: configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' cannam@167: configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' cannam@167: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' cannam@167: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' cannam@167: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' cannam@167: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' cannam@167: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' cannam@167: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' cannam@167: LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`' cannam@167: reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`' cannam@167: reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`' cannam@167: old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`' cannam@167: compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`' cannam@167: GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`' cannam@167: lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`' cannam@167: lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`' cannam@167: lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`' cannam@167: lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`' cannam@167: lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`' cannam@167: archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`' cannam@167: enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`' cannam@167: export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`' cannam@167: whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`' cannam@167: compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`' cannam@167: old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`' cannam@167: old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`' cannam@167: archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`' cannam@167: archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' cannam@167: module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`' cannam@167: module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' cannam@167: with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`' cannam@167: allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' cannam@167: no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' cannam@167: hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`' cannam@167: hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`' cannam@167: hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`' cannam@167: hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`' cannam@167: hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`' cannam@167: hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`' cannam@167: hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`' cannam@167: inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`' cannam@167: link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`' cannam@167: always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`' cannam@167: export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`' cannam@167: exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`' cannam@167: include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`' cannam@167: prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`' cannam@167: postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`' cannam@167: file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`' cannam@167: hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`' cannam@167: cannam@167: LTCC='$LTCC' cannam@167: LTCFLAGS='$LTCFLAGS' cannam@167: compiler='$compiler_DEFAULT' cannam@167: cannam@167: # A function that is used when there is no print builtin or printf. cannam@167: func_fallback_echo () cannam@167: { cannam@167: eval 'cat <<_LTECHO_EOF cannam@167: \$1 cannam@167: _LTECHO_EOF' cannam@167: } cannam@167: cannam@167: # Quote evaled strings. cannam@167: for var in AS \ cannam@167: DLLTOOL \ cannam@167: OBJDUMP \ cannam@167: SHELL \ cannam@167: ECHO \ cannam@167: PATH_SEPARATOR \ cannam@167: SED \ cannam@167: GREP \ cannam@167: EGREP \ cannam@167: FGREP \ cannam@167: LD \ cannam@167: NM \ cannam@167: LN_S \ cannam@167: lt_SP2NL \ cannam@167: lt_NL2SP \ cannam@167: reload_flag \ cannam@167: deplibs_check_method \ cannam@167: file_magic_cmd \ cannam@167: file_magic_glob \ cannam@167: want_nocaseglob \ cannam@167: sharedlib_from_linklib_cmd \ cannam@167: AR \ cannam@167: AR_FLAGS \ cannam@167: archiver_list_spec \ cannam@167: STRIP \ cannam@167: RANLIB \ cannam@167: CC \ cannam@167: CFLAGS \ cannam@167: compiler \ cannam@167: lt_cv_sys_global_symbol_pipe \ cannam@167: lt_cv_sys_global_symbol_to_cdecl \ cannam@167: lt_cv_sys_global_symbol_to_import \ cannam@167: lt_cv_sys_global_symbol_to_c_name_address \ cannam@167: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ cannam@167: lt_cv_nm_interface \ cannam@167: nm_file_list_spec \ cannam@167: lt_cv_truncate_bin \ cannam@167: lt_prog_compiler_no_builtin_flag \ cannam@167: lt_prog_compiler_pic \ cannam@167: lt_prog_compiler_wl \ cannam@167: lt_prog_compiler_static \ cannam@167: lt_cv_prog_compiler_c_o \ cannam@167: need_locks \ cannam@167: MANIFEST_TOOL \ cannam@167: DSYMUTIL \ cannam@167: NMEDIT \ cannam@167: LIPO \ cannam@167: OTOOL \ cannam@167: OTOOL64 \ cannam@167: shrext_cmds \ cannam@167: export_dynamic_flag_spec \ cannam@167: whole_archive_flag_spec \ cannam@167: compiler_needs_object \ cannam@167: with_gnu_ld \ cannam@167: allow_undefined_flag \ cannam@167: no_undefined_flag \ cannam@167: hardcode_libdir_flag_spec \ cannam@167: hardcode_libdir_separator \ cannam@167: exclude_expsyms \ cannam@167: include_expsyms \ cannam@167: file_list_spec \ cannam@167: variables_saved_for_relink \ cannam@167: libname_spec \ cannam@167: library_names_spec \ cannam@167: soname_spec \ cannam@167: install_override_mode \ cannam@167: finish_eval \ cannam@167: old_striplib \ cannam@167: striplib \ cannam@167: LD_F77 \ cannam@167: reload_flag_F77 \ cannam@167: compiler_F77 \ cannam@167: lt_prog_compiler_no_builtin_flag_F77 \ cannam@167: lt_prog_compiler_pic_F77 \ cannam@167: lt_prog_compiler_wl_F77 \ cannam@167: lt_prog_compiler_static_F77 \ cannam@167: lt_cv_prog_compiler_c_o_F77 \ cannam@167: export_dynamic_flag_spec_F77 \ cannam@167: whole_archive_flag_spec_F77 \ cannam@167: compiler_needs_object_F77 \ cannam@167: with_gnu_ld_F77 \ cannam@167: allow_undefined_flag_F77 \ cannam@167: no_undefined_flag_F77 \ cannam@167: hardcode_libdir_flag_spec_F77 \ cannam@167: hardcode_libdir_separator_F77 \ cannam@167: exclude_expsyms_F77 \ cannam@167: include_expsyms_F77 \ cannam@167: file_list_spec_F77; do cannam@167: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in cannam@167: *[\\\\\\\`\\"\\\$]*) cannam@167: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes cannam@167: ;; cannam@167: *) cannam@167: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" cannam@167: ;; cannam@167: esac cannam@167: done cannam@167: cannam@167: # Double-quote double-evaled strings. cannam@167: for var in reload_cmds \ cannam@167: old_postinstall_cmds \ cannam@167: old_postuninstall_cmds \ cannam@167: old_archive_cmds \ cannam@167: extract_expsyms_cmds \ cannam@167: old_archive_from_new_cmds \ cannam@167: old_archive_from_expsyms_cmds \ cannam@167: archive_cmds \ cannam@167: archive_expsym_cmds \ cannam@167: module_cmds \ cannam@167: module_expsym_cmds \ cannam@167: export_symbols_cmds \ cannam@167: prelink_cmds \ cannam@167: postlink_cmds \ cannam@167: postinstall_cmds \ cannam@167: postuninstall_cmds \ cannam@167: finish_cmds \ cannam@167: sys_lib_search_path_spec \ cannam@167: configure_time_dlsearch_path \ cannam@167: configure_time_lt_sys_library_path \ cannam@167: reload_cmds_F77 \ cannam@167: old_archive_cmds_F77 \ cannam@167: old_archive_from_new_cmds_F77 \ cannam@167: old_archive_from_expsyms_cmds_F77 \ cannam@167: archive_cmds_F77 \ cannam@167: archive_expsym_cmds_F77 \ cannam@167: module_cmds_F77 \ cannam@167: module_expsym_cmds_F77 \ cannam@167: export_symbols_cmds_F77 \ cannam@167: prelink_cmds_F77 \ cannam@167: postlink_cmds_F77; do cannam@167: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in cannam@167: *[\\\\\\\`\\"\\\$]*) cannam@167: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes cannam@167: ;; cannam@167: *) cannam@167: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" cannam@167: ;; cannam@167: esac cannam@167: done cannam@167: cannam@167: ac_aux_dir='$ac_aux_dir' cannam@167: cannam@167: # See if we are running on zsh, and set the options that allow our cannam@167: # commands through without removal of \ escapes INIT. cannam@167: if test -n "\${ZSH_VERSION+set}"; then cannam@167: setopt NO_GLOB_SUBST cannam@167: fi cannam@167: cannam@167: cannam@167: PACKAGE='$PACKAGE' cannam@167: VERSION='$VERSION' cannam@167: RM='$RM' cannam@167: ofile='$ofile' cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: cannam@167: _ACEOF cannam@167: cannam@167: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@167: cannam@167: # Handling of arguments. cannam@167: for ac_config_target in $ac_config_targets cannam@167: do cannam@167: case $ac_config_target in cannam@167: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; cannam@167: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; cannam@167: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; cannam@167: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; cannam@167: "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;; cannam@167: "genfft/Makefile") CONFIG_FILES="$CONFIG_FILES genfft/Makefile" ;; cannam@167: "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;; cannam@167: "simd-support/Makefile") CONFIG_FILES="$CONFIG_FILES simd-support/Makefile" ;; cannam@167: "dft/Makefile") CONFIG_FILES="$CONFIG_FILES dft/Makefile" ;; cannam@167: "dft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/Makefile" ;; cannam@167: "dft/scalar/codelets/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/codelets/Makefile" ;; cannam@167: "dft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/Makefile" ;; cannam@167: "dft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/common/Makefile" ;; cannam@167: "dft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/sse2/Makefile" ;; cannam@167: "dft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx/Makefile" ;; cannam@167: "dft/simd/avx-128-fma/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx-128-fma/Makefile" ;; cannam@167: "dft/simd/avx2/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx2/Makefile" ;; cannam@167: "dft/simd/avx2-128/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx2-128/Makefile" ;; cannam@167: "dft/simd/avx512/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx512/Makefile" ;; cannam@167: "dft/simd/kcvi/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/kcvi/Makefile" ;; cannam@167: "dft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/altivec/Makefile" ;; cannam@167: "dft/simd/vsx/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/vsx/Makefile" ;; cannam@167: "dft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/neon/Makefile" ;; cannam@167: "dft/simd/generic-simd128/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/generic-simd128/Makefile" ;; cannam@167: "dft/simd/generic-simd256/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/generic-simd256/Makefile" ;; cannam@167: "rdft/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/Makefile" ;; cannam@167: "rdft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/Makefile" ;; cannam@167: "rdft/scalar/r2cf/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cf/Makefile" ;; cannam@167: "rdft/scalar/r2cb/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cb/Makefile" ;; cannam@167: "rdft/scalar/r2r/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2r/Makefile" ;; cannam@167: "rdft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/Makefile" ;; cannam@167: "rdft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/common/Makefile" ;; cannam@167: "rdft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/sse2/Makefile" ;; cannam@167: "rdft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx/Makefile" ;; cannam@167: "rdft/simd/avx-128-fma/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx-128-fma/Makefile" ;; cannam@167: "rdft/simd/avx2/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx2/Makefile" ;; cannam@167: "rdft/simd/avx2-128/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx2-128/Makefile" ;; cannam@167: "rdft/simd/avx512/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx512/Makefile" ;; cannam@167: "rdft/simd/kcvi/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/kcvi/Makefile" ;; cannam@167: "rdft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/altivec/Makefile" ;; cannam@167: "rdft/simd/vsx/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/vsx/Makefile" ;; cannam@167: "rdft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/neon/Makefile" ;; cannam@167: "rdft/simd/generic-simd128/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/generic-simd128/Makefile" ;; cannam@167: "rdft/simd/generic-simd256/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/generic-simd256/Makefile" ;; cannam@167: "reodft/Makefile") CONFIG_FILES="$CONFIG_FILES reodft/Makefile" ;; cannam@167: "threads/Makefile") CONFIG_FILES="$CONFIG_FILES threads/Makefile" ;; cannam@167: "api/Makefile") CONFIG_FILES="$CONFIG_FILES api/Makefile" ;; cannam@167: "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;; cannam@167: "libbench2/Makefile") CONFIG_FILES="$CONFIG_FILES libbench2/Makefile" ;; cannam@167: "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; cannam@167: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; cannam@167: "doc/FAQ/Makefile") CONFIG_FILES="$CONFIG_FILES doc/FAQ/Makefile" ;; cannam@167: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; cannam@167: "tools/fftw_wisdom.1") CONFIG_FILES="$CONFIG_FILES tools/fftw_wisdom.1" ;; cannam@167: "tools/fftw-wisdom-to-conf") CONFIG_FILES="$CONFIG_FILES tools/fftw-wisdom-to-conf" ;; cannam@167: "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; cannam@167: "fftw.pc") CONFIG_FILES="$CONFIG_FILES fftw.pc" ;; cannam@167: cannam@167: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; cannam@167: esac cannam@167: done cannam@167: cannam@167: cannam@167: # If the user did not use the arguments to specify the items to instantiate, cannam@167: # then the envvar interface is used. Set only those that are not. cannam@167: # We use the long form for the default assignment because of an extremely cannam@167: # bizarre bug on SunOS 4.1.3. cannam@167: if $ac_need_defaults; then cannam@167: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files cannam@167: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers cannam@167: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands cannam@167: fi cannam@167: cannam@167: # Have a temporary directory for convenience. Make it in the build tree cannam@167: # simply because there is no reason against having it here, and in addition, cannam@167: # creating and moving files from /tmp can sometimes cause problems. cannam@167: # Hook for its removal unless debugging. cannam@167: # Note that there is a small window in which the directory will not be cleaned: cannam@167: # after its creation but before its name has been assigned to `$tmp'. cannam@167: $debug || cannam@167: { cannam@167: tmp= ac_tmp= cannam@167: trap 'exit_status=$? cannam@167: : "${ac_tmp:=$tmp}" cannam@167: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status cannam@167: ' 0 cannam@167: trap 'as_fn_exit 1' 1 2 13 15 cannam@167: } cannam@167: # Create a (secure) tmp directory for tmp files. cannam@167: cannam@167: { cannam@167: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && cannam@167: test -d "$tmp" cannam@167: } || cannam@167: { cannam@167: tmp=./conf$$-$RANDOM cannam@167: (umask 077 && mkdir "$tmp") cannam@167: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 cannam@167: ac_tmp=$tmp cannam@167: cannam@167: # Set up the scripts for CONFIG_FILES section. cannam@167: # No need to generate them if there are no CONFIG_FILES. cannam@167: # This happens for instance with `./config.status config.h'. cannam@167: if test -n "$CONFIG_FILES"; then cannam@167: cannam@167: cannam@167: ac_cr=`echo X | tr X '\015'` cannam@167: # On cygwin, bash can eat \r inside `` if the user requested igncr. cannam@167: # But we know of no other shell where ac_cr would be empty at this cannam@167: # point, so we can use a bashism as a fallback. cannam@167: if test "x$ac_cr" = x; then cannam@167: eval ac_cr=\$\'\\r\' cannam@167: fi cannam@167: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` cannam@167: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then cannam@167: ac_cs_awk_cr='\\r' cannam@167: else cannam@167: ac_cs_awk_cr=$ac_cr cannam@167: fi cannam@167: cannam@167: echo 'BEGIN {' >"$ac_tmp/subs1.awk" && cannam@167: _ACEOF cannam@167: cannam@167: cannam@167: { cannam@167: echo "cat >conf$$subs.awk <<_ACEOF" && cannam@167: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && cannam@167: echo "_ACEOF" cannam@167: } >conf$$subs.sh || cannam@167: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 cannam@167: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` cannam@167: ac_delim='%!_!# ' cannam@167: for ac_last_try in false false false false false :; do cannam@167: . ./conf$$subs.sh || cannam@167: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 cannam@167: cannam@167: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` cannam@167: if test $ac_delim_n = $ac_delim_num; then cannam@167: break cannam@167: elif $ac_last_try; then cannam@167: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 cannam@167: else cannam@167: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " cannam@167: fi cannam@167: done cannam@167: rm -f conf$$subs.sh cannam@167: cannam@167: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@167: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && cannam@167: _ACEOF cannam@167: sed -n ' cannam@167: h cannam@167: s/^/S["/; s/!.*/"]=/ cannam@167: p cannam@167: g cannam@167: s/^[^!]*!// cannam@167: :repl cannam@167: t repl cannam@167: s/'"$ac_delim"'$// cannam@167: t delim cannam@167: :nl cannam@167: h cannam@167: s/\(.\{148\}\)..*/\1/ cannam@167: t more1 cannam@167: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ cannam@167: p cannam@167: n cannam@167: b repl cannam@167: :more1 cannam@167: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ cannam@167: p cannam@167: g cannam@167: s/.\{148\}// cannam@167: t nl cannam@167: :delim cannam@167: h cannam@167: s/\(.\{148\}\)..*/\1/ cannam@167: t more2 cannam@167: s/["\\]/\\&/g; s/^/"/; s/$/"/ cannam@167: p cannam@167: b cannam@167: :more2 cannam@167: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ cannam@167: p cannam@167: g cannam@167: s/.\{148\}// cannam@167: t delim cannam@167: ' >$CONFIG_STATUS || ac_write_fail=1 cannam@167: rm -f conf$$subs.awk cannam@167: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@167: _ACAWK cannam@167: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && cannam@167: for (key in S) S_is_set[key] = 1 cannam@167: FS = "" cannam@167: cannam@167: } cannam@167: { cannam@167: line = $ 0 cannam@167: nfields = split(line, field, "@") cannam@167: substed = 0 cannam@167: len = length(field[1]) cannam@167: for (i = 2; i < nfields; i++) { cannam@167: key = field[i] cannam@167: keylen = length(key) cannam@167: if (S_is_set[key]) { cannam@167: value = S[key] cannam@167: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) cannam@167: len += length(value) + length(field[++i]) cannam@167: substed = 1 cannam@167: } else cannam@167: len += 1 + keylen cannam@167: } cannam@167: cannam@167: print line cannam@167: } cannam@167: cannam@167: _ACAWK cannam@167: _ACEOF cannam@167: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@167: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then cannam@167: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" cannam@167: else cannam@167: cat cannam@167: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ cannam@167: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 cannam@167: _ACEOF cannam@167: cannam@167: # VPATH may cause trouble with some makes, so we remove sole $(srcdir), cannam@167: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and cannam@167: # trailing colons and then remove the whole line if VPATH becomes empty cannam@167: # (actually we leave an empty line to preserve line numbers). cannam@167: if test "x$srcdir" = x.; then cannam@167: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ cannam@167: h cannam@167: s/// cannam@167: s/^/:/ cannam@167: s/[ ]*$/:/ cannam@167: s/:\$(srcdir):/:/g cannam@167: s/:\${srcdir}:/:/g cannam@167: s/:@srcdir@:/:/g cannam@167: s/^:*// cannam@167: s/:*$// cannam@167: x cannam@167: s/\(=[ ]*\).*/\1/ cannam@167: G cannam@167: s/\n// cannam@167: s/^[^=]*=[ ]*$// cannam@167: }' cannam@167: fi cannam@167: cannam@167: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@167: fi # test -n "$CONFIG_FILES" cannam@167: cannam@167: # Set up the scripts for CONFIG_HEADERS section. cannam@167: # No need to generate them if there are no CONFIG_HEADERS. cannam@167: # This happens for instance with `./config.status Makefile'. cannam@167: if test -n "$CONFIG_HEADERS"; then cannam@167: cat >"$ac_tmp/defines.awk" <<\_ACAWK || cannam@167: BEGIN { cannam@167: _ACEOF cannam@167: cannam@167: # Transform confdefs.h into an awk script `defines.awk', embedded as cannam@167: # here-document in config.status, that substitutes the proper values into cannam@167: # config.h.in to produce config.h. cannam@167: cannam@167: # Create a delimiter string that does not exist in confdefs.h, to ease cannam@167: # handling of long lines. cannam@167: ac_delim='%!_!# ' cannam@167: for ac_last_try in false false :; do cannam@167: ac_tt=`sed -n "/$ac_delim/p" confdefs.h` cannam@167: if test -z "$ac_tt"; then cannam@167: break cannam@167: elif $ac_last_try; then cannam@167: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 cannam@167: else cannam@167: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " cannam@167: fi cannam@167: done cannam@167: cannam@167: # For the awk script, D is an array of macro values keyed by name, cannam@167: # likewise P contains macro parameters if any. Preserve backslash cannam@167: # newline sequences. cannam@167: cannam@167: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* cannam@167: sed -n ' cannam@167: s/.\{148\}/&'"$ac_delim"'/g cannam@167: t rset cannam@167: :rset cannam@167: s/^[ ]*#[ ]*define[ ][ ]*/ / cannam@167: t def cannam@167: d cannam@167: :def cannam@167: s/\\$// cannam@167: t bsnl cannam@167: s/["\\]/\\&/g cannam@167: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ cannam@167: D["\1"]=" \3"/p cannam@167: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p cannam@167: d cannam@167: :bsnl cannam@167: s/["\\]/\\&/g cannam@167: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ cannam@167: D["\1"]=" \3\\\\\\n"\\/p cannam@167: t cont cannam@167: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p cannam@167: t cont cannam@167: d cannam@167: :cont cannam@167: n cannam@167: s/.\{148\}/&'"$ac_delim"'/g cannam@167: t clear cannam@167: :clear cannam@167: s/\\$// cannam@167: t bsnlc cannam@167: s/["\\]/\\&/g; s/^/"/; s/$/"/p cannam@167: d cannam@167: :bsnlc cannam@167: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p cannam@167: b cont cannam@167: ' >$CONFIG_STATUS || ac_write_fail=1 cannam@167: cannam@167: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@167: for (key in D) D_is_set[key] = 1 cannam@167: FS = "" cannam@167: } cannam@167: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { cannam@167: line = \$ 0 cannam@167: split(line, arg, " ") cannam@167: if (arg[1] == "#") { cannam@167: defundef = arg[2] cannam@167: mac1 = arg[3] cannam@167: } else { cannam@167: defundef = substr(arg[1], 2) cannam@167: mac1 = arg[2] cannam@167: } cannam@167: split(mac1, mac2, "(") #) cannam@167: macro = mac2[1] cannam@167: prefix = substr(line, 1, index(line, defundef) - 1) cannam@167: if (D_is_set[macro]) { cannam@167: # Preserve the white space surrounding the "#". cannam@167: print prefix "define", macro P[macro] D[macro] cannam@167: next cannam@167: } else { cannam@167: # Replace #undef with comments. This is necessary, for example, cannam@167: # in the case of _POSIX_SOURCE, which is predefined and required cannam@167: # on some systems where configure will not decide to define it. cannam@167: if (defundef == "undef") { cannam@167: print "/*", prefix defundef, macro, "*/" cannam@167: next cannam@167: } cannam@167: } cannam@167: } cannam@167: { print } cannam@167: _ACAWK cannam@167: _ACEOF cannam@167: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@167: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 cannam@167: fi # test -n "$CONFIG_HEADERS" cannam@167: cannam@167: cannam@167: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" cannam@167: shift cannam@167: for ac_tag cannam@167: do cannam@167: case $ac_tag in cannam@167: :[FHLC]) ac_mode=$ac_tag; continue;; cannam@167: esac cannam@167: case $ac_mode$ac_tag in cannam@167: :[FHL]*:*);; cannam@167: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; cannam@167: :[FH]-) ac_tag=-:-;; cannam@167: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; cannam@167: esac cannam@167: ac_save_IFS=$IFS cannam@167: IFS=: cannam@167: set x $ac_tag cannam@167: IFS=$ac_save_IFS cannam@167: shift cannam@167: ac_file=$1 cannam@167: shift cannam@167: cannam@167: case $ac_mode in cannam@167: :L) ac_source=$1;; cannam@167: :[FH]) cannam@167: ac_file_inputs= cannam@167: for ac_f cannam@167: do cannam@167: case $ac_f in cannam@167: -) ac_f="$ac_tmp/stdin";; cannam@167: *) # Look for the file first in the build tree, then in the source tree cannam@167: # (if the path is not absolute). The absolute path cannot be DOS-style, cannam@167: # because $ac_f cannot contain `:'. cannam@167: test -f "$ac_f" || cannam@167: case $ac_f in cannam@167: [\\/$]*) false;; cannam@167: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; cannam@167: esac || cannam@167: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; cannam@167: esac cannam@167: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac cannam@167: as_fn_append ac_file_inputs " '$ac_f'" cannam@167: done cannam@167: cannam@167: # Let's still pretend it is `configure' which instantiates (i.e., don't cannam@167: # use $as_me), people would be surprised to read: cannam@167: # /* config.h. Generated by config.status. */ cannam@167: configure_input='Generated from '` cannam@167: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' cannam@167: `' by configure.' cannam@167: if test x"$ac_file" != x-; then cannam@167: configure_input="$ac_file. $configure_input" cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 cannam@167: $as_echo "$as_me: creating $ac_file" >&6;} cannam@167: fi cannam@167: # Neutralize special characters interpreted by sed in replacement strings. cannam@167: case $configure_input in #( cannam@167: *\&* | *\|* | *\\* ) cannam@167: ac_sed_conf_input=`$as_echo "$configure_input" | cannam@167: sed 's/[\\\\&|]/\\\\&/g'`;; #( cannam@167: *) ac_sed_conf_input=$configure_input;; cannam@167: esac cannam@167: cannam@167: case $ac_tag in cannam@167: *:-:* | *:-) cat >"$ac_tmp/stdin" \ cannam@167: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; cannam@167: esac cannam@167: ;; cannam@167: esac cannam@167: cannam@167: ac_dir=`$as_dirname -- "$ac_file" || cannam@167: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@167: X"$ac_file" : 'X\(//\)[^/]' \| \ cannam@167: X"$ac_file" : 'X\(//\)$' \| \ cannam@167: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || cannam@167: $as_echo X"$ac_file" | cannam@167: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\/\)[^/].*/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\/\)$/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\).*/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: s/.*/./; q'` cannam@167: as_dir="$ac_dir"; as_fn_mkdir_p cannam@167: ac_builddir=. cannam@167: cannam@167: case "$ac_dir" in cannam@167: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; cannam@167: *) cannam@167: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` cannam@167: # A ".." for each directory in $ac_dir_suffix. cannam@167: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` cannam@167: case $ac_top_builddir_sub in cannam@167: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; cannam@167: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; cannam@167: esac ;; cannam@167: esac cannam@167: ac_abs_top_builddir=$ac_pwd cannam@167: ac_abs_builddir=$ac_pwd$ac_dir_suffix cannam@167: # for backward compatibility: cannam@167: ac_top_builddir=$ac_top_build_prefix cannam@167: cannam@167: case $srcdir in cannam@167: .) # We are building in place. cannam@167: ac_srcdir=. cannam@167: ac_top_srcdir=$ac_top_builddir_sub cannam@167: ac_abs_top_srcdir=$ac_pwd ;; cannam@167: [\\/]* | ?:[\\/]* ) # Absolute name. cannam@167: ac_srcdir=$srcdir$ac_dir_suffix; cannam@167: ac_top_srcdir=$srcdir cannam@167: ac_abs_top_srcdir=$srcdir ;; cannam@167: *) # Relative name. cannam@167: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix cannam@167: ac_top_srcdir=$ac_top_build_prefix$srcdir cannam@167: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; cannam@167: esac cannam@167: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cannam@167: cannam@167: cannam@167: case $ac_mode in cannam@167: :F) cannam@167: # cannam@167: # CONFIG_FILE cannam@167: # cannam@167: cannam@167: case $INSTALL in cannam@167: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; cannam@167: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; cannam@167: esac cannam@167: ac_MKDIR_P=$MKDIR_P cannam@167: case $MKDIR_P in cannam@167: [\\/$]* | ?:[\\/]* ) ;; cannam@167: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; cannam@167: esac cannam@167: _ACEOF cannam@167: cannam@167: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@167: # If the template does not know about datarootdir, expand it. cannam@167: # FIXME: This hack should be removed a few years after 2.60. cannam@167: ac_datarootdir_hack=; ac_datarootdir_seen= cannam@167: ac_sed_dataroot=' cannam@167: /datarootdir/ { cannam@167: p cannam@167: q cannam@167: } cannam@167: /@datadir@/p cannam@167: /@docdir@/p cannam@167: /@infodir@/p cannam@167: /@localedir@/p cannam@167: /@mandir@/p' cannam@167: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in cannam@167: *datarootdir*) ac_datarootdir_seen=yes;; cannam@167: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 cannam@167: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} cannam@167: _ACEOF cannam@167: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@167: ac_datarootdir_hack=' cannam@167: s&@datadir@&$datadir&g cannam@167: s&@docdir@&$docdir&g cannam@167: s&@infodir@&$infodir&g cannam@167: s&@localedir@&$localedir&g cannam@167: s&@mandir@&$mandir&g cannam@167: s&\\\${datarootdir}&$datarootdir&g' ;; cannam@167: esac cannam@167: _ACEOF cannam@167: cannam@167: # Neutralize VPATH when `$srcdir' = `.'. cannam@167: # Shell code in configure.ac might set extrasub. cannam@167: # FIXME: do we really want to maintain this feature? cannam@167: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cannam@167: ac_sed_extra="$ac_vpsub cannam@167: $extrasub cannam@167: _ACEOF cannam@167: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cannam@167: :t cannam@167: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b cannam@167: s|@configure_input@|$ac_sed_conf_input|;t t cannam@167: s&@top_builddir@&$ac_top_builddir_sub&;t t cannam@167: s&@top_build_prefix@&$ac_top_build_prefix&;t t cannam@167: s&@srcdir@&$ac_srcdir&;t t cannam@167: s&@abs_srcdir@&$ac_abs_srcdir&;t t cannam@167: s&@top_srcdir@&$ac_top_srcdir&;t t cannam@167: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t cannam@167: s&@builddir@&$ac_builddir&;t t cannam@167: s&@abs_builddir@&$ac_abs_builddir&;t t cannam@167: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t cannam@167: s&@INSTALL@&$ac_INSTALL&;t t cannam@167: s&@MKDIR_P@&$ac_MKDIR_P&;t t cannam@167: $ac_datarootdir_hack cannam@167: " cannam@167: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ cannam@167: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 cannam@167: cannam@167: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && cannam@167: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && cannam@167: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ cannam@167: "$ac_tmp/out"`; test -z "$ac_out"; } && cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' cannam@167: which seems to be undefined. Please make sure it is defined" >&5 cannam@167: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' cannam@167: which seems to be undefined. Please make sure it is defined" >&2;} cannam@167: cannam@167: rm -f "$ac_tmp/stdin" cannam@167: case $ac_file in cannam@167: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; cannam@167: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; cannam@167: esac \ cannam@167: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 cannam@167: ;; cannam@167: :H) cannam@167: # cannam@167: # CONFIG_HEADER cannam@167: # cannam@167: if test x"$ac_file" != x-; then cannam@167: { cannam@167: $as_echo "/* $configure_input */" \ cannam@167: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" cannam@167: } >"$ac_tmp/config.h" \ cannam@167: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 cannam@167: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 cannam@167: $as_echo "$as_me: $ac_file is unchanged" >&6;} cannam@167: else cannam@167: rm -f "$ac_file" cannam@167: mv "$ac_tmp/config.h" "$ac_file" \ cannam@167: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 cannam@167: fi cannam@167: else cannam@167: $as_echo "/* $configure_input */" \ cannam@167: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ cannam@167: || as_fn_error $? "could not create -" "$LINENO" 5 cannam@167: fi cannam@167: # Compute "$ac_file"'s index in $config_headers. cannam@167: _am_arg="$ac_file" cannam@167: _am_stamp_count=1 cannam@167: for _am_header in $config_headers :; do cannam@167: case $_am_header in cannam@167: $_am_arg | $_am_arg:* ) cannam@167: break ;; cannam@167: * ) cannam@167: _am_stamp_count=`expr $_am_stamp_count + 1` ;; cannam@167: esac cannam@167: done cannam@167: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || cannam@167: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@167: X"$_am_arg" : 'X\(//\)[^/]' \| \ cannam@167: X"$_am_arg" : 'X\(//\)$' \| \ cannam@167: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || cannam@167: $as_echo X"$_am_arg" | cannam@167: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\/\)[^/].*/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\/\)$/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\).*/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: s/.*/./; q'`/stamp-h$_am_stamp_count cannam@167: ;; cannam@167: cannam@167: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 cannam@167: $as_echo "$as_me: executing $ac_file commands" >&6;} cannam@167: ;; cannam@167: esac cannam@167: cannam@167: cannam@167: case $ac_file$ac_mode in cannam@167: "depfiles":C) test x"$AMDEP_TRUE" != x"" || { cannam@167: # Older Autoconf quotes --file arguments for eval, but not when files cannam@167: # are listed without --file. Let's play safe and only enable the eval cannam@167: # if we detect the quoting. cannam@167: case $CONFIG_FILES in cannam@167: *\'*) eval set x "$CONFIG_FILES" ;; cannam@167: *) set x $CONFIG_FILES ;; cannam@167: esac cannam@167: shift cannam@167: for mf cannam@167: do cannam@167: # Strip MF so we end up with the name of the file. cannam@167: mf=`echo "$mf" | sed -e 's/:.*$//'` cannam@167: # Check whether this is an Automake generated Makefile or not. cannam@167: # We used to match only the files named 'Makefile.in', but cannam@167: # some people rename them; so instead we look at the file content. cannam@167: # Grep'ing the first line is not enough: some people post-process cannam@167: # each Makefile.in and add a new line on top of each file to say so. cannam@167: # Grep'ing the whole file is not good either: AIX grep has a line cannam@167: # limit of 2048, but all sed's we know have understand at least 4000. cannam@167: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then cannam@167: dirpart=`$as_dirname -- "$mf" || cannam@167: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@167: X"$mf" : 'X\(//\)[^/]' \| \ cannam@167: X"$mf" : 'X\(//\)$' \| \ cannam@167: X"$mf" : 'X\(/\)' \| . 2>/dev/null || cannam@167: $as_echo X"$mf" | cannam@167: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\/\)[^/].*/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\/\)$/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\).*/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: s/.*/./; q'` cannam@167: else cannam@167: continue cannam@167: fi cannam@167: # Extract the definition of DEPDIR, am__include, and am__quote cannam@167: # from the Makefile without running 'make'. cannam@167: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` cannam@167: test -z "$DEPDIR" && continue cannam@167: am__include=`sed -n 's/^am__include = //p' < "$mf"` cannam@167: test -z "$am__include" && continue cannam@167: am__quote=`sed -n 's/^am__quote = //p' < "$mf"` cannam@167: # Find all dependency output files, they are included files with cannam@167: # $(DEPDIR) in their names. We invoke sed twice because it is the cannam@167: # simplest approach to changing $(DEPDIR) to its actual value in the cannam@167: # expansion. cannam@167: for file in `sed -n " cannam@167: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ cannam@167: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do cannam@167: # Make sure the directory exists. cannam@167: test -f "$dirpart/$file" && continue cannam@167: fdir=`$as_dirname -- "$file" || cannam@167: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ cannam@167: X"$file" : 'X\(//\)[^/]' \| \ cannam@167: X"$file" : 'X\(//\)$' \| \ cannam@167: X"$file" : 'X\(/\)' \| . 2>/dev/null || cannam@167: $as_echo X"$file" | cannam@167: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\/\)[^/].*/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\/\)$/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: /^X\(\/\).*/{ cannam@167: s//\1/ cannam@167: q cannam@167: } cannam@167: s/.*/./; q'` cannam@167: as_dir=$dirpart/$fdir; as_fn_mkdir_p cannam@167: # echo "creating $dirpart/$file" cannam@167: echo '# dummy' > "$dirpart/$file" cannam@167: done cannam@167: done cannam@167: } cannam@167: ;; cannam@167: "libtool":C) cannam@167: cannam@167: # See if we are running on zsh, and set the options that allow our cannam@167: # commands through without removal of \ escapes. cannam@167: if test -n "${ZSH_VERSION+set}"; then cannam@167: setopt NO_GLOB_SUBST cannam@167: fi cannam@167: cannam@167: cfgfile=${ofile}T cannam@167: trap "$RM \"$cfgfile\"; exit 1" 1 2 15 cannam@167: $RM "$cfgfile" cannam@167: cannam@167: cat <<_LT_EOF >> "$cfgfile" cannam@167: #! $SHELL cannam@167: # Generated automatically by $as_me ($PACKAGE) $VERSION cannam@167: # NOTE: Changes made to this file will be lost: look at ltmain.sh. cannam@167: cannam@167: # Provide generalized library-building support services. cannam@167: # Written by Gordon Matzigkeit, 1996 cannam@167: cannam@167: # Copyright (C) 2014 Free Software Foundation, Inc. cannam@167: # This is free software; see the source for copying conditions. There is NO cannam@167: # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. cannam@167: cannam@167: # GNU Libtool is free software; you can redistribute it and/or modify cannam@167: # it under the terms of the GNU General Public License as published by cannam@167: # the Free Software Foundation; either version 2 of of the License, or cannam@167: # (at your option) any later version. cannam@167: # cannam@167: # As a special exception to the GNU General Public License, if you cannam@167: # distribute this file as part of a program or library that is built cannam@167: # using GNU Libtool, you may include this file under the same cannam@167: # distribution terms that you use for the rest of that program. cannam@167: # cannam@167: # GNU Libtool is distributed in the hope that it will be useful, but cannam@167: # WITHOUT ANY WARRANTY; without even the implied warranty of cannam@167: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@167: # GNU General Public License for more details. cannam@167: # cannam@167: # You should have received a copy of the GNU General Public License cannam@167: # along with this program. If not, see . cannam@167: cannam@167: cannam@167: # The names of the tagged configurations supported by this script. cannam@167: available_tags='F77 ' cannam@167: cannam@167: # Configured defaults for sys_lib_dlsearch_path munging. cannam@167: : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} cannam@167: cannam@167: # ### BEGIN LIBTOOL CONFIG cannam@167: cannam@167: # Whether or not to build shared libraries. cannam@167: build_libtool_libs=$enable_shared cannam@167: cannam@167: # Assembler program. cannam@167: AS=$lt_AS cannam@167: cannam@167: # DLL creation program. cannam@167: DLLTOOL=$lt_DLLTOOL cannam@167: cannam@167: # Object dumper program. cannam@167: OBJDUMP=$lt_OBJDUMP cannam@167: cannam@167: # Which release of libtool.m4 was used? cannam@167: macro_version=$macro_version cannam@167: macro_revision=$macro_revision cannam@167: cannam@167: # Whether or not to build static libraries. cannam@167: build_old_libs=$enable_static cannam@167: cannam@167: # What type of objects to build. cannam@167: pic_mode=$pic_mode cannam@167: cannam@167: # Whether or not to optimize for fast installation. cannam@167: fast_install=$enable_fast_install cannam@167: cannam@167: # Shared archive member basename,for filename based shared library versioning on AIX. cannam@167: shared_archive_member_spec=$shared_archive_member_spec cannam@167: cannam@167: # Shell to use when invoking shell scripts. cannam@167: SHELL=$lt_SHELL cannam@167: cannam@167: # An echo program that protects backslashes. cannam@167: ECHO=$lt_ECHO cannam@167: cannam@167: # The PATH separator for the build system. cannam@167: PATH_SEPARATOR=$lt_PATH_SEPARATOR cannam@167: cannam@167: # The host system. cannam@167: host_alias=$host_alias cannam@167: host=$host cannam@167: host_os=$host_os cannam@167: cannam@167: # The build system. cannam@167: build_alias=$build_alias cannam@167: build=$build cannam@167: build_os=$build_os cannam@167: cannam@167: # A sed program that does not truncate output. cannam@167: SED=$lt_SED cannam@167: cannam@167: # Sed that helps us avoid accidentally triggering echo(1) options like -n. cannam@167: Xsed="\$SED -e 1s/^X//" cannam@167: cannam@167: # A grep program that handles long lines. cannam@167: GREP=$lt_GREP cannam@167: cannam@167: # An ERE matcher. cannam@167: EGREP=$lt_EGREP cannam@167: cannam@167: # A literal string matcher. cannam@167: FGREP=$lt_FGREP cannam@167: cannam@167: # A BSD- or MS-compatible name lister. cannam@167: NM=$lt_NM cannam@167: cannam@167: # Whether we need soft or hard links. cannam@167: LN_S=$lt_LN_S cannam@167: cannam@167: # What is the maximum length of a command? cannam@167: max_cmd_len=$max_cmd_len cannam@167: cannam@167: # Object file suffix (normally "o"). cannam@167: objext=$ac_objext cannam@167: cannam@167: # Executable file suffix (normally ""). cannam@167: exeext=$exeext cannam@167: cannam@167: # whether the shell understands "unset". cannam@167: lt_unset=$lt_unset cannam@167: cannam@167: # turn spaces into newlines. cannam@167: SP2NL=$lt_lt_SP2NL cannam@167: cannam@167: # turn newlines into spaces. cannam@167: NL2SP=$lt_lt_NL2SP cannam@167: cannam@167: # convert \$build file names to \$host format. cannam@167: to_host_file_cmd=$lt_cv_to_host_file_cmd cannam@167: cannam@167: # convert \$build files to toolchain format. cannam@167: to_tool_file_cmd=$lt_cv_to_tool_file_cmd cannam@167: cannam@167: # Method to check whether dependent libraries are shared objects. cannam@167: deplibs_check_method=$lt_deplibs_check_method cannam@167: cannam@167: # Command to use when deplibs_check_method = "file_magic". cannam@167: file_magic_cmd=$lt_file_magic_cmd cannam@167: cannam@167: # How to find potential files when deplibs_check_method = "file_magic". cannam@167: file_magic_glob=$lt_file_magic_glob cannam@167: cannam@167: # Find potential files using nocaseglob when deplibs_check_method = "file_magic". cannam@167: want_nocaseglob=$lt_want_nocaseglob cannam@167: cannam@167: # Command to associate shared and link libraries. cannam@167: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd cannam@167: cannam@167: # The archiver. cannam@167: AR=$lt_AR cannam@167: cannam@167: # Flags to create an archive. cannam@167: AR_FLAGS=$lt_AR_FLAGS cannam@167: cannam@167: # How to feed a file listing to the archiver. cannam@167: archiver_list_spec=$lt_archiver_list_spec cannam@167: cannam@167: # A symbol stripping program. cannam@167: STRIP=$lt_STRIP cannam@167: cannam@167: # Commands used to install an old-style archive. cannam@167: RANLIB=$lt_RANLIB cannam@167: old_postinstall_cmds=$lt_old_postinstall_cmds cannam@167: old_postuninstall_cmds=$lt_old_postuninstall_cmds cannam@167: cannam@167: # Whether to use a lock for old archive extraction. cannam@167: lock_old_archive_extraction=$lock_old_archive_extraction cannam@167: cannam@167: # A C compiler. cannam@167: LTCC=$lt_CC cannam@167: cannam@167: # LTCC compiler flags. cannam@167: LTCFLAGS=$lt_CFLAGS cannam@167: cannam@167: # Take the output of nm and produce a listing of raw symbols and C names. cannam@167: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe cannam@167: cannam@167: # Transform the output of nm in a proper C declaration. cannam@167: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl cannam@167: cannam@167: # Transform the output of nm into a list of symbols to manually relocate. cannam@167: global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import cannam@167: cannam@167: # Transform the output of nm in a C name address pair. cannam@167: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address cannam@167: cannam@167: # Transform the output of nm in a C name address pair when lib prefix is needed. cannam@167: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix cannam@167: cannam@167: # The name lister interface. cannam@167: nm_interface=$lt_lt_cv_nm_interface cannam@167: cannam@167: # Specify filename containing input files for \$NM. cannam@167: nm_file_list_spec=$lt_nm_file_list_spec cannam@167: cannam@167: # The root where to search for dependent libraries,and where our libraries should be installed. cannam@167: lt_sysroot=$lt_sysroot cannam@167: cannam@167: # Command to truncate a binary pipe. cannam@167: lt_truncate_bin=$lt_lt_cv_truncate_bin cannam@167: cannam@167: # The name of the directory that contains temporary libtool files. cannam@167: objdir=$objdir cannam@167: cannam@167: # Used to examine libraries when file_magic_cmd begins with "file". cannam@167: MAGIC_CMD=$MAGIC_CMD cannam@167: cannam@167: # Must we lock files when doing compilation? cannam@167: need_locks=$lt_need_locks cannam@167: cannam@167: # Manifest tool. cannam@167: MANIFEST_TOOL=$lt_MANIFEST_TOOL cannam@167: cannam@167: # Tool to manipulate archived DWARF debug symbol files on Mac OS X. cannam@167: DSYMUTIL=$lt_DSYMUTIL cannam@167: cannam@167: # Tool to change global to local symbols on Mac OS X. cannam@167: NMEDIT=$lt_NMEDIT cannam@167: cannam@167: # Tool to manipulate fat objects and archives on Mac OS X. cannam@167: LIPO=$lt_LIPO cannam@167: cannam@167: # ldd/readelf like tool for Mach-O binaries on Mac OS X. cannam@167: OTOOL=$lt_OTOOL cannam@167: cannam@167: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. cannam@167: OTOOL64=$lt_OTOOL64 cannam@167: cannam@167: # Old archive suffix (normally "a"). cannam@167: libext=$libext cannam@167: cannam@167: # Shared library suffix (normally ".so"). cannam@167: shrext_cmds=$lt_shrext_cmds cannam@167: cannam@167: # The commands to extract the exported symbol list from a shared archive. cannam@167: extract_expsyms_cmds=$lt_extract_expsyms_cmds cannam@167: cannam@167: # Variables whose values should be saved in libtool wrapper scripts and cannam@167: # restored at link time. cannam@167: variables_saved_for_relink=$lt_variables_saved_for_relink cannam@167: cannam@167: # Do we need the "lib" prefix for modules? cannam@167: need_lib_prefix=$need_lib_prefix cannam@167: cannam@167: # Do we need a version for libraries? cannam@167: need_version=$need_version cannam@167: cannam@167: # Library versioning type. cannam@167: version_type=$version_type cannam@167: cannam@167: # Shared library runtime path variable. cannam@167: runpath_var=$runpath_var cannam@167: cannam@167: # Shared library path variable. cannam@167: shlibpath_var=$shlibpath_var cannam@167: cannam@167: # Is shlibpath searched before the hard-coded library search path? cannam@167: shlibpath_overrides_runpath=$shlibpath_overrides_runpath cannam@167: cannam@167: # Format of library name prefix. cannam@167: libname_spec=$lt_libname_spec cannam@167: cannam@167: # List of archive names. First name is the real one, the rest are links. cannam@167: # The last name is the one that the linker finds with -lNAME cannam@167: library_names_spec=$lt_library_names_spec cannam@167: cannam@167: # The coded name of the library, if different from the real name. cannam@167: soname_spec=$lt_soname_spec cannam@167: cannam@167: # Permission mode override for installation of shared libraries. cannam@167: install_override_mode=$lt_install_override_mode cannam@167: cannam@167: # Command to use after installation of a shared archive. cannam@167: postinstall_cmds=$lt_postinstall_cmds cannam@167: cannam@167: # Command to use after uninstallation of a shared archive. cannam@167: postuninstall_cmds=$lt_postuninstall_cmds cannam@167: cannam@167: # Commands used to finish a libtool library installation in a directory. cannam@167: finish_cmds=$lt_finish_cmds cannam@167: cannam@167: # As "finish_cmds", except a single script fragment to be evaled but cannam@167: # not shown. cannam@167: finish_eval=$lt_finish_eval cannam@167: cannam@167: # Whether we should hardcode library paths into libraries. cannam@167: hardcode_into_libs=$hardcode_into_libs cannam@167: cannam@167: # Compile-time system search path for libraries. cannam@167: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec cannam@167: cannam@167: # Detected run-time system search path for libraries. cannam@167: sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path cannam@167: cannam@167: # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. cannam@167: configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path cannam@167: cannam@167: # Whether dlopen is supported. cannam@167: dlopen_support=$enable_dlopen cannam@167: cannam@167: # Whether dlopen of programs is supported. cannam@167: dlopen_self=$enable_dlopen_self cannam@167: cannam@167: # Whether dlopen of statically linked programs is supported. cannam@167: dlopen_self_static=$enable_dlopen_self_static cannam@167: cannam@167: # Commands to strip libraries. cannam@167: old_striplib=$lt_old_striplib cannam@167: striplib=$lt_striplib cannam@167: cannam@167: cannam@167: # The linker used to build libraries. cannam@167: LD=$lt_LD cannam@167: cannam@167: # How to create reloadable object files. cannam@167: reload_flag=$lt_reload_flag cannam@167: reload_cmds=$lt_reload_cmds cannam@167: cannam@167: # Commands used to build an old-style archive. cannam@167: old_archive_cmds=$lt_old_archive_cmds cannam@167: cannam@167: # A language specific compiler. cannam@167: CC=$lt_compiler cannam@167: cannam@167: # Is the compiler the GNU compiler? cannam@167: with_gcc=$GCC cannam@167: cannam@167: # Compiler flag to turn off builtin functions. cannam@167: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag cannam@167: cannam@167: # Additional compiler flags for building library objects. cannam@167: pic_flag=$lt_lt_prog_compiler_pic cannam@167: cannam@167: # How to pass a linker flag through the compiler. cannam@167: wl=$lt_lt_prog_compiler_wl cannam@167: cannam@167: # Compiler flag to prevent dynamic linking. cannam@167: link_static_flag=$lt_lt_prog_compiler_static cannam@167: cannam@167: # Does compiler simultaneously support -c and -o options? cannam@167: compiler_c_o=$lt_lt_cv_prog_compiler_c_o cannam@167: cannam@167: # Whether or not to add -lc for building shared libraries. cannam@167: build_libtool_need_lc=$archive_cmds_need_lc cannam@167: cannam@167: # Whether or not to disallow shared libs when runtime libs are static. cannam@167: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes cannam@167: cannam@167: # Compiler flag to allow reflexive dlopens. cannam@167: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec cannam@167: cannam@167: # Compiler flag to generate shared objects directly from archives. cannam@167: whole_archive_flag_spec=$lt_whole_archive_flag_spec cannam@167: cannam@167: # Whether the compiler copes with passing no objects directly. cannam@167: compiler_needs_object=$lt_compiler_needs_object cannam@167: cannam@167: # Create an old-style archive from a shared archive. cannam@167: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds cannam@167: cannam@167: # Create a temporary old-style archive to link instead of a shared archive. cannam@167: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds cannam@167: cannam@167: # Commands used to build a shared archive. cannam@167: archive_cmds=$lt_archive_cmds cannam@167: archive_expsym_cmds=$lt_archive_expsym_cmds cannam@167: cannam@167: # Commands used to build a loadable module if different from building cannam@167: # a shared archive. cannam@167: module_cmds=$lt_module_cmds cannam@167: module_expsym_cmds=$lt_module_expsym_cmds cannam@167: cannam@167: # Whether we are building with GNU ld or not. cannam@167: with_gnu_ld=$lt_with_gnu_ld cannam@167: cannam@167: # Flag that allows shared libraries with undefined symbols to be built. cannam@167: allow_undefined_flag=$lt_allow_undefined_flag cannam@167: cannam@167: # Flag that enforces no undefined symbols. cannam@167: no_undefined_flag=$lt_no_undefined_flag cannam@167: cannam@167: # Flag to hardcode \$libdir into a binary during linking. cannam@167: # This must work even if \$libdir does not exist cannam@167: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec cannam@167: cannam@167: # Whether we need a single "-rpath" flag with a separated argument. cannam@167: hardcode_libdir_separator=$lt_hardcode_libdir_separator cannam@167: cannam@167: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes cannam@167: # DIR into the resulting binary. cannam@167: hardcode_direct=$hardcode_direct cannam@167: cannam@167: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes cannam@167: # DIR into the resulting binary and the resulting library dependency is cannam@167: # "absolute",i.e impossible to change by setting \$shlibpath_var if the cannam@167: # library is relocated. cannam@167: hardcode_direct_absolute=$hardcode_direct_absolute cannam@167: cannam@167: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR cannam@167: # into the resulting binary. cannam@167: hardcode_minus_L=$hardcode_minus_L cannam@167: cannam@167: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR cannam@167: # into the resulting binary. cannam@167: hardcode_shlibpath_var=$hardcode_shlibpath_var cannam@167: cannam@167: # Set to "yes" if building a shared library automatically hardcodes DIR cannam@167: # into the library and all subsequent libraries and executables linked cannam@167: # against it. cannam@167: hardcode_automatic=$hardcode_automatic cannam@167: cannam@167: # Set to yes if linker adds runtime paths of dependent libraries cannam@167: # to runtime path list. cannam@167: inherit_rpath=$inherit_rpath cannam@167: cannam@167: # Whether libtool must link a program against all its dependency libraries. cannam@167: link_all_deplibs=$link_all_deplibs cannam@167: cannam@167: # Set to "yes" if exported symbols are required. cannam@167: always_export_symbols=$always_export_symbols cannam@167: cannam@167: # The commands to list exported symbols. cannam@167: export_symbols_cmds=$lt_export_symbols_cmds cannam@167: cannam@167: # Symbols that should not be listed in the preloaded symbols. cannam@167: exclude_expsyms=$lt_exclude_expsyms cannam@167: cannam@167: # Symbols that must always be exported. cannam@167: include_expsyms=$lt_include_expsyms cannam@167: cannam@167: # Commands necessary for linking programs (against libraries) with templates. cannam@167: prelink_cmds=$lt_prelink_cmds cannam@167: cannam@167: # Commands necessary for finishing linking programs. cannam@167: postlink_cmds=$lt_postlink_cmds cannam@167: cannam@167: # Specify filename containing input files. cannam@167: file_list_spec=$lt_file_list_spec cannam@167: cannam@167: # How to hardcode a shared library path into an executable. cannam@167: hardcode_action=$hardcode_action cannam@167: cannam@167: # ### END LIBTOOL CONFIG cannam@167: cannam@167: _LT_EOF cannam@167: cannam@167: cat <<'_LT_EOF' >> "$cfgfile" cannam@167: cannam@167: # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE cannam@167: cannam@167: # func_munge_path_list VARIABLE PATH cannam@167: # ----------------------------------- cannam@167: # VARIABLE is name of variable containing _space_ separated list of cannam@167: # directories to be munged by the contents of PATH, which is string cannam@167: # having a format: cannam@167: # "DIR[:DIR]:" cannam@167: # string "DIR[ DIR]" will be prepended to VARIABLE cannam@167: # ":DIR[:DIR]" cannam@167: # string "DIR[ DIR]" will be appended to VARIABLE cannam@167: # "DIRP[:DIRP]::[DIRA:]DIRA" cannam@167: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string cannam@167: # "DIRA[ DIRA]" will be appended to VARIABLE cannam@167: # "DIR[:DIR]" cannam@167: # VARIABLE will be replaced by "DIR[ DIR]" cannam@167: func_munge_path_list () cannam@167: { cannam@167: case x$2 in cannam@167: x) cannam@167: ;; cannam@167: *:) cannam@167: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" cannam@167: ;; cannam@167: x:*) cannam@167: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" cannam@167: ;; cannam@167: *::*) cannam@167: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" cannam@167: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" cannam@167: ;; cannam@167: *) cannam@167: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" cannam@167: ;; cannam@167: esac cannam@167: } cannam@167: cannam@167: cannam@167: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. cannam@167: func_cc_basename () cannam@167: { cannam@167: for cc_temp in $*""; do cannam@167: case $cc_temp in cannam@167: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; cannam@167: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; cannam@167: \-*) ;; cannam@167: *) break;; cannam@167: esac cannam@167: done cannam@167: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` cannam@167: } cannam@167: cannam@167: cannam@167: # ### END FUNCTIONS SHARED WITH CONFIGURE cannam@167: cannam@167: _LT_EOF cannam@167: cannam@167: case $host_os in cannam@167: aix3*) cannam@167: cat <<\_LT_EOF >> "$cfgfile" cannam@167: # AIX sometimes has problems with the GCC collect2 program. For some cannam@167: # reason, if we set the COLLECT_NAMES environment variable, the problems cannam@167: # vanish in a puff of smoke. cannam@167: if test set != "${COLLECT_NAMES+set}"; then cannam@167: COLLECT_NAMES= cannam@167: export COLLECT_NAMES cannam@167: fi cannam@167: _LT_EOF cannam@167: ;; cannam@167: esac cannam@167: cannam@167: cannam@167: ltmain=$ac_aux_dir/ltmain.sh cannam@167: cannam@167: cannam@167: # We use sed instead of cat because bash on DJGPP gets confused if cannam@167: # if finds mixed CR/LF and LF-only lines. Since sed operates in cannam@167: # text mode, it properly converts lines to CR/LF. This bash problem cannam@167: # is reportedly fixed, but why not run on old versions too? cannam@167: sed '$q' "$ltmain" >> "$cfgfile" \ cannam@167: || (rm -f "$cfgfile"; exit 1) cannam@167: cannam@167: mv -f "$cfgfile" "$ofile" || cannam@167: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") cannam@167: chmod +x "$ofile" cannam@167: cannam@167: cannam@167: cat <<_LT_EOF >> "$ofile" cannam@167: cannam@167: # ### BEGIN LIBTOOL TAG CONFIG: F77 cannam@167: cannam@167: # The linker used to build libraries. cannam@167: LD=$lt_LD_F77 cannam@167: cannam@167: # How to create reloadable object files. cannam@167: reload_flag=$lt_reload_flag_F77 cannam@167: reload_cmds=$lt_reload_cmds_F77 cannam@167: cannam@167: # Commands used to build an old-style archive. cannam@167: old_archive_cmds=$lt_old_archive_cmds_F77 cannam@167: cannam@167: # A language specific compiler. cannam@167: CC=$lt_compiler_F77 cannam@167: cannam@167: # Is the compiler the GNU compiler? cannam@167: with_gcc=$GCC_F77 cannam@167: cannam@167: # Compiler flag to turn off builtin functions. cannam@167: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 cannam@167: cannam@167: # Additional compiler flags for building library objects. cannam@167: pic_flag=$lt_lt_prog_compiler_pic_F77 cannam@167: cannam@167: # How to pass a linker flag through the compiler. cannam@167: wl=$lt_lt_prog_compiler_wl_F77 cannam@167: cannam@167: # Compiler flag to prevent dynamic linking. cannam@167: link_static_flag=$lt_lt_prog_compiler_static_F77 cannam@167: cannam@167: # Does compiler simultaneously support -c and -o options? cannam@167: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 cannam@167: cannam@167: # Whether or not to add -lc for building shared libraries. cannam@167: build_libtool_need_lc=$archive_cmds_need_lc_F77 cannam@167: cannam@167: # Whether or not to disallow shared libs when runtime libs are static. cannam@167: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 cannam@167: cannam@167: # Compiler flag to allow reflexive dlopens. cannam@167: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 cannam@167: cannam@167: # Compiler flag to generate shared objects directly from archives. cannam@167: whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 cannam@167: cannam@167: # Whether the compiler copes with passing no objects directly. cannam@167: compiler_needs_object=$lt_compiler_needs_object_F77 cannam@167: cannam@167: # Create an old-style archive from a shared archive. cannam@167: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 cannam@167: cannam@167: # Create a temporary old-style archive to link instead of a shared archive. cannam@167: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 cannam@167: cannam@167: # Commands used to build a shared archive. cannam@167: archive_cmds=$lt_archive_cmds_F77 cannam@167: archive_expsym_cmds=$lt_archive_expsym_cmds_F77 cannam@167: cannam@167: # Commands used to build a loadable module if different from building cannam@167: # a shared archive. cannam@167: module_cmds=$lt_module_cmds_F77 cannam@167: module_expsym_cmds=$lt_module_expsym_cmds_F77 cannam@167: cannam@167: # Whether we are building with GNU ld or not. cannam@167: with_gnu_ld=$lt_with_gnu_ld_F77 cannam@167: cannam@167: # Flag that allows shared libraries with undefined symbols to be built. cannam@167: allow_undefined_flag=$lt_allow_undefined_flag_F77 cannam@167: cannam@167: # Flag that enforces no undefined symbols. cannam@167: no_undefined_flag=$lt_no_undefined_flag_F77 cannam@167: cannam@167: # Flag to hardcode \$libdir into a binary during linking. cannam@167: # This must work even if \$libdir does not exist cannam@167: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 cannam@167: cannam@167: # Whether we need a single "-rpath" flag with a separated argument. cannam@167: hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 cannam@167: cannam@167: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes cannam@167: # DIR into the resulting binary. cannam@167: hardcode_direct=$hardcode_direct_F77 cannam@167: cannam@167: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes cannam@167: # DIR into the resulting binary and the resulting library dependency is cannam@167: # "absolute",i.e impossible to change by setting \$shlibpath_var if the cannam@167: # library is relocated. cannam@167: hardcode_direct_absolute=$hardcode_direct_absolute_F77 cannam@167: cannam@167: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR cannam@167: # into the resulting binary. cannam@167: hardcode_minus_L=$hardcode_minus_L_F77 cannam@167: cannam@167: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR cannam@167: # into the resulting binary. cannam@167: hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 cannam@167: cannam@167: # Set to "yes" if building a shared library automatically hardcodes DIR cannam@167: # into the library and all subsequent libraries and executables linked cannam@167: # against it. cannam@167: hardcode_automatic=$hardcode_automatic_F77 cannam@167: cannam@167: # Set to yes if linker adds runtime paths of dependent libraries cannam@167: # to runtime path list. cannam@167: inherit_rpath=$inherit_rpath_F77 cannam@167: cannam@167: # Whether libtool must link a program against all its dependency libraries. cannam@167: link_all_deplibs=$link_all_deplibs_F77 cannam@167: cannam@167: # Set to "yes" if exported symbols are required. cannam@167: always_export_symbols=$always_export_symbols_F77 cannam@167: cannam@167: # The commands to list exported symbols. cannam@167: export_symbols_cmds=$lt_export_symbols_cmds_F77 cannam@167: cannam@167: # Symbols that should not be listed in the preloaded symbols. cannam@167: exclude_expsyms=$lt_exclude_expsyms_F77 cannam@167: cannam@167: # Symbols that must always be exported. cannam@167: include_expsyms=$lt_include_expsyms_F77 cannam@167: cannam@167: # Commands necessary for linking programs (against libraries) with templates. cannam@167: prelink_cmds=$lt_prelink_cmds_F77 cannam@167: cannam@167: # Commands necessary for finishing linking programs. cannam@167: postlink_cmds=$lt_postlink_cmds_F77 cannam@167: cannam@167: # Specify filename containing input files. cannam@167: file_list_spec=$lt_file_list_spec_F77 cannam@167: cannam@167: # How to hardcode a shared library path into an executable. cannam@167: hardcode_action=$hardcode_action_F77 cannam@167: cannam@167: # ### END LIBTOOL TAG CONFIG: F77 cannam@167: _LT_EOF cannam@167: cannam@167: ;; cannam@167: cannam@167: esac cannam@167: done # for ac_tag cannam@167: cannam@167: cannam@167: as_fn_exit 0 cannam@167: _ACEOF cannam@167: ac_clean_files=$ac_clean_files_save cannam@167: cannam@167: test $ac_write_fail = 0 || cannam@167: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 cannam@167: cannam@167: cannam@167: # configure is writing to config.log, and then calls config.status. cannam@167: # config.status does its own redirection, appending to config.log. cannam@167: # Unfortunately, on DOS this fails, as config.log is still kept open cannam@167: # by configure, so config.status won't be able to write to it; its cannam@167: # output is simply discarded. So we exec the FD to /dev/null, cannam@167: # effectively closing config.log, so it can be properly (re)opened and cannam@167: # appended to by config.status. When coming back to configure, we cannam@167: # need to make the FD available again. cannam@167: if test "$no_create" != yes; then cannam@167: ac_cs_success=: cannam@167: ac_config_status_args= cannam@167: test "$silent" = yes && cannam@167: ac_config_status_args="$ac_config_status_args --quiet" cannam@167: exec 5>/dev/null cannam@167: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false cannam@167: exec 5>>config.log cannam@167: # Use ||, not &&, to avoid exiting from the if with $? = 1, which cannam@167: # would make configure fail if this is the last instruction. cannam@167: $ac_cs_success || as_fn_exit 1 cannam@167: fi cannam@167: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then cannam@167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 cannam@167: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} cannam@167: fi cannam@167: