#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for MPICH 3.3.2. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and discuss@mpich.org $0: about your system, including any error possibly output $0: before this message. Then install a modern shell, or $0: manually run the script under such a shell if you do $0: have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" SHELL=${CONFIG_SHELL-/bin/sh} test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='MPICH' PACKAGE_TARNAME='mpich' PACKAGE_VERSION='3.3.2' PACKAGE_STRING='MPICH 3.3.2' PACKAGE_BUGREPORT='discuss@mpich.org' PACKAGE_URL='http://www.mpich.org/' # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" enable_option_checking=no ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS pkgconfigdir F08_C_OFFSET F08_C_COUNT F08_C_AINT F08_CXX_LONG_DOUBLE_COMPLEX F08_CXX_DOUBLE_COMPLEX F08_CXX_FLOAT_COMPLEX F08_CXX_BOOL F08_COUNT F08_OFFSET F08_AINT F08_C_LONG_DOUBLE_COMPLEX F08_C_DOUBLE_COMPLEX F08_C_COMPLEX F08_C_FLOAT_COMPLEX F08_C_BOOL F08_UINT64_T F08_UINT32_T F08_UINT16_T F08_UINT8_T F08_INT64_T F08_INT32_T F08_INT16_T F08_INT8_T F08_LONG_DOUBLE_INT F08_2INT F08_SHORT_INT F08_LONG_INT F08_DOUBLE_INT F08_FLOAT_INT F08_LONG_LONG F08_UNSIGNED_LONG_LONG F08_LONG_LONG_INT F08_LONG_DOUBLE F08_DOUBLE F08_FLOAT F08_UNSIGNED_LONG F08_UNSIGNED_INT F08_LONG F08_INT F08_UNSIGNED F08_UNSIGNED_SHORT F08_SHORT F08_WCHAR F08_UNSIGNED_CHAR F08_SIGNED_CHAR F08_CHAR F08_BYTE F08_LB F08_UB F08_PACKED F08_COMPLEX32 F08_COMPLEX16 F08_COMPLEX8 F08_REAL16 F08_REAL8 F08_REAL4 F08_INTEGER16 F08_INTEGER8 F08_INTEGER4 F08_INTEGER2 F08_INTEGER1 subdirs MPIF77_NAME MPIF90_NAME MPIFORT_NAME MPICPP_NAME MPICXX_NAME MPICC_NAME BUILD_F77_BINDING_FALSE BUILD_F77_BINDING_TRUE BUILD_CXX_BINDING_FALSE BUILD_CXX_BINDING_TRUE MPIU_DLL_SPEC_DEF MPI_MAX_ERROR_STRING MPI_MAX_LIBRARY_VERSION_STRING MPI_MAX_PROCESSOR_NAME CMB_STATUS_ALIGNMENT CMB_1INT_ALIGNMENT MPI_STATUS_SIZE SIZEOF_MPI_STATUS MPI_F77_COUNT MPI_COUNT_DATATYPE COUNT_KIND MPI_COUNT MPI_OFFSET_DATATYPE FORTRAN_MPI_OFFSET MPI_OFFSET_TYPEDEF MPI_OFFSET MPI_FINT ofi_embedded with_libfabric ofilib ofisrcdir AS PAPI_INCLUDE mmx_copy_s nemesis_nets_macro_defs nemesis_nets_array_sz nemesis_nets_array nemesis_nets_func_array nemesis_nets_func_decl nemesis_nets_strings nemesis_nets_dirs nemesis_networks BUILD_PMI_SIMPLE_FALSE BUILD_PMI_SIMPLE_TRUE BUILD_PMI_CRAY_FALSE BUILD_PMI_CRAY_TRUE BUILD_PMI_BGQ_FALSE BUILD_PMI_BGQ_TRUE BUILD_PMI_PMI2_SIMPLE_FALSE BUILD_PMI_PMI2_SIMPLE_TRUE BUILD_PMI_PMI2_FALSE BUILD_PMI_PMI2_TRUE BUILD_PMI_SLURM_FALSE BUILD_PMI_SLURM_TRUE BUILD_PM_UTIL_FALSE BUILD_PM_UTIL_TRUE RSH SSH PRIMARY_PM_REMSHELL_FALSE PRIMARY_PM_REMSHELL_TRUE BUILD_PM_REMSHELL_FALSE BUILD_PM_REMSHELL_TRUE PRIMARY_PM_GFORKER_FALSE PRIMARY_PM_GFORKER_TRUE BUILD_PM_GFORKER_FALSE BUILD_PM_GFORKER_TRUE FC_INTEGER_MODEL_MAP FC_ALL_INTEGER_MODELS FC_INTEGER_MODEL FC_DOUBLE_MODEL FC_REAL_MODEL BUILD_PM_HYDRA2_FALSE BUILD_PM_HYDRA2_TRUE BUILD_PM_HYDRA_FALSE BUILD_PM_HYDRA_TRUE ucxlib ucxdir BUILD_CH4_COLL_TUNING_FALSE BUILD_CH4_COLL_TUNING_TRUE REPLACE_WCTOMB REPLACE_UNSETENV REPLACE_STRTOD REPLACE_SETENV REPLACE_REALPATH REPLACE_REALLOC REPLACE_RANDOM_R REPLACE_QSORT_R REPLACE_PUTENV REPLACE_PTSNAME_R REPLACE_PTSNAME REPLACE_MKSTEMP REPLACE_MBTOWC REPLACE_MALLOC REPLACE_CANONICALIZE_FILE_NAME REPLACE_CALLOC HAVE_DECL_UNSETENV HAVE_UNLOCKPT HAVE_SYS_LOADAVG_H HAVE_STRUCT_RANDOM_DATA HAVE_STRTOULL HAVE_STRTOLL HAVE_STRTOD HAVE_DECL_SETENV HAVE_SETENV HAVE_SECURE_GETENV HAVE_RPMATCH HAVE_REALPATH HAVE_RANDOM_R HAVE_RANDOM_H HAVE_RANDOM HAVE_PTSNAME_R HAVE_PTSNAME HAVE_POSIX_OPENPT HAVE_MKSTEMPS HAVE_MKSTEMP HAVE_MKOSTEMPS HAVE_MKOSTEMP HAVE_MKDTEMP HAVE_GRANTPT HAVE_GETSUBOPT HAVE_DECL_GETLOADAVG HAVE_CANONICALIZE_FILE_NAME HAVE_ATOLL HAVE__EXIT GNULIB_WCTOMB GNULIB_UNSETENV GNULIB_UNLOCKPT GNULIB_SYSTEM_POSIX GNULIB_STRTOULL GNULIB_STRTOLL GNULIB_STRTOD GNULIB_SETENV GNULIB_SECURE_GETENV GNULIB_RPMATCH GNULIB_REALPATH GNULIB_REALLOC_POSIX GNULIB_RANDOM_R GNULIB_RANDOM GNULIB_QSORT_R GNULIB_PUTENV GNULIB_PTSNAME_R GNULIB_PTSNAME GNULIB_POSIX_OPENPT GNULIB_MKSTEMPS GNULIB_MKSTEMP GNULIB_MKOSTEMPS GNULIB_MKOSTEMP GNULIB_MKDTEMP GNULIB_MBTOWC GNULIB_MALLOC_POSIX GNULIB_GRANTPT GNULIB_GETSUBOPT GNULIB_GETLOADAVG GNULIB_CANONICALIZE_FILE_NAME GNULIB_CALLOC_POSIX GNULIB_ATOLL GNULIB__EXIT BSEND_OVERHEAD MPI_AINT_DATATYPE MPI_AINT_FMT_HEX_SPEC MPI_AINT_FMT_DEC_SPEC MPI_AINT LPMPILIBNAME ALLOCA BUILD_COVERAGE_FALSE BUILD_COVERAGE_TRUE GCOV DISABLE_TAG_SUPPORT MPI_F77_CXX_LONG_DOUBLE_COMPLEX MPI_F77_CXX_DOUBLE_COMPLEX MPI_F77_CXX_FLOAT_COMPLEX MPI_F77_CXX_BOOL REQI8 REQI2 REQI1 REQD SIZEOF_FC_CHARACTER SIZEOF_FC_DOUBLE_PRECISION SIZEOF_FC_REAL SIZEOF_FC_INTEGER DLLIMPORT INTEGER_KIND OFFSET_KIND ADDRESS_KIND WTIME_DOUBLE_TYPE MPI_F77_OFFSET MPI_F77_AINT MPI_F77_C_LONG_DOUBLE_COMPLEX MPI_F77_C_DOUBLE_COMPLEX MPI_F77_C_COMPLEX MPI_F77_C_FLOAT_COMPLEX MPI_F77_C_BOOL MPI_F77_UINT64_T MPI_F77_UINT32_T MPI_F77_UINT16_T MPI_F77_UINT8_T MPI_F77_INT64_T MPI_F77_INT32_T MPI_F77_INT16_T MPI_F77_INT8_T MPI_F77_LONG_DOUBLE_INT MPI_F77_2INT MPI_F77_SHORT_INT MPI_F77_LONG_INT MPI_F77_DOUBLE_INT MPI_F77_FLOAT_INT MPI_F77_LONG_LONG MPI_F77_LONG_LONG_INT MPI_F77_UNSIGNED_LONG_LONG MPI_F77_LONG_DOUBLE MPI_F77_DOUBLE MPI_F77_FLOAT MPI_F77_UNSIGNED_LONG MPI_F77_LONG MPI_F77_INT MPI_F77_UNSIGNED MPI_F77_UNSIGNED_SHORT MPI_F77_SHORT MPI_F77_WCHAR MPI_F77_UNSIGNED_CHAR MPI_F77_SIGNED_CHAR MPI_F77_CHAR F77_COMPLEX32 F77_COMPLEX16 F77_COMPLEX8 F77_REAL16 F77_REAL8 F77_REAL4 F77_INTEGER16 F77_INTEGER8 F77_INTEGER4 F77_INTEGER2 F77_INTEGER1 MPI_F77_BYTE MPI_F77_LB MPI_F77_UB MPI_F77_PACKED MPI_2DOUBLE_COMPLEX MPI_2COMPLEX MPI_2DOUBLE_PRECISION MPI_DOUBLE_COMPLEX MPI_2REAL MPI_2INTEGER MPI_DOUBLE_PRECISION MPI_COMPLEX MPI_LOGICAL MPI_REAL MPI_INTEGER MPI_CHARACTER MPI_C_LONG_DOUBLE_COMPLEX MPI_C_DOUBLE_COMPLEX MPI_C_FLOAT_COMPLEX MPI_C_BOOL MPI_UINT64_T MPI_UINT32_T MPI_UINT16_T MPI_UINT8_T MPI_INT64_T MPI_INT32_T MPI_INT16_T MPI_INT8_T MPI_INTEGER16 MPI_INTEGER8 MPI_INTEGER4 MPI_INTEGER2 MPI_INTEGER1 MPI_COMPLEX32 MPI_COMPLEX16 MPI_COMPLEX8 MPI_REAL16 MPI_REAL8 MPI_REAL4 MPI_UNSIGNED_LONG_LONG MPI_SIGNED_CHAR MPI_LONG_DOUBLE_INT MPI_2INT MPI_SHORT_INT MPI_LONG_INT MPI_DOUBLE_INT MPI_FLOAT_INT MPI_UB MPI_LB MPI_PACKED MPI_WCHAR MPI_BYTE MPI_LONG_DOUBLE MPI_DOUBLE MPI_FLOAT MPI_LONG_LONG MPI_UNSIGNED_LONG MPI_LONG MPI_UNSIGNED_INT MPI_INT MPI_UNSIGNED_SHORT MPI_SHORT MPI_UNSIGNED_CHAR MPI_CHAR DOCTEXT BUILD_NAMEPUB_PMI_FALSE BUILD_NAMEPUB_PMI_TRUE BUILD_NAMEPUB_FILE_FALSE BUILD_NAMEPUB_FILE_TRUE BUILD_DEBUGGER_DLL_FALSE BUILD_DEBUGGER_DLL_TRUE SHLIB_EXT BUILD_BASH_SCRIPTS_FALSE BUILD_BASH_SCRIPTS_TRUE BASH_SHELL SET_CFLAGS VPATH MAKE XARGS_NODATA_OPT KILLALL AR_FLAGS PERL bindings MPIR_CXX_LONG_DOUBLE_COMPLEX MPIR_CXX_DOUBLE_COMPLEX MPIR_CXX_COMPLEX MPIR_CXX_BOOL FORTRAN_BINDING INCLUDE_MPICXX_H GNUCXX_MINORVERSION GNUCXX_VERSION HAVE_CXX_EXCEPTIONS modincdir FC_OTHER_LIBS FCCPP FCINCFLAG FCINC MPI_C_INTERFACE_CDESC_NAME MPI_C_INTERFACE_TYPES_NAME MPI_C_INTERFACE_GLUE_NAME MPI_C_INTERFACE_NOBUF_NAME MPI_C_INTERFACE_NAME PMPI_F08_NAME MPI_F08_COMPILE_CONSTANTS_NAME MPI_F08_TYPES_NAME MPI_F08_CALLBACKS_NAME MPI_F08_LINK_CONSTANTS_NAME MPI_F08_NAME MPIBASEMODNAME MPISIZEOFMODNAME MPICONSTMODNAME MPIMODNAME FCMODINCSPEC FCMODOUTFLAG FCMODINCFLAG FC_WORK_FILES_ARG FCMODEXT FCEXT BUILD_F08_BINDING_FALSE BUILD_F08_BINDING_TRUE F77CPP MPIFPMPI F77_LIBDIR_LEADER F77_INCDIR F77_OTHER_LIBS F77_NAME_MANGLE FILE FLIBS WRAPPER_RPATH_LDFLAGS C_LINKPATH_SHL pm_name BUILD_ROMIO_FALSE BUILD_ROMIO_TRUE HAVE_ROMIO netloclibdir use_embedded_hwloc_FALSE use_embedded_hwloc_TRUE have_hwloc_FALSE have_hwloc_TRUE FOUND_XZ_FALSE FOUND_XZ_TRUE BUILD_MPITOOLS_FALSE BUILD_MPITOOLS_TRUE BUILD_NETLOCSCOTCH_FALSE BUILD_NETLOCSCOTCH_TRUE BUILD_NETLOC_FALSE BUILD_NETLOC_TRUE HWLOC_HAVE_CXX_FALSE HWLOC_HAVE_CXX_TRUE HWLOC_XML_LIBXML_BUILD_STATIC_FALSE HWLOC_XML_LIBXML_BUILD_STATIC_TRUE HWLOC_GL_BUILD_STATIC_FALSE HWLOC_GL_BUILD_STATIC_TRUE HWLOC_NVML_BUILD_STATIC_FALSE HWLOC_NVML_BUILD_STATIC_TRUE HWLOC_CUDA_BUILD_STATIC_FALSE HWLOC_CUDA_BUILD_STATIC_TRUE HWLOC_OPENCL_BUILD_STATIC_FALSE HWLOC_OPENCL_BUILD_STATIC_TRUE HWLOC_PCI_BUILD_STATIC_FALSE HWLOC_PCI_BUILD_STATIC_TRUE HWLOC_HAVE_PLUGINS_FALSE HWLOC_HAVE_PLUGINS_TRUE HWLOC_HAVE_X86_CPUID_FALSE HWLOC_HAVE_X86_CPUID_TRUE HWLOC_HAVE_X86_64_FALSE HWLOC_HAVE_X86_64_TRUE HWLOC_HAVE_X86_32_FALSE HWLOC_HAVE_X86_32_TRUE HWLOC_HAVE_X86_FALSE HWLOC_HAVE_X86_TRUE HWLOC_HAVE_MINGW32_FALSE HWLOC_HAVE_MINGW32_TRUE HWLOC_HAVE_WINDOWS_FALSE HWLOC_HAVE_WINDOWS_TRUE HWLOC_HAVE_HPUX_FALSE HWLOC_HAVE_HPUX_TRUE HWLOC_HAVE_AIX_FALSE HWLOC_HAVE_AIX_TRUE HWLOC_HAVE_SOLARIS_FALSE HWLOC_HAVE_SOLARIS_TRUE HWLOC_HAVE_NETBSD_FALSE HWLOC_HAVE_NETBSD_TRUE HWLOC_HAVE_FREEBSD_FALSE HWLOC_HAVE_FREEBSD_TRUE HWLOC_HAVE_DARWIN_FALSE HWLOC_HAVE_DARWIN_TRUE HWLOC_HAVE_IRIX_FALSE HWLOC_HAVE_IRIX_TRUE HWLOC_HAVE_BGQ_FALSE HWLOC_HAVE_BGQ_TRUE HWLOC_HAVE_LINUX_FALSE HWLOC_HAVE_LINUX_TRUE HWLOC_INSTALL_DOXYGEN_FALSE HWLOC_INSTALL_DOXYGEN_TRUE HWLOC_BUILD_README_FALSE HWLOC_BUILD_README_TRUE HWLOC_BUILD_DOXYGEN_FALSE HWLOC_BUILD_DOXYGEN_TRUE HWLOC_HAVE_USER32_FALSE HWLOC_HAVE_USER32_TRUE HWLOC_HAVE_BUNZIPP_FALSE HWLOC_HAVE_BUNZIPP_TRUE HWLOC_HAVE_NVML_FALSE HWLOC_HAVE_NVML_TRUE HWLOC_HAVE_OPENCL_FALSE HWLOC_HAVE_OPENCL_TRUE HWLOC_HAVE_PCIACCESS_FALSE HWLOC_HAVE_PCIACCESS_TRUE HWLOC_HAVE_CAIRO_FALSE HWLOC_HAVE_CAIRO_TRUE HWLOC_HAVE_LIBXML2_FALSE HWLOC_HAVE_LIBXML2_TRUE HWLOC_HAVE_CUDART_FALSE HWLOC_HAVE_CUDART_TRUE HWLOC_HAVE_GL_FALSE HWLOC_HAVE_GL_TRUE HWLOC_HAVE_CUDA_FALSE HWLOC_HAVE_CUDA_TRUE HWLOC_HAVE_LIBIBVERBS_FALSE HWLOC_HAVE_LIBIBVERBS_TRUE HWLOC_HAVE_LINUX_LIBNUMA_FALSE HWLOC_HAVE_LINUX_LIBNUMA_TRUE HWLOC_HAVE_PTHREAD_FALSE HWLOC_HAVE_PTHREAD_TRUE HWLOC_HAVE_SCHED_SETAFFINITY_FALSE HWLOC_HAVE_SCHED_SETAFFINITY_TRUE HWLOC_HAVE_OPENAT_FALSE HWLOC_HAVE_OPENAT_TRUE HWLOC_HAVE_MS_LIB_FALSE HWLOC_HAVE_MS_LIB_TRUE HWLOC_HAVE_GCC_FALSE HWLOC_HAVE_GCC_TRUE HWLOC_BUILD_STANDALONE_FALSE HWLOC_BUILD_STANDALONE_TRUE HWLOC_EMBEDDED_LIBS HWLOC_EMBEDDED_LDADD HWLOC_EMBEDDED_CPPFLAGS HWLOC_EMBEDDED_CFLAGS HWLOC_LIBS_PRIVATE HWLOC_LIBS HWLOC_LDFLAGS HWLOC_CPPFLAGS HWLOC_CFLAGS HWLOC_REQUIRES HWLOC_PLUGINS_DIR HWLOC_PLUGINS_PATH HWLOC_HAVE_LIBXML2 HWLOC_LIBXML2_LIBS HWLOC_LIBXML2_CFLAGS HWLOC_GL_LIBS HWLOC_X11_LIBS HWLOC_X11_CPPFLAGS X_EXTRA_LIBS X_LIBS X_PRE_LIBS X_CFLAGS XMKMF HWLOC_HAVE_NVML HWLOC_NVML_LIBS HWLOC_CUDA_LIBS HWLOC_HAVE_OPENCL HWLOC_OPENCL_LDFLAGS HWLOC_OPENCL_LIBS HWLOC_OPENCL_CFLAGS HWLOC_PCIACCESS_LIBS HWLOC_PCIACCESS_CFLAGS PKG_CONFIG BASH HWLOC_MS_LIB HWLOC_MS_LIB_ARCH HWLOC_RELEASE_DATE HWLOC_VERSION HWLOC_top_srcdir HWLOC_top_builddir hwloclib hwloclibdir hwlocsrcdir VISIBILITY_CFLAGS BUILD_PROFILING_LIB_FALSE BUILD_PROFILING_LIB_TRUE zmlib zmlibdir zmsrcdir ZMLIBNAME opalib opalibdir opasrcdir OPALIBNAME mpllib mpllibdir mplsrcdir MPLLIBNAME BUILD_LOGGING_RLOG_FALSE BUILD_LOGGING_RLOG_TRUE HAVE_ERROR_CHECKING MPIFCLIBNAME MPICXXLIBNAME PMPILIBNAME MPILIBNAME BUILD_CH4_NETMOD_OFI_FALSE BUILD_CH4_NETMOD_OFI_TRUE BUILD_CH3_UTIL_SOCK_FALSE BUILD_CH3_UTIL_SOCK_TRUE BUILD_CH3_SOCK_FALSE BUILD_CH3_SOCK_TRUE BUILD_MPID_COMMON_SCHED_FALSE BUILD_MPID_COMMON_SCHED_TRUE BUILD_MPID_COMMON_THREAD_FALSE BUILD_MPID_COMMON_THREAD_TRUE BUILD_NEMESIS_NETMOD_MXM_FALSE BUILD_NEMESIS_NETMOD_MXM_TRUE BUILD_NEMESIS_NETMOD_TCP_FALSE BUILD_NEMESIS_NETMOD_TCP_TRUE BUILD_NEMESIS_NETMOD_LLC_FALSE BUILD_NEMESIS_NETMOD_LLC_TRUE BUILD_NEMESIS_NETMOD_PORTALS4_FALSE BUILD_NEMESIS_NETMOD_PORTALS4_TRUE BUILD_NEMESIS_NETMOD_OFI_FALSE BUILD_NEMESIS_NETMOD_OFI_TRUE BUILD_MPID_COMMON_SHM_FALSE BUILD_MPID_COMMON_SHM_TRUE BUILD_CH3_NEMESIS_FALSE BUILD_CH3_NEMESIS_TRUE channel_name BUILD_CH3_UTIL_FTB_FALSE BUILD_CH3_UTIL_FTB_TRUE BUILD_CH3_FALSE BUILD_CH3_TRUE BUILD_MPID_COMMON_BC_FALSE BUILD_MPID_COMMON_BC_TRUE BUILD_SHM_POSIX_FALSE BUILD_SHM_POSIX_TRUE BUILD_HCOLL_FALSE BUILD_HCOLL_TRUE BUILD_CH4_NETMOD_STUBNM_FALSE BUILD_CH4_NETMOD_STUBNM_TRUE BUILD_CH4_NETMOD_PORTALS4_FALSE BUILD_CH4_NETMOD_PORTALS4_TRUE BUILD_FC_BINDING_FALSE BUILD_FC_BINDING_TRUE BUILD_SHM_STUBSHM_FALSE BUILD_SHM_STUBSHM_TRUE BUILD_CH4_NETMOD_UCX_FALSE BUILD_CH4_NETMOD_UCX_TRUE ch4_netmod_exscan_params_decl ch4_netmod_scan_params_decl ch4_netmod_reduce_scatter_block_params_decl ch4_netmod_reduce_scatter_params_decl ch4_netmod_scatterv_params_decl ch4_netmod_scatter_params_decl ch4_netmod_gatherv_params_decl ch4_netmod_gather_params_decl ch4_netmod_allgatherv_params_decl ch4_netmod_allgather_params_decl ch4_netmod_alltoallw_params_decl ch4_netmod_alltoallv_params_decl ch4_netmod_alltoall_params_decl ch4_netmod_allreduce_params_decl ch4_netmod_reduce_params_decl ch4_netmod_bcast_params_decl ch4_netmod_barrier_params_decl ch4_netmod_op_decl ch4_netmod_addr_decl ch4_netmod_win_decl ch4_netmod_dt_decl ch4_netmod_comm_decl ch4_netmod_request_decl ch4_netmod_amrequest_decl ch4_netmod_coll_params_include ch4_netmod_coll_globals_default ch4_netmod_pre_include ch4_nets_strings ch4_nets_native_func_array ch4_nets_func_array ch4_nets_native_func_decl ch4_nets_func_decl ch4_nets_array_sz ch4_nets_array ch4_netmods device_name BUILD_CH4_FALSE BUILD_CH4_TRUE DEVICE master_top_srcdir master_top_builddir ac_ct_F77 FFLAGS F77 INSTALL_MPIF77_FALSE INSTALL_MPIF77_TRUE ac_ct_FC FCFLAGS FC CXXCPP am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE ac_ct_CXX CXXFLAGS CXX INTERLIB_DEPS LT_SYS_LIBRARY_PATH OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB DLLTOOL OBJDUMP LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP SED LIBTOOL ac_ct_AR AR MAINT MAINTAINER_MODE_FALSE MAINTAINER_MODE_TRUE AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM EGREP GREP CPP OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC target_os target_vendor target_cpu target host_os host_vendor host_cpu host build_os build_vendor build_cpu build enable_wrapper_rpath ABIVERSIONFLAGS MPICHLIB_FCFLAGS MPICHLIB_FFLAGS MPICHLIB_CXXFLAGS MPICHLIB_CPPFLAGS MPICHLIB_CFLAGS MPICH_MPIFORT_LIBS MPICH_MPIFORT_LDFLAGS MPICH_MPIFORT_FCFLAGS MPICH_MPIFORT_CPPFLAGS MPICH_MPIF77_LIBS MPICH_MPIF77_LDFLAGS MPICH_MPIF77_FFLAGS MPICH_MPIF77_CPPFLAGS MPICH_MPICXX_LIBS MPICH_MPICXX_LDFLAGS MPICH_MPICXX_CXXFLAGS MPICH_MPICXX_CPPFLAGS MPICH_MPICC_LIBS MPICH_MPICC_LDFLAGS MPICH_MPICC_CFLAGS MPICH_MPICC_CPPFLAGS WRAPPER_EXTRA_LIBS WRAPPER_LIBS WRAPPER_LDFLAGS WRAPPER_FCFLAGS WRAPPER_FFLAGS WRAPPER_CXXFLAGS WRAPPER_CPPFLAGS WRAPPER_CFLAGS USER_EXTRA_LIBS USER_LIBS USER_LDFLAGS USER_FCFLAGS USER_FFLAGS USER_CXXFLAGS USER_CPPFLAGS USER_CFLAGS CONFIGURE_ARGUMENTS ABIVERSION MPICH_CUSTOM_STRING MPICH_NUMVERSION libmpi_so_version MPICH_RELEASE_DATE MPICH_VERSION CONFIGURE_ARGS_CLEAN target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='cc_shlib_conf f77_shlib_conf fc_shlib_conf cxx_shlib_conf' ac_user_opts=' enable_option_checking with_custom_version_string enable_echo enable_error_checking enable_error_messages enable_tag_error_bits enable_timing enable_g enable_mpit_pvars with_aint_size enable_fast enable_interlib_deps enable_check_compiler_flags enable_fortran enable_f77 enable_fc enable_cxx enable_romio enable_debuginfo enable_versioning with_device with_pmi with_pm with_logging enable_threads enable_thread_cs enable_mdta enable_refcount enable_mutex_timing enable_predefined_refcount enable_weak_symbols enable_two_level_namespace enable_multi_aliases enable_wrapper_rpath enable_long_double with_cross with_namepublisher with_name_publisher enable_dbg_nolocal enable_dbg_localoddeven enable_dependency_tracking enable_silent_rules enable_maintainer_mode enable_shared enable_static with_pic enable_fast_install with_aix_soname with_gnu_ld with_sysroot enable_libtool_lock enable_cache enable_strict enable_ch4_netmod_inline enable_ch4_netmod_direct enable_ch4_direct enable_ch4_shm_inline enable_ch4_shm_direct with_ch4_netmod_ucx_args with_hcoll with_hcoll_include with_hcoll_lib with_ch4_shmmod_posix_args enable_sock_debug with_ch4_ofi_direct_provider with_mpl_prefix with_openpa_prefix with_atomic_primitives enable_izem with_zm_prefix enable_visibility with_hwloc_prefix with_x with_hwloc_plugins_path with_netloc_prefix with_pmix with_pmix_include with_pmix_lib enable_f77characterlen enable_coverage enable_alloca enable_checkpointing with_blcr with_blcr_include with_blcr_lib enable_base_cache with_ch4_rank_bits enable_ch4r_per_comm_msg_queue enable_ch4_mt with_ucx with_ucx_include with_ucx_lib enable_allowport with_portals4 with_portals4_include with_portals4_lib enable_onsig enable_newsession enable_pmiport with_slurm with_slurm_include with_slurm_lib enable_ftb with_ftb with_ftb_include with_ftb_lib with_ch3_rank_bits enable_nemesis_dbg_nolocal enable_nemesis_dbg_localoddeven with_papi enable_nemesis_shm_collectives with_knem with_knem_include with_nemesis_local_lmt enable_nemesis_lock_free_queues with_ofi with_ofi_include with_ofi_lib with_libmemcached with_libmemcached_include with_libmemcached_lib with_ibverbs with_ibverbs_include with_ibverbs_lib with_llc with_llc_include with_llc_lib with_mxm with_mxm_include with_mxm_lib with_libfabric with_libfabric_include with_libfabric_lib ' ac_precious_vars='build_alias host_alias target_alias MPICHLIB_CFLAGS MPICHLIB_CPPFLAGS MPICHLIB_CXXFLAGS MPICHLIB_FFLAGS MPICHLIB_FCFLAGS CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP LT_SYS_LIBRARY_PATH CXX CXXFLAGS CCC CXXCPP FC FCFLAGS F77 FFLAGS MPILIBNAME PMPILIBNAME MPICXXLIBNAME MPIFCLIBNAME MPLLIBNAME OPALIBNAME ZMLIBNAME HWLOC_MS_LIB PKG_CONFIG HWLOC_PCIACCESS_CFLAGS HWLOC_PCIACCESS_LIBS XMKMF HWLOC_LIBXML2_CFLAGS HWLOC_LIBXML2_LIBS AR_FLAGS GCOV' ac_subdirs_all='test/mpi' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures MPICH 3.3.2 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/mpich] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of MPICH 3.3.2:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-echo Turn on strong echoing. The default is enable=no. --enable-error-checking=level Control the amount of error checking. no - no error checking runtime - error checking controllable at runtime through environment variables all - error checking always enabled (default) --enable-error-messages=level - Control the amount of detail in error messages. all - Maximum amount of information generic - Only generic messages (no information about the specific instance) class - One message per MPI error class none - No messages --enable-tag-error-bits=yes|no - Control whether bits are taken from the user tag for error handling. yes - Two bits are taken from the user tag to support error propagation. no - No bits are taken from the user tag (this could cause deadlock if an error is detected during a collective). --enable-timing=level - Control the amount of timing information collected by the MPICH implementation. none - Collect no data (default) all - Collect lots of data runtime - Runtime control of data collected --enable-g=option - Control the level of debugging support in the MPICH implementation. "option" is a list of comma separated names including. Default is "most". none - No debugging handle - Trace handle operations handlealloc - Trace handle allocations dbg - Add compiler flag, -g, to all internal compiler flags, i.e. MPICHLIB_CFLAGS, MPICHLIB_CXXFLAGS, MPICHLIB_FFLAGS, and MPICHLIB_FCFLAGS. debug - Synonym for dbg mem - Memory usage tracing meminit - Preinitialize memory associated structures and unions to eliminate access warnings from programs like valgrind memarena - Check for overwrite errors in memory allocation arena mutex - Enable error checking on pthread mutexes mutexnesting - Check for non-nesting of mutexes most - Most of the above options, excluding some with severe performance impacts. Recommended for typical development. yes - synonym for "most" (*not* "all") all - All of the above choices --enable-mpit-pvars=list - Selectively enable MPI_T performance variables in modules. list is a comma-separated module names, including (Default is "none"): none - No performance info recorded recvq - All message queue-related nem - All nemesis-related rma - All rma-related all - All variables above --enable-fast=option - Control the level of fast execution in the MPICH implementation. option is a list of comma separated names including O - Appends default optimization flags, -O, to all internal compiler flags, i.e. MPICHLIB_CFLAGS, MPICHLIB_CXXFLAGS, MPICHLIB_FFLAGS, and MPICHLIB_FCFLAGS. (default is -O2) ndebug - Appends -DNDEBUG to MPICHLIB_CFLAGS. all|yes - "O2" and "ndebug" are enabled none - None of above options, i.e. --disable-fast --enable-interlib-deps - Enable interlibrary dependencies --enable-check-compiler-flags enable the checks for all compiler options, xxxFLAGS, MPICH_xxxFLAGS. Default is on. --enable-fortran=option - Control the level of Fortran support in the MPICH implementation. yes|all - Enable all available Fortran implementations (F77, F90+) f77 - Enable Fortran 77 support fc - Enable Fortran 90 and 2008 support no|none - No Fortran support --enable-f77 DEPRECATED: Use --enable-fortran or --disable-fortran instead --enable-fc DEPRECATED: Use --enable-fortran or --disable-fortran instead --enable-cxx Enable C++ bindings --enable-romio Enable ROMIO MPI I/O implementation --enable-debuginfo Enable support for debuggers --enable-versioning Enable library versioning --enable-threads=level - Control the level of thread support in the MPICH implementation. The following levels are supported. single - No threads (MPI_THREAD_SINGLE) funneled - Only the main thread calls MPI (MPI_THREAD_FUNNELED) serialized - User serializes calls to MPI (MPI_THREAD_SERIALIZED) multiple - Fully multi-threaded (MPI_THREAD_MULTIPLE) runtime - Alias to "multiple" See also the --enable-thread-cs option for controlling the granularity of the concurrency inside of the library --enable-thread-cs=type Choose the method used for critical sections and other atomic updates when multiple threads are present. Values may be global (default), per-object, per-vni, lock-free --enable-mdta Optimize global granularity using message-driven thread activation. Only available for ch4 device with --enable-thread-cs=global --enable-refcount=type Choose the method for ensuring atomic updates to the reference counts for MPI objects. Values may be lock-free or none. The default depends on the thread-cs choice; for global it is none (because none is required), for per-object, per-vni, and lock-free, lock-free --enable-mutex-timing calculate the time spent waiting on mutexes --enable-predefined-refcount control whether predefined objects like MPI_COMM_WORLD are reference counted (default depends on --enable-thread-cs choice) --enable-weak-symbols Use weak symbols to implement PMPI routines (default) --enable-two-level-namespace (Darwin only) Build shared libraries and programs built with the mpicc/mpifort/etc. compiler wrappers with '-Wl,-commons,use_dylibs' and without '-Wl,-flat_namespace'. This may make the MPICH installation and MPI programs more compatible with other libraries. Only enable this option if you really know what these linker options imply. --enable-multi-aliases Multiple aliasing to support multiple fortran compilers (default) --enable-wrapper-rpath Determine whether the rpath is set when programs are linked by mpicc compiler wrappers. This only applies when shared libraries are built. The default is yes; use --disable-wrapper-rpath to turn this feature off. In that case, shared libraries will be found according to the rules for your system (e.g., in LD_LIBRARY_PATH) --disable-long-double Pass --disable-long-double to prevent the MPI library from supporting the C "long double" type, even if the C compiler supports it. "long double" support is enabled by default, provided the compiler supports it. --enable-dbg-nolocal enables debugging mode where shared-memory communication is disabled --enable-dbg-localoddeven enables debugging mode where shared-memory communication is enabled only between even processes or odd processes on a node --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --disable-maintainer-mode disable make rules and dependencies not useful (and sometimes confusing) to the casual installer --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --enable-cache Turn on configure caching --enable-strict Turn on strict compilation testing --enable-ch4-netmod-inline Enables inlined netmod build when a single netmod is used level: yes - Enabled (default) no - Disabled (may improve build times and code size) --enable-ch4-netmod-direct (Deprecated in favor of ch4-netmod-inline) Enables inlined netmod build when a single netmod is used level: yes - Enabled (default) no - Disabled (may improve build times and code size) --enable-ch4-direct Defines the direct communication routine used in CH4 device level: netmod - Directly transfer data through the chosen netmode auto - The CH4 device controls whether transfer data through netmod or through shared memory based on locality --enable-ch4-shm-inline Enables inlined shared memory build when a single shared memory module is used level: yes - Enabled (default) no - Disabled (may improve build times and code size) --enable-ch4-shm-direct (Deprecated in favor of ch4-shm-inline) Enables inlined shared memory build when a single shared memory module is used level: yes - Enabled (default) no - Disabled (may improve build times and code size) --enable-sock-debug - Turn on tests of the socket data structures --enable-izem[=ARGS] Enable features from the Izem library. "ARGS" is a list of comma separated features. Accepted arguments are: sync - use the Izem interface for sychronization objects (locks and condition variables) instead of the MPL interface queue - use the Izem interface for atomic queue objects atomic - use the Izem interface for CPU atomics yes/all - all of the above features are enabled no/none - none of the above features are enabled --enable-visibility enable visibility feature of certain compilers/linkers (default: enabled on platforms that support it) --enable-f77characterlen Select between int and size_t for the length of a Fortran CHARACTER, depending on the F77 compiler. If --enable-f77characterlen=size_t is given, force the use of size_t. This is used for passing Fortran CHARACTER data between C and Fortran, and is provided for experts. Note that the documentation provided by compiler vendors on the calling convention may not be accurate. --enable-coverage Turn on coverage analysis using gcc and gcov --enable-alloca Use alloca to allocate temporary memory if available --enable-checkpointing Enable application checkpointing --enable-base-cache Enable the use of a simple cache for the subsidiary configure scripts --enable-ch4r-per-comm-msg-queue=option Enable use of per-communicator message queues for posted recvs/unexpected messages yes - Use per-communicator message queue. (Default) no - Use global queue for posted recvs/unexpected messages. --enable-ch4-mt=model Select model for multi-threading direct - Each thread directly accesses lower-level fabric (default) handoff - Use the hand-off model (spawns progress thread) trylock - Use the trylock-enqueue model runtime - Determine the model at runtime through a CVAR --enable-allowport Turn on use of a port for communicating with the processes started by mpiexec --enable-onsig Control the handling of processes that signal (e.g., SEGV) using ptrace. Disabled by default --enable-newsession Create a new process group session if standard in is not connected to a terminal --enable-onsig Control the handling of processes that signal (e.g., SEGV) using ptrace. Disabled by default --enable-newsession Create a new process group session if standard in is not connected to a terminal --enable-pmiport - Allow PMI interface to use a host-port pair to contact for PMI services --enable-ftb Enable FTB support (default is no) --enable-fast - pick the appropriate options for fast execution. This turns off error checking and timing collection --enable-nemesis-dbg-nolocal alias for --enable-dbg-nolocal --enable-nemesis-dbg-localoddeven alias for --enable-dbg-localoddeven --enable-nemesis-shm-collectives - enables use of shared memory for collective comunication within a node --enable-nemesis-lock-free-queues - Use atomic instructions and lock-free queues for shared memory communication. Lock-based queues will be used otherwise. The default is enabled (lock-free). Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-custom-version-string Adds a user-specified value to the output of the mpichversion executable --with-aint-size Override the size of MPI_AINT (in bytes) --with-device=name Specify the communication device for MPICH --with-pmi=name Specify the pmi interface for MPICH --with-pm=name Specify the process manager for MPICH. "no" or "none" are valid values. Multiple process managers may be specified as long as they all use the same pmi interface by separating them with colons. The mpiexec for the first named process manager will be installed. Example: "--with-pm=hydra:gforker" builds the two process managers hydra, and gforker; only the mpiexec from hydra is installed into the bin directory. --with-logging=name Specify the logging library for MPICH --with-cross=file Specify the values of variables that configure cannot determine in a cross-compilation environment --with-namepublisher=name Choose the system that will support MPI_PUBLISH_NAME and MPI_LOOKUP_NAME. Options include pmi (default) file:directory (optional directory) no (no service available) --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --with-aix-soname=aix|svr4|both shared library versioning (aka "SONAME") variant to provide on AIX, [default=aix]. --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot[=DIR] Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --with-ch4-netmod-ucx-args=arg1:arg2:arg3 CH4 OFI netmod arguments: am-only - Do not use UCX tagged or RMA communication. --with-hcoll=[PATH] specify path where hcoll include directory and lib directory can be found --with-hcoll-include=PATH specify path where hcoll include directory can be found --with-hcoll-lib=PATH specify path where hcoll lib directory can be found --with-ch4-shmmod-posix-args=arg1:arg2:arg3 CH4 POSIX shmmod arguments: disable-lock-free-queues - Disable atomics and lock-free queues --with-ch4-ofi-direct-provider=provider provider - Build OFI with FABRIC_DIRECT mode using the specified provider Provider value does not matter if not building an embedded OFI library --with-mpl-prefix[=DIR] use the MPL library installed in DIR, rather than the one included in src/mpl. Pass "embedded" to force usage of the MPL source distributed with MPICH. --with-openpa-prefix[=DIR] use the OpenPA atomics library installed in DIR, rather than the one included in src/openpa. Pass "embedded" to force usage of the OpenPA source distributed with MPICH. --with-atomic-primitives Force OPA to use a specific atomic primitives implementation. See the src/openpa directory for more info. --with-zm-prefix[=ARG] specify the Izem library to use. No argument implies "yes". Accepted values for ARG are: yes|embedded - use the embedded Izem system - search system paths for an Izem installation no - disable Izem - use the Izem at PATH --with-hwloc-prefix[=DIR] use the HWLOC library installed in DIR, rather than the one included in src/hwloc. Pass "embedded" to force usage of the HWLOC source distributed with MPICH. --with-x use the X Window System --with-hwloc-plugins-path=dir:... Colon-separated list of plugin directories. Default: "$prefix/lib/hwloc". Plugins will be installed in the first directory. They will be loaded from all of them, in order. --with-netloc-prefix[=DIR] use the NETLOC library installed in DIR or system to use the system library --with-pmix=[PATH] specify path where pmix include directory and lib directory can be found --with-pmix-include=PATH specify path where pmix include directory can be found --with-pmix-lib=PATH specify path where pmix lib directory can be found --with-blcr=[PATH] specify path where blcr include directory and lib directory can be found --with-blcr-include=PATH specify path where blcr include directory can be found --with-blcr-lib=PATH specify path where blcr lib directory can be found --with-ch4-rank-bits=16/32 Number of bits allocated to the rank field (16 or 32) --with-ucx=[PATH] specify path where ucx include directory and lib directory can be found --with-ucx-include=PATH specify path where ucx include directory can be found --with-ucx-lib=PATH specify path where ucx lib directory can be found --with-portals4=[PATH] specify path where portals4 include directory and lib directory can be found --with-portals4-include=PATH specify path where portals4 include directory can be found --with-portals4-lib=PATH specify path where portals4 lib directory can be found --with-slurm=[PATH] specify path where slurm include directory and lib directory can be found --with-slurm-include=PATH specify path where slurm include directory can be found --with-slurm-lib=PATH specify path where slurm lib directory can be found --with-ftb=[PATH] specify path where ftb include directory and lib directory can be found --with-ftb-include=PATH specify path where ftb include directory can be found --with-ftb-lib=PATH specify path where ftb lib directory can be found --with-ch3-rank-bits=16/32 Number of bits allocated to the rank field (16 or 32) --with-papi=path - specify path where papi include and lib directories can be found --with-knem=path - specify path where knem include directory can be found --with-knem-include=path - specify path to knem include directory --with-nemesis-local-lmt=method - specify an implementation for local large message transfers (LMT). Method is one of: 'default', 'shm_copy', 'knem', or 'none'. 'default' is the same as 'shm_copy'. --with-ofi=[PATH] specify path where ofi include directory and lib directory can be found --with-ofi-include=PATH specify path where ofi include directory can be found --with-ofi-lib=PATH specify path where ofi lib directory can be found --with-libmemcached=[PATH] specify path where libmemcached include directory and lib directory can be found --with-libmemcached-include=PATH specify path where libmemcached include directory can be found --with-libmemcached-lib=PATH specify path where libmemcached lib directory can be found --with-ibverbs=[PATH] specify path where ibverbs include directory and lib directory can be found --with-ibverbs-include=PATH specify path where ibverbs include directory can be found --with-ibverbs-lib=PATH specify path where ibverbs lib directory can be found --with-llc=[PATH] specify path where llc include directory and lib directory can be found --with-llc-include=PATH specify path where llc include directory can be found --with-llc-lib=PATH specify path where llc lib directory can be found --with-mxm=[PATH] specify path where mxm include directory and lib directory can be found --with-mxm-include=PATH specify path where mxm include directory can be found --with-mxm-lib=PATH specify path where mxm lib directory can be found --with-libfabric=[PATH] specify path where libfabric include directory and lib directory can be found --with-libfabric-include=PATH specify path where libfabric include directory can be found --with-libfabric-lib=PATH specify path where libfabric lib directory can be found Some influential environment variables: MPICHLIB_CFLAGS extra CFLAGS used in building MPICH libraries MPICHLIB_CPPFLAGS extra CPPFLAGS used in building MPICH libraries MPICHLIB_CXXFLAGS extra CXXFLAGS used in building MPICH libraries MPICHLIB_FFLAGS extra FFLAGS used in building MPICH libraries MPICHLIB_FCFLAGS extra FCFLAGS used in building MPICH libraries CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor LT_SYS_LIBRARY_PATH User-defined run-time library search path. CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor FC Fortran compiler command FCFLAGS Fortran compiler flags F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags MPILIBNAME can be used to override the name of the MPI library (default: "mpi") PMPILIBNAME can be used to override the name of the MPI profiling library (default: "p$MPILIBNAME") MPICXXLIBNAME can be used to override the name of the MPI C++ library (default: "${MPILIBNAME}cxx") MPIFCLIBNAME can be used to override the name of the MPI fortran library (default: "${MPILIBNAME}fort") MPLLIBNAME can be used to override the name of the MPL library (default: "mpl") OPALIBNAME can be used to override the name of the OpenPA library (default: "opa") ZMLIBNAME can be used to override the name of the Izem library (default: "zm") HWLOC_MS_LIB Path to Microsoft's Visual Studio `lib' tool PKG_CONFIG path to pkg-config utility HWLOC_PCIACCESS_CFLAGS C compiler flags for PCIACCESS, overriding pkg-config HWLOC_PCIACCESS_LIBS linker flags for PCIACCESS, overriding pkg-config XMKMF Path to xmkmf, Makefile generator for X Window System HWLOC_LIBXML2_CFLAGS C compiler flags for LIBXML2, overriding pkg-config HWLOC_LIBXML2_LIBS linker flags for LIBXML2, overriding pkg-config AR_FLAGS AR command flags GCOV name/path for the gcov utility Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . MPICH home page: . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF MPICH configure 3.3.2 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ( $as_echo "## -------------------------------- ## ## Report this to discuss@mpich.org ## ## -------------------------------- ##" ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_cxx_try_cpp LINENO # ------------------------ # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_cpp # ac_fn_cxx_try_link LINENO # ------------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_link # ac_fn_fc_try_compile LINENO # --------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_fc_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_fc_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_fc_try_compile # ac_fn_fc_try_link LINENO # ------------------------ # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_fc_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_fc_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_fc_try_link # ac_fn_f77_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_f77_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_f77_try_compile # ac_fn_f77_try_link LINENO # ------------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_f77_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_f77_try_link # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES # -------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes # INCLUDES, setting VAR accordingly. Returns whether the value could be # computed ac_fn_c_compute_int () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=$ac_mid; break else as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_lo=$ac_mid; break else as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=$ac_mid else as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; '') ac_retval=1 ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 static long int longval () { return $2; } static unsigned long int ulongval () { return $2; } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (($2) < 0) { long int i = longval (); if (i != ($2)) return 1; fprintf (f, "%ld", i); } else { unsigned long int i = ulongval (); if (i != ($2)) return 1; fprintf (f, "%lu", i); } /* Do not output a trailing newline, as this causes \r\n confusion on some platforms. */ return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : echo >>conftest.val; read $3 &5 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { #ifndef $as_decl_name #ifdef __cplusplus (void) $as_decl_use; #else (void) $as_decl_name; #endif #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_decl # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type # ac_fn_fc_try_run LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_fc_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_fc_try_run # ac_fn_cxx_try_run LINENO # ------------------------ # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_cxx_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_run # ac_fn_c_find_intX_t LINENO BITS VAR # ----------------------------------- # Finds a signed integer type with width BITS, setting cache variable VAR # accordingly. ac_fn_c_find_intX_t () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 $as_echo_n "checking for int$2_t... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" # Order is important - never check a type that is potentially smaller # than half of the expected target width. for ac_type in int$2_t 'int' 'long int' \ 'long long int' 'short int' 'signed char'; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default enum { N = $2 / 2 - 1 }; int main () { static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default enum { N = $2 / 2 - 1 }; int main () { static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else case $ac_type in #( int$2_t) : eval "$3=yes" ;; #( *) : eval "$3=\$ac_type" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if eval test \"x\$"$3"\" = x"no"; then : else break fi done fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_find_intX_t # ac_fn_c_find_uintX_t LINENO BITS VAR # ------------------------------------ # Finds an unsigned integer type with width BITS, setting cache variable VAR # accordingly. ac_fn_c_find_uintX_t () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 $as_echo_n "checking for uint$2_t... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" # Order is important - never check a type that is potentially smaller # than half of the expected target width. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 'unsigned long long int' 'unsigned short int' 'unsigned char'; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : case $ac_type in #( uint$2_t) : eval "$3=yes" ;; #( *) : eval "$3=\$ac_type" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if eval test \"x\$"$3"\" = x"no"; then : else break fi done fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_find_uintX_t # ac_fn_f77_try_run LINENO # ------------------------ # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_f77_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_f77_try_run # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES # ---------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes # INCLUDES, setting VAR accordingly. Returns whether the value could be # computed ac_fn_cxx_compute_int () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_hi=$ac_mid; break else as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_lo=$ac_mid; break else as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_hi=$ac_mid else as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; '') ac_retval=1 ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 static long int longval () { return $2; } static unsigned long int ulongval () { return $2; } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (($2) < 0) { long int i = longval (); if (i != ($2)) return 1; fprintf (f, "%ld", i); } else { unsigned long int i = ulongval (); if (i != ($2)) return 1; fprintf (f, "%lu", i); } /* Do not output a trailing newline, as this causes \r\n confusion on some platforms. */ return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : echo >>conftest.val; read $3 &5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ( $as_echo "## -------------------------------- ## ## Report this to discuss@mpich.org ## ## -------------------------------- ##" ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_cxx_check_header_mongrel cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by MPICH $as_me 3.3.2, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test "$CONFIGURE_DEBUG_CACHE" = yes ; then oldopts="$-" clearMinusX=no set -x if test "$oldopts" != "$-" ; then clearMinusX=yes fi fi if test "X$cache_system" = "X" ; then # A default file name, just in case cache_system="config.system" if test "$cache_file" != "/dev/null" ; then # Get the directory for the cache file, if any cache_system=`echo $cache_file | sed -e 's%^\(.*/\)[^/]*%\1config.system%'` test "x$cache_system" = "x$cache_file" && cache_system="config.system" # else # We must *not* set enable_cache to no because we need to know if # enable_cache was not set. # enable_cache=no fi fi # # Get a test value and flag whether we should remove/replace the # cache_system file (do so unless cache_system_ok is yes) # FC and F77 should be synonyms. Save both in case # We include the xxxFLAGS in case the user is using the flags to change # the language (either input or output) of the compiler. E.g., # using -xarch=v9 on Solaris to select 64 bit output or using -D_BSD_SOURCE # with gcc to get different header files on input. cleanargs=`echo "$CC $F77 $FC $CXX $F90 $CFLAGS $FFLAGS $CXXFLAGS $F90FLAGS $PATH" | tr '"' ' '` if uname -srm >/dev/null 2>&1 ; then cache_system_text="`uname -srm` $cleanargs" else cache_system_text="-no-uname- $cleanargs" fi cache_system_ok=no # if test -z "$real_enable_cache" ; then real_enable_cache=$enable_cache if test -z "$real_enable_cache" ; then real_enable_cache="notgiven" ; fi fi if test "X$real_enable_cache" = "Xnotgiven" ; then # check for valid cache file if test -z "$cache_system" ; then cache_system="config.system" ; fi if uname -srm >/dev/null 2>&1 ; then if test -f "$cache_system" -a -n "$cache_system_text" ; then if test "$cache_system_text" = "`cat $cache_system`" ; then real_enable_cache="yes" cache_system_ok=yes fi elif test ! -f "$cache_system" -a -n "$cache_system_text" ; then # remove the cache file because it may not correspond to our # system if test "$cache_file" != "/dev/null" ; then rm -f $cache_file fi real_enable_cache="yes" fi fi fi if test "X$real_enable_cache" = "Xyes" -a "$cache_file" = "/dev/null" ; then real_enable_cache=no fi if test "X$real_enable_cache" = "Xyes" ; then if test -r "$cache_file" ; then echo "loading cache $cache_file" if test -w "$cache_file" ; then # Clean the cache file (ergh) rm -f confcache sed -e "s/'\\\\''//g" -e "s/'\\\\/'/" -e "s/\\\\'/'/" \ -e "s/'\\\\''//g" $cache_file > confcache if cmp -s $cache_file confcache ; then : else if test -w $cache_file ; then echo "updating cache $cache_file" cat confcache > $cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache if test "$DEBUG_AUTOCONF_CACHE" = "yes" ; then echo "Results of cleaned cache file:" echo "--------------------------------------------------------" cat $cache_file echo "--------------------------------------------------------" fi fi . $cache_file else echo "Configure in `pwd` creating cache $cache_file" > $cache_file rm -f $cache_system fi else cache_file="/dev/null" fi # Remember our location and the name of the cachefile pac_cv_my_conf_dir=`pwd` # # Update the cache_system file if necessary if test "$cache_system_ok" != yes ; then if test -n "$cache_system" ; then rm -f $cache_system echo $cache_system_text > $cache_system fi fi if test "$clearMinusX" = yes ; then set +x fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "x$prefix" != "xNONE" && test -d "$prefix"; then if test "x`(cd \"$prefix\"; echo \"$PWD\")`" = "x`(cd \"$srcdir\"; echo \"$PWD\")`" ||\ test "x`(cd \"$prefix\"; echo \"$PWD\")`" = "x$PWD" ; then as_fn_error $? "The install directory (--prefix=) cannot be the same as the build or src directory." "$LINENO" 5 fi fi CONFIGURE_ARGS_CLEAN=`echo $* | tr '"' ' '` # these values come from the m4_include above MPICH_VERSION=3.3.2 MPICH_RELEASE_DATE="Tue Nov 12 21:23:16 CST 2019" libmpi_so_version="13:8:1" if test -z "$MPICH_VERSION" ; then as_fn_error $? "MPICH_VERSION is empty, check maint/version.m4 for errors" "$LINENO" 5 fi # Produce a numeric version assuming the following format: # Version: [MAJ].[MIN].[REV][EXT][EXT_NUMBER] # Example: 1.0.7rc1 has # MAJ = 1 # MIN = 0 # REV = 7 # EXT = rc # EXT_NUMBER = 1 # # Converting to numeric version will convert EXT to a format number: # ALPHA (a) = 0 # BETA (b) = 1 # RC (rc) = 2 # PATCH (p) = 3 # Regular releases are treated as patch 0 # # Numeric version will have 1 digit for MAJ, 2 digits for MIN, # 2 digits for REV, 1 digit for EXT and 2 digits for EXT_NUMBER. V1=`expr $MPICH_VERSION : '\([0-9]*\)\.[0-9]*\.*[0-9]*[a-zA-Z]*[0-9]*'` V2=`expr $MPICH_VERSION : '[0-9]*\.\([0-9]*\)\.*[0-9]*[a-zA-Z]*[0-9]*'` V3=`expr $MPICH_VERSION : '[0-9]*\.[0-9]*\.*\([0-9]*\)[a-zA-Z]*[0-9]*'` V4=`expr $MPICH_VERSION : '[0-9]*\.[0-9]*\.*[0-9]*\([a-zA-Z]*\)[0-9]*'` V5=`expr $MPICH_VERSION : '[0-9]*\.[0-9]*\.*[0-9]*[a-zA-Z]*\([0-9]*\)'` if test "$V2" -le 9 ; then V2=0$V2 ; fi if test "$V3" = "" ; then V3=0; fi if test "$V3" -le 9 ; then V3=0$V3 ; fi if test "$V4" = "a" ; then V4=0 elif test "$V4" = "b" ; then V4=1 elif test "$V4" = "rc" ; then V4=2 elif test "$V4" = "" ; then V4=3 V5=0 elif test "$V4" = "p" ; then V4=3 fi if test "$V5" -le 9 ; then V5=0$V5 ; fi MPICH_NUMVERSION=`expr $V1$V2$V3$V4$V5 + 0` # Check whether --with-custom-version-string was given. if test "${with_custom_version_string+set}" = set; then : withval=$with_custom_version_string; else with_custom_version_string="" fi MPICH_CUSTOM_STRING=$with_custom_version_string # ABIVERSION is the name used by simplemake, so we reassign the # libmpi_so_version number to it ABIVERSION=${libmpi_so_version} export ABIVERSION export libmpi_so_version # Print out the configure options CONFIGURE_ARGUMENTS="$ac_configure_args" if test -n "$ac_configure_args" ; then echo "Configuring MPICH version $MPICH_VERSION with $ac_configure_args" else echo "Configuring MPICH version $MPICH_VERSION" fi # Add the information on the system: echo "Running on system: `uname -a`" ac_config_headers="$ac_config_headers src/include/mpichconf.h" # We use an #include strategy here because all of the alternative strategies for # quashing these variables have various drawbacks. The alternatives are listed # here to avoid rediscovery of these problems by someone else in the future: # # 1) Strategy: Rewrite mpichconf.h.in with sed at autogen.sh time. # Problem: Automatic remaking of config.status and friends will re-run # autoheader and blow away our sed changes without an opportunity to # patch the resulting file again. # 2) Strategy: Add literal "#undef PACKAGE" lines to the AH_BOTTOM text. # Problem: These lines get rewritten by config.status to be "#define" lines, # so the intended quashing never actually occurs. # 3) Strategy: Use AC_CONFIG_COMMANDS to run a sed rewrite command on # mpichconf.h at config.status time. # Problem: Causes mpichconf.h to always be rewritten, first by the normal # config.status commands and then by sed. This can cause # unnecessary remaking of object files since nearly every C source # file includes this header (see the Autoconf Manual, "Automatic # Remaking") # # The only other plausible strategy would seem to be rewriting config.status # itself via AC_CONFIG_COMMANDS_POST, but that seems error prone. The best # solution would be to stop all subconfigures from including config.h headers # from other packages. Then all of this nonsense can be eliminated. # [goodell@ 2011-08-26] ac_aux_dir= for ac_dir in confdb "$srcdir"/confdb; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in confdb \"$srcdir\"/confdb" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Set the FROM_MPICH variable to tell subconfigures that they are # built from within MPICH FROM_MPICH=yes export FROM_MPICH # Save a copy of precious flags as USER_* before any of these flags # are being modified by configure tests. USER_CFLAGS=$CFLAGS export USER_CFLAGS USER_CPPFLAGS=$CPPFLAGS export USER_CPPFLAGS USER_CXXFLAGS=$CXXFLAGS export USER_CXXFLAGS USER_FFLAGS=$FFLAGS export USER_FFLAGS USER_FCFLAGS=$FCFLAGS export USER_FCFLAGS USER_LDFLAGS=$LDFLAGS export USER_LDFLAGS USER_LIBS=$LIBS export USER_LIBS USER_EXTRA_LIBS=$EXTRA_LIBS export USER_EXTRA_LIBS # WRAPPER_xFLAGS are used by mpicc and friends. # # WRAPPER_CFLAGS and other compile flags are used for compile options # that are added by MPICH, but should be used by applications (such # as include paths). # # All libraries that are detected by MPICH as needed for some of its # functionality (such as -lpthread) should be added to WRAPPER_LIBS # so executables built within MPICH use them. If inter-library # dependencies are not supported on the platform, these libraries are # added to the MPICH wrappers (mpicc and friends) as well. WRAPPER_CFLAGS=$CFLAGS export WRAPPER_CFLAGS WRAPPER_CPPFLAGS=$CPPFLAGS export WRAPPER_CPPFLAGS WRAPPER_CXXFLAGS=$CXXFLAGS export WRAPPER_CXXFLAGS WRAPPER_FFLAGS=$FFLAGS export WRAPPER_FFLAGS WRAPPER_FCFLAGS=$FCFLAGS export WRAPPER_FCFLAGS WRAPPER_LDFLAGS=$LDFLAGS export WRAPPER_LDFLAGS WRAPPER_LIBS=$LIBS export WRAPPER_LIBS WRAPPER_EXTRA_LIBS=$EXTRA_LIBS export WRAPPER_EXTRA_LIBS # MPICH_MPIx_FLAGS are used by mpicc and friends. They are like # WRAPPER flags, but these are provided by the user. # Add MPICHLIB_* to the appropriate flags CFLAGS="$CFLAGS $MPICHLIB_CFLAGS" CPPFLAGS="$CPPFLAGS $MPICHLIB_CPPFLAGS" CXXFLAGS="$CXXFLAGS $MPICHLIB_CXXFLAGS" FFLAGS="$FFLAGS $MPICHLIB_FFLAGS" FCFLAGS="$FCFLAGS $MPICHLIB_FCFLAGS" # begin subsys includes # start of src/mpid/ch4/subconfigure.m4 # expansion is: PAC_SUBCFG_PREREQ_src_mpid_ch4 # end of src/mpid/ch4/subconfigure.m4 # start of src/mpid/ch4/netmod/ucx/subconfigure.m4 # end of src/mpid/ch4/netmod/ucx/subconfigure.m4 # start of src/pm/subconfigure.m4 # end of src/pm/subconfigure.m4 # start of src/mpid/ch4/shm/stubshm/subconfigure.m4 # end of src/mpid/ch4/shm/stubshm/subconfigure.m4 # start of src/binding/fortran/use_mpi/subconfigure.m4 # end of src/binding/fortran/use_mpi/subconfigure.m4 # start of src/pm/gforker/subconfigure.m4 # end of src/pm/gforker/subconfigure.m4 # start of src/mpid/ch4/netmod/portals4/subconfigure.m4 # end of src/mpid/ch4/netmod/portals4/subconfigure.m4 # start of src/mpid/ch4/netmod/stubnm/subconfigure.m4 # end of src/mpid/ch4/netmod/stubnm/subconfigure.m4 # start of src/mpid/common/hcoll/subconfigure.m4 # end of src/mpid/common/hcoll/subconfigure.m4 # start of src/pm/remshell/subconfigure.m4 # end of src/pm/remshell/subconfigure.m4 # start of src/pm/util/subconfigure.m4 # end of src/pm/util/subconfigure.m4 # start of src/mpid/ch4/shm/posix/subconfigure.m4 # end of src/mpid/ch4/shm/posix/subconfigure.m4 # start of src/mpid/common/bc/subconfigure.m4 # end of src/mpid/common/bc/subconfigure.m4 # start of src/pmi/subconfigure.m4 # end of src/pmi/subconfigure.m4 # start of src/pmi/slurm/subconfigure.m4 # end of src/pmi/slurm/subconfigure.m4 # start of src/pmi/pmi2/subconfigure.m4 # end of src/pmi/pmi2/subconfigure.m4 # start of src/pmi/pmi2/simple/subconfigure.m4 # end of src/pmi/pmi2/simple/subconfigure.m4 # start of src/pmi/bgq/subconfigure.m4 # end of src/pmi/bgq/subconfigure.m4 # start of src/pmi/cray/subconfigure.m4 # end of src/pmi/cray/subconfigure.m4 # start of src/pmi/simple/subconfigure.m4 # end of src/pmi/simple/subconfigure.m4 # start of src/mpid/ch3/subconfigure.m4 # expansion is: PAC_SUBCFG_PREREQ_src_mpid_ch3 # end of src/mpid/ch3/subconfigure.m4 # start of src/mpid/ch3/channels/nemesis/subconfigure.m4 # end of src/mpid/ch3/channels/nemesis/subconfigure.m4 # start of src/mpid/common/shm/subconfigure.m4 # end of src/mpid/common/shm/subconfigure.m4 # start of src/mpid/ch3/channels/nemesis/netmod/ofi/subconfigure.m4 # end of src/mpid/ch3/channels/nemesis/netmod/ofi/subconfigure.m4 # start of src/mpid/ch3/channels/nemesis/netmod/portals4/subconfigure.m4 # end of src/mpid/ch3/channels/nemesis/netmod/portals4/subconfigure.m4 # start of src/mpid/ch3/channels/nemesis/netmod/llc/subconfigure.m4 # end of src/mpid/ch3/channels/nemesis/netmod/llc/subconfigure.m4 # start of src/mpid/ch3/channels/nemesis/netmod/tcp/subconfigure.m4 # end of src/mpid/ch3/channels/nemesis/netmod/tcp/subconfigure.m4 # start of src/mpid/ch3/channels/nemesis/netmod/mxm/subconfigure.m4 # end of src/mpid/ch3/channels/nemesis/netmod/mxm/subconfigure.m4 # start of src/mpid/common/thread/subconfigure.m4 # end of src/mpid/common/thread/subconfigure.m4 # start of src/mpid/common/sched/subconfigure.m4 # end of src/mpid/common/sched/subconfigure.m4 # start of src/mpid/ch3/channels/sock/subconfigure.m4 # end of src/mpid/ch3/channels/sock/subconfigure.m4 # start of src/mpid/ch3/util/sock/subconfigure.m4 # end of src/mpid/ch3/util/sock/subconfigure.m4 # start of src/mpid/ch4/netmod/ofi/subconfigure.m4 # end of src/mpid/ch4/netmod/ofi/subconfigure.m4 # end subsys includes # Check whether --enable-echo was given. if test "${enable_echo+set}" = set; then : enableval=$enable_echo; set -x fi # Check whether --enable-error-checking was given. if test "${enable_error_checking+set}" = set; then : enableval=$enable_error_checking; else enable_error_checking=all fi # Check whether --enable-error-messages was given. if test "${enable_error_messages+set}" = set; then : enableval=$enable_error_messages; else enable_error_messages=all fi # Check whether --enable-tag-error-bits was given. if test "${enable_tag_error_bits+set}" = set; then : enableval=$enable_tag_error_bits; else enable_tag_error_bits=yes fi # Check whether --enable-timing was given. if test "${enable_timing+set}" = set; then : enableval=$enable_timing; else enable_timing=default fi # Check whether --enable-g was given. if test "${enable_g+set}" = set; then : enableval=$enable_g; else enable_g=none fi # Check whether --enable-mpit-pvars was given. if test "${enable_mpit_pvars+set}" = set; then : enableval=$enable_mpit_pvars; else enable_mpit_pvars=none fi # Check whether --with-aint-size was given. if test "${with_aint_size+set}" = set; then : withval=$with_aint_size; else with_aint_size=0 fi # Check whether --enable-fast was given. if test "${enable_fast+set}" = set; then : enableval=$enable_fast; else enable_fast=O2 fi # Check whether --enable-interlib-deps was given. if test "${enable_interlib_deps+set}" = set; then : enableval=$enable_interlib_deps; else enable_interlib_deps=yes fi # Check whether --enable-check-compiler-flags was given. if test "${enable_check_compiler_flags+set}" = set; then : enableval=$enable_check_compiler_flags; else enable_check_compiler_flags=yes fi # Check whether --enable-fortran was given. if test "${enable_fortran+set}" = set; then : enableval=$enable_fortran; else enable_fortran=all fi # Check whether --enable-f77 was given. if test "${enable_f77+set}" = set; then : enableval=$enable_f77; else enable_f77=yes fi # Check whether --enable-fc was given. if test "${enable_fc+set}" = set; then : enableval=$enable_fc; else enable_fc=yes fi # Check whether --enable-cxx was given. if test "${enable_cxx+set}" = set; then : enableval=$enable_cxx; else enable_cxx=yes fi # Check whether --enable-romio was given. if test "${enable_romio+set}" = set; then : enableval=$enable_romio; else enable_romio=yes fi # Check whether --enable-debuginfo was given. if test "${enable_debuginfo+set}" = set; then : enableval=$enable_debuginfo; else enable_debuginfo=no fi ## Enable creation of libtool-style versioning or no versioning # Check whether --enable-versioning was given. if test "${enable_versioning+set}" = set; then : enableval=$enable_versioning; else enable_versioning=yes fi if test "$enable_versioning" = "yes" ; then ABIVERSIONFLAGS="-version-info \$(ABIVERSION)" else ABIVERSIONFLAGS="-avoid-version" fi export ABIVERSIONFLAGS # Check whether --with-device was given. if test "${with_device+set}" = set; then : withval=$with_device; else with_device=default fi # Check whether --with-pmi was given. if test "${with_pmi+set}" = set; then : withval=$with_pmi; else with_pmi=default fi # Check whether --with-pm was given. if test "${with_pm+set}" = set; then : withval=$with_pm; else with_pm=default fi # Check whether --with-logging was given. if test "${with_logging+set}" = set; then : withval=$with_logging; if test -z "$withval" ; then with_logging=rlog ; fi else with_logging=none fi # Check whether --enable-threads was given. if test "${enable_threads+set}" = set; then : enableval=$enable_threads; else enable_threads=default fi # Check whether --enable-thread-cs was given. if test "${enable_thread_cs+set}" = set; then : enableval=$enable_thread_cs; else enable_thread_cs=global fi # Check whether --enable-mdta was given. if test "${enable_mdta+set}" = set; then : enableval=$enable_mdta; $as_echo "#define MPICH_THREAD_USE_MDTA 1" >>confdefs.h fi # Check whether --enable-refcount was given. if test "${enable_refcount+set}" = set; then : enableval=$enable_refcount; else enable_refcount=default fi # Check whether --enable-mutex-timing was given. if test "${enable_mutex_timing+set}" = set; then : enableval=$enable_mutex_timing; $as_echo "#define MPIU_MUTEX_WAIT_TIME 1" >>confdefs.h fi # Check whether --enable-predefined-refcount was given. if test "${enable_predefined_refcount+set}" = set; then : enableval=$enable_predefined_refcount; else enable_predefined_refcount=default fi # Check whether --enable-weak-symbols was given. if test "${enable_weak_symbols+set}" = set; then : enableval=$enable_weak_symbols; else enable_weak_symbols=yes fi # Check whether --enable-two-level-namespace was given. if test "${enable_two_level_namespace+set}" = set; then : enableval=$enable_two_level_namespace; else enable_two_level_namespace=no fi # Check whether --enable-multi-aliases was given. if test "${enable_multi_aliases+set}" = set; then : enableval=$enable_multi_aliases; else enable_multi_aliases=yes fi # Check whether --enable-wrapper-rpath was given. if test "${enable_wrapper_rpath+set}" = set; then : enableval=$enable_wrapper_rpath; else enable_wrapper_rpath=yes fi # Check whether --enable-long-double was given. if test "${enable_long_double+set}" = set; then : enableval=$enable_long_double; else enable_long_double=yes fi # Check whether --with-cross was given. if test "${with_cross+set}" = set; then : withval=$with_cross; else with_cross=$MPID_DEFAULT_CROSS_FILE fi # Check whether --with-namepublisher was given. if test "${with_namepublisher+set}" = set; then : withval=$with_namepublisher; else with_namepublisher=default fi # Check whether --with-name-publisher was given. if test "${with_name_publisher+set}" = set; then : withval=$with_name_publisher; with_namepublisher=$with_name_publisher fi # Check whether --enable-dbg-nolocal was given. if test "${enable_dbg_nolocal+set}" = set; then : enableval=$enable_dbg_nolocal; $as_echo "#define ENABLED_NO_LOCAL 1" >>confdefs.h fi # Check whether --enable-dbg-localoddeven was given. if test "${enable_dbg_localoddeven+set}" = set; then : enableval=$enable_dbg_localoddeven; $as_echo "#define ENABLED_ODD_EVEN_CLIQUES 1" >>confdefs.h fi # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 $as_echo_n "checking target system type... " >&6; } if ${ac_cv_target+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 $as_echo "$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' set x $ac_cv_target shift target_cpu=$1 target_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: target_os=$* IFS=$ac_save_IFS case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac # The aliases save the names the user supplied, while $host etc. # will get canonicalized. test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- # Find a C compiler. # We also need to do this before the F77 and FC test to ensure that we # find the C preprocessor reliably. # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` if test -z "${pac_save_CFLAGS_nesting}" ; then pac_save_CFLAGS_nesting=0 fi eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"' pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1` ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in icc pgcc xlc xlC pathcc gcc clang cc do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in icc pgcc xlc xlC pathcc gcc clang cc do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1` eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}" eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}="" if test -z "${pac_save_CFLAGS_nesting}" ; then pac_save_CFLAGS_nesting=0 fi eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"' pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1` ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Bug in autoconf. Restore cross settings if test "$pac_cross_compiling" = "yes" -a "$ac_cv_prog_cc_cross" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Resetting cross compilation to yes" >&5 $as_echo "Resetting cross compilation to yes" >&6; } cross_compiling=yes ac_cv_prog_cc_cross=yes ac_cv_prog_f77_cross=yes ac_cv_prog_fc_cross=yes ac_cv_prog_cxx_cross=yes fi pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1` eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}" eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}="" # also needed by hwloc in embedded mode, must also come early for expansion # ordering reasons { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" if test "x$ac_cv_header_minix_config_h" = xyes; then : MINIX=yes else MINIX= fi if test "$MINIX" = yes; then $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h $as_echo "#define _MINIX 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } if ${ac_cv_safe_to_define___extensions__+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ # define __EXTENSIONS__ 1 $ac_includes_default int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_safe_to_define___extensions__=yes else ac_cv_safe_to_define___extensions__=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } test $ac_cv_safe_to_define___extensions__ = yes && $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h $as_echo "#define _ALL_SOURCE 1" >>confdefs.h $as_echo "#define _GNU_SOURCE 1" >>confdefs.h $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h am__api_version='1.15' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='mpich' VERSION='3.3.2' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } # Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then : enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 $as_echo "$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE if test -n "$ac_tool_prefix"; then for ac_prog in ar lib "link -lib" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar lib "link -lib" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 $as_echo_n "checking the archiver ($AR) interface... " >&6; } if ${am_cv_ar_interface+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am_cv_ar_interface=ar cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int some_variable = 0; _ACEOF if ac_fn_c_try_compile "$LINENO"; then : am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 (eval $am_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -eq 0; then am_cv_ar_interface=ar else am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 (eval $am_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -eq 0; then am_cv_ar_interface=lib else am_cv_ar_interface=unknown fi fi rm -f conftest.lib libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 $as_echo "$am_cv_ar_interface" >&6; } case $am_cv_ar_interface in ar) ;; lib) # Microsoft lib, so override with the ar-lib wrapper script. # FIXME: It is wrong to rewrite AR. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__AR in this case, # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something # similar. AR="$am_aux_dir/ar-lib $AR" ;; unknown) as_fn_error $? "could not determine $AR interface" "$LINENO" 5 ;; esac case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4.6' macro_revision='2.4.6' ltmain=$ac_aux_dir/ltmain.sh # Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "" } case $ECHO in printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 $as_echo "printf" >&6; } ;; print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 $as_echo "print -r" >&6; } ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 $as_echo "cat" >&6; } ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } if ${ac_cv_path_FGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then ac_path_FGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in fgrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 $as_echo "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if ${lt_cv_path_NM+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else lt_nm_to_check=${ac_tool_prefix}nm if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. tmp_nm=$ac_dir/$lt_tmp_nm if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then # Check to see if the nm accepts a BSD-compat flag. # Adding the 'sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty case $build_os in mingw*) lt_bad_file=conftest.nm/nofile ;; *) lt_bad_file=/dev/null ;; esac case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in *$lt_bad_file* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break 2 ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break 2 ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else if test -n "$ac_tool_prefix"; then for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 $as_echo "$DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 $as_echo "$ac_ct_DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; *) DUMPBIN=: ;; esac fi if test : != "$DUMPBIN"; then NM=$DUMPBIN fi fi test -z "$NM" && NM=nm { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 $as_echo_n "checking the name lister ($NM) interface... " >&6; } if ${lt_cv_nm_interface+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 $as_echo "$lt_cv_nm_interface" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if ${lt_cv_sys_max_cmd_len+:} false; then : $as_echo_n "(cached) " >&6 else i=0 teststring=ABCD case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test X`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test 17 != "$i" # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n "$lt_cv_sys_max_cmd_len"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } if ${lt_cv_to_host_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 $as_echo "$lt_cv_to_host_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } if ${lt_cv_to_tool_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if ${lt_cv_ld_reload_flag+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in cygwin* | mingw* | pw32* | cegcc*) if test yes != "$GCC"; then reload_cmds=false fi ;; darwin*) if test yes = "$GCC"; then reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if ${lt_cv_deplibs_check_method+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # 'unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # that responds to the $file_magic_cmd with a given extended regex. # If you have 'file' or equivalent on your system and you're not sure # whether 'pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) 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]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) 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]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; os2*) lt_cv_deplibs_check_method=pass_all ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi test -z "$DLLTOOL" && DLLTOOL=dlltool { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh; # decide which one to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO if test -n "$ac_tool_prefix"; then for ac_prog in ar do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} : ${AR_FLAGS=cru} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 $as_echo_n "checking for archiver @FILE support... " >&6; } if ${lt_cv_ar_at_file+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 $as_echo "$lt_cv_ar_at_file" >&6; } if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in bitrig* | openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if ${lt_cv_sys_global_symbol_pipe+:} false; then : $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test ia64 = "$host_cpu"; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_lib_hook="\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" else # Disable hooks by default. lt_cv_sys_global_symbol_to_import= lt_cdecl_hook= lt_c_name_hook= lt_c_name_lib_hook= fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS=conftstm.$ac_objext CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test yes = "$pipe_works"; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then nm_file_list_spec='@' fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 $as_echo_n "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test "${with_sysroot+set}" = set; then : withval=$with_sysroot; else with_sysroot=no fi lt_sysroot= case $with_sysroot in #( yes) if test yes = "$GCC"; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 $as_echo "$with_sysroot" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 $as_echo "${lt_sysroot:-no}" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 $as_echo_n "checking for a working dd... " >&6; } if ${ac_cv_path_lt_DD+:} false; then : $as_echo_n "(cached) " >&6 else printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} if test -z "$lt_DD"; then ac_path_lt_DD_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in dd; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_lt_DD" || continue if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: fi $ac_path_lt_DD_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_lt_DD"; then : fi else ac_cv_path_lt_DD=$lt_DD fi rm -f conftest.i conftest2.i conftest.out fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 $as_echo "$ac_cv_path_lt_DD" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 $as_echo_n "checking how to truncate binary pipes... " >&6; } if ${lt_cv_truncate_bin+:} false; then : $as_echo_n "(cached) " >&6 else printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 $as_echo "$lt_cv_truncate_bin" >&6; } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test no = "$enable_libtool_lock" || enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out what ABI is being produced by ac_compile, and set mode # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; *ELF-64*) HPUX_IA64_MODE=64 ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test yes = "$lt_cv_prog_gnu_ld"; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then emul=elf case `/usr/bin/file conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `/usr/bin/file conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `/usr/bin/file conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; powerpc64le-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if ${lt_cv_cc_needs_belf+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_cc_needs_belf=yes else lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$lt_cv_cc_needs_belf" >&6; } if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS fi ;; *-*solaris*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 $as_echo "$MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL fi else MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if ${lt_cv_path_mainfest_tool+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 $as_echo "$lt_cv_path_mainfest_tool" >&6; } if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if ${lt_cv_apple_cc_single_mod+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&5 # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if ${lt_cv_ld_exported_symbols_list+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_ld_exported_symbols_list=yes else lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 $as_echo_n "checking for -force_load linker flag... " >&6; } if ${lt_cv_ld_force_load+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&5 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then lt_cv_ld_force_load=yes else cat conftest.err >&5 fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 $as_echo "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10.[012][,.]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } for ac_header in dlfcn.h do : ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done # Set options enable_dlopen=no enable_win32_dll=no # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS=$lt_save_ifs ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS=$lt_save_ifs ;; esac else enable_static=yes fi # Check whether --with-pic was given. if test "${with_pic+set}" = set; then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for lt_pkg in $withval; do IFS=$lt_save_ifs if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS=$lt_save_ifs ;; esac else pic_mode=default fi # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS=$lt_save_ifs ;; esac else enable_fast_install=yes fi shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[5-9]*,yes) { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } # Check whether --with-aix-soname was given. if test "${with_aix_soname+set}" = set; then : withval=$with_aix_soname; case $withval in aix|svr4|both) ;; *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 ;; esac lt_cv_with_aix_soname=$with_aix_soname else if ${lt_cv_with_aix_soname+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_with_aix_soname=aix fi with_aix_soname=$lt_cv_with_aix_soname fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 $as_echo "$with_aix_soname" >&6; } if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, # the AIX toolchain works better with OBJECT_MODE set (default 32). if test 64 = "${OBJECT_MODE-32}"; then shared_archive_member_spec=shr_64 else shared_archive_member_spec=shr fi fi ;; *) with_aix_soname=aix ;; esac # This can be used to rebuild libtool when needed LIBTOOL_DEPS=$ltmain # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if ${lt_cv_objdir+:} false; then : $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir cat >>confdefs.h <<_ACEOF #define LT_OBJDIR "$lt_cv_objdir/" _ACEOF case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld old_CC=$CC old_CFLAGS=$CFLAGS # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o func_cc_basename $compiler cc_basename=$func_cc_basename_result # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/${ac_tool_prefix}file"; then lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/file"; then lt_cv_path_MAGIC_CMD=$ac_dir/"file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC=$CC ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test yes = "$GCC"; then case $cc_basename in nvcc*) lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; *) lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test yes = "$GCC"; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi lt_prog_compiler_pic='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl='-Xlinker ' if test -n "$lt_prog_compiler_pic"; then lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # flang / f18 flang* | f18*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; armclang* | armclang++* | armflang*) # ARM LLVM C/C++/Fortran lt_prog_compiler_wl='-Wl,' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; *Sun\ F* | *Sun*Fortran* | *Studio*Fortran*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; *Portland\ Group*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 $as_echo "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if ${lt_cv_prog_compiler_pic_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works"; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test yes = "$lt_cv_prog_compiler_static_works"; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test no = "$hard_links"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; esac ld_shlibs=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' export_dynamic_flag_spec='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) 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)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' export_dynamic_flag_spec='$wl--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes 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' exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs=yes ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 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' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler 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' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers 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' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 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' compiler_needs_object=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 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' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F* | *Sun*Fortran* | *Studio*Fortran*) tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) export_dynamic_flag_spec='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) XLF_VERSION=$($CC -qversion 2>/dev/null | sed 1q | sed -e "s+^.*V++" | sed -e "s+\..*++") if test $XLF_VERSION -ge 13; then archive_cmds='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi else # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi fi ;; esac else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test no = "$ld_shlibs"; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes 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' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 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' else 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' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct=no hardcode_direct_absolute=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 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 else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" 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" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' $wl-bernotok' allow_undefined_flag=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' fi archive_cmds_need_lc=yes archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. 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' fi if test aix != "$with_aix_soname"; then 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' else # used by -dlpreopen to get the symbols archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) 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)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported always_export_symbols=yes file_list_spec='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, )='true' enable_shared_with_static_runtimes=yes exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds='chmod 644 $oldlib' postlink_cmds='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported if test yes = "$lt_cv_ld_force_load"; then 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\"`' else whole_archive_flag_spec='' fi link_all_deplibs=yes allow_undefined_flag=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) lt_prog_compiler_wl='-Wl,' _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 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" 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" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test yes = "$GCC"; then 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' else 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' fi hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 $as_echo_n "checking if $CC understands -b... " >&6; } if ${lt_cv_prog_compiler__b+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler__b=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler__b=yes fi else lt_cv_prog_compiler__b=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 $as_echo "$lt_cv_prog_compiler__b" >&6; } if test yes = "$lt_cv_prog_compiler__b"; then archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then 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' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if ${lt_cv_irix_exported_symbol+:} false; then : $as_echo_n "(cached) " >&6 else save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_irix_exported_symbol=yes else lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 $as_echo "$lt_cv_irix_exported_symbol" >&6; } if test yes = "$lt_cv_irix_exported_symbol"; then 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' fi else 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' 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' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler ld_shlibs=yes archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' else archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='$wl-rpath,$libdir' fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes ;; osf3*) if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' 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' else allow_undefined_flag=' -expect_unresolved \*' 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' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' 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' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' else allow_undefined_flag=' -expect_unresolved \*' 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' 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~ $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' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test yes = "$GCC"; then wlarc='$wl' archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $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' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='$wl-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='$wl-z,text' allow_undefined_flag='$wl-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='$wl-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test no = "$ld_shlibs" && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no else lt_cv_archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } if test yes = "$GCC"; then case $host_os in darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; *) lt_awk_arg='/^libraries:/' ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; *) lt_sed_strip_eq='s|=/|/|g' ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary... lt_tmp_lt_search_path_spec= lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` # ...but if some path component already ends with the multilib dir we assume # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). case "$lt_multi_os_dir; $lt_search_path_spec " in "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) lt_multi_os_dir= ;; esac for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" elif test -n "$lt_multi_os_dir"; then test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS = " "; FS = "/|\n";} { lt_foo = ""; lt_count = 0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo = "/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's|/\([A-Za-z]:\)|\1|g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling 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"' 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"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 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)' 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"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. 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' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. # There is no easy way to reliably detect the sys dlsearch path. We will first # assume ldconfig reports the path correctly, but check it with the current # ld cache. If any cached path is not present in the generated path_spec, then # we know ldconfig is bad and should manually parse the ld.so.conf files. # Note the reported paths can be a superset of the cached paths. # The catch is that the default path may not be in the ld.so.conf. We have to # add any missing one back to the path_spec (from the cached paths). if test -x /sbin/ldconfig; then sys_lib_dlsearch_path_spec=`/sbin/ldconfig -N -X -v 2>/dev/null | grep ^/ | sed -e 's/:.*//g' | tr '\n' ' '` cached_lib_dlsearch_path=`/sbin/ldconfig -p | sed -e 's/.*=> //g' | grep '^/' | while read p; do dirname $p; done | sort | uniq | tr '\n' ' '` for p in `echo $cached_lib_dlsearch_path`; do case "$sys_lib_dlsearch_path_spec" in *$p*) bad_ldconfig=no ;; *) # ldconfig is bad if cached path is not reported bad_ldconfig=yes break ;; esac done else bad_ldconfig=yes fi if test "$bad_ldconfig" = "yes"; then if test -f /etc/ld.so.conf; then 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' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # catch anything that in the cached path but not in the conf files for p in `echo $cached_lib_dlsearch_path`; do case "$sys_lib_dlsearch_path_spec" in *$p*) ;; *) sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $p" ;; esac done fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test yes = "$hardcode_automatic"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && test no != "$hardcode_minus_L"; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test relink = "$hardcode_action" || test yes = "$inherit_rpath"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi if test yes != "$enable_dlopen"; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen=load_add_on lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen=LoadLibrary lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen=dlopen lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl else lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; tpf*) # Don't try to run any link tests for TPF. We know it's impossible # because TPF is a cross-compiler, and we know how we open DSOs. lt_cv_dlopen=dlopen lt_cv_dlopen_libs= lt_cv_dlopen_self=no ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen=shl_load else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes; then : lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes; then : lt_cv_dlopen=dlopen else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes; then : lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld fi fi fi fi fi fi ;; esac if test no = "$lt_cv_dlopen"; then enable_dlopen=no else enable_dlopen=yes fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS=$CPPFLAGS test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS=$LDFLAGS wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self+:} false; then : $as_echo_n "(cached) " >&6 else if test yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self_static+:} false; then : $as_echo_n "(cached) " >&6 else if test yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP"; then striplib="$STRIP -x" old_striplib="$STRIP -S" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; esac fi # Report what library types will actually be built { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC=$lt_save_CC ac_config_commands="$ac_config_commands libtool" # Only expand once: # Non-verbose make by default # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=0;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' # Disable rpath in the compiler wrappers if shared libraries are disabled, since # rpath makes no sense in the context of static libraries. if test "X$enable_shared" = "Xno" ; then enable_wrapper_rpath=no fi INTERLIB_DEPS=yes # We conservatively disable interlibrary dependencies if the libtool # support model is anything different from "pass_all" if test "X$enable_shared" = "Xno" -o "$deplibs_check_method" != "pass_all" -o "$enable_interlib_deps" = "no" ; then INTERLIB_DEPS=no fi export INTERLIB_DEPS # Before attempting to find valid compilers, set the corresponding precious # shell variable to "no" for any languages that have been disabled by the user # with "--disable-LANG". Libtool understands this as a request to disable # support for this language. This should save a bit of configure time and also # prevent user complaints like ticket #1570. if test "x$enable_f77" = "xno"; then : F77=no fi if test "x$enable_fc" = "xno"; then : FC=no fi if test "x$enable_cxx" = "xno"; then : CXX=no fi # suppress default "-g -O2" from AC_PROG_CXX : ${CXXFLAGS=""} ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in $CCC icpc pgCC xlC pathCC g++ clang++ c++ cc++ cxx CC cl do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in $CCC icpc pgCC xlC pathCC g++ clang++ c++ cc++ cxx CC cl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if ${ac_cv_cxx_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CXX_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi func_stripname_cnf () { case $2 in .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; esac } # func_stripname_cnf if test -n "$CXX" && ( test no != "$CXX" && ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || (test g++ != "$CXX"))); then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if ${ac_cv_prog_CXXCPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 $as_echo "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu else _lt_caught_CXX_error=yes fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= compiler_needs_object_CXX=no export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_direct_absolute_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no inherit_rpath_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds reload_flag_CXX=$reload_flag reload_cmds_CXX=$reload_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_caught_CXX_error"; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC compiler_CXX=$CC func_cc_basename $compiler cc_basename=$func_cc_basename_result if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test yes = "$GXX"; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test yes = "$GXX"; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test yes = "$with_gnu_ld"; then archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='$wl' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes file_list_spec_CXX='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct_CXX=no hardcode_direct_absolute_CXX=no ;; esac if test yes = "$GXX"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag=$shared_flag' $wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec_CXX='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. always_export_symbols_CXX=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. # The "-G" linker flag allows undefined symbols. no_undefined_flag_CXX='-bernotok' # Determine the default libpath from the value encoded in an empty # executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__CXX+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath__CXX fi hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX='$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 else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$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" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__CXX+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath__CXX fi hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' $wl-bernotok' allow_undefined_flag_CXX=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' fi archive_cmds_need_lc_CXX=yes archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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' fi if test aix != "$with_aix_soname"; then archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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' else # used by -dlpreopen to get the symbols archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_CXX=' ' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=yes file_list_spec_CXX='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' enable_shared_with_static_runtimes_CXX=yes # Don't use ranlib old_postinstall_cmds_CXX='chmod 644 $oldlib' postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ func_to_tool_file "$lt_outputfile"~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' export_dynamic_flag_spec_CXX='$wl--export-all-symbols' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_CXX=no fi ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported if test yes = "$lt_cv_ld_force_load"; then whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec_CXX='' fi link_all_deplibs_CXX=yes allow_undefined_flag_CXX=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) lt_prog_compiler_wl_CXX='-Wl,' _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" archive_expsym_cmds_CXX="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" module_expsym_cmds_CXX="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" if test yes != "$lt_cv_apple_cc_single_mod"; then archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" fi else ld_shlibs_CXX=no fi ;; os2*) hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_minus_L_CXX=yes allow_undefined_flag_CXX=unsupported shrext_cmds=.dll archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes_CXX=yes ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; haiku*) archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs_CXX=yes ;; hpux9*) hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='$wl-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) ;; *) export_dynamic_flag_spec_CXX='$wl-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; interix[3-9]*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' export_dynamic_flag_spec_CXX='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_CXX='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' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' else archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' hardcode_libdir_separator_CXX=: inherit_rpath_CXX=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [1-5].* | *pgcpp\ [1-5].*) prelink_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' old_archive_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' archive_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' whole_archive_flag_spec_CXX='$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' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' hardcode_libdir_flag_spec_CXX='-R$libdir' whole_archive_flag_spec_CXX='$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' compiler_needs_object_CXX=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) ld_shlibs_CXX=yes ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no hardcode_direct_absolute_CXX=yes archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='$wl-E' whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else ld_shlibs_CXX=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) case $host in osf3*) allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' ;; *) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ $RM $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' ;; esac hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes,no = "$GXX,$with_gnu_ld"; then allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' case $host in osf3*) archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' ;; *) archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' ;; esac hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test yes,no = "$GXX,$with_gnu_ld"; then no_undefined_flag_CXX=' $wl-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require '-G' NOT '-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='$wl-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_CXX='$wl-z,text' allow_undefined_flag_CXX='$wl-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='$wl-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ '"$old_archive_cmds_CXX" reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ '"$reload_cmds_CXX" ;; *) archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test no = "$ld_shlibs_CXX" && can_build_shared=no GCC_CXX=$GXX LD_CXX=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test x-L = "$p" || test x-R = "$p"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test no = "$pre_test_object_deps_done"; then case $prev in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX=$prev$p else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX=$prev$p else postdeps_CXX="${postdeps_CXX} $prev$p" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test no = "$pre_test_object_deps_done"; then if test -z "$predep_objects_CXX"; then predep_objects_CXX=$p else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX=$p else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken case $host_os in interix[3-9]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac compiler_lib_search_dirs_CXX= if test -n "${compiler_lib_search_path_CXX}"; then compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` fi lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= # C++ specific cases for pic, static, wl, etc. if test yes = "$GXX"; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi lt_prog_compiler_pic_CXX='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic_CXX='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_CXX='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static_CXX='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static_CXX= ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix[4-9]*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='$wl-a ${wl}archive' if test ia64 != "$host_cpu"; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='$wl-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64, which still supported -KPIC. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) # IBM XL 8.0, 9.0 on PPC and BlueGene lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-qpic' lt_prog_compiler_static_CXX='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works_CXX=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works_CXX=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works_CXX=yes fi else lt_cv_prog_compiler_static_works_CXX=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then : else lt_prog_compiler_static_CXX= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test no = "$hard_links"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' case $host_os in aix[4-9]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds_CXX='$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' else export_symbols_cmds_CXX='`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' fi ;; pw32*) export_symbols_cmds_CXX=$ltdll_cmds ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' ;; esac ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test no = "$ld_shlibs_CXX" && can_build_shared=no with_gnu_ld_CXX=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc_CXX=no else lt_cv_archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling 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"' 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"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 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)' 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"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. 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' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec_CXX='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. # There is no easy way to reliably detect the sys dlsearch path. We will first # assume ldconfig reports the path correctly, but check it with the current # ld cache. If any cached path is not present in the generated path_spec, then # we know ldconfig is bad and should manually parse the ld.so.conf files. # Note the reported paths can be a superset of the cached paths. # The catch is that the default path may not be in the ld.so.conf. We have to # add any missing one back to the path_spec (from the cached paths). if test -x /sbin/ldconfig; then sys_lib_dlsearch_path_spec=`/sbin/ldconfig -N -X -v 2>/dev/null | grep ^/ | sed -e 's/:.*//g' | tr '\n' ' '` cached_lib_dlsearch_path=`/sbin/ldconfig -p | sed -e 's/.*=> //g' | grep '^/' | while read p; do dirname $p; done | sort | uniq | tr '\n' ' '` for p in `echo $cached_lib_dlsearch_path`; do case "$sys_lib_dlsearch_path_spec" in *$p*) bad_ldconfig=no ;; *) # ldconfig is bad if cached path is not reported bad_ldconfig=yes break ;; esac done else bad_ldconfig=yes fi if test "$bad_ldconfig" = "yes"; then if test -f /etc/ld.so.conf; then 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' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # catch anything that in the cached path but not in the conf files for p in `echo $cached_lib_dlsearch_path`; do case "$sys_lib_dlsearch_path_spec" in *$p*) ;; *) sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $p" ;; esac done fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || test -n "$runpath_var_CXX" || test yes = "$hardcode_automatic_CXX"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct_CXX" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && test no != "$hardcode_minus_L_CXX"; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 $as_echo "$hardcode_action_CXX" >&6; } if test relink = "$hardcode_action_CXX" || test yes = "$inherit_rpath_CXX"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test yes != "$_lt_caught_CXX_error" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # suppress default "-g -O2" from AC_PROG_FC : ${FCFLAGS=""} ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in ifort pgf90 pathf90 pathf95 xlf90 xlf95 xlf2003 gfortran f90 epcf90 f95 fort lf95 g95 ifc efc gfc do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_FC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$FC"; then ac_cv_prog_FC="$FC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_FC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi FC=$ac_cv_prog_FC if test -n "$FC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 $as_echo "$FC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$FC" && break done fi if test -z "$FC"; then ac_ct_FC=$FC for ac_prog in ifort pgf90 pathf90 pathf95 xlf90 xlf95 xlf2003 gfortran f90 epcf90 f95 fort lf95 g95 ifc efc gfc do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_FC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_FC"; then ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_FC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_FC=$ac_cv_prog_ac_ct_FC if test -n "$ac_ct_FC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 $as_echo "$ac_ct_FC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_FC" && break done if test "x$ac_ct_FC" = x; then FC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac FC=$ac_ct_FC fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done rm -f a.out # If we don't use `.F' as extension, the preprocessor is not run on the # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } if ${ac_cv_fc_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ choke me #endif end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_fc_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 $as_echo "$ac_cv_fc_compiler_gnu" >&6; } ac_ext=$ac_save_ext ac_test_FCFLAGS=${FCFLAGS+set} ac_save_FCFLAGS=$FCFLAGS FCFLAGS= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 $as_echo_n "checking whether $FC accepts -g... " >&6; } if ${ac_cv_prog_fc_g+:} false; then : $as_echo_n "(cached) " >&6 else FCFLAGS=-g cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : ac_cv_prog_fc_g=yes else ac_cv_prog_fc_g=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 $as_echo "$ac_cv_prog_fc_g" >&6; } if test "$ac_test_FCFLAGS" = set; then FCFLAGS=$ac_save_FCFLAGS elif test $ac_cv_prog_fc_g = yes; then if test "x$ac_cv_fc_compiler_gnu" = xyes; then FCFLAGS="-g -O2" else FCFLAGS="-g" fi else if test "x$ac_cv_fc_compiler_gnu" = xyes; then FCFLAGS="-O2" else FCFLAGS= fi fi if test $ac_compiler_gnu = yes; then GFC=yes else GFC= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test -z "$FC" || test no = "$FC"; then _lt_disable_FC=yes fi archive_cmds_need_lc_FC=no allow_undefined_flag_FC= always_export_symbols_FC=no archive_expsym_cmds_FC= export_dynamic_flag_spec_FC= hardcode_direct_FC=no hardcode_direct_absolute_FC=no hardcode_libdir_flag_spec_FC= hardcode_libdir_separator_FC= hardcode_minus_L_FC=no hardcode_automatic_FC=no inherit_rpath_FC=no module_cmds_FC= module_expsym_cmds_FC= link_all_deplibs_FC=unknown old_archive_cmds_FC=$old_archive_cmds reload_flag_FC=$reload_flag reload_cmds_FC=$reload_cmds no_undefined_flag_FC= whole_archive_flag_spec_FC= enable_shared_with_static_runtimes_FC=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o objext_FC=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_FC"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu compiler_FC=$CC func_cc_basename $compiler cc_basename=$func_cc_basename_result if test -n "$compiler"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } GCC_FC=$ac_cv_fc_compiler_gnu LD_FC=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... # Dependencies to place before and after the object being linked: predep_objects_FC= postdep_objects_FC= predeps_FC= postdeps_FC= compiler_lib_search_path_FC= cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test x-L = "$p" || test x-R = "$p"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test no = "$pre_test_object_deps_done"; then case $prev in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_FC"; then compiler_lib_search_path_FC=$prev$p else compiler_lib_search_path_FC="${compiler_lib_search_path_FC} $prev$p" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_FC"; then postdeps_FC=$prev$p else postdeps_FC="${postdeps_FC} $prev$p" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test no = "$pre_test_object_deps_done"; then if test -z "$predep_objects_FC"; then predep_objects_FC=$p else predep_objects_FC="$predep_objects_FC $p" fi else if test -z "$postdep_objects_FC"; then postdep_objects_FC=$p else postdep_objects_FC="$postdep_objects_FC $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling FC test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken case " $postdeps_FC " in *" -lc "*) archive_cmds_need_lc_FC=no ;; esac compiler_lib_search_dirs_FC= if test -n "${compiler_lib_search_path_FC}"; then compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | $SED -e 's! -L! !g' -e 's!^ !!'` fi lt_prog_compiler_wl_FC= lt_prog_compiler_pic_FC= lt_prog_compiler_static_FC= if test yes = "$GCC"; then lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_static_FC='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_FC='-Bstatic' fi lt_prog_compiler_pic_FC='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic_FC='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_FC='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static_FC='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_FC='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static_FC= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic_FC='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_FC=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_FC='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_FC=-Kconform_pic fi ;; *) lt_prog_compiler_pic_FC='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl_FC='-Xlinker ' if test -n "$lt_prog_compiler_pic_FC"; then lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_FC='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_FC='-Bstatic' else lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_FC='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler lt_prog_compiler_wl_FC='-Wl,-Wl,,' lt_prog_compiler_pic_FC='-PIC' lt_prog_compiler_static_FC='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_FC='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static_FC='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_FC='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_FC='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_FC='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_FC='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_FC='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-static' ;; # flang / f18 flang* | f18*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-fPIC' lt_prog_compiler_static_FC='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-fPIC' lt_prog_compiler_static_FC='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='--shared' lt_prog_compiler_static_FC='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl_FC='-Wl,-Wl,,' lt_prog_compiler_pic_FC='-PIC' lt_prog_compiler_static_FC='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-fPIC' lt_prog_compiler_static_FC='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-fpic' lt_prog_compiler_static_FC='-Bstatic' ;; ccc*) lt_prog_compiler_wl_FC='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_FC='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-qpic' lt_prog_compiler_static_FC='-qstaticlink' ;; armclang* | armclang++* | armflang*) # ARM LLVM C/C++/Fortran lt_prog_compiler_wl_FC='-Wl,' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' lt_prog_compiler_wl_FC='' ;; *Sun\ F* | *Sun*Fortran* | *Studio*Fortran*) lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' lt_prog_compiler_wl_FC='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' lt_prog_compiler_wl_FC='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-fPIC' lt_prog_compiler_static_FC='-static' ;; *Portland\ Group*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-fpic' lt_prog_compiler_static_FC='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_FC='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_FC='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_FC='-non_shared' ;; rdos*) lt_prog_compiler_static_FC='-non_shared' ;; solaris*) lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl_FC='-Qoption ld ';; *) lt_prog_compiler_wl_FC='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_FC='-Qoption ld ' lt_prog_compiler_pic_FC='-PIC' lt_prog_compiler_static_FC='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_FC='-Kconform_pic' lt_prog_compiler_static_FC='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_pic_FC='-KPIC' lt_prog_compiler_static_FC='-Bstatic' ;; unicos*) lt_prog_compiler_wl_FC='-Wl,' lt_prog_compiler_can_build_shared_FC=no ;; uts4*) lt_prog_compiler_pic_FC='-pic' lt_prog_compiler_static_FC='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_FC=no ;; esac fi case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_FC= ;; *) lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic_FC+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5 $as_echo "$lt_cv_prog_compiler_pic_FC" >&6; } lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_FC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works_FC=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_FC" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works_FC=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works_FC"; then case $lt_prog_compiler_pic_FC in "" | " "*) ;; *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; esac else lt_prog_compiler_pic_FC= lt_prog_compiler_can_build_shared_FC=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works_FC+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works_FC=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works_FC=yes fi else lt_cv_prog_compiler_static_works_FC=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } if test yes = "$lt_cv_prog_compiler_static_works_FC"; then : else lt_prog_compiler_static_FC= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o_FC+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_FC=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_FC=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o_FC+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_FC=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_FC=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o_FC" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test no = "$hard_links"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag_FC= always_export_symbols_FC=no archive_cmds_FC= archive_expsym_cmds_FC= compiler_needs_object_FC=no enable_shared_with_static_runtimes_FC=no export_dynamic_flag_spec_FC= export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic_FC=no hardcode_direct_FC=no hardcode_direct_absolute_FC=no hardcode_libdir_flag_spec_FC= hardcode_libdir_separator_FC= hardcode_minus_L_FC=no hardcode_shlibpath_var_FC=unsupported inherit_rpath_FC=no link_all_deplibs_FC=unknown module_cmds_FC= module_expsym_cmds_FC= old_archive_from_new_cmds_FC= old_archive_from_expsyms_cmds_FC= thread_safe_flag_spec_FC= whole_archive_flag_spec_FC= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_FC= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; esac ld_shlibs_FC=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' export_dynamic_flag_spec_FC='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_FC=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec_FC= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then ld_shlibs_FC=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_FC='' ;; m68k) archive_cmds_FC='$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)' hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_minus_L_FC=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_FC=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs_FC=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_FC='-L$libdir' export_dynamic_flag_spec_FC='$wl--export-all-symbols' allow_undefined_flag_FC=unsupported always_export_symbols_FC=no enable_shared_with_static_runtimes_FC=yes export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds_FC='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_FC=no fi ;; haiku*) archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs_FC=yes ;; os2*) hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_minus_L_FC=yes allow_undefined_flag_FC=unsupported shrext_cmds=.dll archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes_FC=yes ;; interix[3-9]*) hardcode_direct_FC=no hardcode_shlibpath_var_FC=no hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir' export_dynamic_flag_spec_FC='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_FC='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' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_FC='$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' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_FC='$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' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec_FC= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec_FC='$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' compiler_needs_object_FC=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec_FC='$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' compiler_needs_object_FC=yes tmp_sharedflag='-G' ;; *Sun\ F* | *Sun*Fortran* | *Studio*Fortran*) tmp_sharedflag='-G' ;; esac archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) export_dynamic_flag_spec_FC='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) XLF_VERSION=$($CC -qversion 2>/dev/null | sed 1q | sed -e "s+^.*V++" | sed -e "s+\..*++") if test $XLF_VERSION -ge 13; then archive_cmds_FC='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi else # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi fi ;; esac else ld_shlibs_FC=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs_FC=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_FC=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_FC=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_FC=no fi ;; esac ;; sunos4*) archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_FC=yes hardcode_shlibpath_var_FC=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_FC=no fi ;; esac if test no = "$ld_shlibs_FC"; then runpath_var= hardcode_libdir_flag_spec_FC= export_dynamic_flag_spec_FC= whole_archive_flag_spec_FC= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_FC=unsupported always_export_symbols_FC=yes archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_FC=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_FC=unsupported fi ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds_FC='$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' else export_symbols_cmds_FC='`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' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_FC='' hardcode_direct_FC=yes hardcode_direct_absolute_FC=yes hardcode_libdir_separator_FC=':' link_all_deplibs_FC=yes file_list_spec_FC='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct_FC=no hardcode_direct_absolute_FC=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_FC=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_FC=yes hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_libdir_separator_FC= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec_FC='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_FC=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_FC='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__FC+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__FC"; then lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__FC"; then lt_cv_aix_libpath__FC=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath__FC fi hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_FC='$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 else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec_FC='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag_FC="-z nodefs" archive_expsym_cmds_FC="\$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" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__FC+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__FC"; then lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__FC"; then lt_cv_aix_libpath__FC=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath__FC fi hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_FC=' $wl-bernotok' allow_undefined_flag_FC=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec_FC='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_FC='$convenience' fi archive_cmds_need_lc_FC=yes archive_expsym_cmds_FC='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$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' fi if test aix != "$with_aix_soname"; then archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$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' else # used by -dlpreopen to get the symbols archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_FC='' ;; m68k) archive_cmds_FC='$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)' hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_minus_L_FC=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec_FC=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec_FC=' ' allow_undefined_flag_FC=unsupported always_export_symbols_FC=yes file_list_spec_FC='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds_FC='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, FC)='true' enable_shared_with_static_runtimes_FC=yes exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds_FC='chmod 644 $oldlib' postlink_cmds_FC='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec_FC=' ' allow_undefined_flag_FC=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds_FC='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes_FC=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc_FC=no hardcode_direct_FC=no hardcode_automatic_FC=yes hardcode_shlibpath_var_FC=unsupported if test yes = "$lt_cv_ld_force_load"; then whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' compiler_needs_object_FC=yes else whole_archive_flag_spec_FC='' fi link_all_deplibs_FC=yes allow_undefined_flag_FC=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) lt_prog_compiler_wl_FC='-Wl,' _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" archive_expsym_cmds_FC="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" module_expsym_cmds_FC="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" else ld_shlibs_FC=no fi ;; dgux*) archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_shlibpath_var_FC=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_FC='-R$libdir' hardcode_direct_FC=yes hardcode_shlibpath_var_FC=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_FC=yes hardcode_minus_L_FC=yes hardcode_shlibpath_var_FC=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_FC='-R$libdir' hardcode_direct_FC=yes hardcode_shlibpath_var_FC=no ;; hpux9*) if test yes = "$GCC"; then archive_cmds_FC='$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' else archive_cmds_FC='$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' fi hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir' hardcode_libdir_separator_FC=: hardcode_direct_FC=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_FC=yes export_dynamic_flag_spec_FC='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir' hardcode_libdir_separator_FC=: hardcode_direct_FC=yes hardcode_direct_absolute_FC=yes export_dynamic_flag_spec_FC='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_FC=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds_FC='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds_FC='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir' hardcode_libdir_separator_FC=: case $host_cpu in hppa*64*|ia64*) hardcode_direct_FC=no hardcode_shlibpath_var_FC=no ;; *) hardcode_direct_FC=yes hardcode_direct_absolute_FC=yes export_dynamic_flag_spec_FC='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_FC=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then archive_cmds_FC='$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' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if ${lt_cv_irix_exported_symbol+:} false; then : $as_echo_n "(cached) " >&6 else save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat > conftest.$ac_ext <<_ACEOF subroutine foo end _ACEOF if ac_fn_fc_try_link "$LINENO"; then : lt_cv_irix_exported_symbol=yes else lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 $as_echo "$lt_cv_irix_exported_symbol" >&6; } if test yes = "$lt_cv_irix_exported_symbol"; then archive_expsym_cmds_FC='$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' fi else archive_cmds_FC='$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' archive_expsym_cmds_FC='$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' fi archive_cmds_need_lc_FC='no' hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' hardcode_libdir_separator_FC=: inherit_rpath_FC=yes link_all_deplibs_FC=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler ld_shlibs_FC=yes archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_FC='-R$libdir' hardcode_direct_FC=yes hardcode_shlibpath_var_FC=no ;; newsos6) archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_FC=yes hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' hardcode_libdir_separator_FC=: hardcode_shlibpath_var_FC=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct_FC=yes hardcode_shlibpath_var_FC=no hardcode_direct_absolute_FC=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir' export_dynamic_flag_spec_FC='$wl-E' else archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir' fi else ld_shlibs_FC=no fi ;; os2*) hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_minus_L_FC=yes allow_undefined_flag_FC=unsupported shrext_cmds=.dll archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes_FC=yes ;; osf3*) if test yes = "$GCC"; then allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*' archive_cmds_FC='$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' else allow_undefined_flag_FC=' -expect_unresolved \*' archive_cmds_FC='$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' fi archive_cmds_need_lc_FC='no' hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' hardcode_libdir_separator_FC=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*' archive_cmds_FC='$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' hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' else allow_undefined_flag_FC=' -expect_unresolved \*' archive_cmds_FC='$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' archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $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' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_FC='-rpath $libdir' fi archive_cmds_need_lc_FC='no' hardcode_libdir_separator_FC=: ;; solaris*) no_undefined_flag_FC=' -z defs' if test yes = "$GCC"; then wlarc='$wl' archive_cmds_FC='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $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' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds_FC='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' archive_cmds_FC='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec_FC='-R$libdir' hardcode_shlibpath_var_FC=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then whole_archive_flag_spec_FC='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs_FC=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_FC='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_direct_FC=yes hardcode_minus_L_FC=yes hardcode_shlibpath_var_FC=no ;; sysv4) case $host_vendor in sni) archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_FC=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_FC='$CC -r -o $output$reload_objs' hardcode_direct_FC=no ;; motorola) archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_FC=no ;; sysv4.3*) archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_FC=no export_dynamic_flag_spec_FC='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_FC=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_FC=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_FC='$wl-z,text' archive_cmds_need_lc_FC=no hardcode_shlibpath_var_FC=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_FC='$wl-z,text' allow_undefined_flag_FC='$wl-z,nodefs' archive_cmds_need_lc_FC=no hardcode_shlibpath_var_FC=no hardcode_libdir_flag_spec_FC='$wl-R,$libdir' hardcode_libdir_separator_FC=':' link_all_deplibs_FC=yes export_dynamic_flag_spec_FC='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_FC='-L$libdir' hardcode_shlibpath_var_FC=no ;; *) ld_shlibs_FC=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec_FC='$wl-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 $as_echo "$ld_shlibs_FC" >&6; } test no = "$ld_shlibs_FC" && can_build_shared=no with_gnu_ld_FC=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_FC" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_FC=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds_FC in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_FC pic_flag=$lt_prog_compiler_pic_FC compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_FC allow_undefined_flag_FC= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc_FC=no else lt_cv_archive_cmds_need_lc_FC=yes fi allow_undefined_flag_FC=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling 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"' 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"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 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)' 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"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. 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' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec_FC='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. # There is no easy way to reliably detect the sys dlsearch path. We will first # assume ldconfig reports the path correctly, but check it with the current # ld cache. If any cached path is not present in the generated path_spec, then # we know ldconfig is bad and should manually parse the ld.so.conf files. # Note the reported paths can be a superset of the cached paths. # The catch is that the default path may not be in the ld.so.conf. We have to # add any missing one back to the path_spec (from the cached paths). if test -x /sbin/ldconfig; then sys_lib_dlsearch_path_spec=`/sbin/ldconfig -N -X -v 2>/dev/null | grep ^/ | sed -e 's/:.*//g' | tr '\n' ' '` cached_lib_dlsearch_path=`/sbin/ldconfig -p | sed -e 's/.*=> //g' | grep '^/' | while read p; do dirname $p; done | sort | uniq | tr '\n' ' '` for p in `echo $cached_lib_dlsearch_path`; do case "$sys_lib_dlsearch_path_spec" in *$p*) bad_ldconfig=no ;; *) # ldconfig is bad if cached path is not reported bad_ldconfig=yes break ;; esac done else bad_ldconfig=yes fi if test "$bad_ldconfig" = "yes"; then if test -f /etc/ld.so.conf; then 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' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # catch anything that in the cached path but not in the conf files for p in `echo $cached_lib_dlsearch_path`; do case "$sys_lib_dlsearch_path_spec" in *$p*) ;; *) sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $p" ;; esac done fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action_FC= if test -n "$hardcode_libdir_flag_spec_FC" || test -n "$runpath_var_FC" || test yes = "$hardcode_automatic_FC"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct_FC" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" && test no != "$hardcode_minus_L_FC"; then # Linking always hardcodes the temporary library directory. hardcode_action_FC=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_FC=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_FC=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 $as_echo "$hardcode_action_FC" >&6; } if test relink = "$hardcode_action_FC" || test yes = "$inherit_rpath_FC"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_FC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu save_IFS="$IFS" IFS="," enable_f77=no enable_fc=no for option in $enable_fortran ; do case "$option" in yes|all) enable_f77=yes enable_fc=yes ;; no|none) ;; f77) enable_f77=yes ;; fc) enable_fc=yes ;; *) IFS="$save_IFS" { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value $option for --enable-fortran" >&5 $as_echo "$as_me: WARNING: Unknown value $option for --enable-fortran" >&2;} IFS="," ;; esac done IFS="$save_IFS" if test "$enable_f77" = "no" ; then if test "$enable_fc" = "yes" ; then as_fn_error $? "Fortran 90 support requires enabling Fortran 77" "$LINENO" 5 fi fi if test ! -z "$FC" -a -z "$F77" ; then F77=$FC if test ! -z "$FCFLAGS" -a -z "$FFLAGS" ; then FFLAGS=$FCFLAGS fi fi if test "$F77" != "$FC" -a "$FFLAGS" != "$FCFLAGS"; then INSTALL_MPIF77_TRUE= INSTALL_MPIF77_FALSE='#' else INSTALL_MPIF77_TRUE='#' INSTALL_MPIF77_FALSE= fi # This needs to come after we've potentially set F77=$FC. Otherwise, we could # override the user's Fortran compiler selection when only specifying FC at configure # time, as is allowed. # suppress default "-g -O2" from AC_PROG_F77 : ${FFLAGS=""} ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in ifort pgf77 af77 xlf frt cf77 fort77 fl32 fort ifc efc ftn gfortran f77 g77 do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_F77+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_F77="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi F77=$ac_cv_prog_F77 if test -n "$F77"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 $as_echo "$F77" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$F77" && break done fi if test -z "$F77"; then ac_ct_F77=$F77 for ac_prog in ifort pgf77 af77 xlf frt cf77 fort77 fl32 fort ifc efc ftn gfortran f77 g77 do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_F77+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_F77"; then ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_F77="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_F77=$ac_cv_prog_ac_ct_F77 if test -n "$ac_ct_F77"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 $as_echo "$ac_ct_F77" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_F77" && break done if test "x$ac_ct_F77" = x; then F77="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac F77=$ac_ct_F77 fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done rm -f a.out # If we don't use `.F' as extension, the preprocessor is not run on the # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } if ${ac_cv_f77_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ choke me #endif end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_f77_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 $as_echo "$ac_cv_f77_compiler_gnu" >&6; } ac_ext=$ac_save_ext ac_test_FFLAGS=${FFLAGS+set} ac_save_FFLAGS=$FFLAGS FFLAGS= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 $as_echo_n "checking whether $F77 accepts -g... " >&6; } if ${ac_cv_prog_f77_g+:} false; then : $as_echo_n "(cached) " >&6 else FFLAGS=-g cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : ac_cv_prog_f77_g=yes else ac_cv_prog_f77_g=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 $as_echo "$ac_cv_prog_f77_g" >&6; } if test "$ac_test_FFLAGS" = set; then FFLAGS=$ac_save_FFLAGS elif test $ac_cv_prog_f77_g = yes; then if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-g -O2" else FFLAGS="-g" fi else if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-O2" else FFLAGS= fi fi if test $ac_compiler_gnu = yes; then G77=yes else G77= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test -z "$F77" || test no = "$F77"; then _lt_disable_F77=yes fi archive_cmds_need_lc_F77=no allow_undefined_flag_F77= always_export_symbols_F77=no archive_expsym_cmds_F77= export_dynamic_flag_spec_F77= hardcode_direct_F77=no hardcode_direct_absolute_F77=no hardcode_libdir_flag_spec_F77= hardcode_libdir_separator_F77= hardcode_minus_L_F77=no hardcode_automatic_F77=no inherit_rpath_F77=no module_cmds_F77= module_expsym_cmds_F77= link_all_deplibs_F77=unknown old_archive_cmds_F77=$old_archive_cmds reload_flag_F77=$reload_flag reload_cmds_F77=$reload_cmds no_undefined_flag_F77= whole_archive_flag_spec_F77= enable_shared_with_static_runtimes_F77=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o objext_F77=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_F77"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${F77-"f77"} CFLAGS=$FFLAGS compiler=$CC compiler_F77=$CC func_cc_basename $compiler cc_basename=$func_cc_basename_result GCC=$G77 if test -n "$compiler"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } GCC_F77=$G77 LD_F77=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... lt_prog_compiler_wl_F77= lt_prog_compiler_pic_F77= lt_prog_compiler_static_F77= if test yes = "$GCC"; then lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_static_F77='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' fi lt_prog_compiler_pic_F77='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic_F77='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_F77='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static_F77='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_F77='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static_F77= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_F77=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_F77='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_F77=-Kconform_pic fi ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl_F77='-Xlinker ' if test -n "$lt_prog_compiler_pic_F77"; then lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_F77='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' else lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_F77='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler lt_prog_compiler_wl_F77='-Wl,-Wl,,' lt_prog_compiler_pic_F77='-PIC' lt_prog_compiler_static_F77='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_F77='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static_F77='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_F77='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_F77='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_F77='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_F77='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_F77='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-static' ;; # flang / f18 flang* | f18*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-fPIC' lt_prog_compiler_static_F77='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-fPIC' lt_prog_compiler_static_F77='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='--shared' lt_prog_compiler_static_F77='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl_F77='-Wl,-Wl,,' lt_prog_compiler_pic_F77='-PIC' lt_prog_compiler_static_F77='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-fPIC' lt_prog_compiler_static_F77='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-fpic' lt_prog_compiler_static_F77='-Bstatic' ;; ccc*) lt_prog_compiler_wl_F77='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-qpic' lt_prog_compiler_static_F77='-qstaticlink' ;; armclang* | armclang++* | armflang*) # ARM LLVM C/C++/Fortran lt_prog_compiler_wl_F77='-Wl,' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' lt_prog_compiler_wl_F77='' ;; *Sun\ F* | *Sun*Fortran* | *Studio*Fortran*) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' lt_prog_compiler_wl_F77='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' lt_prog_compiler_wl_F77='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-fPIC' lt_prog_compiler_static_F77='-static' ;; *Portland\ Group*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-fpic' lt_prog_compiler_static_F77='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_F77='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_F77='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; rdos*) lt_prog_compiler_static_F77='-non_shared' ;; solaris*) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl_F77='-Qoption ld ';; *) lt_prog_compiler_wl_F77='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_F77='-Qoption ld ' lt_prog_compiler_pic_F77='-PIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_F77='-Kconform_pic' lt_prog_compiler_static_F77='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; unicos*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_can_build_shared_F77=no ;; uts4*) lt_prog_compiler_pic_F77='-pic' lt_prog_compiler_static_F77='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_F77=no ;; esac fi case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_F77= ;; *) lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic_F77+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; } lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77 # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_F77"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } if ${lt_cv_prog_compiler_pic_works_F77+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works_F77=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_F77" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works_F77=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works_F77"; then case $lt_prog_compiler_pic_F77 in "" | " "*) ;; *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; esac else lt_prog_compiler_pic_F77= lt_prog_compiler_can_build_shared_F77=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works_F77+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works_F77=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works_F77=yes fi else lt_cv_prog_compiler_static_works_F77=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } if test yes = "$lt_cv_prog_compiler_static_works_F77"; then : else lt_prog_compiler_static_F77= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o_F77+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_F77=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_F77=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o_F77+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_F77=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_F77=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o_F77" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test no = "$hard_links"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag_F77= always_export_symbols_F77=no archive_cmds_F77= archive_expsym_cmds_F77= compiler_needs_object_F77=no enable_shared_with_static_runtimes_F77=no export_dynamic_flag_spec_F77= export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic_F77=no hardcode_direct_F77=no hardcode_direct_absolute_F77=no hardcode_libdir_flag_spec_F77= hardcode_libdir_separator_F77= hardcode_minus_L_F77=no hardcode_shlibpath_var_F77=unsupported inherit_rpath_F77=no link_all_deplibs_F77=unknown module_cmds_F77= module_expsym_cmds_F77= old_archive_from_new_cmds_F77= old_archive_from_expsyms_cmds_F77= thread_safe_flag_spec_F77= whole_archive_flag_spec_F77= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_F77= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; esac ld_shlibs_F77=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' export_dynamic_flag_spec_F77='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_F77=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec_F77= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then ld_shlibs_F77=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_F77='' ;; m68k) 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)' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_F77=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs_F77=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_F77='-L$libdir' export_dynamic_flag_spec_F77='$wl--export-all-symbols' allow_undefined_flag_F77=unsupported always_export_symbols_F77=no enable_shared_with_static_runtimes_F77=yes 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' exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_F77=no fi ;; haiku*) archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs_F77=yes ;; os2*) hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes allow_undefined_flag_F77=unsupported shrext_cmds=.dll archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes_F77=yes ;; interix[3-9]*) hardcode_direct_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' export_dynamic_flag_spec_F77='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. 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' 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' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler 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' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers 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' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec_F77= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 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' compiler_needs_object_F77=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 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' compiler_needs_object_F77=yes tmp_sharedflag='-G' ;; *Sun\ F* | *Sun*Fortran* | *Studio*Fortran*) tmp_sharedflag='-G' ;; esac archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) export_dynamic_flag_spec_F77='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) XLF_VERSION=$($CC -qversion 2>/dev/null | sed 1q | sed -e "s+^.*V++" | sed -e "s+\..*++") if test $XLF_VERSION -ge 13; then archive_cmds_F77='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi else # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi fi ;; esac else ld_shlibs_F77=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 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' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs_F77=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 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' else ld_shlibs_F77=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_F77=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac ;; sunos4*) archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 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' else ld_shlibs_F77=no fi ;; esac if test no = "$ld_shlibs_F77"; then runpath_var= hardcode_libdir_flag_spec_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_F77=unsupported always_export_symbols_F77=yes 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' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_F77=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_F77=unsupported fi ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 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' else 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' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_F77='' hardcode_direct_F77=yes hardcode_direct_absolute_F77=yes hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes file_list_spec_F77='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct_F77=no hardcode_direct_absolute_F77=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_F77=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_F77=yes hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_libdir_separator_F77= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec_F77='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_F77=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_F77='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__F77+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_f77_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__F77"; then lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__F77"; then lt_cv_aix_libpath__F77=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath__F77 fi hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath" 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 else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec_F77='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag_F77="-z nodefs" 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" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__F77+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_f77_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__F77"; then lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__F77"; then lt_cv_aix_libpath__F77=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath__F77 fi hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_F77=' $wl-bernotok' allow_undefined_flag_F77=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec_F77='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_F77='$convenience' fi archive_cmds_need_lc_F77=yes archive_expsym_cmds_F77='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. 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' fi if test aix != "$with_aix_soname"; then 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' else # used by -dlpreopen to get the symbols archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_F77='' ;; m68k) 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)' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec_F77=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec_F77=' ' allow_undefined_flag_F77=unsupported always_export_symbols_F77=yes file_list_spec_F77='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true' enable_shared_with_static_runtimes_F77=yes exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds_F77='chmod 644 $oldlib' postlink_cmds_F77='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec_F77=' ' allow_undefined_flag_F77=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds_F77='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes_F77=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc_F77=no hardcode_direct_F77=no hardcode_automatic_F77=yes hardcode_shlibpath_var_F77=unsupported if test yes = "$lt_cv_ld_force_load"; then 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\"`' compiler_needs_object_F77=yes else whole_archive_flag_spec_F77='' fi link_all_deplibs_F77=yes allow_undefined_flag_F77=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) lt_prog_compiler_wl_F77='-Wl,' _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all 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" module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 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" 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" else ld_shlibs_F77=no fi ;; dgux*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; hpux9*) if test yes = "$GCC"; then 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' else 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' fi hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes export_dynamic_flag_spec_F77='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes hardcode_direct_absolute_F77=yes export_dynamic_flag_spec_F77='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds_F77='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds_F77='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' hardcode_libdir_separator_F77=: case $host_cpu in hppa*64*|ia64*) hardcode_direct_F77=no hardcode_shlibpath_var_F77=no ;; *) hardcode_direct_F77=yes hardcode_direct_absolute_F77=yes export_dynamic_flag_spec_F77='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then 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' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if ${lt_cv_irix_exported_symbol+:} false; then : $as_echo_n "(cached) " >&6 else save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat > conftest.$ac_ext <<_ACEOF subroutine foo end _ACEOF if ac_fn_f77_try_link "$LINENO"; then : lt_cv_irix_exported_symbol=yes else lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 $as_echo "$lt_cv_irix_exported_symbol" >&6; } if test yes = "$lt_cv_irix_exported_symbol"; then 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' fi else 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' 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' fi archive_cmds_need_lc_F77='no' hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' hardcode_libdir_separator_F77=: inherit_rpath_F77=yes link_all_deplibs_F77=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler ld_shlibs_F77=yes archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; newsos6) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' hardcode_libdir_separator_F77=: hardcode_shlibpath_var_F77=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no hardcode_direct_absolute_F77=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' export_dynamic_flag_spec_F77='$wl-E' else archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' fi else ld_shlibs_F77=no fi ;; os2*) hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes allow_undefined_flag_F77=unsupported shrext_cmds=.dll archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes_F77=yes ;; osf3*) if test yes = "$GCC"; then allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*' 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' else allow_undefined_flag_F77=' -expect_unresolved \*' 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' fi archive_cmds_need_lc_F77='no' hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' hardcode_libdir_separator_F77=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*' 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' hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' else allow_undefined_flag_F77=' -expect_unresolved \*' 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' 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~ $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' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_F77='-rpath $libdir' fi archive_cmds_need_lc_F77='no' hardcode_libdir_separator_F77=: ;; solaris*) no_undefined_flag_F77=' -z defs' if test yes = "$GCC"; then wlarc='$wl' archive_cmds_F77='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $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' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds_F77='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' archive_cmds_F77='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_shlibpath_var_F77=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then whole_archive_flag_spec_F77='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs_F77=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_F77='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; sysv4) case $host_vendor in sni) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_F77='$CC -r -o $output$reload_objs' hardcode_direct_F77=no ;; motorola) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_F77=no ;; sysv4.3*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no export_dynamic_flag_spec_F77='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_F77=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_F77='$wl-z,text' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_F77='$wl-z,text' allow_undefined_flag_F77='$wl-z,nodefs' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='$wl-R,$libdir' hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes export_dynamic_flag_spec_F77='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; *) ld_shlibs_F77=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec_F77='$wl-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5 $as_echo "$ld_shlibs_F77" >&6; } test no = "$ld_shlibs_F77" && can_build_shared=no with_gnu_ld_F77=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_F77" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_F77=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds_F77 in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc_F77+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_F77 pic_flag=$lt_prog_compiler_pic_F77 compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_F77 allow_undefined_flag_F77= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc_F77=no else lt_cv_archive_cmds_need_lc_F77=yes fi allow_undefined_flag_F77=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; } archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77 ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling 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"' 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"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 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)' 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"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. 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' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec_F77='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\"" cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_f77_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. # There is no easy way to reliably detect the sys dlsearch path. We will first # assume ldconfig reports the path correctly, but check it with the current # ld cache. If any cached path is not present in the generated path_spec, then # we know ldconfig is bad and should manually parse the ld.so.conf files. # Note the reported paths can be a superset of the cached paths. # The catch is that the default path may not be in the ld.so.conf. We have to # add any missing one back to the path_spec (from the cached paths). if test -x /sbin/ldconfig; then sys_lib_dlsearch_path_spec=`/sbin/ldconfig -N -X -v 2>/dev/null | grep ^/ | sed -e 's/:.*//g' | tr '\n' ' '` cached_lib_dlsearch_path=`/sbin/ldconfig -p | sed -e 's/.*=> //g' | grep '^/' | while read p; do dirname $p; done | sort | uniq | tr '\n' ' '` for p in `echo $cached_lib_dlsearch_path`; do case "$sys_lib_dlsearch_path_spec" in *$p*) bad_ldconfig=no ;; *) # ldconfig is bad if cached path is not reported bad_ldconfig=yes break ;; esac done else bad_ldconfig=yes fi if test "$bad_ldconfig" = "yes"; then if test -f /etc/ld.so.conf; then 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' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # catch anything that in the cached path but not in the conf files for p in `echo $cached_lib_dlsearch_path`; do case "$sys_lib_dlsearch_path_spec" in *$p*) ;; *) sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $p" ;; esac done fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action_F77= if test -n "$hardcode_libdir_flag_spec_F77" || test -n "$runpath_var_F77" || test yes = "$hardcode_automatic_F77"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct_F77" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" && test no != "$hardcode_minus_L_F77"; then # Linking always hardcodes the temporary library directory. hardcode_action_F77=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_F77=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_F77=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5 $as_echo "$hardcode_action_F77" >&6; } if test relink = "$hardcode_action_F77" || test yes = "$inherit_rpath_F77"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_F77" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # compute canonical system types # TARGET not needed, MPICH isn't a compiler # Enable better caching control # Check whether --enable-cache was given. if test "${enable_cache+set}" = set; then : enableval=$enable_cache; else enable_cache="notgiven" fi # Set CFLAGS for enable strict if necessary. Do this *first* because # it may influence the output of the other tests # Check whether --enable-strict was given. if test "${enable_strict+set}" = set; then : enableval=$enable_strict; fi export enable_strict_done if test "$enable_strict_done" != "yes" ; then # Some comments on strict warning options. # These were added to improve portability # -Wstack-usage=262144 -- 32 bit FreeBSD did not like the mprobe test # allocating a big variable on the stack. (See tt#2160). The "right" # value requires further investigation; 1 MiB would have at least # caught #2160 at compile-time, and only two other tests show a # warning at 256k. # # These were added to reduce warnings: # -Wno-missing-field-initializers -- We want to allow a struct to be # initialized to zero using "struct x y = {0};" and not require # each field to be initialized individually. # -Wno-unused-parameter -- For portability, some parameters go unused # when we have different implementations of functions for # different platforms # -Wno-unused-label -- We add fn_exit: and fn_fail: on all functions, # but fn_fail may not be used if the function doesn't return an # error. # -Wno-sign-compare -- read() and write() return bytes read/written # as a signed value, but we often compare this to size_t (or # msg_sz_t) variables. # -Wno-format-zero-length -- this warning is irritating and useless, since # a zero-length format string is very well defined # These were removed to reduce warnings: # -Wcast-qual -- Sometimes we need to cast "volatile char*" to # "char*", e.g., for memcpy. # -Wpadded -- We catch struct padding with asserts when we need to # -Wredundant-decls -- Having redundant declarations is benign and the # code already has some. # -Waggregate-return -- This seems to be a performance-related warning # aggregate return values are legal in ANSI C, but they may be returned # in memory rather than through a register. We do use aggregate return # values, but they are structs of a single basic type (used to enforce # type checking for relative vs. absolute ptrs), and with optimization # the aggregate value is converted to a scalar. # -Wdeclaration-after-statement -- This is a C89 # requirement. When compiling with C99, this should be # disabled. # -Wfloat-equal -- There are places in hwloc that set a float var to 0, then # compare it to 0 later to see if it was updated. Also when using strtod() # one needs to compare the return value with 0 to see whether a conversion # was performed. # -Werror-implicit-function-declaration -- implicit function declarations # should never be tolerated. This also ensures that we get quick # compilation failures rather than later link failures that usually # come from a function name typo. # -Wcast-align -- Casting alignment warnings. This is an # important check, but is temporarily disabled, since it is # throwing too many (correct) warnings currently, causing us # to miss other warnings. # -Wshorten-64-to-32 -- Bad type-casting warnings. This is an # important check, but is temporarily disabled, since it is # throwing too many (correct) warnings currently, causing us # to miss other warnings. # # This was removed because it masks important failures (see ticket #2094). # However, since Intel compiler currently does not include -Wtype-limits # in -Wextra, -Wtype-limits was added to handle warnings with the Intel # compiler. # -Wno-type-limits -- There are places where we compare an unsigned to # a constant that happens to be zero e.g., if x is unsigned and # MIN_VAL is zero, we'd like to do "MPIR_Assert(x >= MIN_VAL);". # Note this option is not supported by gcc 4.2. This needs to be added # after most other warning flags, so that we catch a gcc bug on 32-bit # that doesn't give a warning that this is unsupported, unless another # warning is triggered, and then if gives an error. # the embedded newlines in this string are safe because we evaluate each # argument in the for-loop below and append them to the CFLAGS with a space # as the separator instead pac_common_strict_flags=" -Wall -Wextra -Wno-missing-field-initializers -Wstrict-prototypes -Wmissing-prototypes -DGCC_WALL -Wno-unused-parameter -Wno-unused-label -Wshadow -Wmissing-declarations -Wno-long-long -Wundef -Wno-endif-labels -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wno-sign-compare -Wold-style-definition -Wno-multichar -Wno-deprecated-declarations -Wnested-externs -Winvalid-pch -Wno-pointer-sign -Wvariadic-macros -Wno-format-zero-length -Wtype-limits -Werror-implicit-function-declaration -Wstack-usage=262144 " enable_c89=no enable_c99=yes enable_posix=2001 enable_opt=yes flags="`echo $enable_strict | sed -e 's/:/ /g' -e 's/,/ /g'`" for flag in ${flags}; do case "$flag" in c89) enable_strict_done="yes" enable_c89=yes enable_c99=no ;; c99) enable_strict_done="yes" enable_c89=no enable_c99=yes ;; posix1995) enable_strict_done="yes" enable_posix=1995 ;; posix|posix2001) enable_strict_done="yes" enable_posix=2001 ;; posix2008) enable_strict_done="yes" enable_posix=2008 ;; noposix) enable_strict_done="yes" enable_posix=no ;; opt) enable_strict_done="yes" enable_opt=yes ;; noopt) enable_strict_done="yes" enable_opt=no ;; all|yes) enable_strict_done="yes" enable_c99=yes enable_posix=2001 enable_opt=yes ;; no) # Accept and ignore this value : ;; *) if test -n "$flag" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized value for enable-strict:$flag" >&5 $as_echo "$as_me: WARNING: Unrecognized value for enable-strict:$flag" >&2;} fi ;; esac done pac_cc_strict_flags="" if test "${enable_strict_done}" = "yes" ; then if test "${enable_opt}" = "yes" ; then pac_cc_strict_flags="-O2" fi pac_cc_strict_flags="$pac_cc_strict_flags $pac_common_strict_flags" # We only allow one of strict-C99 or strict-C89 to be # enabled. If C99 is enabled, we automatically disable C89. if test "${enable_c99}" = "yes" ; then if echo "$pac_cc_strict_flags" | $FGREP -e "\<-std=c99\>" >/dev/null 2>&1; then : echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-std=c99', not appending" >&5 else echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-std=c99', appending" >&5 pac_cc_strict_flags="$pac_cc_strict_flags -std=c99" fi # Use -D_STDC_C99= for Solaris compilers. See # http://lists.gnu.org/archive/html/autoconf/2010-12/msg00059.html # for discussion on why not to use -xc99 if echo "$pac_cc_strict_flags" | $FGREP -e "\<-D_STDC_C99=\>" >/dev/null 2>&1; then : echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-D_STDC_C99=', not appending" >&5 else echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-D_STDC_C99=', appending" >&5 pac_cc_strict_flags="$pac_cc_strict_flags -D_STDC_C99=" fi elif test "${enable_c89}" = "yes" ; then if echo "$pac_cc_strict_flags" | $FGREP -e "\<-std=c89\>" >/dev/null 2>&1; then : echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-std=c89', not appending" >&5 else echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-std=c89', appending" >&5 pac_cc_strict_flags="$pac_cc_strict_flags -std=c89" fi if echo "$pac_cc_strict_flags" | $FGREP -e "\<-Wdeclaration-after-statement\>" >/dev/null 2>&1; then : echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-Wdeclaration-after-statement', not appending" >&5 else echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-Wdeclaration-after-statement', appending" >&5 pac_cc_strict_flags="$pac_cc_strict_flags -Wdeclaration-after-statement" fi fi # POSIX 2001 should be used with C99. But the default standard for some # compilers are not C99. We must test the support of POSIX 2001 after # testing C99. case "$enable_posix" in no) : ;; 1995) if echo "$pac_cc_strict_flags" | $FGREP -e "\<-D_POSIX_C_SOURCE=199506L\>" >/dev/null 2>&1; then : echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-D_POSIX_C_SOURCE=199506L', not appending" >&5 else echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-D_POSIX_C_SOURCE=199506L', appending" >&5 pac_cc_strict_flags="$pac_cc_strict_flags -D_POSIX_C_SOURCE=199506L" fi ;; 2001) if echo "$pac_cc_strict_flags" | $FGREP -e "\<-D_POSIX_C_SOURCE=200112L\>" >/dev/null 2>&1; then : echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-D_POSIX_C_SOURCE=200112L', not appending" >&5 else echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-D_POSIX_C_SOURCE=200112L', appending" >&5 pac_cc_strict_flags="$pac_cc_strict_flags -D_POSIX_C_SOURCE=200112L" fi ;; 2008) if echo "$pac_cc_strict_flags" | $FGREP -e "\<-D_POSIX_C_SOURCE=200809L\>" >/dev/null 2>&1; then : echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-D_POSIX_C_SOURCE=200809L', not appending" >&5 else echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-D_POSIX_C_SOURCE=200809L', appending" >&5 pac_cc_strict_flags="$pac_cc_strict_flags -D_POSIX_C_SOURCE=200809L" fi ;; *) as_fn_error $? "internal error, unexpected POSIX version: '$enable_posix'" "$LINENO" 5 ;; esac if test "$enable_posix" != "no" ; then case $host in #( *-*-darwin*) : if echo "$pac_cc_strict_flags" | $FGREP -e "\<-D_DARWIN_C_SOURCE\>" >/dev/null 2>&1; then : echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-D_DARWIN_C_SOURCE', not appending" >&5 else echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-D_DARWIN_C_SOURCE', appending" >&5 pac_cc_strict_flags="$pac_cc_strict_flags -D_DARWIN_C_SOURCE" fi ;; #( *) : ;; esac fi fi # See if the above options work with the compiler accepted_flags="" for flag in $pac_cc_strict_flags ; do if test -z "${pac_save_CFLAGS_nesting}" ; then pac_save_CFLAGS_nesting=0 fi eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"' pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1` CFLAGS="$CFLAGS $accepted_flags" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts option $flag" >&5 $as_echo_n "checking whether C compiler accepts option $flag... " >&6; } pac_opt="$flag" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CFLAGS_orig="$CFLAGS" CFLAGS_opt="$pac_opt $CFLAGS" pac_result="unknown" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include const char hw[] = "Hello, World\n"; int main () { fputs (hw, stdout); ; return 0; } _ACEOF CFLAGS="$CFLAGS_orig" rm -f pac_test1.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`" if ac_fn_c_try_link "$LINENO"; then : CFLAGS="$CFLAGS_opt" rm -f pac_test2.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`" if ac_fn_c_try_link "$LINENO"; then : pac_TESTLOG="pac_test.log" rm -f $pac_TESTLOG if { $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5 (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; }; then : pac_result=yes else $as_echo "$as_me: program exited with status $ac_status" >&5 (exit $ac_status) $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5 cat $pac_TESTLOG >&5 pac_result=no fi rm -f $pac_TESTLOG else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5 $as_echo "$pac_result" >&6; } rm -f conftest.$ac_ext # gcc 4.2.4 on 32-bit does not complain about the -Wno-type-limits option # even though it doesn't support it. However, when another warning is # triggered, it gives an error that the option is not recognized. So we # need to test with a conftest file that will generate warnings. # # add an extra switch, pac_c_check_compiler_option_prototest, to # disable this test just in case some new compiler does not like it. # # Linking with a program with an invalid prototype to ensure a compiler warning. if test "$pac_result" = "yes" \ -a "$pac_c_check_compiler_option_prototest" != "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler option $flag works with an invalid prototype program" >&5 $as_echo_n "checking whether C compiler option $flag works with an invalid prototype program... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main(int argc, char **argv){ int foo, bar = 0; foo += 1; return foo; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_result=yes else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5 $as_echo "$pac_result" >&6; } fi # if test "$pac_result" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5 $as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; } pac_result=unknown CFLAGS="$CFLAGS_orig" rm -f pac_test3.log # START of PUSHVAL if ${pac_stk_ac_compile_level+:} false; then : as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val else pac_stk_ac_compile_level=0 fi eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile" if test "x$pac_stk_ac_compile_level" = x0; then : eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level fi eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level # END of PUSHVAL ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(void); int foo(void){return 0;} _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } saved_LIBS="$LIBS" LIBS="pac_conftest.$OBJEXT $LIBS" rm -f pac_test4.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : CFLAGS="$CFLAGS_opt" rm -f pac_test5.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test5.log 2>\&1|g'`" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_TESTLOG="pac_test.log" rm -f $pac_TESTLOG if { $as_echo "$as_me:$LINENO: diff -b pac_test4.log pac_test5.log > $pac_TESTLOG" >&5 (eval diff -b pac_test4.log pac_test5.log > $pac_TESTLOG) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; }; then : pac_result=yes else $as_echo "$as_me: program exited with status $ac_status" >&5 (exit $ac_status) $as_echo "*** diff -b pac_test4.log pac_test5.log :" >&5 cat $pac_TESTLOG >&5 pac_result=no fi rm -f $pac_TESTLOG else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL LIBS="$saved_LIBS" rm -f pac_conftest.$OBJEXT else pac_result=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # START of POPVAL if ${pac_stk_ac_compile_level+:} false; then : if test "x$pac_stk_ac_compile_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;} else eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level as_fn_arith $pac_stk_ac_compile_level - 1 && pac_stk_ac_compile_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;} fi # END of POPVAL { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5 $as_echo "$pac_result" >&6; } rm -f pac_test3.log pac_test4.log pac_test5.log fi rm -f pac_test1.log pac_test2.log CFLAGS="$CFLAGS_orig" if test "$pac_result" = "yes" ; then accepted_flags="$accepted_flags $flag" else : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1` eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}" eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}="" done pac_cc_strict_flags=$accepted_flags fi CFLAGS="$CFLAGS $pac_cc_strict_flags" export CFLAGS # ----------------------------------------------------------------------------- # First check that we have a clean build if we are doing a VPATH build # This is needed for Mac OSX 10.5 rm -rf conftest.dSYM rm -f conftest* date >conftest$$ # If creating a file in the current directory does not show up in the srcdir # then we're doing a VPATH build (or something is very wrong) if test ! -s $srcdir/conftest$$ ; then pac_dirtyfiles="" pac_dirtydirs="" pac_header="" for file in config.status $pac_header src/include/mpi.h src/env/mpicc ; do if test -f $srcdir/$file ; then pac_dirtyfiles="$pac_dirtyfiles $file" fi done for dir in lib ; do if test -d $srcdir/$dir ; then pac_dirtydirs="$pac_dirtydirs $dir" fi done if test -n "$pac_dirtyfiles" -o -n "$pac_dirtydirs" ; then # Create a nice message about what to remove rmmsg="" if test -n "$pac_dirtyfiles" ; then rmmsg="files $pac_dirtyfiles" fi if test -n "$pac_dirtydirs" ; then if test -n "$rmmsg" ; then rmmsg="$rmmsg and directories $pac_dirtydirs" else rmmsg="directories $pac_dirtydirs" fi fi if test -f $srcdir/Makefile ; then as_fn_error $? "You cannot do a VPATH build if the source directory has been configured. Run \"make distclean\" in $srcdir first and make sure that the $rmmsg have been removed." "$LINENO" 5 else as_fn_error $? "You cannot do a VPATH build if the source directory has been configured. Remove the $rmmsg in $srcdir." "$LINENO" 5 fi fi fi # This is needed for Mac OSX 10.5 rm -rf conftest.dSYM rm -f conftest* # ---------------------------------------------------------------------------- # This test is complicated by the fact that top_srcdir is not set until # the very end of configure. Instead, we get it ourselves if test -z "$top_srcdir" ; then use_top_srcdir=$srcdir else use_top_srcdir=$top_srcdir fi if test -z "$master_top_srcdir" ; then # This needs to be an absolute pathname case "$use_top_srcdir" in /*) ;; *) use_top_srcdir=`(cd $use_top_srcdir && pwd)` ;; esac master_top_srcdir=$use_top_srcdir fi # Get the directory that we're running in... if test -z "$master_top_builddir" ; then master_top_builddir="`pwd`" fi export master_top_builddir export master_top_srcdir if test -z "$with_cross"; then if test -f "$master_top_srcdir/src/cross/$host_alias"; then with_cross="$master_top_srcdir/src/cross/$host_alias" else with_cross=no fi fi if test "$with_cross" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: Using cross file: $with_cross" >&5 $as_echo "$as_me: Using cross file: $with_cross" >&6;} fi # ---------------------------------------------------------------------------- export AR export AR_FLAGS export CC export CFLAGS export CPPFLAGS export CXX export CXXFLAGS export F77 export FC export FCFLAGS export FFLAGS export LDFLAGS export LIBS export MPILIBNAME export PMPILIBNAME export RANLIB export OPALIBNAME export MPLLIBNAME # ---------------------------------------------------------------------------- # with-device if test "$with_device" = "default" ; then # Pick the device. For now, always choose ch3 with_device=ch3 fi # Extract the device name from any options # Allow the device to specify a directory; if no directory, use the # included directories # DEVICE=$with_device device_name=`echo $with_device | sed -e 's/:.*$//'` device_args=`echo $with_device | sed -e 's/^[^:]*//' -e 's/^://'` devicedir=$use_top_srcdir/src/mpid/$device_name devicereldir=src/mpid/$device_name case "$device_name" in /*) devicedir=$DEVICE # Get the name from the leaf device_name=`echo $device_name ~ sed -e 's%.*/%%'` # FIXME: should the devicereldir be different (perhaps not - # this allows use to build within our tree, even when other data # is outside of the tree) ;; *) ;; esac export device_name export device_args export devicedir # See if the device wants to say something about the compilers if test -f $devicedir/mpichprereq ; then . $devicedir/mpichprereq fi # expand all of the prereq macros in the correct order ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4 if test "$device_name" = "ch4"; then BUILD_CH4_TRUE= BUILD_CH4_FALSE='#' else BUILD_CH4_TRUE='#' BUILD_CH4_FALSE= fi if test -z "$BUILD_CH4_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING PREREQ FOR CH4 DEVICE" >&5 $as_echo "$as_me: RUNNING PREREQ FOR CH4 DEVICE" >&6;} # the CH4 device depends on the common NBC scheduler code build_mpid_common_sched=yes build_mpid_common_datatype=yes build_mpid_common_thread=yes build_mpid_common_bc=yes MPID_MAX_THREAD_LEVEL=MPI_THREAD_MULTIPLE MPID_MAX_PROCESSOR_NAME=128 MPID_MAX_ERROR_STRING=512 # $device_args - contains the netmods if test -z "${device_args}" ; then ch4_netmods="ofi" else netmod_args=`echo ${device_args} | sed -e 's/^[^:]*//' -e 's/^://' -e 's/,/ /g'` ch4_netmods=`echo ${device_args} | sed -e 's/:.*$//' -e 's/,/ /g'` fi export ch4_netmods export netmod_args # # reset DEVICE so that it (a) always includes the channel name, and (b) does not include channel options # DEVICE="${device_name}:${ch4_netmods}" ch4_nets_func_decl="" ch4_nets_native_func_decl="" ch4_nets_func_array="" ch4_nets_native_func_array="" ch4_nets_strings="" net_index=0 for net in $ch4_netmods ; do if test ! -d $srcdir/src/mpid/ch4/netmod/${net} ; then as_fn_error $? "Network module ${net} is unknown \"$srcdir/src/mpid/ch4/netmod/${net}\"" "$LINENO" 5 fi net_macro=`echo $net | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` net_macro="MPIDI_CH4_${net_macro}" if test -z "$ch4_nets_array" ; then ch4_nets_array="$net_macro" else ch4_nets_array="$ch4_nets_array, $net_macro" fi if test -z "$ch4_nets_func_decl" ; then ch4_nets_func_decl="MPIDI_NM_${net}_funcs" else ch4_nets_func_decl="${ch4_nets_func_decl}, MPIDI_NM_${net}_funcs" fi if test -z "$ch4_nets_native_func_decl" ; then ch4_nets_native_func_decl="MPIDI_NM_native_${net}_funcs" else ch4_nets_native_func_decl="${ch4_nets_native_func_decl}, MPIDI_NM_native_${net}_funcs" fi if test -z "$ch4_nets_func_array" ; then ch4_nets_func_array="&MPIDI_NM_${net}_funcs" else ch4_nets_func_array="${ch4_nets_func_array}, &MPIDI_NM_${net}_funcs" fi if test -z "$ch4_nets_native_func_array" ; then ch4_nets_native_func_array="&MPIDI_NM_native_${net}_funcs" else ch4_nets_native_func_array="${ch4_nets_native_func_array}, &MPIDI_NM_native_${net}_funcs" fi if test -z "$ch4_nets_strings" ; then ch4_nets_strings="\"$net\"" else ch4_nets_strings="$ch4_nets_strings, \"$net\"" fi if test -z "$ch4_netmod_coll_globals_default" ; then ch4_netmod_coll_globals_default="#include \"../netmod/${net}/${net}_coll_globals_default.c\"" else ch4_netmod_coll_globals_default="${ch4_netmod_coll_globals_default} #include \"../netmod/${net}/${net}_coll_globals_default.c\"" fi if test -z "$ch4_netmod_pre_include" ; then ch4_netmod_pre_include="#include \"../netmod/${net}/${net}_pre.h\"" else ch4_netmod_pre_include="${ch4_netmod_pre_include} #include \"../netmod/${net}/${net}_pre.h\"" fi if test -z "$ch4_netmod_coll_params_include" ; then ch4_netmod_coll_params_include="#include \"../netmod/${net}/${net}_coll_params.h\"" else ch4_netmod_coll_params_include="${ch4_netmod_coll_params_include} #include \"../netmod/${net}/${net}_coll_params.h\"" fi net_upper=`echo ${net} | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` if test -z "$ch4_netmod_amrequest_decl" ; then ch4_netmod_amrequest_decl="MPIDI_${net_upper}_am_request_t ${net};" else ch4_netmod_amrequest_decl="${ch4_netmod_amrequest_decl} \\ MPIDI_${net_upper}_am_request_t ${net};" fi if test -z "$ch4_netmod_request_decl" ; then ch4_netmod_request_decl="MPIDI_${net_upper}_request_t ${net};" else ch4_netmod_request_decl="${ch4_netmod_request_decl} \\ MPIDI_${net_upper}_request_t ${net};" fi if test -z "$ch4_netmod_comm_decl" ; then ch4_netmod_comm_decl="MPIDI_${net_upper}_comm_t ${net};" else ch4_netmod_comm_decl="${ch4_netmod_comm_decl} \\ MPIDI_${net_upper}_comm_t ${net};" fi if test -z "$ch4_netmod_dt_decl" ; then ch4_netmod_dt_decl="MPIDI_${net_upper}_dt_t ${net};" else ch4_netmod_dt_decl="${ch4_netmod_dt_decl} \\ MPIDI_${net_upper}_dt_t ${net};" fi if test -z "$ch4_netmod_op_decl" ; then ch4_netmod_op_decl="MPIDI_${net_upper}_op_t ${net};" else ch4_netmod_op_decl="${ch4_netmod_op_decl} \\ MPIDI_${net_upper}_op_t ${net};" fi if test -z "$ch4_netmod_barrier_params_decl" ; then ch4_netmod_barrier_params_decl="MPIDI_${net_upper}_BARRIER_PARAMS_DECL;" else ch4_netmod_barrier_params_decl="${ch4_netmod_barrier_params_decl} \\ MPIDI_${net_upper}_BARRIER_PARAMS_DECL;" fi if test -z "$ch4_netmod_bcast_params_decl" ; then ch4_netmod_bcast_params_decl="MPIDI_${net_upper}_BCAST_PARAMS_DECL;" else ch4_netmod_bcast_params_decl="${ch4_netmod_bcast_params_decl} \\ MPIDI_${net_upper}_BCAST_PARAMS_DECL;" fi if test -z "$ch4_netmod_reduce_params_decl" ; then ch4_netmod_reduce_params_decl="MPIDI_${net_upper}_REDUCE_PARAMS_DECL;" else ch4_netmod_reduce_params_decl="${ch4_netmod_reduce_params_decl} \\ MPIDI_${net_upper}_REDUCE_PARAMS_DECL;" fi if test -z "$ch4_netmod_allreduce_params_decl" ; then ch4_netmod_allreduce_params_decl="MPIDI_${net_upper}_ALLREDUCE_PARAMS_DECL;" else ch4_netmod_allreduce_params_decl="${ch4_netmod_allreduce_params_decl} \\ MPIDI_${net_upper}_ALLREDUCE_PARAMS_DECL;" fi if test -z "$ch4_netmod_alltoall_params_decl" ; then ch4_netmod_alltoall_params_decl="MPIDI_${net_upper}_ALLTOALL_PARAMS_DECL;" else ch4_netmod_alltoall_params_decl="${ch4_netmod_alltoall_params_decl} \\ MPIDI_${net_upper}_ALLTOALL_PARAMS_DECL;" fi if test -z "$ch4_netmod_alltoallv_params_decl" ; then ch4_netmod_alltoallv_params_decl="MPIDI_${net_upper}_ALLTOALLV_PARAMS_DECL;" else ch4_netmod_alltoallv_params_decl="${ch4_netmod_alltoallv_params_decl} \\ MPIDI_${net_upper}_ALLTOALLV_PARAMS_DECL;" fi if test -z "$ch4_netmod_alltoallw_params_decl" ; then ch4_netmod_alltoallw_params_decl="MPIDI_${net_upper}_ALLTOALLW_PARAMS_DECL;" else ch4_netmod_alltoallw_params_decl="${ch4_netmod_alltoallw_params_decl} \\ MPIDI_${net_upper}_ALLTOALLW_PARAMS_DECL;" fi if test -z "$ch4_netmod_allgather_params_decl" ; then ch4_netmod_allgather_params_decl="MPIDI_${net_upper}_ALLGATHER_PARAMS_DECL;" else ch4_netmod_allgather_params_decl="${ch4_netmod_allgather_params_decl} \\ MPIDI_${net_upper}_ALLGATHER_PARAMS_DECL;" fi if test -z "$ch4_netmod_allgatherv_params_decl" ; then ch4_netmod_allgatherv_params_decl="MPIDI_${net_upper}_ALLGATHERV_PARAMS_DECL;" else ch4_netmod_allgatherv_params_decl="${ch4_netmod_allgatherv_params_decl} \\ MPIDI_${net_upper}_ALLGATHERV_PARAMS_DECL;" fi if test -z "$ch4_netmod_gather_params_decl" ; then ch4_netmod_gather_params_decl="MPIDI_${net_upper}_GATHER_PARAMS_DECL;" else ch4_netmod_gather_params_decl="${ch4_netmod_gather_params_decl} \\ MPIDI_${net_upper}_GATHER_PARAMS_DECL;" fi if test -z "$ch4_netmod_gatherv_params_decl" ; then ch4_netmod_gatherv_params_decl="MPIDI_${net_upper}_GATHERV_PARAMS_DECL;" else ch4_netmod_gatherv_params_decl="${ch4_netmod_gatherv_params_decl} \\ MPIDI_${net_upper}_GATHERV_PARAMS_DECL;" fi if test -z "$ch4_netmod_scatter_params_decl" ; then ch4_netmod_scatter_params_decl="MPIDI_${net_upper}_SCATTER_PARAMS_DECL;" else ch4_netmod_scatter_params_decl="${ch4_netmod_scatter_params_decl} \\ MPIDI_${net_upper}_SCATTER_PARAMS_DECL" fi if test -z "$ch4_netmod_scatterv_params_decl" ; then ch4_netmod_scatterv_params_decl="MPIDI_${net_upper}_SCATTERV_PARAMS_DECL;" else ch4_netmod_scatterv_params_decl="${ch4_netmod_scatterv_params_decl} \\ MPIDI_${net_upper}_SCATTERV_PARAMS_DECL;" fi if test -z "$ch4_netmod_reduce_scatter_params_decl" ; then ch4_netmod_reduce_scatter_params_decl="MPIDI_${net_upper}_REDUCE_SCATTER_PARAMS_DECL;" else ch4_netmod_reduce_scatter_params_decl="${ch4_netmod_reduce_scatter_params_decl} \\ MPIDI_${net_upper}_REDUCE_SCATTER_PARAMS_DECL;" fi if test -z "$ch4_netmod_reduce_scatter_block_params_decl" ; then ch4_netmod_reduce_scatter_block_params_decl="MPIDI_${net_upper}_REDUCE_SCATTER_BLOCK_PARAMS_DECL;" else ch4_netmod_reduce_scatter_block_params_decl="${ch4_netmod_reduce_scatter_block_params_decl} \\ MPIDI_${net_upper}_REDUCE_SCATTER_BLOCK_PARAMS_DECL;" fi if test -z "$ch4_netmod_scan_params_decl" ; then ch4_netmod_scan_params_decl="MPIDI_${net_upper}_SCAN_PARAMS_DECL;" else ch4_netmod_scan_params_decl="${ch4_netmod_scan_params_decl} \\ MPIDI_${net_upper}_SCAN_PARAMS_DECL;" fi if test -z "$ch4_netmod_exscan_params_decl" ; then ch4_netmod_exscan_params_decl="MPIDI_${net_upper}_EXSCAN_PARAMS_DECL;" else ch4_netmod_exscan_params_decl="${ch4_netmod_exscan_params_decl} \\ MPIDI_${net_upper}_EXSCAN_PARAMS_DECL;" fi if test -z "$ch4_netmod_win_decl" ; then ch4_netmod_win_decl="MPIDI_${net_upper}_win_t ${net};" else ch4_netmod_win_decl="${ch4_netmod_win_decl} \\ MPIDI_${net_upper}_win_t ${net};" fi if test -z "$ch4_netmod_addr_decl" ; then ch4_netmod_addr_decl="MPIDI_${net_upper}_addr_t ${net};" else ch4_netmod_addr_decl="${ch4_netmod_addr_decl} \\ MPIDI_${net_upper}_addr_t ${net};" fi net_index=`expr $net_index + 1` done ch4_nets_array_sz=$net_index # Check whether --enable-ch4-netmod-inline was given. if test "${enable_ch4_netmod_inline+set}" = set; then : enableval=$enable_ch4_netmod_inline; else enable_ch4_netmod_inline=yes fi # Check whether --enable-ch4-netmod-direct was given. if test "${enable_ch4_netmod_direct+set}" = set; then : enableval=$enable_ch4_netmod_direct; fi if test "$ch4_nets_array_sz" = "1" && (test "$enable_ch4_netmod_inline" = "yes" || test "$enable_ch4_netmod_direct" = "yes") ; then if echo "$CPPFLAGS" | $FGREP -e "\<-DNETMOD_INLINE=__netmod_inline_${ch4_netmods}__\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-DNETMOD_INLINE=__netmod_inline_${ch4_netmods}__', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-DNETMOD_INLINE=__netmod_inline_${ch4_netmods}__', appending" >&5 CPPFLAGS="$CPPFLAGS -DNETMOD_INLINE=__netmod_inline_${ch4_netmods}__" fi fi # Check whether --enable-ch4-direct was given. if test "${enable_ch4_direct+set}" = set; then : enableval=$enable_ch4_direct; else enable_ch4_direct=default fi # Check whether --enable-ch4-shm-inline was given. if test "${enable_ch4_shm_inline+set}" = set; then : enableval=$enable_ch4_shm_inline; else enable_ch4_shm_inline=yes fi # Check whether --enable-ch4-shm-direct was given. if test "${enable_ch4_shm_direct+set}" = set; then : enableval=$enable_ch4_shm_direct; fi if test "$enable_ch4_shm_inline" = "yes" || test "$enable_ch4_shm_direct" = "yes" ; then if echo "$CPPFLAGS" | $FGREP -e "\<-DSHM_INLINE=__shm_inline_${ch4_shm}__\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-DSHM_INLINE=__shm_inline_${ch4_shm}__', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-DSHM_INLINE=__shm_inline_${ch4_shm}__', appending" >&5 CPPFLAGS="$CPPFLAGS -DSHM_INLINE=__shm_inline_${ch4_shm}__" fi fi # setup shared memory defaults # TODO: shm submodules should be chosen with similar configure option as that used for netmod. # We can add it when a shm submodule is added. Now we just simply set POSIX. ch4_shm=posix export ch4_shm # setup default direct communication routine if test "${enable_ch4_direct}" = "default" ; then # ucx can only choose direct netmod because it does not handle any_src # receive when both nemod and shared memory are used. if test "${ch4_netmods}" = "ucx" ; then enable_ch4_direct=netmod else enable_ch4_direct=auto fi fi if test "$enable_ch4_direct" != "auto" -a "$enable_ch4_direct" != "netmod"; then as_fn_error $? "Direct comunication option ${enable_ch4_direct} is unknown" "$LINENO" 5 fi if test "$enable_ch4_direct" = "auto" ; then # This variable can be set either when CH4 controls the data transfer routine # or when the netmod doesn't want to implement its own locality information $as_echo "#define MPIDI_BUILD_CH4_LOCALITY_INFO 1" >>confdefs.h elif test "$enable_ch4_direct" = "netmod" ; then $as_echo "#define MPIDI_CH4_DIRECT_NETMOD 1" >>confdefs.h fi fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4 ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_netmod_ucx if test -z "$BUILD_CH4_TRUE"; then : for net in $ch4_netmods ; do case $net in #( ucx) : build_ch4_netmod_ucx=yes ;; #( *) : ;; esac if test $net = "ucx" ; then $as_echo "#define HAVE_CH4_NETMOD_UCX 1" >>confdefs.h if test "$build_ch4_locality_info" != "yes" ; then $as_echo "#define MPIDI_BUILD_CH4_LOCALITY_INFO 1" >>confdefs.h build_ch4_locality_info="yes" fi fi done fi if test "X$build_ch4_netmod_ucx" = "Xyes"; then BUILD_CH4_NETMOD_UCX_TRUE= BUILD_CH4_NETMOD_UCX_FALSE='#' else BUILD_CH4_NETMOD_UCX_TRUE='#' BUILD_CH4_NETMOD_UCX_FALSE= fi # Check whether --with-ch4-netmod-ucx-args was given. if test "${with_ch4_netmod_ucx_args+set}" = set; then : withval=$with_ch4_netmod_ucx_args; ucx_netmod_args=$withval else ucx_netmod_args= fi SAVE_IFS=$IFS IFS=':' args_array=$ucx_netmod_args do_am_only=false echo "Parsing Arguments for OFI Netmod" for arg in $args_array; do case ${arg} in am-only) do_am_only=true echo " ---> CH4::UCX Disable native tagged and RMA communication : $arg" esac done IFS=$SAVE_IFS if test "$do_am_only" = "true"; then { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling native UCX tagged and RMA communication" >&5 $as_echo "$as_me: Disabling native UCX tagged and RMA communication" >&6;} if echo "$CPPFLAGS" | $FGREP -e "\<-DMPICH_UCX_AM_ONLY\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-DMPICH_UCX_AM_ONLY', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-DMPICH_UCX_AM_ONLY', appending" >&5 CPPFLAGS="$CPPFLAGS -DMPICH_UCX_AM_ONLY" fi fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_netmod_ucx ## begin expansion of PAC_SUBCFG_PREREQ_src_pm ## end expansion of PAC_SUBCFG_PREREQ_src_pm ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_shm_stubshm if test -z "$BUILD_CH4_TRUE"; then : for shm in $ch4_shm ; do case $shm in #( stubshm) : build_ch4_shm_stubshm=yes ;; #( *) : ;; esac done fi if test "X$build_ch4_shm_stubshm" = "Xyes"; then BUILD_SHM_STUBSHM_TRUE= BUILD_SHM_STUBSHM_FALSE='#' else BUILD_SHM_STUBSHM_TRUE='#' BUILD_SHM_STUBSHM_FALSE= fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_shm_stubshm ## begin expansion of PAC_SUBCFG_PREREQ_src_binding_fortran_use_mpi if test "X$enable_fc" = "Xyes"; then BUILD_FC_BINDING_TRUE= BUILD_FC_BINDING_FALSE='#' else BUILD_FC_BINDING_TRUE='#' BUILD_FC_BINDING_FALSE= fi ## end expansion of PAC_SUBCFG_PREREQ_src_binding_fortran_use_mpi ## begin expansion of PAC_SUBCFG_PREREQ_src_pm_gforker ## end expansion of PAC_SUBCFG_PREREQ_src_pm_gforker ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_netmod_portals4 if test -z "$BUILD_CH4_TRUE"; then : for net in $ch4_netmods ; do case $net in #( portals4) : build_ch4_netmod_portals4=yes ;; #( *) : ;; esac if test $net = "portals4" ; then $as_echo "#define HAVE_CH4_NETMOD_PORTALS4 1" >>confdefs.h # if test "$build_ch4_locality_info" != "yes" ; then # AC_DEFINE(MPIDI_BUILD_CH4_LOCALITY_INFO, 1, [CH4 should build locality info]) # build_ch4_locality_info="yes" # fi fi done fi if test "X$build_ch4_netmod_portals4" = "Xyes"; then BUILD_CH4_NETMOD_PORTALS4_TRUE= BUILD_CH4_NETMOD_PORTALS4_FALSE='#' else BUILD_CH4_NETMOD_PORTALS4_TRUE='#' BUILD_CH4_NETMOD_PORTALS4_FALSE= fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_netmod_portals4 ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_netmod_stubnm if test -z "$BUILD_CH4_TRUE"; then : for net in $ch4_netmods ; do case $net in #( stubnm) : build_ch4_netmod_stubnm=yes ;; #( *) : ;; esac done fi if test "X$build_ch4_netmod_stubnm" = "Xyes"; then BUILD_CH4_NETMOD_STUBNM_TRUE= BUILD_CH4_NETMOD_STUBNM_FALSE='#' else BUILD_CH4_NETMOD_STUBNM_TRUE='#' BUILD_CH4_NETMOD_STUBNM_FALSE= fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_netmod_stubnm ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_common_hcoll # Check whether --with-hcoll was given. if test "${with_hcoll+set}" = set; then : withval=$with_hcoll; else with_hcoll= fi # Check whether --with-hcoll-include was given. if test "${with_hcoll_include+set}" = set; then : withval=$with_hcoll_include; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-hcoll-include=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-hcoll-include=PATH expects a valid PATH" >&2;} with_hcoll_include="" ;; #( *) : ;; esac fi # Check whether --with-hcoll-lib was given. if test "${with_hcoll_lib+set}" = set; then : withval=$with_hcoll_lib; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-hcoll-lib=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-hcoll-lib=PATH expects a valid PATH" >&2;} with_hcoll_lib="" ;; #( *) : ;; esac fi # The args have been sanitized into empty/non-empty values above. # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options # taking priority if test -n "${with_hcoll_include}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_hcoll_include}\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_hcoll_include}', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_hcoll_include}', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_hcoll_include}" fi else if test -n "${with_hcoll}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_hcoll}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_hcoll}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_hcoll}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_hcoll}/include" fi fi fi if test -n "${with_hcoll_lib}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_hcoll_lib}\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_hcoll_lib}', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_hcoll_lib}', appending" >&5 LDFLAGS="$LDFLAGS -L${with_hcoll_lib}" fi else if test -n "${with_hcoll}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_hcoll}/lib\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_hcoll}/lib', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_hcoll}/lib', appending" >&5 LDFLAGS="$LDFLAGS -L${with_hcoll}/lib" fi if test -d "${with_hcoll}/lib64"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_hcoll}/lib64\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_hcoll}/lib64', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_hcoll}/lib64', appending" >&5 LDFLAGS="$LDFLAGS -L${with_hcoll}/lib64" fi fi fi fi if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` failure=no ac_fn_c_check_header_mongrel "$LINENO" "hcoll/api/hcoll_api.h" "ac_cv_header_hcoll_api_hcoll_api_h" "$ac_includes_default" if test "x$ac_cv_header_hcoll_api_hcoll_api_h" = xyes; then : else failure=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hcoll_init in -lhcoll" >&5 $as_echo_n "checking for hcoll_init in -lhcoll... " >&6; } if ${ac_cv_lib_hcoll_hcoll_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhcoll $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char hcoll_init (); int main () { return hcoll_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hcoll_hcoll_init=yes else ac_cv_lib_hcoll_hcoll_init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hcoll_hcoll_init" >&5 $as_echo "$ac_cv_lib_hcoll_hcoll_init" >&6; } if test "x$ac_cv_lib_hcoll_hcoll_init" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBHCOLL 1 _ACEOF LIBS="-lhcoll $LIBS" else failure=yes fi if test "$failure" = "no" ; then have_hcoll=yes else have_hcoll=no fi if test "${with_hcoll}" = "no" ; then have_hcoll=no; elif test "${have_hcoll}" = "yes" ; then if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lhcoll\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lhcoll', not appending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lhcoll', appending" >&5 WRAPPER_LIBS="$WRAPPER_LIBS -lhcoll" fi elif test -n "${with_hcoll}" -o -n "${with_hcoll_lib}" -o -n "${with_hcoll_include}" ; then as_fn_error $? "'hcoll/api/hcoll_api.h or libhcoll library not found.'" "$LINENO" 5 fi pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" if test "$have_hcoll" = "yes"; then BUILD_HCOLL_TRUE= BUILD_HCOLL_FALSE='#' else BUILD_HCOLL_TRUE='#' BUILD_HCOLL_FALSE= fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_common_hcoll ## begin expansion of PAC_SUBCFG_PREREQ_src_pm_remshell ## end expansion of PAC_SUBCFG_PREREQ_src_pm_remshell ## begin expansion of PAC_SUBCFG_PREREQ_src_pm_util ## end expansion of PAC_SUBCFG_PREREQ_src_pm_util ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_shm_posix if test -z "$BUILD_CH4_TRUE"; then : for shm in $ch4_shm ; do case $shm in #( posix) : build_ch4_shm_posix=yes ;; #( *) : ;; esac done # Check whether --with-ch4-shmmod-posix-args was given. if test "${with_ch4_shmmod_posix_args+set}" = set; then : withval=$with_ch4_shmmod_posix_args; posix_shmmod_args=$withval else posix_shmmod_args= fi SAVE_IFS=$IFS IFS=':' args_array=$posix_shmmod_args do_disable_lock_free_queues=false echo "Parsing Arguments for POSIX shmmod" for arg in $args_array; do case ${arg} in disable-lock-free-queues) do_disable_lock_free_queues=true echo " ---> CH4::SHM::POSIX : $arg" ;; esac done IFS=$SAVE_IFS if test "$do_disable_lock_free_queues" = "true"; then { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling POSIX shared memory lock free queues" >&5 $as_echo "$as_me: Disabling POSIX shared memory lock free queues" >&6;} else { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling POSIX shared memory lock free queues" >&5 $as_echo "$as_me: Enabling POSIX shared memory lock free queues" >&6;} if echo "$CPPFLAGS" | $FGREP -e "\<-DMPIDI_POSIX_USE_LOCK_FREE_QUEUES\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-DMPIDI_POSIX_USE_LOCK_FREE_QUEUES', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-DMPIDI_POSIX_USE_LOCK_FREE_QUEUES', appending" >&5 CPPFLAGS="$CPPFLAGS -DMPIDI_POSIX_USE_LOCK_FREE_QUEUES" fi fi # the POSIX shmmod depends on the common shm code build_mpid_common_shm=yes fi if test "X$build_ch4_shm_posix" = "Xyes"; then BUILD_SHM_POSIX_TRUE= BUILD_SHM_POSIX_FALSE='#' else BUILD_SHM_POSIX_TRUE='#' BUILD_SHM_POSIX_FALSE= fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_shm_posix ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_common_bc if test "$build_mpid_common_bc" = "yes"; then BUILD_MPID_COMMON_BC_TRUE= BUILD_MPID_COMMON_BC_FALSE='#' else BUILD_MPID_COMMON_BC_TRUE='#' BUILD_MPID_COMMON_BC_FALSE= fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_common_bc ## begin expansion of PAC_SUBCFG_PREREQ_src_pmi ## end expansion of PAC_SUBCFG_PREREQ_src_pmi ## begin expansion of PAC_SUBCFG_PREREQ_src_pmi_slurm ## end expansion of PAC_SUBCFG_PREREQ_src_pmi_slurm ## begin expansion of PAC_SUBCFG_PREREQ_src_pmi_pmi2 ## end expansion of PAC_SUBCFG_PREREQ_src_pmi_pmi2 ## begin expansion of PAC_SUBCFG_PREREQ_src_pmi_pmi2_simple ## end expansion of PAC_SUBCFG_PREREQ_src_pmi_pmi2_simple ## begin expansion of PAC_SUBCFG_PREREQ_src_pmi_bgq ## end expansion of PAC_SUBCFG_PREREQ_src_pmi_bgq ## begin expansion of PAC_SUBCFG_PREREQ_src_pmi_cray ## end expansion of PAC_SUBCFG_PREREQ_src_pmi_cray ## begin expansion of PAC_SUBCFG_PREREQ_src_pmi_simple ## end expansion of PAC_SUBCFG_PREREQ_src_pmi_simple ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3 if test "$device_name" = "ch3"; then BUILD_CH3_TRUE= BUILD_CH3_FALSE='#' else BUILD_CH3_TRUE='#' BUILD_CH3_FALSE= fi if test "x$enable_ftb" = "xyes"; then BUILD_CH3_UTIL_FTB_TRUE= BUILD_CH3_UTIL_FTB_FALSE='#' else BUILD_CH3_UTIL_FTB_TRUE='#' BUILD_CH3_UTIL_FTB_FALSE= fi if test -z "$BUILD_CH3_TRUE"; then : # Set a value for the maximum processor name. MPID_MAX_PROCESSOR_NAME=128 # code that formerly lived in setup_device.args if test -z "${device_args}" ; then device_args="nemesis" fi channel_name=`echo ${device_args} | sed -e 's/:.*$//'` # observe the [] quoting below channel_args=`echo ${device_args} | sed -e 's/^[^:]*//' -e 's/^://'` # # reset DEVICE so that it (a) always includes the channel name, and (b) does not include channel options # DEVICE="${device_name}:${channel_name}" dir=${master_top_srcdir}/src/mpid/${device_name}/channels/${channel_name} if test ! -d $dir ; then echo "ERROR: ${dir} does not exist" exit 1 fi ## TODO this code can/should be eliminated file=${dir}/setup_channel if test -f $file ; then echo sourcing $file . $file fi export channel_name export channel_args # end old setup_device code if test ! -d $srcdir/src/mpid/ch3/channels/${channel_name} ; then as_fn_error $? "Channel ${channel_name} is unknown" "$LINENO" 5 elif test ! -f $srcdir/src/mpid/ch3/channels/${channel_name}/subconfigure.m4 ; then as_fn_error $? "Channel ${channel_name} has no subconfigure.m4" "$LINENO" 5 fi # the CH3 device depends on the common NBC scheduler code build_mpid_common_sched=yes build_mpid_common_datatype=yes build_mpid_common_thread=yes fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3 ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_nemesis if test "X$device_name" = "Xch3" -a "X$channel_name" = "Xnemesis"; then BUILD_CH3_NEMESIS_TRUE= BUILD_CH3_NEMESIS_FALSE='#' else BUILD_CH3_NEMESIS_TRUE='#' BUILD_CH3_NEMESIS_FALSE= fi if test -z "$BUILD_CH3_NEMESIS_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING PREREQ FOR ch3:nemesis" >&5 $as_echo "$as_me: RUNNING PREREQ FOR ch3:nemesis" >&6;} MPID_MAX_THREAD_LEVEL=MPI_THREAD_MULTIPLE ## code that formerly lived in setup_channel.args # Variables of interest... # # $with_device - device name and arguments # $device_name - name of the device # $device_args - contains name of channel select plus an channel args # $channel_name - name of the channel # $master_top_srcdir - top-level source directory # $master_top_builddir - top-level build directory # $ac_configure_args - all arguments passed to configure if test -z "${channel_args}" ; then nemesis_networks="tcp" else nemesis_networks=`echo ${channel_args} | sed -e 's/,/ /g'` fi export nemesis_networks # the nemesis channel depends on the common shm code build_mpid_common_shm=yes fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_nemesis ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_common_shm if test "X$build_mpid_common_shm" = "Xyes"; then BUILD_MPID_COMMON_SHM_TRUE= BUILD_MPID_COMMON_SHM_FALSE='#' else BUILD_MPID_COMMON_SHM_TRUE='#' BUILD_MPID_COMMON_SHM_FALSE= fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_common_shm ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_nemesis_netmod_ofi if test -z "$BUILD_CH3_NEMESIS_TRUE"; then : for net in $nemesis_networks ; do case $net in #( ofi) : build_nemesis_netmod_ofi=yes ;; #( *) : ;; esac done fi if test "X$build_nemesis_netmod_ofi" = "Xyes"; then BUILD_NEMESIS_NETMOD_OFI_TRUE= BUILD_NEMESIS_NETMOD_OFI_FALSE='#' else BUILD_NEMESIS_NETMOD_OFI_TRUE='#' BUILD_NEMESIS_NETMOD_OFI_FALSE= fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_nemesis_netmod_ofi ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_nemesis_netmod_portals4 if test -z "$BUILD_CH3_NEMESIS_TRUE"; then : for net in $nemesis_networks ; do case $net in #( portals4) : build_nemesis_netmod_portals4=yes ;; #( *) : ;; esac done fi if test "X$build_nemesis_netmod_portals4" = "Xyes"; then BUILD_NEMESIS_NETMOD_PORTALS4_TRUE= BUILD_NEMESIS_NETMOD_PORTALS4_FALSE='#' else BUILD_NEMESIS_NETMOD_PORTALS4_TRUE='#' BUILD_NEMESIS_NETMOD_PORTALS4_FALSE= fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_nemesis_netmod_portals4 ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_nemesis_netmod_llc if test -z "$BUILD_CH3_NEMESIS_TRUE"; then : for net in $nemesis_networks ; do case $net in #( llc) : build_nemesis_netmod_llc=yes ;; #( *) : ;; esac done fi if test "X$build_nemesis_netmod_llc" = "Xyes"; then BUILD_NEMESIS_NETMOD_LLC_TRUE= BUILD_NEMESIS_NETMOD_LLC_FALSE='#' else BUILD_NEMESIS_NETMOD_LLC_TRUE='#' BUILD_NEMESIS_NETMOD_LLC_FALSE= fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_nemesis_netmod_llc ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_nemesis_netmod_tcp if test -z "$BUILD_CH3_NEMESIS_TRUE"; then : for net in $nemesis_networks ; do case $net in #( tcp) : build_nemesis_netmod_tcp=yes ;; #( *) : ;; esac done fi if test "X$build_nemesis_netmod_tcp" = "Xyes"; then BUILD_NEMESIS_NETMOD_TCP_TRUE= BUILD_NEMESIS_NETMOD_TCP_FALSE='#' else BUILD_NEMESIS_NETMOD_TCP_TRUE='#' BUILD_NEMESIS_NETMOD_TCP_FALSE= fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_nemesis_netmod_tcp ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_nemesis_netmod_mxm if test -z "$BUILD_CH3_NEMESIS_TRUE"; then : for net in $nemesis_networks ; do case $net in #( mxm) : build_nemesis_netmod_mxm=yes ;; #( *) : ;; esac done fi if test "X$build_nemesis_netmod_mxm" = "Xyes"; then BUILD_NEMESIS_NETMOD_MXM_TRUE= BUILD_NEMESIS_NETMOD_MXM_FALSE='#' else BUILD_NEMESIS_NETMOD_MXM_TRUE='#' BUILD_NEMESIS_NETMOD_MXM_FALSE= fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_nemesis_netmod_mxm ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_common_thread if test "X$build_mpid_common_thread" = "Xyes"; then BUILD_MPID_COMMON_THREAD_TRUE= BUILD_MPID_COMMON_THREAD_FALSE='#' else BUILD_MPID_COMMON_THREAD_TRUE='#' BUILD_MPID_COMMON_THREAD_FALSE= fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_common_thread ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_common_sched if test "X$build_mpid_common_sched" = "Xyes"; then BUILD_MPID_COMMON_SCHED_TRUE= BUILD_MPID_COMMON_SCHED_FALSE='#' else BUILD_MPID_COMMON_SCHED_TRUE='#' BUILD_MPID_COMMON_SCHED_FALSE= fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_common_sched ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_sock if test "X$device_name" = "Xch3" -a "X$channel_name" = "Xsock"; then BUILD_CH3_SOCK_TRUE= BUILD_CH3_SOCK_FALSE='#' else BUILD_CH3_SOCK_TRUE='#' BUILD_CH3_SOCK_FALSE= fi if test -z "$BUILD_CH3_SOCK_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING PREREQ FOR ch3:sock" >&5 $as_echo "$as_me: RUNNING PREREQ FOR ch3:sock" >&6;} # this channel depends on the sock utilities build_ch3u_sock=yes MPID_MAX_THREAD_LEVEL=MPI_THREAD_MULTIPLE MPID_CH3I_CH_HCOLL_BCOL="basesmuma,basesmuma,ptpcoll" # code that formerly lived in setup_args # # Variables of interest... # # $with_device - device name and arguments # $device_name - name of the device # $device_args - contains name of channel select plus an channel args # $channel_name - name of the channel # $master_top_srcdir - top-level source directory # $master_top_builddir - top-level build directory # $ac_configure_args - all arguments passed to configure # found_dir="no" for sys in $devsubsystems ; do if test "$sys" = "src/mpid/common/sock" ; then found_dir="yes" break fi done if test "$found_dir" = "no" ; then devsubsystems="$devsubsystems src/mpid/common/sock" fi # FIXME: The setup file has a weird requirement that it needs to be # run *before* the MPICH device (not the setup directory itself) is # configured, but the actual configuration of the associated directory # needs to be done *after* the device is configured. file=${master_top_srcdir}/src/mpid/common/sock/setup if test -f $file ; then echo sourcing $file . $file fi pathlist="" pathlist="$pathlist src/mpid/${device_name}/channels/${channel_name}/include" pathlist="$pathlist src/util/wrappers" ## TODO delete this -I junk ##for path in $pathlist ; do ## CPPFLAGS="$CPPFLAGS -I${master_top_builddir}/${path} -I${master_top_srcdir}/${path}" ##done # Adding this prevents the pesky "(strerror() not found)" problem, which can be # very frustrating in the sock code, the most likely to receive an error code # from the system. [goodell@ 2008-01-10] for ac_func in strerror do : ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" if test "x$ac_cv_func_strerror" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRERROR 1 _ACEOF fi done # Check whether --enable-sock-debug was given. if test "${enable_sock_debug+set}" = set; then : enableval=$enable_sock_debug; else enable_sock_debug=no fi if test "$enable_sock_debug" = yes ; then $as_echo "#define USE_SOCK_VERIFY 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" if test "x$ac_cv_func_poll" = xyes; then : pac_cv_have_func_poll=yes else pac_cv_have_func_poll=no fi if test "X$pac_cv_have_func_poll" = "Xno" ; then if test -f /sw/include/sys/poll.h ; then CFLAGS="$CFLAGS -I/sw/include" LIBS="$LIBS -L/sw/lib -lpoll" else as_fn_error $? "This device requires the poll function" "$LINENO" 5 fi fi for ac_header in assert.h errno.h fcntl.h limits.h netdb.h netinet/in.h netinet/tcp.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in poll.h stdlib.h sys/param.h sys/poll.h sys/types.h sys/uio.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct poll is defined" >&5 $as_echo_n "checking if struct poll is defined... " >&6; }; cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined(HAVE_POLL_H) #include #endif #if defined(HAVE_SYS_POLL_H) #include #endif int main () { struct pollfd pollfd; pollfd.fd = -1; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "This device requires the poll function" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking if a simple program using poll() can be compiled" >&5 $as_echo_n "checking if a simple program using poll() can be compiled... " >&6; }; cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined(HAVE_POLL_H) #include #endif #if defined(HAVE_SYS_POLL_H) #include #endif int main () { struct pollfd pollfds[2]; int n_fds; pollfds[0].fd = -1; pollfds[1].fd = -1; n_fds = poll(pollfds, 2, -1); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "This device requires the poll function" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bit fields work in ip.h" >&5 $as_echo_n "checking whether bit fields work in ip.h... " >&6; }; cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { int i; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } bit_fields=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } bit_fields=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test "$bit_fields" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding -D_NO_BITFIELDS to CFLAGS" >&5 $as_echo "Adding -D_NO_BITFIELDS to CFLAGS" >&6; } CFLAGS="$CFLAGS -D_NO_BITFIELDS" fi for ac_func in gethostname do : ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" if test "x$ac_cv_func_gethostname" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GETHOSTNAME 1 _ACEOF fi done if test "$ac_cv_func_gethostname" = "yes" ; then # Do we need to declare gethostname? { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostname needs a declaration" >&5 $as_echo_n "checking whether gethostname needs a declaration... " >&6; } if ${pac_cv_func_decl_gethostname+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include void (*fptr)(void) = (void(*)(void))gethostname; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_func_decl_gethostname=no else pac_cv_func_decl_gethostname=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_gethostname" >&5 $as_echo "$pac_cv_func_decl_gethostname" >&6; } if test "$pac_cv_func_decl_gethostname" = "yes" ; then cat >>confdefs.h <<_ACEOF #define NEEDS_GETHOSTNAME_DECL 1 _ACEOF fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 $as_echo_n "checking for library containing socket... " >&6; } if ${ac_cv_search_socket+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char socket (); int main () { return socket (); ; return 0; } _ACEOF for ac_lib in '' socket; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_socket=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_socket+:} false; then : break fi done if ${ac_cv_search_socket+:} false; then : else ac_cv_search_socket=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 $as_echo "$ac_cv_search_socket" >&6; } ac_res=$ac_cv_search_socket if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 $as_echo_n "checking for library containing gethostbyname... " >&6; } if ${ac_cv_search_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF for ac_lib in '' nsl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_gethostbyname=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_gethostbyname+:} false; then : break fi done if ${ac_cv_search_gethostbyname+:} false; then : else ac_cv_search_gethostbyname=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 $as_echo "$ac_cv_search_gethostbyname" >&6; } ac_res=$ac_cv_search_gethostbyname if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi # Check first for sys/socket.h . We check not only for existence but whether # it can be compiled (!), as we have seen some problems with this. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { int a; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_sys_socket_h=yes else ac_cv_header_sys_socket_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test "$ac_cv_header_sys_socket_h" = yes ; then $as_echo "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h fi # Check for socklen_t . If undefined, define it as int # (note the conditional inclusion of sys/socket.h) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether socklen_t is defined (in sys/socket.h if present)" >&5 $as_echo_n "checking whether socklen_t is defined (in sys/socket.h if present)... " >&6; } if ${pac_cv_have_socklen_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif typedef struct { double a; int b; } socklen_t; int main () { socklen_t a;a.a=1.0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_socklen_t=no else pac_cv_have_socklen_t=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_socklen_t" >&5 $as_echo "$pac_cv_have_socklen_t" >&6; } if test "X$pac_cv_have_socklen_t" = Xno ; then $as_echo "#define socklen_t int" >>confdefs.h fi fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_sock ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_util_sock # channels (like ch3:sock) that want to use this package should set build_ch3u_sock=yes if test "x$build_ch3u_sock" = "xyes"; then BUILD_CH3_UTIL_SOCK_TRUE= BUILD_CH3_UTIL_SOCK_FALSE='#' else BUILD_CH3_UTIL_SOCK_TRUE='#' BUILD_CH3_UTIL_SOCK_FALSE= fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_util_sock ## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_netmod_ofi if test -z "$BUILD_CH4_TRUE"; then : for net in $ch4_netmods ; do case $net in #( ofi) : build_ch4_netmod_ofi=yes ;; #( *) : ;; esac if test $net = "ofi" ; then $as_echo "#define HAVE_CH4_NETMOD_OFI 1" >>confdefs.h $as_echo "#define MPIDI_BUILD_CH4_LOCALITY_INFO 1" >>confdefs.h fi done # Check whether --with-ch4-ofi-direct-provider was given. if test "${with_ch4_ofi_direct_provider+set}" = set; then : withval=$with_ch4_ofi_direct_provider; ofi_direct_provider=$withval else ofi_direct_provider= fi if test "x$ofi_direct_provider" != "x"; then { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling OFI netmod direct provider" >&5 $as_echo "$as_me: Enabling OFI netmod direct provider" >&6;} fi fi if test "X$build_ch4_netmod_ofi" = "Xyes"; then BUILD_CH4_NETMOD_OFI_TRUE= BUILD_CH4_NETMOD_OFI_FALSE='#' else BUILD_CH4_NETMOD_OFI_TRUE='#' BUILD_CH4_NETMOD_OFI_FALSE= fi ## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_netmod_ofi # ---------------------------------------------------------------------------- # Set default library names if names haven't already been provided MPILIBNAME=${MPILIBNAME:-"mpi"} PMPILIBNAME_set=no if test -n "$PMPILIBNAME" ; then PMPILIBNAME_set=yes fi PMPILIBNAME=${PMPILIBNAME:-"p$MPILIBNAME"} # Note that the name for this library may be updated after we check for # enable_shmem # Fortran names are set later. # We use a different library for the C++ wrappers to avoid problems when # creating shared libraries if test -z "$MPICXXLIBNAME" ; then MPICXXLIBNAME="${MPILIBNAME}cxx" ; fi if test -z "$MPIFCLIBNAME" ; then MPIFCLIBNAME="${MPILIBNAME}fort" ; fi export MPICXXLIBNAME export MPIFCLIBNAME # We'll set FORTRAN_BINDING to 1 if we support Fortran FORTRAN_BINDING=0 # enable-fast # strip off multiple options, separated by commas save_IFS="$IFS" IFS="," for option in $enable_fast ; do case "$option" in O*) enable_fast_opts=$option ;; ndebug) enable_fast_ndebug=yes ;; all|yes) enable_fast_ndebug=yes enable_fast_opts=O2 ;; none|no) enable_fast_ndebug=no enable_fast_opts=O0 ;; *) IFS="$save_IFS" { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value $option for --enable-fast" >&5 $as_echo "$as_me: WARNING: Unknown value $option for --enable-fast" >&2;} IFS="," ;; esac done IFS="$save_IFS" if test -n "$enable_fast_opts" ; then # Allows O where can be [0-9] or ' '. opt_flags=`echo $enable_fast_opts | sed -e 's%\(O0-9 \)%\1%g'` if test -n "$opt_flags" ; then MPI_DEFAULT_COPTS="-$enable_fast_opts" MPI_DEFAULT_CXXOPTS="-$enable_fast_opts" MPI_DEFAULT_FOPTS="-$enable_fast_opts" MPI_DEFAULT_FCOPTS="-$enable_fast_opts" else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value $enable_fast_opts for --enable-fast" >&5 $as_echo "$as_me: WARNING: Unknown value $enable_fast_opts for --enable-fast" >&2;} fi fi if test "$enable_fast_ndebug" = "yes" ; then CFLAGS="$CFLAGS -DNDEBUG -DNVALGRIND" CXXFLAGS="$CXXFLAGS -DNDEBUG -DNVALGRIND" # MPICH does NOT assume any preprocessing support from the Fortran compiler, # so no Fortran files contain any preprocessing statements. # Don't set FFLAGS or FCFLAGS with any -D. fi # error-checking # Change default into the specific value of the default if test "$enable_error_checking" = "yes" ; then enable_error_checking=all fi # mpir_ext.h needs the variable HAVE_ERROR_CHECKING to have the value 0 or 1 HAVE_ERROR_CHECKING=0 case "$enable_error_checking" in no) # if error checking has been disabled, then automatically disable the error # checking tests in the test suite ac_configure_args="${ac_configure_args} --disable-checkerrors" ;; all|runtime) error_checking_kind=`echo $enable_error_checking | \ tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` error_checking_kind=MPID_ERROR_LEVEL_$error_checking_kind cat >>confdefs.h <<_ACEOF #define HAVE_ERROR_CHECKING $error_checking_kind _ACEOF HAVE_ERROR_CHECKING=1 ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value $enable_error_checking for enable-error-checking" >&5 $as_echo "$as_me: WARNING: Unknown value $enable_error_checking for enable-error-checking" >&2;} ;; esac # permit @HAVE_ERROR_CHECKING@ substitution in mpir_ext.h # error-messages case "$enable_error_messages" in no|none) error_message_kind="MPICH_ERROR_MSG__NONE" ;; all|yes) error_message_kind="MPICH_ERROR_MSG__ALL" ;; generic) error_message_kind="MPICH_ERROR_MSG__GENERIC" ;; class) error_message_kind="MPICH_ERROR_MSG__CLASS" ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value $enable_error_messages for enable-error-messages" >&5 $as_echo "$as_me: WARNING: Unknown value $enable_error_messages for enable-error-messages" >&2;} ;; esac cat >>confdefs.h <<_ACEOF #define MPICH_ERROR_MSG_LEVEL $error_message_kind _ACEOF #error-tags if test "$enable_tag_error_bits" = "yes" ; then $as_echo "#define HAVE_TAG_ERROR_BITS 1" >>confdefs.h fi # ---------------------------------------------------------------------------- # # enable-timing and with-logging # # Still to do: add subsets: e.g., class=pt2pt,class=coll. See mpich doc # # Logging and timing are intertwined. If you select logging, you # may also need to select a timing level. If no timing is selected # but logging with rlog is selected, make "all" the default timing level. # # FIXME: make timing and logging options work more cleanly together, # particularly when other logging options are selected (e.g., logging is not # rlog). # ---------------------------------------------------------------------------- if test "X$with_logging" = "Xrlog"; then BUILD_LOGGING_RLOG_TRUE= BUILD_LOGGING_RLOG_FALSE='#' else BUILD_LOGGING_RLOG_TRUE='#' BUILD_LOGGING_RLOG_FALSE= fi collect_stats=false logging_required=false if test "$enable_timing" = "default" ; then if test "$with_logging" = "rlog" ; then enable_timing=all fi fi timing_name=$enable_timing case "$enable_timing" in no) timing_name=none ;; time) collect_stats=true ;; log|log_detailed) logging_required=true ;; yes) timing_name=all collect_stats=true logging_required=true ;; all|runtime) collect_stats=true logging_required=true ;; none|default) timing_name=none ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value $enable_timing for enable-timing" >&5 $as_echo "$as_me: WARNING: Unknown value $enable_timing for enable-timing" >&2;} enable_timing=no timing_name=none ;; esac # # The default logging package is rlog; you can get it by # specifying --with-logging or --with-logging=rlog # case $with_logging in yes) logging_name=rlog ;; no|none) logging_name=none ;; default) if test "$logging_required" = "true" ; then logging_name=rlog else logging_name=none fi ;; *) logging_name=$with_logging ;; esac # # Include the selected logging subsystem # # Choices: # 1) A subdir of src/util/logging # This directory must contain a configure which will be executed # to build the # 2) An external directory # This directory must contain # a mpilogging.h file # It may contain # a setup_logging script # a configure # # logging_subsystems= if test "$logging_name" != "none" ; then # Check for an external name (directory containing a /) hasSlash=`echo A$logging_name | sed -e 's%[^/]%%g'` if test -n "$hasSlash" ; then # Check that the external logging system is complete. # Any failure will cause configure to abort if test ! -d $logging_name ; then as_fn_error $? "External logging directory $logging_name not found. Configure aborted" "$LINENO" 5 logging_name=none elif test ! -s $logging_name/mpilogging.h ; then as_fn_error $? "External logging header $logging_name/mpilogging.h not found. Configure aborted" "$LINENO" 5 logging_name=none fi logdir=$logging_name # Force the logdir to be absolute logdir=`cd $logdir && pwd` # Switch name to "external" because that is how the MPICH # code will know it logging_name=external # Add the dir to the include paths #CPPFLAGS="$CPPFLAGS -I$logdir" CPPFLAGS="$CPPFLAGS -I$logdir" # Add to the list of external modules to setup if test -x $logdir/setup_logging ; then EXTERNAL_SETUPS="$EXTERNAL_SETUPS $logdir/setup_logging" fi else logdir=$srcdir/src/util/logging logreldir=src/util/logging/$logging_name logging_subsystems="$logging_subsystems $logreldir" for dir in $logging_name ; do if test ! -d $logdir/$dir ; then as_fn_error $? "$logdir/$dir does not exist. Configure aborted" "$LINENO" 5 logging_name=none fi done for dir in $logging_subsystems ; do if test ! -x $srcdir/$dir/configure ; then as_fn_error $? "$srcdir/$dir has no configure (required). Configure aborted" "$LINENO" 5 logging_name=none fi done fi fi # # FIXME: Logging doesn't necessarily require timing (e.g., simply logging the # sequence of routines). if test "$logging_name" != "none" ; then if test "$enable_timing" != "no" ; then if test "$enable_timing" = "default" -o "$enable_timing" = "none" ; then enable_timing=log timing_name=log fi subsystems="$subsystems $logging_subsystems" else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Timing was disabled. Logging has been disabled as well." >&5 $as_echo "$as_me: WARNING: Timing was disabled. Logging has been disabled as well." >&2;} with_logging=no logging_name=none fi else if test "$logging_required" = "true" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Timing was enabled with log option but no logging library is available. Timing has been disabled." >&5 $as_echo "$as_me: WARNING: Timing was enabled with log option but no logging library is available. Timing has been disabled." >&2;} enable_timing=no timing_name=none fi fi if test "$timing_name" != "none" ; then timing_kind=`echo $timing_name | \ tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` timing_kind=MPICH_TIMING_KIND__$timing_kind cat >>confdefs.h <<_ACEOF #define HAVE_TIMING $timing_kind _ACEOF if test "$collect_stats" = "true" ; then $as_echo "#define COLLECT_STATS 1" >>confdefs.h fi fi use_logging_variable="MPICH_LOGGING__`echo $logging_name | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`" cat >>confdefs.h <<_ACEOF #define USE_LOGGING $use_logging_variable _ACEOF # ---------------------------------------------------------------------------- # End of logging tests # ---------------------------------------------------------------------------- # ---------------------------------------------------------------------------- # Check to see if the device does not support spawn. # FIXME: This should provide the option of not building the dynamic # process routines. It could also allow us to specialize support # for all processes are members of MPI_COMM_WORLD (only one comm_world). # ---------------------------------------------------------------------------- if test "$MPID_NO_SPAWN" = yes ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The device $with_device does not support MPI dynamic process routines" >&5 $as_echo "$as_me: WARNING: The device $with_device does not support MPI dynamic process routines" >&2;} fi # MPL MPLLIBNAME=${MPLLIBNAME:-"mpl"} export MPLLIBNAME # Check whether --with-mpl-prefix was given. if test "${with_mpl_prefix+set}" = set; then : withval=$with_mpl_prefix; else with_mpl_prefix=embedded fi mplsrcdir="" mpllibdir="" mpllib="" if test "$with_mpl_prefix" = "embedded" ; then # no need for libtool versioning when embedding MPL mpl_subdir_args="--disable-versioning --enable-embedded" pac_dir="src/mpl" { $as_echo "$as_me:${as_lineno-$LINENO}: ===== configuring src/mpl =====" >&5 $as_echo "$as_me: ===== configuring src/mpl =====" >&6;} pac_abs_srcdir=`(cd $srcdir && pwd)` if test -f $pac_abs_srcdir/src/mpl/setup ; then { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/src/mpl/setup" >&5 $as_echo "$as_me: sourcing $pac_abs_srcdir/src/mpl/setup" >&6;} . $pac_abs_srcdir/src/mpl/setup fi # Adapted for MPICH from the autoconf-2.67 implementation of # AC_CONFIG_SUBDIRS. Search for "MPICH note:" for relevant commentary and # local modifications. # Remove --cache-file, --srcdir, and --disable-option-checking arguments # so they do not pile up. Otherwise relative paths (like --srcdir=.. from # make distcheck) will be incorrect. pac_sub_configure_args="$mpl_subdir_args" pac_prev= eval "set x $ac_configure_args" shift for pac_arg do if test -n "$pac_prev"; then pac_prev= continue fi case $pac_arg in -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) pac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | --c=*) ;; --config-cache | -C) ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) pac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) pac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ;; --disable-option-checking) ;; *) # MPICH note: this is a more robust version of the "precious # variable" propagation code that was present in the previous # incarnation of this macro for pac_pvar in $ac_precious_vars ; do # check if configure argument token contains the # precious variable, i.e. "name_of_prec_var=". if ( echo $pac_arg | grep "^$pac_pvar=" >/dev/null 2>&1 ) ; then # check if current precious variable is set in env eval pvar_set=\${$pac_pvar+set} if test "$pvar_set" = "set" ; then # Append 'name_of_prec_var=value_of_prec_var' # to the subconfigure arguments list, where # value_of_prec_var is fetched from the env. # this also overrides any value set on the command line eval pac_pval=\${$pac_pvar} pac_arg="$pac_pvar=$pac_pval" break fi fi done case $pac_arg in *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append pac_sub_configure_args " '$pac_arg'" ;; esac done # Always prepend --prefix to ensure using the same prefix # in subdir configurations. # MPICH note: see tt#983 for an example of why this is necessary pac_arg="--prefix=$prefix" case $pac_arg in *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac pac_sub_configure_args="'$pac_arg' $pac_sub_configure_args" # Pass --silent if test "$silent" = yes; then pac_sub_configure_args="--silent $pac_sub_configure_args" fi # Always prepend --disable-option-checking to silence warnings, since # different subdirs can have different --enable and --with options. pac_sub_configure_args="--disable-option-checking $pac_sub_configure_args" pac_popdir=`pwd` # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. test -d "$srcdir/$pac_dir" || continue # MPICH note: modified to remove the internal "_AS_*" macro usage, also # msg is already printed at top as_dir="$pac_dir"; as_fn_mkdir_p # MPICH note: we leave this internal macro reference for now. We can clone # the macro locally if this turns out to be non-portable across several autoconf # versions. It sets the following variables: ac_builddir, # ac_top_builddir_sub, ac_top_build_prefix, ac_srcdir, ac_top_srcdir, # ac_abs_top_builddir, ac_abs_builddir, ac_abs_top_srcdir, ac_abs_srcdir ac_builddir=. case "$pac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$pac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$pac_dir" # Check for guested configure; otherwise get Cygnus style configure. if test -f "$ac_srcdir/configure.gnu"; then pac_sub_configure=$ac_srcdir/configure.gnu elif test -f "$ac_srcdir/configure"; then pac_sub_configure=$ac_srcdir/configure elif test -f "$ac_srcdir/configure.ac"; then # This should be Cygnus configure. pac_sub_configure=$ac_aux_dir/configure else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $pac_dir" >&5 $as_echo "$as_me: WARNING: no configuration information is in $pac_dir" >&2;} pac_sub_configure= fi # The recursion is here. if test -n "$pac_sub_configure"; then # MPICH note: overriding the cache file on purpose to prevent strange # issues resulting from inter-dir caching pac_sub_cache_file="/dev/null" { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&5 $as_echo "$as_me: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. # MPICH note: we want to execute the provided actions, not be silent # or error out if the subconfigure succeeded/failed if eval "\$SHELL \"\$pac_sub_configure\" $pac_sub_configure_args \ --cache-file=\"\$pac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" then # restore the current dir for the provided actions cd "$pac_popdir" else # restore the current dir for the provided actions cd "$pac_popdir" as_fn_error $? "MPL configure failed" "$LINENO" 5 fi fi cd "$pac_popdir" { $as_echo "$as_me:${as_lineno-$LINENO}: ===== done with src/mpl configure =====" >&5 $as_echo "$as_me: ===== done with src/mpl configure =====" >&6;} # Check for any localdefs files. These may be created, so we # look in the local directory first. if test -f src/mpl/localdefs ; then { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing src/mpl/localdefs" >&5 $as_echo "$as_me: sourcing src/mpl/localdefs" >&6;} . src/mpl/localdefs elif test -f $pac_abs_srcdir/src/mpl/localdefs ; then { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/src/mpl/localdefs" >&5 $as_echo "$as_me: sourcing $pac_abs_srcdir/src/mpl/localdefs" >&6;} . $pac_abs_srcdir/src/mpl/localdefs fi if echo "$CPPFLAGS" | $FGREP -e "\<-I${master_top_builddir}/src/mpl/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${master_top_builddir}/src/mpl/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${master_top_builddir}/src/mpl/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${master_top_builddir}/src/mpl/include" fi if echo "$CPPFLAGS" | $FGREP -e "\<-I${use_top_srcdir}/src/mpl/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${use_top_srcdir}/src/mpl/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${use_top_srcdir}/src/mpl/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${use_top_srcdir}/src/mpl/include" fi mplsrcdir="src/mpl" mpllib="src/mpl/lib${MPLLIBNAME}.la" else # The user specified an already-installed MPL; just sanity check, don't # subconfigure it if test -s "${with_mpl_prefix}/include/mplconfig.h"; then : : else as_fn_error $? "the MPL installation in \"${with_mpl_prefix}\" appears broken" "$LINENO" 5 fi if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_mpl_prefix}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_mpl_prefix}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_mpl_prefix}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_mpl_prefix}/include" fi if echo "$WRAPPER_LIBS" | $FGREP -e "\<-l${MPLLIBNAME}\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-l${MPLLIBNAME}', not prepending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-l${MPLLIBNAME}', prepending" >&5 WRAPPER_LIBS="-l${MPLLIBNAME} $WRAPPER_LIBS" fi if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<-L${with_mpl_prefix}/lib\>" >/dev/null 2>&1; then : echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '-L${with_mpl_prefix}/lib', not appending" >&5 else echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '-L${with_mpl_prefix}/lib', appending" >&5 WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS -L${with_mpl_prefix}/lib" fi mpllibdir="-L${with_mpl_prefix}/lib" fi # OpenPA OPALIBNAME=${OPALIBNAME:-"opa"} export OPALIBNAME # Check whether --with-openpa-prefix was given. if test "${with_openpa_prefix+set}" = set; then : withval=$with_openpa_prefix; else # see if OPA is already installed on the system if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` if echo "$LIBS" | $FGREP -e "\<-l${OPALIBNAME}\>" >/dev/null 2>&1; then : echo "LIBS(='$LIBS') contains '-l${OPALIBNAME}', not prepending" >&5 else echo "LIBS(='$LIBS') does not contain '-l${OPALIBNAME}', prepending" >&5 LIBS="-l${OPALIBNAME} $LIBS" fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include "opa_primitives.h" int main () { OPA_int_t i; OPA_store_int(i,10); OPA_fetch_and_incr_int(&i,5); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : with_openpa_prefix=system else with_openpa_prefix=embedded fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" fi opasrcdir="" opalibdir="" opalib="" if test "$with_openpa_prefix" = "embedded" ; then if test -e "${use_top_srcdir}/src/openpa" ; then opasrcdir="src/openpa" opalib="src/openpa/src/lib${OPALIBNAME}.la" if echo "$CPPFLAGS" | $FGREP -e "\<-I${use_top_srcdir}/src/openpa/src\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${use_top_srcdir}/src/openpa/src', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${use_top_srcdir}/src/openpa/src', appending" >&5 CPPFLAGS="$CPPFLAGS -I${use_top_srcdir}/src/openpa/src" fi if echo "$CPPFLAGS" | $FGREP -e "\<-I${master_top_builddir}/src/openpa/src\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${master_top_builddir}/src/openpa/src', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${master_top_builddir}/src/openpa/src', appending" >&5 CPPFLAGS="$CPPFLAGS -I${master_top_builddir}/src/openpa/src" fi # OPA defaults to "auto", but in MPICH we want "auto_allow_emulation" to # easily permit using channels like ch3:sock that don't care about atomics # Check whether --with-atomic-primitives was given. if test "${with_atomic_primitives+set}" = set; then : withval=$with_atomic_primitives; else with_atomic_primitives=not_specified fi # no need for libtool versioning when embedding OPA opa_subdir_args="--disable-versioning --enable-embedded" if test "$with_atomic_primitives" = "not_specified" ; then if echo "$opa_subdir_args" | $FGREP -e "\<--with-atomic-primitives=auto_allow_emulation\>" >/dev/null 2>&1; then : echo "opa_subdir_args(='$opa_subdir_args') contains '--with-atomic-primitives=auto_allow_emulation', not appending" >&5 else echo "opa_subdir_args(='$opa_subdir_args') does not contain '--with-atomic-primitives=auto_allow_emulation', appending" >&5 opa_subdir_args="$opa_subdir_args --with-atomic-primitives=auto_allow_emulation" fi fi pac_dir="src/openpa" { $as_echo "$as_me:${as_lineno-$LINENO}: ===== configuring src/openpa =====" >&5 $as_echo "$as_me: ===== configuring src/openpa =====" >&6;} pac_abs_srcdir=`(cd $srcdir && pwd)` if test -f $pac_abs_srcdir/src/openpa/setup ; then { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/src/openpa/setup" >&5 $as_echo "$as_me: sourcing $pac_abs_srcdir/src/openpa/setup" >&6;} . $pac_abs_srcdir/src/openpa/setup fi # Adapted for MPICH from the autoconf-2.67 implementation of # AC_CONFIG_SUBDIRS. Search for "MPICH note:" for relevant commentary and # local modifications. # Remove --cache-file, --srcdir, and --disable-option-checking arguments # so they do not pile up. Otherwise relative paths (like --srcdir=.. from # make distcheck) will be incorrect. pac_sub_configure_args="$opa_subdir_args" pac_prev= eval "set x $ac_configure_args" shift for pac_arg do if test -n "$pac_prev"; then pac_prev= continue fi case $pac_arg in -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) pac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | --c=*) ;; --config-cache | -C) ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) pac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) pac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ;; --disable-option-checking) ;; *) # MPICH note: this is a more robust version of the "precious # variable" propagation code that was present in the previous # incarnation of this macro for pac_pvar in $ac_precious_vars ; do # check if configure argument token contains the # precious variable, i.e. "name_of_prec_var=". if ( echo $pac_arg | grep "^$pac_pvar=" >/dev/null 2>&1 ) ; then # check if current precious variable is set in env eval pvar_set=\${$pac_pvar+set} if test "$pvar_set" = "set" ; then # Append 'name_of_prec_var=value_of_prec_var' # to the subconfigure arguments list, where # value_of_prec_var is fetched from the env. # this also overrides any value set on the command line eval pac_pval=\${$pac_pvar} pac_arg="$pac_pvar=$pac_pval" break fi fi done case $pac_arg in *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append pac_sub_configure_args " '$pac_arg'" ;; esac done # Always prepend --prefix to ensure using the same prefix # in subdir configurations. # MPICH note: see tt#983 for an example of why this is necessary pac_arg="--prefix=$prefix" case $pac_arg in *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac pac_sub_configure_args="'$pac_arg' $pac_sub_configure_args" # Pass --silent if test "$silent" = yes; then pac_sub_configure_args="--silent $pac_sub_configure_args" fi # Always prepend --disable-option-checking to silence warnings, since # different subdirs can have different --enable and --with options. pac_sub_configure_args="--disable-option-checking $pac_sub_configure_args" pac_popdir=`pwd` # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. test -d "$srcdir/$pac_dir" || continue # MPICH note: modified to remove the internal "_AS_*" macro usage, also # msg is already printed at top as_dir="$pac_dir"; as_fn_mkdir_p # MPICH note: we leave this internal macro reference for now. We can clone # the macro locally if this turns out to be non-portable across several autoconf # versions. It sets the following variables: ac_builddir, # ac_top_builddir_sub, ac_top_build_prefix, ac_srcdir, ac_top_srcdir, # ac_abs_top_builddir, ac_abs_builddir, ac_abs_top_srcdir, ac_abs_srcdir ac_builddir=. case "$pac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$pac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$pac_dir" # Check for guested configure; otherwise get Cygnus style configure. if test -f "$ac_srcdir/configure.gnu"; then pac_sub_configure=$ac_srcdir/configure.gnu elif test -f "$ac_srcdir/configure"; then pac_sub_configure=$ac_srcdir/configure elif test -f "$ac_srcdir/configure.ac"; then # This should be Cygnus configure. pac_sub_configure=$ac_aux_dir/configure else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $pac_dir" >&5 $as_echo "$as_me: WARNING: no configuration information is in $pac_dir" >&2;} pac_sub_configure= fi # The recursion is here. if test -n "$pac_sub_configure"; then # MPICH note: overriding the cache file on purpose to prevent strange # issues resulting from inter-dir caching pac_sub_cache_file="/dev/null" { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&5 $as_echo "$as_me: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. # MPICH note: we want to execute the provided actions, not be silent # or error out if the subconfigure succeeded/failed if eval "\$SHELL \"\$pac_sub_configure\" $pac_sub_configure_args \ --cache-file=\"\$pac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" then # restore the current dir for the provided actions cd "$pac_popdir" else # restore the current dir for the provided actions cd "$pac_popdir" as_fn_error $? "OpenPA configure failed" "$LINENO" 5 fi fi cd "$pac_popdir" { $as_echo "$as_me:${as_lineno-$LINENO}: ===== done with src/openpa configure =====" >&5 $as_echo "$as_me: ===== done with src/openpa configure =====" >&6;} # Check for any localdefs files. These may be created, so we # look in the local directory first. if test -f src/openpa/localdefs ; then { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing src/openpa/localdefs" >&5 $as_echo "$as_me: sourcing src/openpa/localdefs" >&6;} . src/openpa/localdefs elif test -f $pac_abs_srcdir/src/openpa/localdefs ; then { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/src/openpa/localdefs" >&5 $as_echo "$as_me: sourcing $pac_abs_srcdir/src/openpa/localdefs" >&6;} . $pac_abs_srcdir/src/openpa/localdefs fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Attempted to use the embedded OpenPA source tree in \"src/openpa\", but it is missing. Configuration or compilation may fail later." >&5 $as_echo "$as_me: WARNING: Attempted to use the embedded OpenPA source tree in \"src/openpa\", but it is missing. Configuration or compilation may fail later." >&2;} fi elif test "$with_openpa_prefix" = "system" ; then if echo "$WRAPPER_LIBS" | $FGREP -e "\<-l${OPALIBNAME}\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-l${OPALIBNAME}', not prepending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-l${OPALIBNAME}', prepending" >&5 WRAPPER_LIBS="-l${OPALIBNAME} $WRAPPER_LIBS" fi elif test "$with_openpa_prefix" = "no" ; then # The user doesn't want to use OPA. This may or may not cause MPICH to # fail to configure/build, depending on many other factors. : else # The user specified an already-installed OPA; just sanity check, don't # subconfigure it if test -s "${with_openpa_prefix}/include/opa_primitives.h" -a -s "${with_openpa_prefix}/include/opa_config.h"; then : : else as_fn_error $? "the OpenPA installation in \"${with_openpa_prefix}\" appears broken" "$LINENO" 5 fi if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_openpa_prefix}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_openpa_prefix}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_openpa_prefix}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_openpa_prefix}/include" fi if echo "$WRAPPER_LIBS" | $FGREP -e "\<-l${OPALIBNAME}\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-l${OPALIBNAME}', not prepending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-l${OPALIBNAME}', prepending" >&5 WRAPPER_LIBS="-l${OPALIBNAME} $WRAPPER_LIBS" fi if test -d ${with_openpa_prefix}/lib64 ; then if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<-L${with_openpa_prefix}/lib64\>" >/dev/null 2>&1; then : echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '-L${with_openpa_prefix}/lib64', not appending" >&5 else echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '-L${with_openpa_prefix}/lib64', appending" >&5 WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS -L${with_openpa_prefix}/lib64" fi opalibdir="-L${with_openpa_prefix}/lib64" else opalibdir="-L${with_openpa_prefix}/lib" fi if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<-L${with_openpa_prefix}/lib\>" >/dev/null 2>&1; then : echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '-L${with_openpa_prefix}/lib', not appending" >&5 else echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '-L${with_openpa_prefix}/lib', appending" >&5 WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS -L${with_openpa_prefix}/lib" fi fi # Izem # Check whether --enable-izem was given. if test "${enable_izem+set}" = set; then : enableval=$enable_izem; else enable_izem=no fi # strip off multiple options, separated by commas save_IFS="$IFS" IFS="," for option in $enable_izem ; do case "$option" in sync) izem_sync=yes ;; queue) izem_queue=yes ;; atomic) izem_atomic=yes ;; yes|all) izem_sync=yes izem_queue=yes izem_atomic=yes ;; no|none) ;; *) as_fn_error $? "Unknown value $option for enable-izem" "$LINENO" 5 ;; esac done IFS="$save_IFS" if test "$izem_sync" = "yes" ; then $as_echo "#define ENABLE_IZEM_SYNC 1" >>confdefs.h fi if test "$izem_queue" = "yes" ; then $as_echo "#define ENABLE_IZEM_QUEUE 1" >>confdefs.h fi if test "$izem_atomic" = "yes" ; then $as_echo "#define ENABLE_IZEM_ATOMIC 1" >>confdefs.h fi ZMLIBNAME=${ZMLIBNAME:-"zm"} export ZMLIBNAME # Check whether --with-zm-prefix was given. if test "${with_zm_prefix+set}" = set; then : withval=$with_zm_prefix; else with_zm_prefix=no fi zmsrcdir="" zmlibdir="" zmlib="" if test "$enable_izem" != "no" && test "$enable_izem" != "none"; then if test "$with_zm_prefix" = "yes" || test "$with_zm_prefix" = "embedded"; then if test -e "${use_top_srcdir}/src/izem" ; then zm_subdir_args="--enable-embedded" pac_dir="src/izem" { $as_echo "$as_me:${as_lineno-$LINENO}: ===== configuring src/izem =====" >&5 $as_echo "$as_me: ===== configuring src/izem =====" >&6;} pac_abs_srcdir=`(cd $srcdir && pwd)` if test -f $pac_abs_srcdir/src/izem/setup ; then { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/src/izem/setup" >&5 $as_echo "$as_me: sourcing $pac_abs_srcdir/src/izem/setup" >&6;} . $pac_abs_srcdir/src/izem/setup fi # Adapted for MPICH from the autoconf-2.67 implementation of # AC_CONFIG_SUBDIRS. Search for "MPICH note:" for relevant commentary and # local modifications. # Remove --cache-file, --srcdir, and --disable-option-checking arguments # so they do not pile up. Otherwise relative paths (like --srcdir=.. from # make distcheck) will be incorrect. pac_sub_configure_args="$zm_subdir_args" pac_prev= eval "set x $ac_configure_args" shift for pac_arg do if test -n "$pac_prev"; then pac_prev= continue fi case $pac_arg in -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) pac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | --c=*) ;; --config-cache | -C) ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) pac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) pac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ;; --disable-option-checking) ;; *) # MPICH note: this is a more robust version of the "precious # variable" propagation code that was present in the previous # incarnation of this macro for pac_pvar in $ac_precious_vars ; do # check if configure argument token contains the # precious variable, i.e. "name_of_prec_var=". if ( echo $pac_arg | grep "^$pac_pvar=" >/dev/null 2>&1 ) ; then # check if current precious variable is set in env eval pvar_set=\${$pac_pvar+set} if test "$pvar_set" = "set" ; then # Append 'name_of_prec_var=value_of_prec_var' # to the subconfigure arguments list, where # value_of_prec_var is fetched from the env. # this also overrides any value set on the command line eval pac_pval=\${$pac_pvar} pac_arg="$pac_pvar=$pac_pval" break fi fi done case $pac_arg in *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append pac_sub_configure_args " '$pac_arg'" ;; esac done # Always prepend --prefix to ensure using the same prefix # in subdir configurations. # MPICH note: see tt#983 for an example of why this is necessary pac_arg="--prefix=$prefix" case $pac_arg in *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac pac_sub_configure_args="'$pac_arg' $pac_sub_configure_args" # Pass --silent if test "$silent" = yes; then pac_sub_configure_args="--silent $pac_sub_configure_args" fi # Always prepend --disable-option-checking to silence warnings, since # different subdirs can have different --enable and --with options. pac_sub_configure_args="--disable-option-checking $pac_sub_configure_args" pac_popdir=`pwd` # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. test -d "$srcdir/$pac_dir" || continue # MPICH note: modified to remove the internal "_AS_*" macro usage, also # msg is already printed at top as_dir="$pac_dir"; as_fn_mkdir_p # MPICH note: we leave this internal macro reference for now. We can clone # the macro locally if this turns out to be non-portable across several autoconf # versions. It sets the following variables: ac_builddir, # ac_top_builddir_sub, ac_top_build_prefix, ac_srcdir, ac_top_srcdir, # ac_abs_top_builddir, ac_abs_builddir, ac_abs_top_srcdir, ac_abs_srcdir ac_builddir=. case "$pac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$pac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$pac_dir" # Check for guested configure; otherwise get Cygnus style configure. if test -f "$ac_srcdir/configure.gnu"; then pac_sub_configure=$ac_srcdir/configure.gnu elif test -f "$ac_srcdir/configure"; then pac_sub_configure=$ac_srcdir/configure elif test -f "$ac_srcdir/configure.ac"; then # This should be Cygnus configure. pac_sub_configure=$ac_aux_dir/configure else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $pac_dir" >&5 $as_echo "$as_me: WARNING: no configuration information is in $pac_dir" >&2;} pac_sub_configure= fi # The recursion is here. if test -n "$pac_sub_configure"; then # MPICH note: overriding the cache file on purpose to prevent strange # issues resulting from inter-dir caching pac_sub_cache_file="/dev/null" { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&5 $as_echo "$as_me: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. # MPICH note: we want to execute the provided actions, not be silent # or error out if the subconfigure succeeded/failed if eval "\$SHELL \"\$pac_sub_configure\" $pac_sub_configure_args \ --cache-file=\"\$pac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" then # restore the current dir for the provided actions cd "$pac_popdir" else # restore the current dir for the provided actions cd "$pac_popdir" as_fn_error $? "Izem configure failed" "$LINENO" 5 fi fi cd "$pac_popdir" { $as_echo "$as_me:${as_lineno-$LINENO}: ===== done with src/izem configure =====" >&5 $as_echo "$as_me: ===== done with src/izem configure =====" >&6;} # Check for any localdefs files. These may be created, so we # look in the local directory first. if test -f src/izem/localdefs ; then { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing src/izem/localdefs" >&5 $as_echo "$as_me: sourcing src/izem/localdefs" >&6;} . src/izem/localdefs elif test -f $pac_abs_srcdir/src/izem/localdefs ; then { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/src/izem/localdefs" >&5 $as_echo "$as_me: sourcing $pac_abs_srcdir/src/izem/localdefs" >&6;} . $pac_abs_srcdir/src/izem/localdefs fi zmsrcdir="${master_top_builddir}/src/izem" zmlib="${master_top_builddir}/src/izem/src/lib${ZMLIBNAME}.la" if echo "$CPPFLAGS" | $FGREP -e "\<-I${use_top_srcdir}/src/izem/src/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${use_top_srcdir}/src/izem/src/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${use_top_srcdir}/src/izem/src/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${use_top_srcdir}/src/izem/src/include" fi if echo "$CPPFLAGS" | $FGREP -e "\<-I${master_top_builddir}/src/izem/src/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${master_top_builddir}/src/izem/src/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${master_top_builddir}/src/izem/src/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${master_top_builddir}/src/izem/src/include" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Attempted to use the embedded Izem source tree in \"src/izem\", but it is missing. Configuration or compilation may fail later." >&5 $as_echo "$as_me: WARNING: Attempted to use the embedded Izem source tree in \"src/izem\", but it is missing. Configuration or compilation may fail later." >&2;} fi elif test "$with_zm_prefix" = "system"; then # check if an Izem installation exists on this system if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` if echo "$LIBS" | $FGREP -e "\<-l${ZMLIBNAME}\>" >/dev/null 2>&1; then : echo "LIBS(='$LIBS') contains '-l${ZMLIBNAME}', not prepending" >&5 else echo "LIBS(='$LIBS') does not contain '-l${ZMLIBNAME}', prepending" >&5 LIBS="-l${ZMLIBNAME} $LIBS" fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include "lock/zm_ticket.h" int main () { zm_ticket_t lock; zm_ticket_init(&lock); zm_ticket_acquire(&lock); zm_ticket_release(&lock); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : as_fn_error $? "No usable Izem installation was found on this system" "$LINENO" 5 else if echo "$WRAPPER_LIBS" | $FGREP -e "\<-l${ZMLIBNAME}\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-l${ZMLIBNAME}', not prepending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-l${ZMLIBNAME}', prepending" >&5 WRAPPER_LIBS="-l${ZMLIBNAME} $WRAPPER_LIBS" fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" elif test "$with_zm_prefix" = "no"; then as_fn_error $? "Izem features were requested with --enable-izem but Izem was disabled." "$LINENO" 5 else # The user specified an already-installed Izem; just sanity check, don't # subconfigure it if test -s "${with_zm_prefix}/include/lock/zm_lock.h" -a -s "${with_zm_prefix}/include/cond/zm_cond.h"; then : : else as_fn_error $? "Izem headers at \"${with_zm_prefix}/include\" are missing" "$LINENO" 5 fi if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_zm_prefix}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_zm_prefix}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_zm_prefix}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_zm_prefix}/include" fi if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` if test -z "${pac_save_LDFLAGS_nesting}" ; then pac_save_LDFLAGS_nesting=0 fi eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"' pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1` if echo "$LIBS" | $FGREP -e "\<-l${ZMLIBNAME}\>" >/dev/null 2>&1; then : echo "LIBS(='$LIBS') contains '-l${ZMLIBNAME}', not prepending" >&5 else echo "LIBS(='$LIBS') does not contain '-l${ZMLIBNAME}', prepending" >&5 LIBS="-l${ZMLIBNAME} $LIBS" fi if echo "$LDFLAGS" | $FGREP -e "\<-L${with_zm_prefix}/lib\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_zm_prefix}/lib', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_zm_prefix}/lib', appending" >&5 LDFLAGS="$LDFLAGS -L${with_zm_prefix}/lib" fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include "lock/zm_ticket.h" int main () { zm_ticket_t lock; zm_ticket_init(&lock); zm_ticket_acquire(&lock); zm_ticket_release(&lock); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : else as_fn_error $? "The Izem installation at \"${with_zm_prefix}\" seems broken" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1` eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}" eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}="" if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<-L${with_zm_prefix}/lib\>" >/dev/null 2>&1; then : echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '-L${with_zm_prefix}/lib', not appending" >&5 else echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '-L${with_zm_prefix}/lib', appending" >&5 WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS -L${with_zm_prefix}/lib" fi if echo "$WRAPPER_LIBS" | $FGREP -e "\<-l${ZMLIBNAME}\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-l${ZMLIBNAME}', not prepending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-l${ZMLIBNAME}', prepending" >&5 WRAPPER_LIBS="-l${ZMLIBNAME} $WRAPPER_LIBS" fi zmlibdir="-L${with_zm_prefix}/lib" fi fi # Set NEEDSPLIB to yes if link commands need both -l$MPILIBNAME # and -lp$MPILIBNAME. NEEDSPLIB=yes if test $enable_weak_symbols = yes ; then # Turn off weak symbols if they aren't available pragma_extra_message="" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of weak symbol alias support" >&5 $as_echo_n "checking for type of weak symbol alias support... " >&6; } if ${pac_cv_prog_c_weak_symbols+:} false; then : $as_echo_n "(cached) " >&6 else # Test for weak symbol support... # We can't put # in the message because it causes autoconf to generate # incorrect code cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern int PFoo(int); #pragma weak PFoo = Foo int Foo(int a) { return a; } int main () { return PFoo(1); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : has_pragma_weak=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # # Some systems (Linux ia64 and ecc, for example), support weak symbols # only within a single object file! This tests that case. # Note that there is an extern int PFoo declaration before the # pragma. Some compilers require this in order to make the weak symbol # externally visible. if test "$has_pragma_weak" = yes ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern int PFoo(int); #pragma weak PFoo = Foo int Foo(int); int Foo(int a) { return a; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } # START of PUSHVAL if ${pac_stk_LIBS_level+:} false; then : as_fn_arith $pac_stk_LIBS_level + 1 && pac_stk_LIBS_level=$as_val else pac_stk_LIBS_level=0 fi eval "pac_stk_LIBS_$pac_stk_LIBS_level=\$LIBS" if test "x$pac_stk_LIBS_level" = x0; then : eval pac_FirstSavedValueOf_LIBS=\$pac_stk_LIBS_$pac_stk_LIBS_level fi eval pac_LastSavedValueOf_LIBS=\$pac_stk_LIBS_$pac_stk_LIBS_level # END of PUSHVAL LIBS="pac_conftest.$OBJEXT $pac_FirstSavedValueOf_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern int PFoo(int); int main(int argc, char **argv) { return PFoo(0);} _ACEOF if ac_fn_c_try_link "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern int PFoo(int); #pragma weak PFoo = Foo int Foo(int); int Foo(int a) { return a; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } # START of PUSHVAL if ${pac_stk_LIBS_level+:} false; then : as_fn_arith $pac_stk_LIBS_level + 1 && pac_stk_LIBS_level=$as_val else pac_stk_LIBS_level=0 fi eval "pac_stk_LIBS_$pac_stk_LIBS_level=\$LIBS" if test "x$pac_stk_LIBS_level" = x0; then : eval pac_FirstSavedValueOf_LIBS=\$pac_stk_LIBS_$pac_stk_LIBS_level fi eval pac_LastSavedValueOf_LIBS=\$pac_stk_LIBS_$pac_stk_LIBS_level # END of PUSHVAL LIBS="pac_conftest.$OBJEXT $pac_FirstSavedValueOf_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern int Foo(int); int PFoo(int a) { return a+1;} int main(int argc, char **argv) { return Foo(0);} _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_cv_prog_c_weak_symbols="pragma weak" else has_pragma_weak=0 pragma_extra_message="pragma weak accepted but does not work (probably creates two non-weak entries)" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # START of POPVAL if ${pac_stk_LIBS_level+:} false; then : if test "x$pac_stk_LIBS_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of LIBS\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of LIBS\"" >&2;} else eval LIBS=\$pac_stk_LIBS_$pac_stk_LIBS_level as_fn_arith $pac_stk_LIBS_level - 1 && pac_stk_LIBS_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of LIBS\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of LIBS\"" >&2;} fi # END of POPVAL rm -f pac_conftest.$OBJEXT else has_pragma_weak=0 pragma_extra_message="pragma weak accepted but does not work (probably creates two non-weak entries)" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else has_pragma_weak=0 pragma_extra_message="pragma weak accepted but does not work (probably creates two non-weak entries)" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # START of POPVAL if ${pac_stk_LIBS_level+:} false; then : if test "x$pac_stk_LIBS_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of LIBS\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of LIBS\"" >&2;} else eval LIBS=\$pac_stk_LIBS_$pac_stk_LIBS_level as_fn_arith $pac_stk_LIBS_level - 1 && pac_stk_LIBS_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of LIBS\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of LIBS\"" >&2;} fi # END of POPVAL rm -f pac_conftest.$OBJEXT else has_pragma_weak=0 pragma_extra_message="pragma weak accepted but does not work (probably creates two non-weak entries)" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test -z "$pac_cv_prog_c_weak_symbols" ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern int PFoo(int); #pragma _HP_SECONDARY_DEF Foo PFoo int Foo(int a) { return a; } int main () { return PFoo(1); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_cv_prog_c_weak_symbols="pragma _HP_SECONDARY_DEF" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test -z "$pac_cv_prog_c_weak_symbols" ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern int PFoo(int); #pragma _CRI duplicate PFoo as Foo int Foo(int a) { return a; } int main () { return PFoo(1); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_cv_prog_c_weak_symbols="pragma _CRI duplicate x as y" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi if test -z "$pac_cv_prog_c_weak_symbols" ; then pac_cv_prog_c_weak_symbols="no" fi if test -n "$pragma_extra_message" ; then echo $pragma_extra_message fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_c_weak_symbols" >&5 $as_echo "$pac_cv_prog_c_weak_symbols" >&6; } if test "$pac_cv_prog_c_weak_symbols" != "no" ; then case "$pac_cv_prog_c_weak_symbols" in "pragma weak") $as_echo "#define HAVE_PRAGMA_WEAK 1" >>confdefs.h ;; "pragma _HP") $as_echo "#define HAVE_PRAGMA_HP_SEC_DEF 1" >>confdefs.h ;; "pragma _CRI") $as_echo "#define HAVE_PRAGMA_CRI_DUP 1" >>confdefs.h ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ ((weak)) allowed" >&5 $as_echo_n "checking whether __attribute__ ((weak)) allowed... " >&6; } if ${pac_cv_attr_weak+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(int) __attribute__ ((weak)); int main () { int a; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_attr_weak=yes else pac_cv_attr_weak=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_attr_weak" >&5 $as_echo "$pac_cv_attr_weak" >&6; } # Note that being able to compile with weak_import doesn't mean that # it works. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ ((weak_import)) allowed" >&5 $as_echo_n "checking whether __attribute__ ((weak_import)) allowed... " >&6; } if ${pac_cv_attr_weak_import+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(int) __attribute__ ((weak_import)); int main () { int a; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_attr_weak_import=yes else pac_cv_attr_weak_import=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_attr_weak_import" >&5 $as_echo "$pac_cv_attr_weak_import" >&6; } # Check if the alias option for weak attributes is allowed { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((weak,alias(...))) allowed" >&5 $as_echo_n "checking whether __attribute__((weak,alias(...))) allowed... " >&6; } if ${pac_cv_attr_weak_alias+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "${pac_save_CFLAGS_nesting}" ; then pac_save_CFLAGS_nesting=0 fi eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"' pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1` # force an error exit if the weak attribute isn't understood CFLAGS=-Werror cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int __foo(int a){return 0;} int foo(int) __attribute__((weak,alias("__foo"))); int main () { int a; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_attr_weak_alias=yes else pac_cv_attr_weak_alias=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Restore original CFLAGS pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1` eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}" eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}="" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_attr_weak_alias" >&5 $as_echo "$pac_cv_attr_weak_alias" >&6; } if test "$pac_cv_attr_weak_alias" = "yes" ; then $as_echo "#define HAVE_WEAK_ATTRIBUTE 1" >>confdefs.h fi if test "$pac_cv_prog_c_weak_symbols" = "no" -a "$pac_cv_attr_weak_alias" = "no" ; then enable_weak_symbols=no else : fi fi if test $enable_weak_symbols = "yes" ; then $as_echo "#define USE_WEAK_SYMBOLS 1" >>confdefs.h NEEDSPLIB=no # Check for the ability to support multiple weak symbols if test "$pac_cv_prog_c_weak_symbols" = "pragma weak" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiple weak symbol support" >&5 $as_echo_n "checking for multiple weak symbol support... " >&6; } if ${pac_cv_prog_c_multiple_weak_symbols+:} false; then : $as_echo_n "(cached) " >&6 else # Test for multiple weak symbol support... cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern int PFoo(int); extern int PFoo_(int); extern int pfoo_(int); #pragma weak PFoo = Foo #pragma weak PFoo_ = Foo #pragma weak pfoo_ = Foo int Foo(int); int Foo(a) { return a; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } # START of PUSHVAL if ${pac_stk_LIBS_level+:} false; then : as_fn_arith $pac_stk_LIBS_level + 1 && pac_stk_LIBS_level=$as_val else pac_stk_LIBS_level=0 fi eval "pac_stk_LIBS_$pac_stk_LIBS_level=\$LIBS" if test "x$pac_stk_LIBS_level" = x0; then : eval pac_FirstSavedValueOf_LIBS=\$pac_stk_LIBS_$pac_stk_LIBS_level fi eval pac_LastSavedValueOf_LIBS=\$pac_stk_LIBS_$pac_stk_LIBS_level # END of PUSHVAL LIBS="pac_conftest.$OBJEXT $pac_FirstSavedValueOf_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern int PFoo(int), PFoo_(int), pfoo_(int); int main() { return PFoo(0) + PFoo_(1) + pfoo_(2);} _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_cv_prog_c_multiple_weak_symbols="yes" else : fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # START of POPVAL if ${pac_stk_LIBS_level+:} false; then : if test "x$pac_stk_LIBS_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of LIBS\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of LIBS\"" >&2;} else eval LIBS=\$pac_stk_LIBS_$pac_stk_LIBS_level as_fn_arith $pac_stk_LIBS_level - 1 && pac_stk_LIBS_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of LIBS\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of LIBS\"" >&2;} fi # END of POPVAL rm -f pac_conftest.$OBJEXT else : fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_c_multiple_weak_symbols" >&5 $as_echo "$pac_cv_prog_c_multiple_weak_symbols" >&6; } if test "$pac_cv_prog_c_multiple_weak_symbols" = "yes" ; then $as_echo "#define HAVE_MULTIPLE_PRAGMA_WEAK 1" >>confdefs.h else : fi fi fi export NEEDSPLIB if test "$NEEDSPLIB" = "yes"; then BUILD_PROFILING_LIB_TRUE= BUILD_PROFILING_LIB_FALSE='#' else BUILD_PROFILING_LIB_TRUE='#' BUILD_PROFILING_LIB_FALSE= fi # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) # Check if the compiler has support for visibility, like some # versions of gcc, icc, Sun Studio cc. # Check whether --enable-visibility was given. if test "${enable_visibility+set}" = set; then : enableval=$enable_visibility; fi case ${target} in *-*-aix*|*-*-mingw*|*-*-cygwin*|*-*-hpux*) enable_visibility=no ;; esac mpich_visibility_define=0 mpich_msg="whether to enable symbol visibility" if test "$enable_visibility" = "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking $mpich_msg" >&5 $as_echo_n "checking $mpich_msg... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (disabled)" >&5 $as_echo "no (disabled)" >&6; } else CFLAGS_orig=$CFLAGS mpich_add=-fvisibility=hidden CFLAGS="$CFLAGS_orig $mpich_add -Werror" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $mpich_add" >&5 $as_echo_n "checking if $CC supports $mpich_add... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include __attribute__((visibility("default"))) int foo; int main () { fprintf(stderr, "Hello, world\n"); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if test -s conftest.err; then : $GREP -iq visibility conftest.err # If we find "visibility" in the stderr, then # assume it doesn't work if test "$?" = "0"; then : mpich_add= fi fi else mpich_add= fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$mpich_add" = ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi CFLAGS=$CFLAGS_orig VISIBILITY_CFLAGS=$mpich_add if test "$mpich_add" != "" ; then mpich_visibility_define=1 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $mpich_msg" >&5 $as_echo_n "checking $mpich_msg... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (via $mpich_add)" >&5 $as_echo "yes (via $mpich_add)" >&6; } elif test "$enable_visibility" = "yes"; then as_fn_error $? "Symbol visibility support requested but compiler does not seem to support it. Aborting" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: checking $mpich_msg" >&5 $as_echo_n "checking $mpich_msg... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (unsupported)" >&5 $as_echo "no (unsupported)" >&6; } fi unset mpich_add fi cat >>confdefs.h <<_ACEOF #define HAVE_VISIBILITY $mpich_visibility_define _ACEOF # disable visibility if building profiling library if test "$NEEDSPLIB" = "yes" ; then VISIBILITY_CFLAGS="" fi # ---------------------------------------------------------------------------- # HWLOC # ---------------------------------------------------------------------------- # Allow the user to override the hwloc location (from embedded to user # path) # HWLOC # Check whether --with-hwloc-prefix was given. if test "${with_hwloc_prefix+set}" = set; then : withval=$with_hwloc_prefix; else with_hwloc_prefix=embedded fi hwlocsrcdir="" hwloclibdir="" hwloclib="" if test "$with_hwloc_prefix" = "no" ; then have_hwloc=no elif test "$with_hwloc_prefix" = "embedded" ; then # Disable visibility when setting up hwloc if test -z "${pac_save_enable_visibility_nesting}" ; then pac_save_enable_visibility_nesting=0 fi eval pac_save_enable_visibility_${pac_save_enable_visibility_nesting}='"$enable_visibility"' pac_save_enable_visibility_nesting=`expr ${pac_save_enable_visibility_nesting} + 1` enable_visibility=no; if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then HWLOC_pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $HWLOC_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $HWLOC_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $HWLOC_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 $as_echo_n "checking for X... " >&6; } # Check whether --with-x was given. if test "${with_x+set}" = set; then : withval=$with_x; fi # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else case $x_includes,$x_libraries in #( *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : $as_echo_n "(cached) " >&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=no ac_x_libraries=no rm -f -r conftest.dir if mkdir conftest.dir; then cd conftest.dir cat >Imakefile <<'_ACEOF' incroot: @echo incroot='${INCROOT}' usrlibdir: @echo usrlibdir='${USRLIBDIR}' libdir: @echo libdir='${LIBDIR}' _ACEOF if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. for ac_var in incroot usrlibdir libdir; do eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" done # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl dylib la dll; do if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && test -f "$ac_im_libdir/libX11.$ac_extension"; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case $ac_im_incroot in /usr/include) ac_x_includes= ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; esac case $ac_im_usrlibdir in /usr/lib | /usr/lib64 | /lib | /lib64) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; esac fi cd .. rm -f -r conftest.dir fi # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include /usr/X11R7/include /usr/X11R6/include /usr/X11R5/include /usr/X11R4/include /usr/include/X11 /usr/include/X11R7 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/local/X11/include /usr/local/X11R7/include /usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include /usr/local/include/X11 /usr/local/include/X11R7 /usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 /usr/include /usr/local/include /usr/unsupported/include /usr/athena/include /usr/local/x11r5/include /usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include' if test "$ac_x_includes" = no; then # Guess where to find include files, by looking for Xlib.h. # First, try using that file with no special directory specified. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # We can compile using X headers with no special include directory. ac_x_includes= else for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Xlib.h"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest.err conftest.i conftest.$ac_ext fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { XrmInitialize () ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= else LIBS=$ac_save_LIBS for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl dylib la dll; do if test -r "$ac_dir/libX11.$ac_extension"; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no case $ac_x_includes,$ac_x_libraries in #( no,* | *,no | *\'*) # Didn't find X, or a directory has "'" in its name. ac_cv_have_x="have_x=no";; #( *) # Record where we found X for the cache. ac_cv_have_x="have_x=yes\ ac_x_includes='$ac_x_includes'\ ac_x_libraries='$ac_x_libraries'" esac fi ;; #( *) have_x=yes;; esac eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 $as_echo "$have_x" >&6; } no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes\ ac_x_includes='$x_includes'\ ac_x_libraries='$x_libraries'" { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } fi if test "x1" != "x"; then : cat <&5 $as_echo_n "checking hwloc building mode... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_mode" >&5 $as_echo "$hwloc_mode" >&6; } # Get hwloc's absolute top builddir (which may not be the same as # the real $top_builddir, because we may be building in embedded # mode). HWLOC_startdir=`pwd` if test x"src/hwloc/" != "x" -a ! -d "src/hwloc/"; then mkdir -p "src/hwloc/" fi if test x"src/hwloc/" != "x"; then cd "src/hwloc/" fi HWLOC_top_builddir=`pwd` # Get hwloc's absolute top srcdir (which may not be the same as # the real $top_srcdir, because we may be building in embedded # mode). First, go back to the startdir incase the $srcdir is # relative. cd "$HWLOC_startdir" cd "$srcdir"/src/hwloc/ HWLOC_top_srcdir="`pwd`" # Go back to where we started cd "$HWLOC_startdir" { $as_echo "$as_me:${as_lineno-$LINENO}: hwloc builddir: $HWLOC_top_builddir" >&5 $as_echo "$as_me: hwloc builddir: $HWLOC_top_builddir" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: hwloc srcdir: $HWLOC_top_srcdir" >&5 $as_echo "$as_me: hwloc srcdir: $HWLOC_top_srcdir" >&6;} if test "$HWLOC_top_builddir" != "$HWLOC_top_srcdir"; then { $as_echo "$as_me:${as_lineno-$LINENO}: Detected VPATH build" >&5 $as_echo "$as_me: Detected VPATH build" >&6;} fi # Get the version of hwloc that we are installing { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc version" >&5 $as_echo_n "checking for hwloc version... " >&6; } HWLOC_VERSION="`$HWLOC_top_srcdir/config/hwloc_get_version.sh $HWLOC_top_srcdir/VERSION`" if test "$?" != "0"; then as_fn_error $? "Cannot continue" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HWLOC_VERSION" >&5 $as_echo "$HWLOC_VERSION" >&6; } cat >>confdefs.h <<_ACEOF #define HWLOC_VERSION "$HWLOC_VERSION" _ACEOF HWLOC_VERSION_MAJOR="`$HWLOC_top_srcdir/config/hwloc_get_version.sh $HWLOC_top_srcdir/VERSION --major`" cat >>confdefs.h <<_ACEOF #define HWLOC_VERSION_MAJOR $HWLOC_VERSION_MAJOR _ACEOF HWLOC_VERSION_MINOR="`$HWLOC_top_srcdir/config/hwloc_get_version.sh $HWLOC_top_srcdir/VERSION --minor`" cat >>confdefs.h <<_ACEOF #define HWLOC_VERSION_MINOR $HWLOC_VERSION_MINOR _ACEOF HWLOC_VERSION_RELEASE="`$HWLOC_top_srcdir/config/hwloc_get_version.sh $HWLOC_top_srcdir/VERSION --release`" cat >>confdefs.h <<_ACEOF #define HWLOC_VERSION_RELEASE $HWLOC_VERSION_RELEASE _ACEOF HWLOC_VERSION_GREEK="`$HWLOC_top_srcdir/config/hwloc_get_version.sh $HWLOC_top_srcdir/VERSION --greek`" cat >>confdefs.h <<_ACEOF #define HWLOC_VERSION_GREEK "$HWLOC_VERSION_GREEK" _ACEOF HWLOC_RELEASE_DATE="`$HWLOC_top_srcdir/config/hwloc_get_version.sh $HWLOC_top_srcdir/VERSION --release-date`" # Debug mode? { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want hwloc maintainer support" >&5 $as_echo_n "checking if want hwloc maintainer support... " >&6; } hwloc_debug= # Unconditionally disable debug mode in embedded mode; if someone # asks, we can add a configure-time option for it. Disable it # now, however, because --enable-debug is not even added as an # option when configuring in embedded mode, and we wouldn't want # to hijack the enclosing application's --enable-debug configure # switch. if test "$hwloc_mode" = "embedded"; then : hwloc_debug=0 hwloc_debug_msg="disabled (embedded mode)" fi if test "$hwloc_debug" = "" -a "$enable_debug" = "yes"; then : hwloc_debug=1 hwloc_debug_msg="enabled" fi if test "$hwloc_debug" = ""; then : hwloc_debug=0 hwloc_debug_msg="disabled" fi # Grr; we use #ifndef for HWLOC_DEBUG! :-( if test "$hwloc_debug" = "1"; then : $as_echo "#define HWLOC_DEBUG 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_debug_msg" >&5 $as_echo "$hwloc_debug_msg" >&6; } # We need to set a path for header, etc files depending on whether # we're standalone or embedded. this is taken care of by HWLOC_EMBEDDED. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc directory prefix" >&5 $as_echo_n "checking for hwloc directory prefix... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: src/hwloc/" >&5 $as_echo "src/hwloc/" >&6; } # Note that private/config.h *MUST* be listed first so that it # becomes the "main" config header file. Any AC-CONFIG-HEADERS # after that (hwloc/config.h) will only have selective #defines # replaced, not the entire file. ac_config_headers="$ac_config_headers src/hwloc/include/private/autogen/config.h" ac_config_headers="$ac_config_headers src/hwloc/include/hwloc/autogen/config.h" # What prefix are we using? { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc symbol prefix" >&5 $as_echo_n "checking for hwloc symbol prefix... " >&6; } if test "$hwloc_symbol_prefix_value" = ""; then : if test "$with_hwloc_symbol_prefix" = ""; then : hwloc_symbol_prefix_value=hwloc_ else hwloc_symbol_prefix_value=$with_hwloc_symbol_prefix fi fi cat >>confdefs.h <<_ACEOF #define HWLOC_SYM_PREFIX $hwloc_symbol_prefix_value _ACEOF # Ensure to [] escape the whole next line so that we can get the # proper tr tokens hwloc_symbol_prefix_value_caps="`echo $hwloc_symbol_prefix_value | tr '[:lower:]' '[:upper:]'`" cat >>confdefs.h <<_ACEOF #define HWLOC_SYM_PREFIX_CAPS $hwloc_symbol_prefix_value_caps _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_symbol_prefix_value" >&5 $as_echo "$hwloc_symbol_prefix_value" >&6; } # Give an easy #define to know if we need to transform all the # hwloc names if test "$hwloc_symbol_prefix_value" = "hwloc_"; then : $as_echo "#define HWLOC_SYM_TRANSFORM 0" >>confdefs.h else $as_echo "#define HWLOC_SYM_TRANSFORM 1" >>confdefs.h fi # hwloc 2.0+ requires a C99 compliant compiler { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } if ${ac_cv_prog_cc_c99+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include #include // Check varargs macros. These examples are taken from C99 6.10.3.5. #define debug(...) fprintf (stderr, __VA_ARGS__) #define showlist(...) puts (#__VA_ARGS__) #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) static void test_varargs_macros (void) { int x = 1234; int y = 5678; debug ("Flag"); debug ("X = %d\n", x); showlist (The first, second, and third items.); report (x>y, "x is %d but y is %d", x, y); } // Check long long types. #define BIG64 18446744073709551615ull #define BIG32 4294967295ul #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) #if !BIG_OK your preprocessor is broken; #endif #if BIG_OK #else your preprocessor is broken; #endif static long long int bignum = -9223372036854775807LL; static unsigned long long int ubignum = BIG64; struct incomplete_array { int datasize; double data[]; }; struct named_init { int number; const wchar_t *name; double average; }; typedef const char *ccp; static inline int test_restrict (ccp restrict text) { // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\0'; ++i) continue; return 0; } // Check varargs and va_copy. static void test_varargs (const char *format, ...) { va_list args; va_start (args, format); va_list args_copy; va_copy (args_copy, args); const char *str; int number; float fnumber; while (*format) { switch (*format++) { case 's': // string str = va_arg (args_copy, const char *); break; case 'd': // int number = va_arg (args_copy, int); break; case 'f': // float fnumber = va_arg (args_copy, double); break; default: break; } } va_end (args_copy); va_end (args); } int main () { // Check bool. _Bool success = false; // Check restrict. if (test_restrict ("String literal") == 0) success = true; char *restrict newvar = "Another string"; // Check varargs. test_varargs ("s, d' f .", "string", 65, 34.234); test_varargs_macros (); // Check flexible array members. struct incomplete_array *ia = malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; // Check named initializers. struct named_init ni = { .number = 34, .name = L"Test wide string", .average = 543.34343, }; ni.number = 58; int dynamic_array[ni.number]; dynamic_array[ni.number - 1] = 543; // work around unused variable warnings return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' || dynamic_array[ni.number - 1] != 543); ; return 0; } _ACEOF for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c99=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c99" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c99" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; esac if test "x$ac_cv_prog_cc_c99" != xno; then : fi # The result of AC_PROG_CC_C99 is stored in ac_cv_prog_cc_c99 if test "x$ac_cv_prog_cc_c99" = xno ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hwloc requires a C99 compiler" >&5 $as_echo "$as_me: WARNING: hwloc requires a C99 compiler" >&2;} as_fn_error $? "Aborting." "$LINENO" 5 fi # GCC specifics. if test "x$GCC" = "xyes"; then HWLOC_GCC_CFLAGS="-Wall -Wmissing-prototypes -Wundef" HWLOC_GCC_CFLAGS="$HWLOC_GCC_CFLAGS -Wpointer-arith -Wcast-align" fi # Enample system extensions for O_DIRECTORY, fdopen, fssl, etc. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Check to see if we're producing a 32 or 64 bit executable by # checking the sizeof void*. Note that AC CHECK_SIZEOF even works # when cross compiling (!), according to the AC 2.64 docs. This # check is needed because on some systems, you can instruct the # compiler to specifically build 32 or 64 bit executables -- even # though the $target may indicate something different. # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 $as_echo_n "checking size of void *... " >&6; } if ${ac_cv_sizeof_void_p+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : else if test "$ac_cv_type_void_p" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (void *) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_void_p=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 $as_echo "$ac_cv_sizeof_void_p" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_VOID_P $ac_cv_sizeof_void_p _ACEOF # # List of components to be built, either statically or dynamically. # To be enlarged below. # hwloc_components="noos xml synthetic xml_nolibxml" # # Check OS support # { $as_echo "$as_me:${as_lineno-$LINENO}: checking which OS support to include" >&5 $as_echo_n "checking which OS support to include... " >&6; } case ${target} in powerpc64-bgq-linux*) # must be before Linux $as_echo "#define HWLOC_BGQ_SYS 1" >>confdefs.h hwloc_bgq=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: bgq" >&5 $as_echo "bgq" >&6; } hwloc_components="$hwloc_components bgq" ;; *-*-linux*) $as_echo "#define HWLOC_LINUX_SYS 1" >>confdefs.h hwloc_linux=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5 $as_echo "Linux" >&6; } hwloc_components="$hwloc_components linux" if test "x$enable_io" != xno; then hwloc_components="$hwloc_components linuxio" $as_echo "#define HWLOC_HAVE_LINUXIO 1" >>confdefs.h hwloc_linuxio_happy=yes if test x$enable_pci != xno; then $as_echo "#define HWLOC_HAVE_LINUXPCI 1" >>confdefs.h hwloc_linuxpci_happy=yes fi fi ;; *-*-irix*) $as_echo "#define HWLOC_IRIX_SYS 1" >>confdefs.h hwloc_irix=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: IRIX" >&5 $as_echo "IRIX" >&6; } # no irix component yet ;; *-*-darwin*) $as_echo "#define HWLOC_DARWIN_SYS 1" >>confdefs.h hwloc_darwin=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5 $as_echo "Darwin" >&6; } hwloc_components="$hwloc_components darwin" ;; *-*-solaris*) $as_echo "#define HWLOC_SOLARIS_SYS 1" >>confdefs.h hwloc_solaris=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5 $as_echo "Solaris" >&6; } hwloc_components="$hwloc_components solaris" ;; *-*-aix*) $as_echo "#define HWLOC_AIX_SYS 1" >>confdefs.h hwloc_aix=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX" >&5 $as_echo "AIX" >&6; } hwloc_components="$hwloc_components aix" ;; *-*-hpux*) $as_echo "#define HWLOC_HPUX_SYS 1" >>confdefs.h hwloc_hpux=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX" >&5 $as_echo "HP-UX" >&6; } hwloc_components="$hwloc_components hpux" ;; *-*-mingw*|*-*-cygwin*) $as_echo "#define HWLOC_WIN_SYS 1" >>confdefs.h hwloc_windows=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 $as_echo "Windows" >&6; } hwloc_components="$hwloc_components windows" ;; *-*-*freebsd*) $as_echo "#define HWLOC_FREEBSD_SYS 1" >>confdefs.h hwloc_freebsd=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5 $as_echo "FreeBSD" >&6; } hwloc_components="$hwloc_components freebsd" ;; *-*-*netbsd*) $as_echo "#define HWLOC_NETBSD_SYS 1" >>confdefs.h hwloc_netbsd=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: NetBSD" >&5 $as_echo "NetBSD" >&6; } hwloc_components="$hwloc_components netbsd" ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported! ($target)" >&5 $as_echo "Unsupported! ($target)" >&6; } $as_echo "#define HWLOC_UNSUPPORTED_SYS 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***********************************************************" >&5 $as_echo "$as_me: WARNING: ***********************************************************" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc does not support this system." >&5 $as_echo "$as_me: WARNING: *** hwloc does not support this system." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc will *attempt* to build (but it may not work)." >&5 $as_echo "$as_me: WARNING: *** hwloc will *attempt* to build (but it may not work)." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc run-time results may be reduced to showing just one processor," >&5 $as_echo "$as_me: WARNING: *** hwloc run-time results may be reduced to showing just one processor," >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** and binding will not be supported." >&5 $as_echo "$as_me: WARNING: *** and binding will not be supported." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have been warned." >&5 $as_echo "$as_me: WARNING: *** You have been warned." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Pausing to give you time to read this message..." >&5 $as_echo "$as_me: WARNING: *** Pausing to give you time to read this message..." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***********************************************************" >&5 $as_echo "$as_me: WARNING: ***********************************************************" >&2;} sleep 10 ;; esac # # Check CPU support # { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CPU support to include" >&5 $as_echo_n "checking which CPU support to include... " >&6; } case ${target} in i*86-*-*|x86_64-*-*|amd64-*-*) case ${ac_cv_sizeof_void_p} in 4) $as_echo "#define HWLOC_X86_32_ARCH 1" >>confdefs.h hwloc_x86_32=yes HWLOC_MS_LIB_ARCH=X86 { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86_32" >&5 $as_echo "x86_32" >&6; } ;; 8) $as_echo "#define HWLOC_X86_64_ARCH 1" >>confdefs.h hwloc_x86_64=yes HWLOC_MS_LIB_ARCH=X64 { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86_64" >&5 $as_echo "x86_64" >&6; } ;; *) $as_echo "#define HWLOC_X86_64_ARCH 1" >>confdefs.h hwloc_x86_64=yes HWLOC_MS_LIB_ARCH=X64 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown -- assuming x86_64" >&5 $as_echo "unknown -- assuming x86_64" >&6; } ;; esac ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 $as_echo "unknown" >&6; } ;; esac # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 $as_echo_n "checking size of unsigned long... " >&6; } if ${ac_cv_sizeof_unsigned_long+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : else if test "$ac_cv_type_unsigned_long" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (unsigned long) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_unsigned_long=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 $as_echo_n "checking size of unsigned int... " >&6; } if ${ac_cv_sizeof_unsigned_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : else if test "$ac_cv_type_unsigned_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (unsigned int) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_unsigned_int=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int _ACEOF # # Check for compiler attributes and visibility # { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C compiler vendor" >&5 $as_echo_n "checking for the C compiler vendor... " >&6; } if ${hwloc_cv_c_compiler_vendor+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu hwloc_check_compiler_vendor_result="unknown" # GNU is probably the most common, so check that one as soon as # possible. Intel and Android pretend to be GNU, so need to # check Intel and Android before checking for GNU. # Android if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __ANDROID__ #error "symbol __ANDROID__ not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="android" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Intel if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if !( defined(__INTEL_COMPILER) || defined(__ICC) ) #error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="intel" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # GNU if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __GNUC__ #error "symbol __GNUC__ not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="gnu" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Borland Turbo C if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __TURBOC__ #error "symbol __TURBOC__ not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="borland" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Borland C++ if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __BORLANDC__ #error "symbol __BORLANDC__ not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="borland" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Comeau C++ if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __COMO__ #error "symbol __COMO__ not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="comeau" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Compaq C/C++ # OSF part actually not needed anymore but doesn't hurt if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if !( defined(__DECC) || defined(VAXC) || defined(__VAXC) ) #error "condition defined(__DECC) || defined(VAXC) || defined(__VAXC) not met" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="compaq" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if !( defined(__osf__) && defined(__LANGUAGE_C__) ) #error "condition defined(__osf__) && defined(__LANGUAGE_C__) not met" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="compaq" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __DECCXX #error "symbol __DECCXX not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="compaq" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Cray C/C++ if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef _CRAYC #error "symbol _CRAYC not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="cray" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Diab C/C++ if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __DCC__ #error "symbol __DCC__ not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="diab" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Digital Mars if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if !( defined(__DMC__) || defined(__SC__) || defined(__ZTC__) ) #error "condition defined(__DMC__) || defined(__SC__) || defined(__ZTC__) not met" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="digital mars" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # HP ANSI C / aC++ if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if !( defined(__HP_cc) || defined(__HP_aCC) ) #error "condition defined(__HP_cc) || defined(__HP_aCC) not met" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="hp" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # IBM XL C/C++ if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if !( defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) ) #error "condition defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) not met" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="ibm" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if !( defined(_AIX) && !defined(__GNUC__) ) #error "condition defined(_AIX) && !defined(__GNUC__) not met" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="ibm" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # KAI C++ (rest in peace) if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __KCC #error "symbol __KCC not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="kai" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # LCC if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __LCC__ #error "symbol __LCC__ not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="lcc" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # MetaWare High C/C++ if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __HIGHC__ #error "symbol __HIGHC__ not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="metaware high" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Metrowerks Codewarrior if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __MWERKS__ #error "symbol __MWERKS__ not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="metrowerks" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # MIPSpro (SGI) if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if !( defined(sgi) || defined(__sgi) ) #error "condition defined(sgi) || defined(__sgi) not met" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="sgi" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # MPW C++ if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if !( defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) ) #error "condition defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) not met" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="mpw" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Microsoft if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : # Always use C compiler when checking for Microsoft, as # Visual C++ doesn't recognize .cc as a C++ file. ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if !( defined(_MSC_VER) || defined(__MSC_VER) ) #error "condition defined(_MSC_VER) || defined(__MSC_VER) not met" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="microsoft" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi # Norcroft C if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __CC_NORCROFT #error "symbol __CC_NORCROFT not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="norcroft" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Pelles C if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __POCC__ #error "symbol __POCC__ not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="pelles" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Portland Group if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __PGI #error "symbol __PGI not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="portland group" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # SAS/C if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if !( defined(SASC) || defined(__SASC) || defined(__SASC__) ) #error "condition defined(SASC) || defined(__SASC) || defined(__SASC__) not met" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="sas" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Sun Workshop C/C++ if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if !( defined(__SUNPRO_C) || defined(__SUNPRO_CC) ) #error "condition defined(__SUNPRO_C) || defined(__SUNPRO_CC) not met" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="sun" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # TenDRA C/C++ if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __TenDRA__ #error "symbol __TenDRA__ not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="tendra" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Tiny C if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __TINYC__ #error "symbol __TINYC__ not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="tiny" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # USL C if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __USLC__ #error "symbol __USLC__ not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="usl" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Watcom C++ if test "$hwloc_check_compiler_vendor_result" = "unknown"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __WATCOMC__ #error "symbol __WATCOMC__ not defined" choke me #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_check_compiler_vendor_result="watcom" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi hwloc_cv_c_compiler_vendor="$hwloc_check_compiler_vendor_result" unset hwloc_check_compiler_vendor_result ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_cv_c_compiler_vendor" >&5 $as_echo "$hwloc_cv_c_compiler_vendor" >&6; } hwloc_c_vendor="$hwloc_cv_c_compiler_vendor" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 $as_echo_n "checking for __attribute__... " >&6; } if ${hwloc_cv___attribute__+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check for the longest available __attribute__ (since gcc-2.3) */ struct foo { char a; int x[2] __attribute__ ((__packed__)); }; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__=1 else hwloc_cv___attribute__=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test "$hwloc_cv___attribute__" = "1" ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* Check for the longest available __attribute__ (since gcc-2.3) */ struct foo { char a; int x[2] __attribute__ ((__packed__)); }; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__=1 else hwloc_cv___attribute__=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi fi cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE $hwloc_cv___attribute__ _ACEOF # # Now that we know the compiler support __attribute__ let's check which kind of # attributed are supported. # if test "$hwloc_cv___attribute__" = "0" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } hwloc_cv___attribute__aligned=0 hwloc_cv___attribute__always_inline=0 hwloc_cv___attribute__cold=0 hwloc_cv___attribute__const=0 hwloc_cv___attribute__deprecated=0 hwloc_cv___attribute__format=0 hwloc_cv___attribute__hot=0 hwloc_cv___attribute__malloc=0 hwloc_cv___attribute__may_alias=0 hwloc_cv___attribute__no_instrument_function=0 hwloc_cv___attribute__nonnull=0 hwloc_cv___attribute__noreturn=0 hwloc_cv___attribute__packed=0 hwloc_cv___attribute__pure=0 hwloc_cv___attribute__sentinel=0 hwloc_cv___attribute__unused=0 hwloc_cv___attribute__warn_unused_result=0 hwloc_cv___attribute__weak_alias=0 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(aligned)" >&5 $as_echo_n "checking for __attribute__(aligned)... " >&6; } if ${hwloc_cv___attribute__aligned+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ struct foo { char text[4]; } __attribute__ ((__aligned__(8))); int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__aligned=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__aligned=0 break; fi done fi else hwloc_cv___attribute__aligned=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__aligned" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__aligned=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__aligned=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__aligned=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__aligned" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # # Ignored by PGI-6.2.5; -- recognized by output-parser # { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(always_inline)" >&5 $as_echo_n "checking for __attribute__(always_inline)... " >&6; } if ${hwloc_cv___attribute__always_inline+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (int arg) __attribute__ ((__always_inline__)); int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__always_inline=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__always_inline=0 break; fi done fi else hwloc_cv___attribute__always_inline=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__always_inline" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__always_inline=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__always_inline=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__always_inline=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__always_inline" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(cold)" >&5 $as_echo_n "checking for __attribute__(cold)... " >&6; } if ${hwloc_cv___attribute__cold+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(int arg1, int arg2) __attribute__ ((__cold__)); int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__cold=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__cold=0 break; fi done fi else hwloc_cv___attribute__cold=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__cold" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__cold=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__cold=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__cold=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__cold" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(const)" >&5 $as_echo_n "checking for __attribute__(const)... " >&6; } if ${hwloc_cv___attribute__const+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(int arg1, int arg2) __attribute__ ((__const__)); int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__const=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__const=0 break; fi done fi else hwloc_cv___attribute__const=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__const" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__const=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__const=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__const=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__const" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(deprecated)" >&5 $as_echo_n "checking for __attribute__(deprecated)... " >&6; } if ${hwloc_cv___attribute__deprecated+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(int arg1, int arg2) __attribute__ ((__deprecated__)); int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__deprecated=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__deprecated=0 break; fi done fi else hwloc_cv___attribute__deprecated=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__deprecated" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__deprecated=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__deprecated=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__deprecated=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__deprecated" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi HWLOC_ATTRIBUTE_CFLAGS= case "$hwloc_c_vendor" in gnu) HWLOC_ATTRIBUTE_CFLAGS="-Wall" ;; intel) # we want specifically the warning on format string conversion HWLOC_ATTRIBUTE_CFLAGS="-we181" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(format)" >&5 $as_echo_n "checking for __attribute__(format)... " >&6; } if ${hwloc_cv___attribute__format+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__format=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__format=0 break; fi done fi else hwloc_cv___attribute__format=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__format" = "1" -a " static int usage (int * argument); extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); static int usage (int * argument) { return this_printf (*argument, "%d", argument); /* This should produce a format warning */ } /* The autoconf-generated main-function is int main(), which produces a warning by itself */ int main(void); " != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ static int usage (int * argument); extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3))); static int usage (int * argument) { return this_printf (*argument, "%d", argument); /* This should produce a format warning */ } /* The autoconf-generated main-function is int main(), which produces a warning by itself */ int main(void); int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__format=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__format=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__format=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__format" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(hot)" >&5 $as_echo_n "checking for __attribute__(hot)... " >&6; } if ${hwloc_cv___attribute__hot+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(int arg1, int arg2) __attribute__ ((__hot__)); int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__hot=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__hot=0 break; fi done fi else hwloc_cv___attribute__hot=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__hot" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__hot=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__hot=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__hot=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__hot" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(malloc)" >&5 $as_echo_n "checking for __attribute__(malloc)... " >&6; } if ${hwloc_cv___attribute__malloc+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_STDLIB_H # include #endif int * foo(int arg1) __attribute__ ((__malloc__)); int * foo(int arg1) { return (int*) malloc(arg1); } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__malloc=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__malloc=0 break; fi done fi else hwloc_cv___attribute__malloc=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__malloc" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__malloc=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__malloc=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__malloc=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__malloc" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # # Attribute may_alias: No suitable cross-check available, that works for non-supporting compilers # Ignored by intel-9.1.045 -- turn off with -wd1292 # Ignored by PGI-6.2.5; ignore not detected due to missing cross-check # The test case is chosen to match our only use in topology-xml-*.c, and reproduces an xlc-13.1.0 bug. # { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(may_alias)" >&5 $as_echo_n "checking for __attribute__(may_alias)... " >&6; } if ${hwloc_cv___attribute__may_alias+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ struct { int i; } __attribute__ ((__may_alias__)) * p_value; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__may_alias=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__may_alias=0 break; fi done fi else hwloc_cv___attribute__may_alias=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__may_alias" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__may_alias=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__may_alias=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__may_alias=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__may_alias" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(no_instrument_function)" >&5 $as_echo_n "checking for __attribute__(no_instrument_function)... " >&6; } if ${hwloc_cv___attribute__no_instrument_function+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int * foo(int arg1) __attribute__ ((__no_instrument_function__)); int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__no_instrument_function=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__no_instrument_function=0 break; fi done fi else hwloc_cv___attribute__no_instrument_function=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__no_instrument_function" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__no_instrument_function=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__no_instrument_function=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__no_instrument_function=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__no_instrument_function" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # # Attribute nonnull: # Ignored by intel-compiler 9.1.045 -- recognized by cross-check # Ignored by PGI-6.2.5 (pgCC) -- recognized by cross-check # HWLOC_ATTRIBUTE_CFLAGS= case "$hwloc_c_vendor" in gnu) HWLOC_ATTRIBUTE_CFLAGS="-Wall" ;; intel) # we do not want to get ignored attributes warnings, but rather real warnings HWLOC_ATTRIBUTE_CFLAGS="-wd1292" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(nonnull)" >&5 $as_echo_n "checking for __attribute__(nonnull)... " >&6; } if ${hwloc_cv___attribute__nonnull+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int square(int *arg) __attribute__ ((__nonnull__)); int square(int *arg) { return *arg; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__nonnull=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__nonnull=0 break; fi done fi else hwloc_cv___attribute__nonnull=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__nonnull" = "1" -a " static int usage(int * argument); int square(int * argument) __attribute__ ((__nonnull__)); int square(int * argument) { return (*argument) * (*argument); } static int usage(int * argument) { return square( ((void*)0) ); /* This should produce an argument must be nonnull warning */ } /* The autoconf-generated main-function is int main(), which produces a warning by itself */ int main(void); " != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ static int usage(int * argument); int square(int * argument) __attribute__ ((__nonnull__)); int square(int * argument) { return (*argument) * (*argument); } static int usage(int * argument) { return square( ((void*)0) ); /* This should produce an argument must be nonnull warning */ } /* The autoconf-generated main-function is int main(), which produces a warning by itself */ int main(void); int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__nonnull=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__nonnull=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__nonnull=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__nonnull" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(noreturn)" >&5 $as_echo_n "checking for __attribute__(noreturn)... " >&6; } if ${hwloc_cv___attribute__noreturn+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_UNISTD_H # include #endif #ifdef HAVE_STDLIB_H # include #endif void fatal(int arg1) __attribute__ ((__noreturn__)); void fatal(int arg1) { exit(arg1); } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__noreturn=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__noreturn=0 break; fi done fi else hwloc_cv___attribute__noreturn=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__noreturn" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__noreturn=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__noreturn=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__noreturn=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__noreturn" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(packed)" >&5 $as_echo_n "checking for __attribute__(packed)... " >&6; } if ${hwloc_cv___attribute__packed+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ struct foo { char a; int x[2] __attribute__ ((__packed__)); }; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__packed=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__packed=0 break; fi done fi else hwloc_cv___attribute__packed=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__packed" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__packed=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__packed=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__packed=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__packed" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(pure)" >&5 $as_echo_n "checking for __attribute__(pure)... " >&6; } if ${hwloc_cv___attribute__pure+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int square(int arg) __attribute__ ((__pure__)); int square(int arg) { return arg * arg; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__pure=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__pure=0 break; fi done fi else hwloc_cv___attribute__pure=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__pure" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__pure=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__pure=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__pure=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__pure" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # # Attribute sentinel: # Ignored by the intel-9.1.045 -- recognized by cross-check # intel-10.0beta works fine # Ignored by PGI-6.2.5 (pgCC) -- recognized by output-parser and cross-check # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore) # HWLOC_ATTRIBUTE_CFLAGS= case "$hwloc_c_vendor" in gnu) HWLOC_ATTRIBUTE_CFLAGS="-Wall" ;; intel) # we do not want to get ignored attributes warnings HWLOC_ATTRIBUTE_CFLAGS="-wd1292" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(sentinel)" >&5 $as_echo_n "checking for __attribute__(sentinel)... " >&6; } if ${hwloc_cv___attribute__sentinel+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__sentinel=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__sentinel=0 break; fi done fi else hwloc_cv___attribute__sentinel=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__sentinel" = "1" -a " static int usage(int * argument); int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); static int usage(int * argument) { void * last_arg_should_be_null = argument; return my_execlp ("lala", "/home/there", last_arg_should_be_null); /* This should produce a warning */ } /* The autoconf-generated main-function is int main(), which produces a warning by itself */ int main(void); " != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ static int usage(int * argument); int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__)); static int usage(int * argument) { void * last_arg_should_be_null = argument; return my_execlp ("lala", "/home/there", last_arg_should_be_null); /* This should produce a warning */ } /* The autoconf-generated main-function is int main(), which produces a warning by itself */ int main(void); int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__sentinel=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__sentinel=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__sentinel=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__sentinel" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(unused)" >&5 $as_echo_n "checking for __attribute__(unused)... " >&6; } if ${hwloc_cv___attribute__unused+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int square(int arg1 __attribute__ ((__unused__)), int arg2); int square(int arg1, int arg2) { return arg2; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__unused=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__unused=0 break; fi done fi else hwloc_cv___attribute__unused=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__unused" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__unused=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__unused=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__unused=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__unused" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # # Attribute warn_unused_result: # Ignored by the intel-compiler 9.1.045 -- recognized by cross-check # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore) # HWLOC_ATTRIBUTE_CFLAGS= case "$hwloc_c_vendor" in gnu) HWLOC_ATTRIBUTE_CFLAGS="-Wall" ;; intel) # we do not want to get ignored attributes warnings HWLOC_ATTRIBUTE_CFLAGS="-wd1292" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(warn_unused_result)" >&5 $as_echo_n "checking for __attribute__(warn_unused_result)... " >&6; } if ${hwloc_cv___attribute__warn_unused_result+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(int arg) __attribute__ ((__warn_unused_result__)); int foo(int arg) { return arg + 3; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__warn_unused_result=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__warn_unused_result=0 break; fi done fi else hwloc_cv___attribute__warn_unused_result=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__warn_unused_result" = "1" -a " static int usage(int * argument); int foo(int arg) __attribute__ ((__warn_unused_result__)); int foo(int arg) { return arg + 3; } static int usage(int * argument) { foo (*argument); /* Should produce an unused result warning */ return 0; } /* The autoconf-generated main-function is int main(), which produces a warning by itself */ int main(void); " != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ static int usage(int * argument); int foo(int arg) __attribute__ ((__warn_unused_result__)); int foo(int arg) { return arg + 3; } static int usage(int * argument) { foo (*argument); /* Should produce an unused result warning */ return 0; } /* The autoconf-generated main-function is int main(), which produces a warning by itself */ int main(void); int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__warn_unused_result=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__warn_unused_result=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__warn_unused_result=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__warn_unused_result" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(weak_alias)" >&5 $as_echo_n "checking for __attribute__(weak_alias)... " >&6; } if ${hwloc_cv___attribute__weak_alias+:} false; then : $as_echo_n "(cached) " >&6 else # # Try to compile using the C compiler # cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(int arg); int foo(int arg) { return arg + 3; } int foo2(int arg) __attribute__ ((__weak__, __alias__("foo"))); int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # # In case we did succeed: Fine, but was this due to the # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__weak_alias=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__weak_alias=0 break; fi done fi else hwloc_cv___attribute__weak_alias=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # If the attribute is supported by both compilers, # try to recompile a *cross-check*, IFF defined. # if test '(' "$hwloc_cv___attribute__weak_alias" = "1" -a "" != "" ')' ; then ac_c_werror_flag_safe=$ac_c_werror_flag ac_c_werror_flag="yes" CFLAGS_safe=$CFLAGS CFLAGS="$CFLAGS " cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i=4711; i=usage(&i); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : hwloc_cv___attribute__weak_alias=0 else # # In case we did NOT succeed: Fine, but was this due to the # attribute being ignored? Grep for IgNoRe in conftest.err # and if found, reset the hwloc_cv__attribute__var=0 # hwloc_cv___attribute__weak_alias=1 # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) if test -s conftest.err ; then for i in ignore skip ; do $GREP -iq $i conftest.err if test "$?" = "0" ; then hwloc_cv___attribute__weak_alias=0 break; fi done fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_c_werror_flag_safe CFLAGS=$CFLAGS_safe fi fi if test "$hwloc_cv___attribute__weak_alias" = "1" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi # Now that all the values are set, define them cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_ALIGNED $hwloc_cv___attribute__aligned _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_ALWAYS_INLINE $hwloc_cv___attribute__always_inline _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_COLD $hwloc_cv___attribute__cold _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_CONST $hwloc_cv___attribute__const _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_DEPRECATED $hwloc_cv___attribute__deprecated _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_FORMAT $hwloc_cv___attribute__format _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_HOT $hwloc_cv___attribute__hot _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_MALLOC $hwloc_cv___attribute__malloc _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS $hwloc_cv___attribute__may_alias _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION $hwloc_cv___attribute__no_instrument_function _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_NONNULL $hwloc_cv___attribute__nonnull _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_NORETURN $hwloc_cv___attribute__noreturn _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_PACKED $hwloc_cv___attribute__packed _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_PURE $hwloc_cv___attribute__pure _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_SENTINEL $hwloc_cv___attribute__sentinel _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_UNUSED $hwloc_cv___attribute__unused _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT $hwloc_cv___attribute__warn_unused_result _ACEOF cat >>confdefs.h <<_ACEOF #define HWLOC_HAVE_ATTRIBUTE_WEAK_ALIAS $hwloc_cv___attribute__weak_alias _ACEOF # Be safe for systems that have ancient Autoconf's (e.g., RHEL5) # Check if the compiler has support for visibility, like some # versions of gcc, icc, Sun Studio cc. # Check whether --enable-visibility was given. if test "${enable_visibility+set}" = set; then : enableval=$enable_visibility; fi case ${target} in *-*-aix*|*-*-mingw*|*-*-cygwin*|*-*-hpux*) enable_visibility=no ;; esac hwloc_visibility_define=0 hwloc_msg="whether to enable symbol visibility" if test "$enable_visibility" = "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking $hwloc_msg" >&5 $as_echo_n "checking $hwloc_msg... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (disabled)" >&5 $as_echo "no (disabled)" >&6; } else CFLAGS_orig=$CFLAGS hwloc_add= case "$hwloc_c_vendor" in sun) # Check using Sun Studio -xldscope=hidden flag hwloc_add=-xldscope=hidden CFLAGS="$CFLAGS_orig $hwloc_add -errwarn=%all" ;; *) # Check using -fvisibility=hidden hwloc_add=-fvisibility=hidden CFLAGS="$CFLAGS_orig $hwloc_add -Werror" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $hwloc_add" >&5 $as_echo_n "checking if $CC supports $hwloc_add... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include __attribute__((visibility("default"))) int foo; int main () { fprintf(stderr, "Hello, world\n"); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if test -s conftest.err; then : $GREP -iq visibility conftest.err # If we find "visibility" in the stderr, then # assume it doesn't work if test "$?" = "0"; then : hwloc_add= fi fi else hwloc_add= fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$hwloc_add" = ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi CFLAGS=$CFLAGS_orig HWLOC_VISIBILITY_CFLAGS=$hwloc_add if test "$hwloc_add" != "" ; then hwloc_visibility_define=1 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $hwloc_msg" >&5 $as_echo_n "checking $hwloc_msg... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (via $hwloc_add)" >&5 $as_echo "yes (via $hwloc_add)" >&6; } elif test "$enable_visibility" = "yes"; then as_fn_error $? "Symbol visibility support requested but compiler does not seem to support it. Aborting" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: checking $hwloc_msg" >&5 $as_echo_n "checking $hwloc_msg... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (unsupported)" >&5 $as_echo "no (unsupported)" >&6; } fi unset hwloc_add fi cat >>confdefs.h <<_ACEOF #define HWLOC_C_HAVE_VISIBILITY $hwloc_visibility_define _ACEOF HWLOC_CFLAGS="$HWLOC_FLAGS $HWLOC_VISIBILITY_CFLAGS" if test "$HWLOC_VISIBILITY_CFLAGS" != ""; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$HWLOC_VISIBILITY_CFLAGS\" has been added to the hwloc CFLAGS" >&5 $as_echo "$as_me: WARNING: \"$HWLOC_VISIBILITY_CFLAGS\" has been added to the hwloc CFLAGS" >&2;} fi # Make sure the compiler returns an error code when function arg # count is wrong, otherwise sched_setaffinity checks may fail. HWLOC_STRICT_ARGS_CFLAGS= hwloc_args_check=0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler rejects function calls with too many arguments" >&5 $as_echo_n "checking whether the C compiler rejects function calls with too many arguments... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern int one_arg(int x); int foo(void) { return one_arg(1, 2); } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else hwloc_args_check=1 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler rejects function calls with too few arguments" >&5 $as_echo_n "checking whether the C compiler rejects function calls with too few arguments... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern int two_arg(int x, int y); int foo(void) { return two_arg(3); } int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else hwloc_args_check=`expr $hwloc_args_check + 1` { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test "$hwloc_args_check" != "2"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your C compiler does not consider incorrect argument counts to be a fatal error." >&5 $as_echo "$as_me: WARNING: Your C compiler does not consider incorrect argument counts to be a fatal error." >&2;} case "$hwloc_c_vendor" in ibm) HWLOC_STRICT_ARGS_CFLAGS="-qhalt=e" ;; intel) HWLOC_STRICT_ARGS_CFLAGS="-we140" ;; *) HWLOC_STRICT_ARGS_CFLAGS=FAIL { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please report this warning and configure using a different C compiler if possible." >&5 $as_echo "$as_me: WARNING: Please report this warning and configure using a different C compiler if possible." >&2;} ;; esac if test "$HWLOC_STRICT_ARGS_CFLAGS" != "FAIL"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configure will append '$HWLOC_STRICT_ARGS_CFLAGS' to the value of CFLAGS when needed." >&5 $as_echo "$as_me: WARNING: Configure will append '$HWLOC_STRICT_ARGS_CFLAGS' to the value of CFLAGS when needed." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Alternatively you may configure with a different compiler." >&5 $as_echo "$as_me: WARNING: Alternatively you may configure with a different compiler." >&2;} fi fi # # Now detect support # for ac_header in unistd.h do : ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" if test "x$ac_cv_header_unistd_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UNISTD_H 1 _ACEOF fi done for ac_header in dirent.h do : ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" if test "x$ac_cv_header_dirent_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DIRENT_H 1 _ACEOF fi done for ac_header in strings.h do : ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" if test "x$ac_cv_header_strings_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRINGS_H 1 _ACEOF fi done for ac_header in ctype.h do : ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" if test "x$ac_cv_header_ctype_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CTYPE_H 1 _ACEOF fi done for ac_func in strcasecmp do : ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" if test "x$ac_cv_func_strcasecmp" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRCASECMP 1 _ACEOF ac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default" if test "x$ac_cv_have_decl_strcasecmp" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function strcasecmp has a complete prototype" >&5 $as_echo_n "checking whether function strcasecmp has a complete prototype... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { strcasecmp(1,2,3,4,5,6,7,8,9,10); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_DECL_STRCASECMP 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi fi done for ac_func in strncasecmp do : ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" if test "x$ac_cv_func_strncasecmp" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRNCASECMP 1 _ACEOF ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default" if test "x$ac_cv_have_decl_strncasecmp" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function strncasecmp has a complete prototype" >&5 $as_echo_n "checking whether function strncasecmp has a complete prototype... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { strncasecmp(1,2,3,4,5,6,7,8,9,10); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_DECL_STRNCASECMP 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi fi done for ac_func in strftime do : ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" if test "x$ac_cv_func_strftime" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRFTIME 1 _ACEOF fi done for ac_func in setlocale do : ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" if test "x$ac_cv_func_setlocale" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SETLOCALE 1 _ACEOF fi done ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" if test "x$ac_cv_header_stdint_h" = xyes; then : $as_echo "#define HWLOC_HAVE_STDINT_H 1" >>confdefs.h fi for ac_header in sys/mman.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" if test "x$ac_cv_header_sys_mman_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_MMAN_H 1 _ACEOF fi done old_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0601" ac_fn_c_check_type "$LINENO" "KAFFINITY" "ac_cv_type_KAFFINITY" "#include " if test "x$ac_cv_type_KAFFINITY" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_KAFFINITY 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "PROCESSOR_CACHE_TYPE" "ac_cv_type_PROCESSOR_CACHE_TYPE" "#include " if test "x$ac_cv_type_PROCESSOR_CACHE_TYPE" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PROCESSOR_CACHE_TYPE 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "CACHE_DESCRIPTOR" "ac_cv_type_CACHE_DESCRIPTOR" "#include " if test "x$ac_cv_type_CACHE_DESCRIPTOR" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CACHE_DESCRIPTOR 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "LOGICAL_PROCESSOR_RELATIONSHIP" "ac_cv_type_LOGICAL_PROCESSOR_RELATIONSHIP" "#include " if test "x$ac_cv_type_LOGICAL_PROCESSOR_RELATIONSHIP" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LOGICAL_PROCESSOR_RELATIONSHIP 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "RelationProcessorPackage" "ac_cv_type_RelationProcessorPackage" "#include " if test "x$ac_cv_type_RelationProcessorPackage" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RELATIONPROCESSORPACKAGE 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "SYSTEM_LOGICAL_PROCESSOR_INFORMATION" "ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION" "#include " if test "x$ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "GROUP_AFFINITY" "ac_cv_type_GROUP_AFFINITY" "#include " if test "x$ac_cv_type_GROUP_AFFINITY" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GROUP_AFFINITY 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "PROCESSOR_RELATIONSHIP" "ac_cv_type_PROCESSOR_RELATIONSHIP" "#include " if test "x$ac_cv_type_PROCESSOR_RELATIONSHIP" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PROCESSOR_RELATIONSHIP 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "NUMA_NODE_RELATIONSHIP" "ac_cv_type_NUMA_NODE_RELATIONSHIP" "#include " if test "x$ac_cv_type_NUMA_NODE_RELATIONSHIP" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_NUMA_NODE_RELATIONSHIP 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "CACHE_RELATIONSHIP" "ac_cv_type_CACHE_RELATIONSHIP" "#include " if test "x$ac_cv_type_CACHE_RELATIONSHIP" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CACHE_RELATIONSHIP 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "PROCESSOR_GROUP_INFO" "ac_cv_type_PROCESSOR_GROUP_INFO" "#include " if test "x$ac_cv_type_PROCESSOR_GROUP_INFO" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PROCESSOR_GROUP_INFO 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "GROUP_RELATIONSHIP" "ac_cv_type_GROUP_RELATIONSHIP" "#include " if test "x$ac_cv_type_GROUP_RELATIONSHIP" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GROUP_RELATIONSHIP 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" "ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" "#include " if test "x$ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "PSAPI_WORKING_SET_EX_BLOCK" "ac_cv_type_PSAPI_WORKING_SET_EX_BLOCK" "#include " if test "x$ac_cv_type_PSAPI_WORKING_SET_EX_BLOCK" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PSAPI_WORKING_SET_EX_BLOCK 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "PSAPI_WORKING_SET_EX_INFORMATION" "ac_cv_type_PSAPI_WORKING_SET_EX_INFORMATION" "#include " if test "x$ac_cv_type_PSAPI_WORKING_SET_EX_INFORMATION" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PSAPI_WORKING_SET_EX_INFORMATION 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "PROCESSOR_NUMBER" "ac_cv_type_PROCESSOR_NUMBER" "#include " if test "x$ac_cv_type_PROCESSOR_NUMBER" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PROCESSOR_NUMBER 1 _ACEOF fi CPPFLAGS="$old_CPPFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5 $as_echo_n "checking for main in -lgdi32... " >&6; } if ${ac_cv_lib_gdi32_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lgdi32 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_gdi32_main=yes else ac_cv_lib_gdi32_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdi32_main" >&5 $as_echo "$ac_cv_lib_gdi32_main" >&6; } if test "x$ac_cv_lib_gdi32_main" = xyes; then : HWLOC_LIBS="-lgdi32 $HWLOC_LIBS" $as_echo "#define HAVE_LIBGDI32 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostQuitMessage in -luser32" >&5 $as_echo_n "checking for PostQuitMessage in -luser32... " >&6; } if ${ac_cv_lib_user32_PostQuitMessage+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-luser32 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char PostQuitMessage (); int main () { return PostQuitMessage (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_user32_PostQuitMessage=yes else ac_cv_lib_user32_PostQuitMessage=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_user32_PostQuitMessage" >&5 $as_echo "$ac_cv_lib_user32_PostQuitMessage" >&6; } if test "x$ac_cv_lib_user32_PostQuitMessage" = xyes; then : hwloc_have_user32="yes" fi ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" if test "x$ac_cv_header_windows_h" = xyes; then : $as_echo "#define HWLOC_HAVE_WINDOWS_H 1" >>confdefs.h fi for ac_header in sys/lgrp_user.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/lgrp_user.h" "ac_cv_header_sys_lgrp_user_h" "$ac_includes_default" if test "x$ac_cv_header_sys_lgrp_user_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_LGRP_USER_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgrp_init in -llgrp" >&5 $as_echo_n "checking for lgrp_init in -llgrp... " >&6; } if ${ac_cv_lib_lgrp_lgrp_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-llgrp $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char lgrp_init (); int main () { return lgrp_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_lgrp_lgrp_init=yes else ac_cv_lib_lgrp_lgrp_init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lgrp_lgrp_init" >&5 $as_echo "$ac_cv_lib_lgrp_lgrp_init" >&6; } if test "x$ac_cv_lib_lgrp_lgrp_init" = xyes; then : HWLOC_LIBS="-llgrp $HWLOC_LIBS" $as_echo "#define HAVE_LIBLGRP 1" >>confdefs.h ac_fn_c_check_decl "$LINENO" "lgrp_latency_cookie" "ac_cv_have_decl_lgrp_latency_cookie" "#include " if test "x$ac_cv_have_decl_lgrp_latency_cookie" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_LGRP_LATENCY_COOKIE $ac_have_decl _ACEOF fi fi done for ac_header in kstat.h do : ac_fn_c_check_header_mongrel "$LINENO" "kstat.h" "ac_cv_header_kstat_h" "$ac_includes_default" if test "x$ac_cv_header_kstat_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_KSTAT_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkstat" >&5 $as_echo_n "checking for main in -lkstat... " >&6; } if ${ac_cv_lib_kstat_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lkstat $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_kstat_main=yes else ac_cv_lib_kstat_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_main" >&5 $as_echo "$ac_cv_lib_kstat_main" >&6; } if test "x$ac_cv_lib_kstat_main" = xyes; then : HWLOC_LIBS="-lkstat $HWLOC_LIBS" $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h fi fi done ac_fn_c_check_decl "$LINENO" "fabsf" "ac_cv_have_decl_fabsf" "#include " if test "x$ac_cv_have_decl_fabsf" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_FABSF $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf in -lm" >&5 $as_echo_n "checking for fabsf in -lm... " >&6; } if ${ac_cv_lib_m_fabsf+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fabsf (); int main () { return fabsf (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_m_fabsf=yes else ac_cv_lib_m_fabsf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabsf" >&5 $as_echo "$ac_cv_lib_m_fabsf" >&6; } if test "x$ac_cv_lib_m_fabsf" = xyes; then : need_libm=yes fi fi ac_fn_c_check_decl "$LINENO" "modff" "ac_cv_have_decl_modff" "#include " if test "x$ac_cv_have_decl_modff" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_MODFF $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff in -lm" >&5 $as_echo_n "checking for modff in -lm... " >&6; } if ${ac_cv_lib_m_modff+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char modff (); int main () { return modff (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_m_modff=yes else ac_cv_lib_m_modff=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_modff" >&5 $as_echo "$ac_cv_lib_m_modff" >&6; } if test "x$ac_cv_lib_m_modff" = xyes; then : need_libm=yes fi fi if test x$need_libm = xyes; then HWLOC_LIBS="-lm $HWLOC_LIBS" fi for ac_header in picl.h do : ac_fn_c_check_header_mongrel "$LINENO" "picl.h" "ac_cv_header_picl_h" "$ac_includes_default" if test "x$ac_cv_header_picl_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PICL_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for picl_initialize in -lpicl" >&5 $as_echo_n "checking for picl_initialize in -lpicl... " >&6; } if ${ac_cv_lib_picl_picl_initialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpicl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char picl_initialize (); int main () { return picl_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_picl_picl_initialize=yes else ac_cv_lib_picl_picl_initialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_picl_picl_initialize" >&5 $as_echo "$ac_cv_lib_picl_picl_initialize" >&6; } if test "x$ac_cv_lib_picl_picl_initialize" = xyes; then : HWLOC_LIBS="-lpicl $HWLOC_LIBS" fi fi done ac_fn_c_check_decl "$LINENO" "_SC_NPROCESSORS_ONLN" "ac_cv_have_decl__SC_NPROCESSORS_ONLN" "#include " if test "x$ac_cv_have_decl__SC_NPROCESSORS_ONLN" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SC_NPROCESSORS_ONLN $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi ac_fn_c_check_decl "$LINENO" "_SC_NPROCESSORS_CONF" "ac_cv_have_decl__SC_NPROCESSORS_CONF" "#include " if test "x$ac_cv_have_decl__SC_NPROCESSORS_CONF" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SC_NPROCESSORS_CONF $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi ac_fn_c_check_decl "$LINENO" "_SC_NPROC_ONLN" "ac_cv_have_decl__SC_NPROC_ONLN" "#include " if test "x$ac_cv_have_decl__SC_NPROC_ONLN" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SC_NPROC_ONLN $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi ac_fn_c_check_decl "$LINENO" "_SC_NPROC_CONF" "ac_cv_have_decl__SC_NPROC_CONF" "#include " if test "x$ac_cv_have_decl__SC_NPROC_CONF" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SC_NPROC_CONF $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi ac_fn_c_check_decl "$LINENO" "_SC_PAGESIZE" "ac_cv_have_decl__SC_PAGESIZE" "#include " if test "x$ac_cv_have_decl__SC_PAGESIZE" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SC_PAGESIZE $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi ac_fn_c_check_decl "$LINENO" "_SC_PAGE_SIZE" "ac_cv_have_decl__SC_PAGE_SIZE" "#include " if test "x$ac_cv_have_decl__SC_PAGE_SIZE" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SC_PAGE_SIZE $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi ac_fn_c_check_decl "$LINENO" "_SC_LARGE_PAGESIZE" "ac_cv_have_decl__SC_LARGE_PAGESIZE" "#include " if test "x$ac_cv_have_decl__SC_LARGE_PAGESIZE" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SC_LARGE_PAGESIZE $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi for ac_header in mach/mach_host.h do : ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_host.h" "ac_cv_header_mach_mach_host_h" "$ac_includes_default" if test "x$ac_cv_header_mach_mach_host_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MACH_MACH_HOST_H 1 _ACEOF fi done for ac_header in mach/mach_init.h do : ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_init.h" "ac_cv_header_mach_mach_init_h" "$ac_includes_default" if test "x$ac_cv_header_mach_mach_init_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MACH_MACH_INIT_H 1 _ACEOF for ac_func in host_info do : ac_fn_c_check_func "$LINENO" "host_info" "ac_cv_func_host_info" if test "x$ac_cv_func_host_info" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_HOST_INFO 1 _ACEOF fi done fi done for ac_header in sys/param.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" if test "x$ac_cv_header_sys_param_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_PARAM_H 1 _ACEOF fi done for ac_header in sys/sysctl.h do : ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " $ac_includes_default #if HAVE_SYS_PARAM_H #include #endif " if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_SYSCTL_H 1 _ACEOF ac_fn_c_check_decl "$LINENO" "CTL_HW" "ac_cv_have_decl_CTL_HW" " #if HAVE_SYS_PARAM_H #include #endif #include " if test "x$ac_cv_have_decl_CTL_HW" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_CTL_HW $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "HW_NCPU" "ac_cv_have_decl_HW_NCPU" " #if HAVE_SYS_PARAM_H #include #endif #include " if test "x$ac_cv_have_decl_HW_NCPU" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_HW_NCPU $ac_have_decl _ACEOF fi done ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default " if test "x$ac_cv_have_decl_strtoull" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_STRTOULL $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else for ac_func in strtoull do : ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" if test "x$ac_cv_func_strtoull" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRTOULL 1 _ACEOF fi done fi # Needed for Windows in private/misc.h ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" if test "x$ac_cv_type_ssize_t" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SSIZE_T 1 _ACEOF fi ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default " if test "x$ac_cv_have_decl_snprintf" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_SNPRINTF $ac_have_decl _ACEOF # strdup and putenv are declared in windows headers but marked deprecated ac_fn_c_check_decl "$LINENO" "_strdup" "ac_cv_have_decl__strdup" "$ac_includes_default " if test "x$ac_cv_have_decl__strdup" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__STRDUP $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default " if test "x$ac_cv_have_decl__putenv" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__PUTENV $ac_have_decl _ACEOF # Could add mkdir and access for hwloc-gather-cpuid.c on Windows if test "x$hwloc_linux" != "xyes" ; then # Don't detect sysctl* on Linux because its sysctl() syscall is # long deprecated and unneeded. Some libc still expose the symbol # and raise a big warning at link time. # Do a full link test instead of just using AC_CHECK_FUNCS, which # just checks to see if the symbol exists or not. For example, # the prototype of sysctl uses u_int, which on some platforms # (such as FreeBSD) is only defined under __BSD_VISIBLE, __USE_BSD # or other similar definitions. So while the symbols "sysctl" and # "sysctlbyname" might still be available in libc (which autoconf # checks for), they might not be actually usable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 $as_echo_n "checking for sysctl... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { return sysctl(NULL,0,NULL,NULL,NULL,0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctlbyname" >&5 $as_echo_n "checking for sysctlbyname... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { return sysctlbyname(NULL,NULL,NULL,NULL,0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi ac_fn_c_check_decl "$LINENO" "getprogname" "ac_cv_have_decl_getprogname" "$ac_includes_default " if test "x$ac_cv_have_decl_getprogname" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_GETPROGNAME $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "getexecname" "ac_cv_have_decl_getexecname" "$ac_includes_default " if test "x$ac_cv_have_decl_getexecname" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_GETEXECNAME $ac_have_decl _ACEOF ac_fn_c_check_decl "$LINENO" "GetModuleFileName" "ac_cv_have_decl_GetModuleFileName" "#include " if test "x$ac_cv_have_decl_GetModuleFileName" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_GETMODULEFILENAME $ac_have_decl _ACEOF # program_invocation_name and __progname may be available but not exported in headers { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program_invocation_name" >&5 $as_echo_n "checking for program_invocation_name... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE #endif #include #include extern char *program_invocation_name; int main () { return printf("%s\n", program_invocation_name); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5 $as_echo_n "checking for __progname... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include extern char *__progname; int main () { return printf("%s\n", __progname); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext case ${target} in *-*-mingw*|*-*-cygwin*) hwloc_pid_t=HANDLE hwloc_thread_t=HANDLE ;; *) hwloc_pid_t=pid_t ac_fn_c_check_type "$LINENO" "pthread_t" "ac_cv_type_pthread_t" "#include " if test "x$ac_cv_type_pthread_t" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PTHREAD_T 1 _ACEOF hwloc_thread_t=pthread_t else : fi ;; esac cat >>confdefs.h <<_ACEOF #define hwloc_pid_t $hwloc_pid_t _ACEOF if test "x$hwloc_thread_t" != "x" ; then cat >>confdefs.h <<_ACEOF #define hwloc_thread_t $hwloc_thread_t _ACEOF fi ac_fn_c_check_decl "$LINENO" "sched_getcpu" "ac_cv_have_decl_sched_getcpu" " #ifndef _GNU_SOURCE # define _GNU_SOURCE #endif #include " if test "x$ac_cv_have_decl_sched_getcpu" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_SCHED_GETCPU $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi ac_fn_c_check_decl "$LINENO" "sched_setaffinity" "ac_cv_have_decl_sched_setaffinity" " #ifndef _GNU_SOURCE # define _GNU_SOURCE #endif #include " if test "x$ac_cv_have_decl_sched_setaffinity" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function sched_setaffinity has a complete prototype" >&5 $as_echo_n "checking whether function sched_setaffinity has a complete prototype... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE #endif #include int main () { sched_setaffinity(1,2,3,4,5,6,7,8,9,10); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_SCHED_SETAFFINITY 1" >>confdefs.h if test "$HWLOC_STRICT_ARGS_CFLAGS" = "FAIL"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Support for sched_setaffinity() requires a C compiler which" >&5 $as_echo "$as_me: WARNING: Support for sched_setaffinity() requires a C compiler which" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: considers incorrect argument counts to be a fatal error." >&5 $as_echo "$as_me: WARNING: considers incorrect argument counts to be a fatal error." >&2;} as_fn_error $? "Cannot continue." "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old prototype of sched_setaffinity" >&5 $as_echo_n "checking for old prototype of sched_setaffinity... " >&6; } hwloc_save_CFLAGS=$CFLAGS CFLAGS="$CFLAGS $HWLOC_STRICT_ARGS_CFLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE #endif #include static unsigned long mask; int main () { sched_setaffinity(0, (void*) &mask); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : $as_echo "#define HWLOC_HAVE_OLD_SCHED_SETAFFINITY 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$hwloc_save_CFLAGS fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working CPU_SET" >&5 $as_echo_n "checking for working CPU_SET... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include cpu_set_t set; int main () { CPU_ZERO(&set); CPU_SET(0, &set); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HWLOC_HAVE_CPU_SET 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working CPU_SET_S" >&5 $as_echo_n "checking for working CPU_SET_S... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include cpu_set_t *set; int main () { set = CPU_ALLOC(1024); CPU_ZERO_S(CPU_ALLOC_SIZE(1024), set); CPU_SET_S(CPU_ALLOC_SIZE(1024), 0, set); CPU_FREE(set); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HWLOC_HAVE_CPU_SET_S 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working syscall with 6 parameters" >&5 $as_echo_n "checking for working syscall with 6 parameters... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { syscall(0, 1, 2, 3, 4, 5, 6); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HWLOC_HAVE_SYSCALL 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext for ac_prog in lib do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_HWLOC_MS_LIB+:} false; then : $as_echo_n "(cached) " >&6 else case $HWLOC_MS_LIB in [\\/]* | ?:[\\/]*) ac_cv_path_HWLOC_MS_LIB="$HWLOC_MS_LIB" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_HWLOC_MS_LIB="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi HWLOC_MS_LIB=$ac_cv_path_HWLOC_MS_LIB if test -n "$HWLOC_MS_LIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HWLOC_MS_LIB" >&5 $as_echo "$HWLOC_MS_LIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$HWLOC_MS_LIB" && break done # Extract the first word of "bash", so it can be a program name with args. set dummy bash; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_BASH+:} false; then : $as_echo_n "(cached) " >&6 else case $BASH in [\\/]* | ?:[\\/]*) ac_cv_path_BASH="$BASH" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi BASH=$ac_cv_path_BASH if test -n "$BASH"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 $as_echo "$BASH" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi for ac_func in ffs do : ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs" if test "x$ac_cv_func_ffs" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FFS 1 _ACEOF ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" if test "x$ac_cv_have_decl_ffs" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function ffs has a complete prototype" >&5 $as_echo_n "checking whether function ffs has a complete prototype... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { ffs(1,2,3,4,5,6,7,8,9,10); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_DECL_FFS 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi $as_echo "#define HWLOC_HAVE_FFS 1" >>confdefs.h if ( $CC --version | grep gccfss ) >/dev/null 2>&1 ; then $as_echo "#define HWLOC_HAVE_BROKEN_FFS 1" >>confdefs.h fi fi done for ac_func in ffsl do : ac_fn_c_check_func "$LINENO" "ffsl" "ac_cv_func_ffsl" if test "x$ac_cv_func_ffsl" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FFSL 1 _ACEOF ac_fn_c_check_decl "$LINENO" "ffsl" "ac_cv_have_decl_ffsl" "$ac_includes_default" if test "x$ac_cv_have_decl_ffsl" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function ffsl has a complete prototype" >&5 $as_echo_n "checking whether function ffsl has a complete prototype... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { ffsl(1,2,3,4,5,6,7,8,9,10); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_DECL_FFSL 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi $as_echo "#define HWLOC_HAVE_FFSL 1" >>confdefs.h fi done for ac_func in fls do : ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls" if test "x$ac_cv_func_fls" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FLS 1 _ACEOF ac_fn_c_check_decl "$LINENO" "fls" "ac_cv_have_decl_fls" "$ac_includes_default" if test "x$ac_cv_have_decl_fls" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function fls has a complete prototype" >&5 $as_echo_n "checking whether function fls has a complete prototype... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { fls(1,2,3,4,5,6,7,8,9,10); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_DECL_FLS 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi $as_echo "#define HWLOC_HAVE_FLS 1" >>confdefs.h fi done for ac_func in flsl do : ac_fn_c_check_func "$LINENO" "flsl" "ac_cv_func_flsl" if test "x$ac_cv_func_flsl" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FLSL 1 _ACEOF ac_fn_c_check_decl "$LINENO" "flsl" "ac_cv_have_decl_flsl" "$ac_includes_default" if test "x$ac_cv_have_decl_flsl" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function flsl has a complete prototype" >&5 $as_echo_n "checking whether function flsl has a complete prototype... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { flsl(1,2,3,4,5,6,7,8,9,10); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_DECL_FLSL 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi $as_echo "#define HWLOC_HAVE_FLSL 1" >>confdefs.h fi done for ac_func in clz do : ac_fn_c_check_func "$LINENO" "clz" "ac_cv_func_clz" if test "x$ac_cv_func_clz" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CLZ 1 _ACEOF ac_fn_c_check_decl "$LINENO" "clz" "ac_cv_have_decl_clz" "$ac_includes_default" if test "x$ac_cv_have_decl_clz" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function clz has a complete prototype" >&5 $as_echo_n "checking whether function clz has a complete prototype... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { clz(1,2,3,4,5,6,7,8,9,10); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_DECL_CLZ 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi $as_echo "#define HWLOC_HAVE_CLZ 1" >>confdefs.h fi done for ac_func in clzl do : ac_fn_c_check_func "$LINENO" "clzl" "ac_cv_func_clzl" if test "x$ac_cv_func_clzl" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CLZL 1 _ACEOF ac_fn_c_check_decl "$LINENO" "clzl" "ac_cv_have_decl_clzl" "$ac_includes_default" if test "x$ac_cv_have_decl_clzl" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function clzl has a complete prototype" >&5 $as_echo_n "checking whether function clzl has a complete prototype... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { clzl(1,2,3,4,5,6,7,8,9,10); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_DECL_CLZL 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi $as_echo "#define HWLOC_HAVE_CLZL 1" >>confdefs.h fi done if test "$hwloc_c_vendor" != "android"; then : for ac_func in openat do : ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat" if test "x$ac_cv_func_openat" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_OPENAT 1 _ACEOF hwloc_have_openat=yes fi done fi for ac_header in malloc.h do : ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" if test "x$ac_cv_header_malloc_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MALLOC_H 1 _ACEOF fi done for ac_func in getpagesize memalign posix_memalign do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/utsname.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" if test "x$ac_cv_header_sys_utsname_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_UTSNAME_H 1 _ACEOF fi done for ac_func in uname do : ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" if test "x$ac_cv_func_uname" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UNAME 1 _ACEOF fi done if test "$hwloc_mode" != "embedded"; then : for ac_header in valgrind/valgrind.h do : ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_VALGRIND_VALGRIND_H 1 _ACEOF fi done ac_fn_c_check_decl "$LINENO" "RUNNING_ON_VALGRIND" "ac_cv_have_decl_RUNNING_ON_VALGRIND" "#include " if test "x$ac_cv_have_decl_RUNNING_ON_VALGRIND" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_RUNNING_ON_VALGRIND $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi else $as_echo "#define HAVE_DECL_RUNNING_ON_VALGRIND 0" >>confdefs.h fi for ac_header in pthread_np.h do : ac_fn_c_check_header_mongrel "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default" if test "x$ac_cv_header_pthread_np_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PTHREAD_NP_H 1 _ACEOF fi done ac_fn_c_check_decl "$LINENO" "pthread_setaffinity_np" "ac_cv_have_decl_pthread_setaffinity_np" " #include #ifdef HAVE_PTHREAD_NP_H # include #endif " if test "x$ac_cv_have_decl_pthread_setaffinity_np" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_PTHREAD_SETAFFINITY_NP $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi ac_fn_c_check_decl "$LINENO" "pthread_getaffinity_np" "ac_cv_have_decl_pthread_getaffinity_np" " #include #ifdef HAVE_PTHREAD_NP_H # include #endif " if test "x$ac_cv_have_decl_pthread_getaffinity_np" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_PTHREAD_GETAFFINITY_NP $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity" if test "x$ac_cv_func_sched_setaffinity" = xyes; then : hwloc_have_sched_setaffinity=yes fi for ac_header in sys/cpuset.h do : ac_fn_c_check_header_compile "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "#include " if test "x$ac_cv_header_sys_cpuset_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_CPUSET_H 1 _ACEOF fi done for ac_func in cpuset_setaffinity do : ac_fn_c_check_func "$LINENO" "cpuset_setaffinity" "ac_cv_func_cpuset_setaffinity" if test "x$ac_cv_func_cpuset_setaffinity" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CPUSET_SETAFFINITY 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getthrds_np" >&5 $as_echo_n "checking for library containing pthread_getthrds_np... " >&6; } if ${ac_cv_search_pthread_getthrds_np+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_getthrds_np (); int main () { return pthread_getthrds_np (); ; return 0; } _ACEOF for ac_lib in '' pthread; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_pthread_getthrds_np=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_pthread_getthrds_np+:} false; then : break fi done if ${ac_cv_search_pthread_getthrds_np+:} false; then : else ac_cv_search_pthread_getthrds_np=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getthrds_np" >&5 $as_echo "$ac_cv_search_pthread_getthrds_np" >&6; } ac_res=$ac_cv_search_pthread_getthrds_np if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" $as_echo "#define HWLOC_HAVE_PTHREAD_GETTHRDS_NP 1" >>confdefs.h fi for ac_func in cpuset_setid do : ac_fn_c_check_func "$LINENO" "cpuset_setid" "ac_cv_func_cpuset_setid" if test "x$ac_cv_func_cpuset_setid" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CPUSET_SETID 1 _ACEOF fi done # Linux libudev support if test "x$enable_libudev" != xno; then for ac_header in libudev.h do : ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default" if test "x$ac_cv_header_libudev_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBUDEV_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_device_new_from_subsystem_sysname in -ludev" >&5 $as_echo_n "checking for udev_device_new_from_subsystem_sysname in -ludev... " >&6; } if ${ac_cv_lib_udev_udev_device_new_from_subsystem_sysname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ludev $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char udev_device_new_from_subsystem_sysname (); int main () { return udev_device_new_from_subsystem_sysname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_udev_udev_device_new_from_subsystem_sysname=yes else ac_cv_lib_udev_udev_device_new_from_subsystem_sysname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_device_new_from_subsystem_sysname" >&5 $as_echo "$ac_cv_lib_udev_udev_device_new_from_subsystem_sysname" >&6; } if test "x$ac_cv_lib_udev_udev_device_new_from_subsystem_sysname" = xyes; then : HWLOC_LIBS="$HWLOC_LIBS -ludev" $as_echo "#define HWLOC_HAVE_LIBUDEV 1" >>confdefs.h fi fi done fi # PCI support via libpciaccess. NOTE: we do not support # libpci/pciutils because that library is GPL and is incompatible # with our BSD license. hwloc_pciaccess_happy=no if test "x$enable_io" != xno && test "x$enable_pci" != xno; then hwloc_pciaccess_happy=yes HWLOC_pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 $as_echo_n "checking for PCIACCESS... " >&6; } if test -n "$PKG_CONFIG"; then if test -n "$HWLOC_PCIACCESS_CFLAGS"; then HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS="$HWLOC_PCIACCESS_CFLAGS" else if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"pciaccess\""; } >&5 ($PKG_CONFIG --exists --silence-errors "pciaccess") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess" 2>/dev/null` else HWLOC_pkg_failed=yes fi fi else HWLOC_pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$HWLOC_PCIACCESS_LIBS"; then HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS="$HWLOC_PCIACCESS_LIBS" else if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"pciaccess\""; } >&5 ($PKG_CONFIG --exists --silence-errors "pciaccess") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess" 2>/dev/null` else HWLOC_pkg_failed=yes fi fi else HWLOC_pkg_failed=untried fi # Check for failure of pkg-config if test $HWLOC_pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then HWLOC_pkg_short_errors_supported=yes else HWLOC_pkg_short_errors_supported=no fi if test $HWLOC_pkg_short_errors_supported = yes; then HWLOC_PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess" 2>&1` else HWLOC_PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$HWLOC_PCIACCESS_PKG_ERRORS" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } hwloc_pciaccess_happy=no elif test $HWLOC_pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5 $as_echo "cannot check without pkg-config" >&6; } hwloc_pciaccess_happy=no else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we got good results from pkg-config, check that they # actually work (i.e., that we can link against the resulting # $LIBS). The canonical example why we do this is if # pkg-config returns 64 bit libraries but ./configure was run # with CFLAGS=-m32 LDFLAGS=-m32. pkg-config gave us valid # results, but we'll fail if we try to link. So detect that # failure now. # There are also cases on Mac where pkg-config returns paths # that do not actually exists until some magic is applied. # http://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php # So check whether we find the header as well. hwloc_cflags_save=$CFLAGS hwloc_cppflags_save=$CPPFLAGS hwloc_libs_save=$LIBS CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS" CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS" LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS" ac_fn_c_check_header_mongrel "$LINENO" "pciaccess.h" "ac_cv_header_pciaccess_h" "$ac_includes_default" if test "x$ac_cv_header_pciaccess_h" = xyes; then : ac_fn_c_check_func "$LINENO" "pci_slot_match_iterator_create" "ac_cv_func_pci_slot_match_iterator_create" if test "x$ac_cv_func_pci_slot_match_iterator_create" = xyes; then : hwloc_result=yes else hwloc_result=no fi else hwloc_result=no fi CFLAGS=$hwloc_cflags_save CPPFLAGS=$hwloc_cppflags_save LIBS=$hwloc_libs_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for final PCIACCESS support" >&5 $as_echo_n "checking for final PCIACCESS support... " >&6; } if test "$hwloc_result" = "yes"; then : HWLOC_PCIACCESS_CFLAGS=$HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS HWLOC_PCIACCESS_LIBS=$HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } : else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } hwloc_pciaccess_happy=no fi fi # Only add the REQUIRES if we got pciaccess through pkg-config. # Otherwise we don't know if pciaccess.pc is installed if test "$hwloc_pciaccess_happy" = "yes"; then : HWLOC_PCIACCESS_REQUIRES=pciaccess fi # Just for giggles, if we didn't find a pciaccess pkg-config, # just try looking for its header file and library. if test "$hwloc_pciaccess_happy" != "yes"; then : ac_fn_c_check_header_mongrel "$LINENO" "pciaccess.h" "ac_cv_header_pciaccess_h" "$ac_includes_default" if test "x$ac_cv_header_pciaccess_h" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_slot_match_iterator_create in -lpciaccess" >&5 $as_echo_n "checking for pci_slot_match_iterator_create in -lpciaccess... " >&6; } if ${ac_cv_lib_pciaccess_pci_slot_match_iterator_create+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpciaccess $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pci_slot_match_iterator_create (); int main () { return pci_slot_match_iterator_create (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pciaccess_pci_slot_match_iterator_create=yes else ac_cv_lib_pciaccess_pci_slot_match_iterator_create=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_slot_match_iterator_create" >&5 $as_echo "$ac_cv_lib_pciaccess_pci_slot_match_iterator_create" >&6; } if test "x$ac_cv_lib_pciaccess_pci_slot_match_iterator_create" = xyes; then : hwloc_pciaccess_happy=yes HWLOC_PCIACCESS_LIBS="-lpciaccess" fi fi fi if test "$hwloc_pciaccess_happy" = "yes"; then : hwloc_components="$hwloc_components pci" hwloc_pci_component_maybeplugin=1 fi fi # If we asked for pci support but couldn't deliver, fail if test "$enable_pci" = "yes" -a "$hwloc_pciaccess_happy" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-pci switch, but could not" >&5 $as_echo "$as_me: WARNING: Specified --enable-pci switch, but could not" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5 $as_echo "$as_me: WARNING: find appropriate support" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins # OpenCL support hwloc_opencl_happy=no if test "x$enable_io" != xno && test "x$enable_opencl" != "xno"; then hwloc_opencl_happy=yes case ${target} in *-*-darwin*) # On Darwin, only use the OpenCL framework for ac_header in OpenCL/cl_ext.h do : ac_fn_c_check_header_mongrel "$LINENO" "OpenCL/cl_ext.h" "ac_cv_header_OpenCL_cl_ext_h" "$ac_includes_default" if test "x$ac_cv_header_OpenCL_cl_ext_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_OPENCL_CL_EXT_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the OpenCL framework" >&5 $as_echo_n "checking for the OpenCL framework... " >&6; } tmp_save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -framework OpenCL" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return clGetDeviceIDs(0, 0, 0, NULL, NULL); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } HWLOC_OPENCL_LDFLAGS="-framework OpenCL" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } hwloc_opencl_happy=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$tmp_save_LDFLAGS" else hwloc_opencl_happy=no fi done ;; *) # On Others, look for OpenCL at normal locations for ac_header in CL/cl_ext.h do : ac_fn_c_check_header_mongrel "$LINENO" "CL/cl_ext.h" "ac_cv_header_CL_cl_ext_h" "$ac_includes_default" if test "x$ac_cv_header_CL_cl_ext_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CL_CL_EXT_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetDeviceIDs in -lOpenCL" >&5 $as_echo_n "checking for clGetDeviceIDs in -lOpenCL... " >&6; } if ${ac_cv_lib_OpenCL_clGetDeviceIDs+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lOpenCL $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char clGetDeviceIDs (); int main () { return clGetDeviceIDs (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_OpenCL_clGetDeviceIDs=yes else ac_cv_lib_OpenCL_clGetDeviceIDs=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetDeviceIDs" >&5 $as_echo "$ac_cv_lib_OpenCL_clGetDeviceIDs" >&6; } if test "x$ac_cv_lib_OpenCL_clGetDeviceIDs" = xyes; then : HWLOC_OPENCL_LIBS="-lOpenCL" else hwloc_opencl_happy=no fi else hwloc_opencl_happy=no fi done ;; esac fi # If we asked for opencl support but couldn't deliver, fail if test "$enable_opencl" = "yes" -a "$hwloc_opencl_happy" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-opencl switch, but could not" >&5 $as_echo "$as_me: WARNING: Specified --enable-opencl switch, but could not" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5 $as_echo "$as_me: WARNING: find appropriate support" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "x$hwloc_opencl_happy" = "xyes"; then $as_echo "#define HWLOC_HAVE_OPENCL 1" >>confdefs.h HWLOC_HAVE_OPENCL=1 hwloc_components="$hwloc_components opencl" hwloc_opencl_component_maybeplugin=1 else HWLOC_HAVE_OPENCL=0 fi # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins # CUDA support hwloc_have_cuda=no hwloc_have_cudart=no if test "x$enable_io" != xno && test "x$enable_cuda" != "xno"; then for ac_header in cuda.h do : ac_fn_c_check_header_mongrel "$LINENO" "cuda.h" "ac_cv_header_cuda_h" "$ac_includes_default" if test "x$ac_cv_header_cuda_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CUDA_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CUDA_VERSION >= 3020" >&5 $as_echo_n "checking if CUDA_VERSION >= 3020... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef CUDA_VERSION #error CUDA_VERSION undefined #elif CUDA_VERSION < 3020 #error CUDA_VERSION too old #endif int main () { int i = 3; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cuInit in -lcuda" >&5 $as_echo_n "checking for cuInit in -lcuda... " >&6; } if ${ac_cv_lib_cuda_cuInit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcuda $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char cuInit (); int main () { return cuInit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cuda_cuInit=yes else ac_cv_lib_cuda_cuInit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cuda_cuInit" >&5 $as_echo "$ac_cv_lib_cuda_cuInit" >&6; } if test "x$ac_cv_lib_cuda_cuInit" = xyes; then : $as_echo "#define HAVE_CUDA 1" >>confdefs.h hwloc_have_cuda=yes fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi done for ac_header in cuda_runtime_api.h do : ac_fn_c_check_header_mongrel "$LINENO" "cuda_runtime_api.h" "ac_cv_header_cuda_runtime_api_h" "$ac_includes_default" if test "x$ac_cv_header_cuda_runtime_api_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CUDA_RUNTIME_API_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CUDART_VERSION >= 3020" >&5 $as_echo_n "checking if CUDART_VERSION >= 3020... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef CUDART_VERSION #error CUDART_VERSION undefined #elif CUDART_VERSION < 3020 #error CUDART_VERSION too old #endif int main () { int i = 3; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cudaGetDeviceProperties in -lcudart" >&5 $as_echo_n "checking for cudaGetDeviceProperties in -lcudart... " >&6; } if ${ac_cv_lib_cudart_cudaGetDeviceProperties+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcudart $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char cudaGetDeviceProperties (); int main () { return cudaGetDeviceProperties (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cudart_cudaGetDeviceProperties=yes else ac_cv_lib_cudart_cudaGetDeviceProperties=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cudart_cudaGetDeviceProperties" >&5 $as_echo "$ac_cv_lib_cudart_cudaGetDeviceProperties" >&6; } if test "x$ac_cv_lib_cudart_cudaGetDeviceProperties" = xyes; then : HWLOC_CUDA_LIBS="-lcudart" hwloc_have_cudart=yes $as_echo "#define HWLOC_HAVE_CUDART 1" >>confdefs.h fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi done if test "$enable_cuda" = "yes" -a "$hwloc_have_cudart" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-cuda switch, but could not" >&5 $as_echo "$as_me: WARNING: Specified --enable-cuda switch, but could not" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5 $as_echo "$as_me: WARNING: find appropriate support" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "x$hwloc_have_cudart" = "xyes"; then hwloc_components="$hwloc_components cuda" hwloc_cuda_component_maybeplugin=1 fi fi # don't add LIBS/CFLAGS yet, depends on plugins # NVML support hwloc_nvml_happy=no if test "x$enable_io" != xno && test "x$enable_nvml" != "xno"; then hwloc_nvml_happy=yes for ac_header in nvml.h do : ac_fn_c_check_header_mongrel "$LINENO" "nvml.h" "ac_cv_header_nvml_h" "$ac_includes_default" if test "x$ac_cv_header_nvml_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_NVML_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvmlInit in -lnvidia-ml" >&5 $as_echo_n "checking for nvmlInit in -lnvidia-ml... " >&6; } if ${ac_cv_lib_nvidia_ml_nvmlInit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnvidia-ml $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char nvmlInit (); int main () { return nvmlInit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_nvidia_ml_nvmlInit=yes else ac_cv_lib_nvidia_ml_nvmlInit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvidia_ml_nvmlInit" >&5 $as_echo "$ac_cv_lib_nvidia_ml_nvmlInit" >&6; } if test "x$ac_cv_lib_nvidia_ml_nvmlInit" = xyes; then : HWLOC_NVML_LIBS="-lnvidia-ml" else hwloc_nvml_happy=no fi else hwloc_nvml_happy=no fi done fi if test "x$hwloc_nvml_happy" = "xyes"; then tmp_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $HWLOC_NVML_CFLAGS" tmp_save_LIBS="$LIBS" LIBS="$LIBS $HWLOC_NVML_LIBS" ac_fn_c_check_decl "$LINENO" "nvmlDeviceGetMaxPcieLinkGeneration" "ac_cv_have_decl_nvmlDeviceGetMaxPcieLinkGeneration" "#include " if test "x$ac_cv_have_decl_nvmlDeviceGetMaxPcieLinkGeneration" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_NVMLDEVICEGETMAXPCIELINKGENERATION $ac_have_decl _ACEOF if test $ac_have_decl = 1; then : else : fi CFLAGS="$tmp_save_CFLAGS" LIBS="$tmp_save_LIBS" fi # If we asked for nvml support but couldn't deliver, fail if test "$enable_nvml" = "yes" -a "$hwloc_nvml_happy" = "no"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-nvml switch, but could not" >&5 $as_echo "$as_me: WARNING: Specified --enable-nvml switch, but could not" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5 $as_echo "$as_me: WARNING: find appropriate support" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi if test "x$hwloc_nvml_happy" = "xyes"; then $as_echo "#define HWLOC_HAVE_NVML 1" >>confdefs.h HWLOC_HAVE_NVML=1 hwloc_components="$hwloc_components nvml" hwloc_nvml_component_maybeplugin=1 else HWLOC_HAVE_NVML=0 fi # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins # X11 support if test "$no_x" = yes; then # Not all programs may use this symbol, but it does not hurt to define it. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= else if test -n "$x_includes"; then X_CFLAGS="$X_CFLAGS -I$x_includes" fi # It would also be nice to do this for all -L options, not just this one. if test -n "$x_libraries"; then X_LIBS="$X_LIBS -L$x_libraries" # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 $as_echo_n "checking whether -R must be followed by a space... " >&6; } ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" ac_xsave_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } X_LIBS="$X_LIBS -R$x_libraries" else LIBS="$ac_xsave_LIBS -R $x_libraries" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } X_LIBS="$X_LIBS -R $x_libraries" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 $as_echo "neither works" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_c_werror_flag=$ac_xsave_c_werror_flag LIBS=$ac_xsave_LIBS fi # Check for system-dependent libraries X programs must link with. # Do this before checking for the system-independent R6 libraries # (-lICE), since we may need -lsocket or whatever for X linking. if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else # Martyn Johnson says this is needed for Ultrix, if the X # libraries were built with DECnet support. And Karl Berry says # the Alpha needs dnet_stub (dnet does not exist). ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char XOpenDisplay (); int main () { return XOpenDisplay (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dnet_dnet_ntoa=yes else ac_cv_lib_dnet_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet_stub $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dnet_stub_dnet_ntoa=yes else ac_cv_lib_dnet_stub_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" fi fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_xsave_LIBS" # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, # to get the SysV transport functions. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) # needs -lnsl. # The nsl library prevents programs from opening the X display # on Irix 5.2, according to T.E. Dickey. # The functions gethostbyname, getservbyname, and inet_addr are # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" if test "x$ac_cv_func_gethostbyname" = xyes; then : fi if test $ac_cv_func_gethostbyname = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } if ${ac_cv_lib_nsl_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_nsl_gethostbyname=yes else ac_cv_lib_nsl_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" fi if test $ac_cv_lib_nsl_gethostbyname = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } if ${ac_cv_lib_bsd_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bsd_gethostbyname=yes else ac_cv_lib_bsd_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" fi fi fi # lieder@skyler.mavd.honeywell.com says without -lsocket, # socket/setsockopt and other routines are undefined under SCO ODT # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary # on later versions), says Simon Leinen: it contains gethostby* # variants that don't use the name server (or something). -lsocket # must be given before -lnsl if both are needed. We assume that # if connect needs -lnsl, so does gethostbyname. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" if test "x$ac_cv_func_connect" = xyes; then : fi if test $ac_cv_func_connect = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 $as_echo_n "checking for connect in -lsocket... " >&6; } if ${ac_cv_lib_socket_connect+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char connect (); int main () { return connect (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_socket_connect=yes else ac_cv_lib_socket_connect=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 $as_echo "$ac_cv_lib_socket_connect" >&6; } if test "x$ac_cv_lib_socket_connect" = xyes; then : X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" fi fi # Guillermo Gomez says -lposix is necessary on A/UX. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" if test "x$ac_cv_func_remove" = xyes; then : fi if test $ac_cv_func_remove = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 $as_echo_n "checking for remove in -lposix... " >&6; } if ${ac_cv_lib_posix_remove+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lposix $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char remove (); int main () { return remove (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_posix_remove=yes else ac_cv_lib_posix_remove=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 $as_echo "$ac_cv_lib_posix_remove" >&6; } if test "x$ac_cv_lib_posix_remove" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" fi fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" if test "x$ac_cv_func_shmat" = xyes; then : fi if test $ac_cv_func_shmat = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 $as_echo_n "checking for shmat in -lipc... " >&6; } if ${ac_cv_lib_ipc_shmat+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lipc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shmat (); int main () { return shmat (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ipc_shmat=yes else ac_cv_lib_ipc_shmat=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } if test "x$ac_cv_lib_ipc_shmat" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" fi fi fi # Check for libraries that X11R6 Xt/Xaw programs need. ac_save_LDFLAGS=$LDFLAGS test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to # check for ICE first), but we must link in the order -lSM -lICE or # we get undefined symbols. So assume we have SM if we have ICE. # These have to be linked with before -lX11, unlike the other # libraries we check for below, so use a different variable. # John Interrante, Karl Berry { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lICE $X_EXTRA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char IceConnectionNumber (); int main () { return IceConnectionNumber (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ICE_IceConnectionNumber=yes else ac_cv_lib_ICE_IceConnectionNumber=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" fi LDFLAGS=$ac_save_LDFLAGS fi CPPFLAGS_save=$CPPFLAGS LIBS_save=$LIBS CPPFLAGS="$CPPFLAGS $X_CFLAGS" LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS" for ac_header in X11/Xlib.h do : ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default" if test "x$ac_cv_header_X11_Xlib_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_X11_XLIB_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5 $as_echo_n "checking for XOpenDisplay in -lX11... " >&6; } if ${ac_cv_lib_X11_XOpenDisplay+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char XOpenDisplay (); int main () { return XOpenDisplay (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_X11_XOpenDisplay=yes else ac_cv_lib_X11_XOpenDisplay=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5 $as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; } if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then : # the GL backend just needs XOpenDisplay hwloc_enable_X11=yes # lstopo needs more for ac_header in X11/Xutil.h do : ac_fn_c_check_header_compile "$LINENO" "X11/Xutil.h" "ac_cv_header_X11_Xutil_h" "#include " if test "x$ac_cv_header_X11_Xutil_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_X11_XUTIL_H 1 _ACEOF for ac_header in X11/keysym.h do : ac_fn_c_check_header_mongrel "$LINENO" "X11/keysym.h" "ac_cv_header_X11_keysym_h" "$ac_includes_default" if test "x$ac_cv_header_X11_keysym_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_X11_KEYSYM_H 1 _ACEOF $as_echo "#define HWLOC_HAVE_X11_KEYSYM 1" >>confdefs.h HWLOC_X11_CPPFLAGS="$X_CFLAGS" HWLOC_X11_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS" fi done fi done fi fi done CPPFLAGS=$CPPFLAGS_save LIBS=$LIBS_save # GL Support hwloc_gl_happy=no if test "x$enable_io" != xno && test "x$enable_gl" != "xno"; then hwloc_gl_happy=yes if test "$hwloc_enable_X11" != "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 not found; GL disabled" >&5 $as_echo "$as_me: WARNING: X11 not found; GL disabled" >&2;} hwloc_gl_happy=no fi for ac_header in NVCtrl/NVCtrl.h do : ac_fn_c_check_header_mongrel "$LINENO" "NVCtrl/NVCtrl.h" "ac_cv_header_NVCtrl_NVCtrl_h" "$ac_includes_default" if test "x$ac_cv_header_NVCtrl_NVCtrl_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_NVCTRL_NVCTRL_H 1 _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryTargetAttribute in -lXNVCtrl" >&5 $as_echo_n "checking for XNVCTRLQueryTargetAttribute in -lXNVCtrl... " >&6; } if ${ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lXNVCtrl -lXext $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char XNVCTRLQueryTargetAttribute (); int main () { return XNVCTRLQueryTargetAttribute (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute=yes else ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute" >&5 $as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute" >&6; } if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute" = xyes; then : : else hwloc_gl_happy=no fi else hwloc_gl_happy=no fi done if test "x$hwloc_gl_happy" = "xyes"; then $as_echo "#define HWLOC_HAVE_GL 1" >>confdefs.h HWLOC_GL_LIBS="-lXNVCtrl -lXext -lX11" # FIXME we actually don't know if xext.pc and x11.pc are installed # since we didn't look for Xext and X11 using pkg-config HWLOC_GL_REQUIRES="xext x11" hwloc_have_gl=yes hwloc_components="$hwloc_components gl" hwloc_gl_component_maybeplugin=1 else if test "$enable_gl" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-gl switch, but could not" >&5 $as_echo "$as_me: WARNING: Specified --enable-gl switch, but could not" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5 $as_echo "$as_me: WARNING: find appropriate support" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi fi # don't add LIBS/CFLAGS yet, depends on plugins # libxml2 support hwloc_libxml2_happy= if test "x$enable_libxml2" != "xno"; then HWLOC_pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5 $as_echo_n "checking for LIBXML2... " >&6; } if test -n "$PKG_CONFIG"; then if test -n "$HWLOC_LIBXML2_CFLAGS"; then HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS="$HWLOC_LIBXML2_CFLAGS" else if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"libxml-2.0\""; } >&5 ($PKG_CONFIG --exists --silence-errors "libxml-2.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` else HWLOC_pkg_failed=yes fi fi else HWLOC_pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$HWLOC_LIBXML2_LIBS"; then HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS="$HWLOC_LIBXML2_LIBS" else if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"libxml-2.0\""; } >&5 ($PKG_CONFIG --exists --silence-errors "libxml-2.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` else HWLOC_pkg_failed=yes fi fi else HWLOC_pkg_failed=untried fi # Check for failure of pkg-config if test $HWLOC_pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then HWLOC_pkg_short_errors_supported=yes else HWLOC_pkg_short_errors_supported=no fi if test $HWLOC_pkg_short_errors_supported = yes; then HWLOC_LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0" 2>&1` else HWLOC_LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$HWLOC_LIBXML2_PKG_ERRORS" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } hwloc_libxml2_happy=no elif test $HWLOC_pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5 $as_echo "cannot check without pkg-config" >&6; } hwloc_libxml2_happy=no else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we got good results from pkg-config, check that they # actually work (i.e., that we can link against the resulting # $LIBS). The canonical example why we do this is if # pkg-config returns 64 bit libraries but ./configure was run # with CFLAGS=-m32 LDFLAGS=-m32. pkg-config gave us valid # results, but we'll fail if we try to link. So detect that # failure now. # There are also cases on Mac where pkg-config returns paths # that do not actually exists until some magic is applied. # http://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php # So check whether we find the header as well. hwloc_cflags_save=$CFLAGS hwloc_cppflags_save=$CPPFLAGS hwloc_libs_save=$LIBS CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS" CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS" LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS" ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default" if test "x$ac_cv_header_libxml_parser_h" = xyes; then : ac_fn_c_check_func "$LINENO" "xmlNewDoc" "ac_cv_func_xmlNewDoc" if test "x$ac_cv_func_xmlNewDoc" = xyes; then : hwloc_result=yes else hwloc_result=no fi else hwloc_result=no fi CFLAGS=$hwloc_cflags_save CPPFLAGS=$hwloc_cppflags_save LIBS=$hwloc_libs_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for final LIBXML2 support" >&5 $as_echo_n "checking for final LIBXML2 support... " >&6; } if test "$hwloc_result" = "yes"; then : HWLOC_LIBXML2_CFLAGS=$HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS HWLOC_LIBXML2_LIBS=$HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } hwloc_libxml2_happy=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } hwloc_libxml2_happy=no fi fi fi if test "x$hwloc_libxml2_happy" = "xyes"; then HWLOC_LIBXML2_REQUIRES="libxml-2.0" $as_echo "#define HWLOC_HAVE_LIBXML2 1" >>confdefs.h HWLOC_HAVE_LIBXML2=1 hwloc_components="$hwloc_components xml_libxml" hwloc_xml_libxml_component_maybeplugin=1 else HWLOC_HAVE_LIBXML2=0 if test "$enable_libxml2" = "yes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libxml2 requested, but libxml2 was not found" >&5 $as_echo "$as_me: WARNING: --enable-libxml2 requested, but libxml2 was not found" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi fi # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins # Try to compile the x86 cpuid inlines if test "x$enable_cpuid" != "xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid" >&5 $as_echo_n "checking for x86 cpuid... " >&6; } old_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I$HWLOC_top_srcdir/include" # We need hwloc_uint64_t but we can't use autogen/config.h before configure ends. # So pass #include/#define manually here for now. CPUID_CHECK_HEADERS= CPUID_CHECK_DEFINE= if test "x$hwloc_windows" = xyes; then X86_CPUID_CHECK_HEADERS="#include " X86_CPUID_CHECK_DEFINE="#define hwloc_uint64_t DWORDLONG" else X86_CPUID_CHECK_DEFINE="#define hwloc_uint64_t uint64_t" if test "x$ac_cv_header_stdint_h" = xyes; then X86_CPUID_CHECK_HEADERS="#include " fi fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $X86_CPUID_CHECK_HEADERS $X86_CPUID_CHECK_DEFINE #define __hwloc_inline #include int main () { if (hwloc_have_x86_cpuid()) { unsigned eax = 0, ebx, ecx = 0, edx; hwloc_x86_cpuid(&eax, &ebx, &ecx, &edx); printf("highest x86 cpuid %x\n", eax); return 0; } ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HWLOC_HAVE_X86_CPUID 1" >>confdefs.h hwloc_have_x86_cpuid=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "x$hwloc_have_x86_cpuid" = xyes; then hwloc_components="$hwloc_components x86" fi CPPFLAGS="$old_CPPFLAGS" fi # Components require pthread_mutex, see if it needs -lpthread hwloc_pthread_mutex_happy=no # Try without explicit -lpthread first ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock" if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then : hwloc_pthread_mutex_happy=yes HWLOC_LIBS_PRIVATE="$HWLOC_LIBS_PRIVATE -lpthread" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock with -lpthread" >&5 $as_echo_n "checking for pthread_mutex_lock with -lpthread... " >&6; } # Try again with explicit -lpthread, but don't use AC_CHECK_FUNC to avoid the cache tmp_save_LIBS=$LIBS LIBS="$LIBS -lpthread" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_mutex_lock (); int main () { return pthread_mutex_lock (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : hwloc_pthread_mutex_happy=yes HWLOC_LIBS="$HWLOC_LIBS -lpthread" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_pthread_mutex_happy" >&5 $as_echo "$hwloc_pthread_mutex_happy" >&6; } LIBS="$tmp_save_LIBS" fi if test "x$hwloc_pthread_mutex_happy" = "xyes"; then : $as_echo "#define HWLOC_HAVE_PTHREAD_MUTEX 1" >>confdefs.h fi if test "x$hwloc_pthread_mutex_happy" != xyes -a "x$hwloc_windows" != xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread_mutex_lock not available, required for thread-safe initialization on non-Windows platforms." >&5 $as_echo "$as_me: WARNING: pthread_mutex_lock not available, required for thread-safe initialization on non-Windows platforms." >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please report this to the hwloc-devel mailing list." >&5 $as_echo "$as_me: WARNING: Please report this to the hwloc-devel mailing list." >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # # Now enable registration of listed components # # Plugin support { $as_echo "$as_me:${as_lineno-$LINENO}: checking if plugin support is enabled" >&5 $as_echo_n "checking if plugin support is enabled... " >&6; } # Plugins (even core support) are totally disabled by default if test "x$enable_plugins" = "x"; then : enable_plugins=no fi if test "x$enable_plugins" != "xno"; then : hwloc_have_plugins=yes else hwloc_have_plugins=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_have_plugins" >&5 $as_echo "$hwloc_have_plugins" >&6; } if test "x$hwloc_have_plugins" = "xyes"; then : $as_echo "#define HWLOC_HAVE_PLUGINS 1" >>confdefs.h fi # Some sanity checks about plugins # libltdl doesn't work on AIX as of 2.4.2 if test "x$enable_plugins" = "xyes" -a "x$hwloc_aix" = "xyes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl does not work on AIX, plugins support cannot be enabled." >&5 $as_echo "$as_me: WARNING: libltdl does not work on AIX, plugins support cannot be enabled." >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # posix linkers don't work well with plugins and windows dll constraints if test "x$enable_plugins" = "xyes" -a "x$hwloc_windows" = "xyes"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Plugins not supported on non-native Windows build, plugins support cannot be enabled." >&5 $as_echo "$as_me: WARNING: Plugins not supported on non-native Windows build, plugins support cannot be enabled." >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # If we want plugins, look for ltdl.h and libltdl if test "x$hwloc_have_plugins" = xyes; then ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" if test "x$ac_cv_header_ltdl_h" = xyes; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Plugin support requested, but could not find ltdl.h" >&5 $as_echo "$as_me: WARNING: Plugin support requested, but could not find ltdl.h" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopenext in -lltdl" >&5 $as_echo_n "checking for lt_dlopenext in -lltdl... " >&6; } if ${ac_cv_lib_ltdl_lt_dlopenext+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lltdl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char lt_dlopenext (); int main () { return lt_dlopenext (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ltdl_lt_dlopenext=yes else ac_cv_lib_ltdl_lt_dlopenext=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopenext" >&5 $as_echo "$ac_cv_lib_ltdl_lt_dlopenext" >&6; } if test "x$ac_cv_lib_ltdl_lt_dlopenext" = xyes; then : HWLOC_LIBS="$HWLOC_LIBS -lltdl" else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Plugin support requested, but could not find libltdl" >&5 $as_echo "$as_me: WARNING: Plugin support requested, but could not find libltdl" >&2;} as_fn_error $? "Cannot continue" "$LINENO" 5 fi # Add libltdl static-build dependencies to hwloc.pc # save variables that we'll modify below save_lt_cv_dlopen="$lt_cv_dlopen" save_lt_cv_dlopen_libs="$lt_cv_dlopen_libs" save_lt_cv_dlopen_self="$lt_cv_dlopen_self" ########################################################### # code stolen from LT_SYS_DLOPEN_SELF in libtool.m4 case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen="shl_load" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes; then : lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes; then : lt_cv_dlopen="dlopen" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes; then : lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi fi fi fi fi fi ;; esac # end of code stolen from LT_SYS_DLOPEN_SELF in libtool.m4 ########################################################### HWLOC_LIBS_PRIVATE="$HWLOC_LIBS_PRIVATE $lt_cv_dlopen_libs" # restore modified variable in case the actual libtool code uses them lt_cv_dlopen="$save_lt_cv_dlopen" lt_cv_dlopen_libs="$save_lt_cv_dlopen_libs" lt_cv_dlopen_self="$save_lt_cv_dlopen_self" fi # Check whether --with-hwloc-plugins-path was given. if test "${with_hwloc_plugins_path+set}" = set; then : withval=$with_hwloc_plugins_path; HWLOC_PLUGINS_PATH="$with_hwloc_plugins_path" else HWLOC_PLUGINS_PATH="\$(libdir)/hwloc" fi HWLOC_PLUGINS_DIR=`echo "$HWLOC_PLUGINS_PATH" | cut -d: -f1` # Static components output file hwloc_static_components_dir=${HWLOC_top_builddir}/hwloc mkdir -p ${hwloc_static_components_dir} hwloc_static_components_file=${hwloc_static_components_dir}/static-components.h rm -f ${hwloc_static_components_file} # Make $enable_plugins easier to use (it contains either "yes" (all) or a list of ) for name in `echo $enable_plugins | sed -e 's/,/ /g'` ; do str="hwloc_${name}_component_wantplugin=1" eval $str done # Now we have some hwloc__component_wantplugin=1 # See which core components want plugin and support it for name in $hwloc_components ; do str="maybeplugin=\$hwloc_${name}_component_maybeplugin" eval $str str="wantplugin=\$hwloc_${name}_component_wantplugin" eval $str if test x$hwloc_have_plugins = xyes && test x$maybeplugin = x1 && test x$wantplugin = x1 -o x$enable_plugins = xyes; then hwloc_plugin_components="$hwloc_plugin_components $name" str="hwloc_${name}_component=plugin" else hwloc_static_components="$hwloc_static_components $name" str="hwloc_${name}_component=static" fi eval $str done # Now we have some hwloc__component=plugin/static # and hwloc_static/plugin_components { $as_echo "$as_me:${as_lineno-$LINENO}: checking components to build statically" >&5 $as_echo_n "checking components to build statically... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_static_components" >&5 $as_echo "$hwloc_static_components" >&6; } cat <>$hwloc_static_components_file #include static const struct hwloc_component * hwloc_static_components[] = { EOF for comp in $hwloc_static_components; do echo " &hwloc_${comp}_component," >>$hwloc_static_components_file done cat <>$hwloc_static_components_file NULL }; EOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking components to build as plugins" >&5 $as_echo_n "checking components to build as plugins... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_plugin_components" >&5 $as_echo "$hwloc_plugin_components" >&6; } if test "$hwloc_pci_component" = "static"; then : HWLOC_LIBS="$HWLOC_LIBS $HWLOC_PCIACCESS_LIBS" HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_PCIACCESS_CFLAGS" HWLOC_REQUIRES="$HWLOC_PCIACCESS_REQUIRES $HWLOC_REQUIRES" fi if test "$hwloc_opencl_component" = "static"; then : HWLOC_LIBS="$HWLOC_LIBS $HWLOC_OPENCL_LIBS" HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_OPENCL_LDFLAGS" HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_OPENCL_CFLAGS" HWLOC_REQUIRES="$HWLOC_OPENCL_REQUIRES $HWLOC_REQUIRES" fi if test "$hwloc_cuda_component" = "static"; then : HWLOC_LIBS="$HWLOC_LIBS $HWLOC_CUDA_LIBS" HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_CUDA_CFLAGS" HWLOC_REQUIRES="$HWLOC_CUDA_REQUIRES $HWLOC_REQUIRES" fi if test "$hwloc_nvml_component" = "static"; then : HWLOC_LIBS="$HWLOC_LIBS $HWLOC_NVML_LIBS" HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_NVML_CFLAGS" HWLOC_REQUIRES="$HWLOC_NVML_REQUIRES $HWLOC_REQUIRES" fi if test "$hwloc_gl_component" = "static"; then : HWLOC_LIBS="$HWLOC_LIBS $HWLOC_GL_LIBS" HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_GL_CFLAGS" HWLOC_REQUIRES="$HWLOC_GL_REQUIRES $HWLOC_REQUIRES" fi if test "$hwloc_xml_libxml_component" = "static"; then : HWLOC_LIBS="$HWLOC_LIBS $HWLOC_LIBXML2_LIBS" HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_LIBXML2_CFLAGS" HWLOC_REQUIRES="$HWLOC_LIBXML2_REQUIRES $HWLOC_REQUIRES" fi # # Setup HWLOC's C, CPP, and LD flags, and LIBS # HWLOC_CPPFLAGS='-I$(HWLOC_top_builddir)/include -I$(HWLOC_top_srcdir)/include' # Set these values explicitly for embedded builds. Exporting # these values through *_EMBEDDED_* values gives us the freedom to # do something different someday if we ever need to. There's no # need to fill these values in unless we're in embedded mode. # Indeed, if we're building in embedded mode, we want HWLOC_LIBS # to be empty so that nothing is linked into libhwloc_embedded.la # itself -- only the upper-layer will link in anything required. if test "$hwloc_mode" = "embedded"; then : HWLOC_EMBEDDED_CFLAGS=$HWLOC_CFLAGS HWLOC_EMBEDDED_CPPFLAGS=$HWLOC_CPPFLAGS HWLOC_EMBEDDED_LDADD='$(HWLOC_top_builddir)/hwloc/libhwloc_embedded.la' HWLOC_EMBEDDED_LIBS=$HWLOC_LIBS HWLOC_LIBS= fi # Always generate these files ac_config_files="$ac_config_files src/hwloc/Makefile src/hwloc/include/Makefile src/hwloc/hwloc/Makefile" # Cleanup ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Success have_hwloc=yes # Only build hwloc in embedded mode if test "$have_hwloc" = "yes" ; then use_embedded_hwloc=yes hwlocsrcdir="src/hwloc" hwloclib="$HWLOC_EMBEDDED_LDADD" if echo "$WRAPPER_LIBS" | $FGREP -e "\<$HWLOC_EMBEDDED_LIBS\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '$HWLOC_EMBEDDED_LIBS', not prepending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '$HWLOC_EMBEDDED_LIBS', prepending" >&5 WRAPPER_LIBS="$HWLOC_EMBEDDED_LIBS $WRAPPER_LIBS" fi # if possible, do not expose hwloc symbols in libmpi.so if echo "$HWLOC_CFLAGS" | $FGREP -e "\<$VISIBILITY_CFLAGS\>" >/dev/null 2>&1; then : echo "HWLOC_CFLAGS(='$HWLOC_CFLAGS') contains '$VISIBILITY_CFLAGS', not prepending" >&5 else echo "HWLOC_CFLAGS(='$HWLOC_CFLAGS') does not contain '$VISIBILITY_CFLAGS', prepending" >&5 HWLOC_CFLAGS="$VISIBILITY_CFLAGS $HWLOC_CFLAGS" fi fi pac_save_enable_visibility_nesting=`expr ${pac_save_enable_visibility_nesting} - 1` eval enable_visibility="\$pac_save_enable_visibility_${pac_save_enable_visibility_nesting}" eval pac_save_enable_visibility_${pac_save_enable_visibility_nesting}="" else for ac_header in hwloc.h do : ac_fn_c_check_header_mongrel "$LINENO" "hwloc.h" "ac_cv_header_hwloc_h" "$ac_includes_default" if test "x$ac_cv_header_hwloc_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_HWLOC_H 1 _ACEOF fi done # hwloc_topology_set_pid was added in hwloc-1.0.0, which is our # minimum required version { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc_topology_set_pid in -lhwloc" >&5 $as_echo_n "checking for hwloc_topology_set_pid in -lhwloc... " >&6; } if ${ac_cv_lib_hwloc_hwloc_topology_set_pid+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhwloc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char hwloc_topology_set_pid (); int main () { return hwloc_topology_set_pid (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_hwloc_hwloc_topology_set_pid=yes else ac_cv_lib_hwloc_hwloc_topology_set_pid=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hwloc_hwloc_topology_set_pid" >&5 $as_echo "$ac_cv_lib_hwloc_hwloc_topology_set_pid" >&6; } if test "x$ac_cv_lib_hwloc_hwloc_topology_set_pid" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBHWLOC 1 _ACEOF LIBS="-lhwloc $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if non-embedded hwloc works" >&5 $as_echo_n "checking if non-embedded hwloc works... " >&6; } if test "$ac_cv_header_hwloc_h" = "yes" -a "$ac_cv_lib_hwloc_hwloc_topology_set_pid" = "yes" ; then have_hwloc=yes else have_hwloc=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_hwloc" >&5 $as_echo "$have_hwloc" >&6; } # FIXME: Disable hwloc on Cygwin for now. The hwloc package, # atleast as of 1.0.2, does not install correctly on Cygwin case $host in #( *-*-cygwin) : have_hwloc=no ;; #( *) : ;; esac if test "$have_hwloc" = "yes" ; then hwloclib="-lhwloc" if test -d ${with_hwloc_prefix}/lib64 ; then if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<-L${with_hwloc_prefix}/lib64\>" >/dev/null 2>&1; then : echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '-L${with_hwloc_prefix}/lib64', not appending" >&5 else echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '-L${with_hwloc_prefix}/lib64', appending" >&5 WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS -L${with_hwloc_prefix}/lib64" fi hwloclibdir="-L${with_hwloc_prefix}/lib64" else hwloclibdir="-L${with_hwloc_prefix}/lib" fi fi fi if test "$have_hwloc" = "yes" ; then $as_echo "#define HAVE_HWLOC 1" >>confdefs.h fi if test "$hwloc_did_am_conditionals" != "yes"; then : if test "$hwloc_mode" = "standalone"; then HWLOC_BUILD_STANDALONE_TRUE= HWLOC_BUILD_STANDALONE_FALSE='#' else HWLOC_BUILD_STANDALONE_TRUE='#' HWLOC_BUILD_STANDALONE_FALSE= fi if test "x$GCC" = "xyes"; then HWLOC_HAVE_GCC_TRUE= HWLOC_HAVE_GCC_FALSE='#' else HWLOC_HAVE_GCC_TRUE='#' HWLOC_HAVE_GCC_FALSE= fi if test "x$HWLOC_MS_LIB" != "x"; then HWLOC_HAVE_MS_LIB_TRUE= HWLOC_HAVE_MS_LIB_FALSE='#' else HWLOC_HAVE_MS_LIB_TRUE='#' HWLOC_HAVE_MS_LIB_FALSE= fi if test "x$hwloc_have_openat" = "xyes"; then HWLOC_HAVE_OPENAT_TRUE= HWLOC_HAVE_OPENAT_FALSE='#' else HWLOC_HAVE_OPENAT_TRUE='#' HWLOC_HAVE_OPENAT_FALSE= fi if test "x$hwloc_have_sched_setaffinity" = "xyes"; then HWLOC_HAVE_SCHED_SETAFFINITY_TRUE= HWLOC_HAVE_SCHED_SETAFFINITY_FALSE='#' else HWLOC_HAVE_SCHED_SETAFFINITY_TRUE='#' HWLOC_HAVE_SCHED_SETAFFINITY_FALSE= fi if test "x$hwloc_have_pthread" = "xyes"; then HWLOC_HAVE_PTHREAD_TRUE= HWLOC_HAVE_PTHREAD_FALSE='#' else HWLOC_HAVE_PTHREAD_TRUE='#' HWLOC_HAVE_PTHREAD_FALSE= fi if test "x$hwloc_have_linux_libnuma" = "xyes"; then HWLOC_HAVE_LINUX_LIBNUMA_TRUE= HWLOC_HAVE_LINUX_LIBNUMA_FALSE='#' else HWLOC_HAVE_LINUX_LIBNUMA_TRUE='#' HWLOC_HAVE_LINUX_LIBNUMA_FALSE= fi if test "x$hwloc_have_libibverbs" = "xyes"; then HWLOC_HAVE_LIBIBVERBS_TRUE= HWLOC_HAVE_LIBIBVERBS_FALSE='#' else HWLOC_HAVE_LIBIBVERBS_TRUE='#' HWLOC_HAVE_LIBIBVERBS_FALSE= fi if test "x$hwloc_have_cuda" = "xyes"; then HWLOC_HAVE_CUDA_TRUE= HWLOC_HAVE_CUDA_FALSE='#' else HWLOC_HAVE_CUDA_TRUE='#' HWLOC_HAVE_CUDA_FALSE= fi if test "x$hwloc_have_gl" = "xyes"; then HWLOC_HAVE_GL_TRUE= HWLOC_HAVE_GL_FALSE='#' else HWLOC_HAVE_GL_TRUE='#' HWLOC_HAVE_GL_FALSE= fi if test "x$hwloc_have_cudart" = "xyes"; then HWLOC_HAVE_CUDART_TRUE= HWLOC_HAVE_CUDART_FALSE='#' else HWLOC_HAVE_CUDART_TRUE='#' HWLOC_HAVE_CUDART_FALSE= fi if test "$hwloc_libxml2_happy" = "yes"; then HWLOC_HAVE_LIBXML2_TRUE= HWLOC_HAVE_LIBXML2_FALSE='#' else HWLOC_HAVE_LIBXML2_TRUE='#' HWLOC_HAVE_LIBXML2_FALSE= fi if test "$hwloc_cairo_happy" = "yes"; then HWLOC_HAVE_CAIRO_TRUE= HWLOC_HAVE_CAIRO_FALSE='#' else HWLOC_HAVE_CAIRO_TRUE='#' HWLOC_HAVE_CAIRO_FALSE= fi if test "$hwloc_pciaccess_happy" = "yes"; then HWLOC_HAVE_PCIACCESS_TRUE= HWLOC_HAVE_PCIACCESS_FALSE='#' else HWLOC_HAVE_PCIACCESS_TRUE='#' HWLOC_HAVE_PCIACCESS_FALSE= fi if test "$hwloc_opencl_happy" = "yes"; then HWLOC_HAVE_OPENCL_TRUE= HWLOC_HAVE_OPENCL_FALSE='#' else HWLOC_HAVE_OPENCL_TRUE='#' HWLOC_HAVE_OPENCL_FALSE= fi if test "$hwloc_nvml_happy" = "yes"; then HWLOC_HAVE_NVML_TRUE= HWLOC_HAVE_NVML_FALSE='#' else HWLOC_HAVE_NVML_TRUE='#' HWLOC_HAVE_NVML_FALSE= fi if test "x$BUNZIPP" != "xfalse"; then HWLOC_HAVE_BUNZIPP_TRUE= HWLOC_HAVE_BUNZIPP_FALSE='#' else HWLOC_HAVE_BUNZIPP_TRUE='#' HWLOC_HAVE_BUNZIPP_FALSE= fi if test "x$hwloc_have_user32" = "xyes"; then HWLOC_HAVE_USER32_TRUE= HWLOC_HAVE_USER32_FALSE='#' else HWLOC_HAVE_USER32_TRUE='#' HWLOC_HAVE_USER32_FALSE= fi if test "x$hwloc_generate_doxs" = "xyes"; then HWLOC_BUILD_DOXYGEN_TRUE= HWLOC_BUILD_DOXYGEN_FALSE='#' else HWLOC_BUILD_DOXYGEN_TRUE='#' HWLOC_BUILD_DOXYGEN_FALSE= fi if test "x$hwloc_generate_readme" = "xyes" -a \( "x$hwloc_install_doxs" = "xyes" -o "x$hwloc_generate_doxs" = "xyes" \) ; then HWLOC_BUILD_README_TRUE= HWLOC_BUILD_README_FALSE='#' else HWLOC_BUILD_README_TRUE='#' HWLOC_BUILD_README_FALSE= fi if test "x$hwloc_install_doxs" = "xyes"; then HWLOC_INSTALL_DOXYGEN_TRUE= HWLOC_INSTALL_DOXYGEN_FALSE='#' else HWLOC_INSTALL_DOXYGEN_TRUE='#' HWLOC_INSTALL_DOXYGEN_FALSE= fi if test "x$hwloc_linux" = "xyes"; then HWLOC_HAVE_LINUX_TRUE= HWLOC_HAVE_LINUX_FALSE='#' else HWLOC_HAVE_LINUX_TRUE='#' HWLOC_HAVE_LINUX_FALSE= fi if test "x$hwloc_bgq" = "xyes"; then HWLOC_HAVE_BGQ_TRUE= HWLOC_HAVE_BGQ_FALSE='#' else HWLOC_HAVE_BGQ_TRUE='#' HWLOC_HAVE_BGQ_FALSE= fi if test "x$hwloc_irix" = "xyes"; then HWLOC_HAVE_IRIX_TRUE= HWLOC_HAVE_IRIX_FALSE='#' else HWLOC_HAVE_IRIX_TRUE='#' HWLOC_HAVE_IRIX_FALSE= fi if test "x$hwloc_darwin" = "xyes"; then HWLOC_HAVE_DARWIN_TRUE= HWLOC_HAVE_DARWIN_FALSE='#' else HWLOC_HAVE_DARWIN_TRUE='#' HWLOC_HAVE_DARWIN_FALSE= fi if test "x$hwloc_freebsd" = "xyes"; then HWLOC_HAVE_FREEBSD_TRUE= HWLOC_HAVE_FREEBSD_FALSE='#' else HWLOC_HAVE_FREEBSD_TRUE='#' HWLOC_HAVE_FREEBSD_FALSE= fi if test "x$hwloc_netbsd" = "xyes"; then HWLOC_HAVE_NETBSD_TRUE= HWLOC_HAVE_NETBSD_FALSE='#' else HWLOC_HAVE_NETBSD_TRUE='#' HWLOC_HAVE_NETBSD_FALSE= fi if test "x$hwloc_solaris" = "xyes"; then HWLOC_HAVE_SOLARIS_TRUE= HWLOC_HAVE_SOLARIS_FALSE='#' else HWLOC_HAVE_SOLARIS_TRUE='#' HWLOC_HAVE_SOLARIS_FALSE= fi if test "x$hwloc_aix" = "xyes"; then HWLOC_HAVE_AIX_TRUE= HWLOC_HAVE_AIX_FALSE='#' else HWLOC_HAVE_AIX_TRUE='#' HWLOC_HAVE_AIX_FALSE= fi if test "x$hwloc_hpux" = "xyes"; then HWLOC_HAVE_HPUX_TRUE= HWLOC_HAVE_HPUX_FALSE='#' else HWLOC_HAVE_HPUX_TRUE='#' HWLOC_HAVE_HPUX_FALSE= fi if test "x$hwloc_windows" = "xyes"; then HWLOC_HAVE_WINDOWS_TRUE= HWLOC_HAVE_WINDOWS_FALSE='#' else HWLOC_HAVE_WINDOWS_TRUE='#' HWLOC_HAVE_WINDOWS_FALSE= fi if test "x$target_os" = "xmingw32"; then HWLOC_HAVE_MINGW32_TRUE= HWLOC_HAVE_MINGW32_FALSE='#' else HWLOC_HAVE_MINGW32_TRUE='#' HWLOC_HAVE_MINGW32_FALSE= fi if test "x$hwloc_x86_32" = "xyes" -o "x$hwloc_x86_64" = "xyes"; then HWLOC_HAVE_X86_TRUE= HWLOC_HAVE_X86_FALSE='#' else HWLOC_HAVE_X86_TRUE='#' HWLOC_HAVE_X86_FALSE= fi if test "x$hwloc_x86_32" = "xyes"; then HWLOC_HAVE_X86_32_TRUE= HWLOC_HAVE_X86_32_FALSE='#' else HWLOC_HAVE_X86_32_TRUE='#' HWLOC_HAVE_X86_32_FALSE= fi if test "x$hwloc_x86_64" = "xyes"; then HWLOC_HAVE_X86_64_TRUE= HWLOC_HAVE_X86_64_FALSE='#' else HWLOC_HAVE_X86_64_TRUE='#' HWLOC_HAVE_X86_64_FALSE= fi if test "x$hwloc_have_x86_cpuid" = "xyes"; then HWLOC_HAVE_X86_CPUID_TRUE= HWLOC_HAVE_X86_CPUID_FALSE='#' else HWLOC_HAVE_X86_CPUID_TRUE='#' HWLOC_HAVE_X86_CPUID_FALSE= fi if test "x$hwloc_have_plugins" = "xyes"; then HWLOC_HAVE_PLUGINS_TRUE= HWLOC_HAVE_PLUGINS_FALSE='#' else HWLOC_HAVE_PLUGINS_TRUE='#' HWLOC_HAVE_PLUGINS_FALSE= fi if test "x$hwloc_pci_component" = "xstatic"; then HWLOC_PCI_BUILD_STATIC_TRUE= HWLOC_PCI_BUILD_STATIC_FALSE='#' else HWLOC_PCI_BUILD_STATIC_TRUE='#' HWLOC_PCI_BUILD_STATIC_FALSE= fi if test "x$hwloc_opencl_component" = "xstatic"; then HWLOC_OPENCL_BUILD_STATIC_TRUE= HWLOC_OPENCL_BUILD_STATIC_FALSE='#' else HWLOC_OPENCL_BUILD_STATIC_TRUE='#' HWLOC_OPENCL_BUILD_STATIC_FALSE= fi if test "x$hwloc_cuda_component" = "xstatic"; then HWLOC_CUDA_BUILD_STATIC_TRUE= HWLOC_CUDA_BUILD_STATIC_FALSE='#' else HWLOC_CUDA_BUILD_STATIC_TRUE='#' HWLOC_CUDA_BUILD_STATIC_FALSE= fi if test "x$hwloc_nvml_component" = "xstatic"; then HWLOC_NVML_BUILD_STATIC_TRUE= HWLOC_NVML_BUILD_STATIC_FALSE='#' else HWLOC_NVML_BUILD_STATIC_TRUE='#' HWLOC_NVML_BUILD_STATIC_FALSE= fi if test "x$hwloc_gl_component" = "xstatic"; then HWLOC_GL_BUILD_STATIC_TRUE= HWLOC_GL_BUILD_STATIC_FALSE='#' else HWLOC_GL_BUILD_STATIC_TRUE='#' HWLOC_GL_BUILD_STATIC_FALSE= fi if test "x$hwloc_xml_libxml_component" = "xstatic"; then HWLOC_XML_LIBXML_BUILD_STATIC_TRUE= HWLOC_XML_LIBXML_BUILD_STATIC_FALSE='#' else HWLOC_XML_LIBXML_BUILD_STATIC_TRUE='#' HWLOC_XML_LIBXML_BUILD_STATIC_FALSE= fi if test "x$hwloc_have_cxx" = "xyes"; then HWLOC_HAVE_CXX_TRUE= HWLOC_HAVE_CXX_FALSE='#' else HWLOC_HAVE_CXX_TRUE='#' HWLOC_HAVE_CXX_FALSE= fi fi hwloc_did_am_conditionals=yes # For backwards compatibility (i.e., packages that only call # HWLOC_DO_AM_CONDITIONS, not NETLOC DO_AM_CONDITIONALS), we also have to # do the netloc AM conditionals here if test "$netloc_happy" = "yes"; then BUILD_NETLOC_TRUE= BUILD_NETLOC_FALSE='#' else BUILD_NETLOC_TRUE='#' BUILD_NETLOC_FALSE= fi if test "x$scotch_found_headers" = "xyes"; then BUILD_NETLOCSCOTCH_TRUE= BUILD_NETLOCSCOTCH_FALSE='#' else BUILD_NETLOCSCOTCH_TRUE='#' BUILD_NETLOCSCOTCH_FALSE= fi if test "x$mpi_found_headers" = "xyes"; then BUILD_MPITOOLS_TRUE= BUILD_MPITOOLS_FALSE='#' else BUILD_MPITOOLS_TRUE='#' BUILD_MPITOOLS_FALSE= fi if test "x$xz" = xyes; then FOUND_XZ_TRUE= FOUND_XZ_FALSE='#' else FOUND_XZ_TRUE='#' FOUND_XZ_FALSE= fi if test "${have_hwloc}" = "yes"; then have_hwloc_TRUE= have_hwloc_FALSE='#' else have_hwloc_TRUE='#' have_hwloc_FALSE= fi if test "${use_embedded_hwloc}" = "yes"; then use_embedded_hwloc_TRUE= use_embedded_hwloc_FALSE='#' else use_embedded_hwloc_TRUE='#' use_embedded_hwloc_FALSE= fi # ---------------------------------------------------------------------------- # NETLOC # ---------------------------------------------------------------------------- # Check whether --with-netloc-prefix was given. if test "${with_netloc_prefix+set}" = set; then : withval=$with_netloc_prefix; else with_netloc_prefix=no fi netloclibdir="" if test "$have_hwloc" = "yes" ; then if test "${with_netloc_prefix}" != "no" ; then if test "${with_netloc_prefix}" != "system"; then # The user specified an already-installed Netloc; just sanity check, # don't subconfigure it if test -s "${with_netloc_prefix}/include/netloc.h"; then : : else as_fn_error $? "the Netloc installation in \"${with_netloc_prefix}\" appears broken" "$LINENO" 5 fi if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_netloc_prefix}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_netloc_prefix}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_netloc_prefix}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_netloc_prefix}/include" fi if echo "$CFLAGS" | $FGREP -e "\<-I${with_netloc_prefix}/include\>" >/dev/null 2>&1; then : echo "CFLAGS(='$CFLAGS') contains '-I${with_netloc_prefix}/include', not appending" >&5 else echo "CFLAGS(='$CFLAGS') does not contain '-I${with_netloc_prefix}/include', appending" >&5 CFLAGS="$CFLAGS -I${with_netloc_prefix}/include" fi if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lnetloc\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lnetloc', not prepending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lnetloc', prepending" >&5 WRAPPER_LIBS="-lnetloc $WRAPPER_LIBS" fi if test -d ${with_netloc_prefix}/lib64 ; then if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<-L${with_netloc_prefix}/lib64\>" >/dev/null 2>&1; then : echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '-L${with_netloc_prefix}/lib64', not appending" >&5 else echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '-L${with_netloc_prefix}/lib64', appending" >&5 WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS -L${with_netloc_prefix}/lib64" fi netloclibdir="-L${with_netloc_prefix}/lib64" else if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<-L${with_netloc_prefix}/lib\>" >/dev/null 2>&1; then : echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '-L${with_netloc_prefix}/lib', not appending" >&5 else echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '-L${with_netloc_prefix}/lib', appending" >&5 WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS -L${with_netloc_prefix}/lib" fi netloclibdir="-L${with_netloc_prefix}/lib" fi else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include "netloc.h" int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : as_fn_error $? "the Netloc installation seems to be added from system path" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi $as_echo "#define HAVE_NETLOC 1" >>confdefs.h fi fi # ---------------------------------------------------------------------------- # Threads # ---------------------------------------------------------------------------- # # Threads must be supported by the device. First, set the default to # be the highest supported by the device # "runtime" was an old (now deprecated) option; just map it to multiple if test "$enable_threads" = "runtime" ; then enable_threads=multiple ; fi if test "$enable_threads" = "yes" ; then enable_threads=default ; fi if test "$enable_threads" = "no" ; then enable_threads=single ; fi if test "$enable_threads" = default ; then # XXX DJG bug is here, PREREQ is not being used right now if test -n "$MPID_MAX_THREAD_LEVEL" ; then case $MPID_MAX_THREAD_LEVEL in MPI_THREAD_SINGLE) enable_threads=single ;; MPI_THREAD_FUNNELED) enable_threads=funneled ;; MPI_THREAD_SERIALIZED) enable_threads=serialized ;; MPI_THREAD_MULTIPLE) enable_threads=multiple ;; *) as_fn_error $? "Unrecognized thread level from device $MPID_MAX_THREAD_LEVEL" "$LINENO" 5 ;; esac else enable_threads=single fi fi MPICH_THREAD_LEVEL=MPI_THREAD_FUNNELED case "$enable_threads" in single) thread_pkg_required=no MPICH_THREAD_LEVEL=MPI_THREAD_SINGLE ;; funneled) thread_pkg_required=no MPICH_THREAD_LEVEL=MPI_THREAD_FUNNELED ;; serialized) thread_pkg_required=no MPICH_THREAD_LEVEL=MPI_THREAD_SERIALIZED ;; multiple) thread_pkg_required=yes MPICH_THREAD_LEVEL=MPI_THREAD_MULTIPLE ;; *) as_fn_error $? "\"$enable_threads\" is not a valid value for --enable-threads" "$LINENO" 5 ;; esac # Check that the requested thread level is available. threadLevelOK=yes if test ! -z "$MPID_MAX_THREAD_LEVEL" ; then # Check that MPID_MAX_THREAD_LEVEL is at least as large as the # selected MPICH_THREAD_LEVEL case $MPICH_THREAD_LEVEL in MPI_THREAD_MULTIPLE) if test "$MPID_MAX_THREAD_LEVEL" != "MPI_THREAD_MULTIPLE" ; then threadLevelOK=no fi ;; MPI_THREAD_SERIALIZED) if test "$MPID_MAX_THREAD_LEVEL" != "MPI_THREAD_MULTIPLE" -a \ "$MPID_MAX_THREAD_LEVEL" != "MPI_THREAD_SERIALIZED" ; then threadLevelOK=no fi ;; MPI_THREAD_FUNNELED) if test "$MPID_MAX_THREAD_LEVEL" = "MPI_THREAD_SINGLE" ; then threadLevelOK=no fi ;; MPI_THREAD_SINGLE) ;; esac fi if test "$threadLevelOK" != yes ; then as_fn_error $? "The device $with_device does not support $MPICH_THREAD_LEVEL" "$LINENO" 5 fi export MPICH_THREAD_LEVEL cat >>confdefs.h <<_ACEOF #define MPICH_THREAD_LEVEL $MPICH_THREAD_LEVEL _ACEOF if test "$MPICH_THREAD_LEVEL" = "MPI_THREAD_MULTIPLE" ; then $as_echo "#define MPICH_IS_THREADED 1" >>confdefs.h fi # If not in MPI_THREAD_SINGLE, we need -D_REENTRANT to get thread-safe "errno". # Most POSIX systems provide this by default when using -lpthread, but we only use it in MPI_THREAD_MULTIPLE. # Some systems (Solaris) still require an explicit define in any case. if test "$MPICH_THREAD_LEVEL" != "MPI_THREAD_SINGLE"; then if echo "$CPPFLAGS" | $FGREP -e "\<-D_REENTRANT\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-D_REENTRANT', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-D_REENTRANT', appending" >&5 CPPFLAGS="$CPPFLAGS -D_REENTRANT" fi fi # Check for value thread_cs choice; set the refcount default if necessary thread_granularity=MPICH_THREAD_GRANULARITY__SINGLE thread_refcount=MPICH_REFCOUNT__NONE if test "$enable_threads" = "multiple" ; then case $enable_thread_cs in global) thread_granularity=MPICH_THREAD_GRANULARITY__GLOBAL if test "$enable_refcount" = "default" ; then enable_refcount=none ; fi ;; per-object|per_object) thread_granularity=MPICH_THREAD_GRANULARITY__POBJ if test "$enable_refcount" = "default" ; then enable_refcount=lock-free ; fi ;; per-vni|per_vni) thread_granularity=MPICH_THREAD_GRANULARITY__VNI if test "$enable_refcount" = "default" ; then enable_refcount=lock-free ; fi ;; lock-free|lock_free|lockfree) thread_granularity=MPICH_THREAD_GRANULARITY__LOCKFREE if test "$enable_refcount" = "default" ; then enable_refcount=lock-free ; fi if test "$enable_predefined_refcount" = "default" ; then enable_predefined_refcount=no ; fi as_fn_error $? "--enable-thread-cs=lock-free is not supported yet, please select a different granularity" "$LINENO" 5 ;; *) as_fn_error $? "Unrecognized value $enable_thread_cs for --enable-thread-cs" "$LINENO" 5 ;; esac case $enable_refcount in lock-free|lock_free|lockfree) thread_refcount=MPICH_REFCOUNT__LOCKFREE ;; none) thread_refcount=MPICH_REFCOUNT__NONE ;; *) as_fn_error $? "Unrecognized value $enable_refcount for --enable-refcount" "$LINENO" 5 ;; esac fi cat >>confdefs.h <<_ACEOF #define MPICH_THREAD_GRANULARITY $thread_granularity _ACEOF if test "$thread_granularity" = "MPICH_THREAD_GRANULARITY__VNI" -a "$device_name" != "ch4" ; then as_fn_error $? "per-vni critical section granularity is only supported for the ch4 device" "$LINENO" 5 fi if test "$enable_mdta" = "yes" ; then if test "$enable_threads" != "multiple" -o "$device_name" != "ch4" -o "$enable_thread_cs" != "global" ; then as_fn_error $? "--enable-mdta is not supported for this setting" "$LINENO" 5 fi fi if test "$enable_predefined_refcount" = "no" ; then $as_echo "#define MPICH_THREAD_SUPPRESS_PREDEFINED_REFCOUNTS 1" >>confdefs.h fi cat >>confdefs.h <<_ACEOF #define MPICH_THREAD_REFCOUNT $thread_refcount _ACEOF # enable-g # strip off multiple options, separated by commas save_IFS="$IFS" IFS="," for option in $enable_g ; do case "$option" in debug|dbg) enable_append_g=yes ;; no|none) ;; handlealloc) perform_handlealloc=yes ;; handle) perform_handle=yes ;; meminit) perform_meminit=yes ;; memarena) perform_memarena=yes perform_memtracing=yes ;; mem) perform_memtracing=yes ;; mutex) perform_dbgmutex=yes ;; mutexnesting) perform_mutexnesting=yes ;; most|yes) perform_memtracing=yes enable_append_g=yes perform_meminit=yes perform_dbgmutex=yes perform_mutexnesting=yes perform_handlealloc=yes perform_handle=yes ;; all) perform_memarena=yes perform_memtracing=yes enable_append_g=yes perform_meminit=yes perform_dbgmutex=yes perform_mutexnesting=yes perform_handlealloc=yes perform_handle=yes ;; *) IFS=$save_IFS { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value $option for enable-g" >&5 $as_echo "$as_me: WARNING: Unknown value $option for enable-g" >&2;} IFS="," ;; esac done IFS="$save_IFS" if test "$enable_append_g" = "yes" ; then if echo "$CFLAGS" | $FGREP -e "\<-g\>" >/dev/null 2>&1; then : echo "CFLAGS(='$CFLAGS') contains '-g', not appending" >&5 else echo "CFLAGS(='$CFLAGS') does not contain '-g', appending" >&5 CFLAGS="$CFLAGS -g" fi if echo "$CXXFLAGS" | $FGREP -e "\<-g\>" >/dev/null 2>&1; then : echo "CXXFLAGS(='$CXXFLAGS') contains '-g', not appending" >&5 else echo "CXXFLAGS(='$CXXFLAGS') does not contain '-g', appending" >&5 CXXFLAGS="$CXXFLAGS -g" fi if echo "$FFLAGS" | $FGREP -e "\<-g\>" >/dev/null 2>&1; then : echo "FFLAGS(='$FFLAGS') contains '-g', not appending" >&5 else echo "FFLAGS(='$FFLAGS') does not contain '-g', appending" >&5 FFLAGS="$FFLAGS -g" fi if echo "$FCFLAGS" | $FGREP -e "\<-g\>" >/dev/null 2>&1; then : echo "FCFLAGS(='$FCFLAGS') contains '-g', not appending" >&5 else echo "FCFLAGS(='$FCFLAGS') does not contain '-g', appending" >&5 FCFLAGS="$FCFLAGS -g" fi if echo "$WRAPPER_CFLAGS" | $FGREP -e "\<-g\>" >/dev/null 2>&1; then : echo "WRAPPER_CFLAGS(='$WRAPPER_CFLAGS') contains '-g', not appending" >&5 else echo "WRAPPER_CFLAGS(='$WRAPPER_CFLAGS') does not contain '-g', appending" >&5 WRAPPER_CFLAGS="$WRAPPER_CFLAGS -g" fi if echo "$WRAPPER_CXXFLAGS" | $FGREP -e "\<-g\>" >/dev/null 2>&1; then : echo "WRAPPER_CXXFLAGS(='$WRAPPER_CXXFLAGS') contains '-g', not appending" >&5 else echo "WRAPPER_CXXFLAGS(='$WRAPPER_CXXFLAGS') does not contain '-g', appending" >&5 WRAPPER_CXXFLAGS="$WRAPPER_CXXFLAGS -g" fi if echo "$WRAPPER_FFLAGS" | $FGREP -e "\<-g\>" >/dev/null 2>&1; then : echo "WRAPPER_FFLAGS(='$WRAPPER_FFLAGS') contains '-g', not appending" >&5 else echo "WRAPPER_FFLAGS(='$WRAPPER_FFLAGS') does not contain '-g', appending" >&5 WRAPPER_FFLAGS="$WRAPPER_FFLAGS -g" fi if echo "$WRAPPER_FCFLAGS" | $FGREP -e "\<-g\>" >/dev/null 2>&1; then : echo "WRAPPER_FCFLAGS(='$WRAPPER_FCFLAGS') contains '-g', not appending" >&5 else echo "WRAPPER_FCFLAGS(='$WRAPPER_FCFLAGS') does not contain '-g', appending" >&5 WRAPPER_FCFLAGS="$WRAPPER_FCFLAGS -g" fi fi if test -n "$perform_meminit" ; then $as_echo "#define MPICH_DEBUG_MEMINIT 1" >>confdefs.h fi if test "$perform_handlealloc" = yes ; then $as_echo "#define MPICH_DEBUG_HANDLEALLOC 1" >>confdefs.h fi if test "X$perform_handle" = "Xyes"; then : $as_echo "#define MPICH_DEBUG_HANDLES 1" >>confdefs.h fi if test -n "$perform_memtracing" ; then enable_g_mem=yes $as_echo "#define USE_MEMORY_TRACING 1" >>confdefs.h if test -n "$perform_memarena" ; then $as_echo "#define MPICH_DEBUG_MEMARENA 1" >>confdefs.h fi fi if test -n "$perform_dbgmutex" ; then $as_echo "#define MPICH_DEBUG_MUTEX 1" >>confdefs.h fi pac_cross_compiling=no if test "$with_cross" != "no" ; then if test -s "$with_cross" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Reading values from cross-compilation file $with_cross" >&5 $as_echo "Reading values from cross-compilation file $with_cross" >&6; } . $with_cross # Autoconf 2.52 no longer sets cross_compiling except with the # awkward "targethost" options. pac_cross_compiling=yes cross_compiling=yes ac_cv_prog_cc_cross=yes ac_cv_prog_f77_cross=yes ac_cv_prog_fc_cross=yes ac_cv_prog_cxx_cross=yes export cross_compiling # Export all cross variables. Any subsidiary configure should also # export CROSS_xxx rm -f confcross (set) 2>&1 | grep CROSS_ | \ sed -e 's/^/export /g' -e 's/=.*//g' > confcross . ./confcross rm -f confcross fi fi # This goes here because we need the top_srcdir if test "$enable_romio" = "yes" ; then if test -d $use_top_srcdir/src/mpi/romio ; then subsystems="$subsystems src/mpi/romio" $as_echo "#define HAVE_ROMIO 1" >>confdefs.h # make it possible to "#include" mpio.h at build time # # This ought to be sufficient, but there is also a symlink setup in # src/include to accomodate current mpicc limitations. See # src/mpi/Makefile.mk for more info. if echo "$CPPFLAGS" | $FGREP -e "\<-I${master_top_builddir}/src/mpi/romio/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${master_top_builddir}/src/mpi/romio/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${master_top_builddir}/src/mpi/romio/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${master_top_builddir}/src/mpi/romio/include" fi # Set environment variables that the romio configure expects export use_top_srcdir top_build_dir=`pwd` export top_build_dir # if there is no $top_build_dir/lib, romio puts lib in wrong place # This test used -e under Linux, but not all test programs understand # -e if test ! -d lib ; then mkdir lib ; fi # tell mpi.h to include mpio.h if test "$enable_romio" = "yes" ; then HAVE_ROMIO='#include "mpio.h"'; fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ROMIO src directory is not available" >&5 $as_echo "$as_me: WARNING: ROMIO src directory is not available" >&2;} fi fi if test x$enable_romio = xyes; then BUILD_ROMIO_TRUE= BUILD_ROMIO_FALSE='#' else BUILD_ROMIO_TRUE='#' BUILD_ROMIO_FALSE= fi # # FIXME: If an external device, don't necessarily complain (e.g., # if the device is already built) if test ! -d $devicedir ; then as_fn_error $? "Device $device_name is unknown" "$LINENO" 5 elif test -f $devicedir/subconfigure.m4 ; then # this is a new-style subconfigure device, don't add it as a subsystem : elif test ! -x $devicedir/configure ; then if test -s $devicedir/configure ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The configure in $devicedir exists but is not executable" >&5 $as_echo "$as_me: WARNING: The configure in $devicedir exists but is not executable" >&2;} else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Device $device_name has no configure" >&5 $as_echo "$as_me: WARNING: Device $device_name has no configure" >&2;} fi device_name="" else # Add the device to the configure list devsubsystems="$devsubsystems $devicereldir" # Make device_name available to subdirs fi # Check whether --with-pmix was given. if test "${with_pmix+set}" = set; then : withval=$with_pmix; else with_pmix= fi # Check whether --with-pmix-include was given. if test "${with_pmix_include+set}" = set; then : withval=$with_pmix_include; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-pmix-include=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-pmix-include=PATH expects a valid PATH" >&2;} with_pmix_include="" ;; #( *) : ;; esac fi # Check whether --with-pmix-lib was given. if test "${with_pmix_lib+set}" = set; then : withval=$with_pmix_lib; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-pmix-lib=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-pmix-lib=PATH expects a valid PATH" >&2;} with_pmix_lib="" ;; #( *) : ;; esac fi # The args have been sanitized into empty/non-empty values above. # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options # taking priority if test -n "${with_pmix_include}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_pmix_include}\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_pmix_include}', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_pmix_include}', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_pmix_include}" fi else if test -n "${with_pmix}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_pmix}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_pmix}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_pmix}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_pmix}/include" fi fi fi if test -n "${with_pmix_lib}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_pmix_lib}\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_pmix_lib}', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_pmix_lib}', appending" >&5 LDFLAGS="$LDFLAGS -L${with_pmix_lib}" fi else if test -n "${with_pmix}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_pmix}/lib\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_pmix}/lib', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_pmix}/lib', appending" >&5 LDFLAGS="$LDFLAGS -L${with_pmix}/lib" fi if test -d "${with_pmix}/lib64"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_pmix}/lib64\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_pmix}/lib64', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_pmix}/lib64', appending" >&5 LDFLAGS="$LDFLAGS -L${with_pmix}/lib64" fi fi fi fi if test -n "${with_pmix}" -a "${with_pmix}" != "no" ; then # disable built-in PMI and process managers with_pmi="no" with_pm="no" if test "${device_name}" != "ch4" ; then as_fn_error $? "$device_name does not support PMIx" "$LINENO" 5 fi if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` failure=no ac_fn_c_check_header_mongrel "$LINENO" "pmix.h" "ac_cv_header_pmix_h" "$ac_includes_default" if test "x$ac_cv_header_pmix_h" = xyes; then : else failure=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PMIx_Init in -lpmix" >&5 $as_echo_n "checking for PMIx_Init in -lpmix... " >&6; } if ${ac_cv_lib_pmix_PMIx_Init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpmix $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char PMIx_Init (); int main () { return PMIx_Init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pmix_PMIx_Init=yes else ac_cv_lib_pmix_PMIx_Init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pmix_PMIx_Init" >&5 $as_echo "$ac_cv_lib_pmix_PMIx_Init" >&6; } if test "x$ac_cv_lib_pmix_PMIx_Init" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBPMIX 1 _ACEOF LIBS="-lpmix $LIBS" else failure=yes fi if test "$failure" = "no" ; then success=yes else success=no fi if test "$success" = "no" ; then as_fn_error $? "'pmix.h or libpmix library not found. Did you specify --with-pmix= or --with-pmix-include= or --with-pmix-lib=?'" "$LINENO" 5 fi if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lpmix\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lpmix', not appending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lpmix', appending" >&5 WRAPPER_LIBS="$WRAPPER_LIBS -lpmix" fi pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" $as_echo "#define USE_PMIX_API 1" >>confdefs.h fi # with-pm if test "$with_pm" = "none" ; then # add "none" as synonym for "no" to agree with older erroneous docs with_pm="no" fi if test "$MPID_NO_PM" = yes ; then if test "$with_pm" != "default" -a "$with_pm" != no ; then as_fn_error $? "The PM chosen ($with_pm) is is not valid for the selected device ($with_device)" "$LINENO" 5 fi # This is used to change with_pm=default to with_pm=no in the case # where the device does not want a PM with_pm=no fi if test -z "$with_pm" ; then with_pm="no" fi if test "$with_pmi" = "uni" -a "$with_pm" = "default" ; then with_pm="no" fi if test "$with_pm" = "default" -o "$with_pm" = "yes" ; then if test ! -z "$MPID_DEFAULT_PM" ; then with_pm=${MPID_DEFAULT_PM} else with_pm=hydra fi fi # We allow multiple pm names, separated by : or , if test "$with_pm" != "no" ; then pm_names="`echo $with_pm | sed -e 's/:/ /g' -e 's/,/ /g'`" else pm_names="" fi # hasError=no # We need to be careful about PM's that have either conflicting # requirements (e.g., different PMI implementations) or different # optional features (e.g., MPID_PM_NAMESERVER). # In addition, we need to interleave the setup of the PMI and PM # modules. The order is as follows: # # For each PM, execute the mpichprereq script for that pm (if present). # This script provides information about the PM, including which PMI # implementations are supported. # # Then, for the selected PMI, the setup script (if any) is run. This is # necessary because the setup of the PM may require information discovered # or provided duing the PMI setup step. # # Finally, for each PM, the setup script is executed. # # Step 1: invoke the mpichprereq for each PM for pm_name in $pm_names ; do if test -z "$first_pm_name" ; then first_pm_name=$pm_name export first_pm_name fi if test ! -d $use_top_srcdir/src/pm/$pm_name ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $use_top_srcdir/src/pm/$pm_name does not exist. PM is unknown" >&5 $as_echo "$as_me: WARNING: $use_top_srcdir/src/pm/$pm_name does not exist. PM is unknown" >&2;} hasError=yes elif test ! -x $use_top_srcdir/src/pm/$pm_name/configure -a \ ! -f $use_top_srcdir/src/pm/$pm_name/subconfigure.m4 ; then if test -s $use_top_srcdir/src/pm/$pm_name/configure ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The configure in $use_top_srcdir/src/pm/$pm_name exists but is not executable" >&5 $as_echo "$as_me: WARNING: The configure in $use_top_srcdir/src/pm/$pm_name exists but is not executable" >&2;} else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pm $pm_name has no configure or subconfigure.m4" >&5 $as_echo "$as_me: WARNING: pm $pm_name has no configure or subconfigure.m4" >&2;} fi pm_name="" hasError=yes else nameserver=$MPID_PM_NAMESERVER if test -f $use_top_srcdir/src/pm/$pm_name/mpichprereq ; then echo sourcing $use_top_srcdir/src/pm/$pm_name/mpichprereq . $use_top_srcdir/src/pm/$pm_name/mpichprereq fi # Check for a change; if found, we'll take the default if test "$MPID_PM_NAMESERVER" != "$nameserver" ; then if test "$first_pm_name" != "$pm_name" ; then # Reject suggestion (use the default, common mode) MPID_PM_NAMESERVER="" fi fi fi done if test "$hasError" != no ; then as_fn_error $? "Aborting configure because an error was seen in the selection of process managers" "$LINENO" 5 fi # # pm_name is the *primary* pm pm_name=$first_pm_name # Step 2: # Once we've selected the process manager (or managers), we can # check that we have a compatible PMI implemenatation. # with-pmi if test "$with_pmi" != "no" ; then if test "$with_pmi" = "default" -o "$with_pmi" = "yes" ; then if test -n "$PM_REQUIRES_PMI" ; then with_pmi=$PM_REQUIRES_PMI else with_pmi=simple fi elif test -n "$PM_REQUIRES_PMI" ; then # Test for compatibility between pm and pmi choices if test "$PM_REQUIRES_PMI" != "$with_pmi" ; then as_fn_error $? "The PM chosen ($with_pm) requires the PMI implementation $PM_REQUIRES_PMI but $with_pmi was selected as the PMI implementation." "$LINENO" 5 fi fi pmi_name=$with_pmi if test ! -d $use_top_srcdir/src/pmi/$pmi_name ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $use_top_srcdir/src/pmi/$pmi_name does not exist. PMI is unknown" >&5 $as_echo "$as_me: WARNING: $use_top_srcdir/src/pmi/$pmi_name does not exist. PMI is unknown" >&2;} elif test ! -x $use_top_srcdir/src/pmi/$pmi_name/configure ; then if test ! -f $use_top_srcdir/src/pmi/$pmi_name/subconfigure.m4 ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pmi $pmi_name has no configure or subconfigure.m4" >&5 $as_echo "$as_me: WARNING: pmi $pmi_name has no configure or subconfigure.m4" >&2;} pmi_name="" fi else # only add to subsystems if a full configure is present subsystems="$subsystems src/pmi/$pmi_name" fi fi # Step 3: complete pm setup. # Note that checks for errors have already been performed, so this # loop does not need to perform any extra error checks. # Note that this uses this_pm_name because pm_name must be the *first* # of the PM names for this_pm_name in $pm_names ; do # only add the PM to the subsystems if it has a full configure to be # executed if test -f $use_top_srcdir/src/pm/$this_pm_name/configure ; then subsystems="$subsystems src/pm/$this_pm_name" fi if test -f $use_top_srcdir/src/pm/$this_pm_name/setup_pm ; then echo sourcing $use_top_srcdir/src/pm/$this_pm_name/setup_pm . $use_top_srcdir/src/pm/$this_pm_name/setup_pm fi done # Check for whether the compiler defines a symbol that contains the # function name. The MPICH code, for greater portability, defines # its own symbols, FCNAME (a string) and FUNCNAME (a token that is not a # string). Code should use these symbols where possible. However, # some debugging macros may want to use a compiler-provided symbol # for the function name, and this check makes it possible to # define such macros in a way that is always correct. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler defines __func__" >&5 $as_echo_n "checking whether the compiler defines __func__... " >&6; } if ${pac_cv_have__func__+:} false; then : $as_echo_n "(cached) " >&6 else tmp_am_cross=no if test "$cross_compiling" = yes; then : tmp_am_cross=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int foo(void); int foo(void) { return (strcmp(__func__, "foo") == 0); } int main(int argc, char ** argv) { return (foo() ? 0 : 1); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : pac_cv_have__func__=yes else pac_cv_have__func__=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$tmp_am_cross" = yes ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int foo(void); int foo(void) { return (strcmp(__func__, "foo") == 0); } int main(int argc, char ** argv) { return (foo() ? 0 : 1); } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_cv_have__func__=yes else pac_cv_have__func__=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have__func__" >&5 $as_echo "$pac_cv_have__func__" >&6; } if test "$pac_cv_have__func__" = "yes" ; then $as_echo "#define HAVE__FUNC__ /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler defines __FUNC__" >&5 $as_echo_n "checking whether the compiler defines __FUNC__... " >&6; } if ${pac_cv_have_cap__func__+:} false; then : $as_echo_n "(cached) " >&6 else tmp_am_cross=no if test "$cross_compiling" = yes; then : tmp_am_cross=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int foo(void); int foo(void) { return (strcmp(__FUNC__, "foo") == 0); } int main(int argc, char ** argv) { return (foo() ? 0 : 1); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : pac_cv_have_cap__func__=yes else pac_cv_have_cap__func__=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$tmp_am_cross" = yes ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int foo(void); int foo(void) { return (strcmp(__FUNC__, "foo") == 0); } int main(int argc, char ** argv) { return (foo() ? 0 : 1); } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_cv_have__func__=yes else pac_cv_have__func__=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_cap__func__" >&5 $as_echo "$pac_cv_have_cap__func__" >&6; } if test "$pac_cv_have_cap__func__" = "yes" ; then $as_echo "#define HAVE_CAP__FUNC__ /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler sets __FUNCTION__" >&5 $as_echo_n "checking whether the compiler sets __FUNCTION__... " >&6; } if ${pac_cv_have__function__+:} false; then : $as_echo_n "(cached) " >&6 else tmp_am_cross=no if test "$cross_compiling" = yes; then : tmp_am_cross=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int foo(void); int foo(void) { return (strcmp(__FUNCTION__, "foo") == 0); } int main(int argc, char ** argv) { return (foo() ? 0 : 1); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : pac_cv_have__function__=yes else pac_cv_have__function__=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$tmp_am_cross" = yes ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int foo(void); int foo(void) { return (strcmp(__FUNCTION__, "foo") == 0); } int main(int argc, char ** argv) { return (foo() ? 0 : 1); } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_cv_have__func__=yes else pac_cv_have__func__=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have__function__" >&5 $as_echo "$pac_cv_have__function__" >&6; } if test "$pac_cv_have__function__" = "yes" ; then $as_echo "#define HAVE__FUNCTION__ /**/" >>confdefs.h fi # Check if $MPI_DEFAULT_COPTS is valid with $CC if test -n "$MPI_DEFAULT_COPTS" ; then if test "$enable_check_compiler_flags" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts option $MPI_DEFAULT_COPTS" >&5 $as_echo_n "checking whether C compiler accepts option $MPI_DEFAULT_COPTS... " >&6; } pac_opt="$MPI_DEFAULT_COPTS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CFLAGS_orig="$CFLAGS" CFLAGS_opt="$pac_opt $CFLAGS" pac_result="unknown" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include const char hw[] = "Hello, World\n"; int main () { fputs (hw, stdout); ; return 0; } _ACEOF CFLAGS="$CFLAGS_orig" rm -f pac_test1.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`" if ac_fn_c_try_link "$LINENO"; then : CFLAGS="$CFLAGS_opt" rm -f pac_test2.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`" if ac_fn_c_try_link "$LINENO"; then : pac_TESTLOG="pac_test.log" rm -f $pac_TESTLOG if { $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5 (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; }; then : pac_result=yes else $as_echo "$as_me: program exited with status $ac_status" >&5 (exit $ac_status) $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5 cat $pac_TESTLOG >&5 pac_result=no fi rm -f $pac_TESTLOG else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5 $as_echo "$pac_result" >&6; } rm -f conftest.$ac_ext # gcc 4.2.4 on 32-bit does not complain about the -Wno-type-limits option # even though it doesn't support it. However, when another warning is # triggered, it gives an error that the option is not recognized. So we # need to test with a conftest file that will generate warnings. # # add an extra switch, pac_c_check_compiler_option_prototest, to # disable this test just in case some new compiler does not like it. # # Linking with a program with an invalid prototype to ensure a compiler warning. if test "$pac_result" = "yes" \ -a "$pac_c_check_compiler_option_prototest" != "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler option $MPI_DEFAULT_COPTS works with an invalid prototype program" >&5 $as_echo_n "checking whether C compiler option $MPI_DEFAULT_COPTS works with an invalid prototype program... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main(int argc, char **argv){ int foo, bar = 0; foo += 1; return foo; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_result=yes else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5 $as_echo "$pac_result" >&6; } fi # if test "$pac_result" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5 $as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; } pac_result=unknown CFLAGS="$CFLAGS_orig" rm -f pac_test3.log # START of PUSHVAL if ${pac_stk_ac_compile_level+:} false; then : as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val else pac_stk_ac_compile_level=0 fi eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile" if test "x$pac_stk_ac_compile_level" = x0; then : eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level fi eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level # END of PUSHVAL ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(void); int foo(void){return 0;} _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } saved_LIBS="$LIBS" LIBS="pac_conftest.$OBJEXT $LIBS" rm -f pac_test4.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : CFLAGS="$CFLAGS_opt" rm -f pac_test5.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test5.log 2>\&1|g'`" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_TESTLOG="pac_test.log" rm -f $pac_TESTLOG if { $as_echo "$as_me:$LINENO: diff -b pac_test4.log pac_test5.log > $pac_TESTLOG" >&5 (eval diff -b pac_test4.log pac_test5.log > $pac_TESTLOG) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; }; then : pac_result=yes else $as_echo "$as_me: program exited with status $ac_status" >&5 (exit $ac_status) $as_echo "*** diff -b pac_test4.log pac_test5.log :" >&5 cat $pac_TESTLOG >&5 pac_result=no fi rm -f $pac_TESTLOG else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL LIBS="$saved_LIBS" rm -f pac_conftest.$OBJEXT else pac_result=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # START of POPVAL if ${pac_stk_ac_compile_level+:} false; then : if test "x$pac_stk_ac_compile_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;} else eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level as_fn_arith $pac_stk_ac_compile_level - 1 && pac_stk_ac_compile_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;} fi # END of POPVAL { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5 $as_echo "$pac_result" >&6; } rm -f pac_test3.log pac_test4.log pac_test5.log fi rm -f pac_test1.log pac_test2.log CFLAGS="$CFLAGS_orig" if test "$pac_result" = "yes" ; then CFLAGS="$CFLAGS $MPI_DEFAULT_COPTS" else : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu else CFLAGS="$CFLAGS $MPI_DEFAULT_COPTS" fi fi # --------------------------------------------------------------------------- # determine rpath and other shared library flags for CC # src/env may not exist yet in a vpath build $MKDIR_P src/env cc_shlib_conf=src/env/cc_shlib.conf # It appears that the libtool dynamic linking strategy on Darwin is this: # 1. Link all shared libs with "-install_name /full/path/to/libfoo.dylib" # 2. Don't do anything special when linking programs, since it seems that the # darwin dynamic linker will always use the "install_name" field from the lib # that was found at program link-time. (CONFIRMED) This is in opposition to # the way that Linux does it, where specifying a "-rpath" argument at program # link-time is important. # # There is an alternative darwin strategy for versions # >= 10.5, see this: http://www.cmake.org/pipermail/cmake/2010-August/038970.html # (goodell@ 2011-06-17) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library (esp. rpath) characteristics of CC" >&5 $as_echo_n "checking for shared library (esp. rpath) characteristics of CC... " >&6; } # unfortunately, config.rpath expects the compiler in question is always CC and # uses several other environment variables as input if test -z "${pac_save_CC_nesting}" ; then pac_save_CC_nesting=0 fi eval pac_save_CC_${pac_save_CC_nesting}='"$CC"' pac_save_CC_nesting=`expr ${pac_save_CC_nesting} + 1` if test -z "${pac_save_GCC_nesting}" ; then pac_save_GCC_nesting=0 fi eval pac_save_GCC_${pac_save_GCC_nesting}='"$GCC"' pac_save_GCC_nesting=`expr ${pac_save_GCC_nesting} + 1` if test -z "${pac_save_LD_nesting}" ; then pac_save_LD_nesting=0 fi eval pac_save_LD_${pac_save_LD_nesting}='"$LD"' pac_save_LD_nesting=`expr ${pac_save_LD_nesting} + 1` # these two don't currently get overridden, but we push/pop them for safety in # case they do in the future if test -z "${pac_save_LDFLAGS_nesting}" ; then pac_save_LDFLAGS_nesting=0 fi eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"' pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1` if test -z "${pac_save_with_gnu_ld_nesting}" ; then pac_save_with_gnu_ld_nesting=0 fi eval pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}='"$with_gnu_ld"' pac_save_with_gnu_ld_nesting=`expr ${pac_save_with_gnu_ld_nesting} + 1` # set the temporary override values (if any) : # ensure the values are available to the script export CC export GCC export LDFLAGS export LD export with_gnu_ld if $ac_aux_dir/config.rpath "$host" > $cc_shlib_conf; then : : else as_fn_error $? "unable to execute $ac_aux_dir/config.rpath" "$LINENO" 5 fi C_LINKPATH_SHL="" rm -f conftest.out # restore the old values pac_save_with_gnu_ld_nesting=`expr ${pac_save_with_gnu_ld_nesting} - 1` eval with_gnu_ld="\$pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}" eval pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}="" pac_save_LD_nesting=`expr ${pac_save_LD_nesting} - 1` eval LD="\$pac_save_LD_${pac_save_LD_nesting}" eval pac_save_LD_${pac_save_LD_nesting}="" pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1` eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}" eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}="" pac_save_GCC_nesting=`expr ${pac_save_GCC_nesting} - 1` eval GCC="\$pac_save_GCC_${pac_save_GCC_nesting}" eval pac_save_GCC_${pac_save_GCC_nesting}="" pac_save_CC_nesting=`expr ${pac_save_CC_nesting} - 1` eval CC="\$pac_save_CC_${pac_save_CC_nesting}" eval pac_save_CC_${pac_save_CC_nesting}="" { $as_echo "$as_me:${as_lineno-$LINENO}: result: done (results in $cc_shlib_conf)" >&5 $as_echo "done (results in $cc_shlib_conf)" >&6; } # output rpath flags in a usable format for mpich.pc (pkg-config) if test "X$enable_wrapper_rpath" = "Xyes"; then eval WRAPPER_RPATH_LDFLAGS=\"$hardcode_libdir_flag_spec\" fi # --------------------------------------------------------------------------- # Support for MPI_T performance variables # enable-mpit-pvars # strip off multiple options, separated by commas save_IFS="$IFS" IFS="," for var in $enable_mpit_pvars ; do case "$var" in #( nem) : enable_pvar_nem=yes ;; #( recvq) : enable_pvar_recvq=yes ;; #( rma) : enable_pvar_rma=yes ;; #( dims) : enable_pvar_dims=yes ;; #( all|yes) : enable_pvar_nem=yes enable_pvar_recvq=yes enable_pvar_rma=yes enable_pvar_dims=yes ;; #( no|none) : ;; #( *) : IFS=$save_IFS { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value ($option) for enable-mpit-pvars" >&5 $as_echo "$as_me: WARNING: Unknown value ($option) for enable-mpit-pvars" >&2;} IFS="," ;; esac done IFS="$save_IFS" if test -n "$enable_pvar_nem" ; then status_nem_pvars=1 else status_nem_pvars=0 fi cat >>confdefs.h <<_ACEOF #define ENABLE_PVAR_NEM $status_nem_pvars _ACEOF if test -n "$enable_pvar_recvq" ; then status_recvq_pvars=1 else status_recvq_pvars=0 fi cat >>confdefs.h <<_ACEOF #define ENABLE_PVAR_RECVQ $status_recvq_pvars _ACEOF if test -n "$enable_pvar_rma" ; then status_rma_pvars=1 else status_rma_pvars=0 fi cat >>confdefs.h <<_ACEOF #define ENABLE_PVAR_RMA $status_rma_pvars _ACEOF if test -n "$enable_pvar_dims" ; then status_dims_pvars=1 else status_dims_pvars=0 fi cat >>confdefs.h <<_ACEOF #define ENABLE_PVAR_DIMS $status_dims_pvars _ACEOF # --------------------------------------------------------------------------- # Support for the language bindings: Fortran 77, Fortran 90, and C++ # # First, we handle the case of no explicit enable/disable option. In that # case, we look for a usable compiler. We cannot use the ac macros for this # because they abort the configure step if they fail to find a compiler # (earlier versions of autoconf did not have this behavior!). # # Second, we perform the langugage-specific tests, if necessary. This may # be relatively simple (C++) or complex (Fortran 77, including formation of # the encoded MPI handles). # # Note that the bindings support needs to know some of the properties of # the C compiler, so those tests (particularly for weak symbols) # must come first. # ---------------------------------------------------------------------------- # # First, determine whether we are/can support the language bindings # # Since F90/F90FLAGS are replaced by FC/FCFLAGS, rather than silently # substituting them, i.e. FC=$F90 and FCFLAGS=$F90FLAGS, we choose to emit # an error message and abort to avoid any ambiguous/hidden bug in choosing # Fortran90 compilers. if test -n "$F90" -o -n "$F90FLAGS" ; then as_fn_error $? "F90 and F90FLAGS are replaced by FC and FCFLAGS respectively in this configure, please unset F90/F90FLAGS and set FC/FCFLAGS instead and rerun configure again." "$LINENO" 5 fi # ---------------------------------------------------------------------------- # Handle default choices for the Fortran compilers # Note that these have already been set above if test "$enable_f77" = "yes"; then if test "$F77" = "" -o "$F77" = "no"; then # No Fortran 77 compiler found; abort as_fn_error $? "No Fortran 77 compiler found. If you don't need to build any Fortran programs, you can disable Fortran support using --disable-fortran. If you do want to build Fortran programs, you need to install a Fortran compiler such as gfortran or ifort before you can proceed." "$LINENO" 5 fi fi if test "$enable_f77" = yes ; then # Check if $MPI_DEFAULT_FOPTS is valid with $F77 if test -n "$MPI_DEFAULT_FOPTS" ; then if test "$enable_check_compiler_flags" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran 77 compiler accepts option $MPI_DEFAULT_FOPTS" >&5 $as_echo_n "checking whether Fortran 77 compiler accepts option $MPI_DEFAULT_FOPTS... " >&6; } pac_opt="$MPI_DEFAULT_FOPTS" ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu FFLAGS_orig="$FFLAGS" FFLAGS_opt="$pac_opt $FFLAGS" pac_result="unknown" cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF FFLAGS="$FFLAGS_orig" rm -f pac_test1.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`" if ac_fn_f77_try_link "$LINENO"; then : FFLAGS="$FFLAGS_opt" rm -f pac_test2.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`" if ac_fn_f77_try_link "$LINENO"; then : pac_TESTLOG="pac_test.log" rm -f $pac_TESTLOG if { $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5 (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; }; then : pac_result=yes else $as_echo "$as_me: program exited with status $ac_status" >&5 (exit $ac_status) $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5 cat $pac_TESTLOG >&5 pac_result=no fi rm -f $pac_TESTLOG else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5 $as_echo "$pac_result" >&6; } rm -f conftest.$ac_ext # if test "$pac_result" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5 $as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; } pac_result=unknown FFLAGS="$FFLAGS_orig" rm -f pac_test3.log # START of PUSHVAL if ${pac_stk_ac_compile_level+:} false; then : as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val else pac_stk_ac_compile_level=0 fi eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile" if test "x$pac_stk_ac_compile_level" = x0; then : eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level fi eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level # END of PUSHVAL ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`" cat > conftest.$ac_ext <<_ACEOF subroutine try() end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } saved_LIBS="$LIBS" LIBS="pac_conftest.$OBJEXT $LIBS" FFLAGS="$FFLAGS_opt" rm -f pac_test4.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`" cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_f77_try_link "$LINENO"; then : pac_TESTLOG="pac_test.log" rm -f $pac_TESTLOG if { $as_echo "$as_me:$LINENO: diff -b pac_test2.log pac_test4.log > $pac_TESTLOG" >&5 (eval diff -b pac_test2.log pac_test4.log > $pac_TESTLOG) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; }; then : pac_result=yes else $as_echo "$as_me: program exited with status $ac_status" >&5 (exit $ac_status) $as_echo "*** diff -b pac_test2.log pac_test4.log :" >&5 cat $pac_TESTLOG >&5 pac_result=no fi rm -f $pac_TESTLOG else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL LIBS="$saved_LIBS" rm -f pac_conftest.$OBJEXT else pac_result=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # START of POPVAL if ${pac_stk_ac_compile_level+:} false; then : if test "x$pac_stk_ac_compile_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;} else eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level as_fn_arith $pac_stk_ac_compile_level - 1 && pac_stk_ac_compile_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;} fi # END of POPVAL { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5 $as_echo "$pac_result" >&6; } rm -f pac_test3.log pac_test4.log fi rm -f pac_test1.log pac_test2.log FFLAGS="$FFLAGS_orig" if test "$pac_result" = "yes" ; then FFLAGS="$FFLAGS $MPI_DEFAULT_FOPTS" else : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu else FFLAGS="$FFLAGS $MPI_DEFAULT_FOPTS" fi fi fi # # We need to know the name mangling for Fortran before testing for FC # compatibility (we need this because of the way we decide to generate # the Fortran 77 bindings) if test "$enable_f77" = yes ; then FLIBS_save="$FLIBS" FLIBS="" ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5 $as_echo_n "checking how to get verbose linking output from $F77... " >&6; } if ${ac_cv_prog_f77_v+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : ac_cv_prog_f77_v= # Try some options frequently used verbose output for ac_verb in -v -verbose --verbose -V -\#\#\#; do cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF # Compile and link our simple test program by passing a flag (argument # 1 to this macro) to the Fortran compiler in order to get # "verbose" output that we can then parse for the Fortran linker # flags. ac_save_FFLAGS=$FFLAGS FFLAGS="$FFLAGS $ac_verb" eval "set x $ac_link" shift $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, # LIBRARY_PATH; skip all such settings. ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | sed '/^Driving:/d; /^Configured with:/d; '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` $as_echo "$ac_f77_v_output" >&5 FFLAGS=$ac_save_FFLAGS rm -rf conftest* # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where # /foo, /bar, and /baz are search directories for the Fortran linker. # Here, we change these into -L/foo -L/bar -L/baz (and put it first): ac_f77_v_output="`echo $ac_f77_v_output | grep 'LPATH is:' | sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" # FIXME: we keep getting bitten by quoted arguments; a more general fix # that detects unbalanced quotes in FLIBS should be implemented # and (ugh) tested at some point. case $ac_f77_v_output in # With xlf replace commas with spaces, # and remove "-link" and closing parenthesis. *xlfentry*) ac_f77_v_output=`echo $ac_f77_v_output | sed ' s/,/ /g s/ -link / /g s/) *$// ' ` ;; # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted # $LIBS confuse us, and the libraries appear later in the output anyway). *mGLOB_options_string*) ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; # Portland Group compiler has singly- or doubly-quoted -cmdline argument # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". *-cmdline\ * | *-ignore\ * | *-def\ *) ac_f77_v_output=`echo $ac_f77_v_output | sed "\ s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. *fort77*f2c*gcc*) ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n ' /:[ ]\+Running[ ]\{1,\}"gcc"/{ /"-c"/d /[.]c"*/d s/^.*"gcc"/"gcc"/ s/"//gp }'` ;; # If we are using Cray Fortran then delete quotes. *cft90*) ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; esac # look for -l* and *.a constructs in the output for ac_arg in $ac_f77_v_output; do case $ac_arg in [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) ac_cv_prog_f77_v=$ac_verb break 2 ;; esac done done if test -z "$ac_cv_prog_f77_v"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 $as_echo "$as_me: WARNING: compilation failed" >&2;} fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5 $as_echo "$ac_cv_prog_f77_v" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5 $as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; } if ${ac_cv_f77_libs+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$FLIBS" != "x"; then ac_cv_f77_libs="$FLIBS" # Let the user override the test. else cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF # Compile and link our simple test program by passing a flag (argument # 1 to this macro) to the Fortran compiler in order to get # "verbose" output that we can then parse for the Fortran linker # flags. ac_save_FFLAGS=$FFLAGS FFLAGS="$FFLAGS $ac_cv_prog_f77_v" eval "set x $ac_link" shift $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, # LIBRARY_PATH; skip all such settings. ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | sed '/^Driving:/d; /^Configured with:/d; '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` $as_echo "$ac_f77_v_output" >&5 FFLAGS=$ac_save_FFLAGS rm -rf conftest* # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where # /foo, /bar, and /baz are search directories for the Fortran linker. # Here, we change these into -L/foo -L/bar -L/baz (and put it first): ac_f77_v_output="`echo $ac_f77_v_output | grep 'LPATH is:' | sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" # FIXME: we keep getting bitten by quoted arguments; a more general fix # that detects unbalanced quotes in FLIBS should be implemented # and (ugh) tested at some point. case $ac_f77_v_output in # With xlf replace commas with spaces, # and remove "-link" and closing parenthesis. *xlfentry*) ac_f77_v_output=`echo $ac_f77_v_output | sed ' s/,/ /g s/ -link / /g s/) *$// ' ` ;; # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted # $LIBS confuse us, and the libraries appear later in the output anyway). *mGLOB_options_string*) ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; # Portland Group compiler has singly- or doubly-quoted -cmdline argument # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". *-cmdline\ * | *-ignore\ * | *-def\ *) ac_f77_v_output=`echo $ac_f77_v_output | sed "\ s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. *fort77*f2c*gcc*) ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n ' /:[ ]\+Running[ ]\{1,\}"gcc"/{ /"-c"/d /[.]c"*/d s/^.*"gcc"/"gcc"/ s/"//gp }'` ;; # If we are using Cray Fortran then delete quotes. *cft90*) ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; esac ac_cv_f77_libs= # Save positional arguments (if any) ac_save_positional="$@" set X $ac_f77_v_output while test $# != 1; do shift ac_arg=$1 case $ac_arg in [\\/]*.a | ?:[\\/]*.a) ac_exists=false for ac_i in $ac_cv_f77_libs; do if test x"$ac_arg" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" fi ;; -bI:*) ac_exists=false for ac_i in $ac_cv_f77_libs; do if test x"$ac_arg" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else if test "$ac_compiler_gnu" = yes; then for ac_link_opt in $ac_arg; do ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" done else ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" fi fi ;; # Ignore these flags. -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ |-LANG:=* | -LIST:* | -LNO:* | -link) ;; -lkernel32) case $host_os in *cygwin*) ;; *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" ;; esac ;; -[LRuYz]) # These flags, when seen by themselves, take an argument. # We remove the space between option and argument and re-iterate # unless we find an empty arg or a new option (starting with -) case $2 in "" | -*);; *) ac_arg="$ac_arg$2" shift; shift set X $ac_arg "$@" ;; esac ;; -YP,*) for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do ac_exists=false for ac_i in $ac_cv_f77_libs; do if test x"$ac_j" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else ac_arg="$ac_arg $ac_j" ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" fi done ;; -[lLR]*) ac_exists=false for ac_i in $ac_cv_f77_libs; do if test x"$ac_arg" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" fi ;; -zallextract*| -zdefaultextract) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" ;; # Ignore everything else. esac done # restore positional arguments set X $ac_save_positional; shift # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, # then we insist that the "run path" must be an absolute path (i.e. it # must begin with a "/"). case `(uname -sr) 2>/dev/null` in "SunOS 5"*) ac_ld_run_path=`$as_echo "$ac_f77_v_output" | sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` test "x$ac_ld_run_path" != x && if test "$ac_compiler_gnu" = yes; then for ac_link_opt in $ac_ld_run_path; do ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" done else ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" fi ;; esac fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5 $as_echo "$ac_cv_f77_libs" >&6; } FLIBS="$ac_cv_f77_libs" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # The autoconf macro for finding FLIBS sometimes makes mistakes # (particularly with the Fujitsu frt compiler). This next step # first sees if the FLIBS is valid with the Fortran compiler { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts the FLIBS found by autoconf" >&5 $as_echo_n "checking whether $F77 accepts the FLIBS found by autoconf... " >&6; } pac_cv_f77_flibs_valid=unknown ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_f77_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valid entries in FLIBS" >&5 $as_echo_n "checking for valid entries in FLIBS... " >&6; } goodFLIBS="" saveFLIBS=$FLIBS FLIBS="" for arg in $saveFLIBS ; do FLIBS="$goodFLIBS $arg" if ac_fn_f77_try_link "$LINENO"; then : goodFLIBS=$FLIBS fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext done FLIBS=$goodFLIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLIBS" >&5 $as_echo "$FLIBS" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext rm -f conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Now see if FLIBS works with the C compiler { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC links with FLIBS found by autoconf" >&5 $as_echo_n "checking whether $CC links with FLIBS found by autoconf... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Create a simple C program for the tests. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int a; ; return 0; } _ACEOF # Try to link a C program with all of these libraries saved_LIBS="$LIBS" LIBS="$FLIBS $saved_LIBS" if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libraries can be used" >&5 $as_echo_n "checking for which libraries can be used... " >&6; } pac_ldirs="" pac_libs="" pac_other="" for name in $FLIBS ; do case $name in -l*) pac_libs="$pac_libs $name" ;; -L*) pac_ldirs="$pac_ldirs $name" ;; *) pac_other="$pac_other $name" ;; esac done keep_libs="" for name in $pac_libs ; do LIBS="$saved_LIBS $pac_ldirs $pac_other $name" if ac_fn_c_try_link "$LINENO"; then : keep_libs="$keep_libs $name" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext done { $as_echo "$as_me:${as_lineno-$LINENO}: result: $keep_libs" >&5 $as_echo "$keep_libs" >&6; } FLIBS="$pac_ldirs $pac_other $keep_libs" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext LIBS="$saved_LIBS" rm -f conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Check F77+FLAGS is compatible with CC+CFLAGS before using F77+CC. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran 77 and C objects are compatible" >&5 $as_echo_n "checking whether Fortran 77 and C objects are compatible... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* lower */ void c_subpgm( int *rc ); void c_subpgm( int *rc ) { *rc = 1; } /* lower underscore */ void c_subpgm_( int *rc ); void c_subpgm_( int *rc ) { *rc = 2; } /* upper */ void C_SUBPGM( int *rc ); void C_SUBPGM( int *rc ) { *rc = 3; } /* lower doubleunderscore */ void c_subpgm__( int *rc ); void c_subpgm__( int *rc ) { *rc = 4; } /* mixed */ void C_subpgm( int *rc ); void C_subpgm( int *rc ) { *rc = 5; } /* mixed underscore */ void C_subpgm_( int *rc ); void C_subpgm_( int *rc ) { *rc = 6; } _ACEOF ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program test integer rc rc = -1 call c_subpgm( rc ) write(6,*) "rc=", rc end _ACEOF ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu pac_linkwithf77=no pac_linkwithC=no if test "$pac_linkwithC" != "yes" ; then ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } saved_LIBS="$LIBS" LIBS="pac_conftest.$OBJEXT $saved_LIBS" ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if ac_fn_f77_try_link "$LINENO"; then : pac_linkwithf77=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu LIBS="$saved_LIBS" if test "$pac_linkwithf77" = "yes" ; then rm -f pac_conftest.$OBJEXT fi fi rm -f core conftest.err conftest.$ac_objext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi if test "$pac_linkwithf77" != "yes" ; then ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if ac_fn_f77_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_f77conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_f77conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } saved_LIBS="$LIBS" LIBS="pac_f77conftest.$OBJEXT $FLIBS $saved_LIBS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if ac_fn_c_try_link "$LINENO"; then : pac_linkwithC=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu LIBS="$saved_LIBS" if test "$pac_linkwithC" = "yes" ; then rm -f pac_f77conftest.$OBJEXT fi fi rm -f core conftest.err conftest.$ac_objext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu rm -f conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu rm -f conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$pac_linkwithf77" != "yes" -a "$pac_linkwithC" != "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } # Extract the first word of "file", so it can be a program name with args. set dummy file; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_FILE+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$FILE"; then ac_cv_prog_FILE="$FILE" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_FILE="file" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi FILE=$ac_cv_prog_FILE if test -n "$FILE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 $as_echo "$FILE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "X$FILE" != "X" ; then fobjtype="`${FILE} pac_f77conftest.$OBJEXT | sed -e \"s|pac_f77conftest\.$OBJEXT||g\"`" cobjtype="`${FILE} pac_conftest.$OBJEXT | sed -e \"s|pac_conftest\.$OBJEXT||g\"`" if test "$fobjtype" != "$cobjtype" ; then as_fn_error $? "**** Incompatible Fortran and C Object File Types! **** F77 Object File Type produced by \"${F77} ${FFLAGS}\" is : ${fobjtype}. C Object File Type produced by \"${CC} ${CFLAGS}\" is : ${cobjtype}." "$LINENO" 5 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker for Fortran main program" >&5 $as_echo_n "checking for linker for Fortran main program... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { long long a; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_LONG_LONG int f(int a, long long b) { int c; c = a * ( b / 3 ) / (b-1); return c ; } #else int f(int a, long b) { int c; c = a * b / (b-1); return c ; } #endif _ACEOF ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main double precision d print *, "hi" end _ACEOF ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu pac_linkwithf77=no pac_linkwithC=no if test "$pac_linkwithC" != "yes" ; then ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } saved_LIBS="$LIBS" LIBS="pac_conftest.$OBJEXT $saved_LIBS" ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if ac_fn_f77_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: Use Fortran to link programs" >&5 $as_echo "Use Fortran to link programs" >&6; } pac_linkwithf77=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu LIBS="$saved_LIBS" rm -f pac_conftest.$OBJEXT fi rm -f core conftest.err conftest.$ac_objext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi if test "$pac_linkwithf77" != "yes" ; then ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if ac_fn_f77_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_f77conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_f77conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } saved_LIBS="$LIBS" LIBS="pac_f77conftest.$OBJEXT $FLIBS $saved_LIBS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if ac_fn_c_try_link "$LINENO"; then : pac_linkwithC=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: Use C with FLIBS to link programs" >&5 $as_echo "Use C with FLIBS to link programs" >&6; } F77LINKER="$CC" F77_LDFLAGS="$F77_LDFLAGS $FLIBS" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu LIBS="$saved_LIBS" rm -f pac_f77conftest.$OBJEXT fi rm -f core conftest.err conftest.$ac_objext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu rm -f conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu rm -f conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$pac_linkwithf77" != "yes" -a "$pac_linkwithC" != "yes" ; then as_fn_error $? "Could not determine a way to link a Fortran test program!" "$LINENO" 5 fi # For name mangle, we need the library flags { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name mangling" >&5 $as_echo_n "checking for Fortran 77 name mangling... " >&6; } if ${pac_cv_prog_f77_name_mangle+:} false; then : $as_echo_n "(cached) " >&6 else # Initialize pac_found to indicate if name mangling scheme has been found pac_found=no ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu cat > conftest.$ac_ext <<_ACEOF subroutine MY_name( ii ) return end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT f77conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT f77conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } saved_LIBS="$LIBS" LIBS="f77conftest.$OBJEXT $FLIBS $LIBS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu for call in "" __stdcall ; do for sym in my_name_ my_name__ my_name MY_NAME MY_name MY_name_ NONE ; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern void ${call} ${sym}(int); int main () { ${sym}(0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_found=yes break fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext done test "$pac_found" = "yes" && break done ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu LIBS="$saved_LIBS" rm -f f77conftest.$OBJEXT fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # If we got to here and pac_cv_prog_f77_name_mangle is still NOT definable, # it may be that the programs have to be linked with the Fortran compiler, # not the C compiler. Try reversing the language used for the test if test "$pac_found" != "yes" ; then ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu for call in "" __stdcall ; do for sym in my_name_ my_name__ my_name MY_NAME MY_name MY_name_ NONE ; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ void ${call} ${sym}(int a) {} _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT cconftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT cconftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } saved_LIBS="$LIBS" LIBS="cconftest.$OBJEXT $LIBS" ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main call my_name(0) end _ACEOF if ac_fn_f77_try_link "$LINENO"; then : pac_found=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu LIBS="$saved_LIBS" rm -f cconftest.$OBJEXT test "$pac_found" = "yes" && break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done test "$pac_found" = "yes" && break done ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi if test "$pac_found" = "yes" ; then case ${sym} in my_name_) pac_cv_prog_f77_name_mangle="lower uscore" ;; my_name__) pac_cv_prog_f77_name_mangle="lower 2uscore" ;; my_name) pac_cv_prog_f77_name_mangle="lower" ;; MY_NAME) pac_cv_prog_f77_name_mangle="upper" ;; MY_name) pac_cv_prog_f77_name_mangle="mixed" ;; MY_name_) pac_cv_prog_f77_name_mangle="mixed uscore" ;; *) pac_cv_prog_f77_name_mangle="" pac_found=no; ;; esac if test "X$pac_cv_prog_f77_name_mangle" != "X" ; then if test "$call" = "__stdcall" ; then pac_cv_prog_f77_name_mangle="$pac_cv_prog_f77_name_mangle stdcall" fi fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_f77_name_mangle" >&5 $as_echo "$pac_cv_prog_f77_name_mangle" >&6; } case $pac_cv_prog_f77_name_mangle in *stdcall) F77_STDCALL="__stdcall" ;; *) F77_STDCALL="" ;; esac # Get the standard call definition # FIXME: This should use F77_STDCALL, not STDCALL (non-conforming name) F77_STDCALL="$call" cat >>confdefs.h <<_ACEOF #define STDCALL $F77_STDCALL _ACEOF # new_name="`echo $name | tr ' ' '_' | tr [a-z] [A-Z]`" # We could have done the character conversion with 'tr' # which may not be portable, e.g. solaris's /usr/ucb/bin/tr. # So use a conservative approach. # Replace blank with underscore name_scheme="`echo $pac_cv_prog_f77_name_mangle | sed 's% %_%g'`" # Turn lowercase into uppercase. name_scheme="`echo $name_scheme | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`" F77_NAME_MANGLE="F77_NAME_${name_scheme}" cat >>confdefs.h <<_ACEOF #define $F77_NAME_MANGLE 1 _ACEOF if test "X$pac_cv_prog_f77_name_mangle" = "X" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown Fortran naming scheme" >&5 $as_echo "$as_me: WARNING: Unknown Fortran naming scheme" >&2;} fi # Check whether additional libraries are needed when linking with C # To simply the code in the cache_check macro, chose the routine name # first, in case we need it confname=conf1_ case "$pac_cv_prog_f77_name_mangle" in "lower underscore") confname=conf1_ ;; "upper stdcall") confname=CONF1 ;; "upper") confname=CONF1 ;; "lower doubleunderscore") confname=conf1_ ;; "lower") confname=conf1 ;; "mixed underscore") confname=conf1_ ;; "mixed") confname=conf1 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries to link Fortran main with C stdio routines" >&5 $as_echo_n "checking for libraries to link Fortran main with C stdio routines... " >&6; } if ${pac_cv_prog_f77_and_c_stdio_libs+:} false; then : $as_echo_n "(cached) " >&6 else pac_cv_prog_f77_and_c_stdio_libs=unknown ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined(HAVE_STDIO_H) || defined(STDC_HEADERS) #include #endif int $confname(int a) { printf( "The answer is %d\n", a ); fflush(stdout); return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } saved_LIBS="$LIBS" ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main call conf1(0) end _ACEOF for extralib in "" "-lSystemStubs" ; do LIBS="pac_conftest.$OBJEXT $saved_LIBS $extralib" if ac_fn_f77_try_link "$LINENO"; then : pac_cv_prog_f77_and_c_stdio_libs="$extralib"; break fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext done if test "X$pac_cv_prog_f77_and_c_stdio_libs" = "X" ; then pac_cv_prog_f77_and_c_stdio_libs=none fi rm -f conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu LIBS="$saved_LIBS" rm -f pac_conftest.$OBJEXT fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_f77_and_c_stdio_libs" >&5 $as_echo "$pac_cv_prog_f77_and_c_stdio_libs" >&6; } if test "$pac_cv_prog_f77_and_c_stdio_libs" != "none" \ -a "$pac_cv_prog_f77_and_c_stdio_libs" != "unknown" ; then F77_OTHER_LIBS="$F77_OTHER_LIBS $pac_cv_prog_f77_and_c_stdio_libs" fi # Warn about mixed name mangling, since many of the tests will fail if test "$pac_cv_prog_f77_name_mangle" = "mixed" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The compiler $F77 uses mixed case names. Fortran is monocase and many Fortran programs may use either upper or lower case names for MPI calls. Consider specifying a particular parameter to your Fortran compiler to select either upper or lower case names. For the Absoft compiler, -f selects lower case and -N109 selects upper case (if you use -f, also use -B108 to enable the iargc and getarg routines, which are needed for some tests and by many user programs). Specify new command line options by setting the environment variable FFLAGS to include the options (e.g., setenv FFLAGS \"-f -B108\"). In addition, make sure that your Fortran 90 compiler uses a compatible naming choice. For the Absoft Fortran 90, -YALL_NAMES=LCS selects lower case names and -B108 adds underscores to names, as required for iargc and getarg. Pass this information to configure with the FCFLAGS environment variable." >&5 $as_echo "$as_me: WARNING: The compiler $F77 uses mixed case names. Fortran is monocase and many Fortran programs may use either upper or lower case names for MPI calls. Consider specifying a particular parameter to your Fortran compiler to select either upper or lower case names. For the Absoft compiler, -f selects lower case and -N109 selects upper case (if you use -f, also use -B108 to enable the iargc and getarg routines, which are needed for some tests and by many user programs). Specify new command line options by setting the environment variable FFLAGS to include the options (e.g., setenv FFLAGS \"-f -B108\"). In addition, make sure that your Fortran 90 compiler uses a compatible naming choice. For the Absoft Fortran 90, -YALL_NAMES=LCS selects lower case names and -B108 adds underscores to names, as required for iargc and getarg. Pass this information to configure with the FCFLAGS environment variable." >&2;} # If Fortran implicitly enabled, disable it now. Otherwise, # abort the configure since warning messages are often lost in # the output. as_fn_error $? "Aborting configure because of mixed case names in Fortran. Either select --disable-fortran or set FCFLAGS to force the compiler to select monocase names" "$LINENO" 5 fi # The MPI standard requires that MPI_Init in any language initialize # MPI in all languages. This can be a problem when objects produced # by the Fortran compiler require symbols from the Fortran runtime # (making linking C-only programs unnecessarily difficult). What we test # here is whether the much more restricted needs of the Fortran # initialize can be met with no special use of the Fortran runtime { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran init will work with C" >&5 $as_echo_n "checking whether Fortran init will work with C... " >&6; } pac_f_init_works_with_c=unknown ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu cat > conftest.$ac_ext <<_ACEOF subroutine minit() common /m1/ vc, vc2 character*1 vc(1,1), vc2(1) common /m2/ vd integer vd save /m1/, /m2/ call minitc( vc, vc2, vd ) end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_f77conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_f77conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } saved_LIBS="$LIBS" # This test checks if Fortran init can be done in pure C environment, # i.e. no FLIBS in linking, so don't put FLIBS in LIBS below LIBS="pac_f77conftest.$OBJEXT $LIBS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined(HAVE_STDIO_H) || defined(STDC_HEADERS) #include #endif #ifdef F77_NAME_UPPER #define minit_ MINIT #elif defined(F77_NAME_LOWER) || defined(F77_NAME_MIXED) #define minit_ minit #endif extern void minit_(void); int main( int argc, char **argv ) { minit_(); return 0; } char *v1 = 0; char *vc2 = 0; int v2 = 0; void minitc_( char *dv1, int d, char *dv2, int d2, int dv3 ); void minitc_( char *dv1, int d, char *dv2, int d2, int dv3 ) { v1 = dv1; v2 = dv3; vc2 = dv2; *vc2 = ' '; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_f_init_works_with_c=yes else pac_f_init_works_with_c=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu LIBS="$saved_LIBS" rm -f pac_f77conftest.$OBJEXT fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_f_init_works_with_c" >&5 $as_echo "$pac_f_init_works_with_c" >&6; } if test "$pac_f_init_works_with_c" = "yes" ; then $as_echo "#define HAVE_MPI_F_INIT_WORKS_WITH_C 1" >>confdefs.h fi # # Some Fortran compilers now pass CHARACTER length as a size_t instead # of as an int. This is hard to test for, since the data is passed by # value and for characters less than about 2GB long, the correct # value will be used. In this case, we must use an approach similar to # the one used by libtool for shared library options - look at the # compiler name or vendor. # Known compilers that use size_t instead of int: # Intel Fortran # gfortran # Add others as they become known # Check whether --enable-f77characterlen was given. if test "${enable_f77characterlen+set}" = set; then : enableval=$enable_f77characterlen; else enable_f77characterlen=no fi # Set the default f77_uses_int_for_str=default case "$enable_f77characterlen" in yes|no) ;; size_t) f77_uses_int_for_str=no enable_f77characterlen=yes ;; int) f77_uses_int_for_str=yes enable_f77characterlen=yes ;; *) as_fn_error $? "Invalid value provided for --enable-f77characterlen" "$LINENO" 5 ;; esac # If we might change the size (enable) and we haven't set the choice, # attempt to determine it from the compiler name. Risky, but we haven't # found a reliable way to do this with test codes. if test "$enable_f77characterlen" = "yes" -a \ "$f77_uses_int_for_str" = "default" ; then f77_uses_int_for_str=yes f77Basename=`basename $F77` case $f77Basename in ifort*) f77_uses_int_for_str=no ;; gfortran*) f77_uses_int_for_str=no ;; esac fi # This test is disabled for now. Despite information in documentation # on gfortran, it appears to pass lengths as int, at least in some # builds (it used movl when tested in 2/2013). Tests that failed # included infotestf.f, in a call to mpi_info_get. # Leave this as a place holder until a proper test can be determined. if test "$enable_f77characterlen" = "yes" -a \ "$f77_uses_int_for_str" = "no" ; then $as_echo "#define USE_FORT_STR_LEN_SIZET 1" >>confdefs.h fi fi # FC requires F77 as well. If the user disabled f77, do not run the # next test; instead, drop into the warning message # Set a default value for fc works with f77. This value is # set to no *only* if fc was selected but was not compatible with f77 fc_with_f77=yes if test "$enable_fc" = "yes" -a "$enable_f77" = yes ; then enable_fc=no if test "$FC" != "no" ; then # If we allow multiple weak symbols, we should test a name # that does not contain an underscore. The Fortran binding uses # this rule for enabling multiple weak symbols: # if defined(USE_WEAK_SYMBOLS) && !defined(USE_ONLY_MPI_NAMES) && # defined(HAVE_MULTIPLE_PRAGMA_WEAK) && # defined(F77_NAME_LOWER_2USCORE) # testRoutine="t1_2" if test "$pac_cv_prog_c_multiple_weak_symbols" = "yes" -a \ "$enable_weak_symbols" = "yes" -a \ "$pac_cv_prog_f77_name_mangle" = "lower doubleunderscore" ; then testRoutine="t12" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extension for Fortran 90 programs" >&5 $as_echo_n "checking for extension for Fortran 90 programs... " >&6; } ac_fc_srcext="f90" ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: f90" >&5 $as_echo "f90" >&6; } else ac_fc_srcext="f" cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: f" >&5 $as_echo "f" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown!" >&5 $as_echo "unknown!" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran 90 compiler ($FC $FCFLAGS $LDFLAGS) works" >&5 $as_echo_n "checking whether the Fortran 90 compiler ($FC $FCFLAGS $LDFLAGS) works... " >&6; } cat > conftest.$ac_ext <<_ACEOF program conftest integer, dimension(10) :: n end _ACEOF if ac_fn_fc_try_link "$LINENO"; then : pac_cv_prog_fc_works="yes" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_fc_works" >&5 $as_echo "$pac_cv_prog_fc_works" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran 90 compiler ($FC $FCFLAGS $LDFLAGS) is a cross-compiler" >&5 $as_echo_n "checking whether the Fortran 90 compiler ($FC $FCFLAGS $LDFLAGS) is a cross-compiler... " >&6; } if test "$cross_compiling" = yes; then : pac_cv_prog_fc_cross="$cross_compiling" else if ac_fn_fc_try_run "$LINENO"; then : pac_cv_prog_fc_cross="no" else pac_cv_prog_fc_cross="yes" fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_fc_cross" >&5 $as_echo "$pac_cv_prog_fc_cross" >&6; } else pac_cv_prog_fc_works="no" { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: installation or configuration problem: Fortran 90 compiler cannot create executables." >&5 $as_echo "$as_me: WARNING: installation or configuration problem: Fortran 90 compiler cannot create executables." >&2;} fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # The intel compiler sometimes generates these work.pc and .pcl files rm -f work.pc work.pcl ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran 90 compiler works with Fortran 77 compiler" >&5 $as_echo_n "checking whether Fortran 90 compiler works with Fortran 77 compiler... " >&6; } if ${pac_cv_fc_and_f77+:} false; then : $as_echo_n "(cached) " >&6 else pacTestRoutine=foo_abc eval pacTestRoutine=$testRoutine pac_cv_fc_and_f77="unknown" # compile the f77 program and link with the f90 program # The reverse may not work because the Fortran 90 environment may # expect to be in control (and to provide library files unknown to any other # environment, even Fortran 77!) ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu cat > conftest.$ac_ext <<_ACEOF subroutine ${pacTestRoutine}(b) integer b b = b + 1 end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : # pac_f77compile_ok=yes { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_f77conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_f77conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } # Save original LIBS, prepend previously generated object file to LIBS saved_LIBS="$LIBS" LIBS="pac_f77conftest.$OBJEXT $LIBS" ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main integer a a = 1 call ${pacTestRoutine}(a) end _ACEOF if ac_fn_fc_try_link "$LINENO"; then : pac_cv_fc_and_f77=yes else pac_cv_fc_and_f77=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # Some versions of the Intel compiler produce these two files rm -f work.pc work.pcl # Restore LIBS LIBS="$saved_LIBS" ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu # remove previously generated object file. rm -f pac_f77conftest.$OBJEXT else # pac_f77compile_ok=no pac_cv_fc_and_f77=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Perform the requested action based on whether the test succeeded if test "$pac_cv_fc_and_f77" = yes ; then fc_with_f77=yes else fc_with_f77=no { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for the failed test program and its output." >&5 $as_echo "$as_me: WARNING: See config.log for the failed test program and its output." >&2;} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fc_and_f77" >&5 $as_echo "$pac_cv_fc_and_f77" >&6; } if test "$fc_with_f77" != yes ; then enable_fc=no as_fn_error $? "The selected Fortran 90 compiler $FC does not work with the selected Fortran 77 compiler $F77. Use the environment variables FC and F77 respectively to select compatible Fortran compilers. The check here tests to see if a main program compiled with the Fortran 90 compiler can link with a subroutine compiled with the Fortran 77 compiler." "$LINENO" 5 elif test "$fc_with_f77" = "yes" ; then # If we got here, there is a Fortran 90 compiler that we can use enable_fc=yes fi elif test "$pac_cv_prog_fc_works" = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --disable-fc to keep configure from searching for a Fortran 90 compiler" >&5 $as_echo "$as_me: WARNING: Use --disable-fc to keep configure from searching for a Fortran 90 compiler" >&2;} fi if test "$enable_fc" = "yes"; then if test "$FC" = "no" -o "$FC" = ""; then # No Fortran 90 compiler found; abort as_fn_error $? "No Fortran 90 compiler found. If you don't need to build any Fortran 90 programs, you can disable Fortran 90 support using --disable-fc. If you do want to build Fortran 90 programs, you need to install a Fortran 90 compiler such as gfortran or ifort before you can proceed." "$LINENO" 5 fi fi fi if test "$enable_fc" = "yes" -a "$enable_f77" != "yes" ; then # Fortran 90 support requires compatible Fortran 77 support as_fn_error $? " Fortran 90 support requires compatible Fortran 77 support. To force the use of the Fortran 90 compiler for Fortran 77, do not use configure option --disable-fortran, and set the environment variable F77 to the name of the Fortran 90 compiler, or \$FC. If you do not want any Fortran support, use configure options --disable-fortran." "$LINENO" 5 # We should probably do the compatibility test as well enable_f77=yes fi # ---------------------------------------------------------------------------- # Now test for Fortran compiler characteristics # ---------------------------------------------------------------------------- if test "$enable_f77" = "yes" ; then # determine rpath and other shared library flags for F77 f77_shlib_conf=src/env/f77_shlib.conf # It appears that the libtool dynamic linking strategy on Darwin is this: # 1. Link all shared libs with "-install_name /full/path/to/libfoo.dylib" # 2. Don't do anything special when linking programs, since it seems that the # darwin dynamic linker will always use the "install_name" field from the lib # that was found at program link-time. (CONFIRMED) This is in opposition to # the way that Linux does it, where specifying a "-rpath" argument at program # link-time is important. # # There is an alternative darwin strategy for versions # >= 10.5, see this: http://www.cmake.org/pipermail/cmake/2010-August/038970.html # (goodell@ 2011-06-17) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library (esp. rpath) characteristics of F77" >&5 $as_echo_n "checking for shared library (esp. rpath) characteristics of F77... " >&6; } # unfortunately, config.rpath expects the compiler in question is always CC and # uses several other environment variables as input if test -z "${pac_save_CC_nesting}" ; then pac_save_CC_nesting=0 fi eval pac_save_CC_${pac_save_CC_nesting}='"$CC"' pac_save_CC_nesting=`expr ${pac_save_CC_nesting} + 1` if test -z "${pac_save_GCC_nesting}" ; then pac_save_GCC_nesting=0 fi eval pac_save_GCC_${pac_save_GCC_nesting}='"$GCC"' pac_save_GCC_nesting=`expr ${pac_save_GCC_nesting} + 1` if test -z "${pac_save_LD_nesting}" ; then pac_save_LD_nesting=0 fi eval pac_save_LD_${pac_save_LD_nesting}='"$LD"' pac_save_LD_nesting=`expr ${pac_save_LD_nesting} + 1` # these two don't currently get overridden, but we push/pop them for safety in # case they do in the future if test -z "${pac_save_LDFLAGS_nesting}" ; then pac_save_LDFLAGS_nesting=0 fi eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"' pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1` if test -z "${pac_save_with_gnu_ld_nesting}" ; then pac_save_with_gnu_ld_nesting=0 fi eval pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}='"$with_gnu_ld"' pac_save_with_gnu_ld_nesting=`expr ${pac_save_with_gnu_ld_nesting} + 1` # set the temporary override values (if any) CC="$F77" GCC="$G77" LD="$LD_F77" # ensure the values are available to the script export CC export GCC export LDFLAGS export LD export with_gnu_ld if $ac_aux_dir/config.rpath "$host" > $f77_shlib_conf; then : : else as_fn_error $? "unable to execute $ac_aux_dir/config.rpath" "$LINENO" 5 fi C_LINKPATH_SHL="" rm -f conftest.out # restore the old values pac_save_with_gnu_ld_nesting=`expr ${pac_save_with_gnu_ld_nesting} - 1` eval with_gnu_ld="\$pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}" eval pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}="" pac_save_LD_nesting=`expr ${pac_save_LD_nesting} - 1` eval LD="\$pac_save_LD_${pac_save_LD_nesting}" eval pac_save_LD_${pac_save_LD_nesting}="" pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1` eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}" eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}="" pac_save_GCC_nesting=`expr ${pac_save_GCC_nesting} - 1` eval GCC="\$pac_save_GCC_${pac_save_GCC_nesting}" eval pac_save_GCC_${pac_save_GCC_nesting}="" pac_save_CC_nesting=`expr ${pac_save_CC_nesting} - 1` eval CC="\$pac_save_CC_${pac_save_CC_nesting}" eval pac_save_CC_${pac_save_CC_nesting}="" { $as_echo "$as_me:${as_lineno-$LINENO}: result: done (results in $f77_shlib_conf)" >&5 $as_echo "done (results in $f77_shlib_conf)" >&6; } ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran 77 accepts ! for comments" >&5 $as_echo_n "checking whether Fortran 77 accepts ! for comments... " >&6; } if ${pac_cv_prog_f77_exclaim_comments+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main ! This is a comment end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : pac_cv_prog_f77_exclaim_comments="yes" else pac_cv_prog_f77_exclaim_comments="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_f77_exclaim_comments" >&5 $as_echo "$pac_cv_prog_f77_exclaim_comments" >&6; } if test "$pac_cv_prog_f77_exclaim_comments" = "yes" ; then has_exclaim="yes" else has_exclaim="no" fi checkdir=src;checkdir_is_given=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for include directory flag for Fortran" >&5 $as_echo_n "checking for include directory flag for Fortran... " >&6; } if ${pac_cv_prog_f77_has_incdir+:} false; then : $as_echo_n "(cached) " >&6 else test -d $checkdir || mkdir $checkdir echo ' call sub()' > $checkdir/conftestf.h ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu saved_FFLAGS="$FFLAGS" pac_cv_prog_f77_has_incdir="none" # SGI wants -Wf,-I for idir in "-I" "-Wf,-I" ; do FFLAGS="${idir} $checkdir $saved_FFLAGS" cat > conftest.$ac_ext <<_ACEOF program main include 'conftestf.h' end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : pac_cv_prog_f77_has_incdir="$idir"; break fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done FFLAGS="$saved_FFLAGS" ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test "$checkdir_is_given" = "yes" ; then rm -f $checkdir/conftestf.h else rm -rf $checkdir fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_f77_has_incdir" >&5 $as_echo "$pac_cv_prog_f77_has_incdir" >&6; } if test "X$pac_cv_prog_f77_has_incdir" != "Xnone" ; then F77_INCDIR="$pac_cv_prog_f77_has_incdir" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 flag for library directories" >&5 $as_echo_n "checking for Fortran 77 flag for library directories... " >&6; } if ${pac_cv_prog_f77_library_dir_flag+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu cat > conftest.$ac_ext <<_ACEOF subroutine f1conf end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : # pac_f77compile_ok=yes { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_f77conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_f77conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } { $as_echo "$as_me:$LINENO: test -d conftestdir || mkdir conftestdir" >&5 (eval test -d conftestdir || mkdir conftestdir) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } { $as_echo "$as_me:$LINENO: ${AR-ar} ${AR_FLAGS-cr} conftestdir/libf77conftest.a pac_f77conftest.$OBJEXT" >&5 (eval ${AR-ar} ${AR_FLAGS-cr} conftestdir/libf77conftest.a pac_f77conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } { $as_echo "$as_me:$LINENO: ${RANLIB-ranlib} conftestdir/libf77conftest.a" >&5 (eval ${RANLIB-ranlib} conftestdir/libf77conftest.a) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } # Save original LIBS, prepend previously generated object file to LIBS saved_LIBS="$LIBS" LIBS="-lf77conftest $LIBS" saved_LDFLAGS="$LDFLAGS" pac_cv_prog_f77_library_dir_flag="none" for ldir in "-L" "-Wl,-L," ; do LDFLAGS="${ldir}conftestdir $saved_LDFLAGS" cat > conftest.$ac_ext <<_ACEOF program main call f1conf end _ACEOF if ac_fn_f77_try_link "$LINENO"; then : pac_cv_prog_f77_library_dir_flag="$ldir";break fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext done LDFLAGS="$saved_LDFLAGS" LIBS="$saved_LIBS" rm -rf conftestdir rm -f pac_f77conftest.$OBJEXT fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_f77_library_dir_flag" >&5 $as_echo "$pac_cv_prog_f77_library_dir_flag" >&6; } if test "X$pac_cv_prog_f77_library_dir_flag" != "Xnone" ; then F77_LIBDIR_LEADER="$pac_cv_prog_f77_library_dir_flag" fi if test "$MPI_WITH_PMPI" = "no" ; then # If the PMPI routines are not in the same library with the MPI # routines, we may need to remove the pmpi declarations { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran allows unused externals" >&5 $as_echo_n "checking whether Fortran allows unused externals... " >&6; } if ${pac_cv_prog_f77_allows_unused_externals+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main external bar end _ACEOF if ac_fn_f77_try_link "$LINENO"; then : pac_cv_prog_f77_allows_unused_externals="yes" else pac_cv_prog_f77_allows_unused_externals="no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_f77_allows_unused_externals" >&5 $as_echo "$pac_cv_prog_f77_allows_unused_externals" >&6; } if test "X$pac_cv_prog_f77_allows_unused_externals" = "Xyes" ; then MPIFPMPI=",PMPI_WTIME,PMPI_WTICK" else MPIFPMPI=""; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Removed PMPI_WTIME and PMPI_WTICK from mpif.h" >&5 $as_echo "$as_me: WARNING: Removed PMPI_WTIME and PMPI_WTICK from mpif.h" >&2;} fi else MPIFPMPI=",PMPI_WTIME,PMPI_WTICK" fi # Once we have name mangle, we can try to limit the number of needed libs # Most systems allow the Fortran compiler to process .F and .F90 files # using the C preprocessor. However, some systems either do not # allow this or have serious bugs (OSF Fortran compilers have a bug # that generates an error message from cpp). The following test # checks to see if .F works, and if not, whether "cpp -P -C" can be used # This is needed for Mac OSX 10.5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran 77 compiler processes .F files with C preprocessor" >&5 $as_echo_n "checking whether Fortran 77 compiler processes .F files with C preprocessor... " >&6; } ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu saved_f77_ext=${ac_ext} ac_ext="F" saved_FFLAGS="$FFLAGS" FFLAGS="$FFLAGS $CPPFLAGS" cat > conftest.$ac_ext <<_ACEOF program main #define ASIZE 10 integer a(ASIZE) end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : pac_cv_f77_accepts_F=yes F77CPP="" else pac_cv_f77_accepts_F=no F77CPP="false" fi rm -f core conftest.err conftest.$ac_objext # Restore Fortran 77's ac_ext but not FFLAGS ac_ext="$saved_f77_ext" if test "$pac_cv_f77_accepts_F" != "yes" ; then pac_cpp_f77="$ac_cpp -C -P conftest.F > conftest.$ac_ext" pac_TESTLOG="pac_test.log" rm -f $pac_TESTLOG if { $as_echo "$as_me:$LINENO: $pac_cpp_f77 > $pac_TESTLOG" >&5 (eval $pac_cpp_f77 > $pac_TESTLOG) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; }; then : if test -s conftest.${ac_ext} ; then if ac_fn_f77_try_compile "$LINENO"; then : pac_cv_f77_accepts_F="no, use cpp" F77CPP="$CPP -C -P" fi rm -f core conftest.err conftest.$ac_objext rm -f conftest.${ac_ext} fi else $as_echo "$as_me: program exited with status $ac_status" >&5 (exit $ac_status) $as_echo "*** $pac_cpp_f77 :" >&5 cat $pac_TESTLOG >&5 fi rm -f $pac_TESTLOG fi FFLAGS="$saved_FFLAGS" rm -f conftest.F ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_f77_accepts_F" >&5 $as_echo "$pac_cv_f77_accepts_F" >&6; } # Check that the Fortran compiler will allow us to pass arguments # of different types (e.g., for MPI_Send) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 allows mismatched arguments" >&5 $as_echo_n "checking whether $F77 allows mismatched arguments... " >&6; } if test "X$pac_cv_prog_f77_mismatched_args" = X ; then pac_cv_prog_f77_mismatched_args_parm="" pac_cv_prog_f77_mismatched_args=no ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main integer a real b character c call foo1(a) call foo1(b) call foo1(c) end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : pac_cv_prog_f77_mismatched_args=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test "$pac_cv_prog_f77_mismatched_args" != "yes" ; then # try again with -wmismatch=foo1 save_FFLAGS="$FFLAGS" # The best solution is to turn off errors on particular routines # if that isn't possible (e.g., too many of them), then # just try arguments that turn off all checking for flags in "-mismatch" ; do testok=no FFLAGS="$FFLAGS $flags" cat > conftest.$ac_ext <<_ACEOF program main integer a real b character c call foo1(a) call foo1(b) call foo1(c) end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : testok=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext FFLAGS="$save_FFLAGS" if test "$testok" = yes ; then break ; fi done if test "$testok" = yes ; then pac_cv_prog_f77_mismatched_args_parm="$flags" pac_cv_prog_f77_mismatched_args="yes, with $pac_cv_prog_f77_mismatched_args_parm" fi fi ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_f77_mismatched_args" >&5 $as_echo "$pac_cv_prog_f77_mismatched_args" >&6; } if test "$pac_cv_prog_f77_mismatched_args" = no ; then as_fn_error $? "The Fortran compiler $F77 will not compile files that call the same routine with arguments of different types." "$LINENO" 5 fi addarg=$pac_cv_prog_f77_mismatched_args_parm if test "X$addarg" != "X" ; then # We could add the names of all of the MPI routines that # accept different types. Instead, we fail cleanly. # Some Fortran compilers allow you to turn off checking for # mismatched arguments for *all* routines. Adding an argument # that turns off checking for *everything* is not something that # configure should do - if the user wants this, they can follow # the instructions in the following error message. as_fn_error $? "The Fortran compiler $F77 does not accept programs that call the same routine with arguments of different types without the option $addarg. Rerun configure with FFLAGS=$addarg" "$LINENO" 5 fi bindings="$bindings f77" $as_echo "#define HAVE_FORTRAN_BINDING 1" >>confdefs.h # Also define the name FORTRAN_BINDING for use in #if @FORTRAN_BINDING@.. FORTRAN_BINDING=1 fi ac_config_commands="$ac_config_commands default-1" if test "$enable_fc" = "yes" ; then if test "$enable_f77" != "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fortran 90 requires Fortran 77" >&5 $as_echo "$as_me: WARNING: Fortran 90 requires Fortran 77" >&2;} enable_fc=no else bindingsubsystems="$bindingsubsystems src/binding/fortran/use_mpi" bindings="$bindings f90" fi fi f08_works=no if test "$enable_fc" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 2008 support" >&5 $as_echo_n "checking for Fortran 2008 support... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu f08_works=yes cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int foo_c(CFI_cdesc_t * a_desc, CFI_cdesc_t * b_desc) { char * a_row = (char*) a_desc->base_addr; if (a_desc->type != CFI_type_int) { return 1; } if (a_desc->rank != 2) { return 2; } if (a_desc->dim[1].extent != b_desc->dim[0].extent) { return 3; } return 0; } void test_assumed_rank_async_impl_c(CFI_cdesc_t * a_desc) { return; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : mv conftest.$OBJEXT conftest1.$OBJEXT else f08_works=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` LIBS="conftest1.$OBJEXT $LIBS" cat > conftest.$ac_ext <<_ACEOF MODULE F08TS_MODULE IMPLICIT NONE ! Test public, private, protected REAL, PUBLIC :: x REAL, PRIVATE :: y LOGICAL, PROTECTED :: z ! Test abstract ABSTRACT INTERFACE SUBROUTINE user_func(x, y) INTEGER :: x(*) REAL :: y END SUBROUTINE END INTERFACE ! Test TS 29113 assumed type , assumed rank and bind(C) INTERFACE FUNCTION FOO(A, B, C) & BIND(C,name="foo_c") RESULT(err) USE, intrinsic :: iso_c_binding, ONLY : c_int TYPE(*), DIMENSION(..) :: A, B, C INTEGER(c_int) :: err END FUNCTION FOO END INTERFACE ! Test assumed-rank + asynchronous INTERFACE TEST_ASSUMED_RANK_ASYNC SUBROUTINE TEST_ASSUMED_RANK_ASYNC_IMPL(BUF) & BIND(C,name="test_assumed_rank_async_impl_c") IMPLICIT NONE TYPE(*), DIMENSION(..), ASYNCHRONOUS :: BUF END SUBROUTINE TEST_ASSUMED_RANK_ASYNC_IMPL END INTERFACE TEST_ASSUMED_RANK_ASYNC CONTAINS ! Test TS 29113 asychronous attribute and optional SUBROUTINE test1(buf, count, ierr) INTEGER, ASYNCHRONOUS :: buf(*) INTEGER :: count INTEGER, OPTIONAL :: ierr END SUBROUTINE ! Test procedure type and non-bind(c) x in C_FUNCLOC(x) SUBROUTINE test2(func) USE, INTRINSIC :: ISO_C_BINDING, ONLY : C_FUNLOC, C_FUNPTR PROCEDURE(user_func) :: func TYPE(C_FUNPTR) :: errhandler_fn errhandler_fn = C_FUNLOC(func) END SUBROUTINE ! Test intrinsic storage_size SUBROUTINE test3(x, size) CHARACTER, DIMENSION(..) :: x INTEGER, INTENT(OUT) :: size size = storage_size(x)/8 END SUBROUTINE test3 END MODULE !============================================== PROGRAM MAIN USE :: F08TS_MODULE, ONLY : FOO, TEST_ASSUMED_RANK_ASYNC IMPLICIT NONE INTEGER, DIMENSION(4,4) :: A, B INTEGER, DIMENSION(2,2) :: C INTEGER :: ERRCODE INTEGER, DIMENSION(10), ASYNCHRONOUS :: IAR ! Test contiguous and non-contiguous array section passing ! and linkage with C code ERRCODE = FOO(A(1:4:2, :), B(:, 2:4:2), C) CALL TEST_ASSUMED_RANK_ASYNC(IAR(2:7)) END PROGRAM _ACEOF if ac_fn_fc_try_link "$LINENO"; then : else f08_works=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test "$f08_works" = "yes" ; then f08_works=yes else f08_works=no fi rm -f conftest1.$OBJEXT F08TS_MODULE.* f08ts_module.* { $as_echo "$as_me:${as_lineno-$LINENO}: result: $f08_works" >&5 $as_echo "$f08_works" >&6; } fi if test "$f08_works" = "yes"; then BUILD_F08_BINDING_TRUE= BUILD_F08_BINDING_FALSE='#' else BUILD_F08_BINDING_TRUE='#' BUILD_F08_BINDING_FALSE= fi if test "$f08_works" = "yes" ; then status_f08_works=1 bindings="$bindings f08" else status_f08_works=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_F08_BINDING $status_f08_works _ACEOF # Set defaults for these values so that the Makefile in src/bindings/f90 # is valid even if fc is not enabled (this is necessary for the # distclean target) MPIMODNAME=mpi MPICONSTMODNAME=mpi_constants MPISIZEOFMODNAME=mpi_sizeofs MPIBASEMODNAME=mpi_base # F08 binding stuff MPI_F08_LINK_CONSTANTS_NAME=mpi_f08_link_constants PMPI_F08_NAME=pmpi_f08 MPI_F08_CALLBACKS_NAME=mpi_f08_callbacks MPI_C_INTERFACE_NAME=mpi_c_interface MPI_C_INTERFACE_GLUE_NAME=mpi_c_interface_glue MPI_F08_TYPES_NAME=mpi_f08_types MPI_C_INTERFACE_NOBUF_NAME=mpi_c_interface_nobuf MPI_F08_COMPILE_CONSTANTS_NAME=mpi_f08_compile_constants MPI_F08_NAME=mpi_f08 MPI_C_INTERFACE_TYPES_NAME=mpi_c_interface_types MPI_C_INTERFACE_CDESC_NAME=mpi_c_interface_cdesc if test "$enable_fc" = "yes" ; then # determine rpath and other shared library flags for FC fc_shlib_conf=src/env/fc_shlib.conf # It appears that the libtool dynamic linking strategy on Darwin is this: # 1. Link all shared libs with "-install_name /full/path/to/libfoo.dylib" # 2. Don't do anything special when linking programs, since it seems that the # darwin dynamic linker will always use the "install_name" field from the lib # that was found at program link-time. (CONFIRMED) This is in opposition to # the way that Linux does it, where specifying a "-rpath" argument at program # link-time is important. # # There is an alternative darwin strategy for versions # >= 10.5, see this: http://www.cmake.org/pipermail/cmake/2010-August/038970.html # (goodell@ 2011-06-17) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library (esp. rpath) characteristics of FC" >&5 $as_echo_n "checking for shared library (esp. rpath) characteristics of FC... " >&6; } # unfortunately, config.rpath expects the compiler in question is always CC and # uses several other environment variables as input if test -z "${pac_save_CC_nesting}" ; then pac_save_CC_nesting=0 fi eval pac_save_CC_${pac_save_CC_nesting}='"$CC"' pac_save_CC_nesting=`expr ${pac_save_CC_nesting} + 1` if test -z "${pac_save_GCC_nesting}" ; then pac_save_GCC_nesting=0 fi eval pac_save_GCC_${pac_save_GCC_nesting}='"$GCC"' pac_save_GCC_nesting=`expr ${pac_save_GCC_nesting} + 1` if test -z "${pac_save_LD_nesting}" ; then pac_save_LD_nesting=0 fi eval pac_save_LD_${pac_save_LD_nesting}='"$LD"' pac_save_LD_nesting=`expr ${pac_save_LD_nesting} + 1` # these two don't currently get overridden, but we push/pop them for safety in # case they do in the future if test -z "${pac_save_LDFLAGS_nesting}" ; then pac_save_LDFLAGS_nesting=0 fi eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"' pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1` if test -z "${pac_save_with_gnu_ld_nesting}" ; then pac_save_with_gnu_ld_nesting=0 fi eval pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}='"$with_gnu_ld"' pac_save_with_gnu_ld_nesting=`expr ${pac_save_with_gnu_ld_nesting} + 1` # set the temporary override values (if any) CC="$FC" GCC="$GCC_FC" LD="$LD_FC" # ensure the values are available to the script export CC export GCC export LDFLAGS export LD export with_gnu_ld if $ac_aux_dir/config.rpath "$host" > $fc_shlib_conf; then : : else as_fn_error $? "unable to execute $ac_aux_dir/config.rpath" "$LINENO" 5 fi C_LINKPATH_SHL="" rm -f conftest.out # restore the old values pac_save_with_gnu_ld_nesting=`expr ${pac_save_with_gnu_ld_nesting} - 1` eval with_gnu_ld="\$pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}" eval pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}="" pac_save_LD_nesting=`expr ${pac_save_LD_nesting} - 1` eval LD="\$pac_save_LD_${pac_save_LD_nesting}" eval pac_save_LD_${pac_save_LD_nesting}="" pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1` eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}" eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}="" pac_save_GCC_nesting=`expr ${pac_save_GCC_nesting} - 1` eval GCC="\$pac_save_GCC_${pac_save_GCC_nesting}" eval pac_save_GCC_${pac_save_GCC_nesting}="" pac_save_CC_nesting=`expr ${pac_save_CC_nesting} - 1` eval CC="\$pac_save_CC_${pac_save_CC_nesting}" eval pac_save_CC_${pac_save_CC_nesting}="" { $as_echo "$as_me:${as_lineno-$LINENO}: result: done (results in $fc_shlib_conf)" >&5 $as_echo "done (results in $fc_shlib_conf)" >&6; } # Determine characteristics of the Fortran 90 compiler # Find a Fortran 90 compiler. Sets FC # Work around bug in autoconf that adds -g to FCFLAGS saveFCFLAGS="$FCFLAGS" ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran 90 compiler ($FC $FCFLAGS $LDFLAGS) works" >&5 $as_echo_n "checking whether the Fortran 90 compiler ($FC $FCFLAGS $LDFLAGS) works... " >&6; } cat > conftest.$ac_ext <<_ACEOF program conftest integer, dimension(10) :: n end _ACEOF if ac_fn_fc_try_link "$LINENO"; then : pac_cv_prog_fc_works="yes" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_fc_works" >&5 $as_echo "$pac_cv_prog_fc_works" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran 90 compiler ($FC $FCFLAGS $LDFLAGS) is a cross-compiler" >&5 $as_echo_n "checking whether the Fortran 90 compiler ($FC $FCFLAGS $LDFLAGS) is a cross-compiler... " >&6; } if test "$cross_compiling" = yes; then : pac_cv_prog_fc_cross="$cross_compiling" else if ac_fn_fc_try_run "$LINENO"; then : pac_cv_prog_fc_cross="no" else pac_cv_prog_fc_cross="yes" fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_fc_cross" >&5 $as_echo "$pac_cv_prog_fc_cross" >&6; } else pac_cv_prog_fc_works="no" { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: installation or configuration problem: Fortran 90 compiler cannot create executables." >&5 $as_echo "$as_me: WARNING: installation or configuration problem: Fortran 90 compiler cannot create executables." >&2;} fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # The intel compiler sometimes generates these work.pc and .pcl files rm -f work.pc work.pcl ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu FCFLAGS=$saveFCFLAGS if test "$pac_cv_prog_fc_works" = no ; then # Reject this compiler if test "$FC" != "no" ; then fc_rejected=yes oldFC="$FC" FC="no" fi fi # Determine the extension for Fortran 90 files (it isn't always .f90) FCEXT=$ac_fc_srcext if test "$FC" = "no" ; then if test "$fc_rejected" = "yes" ; then as_fn_error $? "Could not find a usable Fortran 90 compiler. The compiler $oldFC may be incompatible with the Fortran 77 compiler $F77; check the output of configure and consult the installation manuals" "$LINENO" 5 else as_fn_error $? "Could not find a usable Fortran 90 compiler." "$LINENO" 5 fi fi # Find the extension that this compiler uses for modules. # Sets FCMODEXT (and adds it to the list substed) # Sets FCMODINCFLAG (and adds it to the list substed) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module extension" >&5 $as_echo_n "checking for Fortran 90 module extension... " >&6; } if ${pac_cv_fc_module_ext+:} false; then : $as_echo_n "(cached) " >&6 else pac_cv_fc_module_case="unknown" ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF module conftest integer n parameter (n=1) end module conftest _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : # Look for module name # First, try to find known names. This avoids confusion caused by # additional files (like .stb created by some versions of pgf90) # Early versions of the Intel compiler used d as the module extension; # we include that just to finish the test as early as possible. for name in conftest CONFTEST ; do for ext in mod MOD d ; do if test -s $name.$ext ; then if test $name = conftest ; then pac_cv_fc_module_case=lower else pac_cv_fc_module_case=upper fi pac_cv_fc_module_ext=$ext pac_MOD=$ext break fi done if test -n "$pac_cv_fc_module_ext" ; then break ; fi done if test -z "$pac_MOD" ; then # The test on .err is needed for Cray Fortran. pac_MOD=`ls conftest.* 2>&1 | grep -v conftest.${ac_fc_srcext} | grep -v conftest.o | grep -v conftest.err` pac_MOD=`echo $pac_MOD | sed -e 's/conftest\.//g'` pac_cv_fc_module_case="lower" if test "X$pac_MOD" = "X" ; then pac_MOD=`ls CONFTEST* 2>&1 | grep -v CONFTEST.${ac_fc_srcext} | grep -v CONFTEST.o | grep -v CONFTEST.err` pac_MOD=`echo $pac_MOD | sed -e 's/CONFTEST\.//g'` if test -n "$pac_MOD" -a -s "CONFTEST.$pac_MOD" ; then pac_cv_fc_module_case="upper" else # Clear because we must have gotten an error message pac_MOD="" fi fi if test -z "$pac_MOD" ; then pac_cv_fc_module_ext="unknown" else pac_cv_fc_module_ext=$pac_MOD fi fi else pac_cv_fc_module_ext="unknown" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test "$pac_cv_fc_module_ext" = "unknown" ; then # Try again, but with an -em option. Abbreviated, because we're # just looking for the Cray option saveFCFLAGS=$FCFLAGS FCFLAGS="$FCFLAGS -em" cat > conftest.$ac_ext <<_ACEOF module conftest integer n parameter (n=1) end module conftest _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : if test -s conftest.mod ; then pac_cv_fc_module_ext="mod" pac_cv_fc_module_case="lower" elif test -s CONFTEST.mod ; then pac_cv_fc_module_ext="mod" pac_cv_fc_module_case="upper" fi else : # do nothing - already have the unknown default value fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test "$pac_cv_fc_module_ext" = "unknown" ; then # The additional command line option did not help - restore # the original flags. FCFLAGS=$saveFCFLAGS fi fi ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fc_module_ext" >&5 $as_echo "$pac_cv_fc_module_ext" >&6; } # if test "$pac_cv_fc_module_ext" = "unknown" ; then : else FCMODEXT=$pac_MOD fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module include flag" >&5 $as_echo_n "checking for Fortran 90 module include flag... " >&6; } if ${pac_cv_fc_module_incflag+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF module conf integer n parameter (n=1) end module conf _ACEOF pac_madedir="no" if test ! -d conf ; then mkdir conftestdir ; pac_madedir="yes"; fi if test "$pac_cv_fc_module_case" = "upper" ; then pac_module="CONF.$pac_cv_fc_module_ext" else pac_module="conf.$pac_cv_fc_module_ext" fi if ac_fn_fc_try_compile "$LINENO"; then : if test -s "$pac_module" ; then mv $pac_module conftestdir # Remove any temporary files, and hide the work.pc file # (if the compiler generates them) if test -f work.pc ; then mv -f work.pc conftest.pc fi rm -f work.pcl else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build a simple Fortran 90 module" >&5 $as_echo "$as_me: WARNING: Unable to build a simple Fortran 90 module" >&2;} # echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD # cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi fi rm -f core conftest.err conftest.$ac_objext # Remove the conftest* after AC_LANG_CONFTEST rm -rf conftest.dSYM rm -f conftest.$ac_ext cat > conftest.$ac_ext <<_ACEOF program main use conf end _ACEOF # Save the original FCFLAGS saved_FCFLAGS="$FCFLAGS" pac_cv_fc_module_incflag="" for inchdr in '-I' '-M' '-p' ; do FCFLAGS="$saved_FCFLAGS ${inchdr}conftestdir" if ac_fn_fc_try_compile "$LINENO"; then : pac_cv_fc_module_incflag="$inchdr" ; break fi rm -f core conftest.err conftest.$ac_objext done if test "X$pac_cv_fc_module_incflag" = "X" ; then if test -s conftest.pc ; then mv conftest.pc conftestdir/mpimod.pc echo "mpimod.pc" > conftestdir/mpimod.pcl echo "`pwd`/conftestdir/mpimod.pc" >> conftestdir/mpimod.pcl inchdr='-cl,' FCFLAGS="$save_FCFLAGS ${inchdr}conftestdir" if ac_fn_fc_try_compile "$LINENO"; then : pac_fcompile_ok=yes else pac_fcompile_ok=no fi rm -f core conftest.err conftest.$ac_objext if test "$pac_fcompile_ok" = "yes" ; then pac_cv_fc_module_incflag="$inchdr" # Not quite right; see the comments that follow { $as_echo "$as_me:${as_lineno-$LINENO}: result: -cl,filename where filename contains a list of files and directories" >&5 $as_echo "-cl,filename where filename contains a list of files and directories" >&6; } FC_WORK_FILES_ARG="-cl,mpimod.pcl" FCMODINCSPEC="-cl,/mod.pcl" else # The version of the Intel compiler that I have refuses to let # you put the "work catalog" list anywhere but the current directory. pac_cv_fc_module_incflag="Unavailable!" fi else # Early versions of the Intel ifc compiler required a *file* # containing the names of files that contained the names of the # # -cl,filename.pcl # filename.pcl contains # fullpathname.pc # The "fullpathname.pc" is generated, I believe, when a module is # compiled. # Intel compilers use a wierd system: -cl,filename.pcl . If no file is # specified, work.pcl and work.pc are created. However, if you specify # a file, it must contain the name of a file ending in .pc . Ugh! pac_cv_fc_module_incflag="unknown" fi fi # Restore the original FCFLAGS FCFLAGS="$saved_FCFLAGS" if test "$pac_madedir" = "yes" ; then rm -rf conftestdir ; fi # Remove the conftest* after AC_LANG_CONFTEST # This is needed for Mac OSX 10.5 rm -rf conftest.dSYM rm -f conftest* ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fc_module_incflag" >&5 $as_echo "$pac_cv_fc_module_incflag" >&6; } FCMODINCFLAG=$pac_cv_fc_module_incflag { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module output directory flag" >&5 $as_echo_n "checking for Fortran 90 module output directory flag... " >&6; } if ${pac_cv_fc_module_outflag+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF module conf integer n parameter (n=1) end module conf _ACEOF pac_madedir="no" if test ! -d conf ; then mkdir conftestdir ; pac_madedir="yes"; fi if test "$pac_cv_fc_module_case" = "upper" ; then pac_module="CONF.$pac_cv_fc_module_ext" else pac_module="conf.$pac_cv_fc_module_ext" fi # check base case that the compiler can create modules and that they endup in # the current directory if ac_fn_fc_try_compile "$LINENO"; then : if test -s "$pac_module" ; then rm -f "$pac_module" # Remove any temporary files, and hide the work.pc file # (if the compiler generates them) if test -f work.pc ; then mv -f work.pc conftest.pc fi rm -f work.pcl else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build a simple Fortran 90 module" >&5 $as_echo "$as_me: WARNING: Unable to build a simple Fortran 90 module" >&2;} # echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD # cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi fi rm -f core conftest.err conftest.$ac_objext # known flags for reasonably recent versions of various f90 compilers: # gfortran -J${dir} # xlf -qmoddir=${dir} # pgf90 -module ${dir} # ifort -module ${dir} # nagfor -mdir ${dir} # ftn -J ${dir} ## the Cray fortran compiler # ftn -em -J${dir} ## the Cray fortran compiler (crayftn, in 2013) # For this above case, we must have added -em to FCFLAGS, since other # module tests do not always use the module output flag. See # FC_MODULE_EXT , where this is determined. # f95 -YMOD_OUT_DIR=${dir} ## the Absoft fortran compiler # lf95 -M ${dir} ## the Lahey/Fujitsu fortran compiler # f90 -moddir=${dir} ## the Sun f90 compiler # g95 -fmod=${dir} # # If there are any compilers still out there that are totally brain-dead and # don't support an output directory flag, we can write a wrapper script to tell # users to use. Alternatively they can use an older version of MPICH. pac_cv_fc_module_outflag= for mod_flag in '-J' '-J ' '-qmoddir=' '-module ' '-YMOD_OUT_DIR=' '-mdir ' '-moddir=' '-fmod=' '-M '; do rm -f conftestdir/NONEXISTENT conftestdir/* if test -z "${pac_save_FCFLAGS_nesting}" ; then pac_save_FCFLAGS_nesting=0 fi eval pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}='"$FCFLAGS"' pac_save_FCFLAGS_nesting=`expr ${pac_save_FCFLAGS_nesting} + 1` FCFLAGS="$FCFLAGS ${mod_flag}conftestdir" if ac_fn_fc_try_compile "$LINENO"; then : pac_build_success=yes else pac_build_success=no fi rm -f core conftest.err conftest.$ac_objext if test "X$pac_build_success" = Xyes; then : if test -s "conftestdir/${pac_module}"; then : pac_cv_fc_module_outflag="$mod_flag" fi fi pac_save_FCFLAGS_nesting=`expr ${pac_save_FCFLAGS_nesting} - 1` eval FCFLAGS="\$pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}" eval pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}="" if test "X$pac_cv_fc_module_outflag" = X; then : : else break fi done # Remove the conftest* after AC_LANG_CONFTEST rm -rf conftest.dSYM rm -f conftest.$ac_ext if test "$pac_madedir" = "yes" ; then rm -rf conftestdir ; fi { pac_madedir=; unset pac_madedir;} # Remove the conftest* after AC_LANG_CONFTEST # This is needed for Mac OSX 10.5 rm -rf conftest.dSYM rm -f conftest* ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fc_module_outflag" >&5 $as_echo "$pac_cv_fc_module_outflag" >&6; } FCMODOUTFLAG=$pac_cv_fc_module_outflag if test -z "$FCMODOUTFLAG" ; then as_fn_error $? "FCMODOUTFLAG could not be determined but is critical for the current Fortran build system" "$LINENO" 5 fi if test "$pac_cv_fc_module_case" = "upper" ; then MPIMODNAME=MPI MPICONSTMODNAME=MPI_CONSTANTS MPISIZEOFMODNAME=MPI_SIZEOFS MPIBASEMODNAME=MPI_BASE MPI_F08_NAME=MPI_F08 MPI_F08_LINK_CONSTANTS_NAME=MPI_F08_LINK_CONSTANTS MPI_F08_CALLBACKS_NAME=MPI_F08_CALLBACKS MPI_F08_TYPES_NAME=MPI_F08_TYPES MPI_F08_COMPILE_CONSTANTS_NAME=MPI_F08_COMPILE_CONSTANTS PMPI_F08_NAME=PMPI_F08 MPI_C_INTERFACE_NAME=MPI_C_INTERFACE MPI_C_INTERFACE_NOBUF_NAME=MPI_C_INTERFACE_NOBUF MPI_C_INTERFACE_GLUE_NAME=MPI_C_INTERFACE_GLUE MPI_C_INTERFACE_TYPES_NAME=MPI_C_INTERFACE_TYPES MPI_C_INTERFACE_CDESC_NAME=MPI_C_INTERFACE_CDESC else MPIMODNAME=mpi MPICONSTMODNAME=mpi_constants MPISIZEOFMODNAME=mpi_sizeofs MPIBASEMODNAME=mpi_base MPI_F08_NAME=mpi_f08 MPI_F08_LINK_CONSTANTS_NAME=mpi_f08_link_constants MPI_F08_CALLBACKS_NAME=mpi_f08_callbacks MPI_F08_TYPES_NAME=mpi_f08_types MPI_F08_COMPILE_CONSTANTS_NAME=mpi_f08_compile_constants PMPI_F08_NAME=pmpi_f08 MPI_C_INTERFACE_NAME=mpi_c_interface MPI_C_INTERFACE_NOBUF_NAME=mpi_c_interface_nobuf MPI_C_INTERFACE_GLUE_NAME=mpi_c_interface_glue MPI_C_INTERFACE_TYPES_NAME=mpi_c_interface_types MPI_C_INTERFACE_CDESC_NAME=mpi_c_interface_cdesc fi # Assume that all Fortran 90 compilers accept -I for include directories FCINC=-I FCINCFLAG=-I # Check if $MPI_DEFAULT_FCOPTS is valid with $F90 if test -n "$MPI_DEFAULT_FCOPTS" ; then if test "$enable_check_compiler_flags" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran 90 compiler accepts option $MPI_DEFAULT_FCOPTS" >&5 $as_echo_n "checking whether Fortran 90 compiler accepts option $MPI_DEFAULT_FCOPTS... " >&6; } pac_opt="$MPI_DEFAULT_FCOPTS" ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu FCFLAGS_orig="$FCFLAGS" FCFLAGS_opt="$pac_opt $FCFLAGS" pac_result="unknown" cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF FCFLAGS="$FCFLAGS_orig" rm -f pac_test1.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`" if ac_fn_fc_try_link "$LINENO"; then : FCFLAGS="$FCFLAGS_opt" rm -f pac_test2.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`" if ac_fn_fc_try_link "$LINENO"; then : pac_TESTLOG="pac_test.log" rm -f $pac_TESTLOG if { $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5 (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; }; then : pac_result=yes else $as_echo "$as_me: program exited with status $ac_status" >&5 (exit $ac_status) $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5 cat $pac_TESTLOG >&5 pac_result=no fi rm -f $pac_TESTLOG else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5 $as_echo "$pac_result" >&6; } rm -f conftest.$ac_ext # if test "$pac_result" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5 $as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; } pac_result=unknown FCFLAGS="$FCFLAGS_orig" rm -f pac_test3.log # START of PUSHVAL if ${pac_stk_ac_compile_level+:} false; then : as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val else pac_stk_ac_compile_level=0 fi eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile" if test "x$pac_stk_ac_compile_level" = x0; then : eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level fi eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level # END of PUSHVAL ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`" cat > conftest.$ac_ext <<_ACEOF subroutine try() end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } saved_LIBS="$LIBS" LIBS="pac_conftest.$OBJEXT $LIBS" FCFLAGS="$FCFLAGS_opt" rm -f pac_test4.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`" cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_link "$LINENO"; then : pac_TESTLOG="pac_test.log" rm -f $pac_TESTLOG if { $as_echo "$as_me:$LINENO: diff -b pac_test2.log pac_test4.log > $pac_TESTLOG" >&5 (eval diff -b pac_test2.log pac_test4.log > $pac_TESTLOG) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; }; then : pac_result=yes else $as_echo "$as_me: program exited with status $ac_status" >&5 (exit $ac_status) $as_echo "*** diff -b pac_test2.log pac_test4.log :" >&5 cat $pac_TESTLOG >&5 pac_result=no fi rm -f $pac_TESTLOG else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL LIBS="$saved_LIBS" rm -f pac_conftest.$OBJEXT else pac_result=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # START of POPVAL if ${pac_stk_ac_compile_level+:} false; then : if test "x$pac_stk_ac_compile_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;} else eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level as_fn_arith $pac_stk_ac_compile_level - 1 && pac_stk_ac_compile_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;} fi # END of POPVAL { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5 $as_echo "$pac_result" >&6; } rm -f pac_test3.log pac_test4.log fi rm -f pac_test1.log pac_test2.log FCFLAGS="$FCFLAGS_orig" if test "$pac_result" = "yes" ; then FCFLAGS="$FCFLAGS $MPI_DEFAULT_FCOPTS" else : fi ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu else FCFLAGS="$FCFLAGS $MPI_DEFAULT_FCOPTS" fi fi # Most systems allow the Fortran compiler to process .F and .F90 files # using the C preprocessor. However, some systems either do not # allow this or have serious bugs (OSF Fortran compilers have a bug # that generates an error message from cpp). The following test # checks to see if .F works, and if not, whether "cpp -P -C" can be used { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran 90 compiler processes .F90 files with C preprocessor" >&5 $as_echo_n "checking whether Fortran 90 compiler processes .F90 files with C preprocessor... " >&6; } ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu saved_fc_ext=${ac_ext} ac_ext="F90" saved_FCFLAGS="$FCFLAGS" FCFLAGS="$FCFLAGS $CPPFLAGS" cat > conftest.$ac_ext <<_ACEOF program main #define ASIZE 10 integer a(ASIZE) end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : pac_cv_fc_accepts_F90=yes FCCPP="" else pac_cv_fc_accepts_F90=no FCCPP="false" fi rm -f core conftest.err conftest.$ac_objext # Restore Fortran's ac_ext but not FCFLAGS ac_ext="$saved_fc_ext" if test "$pac_cv_fc_accepts_F90" != "yes" ; then pac_cpp_fc="$ac_cpp -C -P conftest.F90 > conftest.$ac_ext" pac_TESTLOG="pac_test.log" rm -f $pac_TESTLOG if { $as_echo "$as_me:$LINENO: $pac_cpp_fc > $pac_TESTLOG" >&5 (eval $pac_cpp_fc > $pac_TESTLOG) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; }; then : if test -s conftest.${ac_ext} ; then if ac_fn_fc_try_compile "$LINENO"; then : pac_cv_fc_accepts_F90="no, use cpp" FCCPP="$CPP -C -P" fi rm -f core conftest.err conftest.$ac_objext rm -f conftest.${ac_ext} fi else $as_echo "$as_me: program exited with status $ac_status" >&5 (exit $ac_status) $as_echo "*** $pac_cpp_fc :" >&5 cat $pac_TESTLOG >&5 fi rm -f $pac_TESTLOG fi FCFLAGS="$saved_FCFLAGS" rm -f conftest.F90 ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fc_accepts_F90" >&5 $as_echo "$pac_cv_fc_accepts_F90" >&6; } # Check whether additional libraries are needed when linking with C # To simply the code in the cache_check macro, chose the routine name # first, in case we need it confname=conf1_ case "$pac_cv_prog_f77_name_mangle" in "lower underscore") confname=conf1_ ;; "upper stdcall") confname=CONF1 ;; upper) confname=CONF1 ;; "lower doubleunderscore") confname=conf1_ ;; lower) confname=conf1 ;; "mixed underscore") confname=conf1_ ;; mixed) confname=conf1 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking what libraries are needed to link Fortran90 programs with C routines that use stdio" >&5 $as_echo_n "checking what libraries are needed to link Fortran90 programs with C routines that use stdio... " >&6; } if ${pac_cv_prog_fc_and_c_stdio_libs+:} false; then : $as_echo_n "(cached) " >&6 else pac_cv_prog_fc_and_c_stdio_libs=unknown ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined(HAVE_STDIO_H) || defined(STDC_HEADERS) #include #endif int $confname( int a ) { printf( "The answer is %d\n", a ); fflush(stdout); return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_compile_ok=yes { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } # Save LIBS and prepend object file to LIBS saved_LIBS="$LIBS" LIBS="pac_conftest.$OBJEXT $LIBS" ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main call conf1(0) end _ACEOF if ac_fn_fc_try_link "$LINENO"; then : pac_cv_prog_fc_and_c_stdio_libs=none else # Try again with -lSystemStubs LIBS="$LIBS -lSystemStubs" if ac_fn_fc_try_link "$LINENO"; then : pac_cv_prog_fc_and_c_stdio_libs="-lSystemStubs" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$saved_LIBS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu rm -f pac_conftest.$OBJEXT fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test "$pac_cv_prog_fc_and_c_stdio_libs" != none -a \ "$pac_cv_prog_fc_and_c_stdio_libs" != unknown ; then FC_OTHER_LIBS="$FC_OTHER_LIBS $pac_cv_prog_fc_and_c_stdio_libs" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_fc_and_c_stdio_libs" >&5 $as_echo "$pac_cv_prog_fc_and_c_stdio_libs" >&6; } # ------------------------------------------------ fi if test "X$modincdir" = "X" ; then modincdir=$includedir fi export modincdir ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TRUE has been defined" >&5 $as_echo_n "checking whether TRUE has been defined... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return TRUE; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : has_true_upper_case=yes else has_true_upper_case=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_true_upper_case" >&5 $as_echo "$has_true_upper_case" >&6; } if test "$has_true_upper_case" = "no" ; then $as_echo "#define TRUE 1" >>confdefs.h $as_echo "#define FALSE 0" >>confdefs.h fi ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu # ---------------------------------------------------------------------------- # We previously allowed "default" as a valid value for $enable_cxx. Now we # assume its available by default and error out if it doesn't work (just like # F77 & FC). The user must pass "--disable-cxx" in order to successfully # complete configure in this case. if test "$enable_cxx" = "default" ; then as_fn_error $? "aborting because \"--enable-cxx=default\" is no longer a supported value" "$LINENO" 5 fi if test "$enable_cxx" = "yes" ; then # Another bug in autoconf. The checks for the C++ compiler do not # ensure that you can link a program that is built with the C++ # compiler. We've seen this error with gcc and icc, particularly # when those compilers accept C++ language elements but are unable # to link programs that are really C++. For that reason, # we've added a test to see if the C++ compiler can produce # an executable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler $CXX can build an executable" >&5 $as_echo_n "checking whether the C++ compiler $CXX can build an executable... " >&6; } if ${pac_cv_cxx_builds_exe+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ class mytest { int a; public: mytest(void) : a(1) {} ~mytest(void) {} }; int main () { mytest a; ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : pac_cv_cxx_builds_exe=yes else pac_cv_cxx_builds_exe=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_cxx_builds_exe" >&5 $as_echo "$pac_cv_cxx_builds_exe" >&6; } if test "$pac_cv_cxx_builds_exe" != yes ; then as_fn_error $? "Aborting because C++ compiler does not work. If you do not need a C++ compiler, configure with --disable-cxx" "$LINENO" 5 fi # Recent failures have come when a standard header is loaded # The Intel icpc 10.x compiler fails with if gcc 4.2 is installed. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler works with string" >&5 $as_echo_n "checking whether C++ compiler works with string... " >&6; } if ${pac_cv_cxx_compiles_string+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : pac_cv_cxx_compiles_string=yes else pac_cv_cxx_compiles_string=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_cxx_compiles_string" >&5 $as_echo "$pac_cv_cxx_compiles_string" >&6; } if test "$pac_cv_cxx_compiles_string" != yes ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The C++ compiler $CXX cannot compile a program containing the header - this may indicate a problem with the C++ installation. Consider configuing with --disable-cxx" >&5 $as_echo "$as_me: WARNING: The C++ compiler $CXX cannot compile a program containing the header - this may indicate a problem with the C++ installation. Consider configuing with --disable-cxx" >&2;} fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports exceptions" >&5 $as_echo_n "checking whether the compiler supports exceptions... " >&6; } if ${ac_cv_cxx_exceptions+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { try { throw 1; } catch (int i) { return i; } ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_exceptions=yes else ac_cv_cxx_exceptions=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_exceptions" >&5 $as_echo "$ac_cv_cxx_exceptions" >&6; } if test "$ac_cv_cxx_exceptions" = yes; then $as_echo "#define HAVE_CXX_EXCEPTIONS /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; } if ${ac_cv_cxx_bool+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int f(int x){return 1;} int f(char x){return 1;} int f(bool x){return 1;} int main () { bool b = true; return f(b); ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_bool=yes else ac_cv_cxx_bool=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_bool" >&5 $as_echo "$ac_cv_cxx_bool" >&6; } if test "$ac_cv_cxx_bool" != yes; then $as_echo "#define bool int" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 $as_echo_n "checking whether the compiler implements namespaces... " >&6; } if ${ac_cv_cxx_namespaces+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ namespace Outer { namespace Inner { int i = 0; }} int main () { using namespace Outer::Inner; return i; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_namespaces=yes else ac_cv_cxx_namespaces=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5 $as_echo "$ac_cv_cxx_namespaces" >&6; } if test "$ac_cv_cxx_namespaces" = yes; then $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h fi if test "$ac_cv_cxx_namespaces" != "yes" ; then as_fn_error $? "Namespaces are required for the MPI C++ interface" "$LINENO" 5 fi HAVE_CXX_EXCEPTIONS=0 if test "$ac_cv_cxx_exceptions" = "yes" ; then HAVE_CXX_EXCEPTIONS=1 fi # iostream and math are needed for examples/cxx/cxxpi.cxx { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether available" >&5 $as_echo_n "checking whether available... " >&6; } if ${pac_cv_cxx_has_iostream+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { using namespace std; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : pac_cv_cxx_has_iostream=yes else pac_cv_cxx_has_iostream=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_cxx_has_iostream" >&5 $as_echo "$pac_cv_cxx_has_iostream" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements the namespace std" >&5 $as_echo_n "checking whether the compiler implements the namespace std... " >&6; } if ${ac_cv_cxx_namespace_std+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_cxx_namespace_std=no if test "$ac_cv_cxx_namespaces" = yes ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include using namespace std; int main () { cout << "message\n"; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_cxx_namespace_std=yes else ac_cv_cxx_namespace_std=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespace_std" >&5 $as_echo "$ac_cv_cxx_namespace_std" >&6; } if test "$ac_cv_cxx_namespace_std" = yes; then $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether available" >&5 $as_echo_n "checking whether available... " >&6; } if ${pac_cv_cxx_has_math+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { using namespace std; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : pac_cv_cxx_has_math=yes else pac_cv_cxx_has_math=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_cxx_has_math" >&5 $as_echo "$pac_cv_cxx_has_math" >&6; } # GNU changed the calling conventions between minor releases (!!!) # This is too hard to detect, but we should be able to detect # the version mismatch. By default, we set the GNU version to 0. # In a cross-compiling environment, these can be set with environment # variables, either directly or through the standard "CROSS" variable. if test -z "$GNUCXX_VERSION" ; then if test -n "$CROSS_GNUCXX_VERSION" ; then GNUCXX_VERSION=$CROSS_GNUCXX_VERSION else GNUCXX_VERSION=0 fi fi if test -z "$GNUCXX_MINORVERSION" ; then if test -n "$CROSS_GNUCXX_MINORVERSION" ; then GNUCXX_MINORVERSION=$CROSS_GNUCXX_MINORVERSION else GNUCXX_MINORVERSION=0 fi fi if test "$cross_compiling" = "no" -a "$ac_compiler_gnu" = "yes" -a \ "$GNUCXX_VERSION" = 0 -a "$GNUCXX_MINORVERSION" = 0 ; then ac_vals="" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU g++ version" >&5 $as_echo_n "checking for GNU g++ version... " >&6; } if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main() { int v = -1, m = -1; FILE *fp = fopen("conftest.out","w"); #ifdef __GNUC_MINOR__ m = __GNUC_MINOR__; #endif #ifdef __GNUC__ v = __GNUC__; #endif fprintf( fp, "v=%d, m=%d\n", v, m ); fclose( fp ); return 0; } _ACEOF if ac_fn_cxx_try_run "$LINENO"; then : ac_vals=`cat conftest.out` fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test -n "$ac_vals" ; then v=`echo "$ac_vals" | sed -e 's/v=\(.*\),.*/\1/'` m=`echo "$ac_vals" | sed -e 's/.*m=\(.*\)/\1/'` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $v . $m" >&5 $as_echo "$v . $m" >&6; } GNUCXX_VERSION=$v GNUCXX_MINORVERSION=$m else { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 $as_echo "unknown" >&6; } fi fi bindings="$bindings cxx" $as_echo "#define HAVE_CXX_BINDING 1" >>confdefs.h INCLUDE_MPICXX_H='#include "mpicxx.h"' # In order to support the Fortran datatypes within C++, # # FORTRAN_BINDING always has a CPP-time value of either 0 or 1, # so that it may be used in #if statements without adding to # the CPP name space # Special C++ datatypes. Set to DATATYPE NULL first; we'll # replace the ones that we have later, after we have determined # the C datatypes MPIR_CXX_BOOL=0x0c000000 MPIR_CXX_COMPLEX=0x0c000000 MPIR_CXX_DOUBLE_COMPLEX=0x0c000000 MPIR_CXX_LONG_DOUBLE_COMPLEX=0x0c000000 # determine rpath and other shared library flags for CXX cxx_shlib_conf=src/env/cxx_shlib.conf # It appears that the libtool dynamic linking strategy on Darwin is this: # 1. Link all shared libs with "-install_name /full/path/to/libfoo.dylib" # 2. Don't do anything special when linking programs, since it seems that the # darwin dynamic linker will always use the "install_name" field from the lib # that was found at program link-time. (CONFIRMED) This is in opposition to # the way that Linux does it, where specifying a "-rpath" argument at program # link-time is important. # # There is an alternative darwin strategy for versions # >= 10.5, see this: http://www.cmake.org/pipermail/cmake/2010-August/038970.html # (goodell@ 2011-06-17) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library (esp. rpath) characteristics of CXX" >&5 $as_echo_n "checking for shared library (esp. rpath) characteristics of CXX... " >&6; } # unfortunately, config.rpath expects the compiler in question is always CC and # uses several other environment variables as input if test -z "${pac_save_CC_nesting}" ; then pac_save_CC_nesting=0 fi eval pac_save_CC_${pac_save_CC_nesting}='"$CC"' pac_save_CC_nesting=`expr ${pac_save_CC_nesting} + 1` if test -z "${pac_save_GCC_nesting}" ; then pac_save_GCC_nesting=0 fi eval pac_save_GCC_${pac_save_GCC_nesting}='"$GCC"' pac_save_GCC_nesting=`expr ${pac_save_GCC_nesting} + 1` if test -z "${pac_save_LD_nesting}" ; then pac_save_LD_nesting=0 fi eval pac_save_LD_${pac_save_LD_nesting}='"$LD"' pac_save_LD_nesting=`expr ${pac_save_LD_nesting} + 1` # these two don't currently get overridden, but we push/pop them for safety in # case they do in the future if test -z "${pac_save_LDFLAGS_nesting}" ; then pac_save_LDFLAGS_nesting=0 fi eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"' pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1` if test -z "${pac_save_with_gnu_ld_nesting}" ; then pac_save_with_gnu_ld_nesting=0 fi eval pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}='"$with_gnu_ld"' pac_save_with_gnu_ld_nesting=`expr ${pac_save_with_gnu_ld_nesting} + 1` # set the temporary override values (if any) CC="$CXX" GCC="$GXX" LD="$LD_CXX" # ensure the values are available to the script export CC export GCC export LDFLAGS export LD export with_gnu_ld if $ac_aux_dir/config.rpath "$host" > $cxx_shlib_conf; then : : else as_fn_error $? "unable to execute $ac_aux_dir/config.rpath" "$LINENO" 5 fi C_LINKPATH_SHL="" rm -f conftest.out # restore the old values pac_save_with_gnu_ld_nesting=`expr ${pac_save_with_gnu_ld_nesting} - 1` eval with_gnu_ld="\$pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}" eval pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}="" pac_save_LD_nesting=`expr ${pac_save_LD_nesting} - 1` eval LD="\$pac_save_LD_${pac_save_LD_nesting}" eval pac_save_LD_${pac_save_LD_nesting}="" pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1` eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}" eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}="" pac_save_GCC_nesting=`expr ${pac_save_GCC_nesting} - 1` eval GCC="\$pac_save_GCC_${pac_save_GCC_nesting}" eval pac_save_GCC_${pac_save_GCC_nesting}="" pac_save_CC_nesting=`expr ${pac_save_CC_nesting} - 1` eval CC="\$pac_save_CC_${pac_save_CC_nesting}" eval pac_save_CC_${pac_save_CC_nesting}="" { $as_echo "$as_me:${as_lineno-$LINENO}: result: done (results in $cxx_shlib_conf)" >&5 $as_echo "done (results in $cxx_shlib_conf)" >&6; } fi if test "$enable_cxx" = yes; then # Check if $MPI_DEFAULT_CXXOPTS is valid with $CXX if test -n "$MPI_DEFAULT_CXXOPTS" ; then if test "$enable_check_compiler_flags" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts option $MPI_DEFAULT_CXXOPTS" >&5 $as_echo_n "checking whether C++ compiler accepts option $MPI_DEFAULT_CXXOPTS... " >&6; } pac_opt="$MPI_DEFAULT_CXXOPTS" ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu CXXFLAGS_orig="$CXXFLAGS" CXXFLAGS_opt="$pac_opt $CXXFLAGS" pac_result="unknown" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF CXXFLAGS="$CXXFLAGS_orig" rm -f pac_test1.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`" if ac_fn_cxx_try_link "$LINENO"; then : CXXFLAGS="$CXXFLAGS_opt" rm -f pac_test2.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`" if ac_fn_cxx_try_link "$LINENO"; then : pac_TESTLOG="pac_test.log" rm -f $pac_TESTLOG if { $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5 (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; }; then : pac_result=yes else $as_echo "$as_me: program exited with status $ac_status" >&5 (exit $ac_status) $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5 cat $pac_TESTLOG >&5 pac_result=no fi rm -f $pac_TESTLOG else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5 $as_echo "$pac_result" >&6; } rm -f conftest.$ac_ext if test "$pac_result" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5 $as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; } pac_result=unknown CXXFLAGS="$CXXFLAGS_orig" rm -f pac_test3.log # START of PUSHVAL if ${pac_stk_ac_compile_level+:} false; then : as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val else pac_stk_ac_compile_level=0 fi eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile" if test "x$pac_stk_ac_compile_level" = x0; then : eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level fi eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level # END of PUSHVAL ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(void); int foo(void){return 0;} _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } saved_LIBS="$LIBS" LIBS="pac_conftest.$OBJEXT $LIBS" CXXFLAGS="$CXXFLAGS_opt" rm -f pac_test4.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : pac_TESTLOG="pac_test.log" rm -f $pac_TESTLOG if { $as_echo "$as_me:$LINENO: diff -b pac_test2.log pac_test4.log > $pac_TESTLOG" >&5 (eval diff -b pac_test2.log pac_test4.log > $pac_TESTLOG) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; }; then : pac_result=yes else $as_echo "$as_me: program exited with status $ac_status" >&5 (exit $ac_status) $as_echo "*** diff -b pac_test2.log pac_test4.log :" >&5 cat $pac_TESTLOG >&5 pac_result=no fi rm -f $pac_TESTLOG else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL LIBS="$saved_LIBS" rm -f pac_conftest.$OBJEXT else pac_result=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # START of POPVAL if ${pac_stk_ac_compile_level+:} false; then : if test "x$pac_stk_ac_compile_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;} else eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level as_fn_arith $pac_stk_ac_compile_level - 1 && pac_stk_ac_compile_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;} fi # END of POPVAL { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5 $as_echo "$pac_result" >&6; } rm -f pac_test3.log pac_test4.log fi rm -f pac_test1.log pac_test2.log CXXFLAGS="$CXXFLAGS_orig" if test "$pac_result" = "yes" ; then CXXFLAGS="$CXXFLAGS $MPI_DEFAULT_CXXOPTS" else : fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu else CXXFLAGS="$CXXFLAGS $MPI_DEFAULT_CXXOPTS" fi fi fi # ---------------------------------------------------------------------------- # End of the bindings support # ---------------------------------------------------------------------------- ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # # ---------------------------------------------------------------------------- # Done with the basic argument processing and decisions about which # subsystems to build # ---------------------------------------------------------------------------- # Look for perl. Perl is used *only* in the tests of the commands such as # mpiexec, mpicc, etc, in test/commands, and in some of the utility # programs for processing log files . If perl is not found, # MPICH may still be built and used. # We need the full path to perl since we'll use it as the interpreter for # a shell script. # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PERL+:} false; then : $as_echo_n "(cached) " >&6 else case $PERL in [\\/]* | ?:[\\/]*) ac_cv_path_PERL="$PERL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PERL=$ac_cv_path_PERL if test -n "$PERL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 $as_echo "$PERL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Look for ar. If we fail, abort for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AR" && break done if test -z "$AR" ; then as_fn_error $? "The program ar is required for building MPICH. Make sure that your path includes ar" "$LINENO" 5 fi # FIXME: this is probably unnecessary now that we only do one "ar" at the end # (via libtool). If anything, it's likely to cause problems instead. # AR_FLAGS provides a way to potentially improve build performance on Mac OSX AR_FLAGS=cr # this logic is lame, should really write a real test at some point case $host in #( # Barry proposes AR_FLAGS="Scq" in trac#754, but that won't work correctly for re-builds *-*-darwin*) : AR_FLAGS=Scr ;; #( *) : ;; esac # causes AC_SUBST too # Note that we set RANLIB to true if we don't find it (some systems neither # need it nor provide it) for ac_prog in ranlib do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$RANLIB" && break done test -n "$RANLIB" || RANLIB="true" # Check for the killall program; this can be used in some of the tests # in test/commands for ac_prog in killall do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_KILLALL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$KILLALL"; then ac_cv_prog_KILLALL="$KILLALL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_KILLALL="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi KILLALL=$ac_cv_prog_KILLALL if test -n "$KILLALL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILLALL" >&5 $as_echo "$KILLALL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$KILLALL" && break done test -n "$KILLALL" || KILLALL="true" # Does xargs need the -r option to handle the case where the input # is empty (gnu utils do, Mac OSX does not accept -r) xargs_out=`echo "" | xargs ls | wc -l | sed -e 's/ //g'` if test "$xargs_out" != "0" ; then XARGS_NODATA_OPT=-r fi if test -z "$INSTALL" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: No install program available" >&5 $as_echo "No install program available" >&6; } else # first make any "confdb/install-sh -c" into an absolute path # this is a hack, but it's still much cleaner than anything else I could # come up with (see tt#1007) [goodell@] case "$INSTALL" in #( /*) : : ;; #( *install-sh*) : INSTALL="$master_top_srcdir/$INSTALL" ;; #( *) : ;; esac # Check that this install really works rm -f conftest echo "Test file" > conftest if test ! -d .conftest ; then mkdir .conftest ; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether install works" >&5 $as_echo_n "checking whether install works... " >&6; } if $INSTALL conftest .conftest >/dev/null 2>&1 ; then installOk=yes else installOk=no fi rm -rf .conftest conftest { $as_echo "$as_me:${as_lineno-$LINENO}: result: $installOk" >&5 $as_echo "$installOk" >&6; } if test "$installOk" = no ; then if test -n "$ac_install_sh" ; then INSTALL=$ac_install_sh else as_fn_error $? "Unable to find working install" "$LINENO" 5 fi fi fi # # On Mac OS/X, install breaks libraries unless used with the -p switch # We also need mkdir -p. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir -p works" >&5 $as_echo_n "checking whether mkdir -p works... " >&6; } if ${pac_cv_mkdir_p+:} false; then : $as_echo_n "(cached) " >&6 else pac_cv_mkdir_p=no rm -rf .tmp if mkdir -p .tmp/.foo 1>/dev/null 2>&1 ; then if test -d .tmp/.foo ; then pac_cv_mkdir_p=yes fi fi rm -rf .tmp fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_mkdir_p" >&5 $as_echo "$pac_cv_mkdir_p" >&6; } if test "$pac_cv_mkdir_p" = "yes" ; then MKDIR_P="mkdir -p" export MKDIR_P else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mkdir -p does not work; the install step may fail" >&5 $as_echo "$as_me: WARNING: mkdir -p does not work; the install step may fail" >&2;} fi true if test "X$MAKE" = "X" ; then for ac_prog in make gnumake nmake pmake smake do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MAKE+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MAKE"; then ac_cv_prog_MAKE="$MAKE" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_MAKE="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MAKE=$ac_cv_prog_MAKE if test -n "$MAKE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 $as_echo "$MAKE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$MAKE" && break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock skew breaks make" >&5 $as_echo_n "checking whether clock skew breaks make... " >&6; } if ${pac_cv_prog_make_found_clock_skew+:} false; then : $as_echo_n "(cached) " >&6 else # This is needed for Mac OSX 10.5 rm -rf conftest.dSYM rm -f conftest* cat > conftest < conftest.out 2>&1 if grep -i skew conftest >/dev/null 2>&1 ; then pac_cv_prog_make_found_clock_skew=yes else pac_cv_prog_make_found_clock_skew=no fi # This is needed for Mac OSX 10.5 rm -rf conftest.dSYM rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_make_found_clock_skew" >&5 $as_echo "$pac_cv_prog_make_found_clock_skew" >&6; } if test "$pac_cv_prog_make_found_clock_skew" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Clock skew found by make. The configure and build may fail. Consider building in a local instead of NFS filesystem." >&5 $as_echo "$as_me: WARNING: Clock skew found by make. The configure and build may fail. Consider building in a local instead of NFS filesystem." >&2;} fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make supports include" >&5 $as_echo_n "checking whether make supports include... " >&6; } if ${pac_cv_prog_make_include+:} false; then : $as_echo_n "(cached) " >&6 else # This is needed for Mac OSX 10.5 rm -rf conftest.dSYM rm -f conftest cat > conftest <<. ALL: @echo "success" . cat > conftest1 <<. include conftest . pac_str=`$MAKE -f conftest1 2>&1` # This is needed for Mac OSX 10.5 rm -rf conftest.dSYM rm -f conftest conftest1 if test "$pac_str" != "success" ; then pac_cv_prog_make_include="no" else pac_cv_prog_make_include="yes" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_make_include" >&5 $as_echo "$pac_cv_prog_make_include" >&6; } if test "$pac_cv_prog_make_include" = "no" ; then : else : fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make allows comments in actions" >&5 $as_echo_n "checking whether make allows comments in actions... " >&6; } if ${pac_cv_prog_make_allows_comments+:} false; then : $as_echo_n "(cached) " >&6 else # This is needed for Mac OSX 10.5 rm -rf conftest.dSYM rm -f conftest cat > conftest <<. SHELL=/bin/sh ALL: @# This is a valid comment! @echo "success" . pac_str=`$MAKE -f conftest 2>&1` # This is needed for Mac OSX 10.5 rm -rf conftest.dSYM rm -f conftest if test "$pac_str" != "success" ; then pac_cv_prog_make_allows_comments="no" else pac_cv_prog_make_allows_comments="yes" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_make_allows_comments" >&5 $as_echo "$pac_cv_prog_make_allows_comments" >&6; } if test "$pac_cv_prog_make_allows_comments" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your make does not allow comments in target code. Using this make may cause problems when building programs. You should consider using gnumake instead." >&5 $as_echo "$as_me: WARNING: Your make does not allow comments in target code. Using this make may cause problems when building programs. You should consider using gnumake instead." >&2;} fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for virtual path format" >&5 $as_echo_n "checking for virtual path format... " >&6; } if ${pac_cv_prog_make_vpath+:} false; then : $as_echo_n "(cached) " >&6 else # This is needed for Mac OSX 10.5 rm -rf conftest.dSYM rm -rf conftest* mkdir conftestdir cat >conftestdir/a.c < conftest <&1 | grep 'conftestdir/a.c'` if test -n "$ac_out" ; then pac_cv_prog_make_vpath="VPATH" else rm -f conftest cat > conftest <&1 | grep 'conftestdir/a.c'` if test -n "$ac_out" ; then pac_cv_prog_make_vpath=".PATH" else pac_cv_prog_make_vpath="neither VPATH nor .PATH works" fi fi # This is needed for Mac OSX 10.5 rm -rf conftest.dSYM rm -rf conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_make_vpath" >&5 $as_echo "$pac_cv_prog_make_vpath" >&6; } if test "$pac_cv_prog_make_vpath" = "VPATH" ; then VPATH='VPATH=.:${srcdir}' elif test "$pac_cv_prog_make_vpath" = ".PATH" ; then VPATH='.PATH: . ${srcdir}' fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make sets CFLAGS" >&5 $as_echo_n "checking whether make sets CFLAGS... " >&6; } if ${pac_cv_prog_make_set_cflags+:} false; then : $as_echo_n "(cached) " >&6 else # This is needed for Mac OSX 10.5 rm -rf conftest.dSYM rm -f conftest cat > conftest <&1` # This is needed for Mac OSX 10.5 rm -rf conftest.dSYM rm -f conftest if test "$pac_str" = "XX" ; then pac_cv_prog_make_set_cflags="no" else pac_cv_prog_make_set_cflags="yes" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_make_set_cflags" >&5 $as_echo "$pac_cv_prog_make_set_cflags" >&6; } if test "$pac_cv_prog_make_set_cflags" = "no" ; then : else SET_CFLAGS='CFLAGS=' fi if test "$pac_cv_prog_make_echos_dir" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi else SET_MAKE="MAKE=${MAKE-make}" fi # # Check for bash to allow more robust shell scripts # Extract the first word of "bash", so it can be a program name with args. set dummy bash; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_BASH_SHELL+:} false; then : $as_echo_n "(cached) " >&6 else case $BASH_SHELL in [\\/]* | ?:[\\/]*) ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi BASH_SHELL=$ac_cv_path_BASH_SHELL if test -n "$BASH_SHELL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5 $as_echo "$BASH_SHELL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # # Confirm that bash has working arrays. We can use this to # build more robust versions of the scripts (particularly the # compliation scripts) by taking advantage of the array features in # bash. bashWorks=no if test -x "$BASH_SHELL" ; then cat >>conftest <&5 $as_echo_n "checking whether $BASH_SHELL supports arrays... " >&6; } chmod +x conftest if ./conftest 2>&1 >/dev/null ; then bashWorks=yes else bashWorks=no fi rm -f conftest* { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bashWorks" >&5 $as_echo "$bashWorks" >&6; } fi if test "x$bashWorks" = xyes; then BUILD_BASH_SCRIPTS_TRUE= BUILD_BASH_SCRIPTS_FALSE='#' else BUILD_BASH_SCRIPTS_TRUE='#' BUILD_BASH_SCRIPTS_FALSE= fi # ---------------------------------------------------------------------------- # At this point, we've finally settled on the value of PMPILIBNAME. We # can now set NEEDSPLIB. if test "$NEEDSPLIB" = yes -a "$PMPILIBNAME" = "$MPILIBNAME" ; then NEEDSPLIB=no fi # We are cheating a bit here and reaching inside of the libtool macros to # extract the correct shared library extension. It would be nice if this # were publicly available in at least the same way that $libext is. eval SHLIB_EXT='"'$shrext_cmds'"' export SHLIB_EXT # ---------------------------------------------------------------------------- # # Add the steps for debugger support BUILD_TVDLL=no if test "$enable_debuginfo" = "yes" ; then # We can build the Totalview interface DLL only if we know how to build # shared libraries. # FIXME is this really the right test? # No. Before MPICH 1.5, there was the capability to build the debugger # libraries without forcing the build of shared libraries for everything. # There may be some way to restore this capability, but until then, we # at least cause the configure to cleanly fail with a clear error message if test "X$enable_shared" = "Xyes" ; then BUILD_TVDLL=yes else as_fn_error $? "Building with --enable-debuginfo now requires building with shared library support. Add --enable-shared and reconfigure" "$LINENO" 5 fi # One more nasty problem. Totalview relies on debugger symbols # being present in the executable. Some experimental versions of # gcc (3.2 20020329 for ia64) do *not* include the object symbols # when debugging. For HPUX, the necessary linking options are # +noobjdebug # for C, Fortran, and C++. We don't have a good test for this yet, # so we add a warning if test "$ac_cv_c_compiler_gnu" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Some versions of gcc do not include debugging information within the executable. Totalview requires this information to detect an MPICH code. If you have trouble, try linking with the additional option +noobjdebug on all link lines (consider adding it to LDFLAGS)" >&5 $as_echo "$as_me: WARNING: Some versions of gcc do not include debugging information within the executable. Totalview requires this information to detect an MPICH code. If you have trouble, try linking with the additional option +noobjdebug on all link lines (consider adding it to LDFLAGS)" >&2;} fi # The debugger library name cannot be set until we know the extension # of shared libraries - the name is so on most Unix system, dylib on OS X. $as_echo "#define HAVE_DEBUGGER_SUPPORT 1" >>confdefs.h # The debugger support requires a shared library. This is handled # below, after we check for compiler support for shared libraries # Note: if libdir contains exec_prefix, handle the fact that the # default exec_prefix is NONE, which (much later in configure) # gets turned into the value of prefix ##ENVVAR: MPICH_DEBUGLIBNAME - Set this environment variable to ## override the default name of the debugger support library. ## The default name is libtvmpich.$SHLIB_EXT (e.g., libtvmpich.so for ## most Unix versions, libtvmpich.dylib for Mac OSX). ##ENVVAR END: if test -z "$MPICH_DEBUGLIBNAME" ; then DEBUGLIBNAME=libtvmpich$SHLIB_EXT else # FIXME DJG I don't think this can be supported arbitrarily by the new # build system (I'm not sure it was supported correctly by the old # system either) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: overriding MPICH_DEBUGLIBNAME is currently untested and probably does not work" >&5 $as_echo "$as_me: WARNING: overriding MPICH_DEBUGLIBNAME is currently untested and probably does not work" >&2;} DEBUGLIBNAME=$MPICH_DEBUGLIBNAME fi if test "x$exec_prefix" = xNONE ; then saveExecPrefix=$exec_prefix exec_prefix=$prefix eval dlldir=$libdir/$DEBUGLIBNAME exec_prefix=$saveExecPrefix else eval dlldir=$libdir/$DEBUGLIBNAME fi dlldir='"'$dlldir'"' cat >>confdefs.h <<_ACEOF #define MPICH_INFODLL_LOC $dlldir _ACEOF fi # used by automakefiles to conditionally build the DLL if test x$BUILD_TVDLL = xyes; then BUILD_DEBUGGER_DLL_TRUE= BUILD_DEBUGGER_DLL_FALSE='#' else BUILD_DEBUGGER_DLL_TRUE='#' BUILD_DEBUGGER_DLL_FALSE= fi # ---------------------------------------------------------------------------- nameserv_name="" # Get the default nameserver, if no nameserver was selected. A process # manager may advertise a nameserver name by setting the variable # MPID_PM_NAMESERVER. if test "$with_namepublisher" = "default" ; then if test -n "$MPID_PM_NAMESERVER" ; then with_namepublisher=$MPID_PM_NAMESERVER else # The default is to use pmi to communicate published names with_namepublisher=pmi fi fi if test "$with_namepublisher" != no -a "$with_namepublisher" != "none" ; then case "$with_namepublisher" in none|no) ;; # Removed ldap namepublisher hook - we no longer support or distribute # the ldap-based name server file*) # Note that we always build the Makefile for the file version because # this name publisher is really too simple to require a # separate configure, and we might as well include a basic # name publisher with any MPICH distribution # We DO need to extract the directory name that is used for writing # the files, with the User's home directory as the default nameserv_name="file" basedir=`echo $with_namepublisher | sed -e 's/file://'` if test "$basedir" = "$with_namepublisher" ; then # Reset since no directory was set. basedir='"."'; fi cat >>confdefs.h <<_ACEOF #define FILE_NAMEPUB_BASEDIR $basedir _ACEOF $as_echo "#define USE_FILE_FOR_NAMEPUB 1" >>confdefs.h ;; *) # Check for a new namepublisher dir=$with_namepublisher # If we later need args, here is where we can strip them off of the # with argument if test -d "$use_top_srcdir/src/nameserv/$dir" ; then if test -x "$use_top_srcdir/src/nameserv/$dir/configure" ; then # Run the configure in this directory if necessary subsystems="$subsystems src/nameserv/$dir" fi nameserv_name=$dir else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown name publisher $with_namepublisher" >&5 $as_echo "$as_me: WARNING: Unknown name publisher $with_namepublisher" >&2;} fi ;; esac fi if test -n "$nameserv_name" ; then $as_echo "#define HAVE_NAMEPUB_SERVICE 1" >>confdefs.h fi export nameserv_name if test "X$nameserv_name" = "Xfile"; then BUILD_NAMEPUB_FILE_TRUE= BUILD_NAMEPUB_FILE_FALSE='#' else BUILD_NAMEPUB_FILE_TRUE='#' BUILD_NAMEPUB_FILE_FALSE= fi if test "X$nameserv_name" = "Xpmi"; then BUILD_NAMEPUB_PMI_TRUE= BUILD_NAMEPUB_PMI_FALSE='#' else BUILD_NAMEPUB_PMI_TRUE='#' BUILD_NAMEPUB_PMI_FALSE= fi # In case the documentation targets are used, find doctext and attempt to # find the source for the doctext LaTeX style files. Use "false" if # doctext is not found # Extract the first word of "doctext", so it can be a program name with args. set dummy doctext; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_DOCTEXT+:} false; then : $as_echo_n "(cached) " >&6 else case $DOCTEXT in [\\/]* | ?:[\\/]*) ac_cv_path_DOCTEXT="$DOCTEXT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_DOCTEXT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_DOCTEXT" && ac_cv_path_DOCTEXT="false" ;; esac fi DOCTEXT=$ac_cv_path_DOCTEXT if test -n "$DOCTEXT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCTEXT" >&5 $as_echo "$DOCTEXT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi export DOCTEXT # ---------------------------------------------------------------------------- # Check for C compiler characteristics { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __cplusplus /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this sort of thing. */ char tx; char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then $as_echo "#define const /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 $as_echo_n "checking for working volatile... " >&6; } if ${ac_cv_c_volatile+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { volatile int x; int * volatile y = (int *) 0; return !x && !y; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_volatile=yes else ac_cv_c_volatile=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 $as_echo "$ac_cv_c_volatile" >&6; } if test $ac_cv_c_volatile = no; then $as_echo "#define volatile /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 $as_echo_n "checking for C/C++ restrict keyword... " >&6; } if ${ac_cv_c_restrict+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_restrict=no # The order here caters to the fact that C++ does not require restrict. for ac_kw in __restrict __restrict__ _Restrict restrict; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ typedef int * int_ptr; int foo (int_ptr $ac_kw ip) { return ip[0]; } int main () { int s[1]; int * $ac_kw t = s; t[0] = 0; return foo(t) ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_restrict=$ac_kw fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_restrict" != no && break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 $as_echo "$ac_cv_c_restrict" >&6; } case $ac_cv_c_restrict in restrict) ;; no) $as_echo "#define restrict /**/" >>confdefs.h ;; *) cat >>confdefs.h <<_ACEOF #define restrict $ac_cv_c_restrict _ACEOF ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 $as_echo_n "checking for inline... " >&6; } if ${ac_cv_c_inline+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; static $ac_kw foo_t static_foo () {return 0; } $ac_kw foo_t foo () {return 0; } #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_inline=$ac_kw fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 $as_echo "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; *) case $ac_cv_c_inline in no) ac_val=;; *) ac_val=$ac_cv_c_inline;; esac cat >>confdefs.h <<_ACEOF #ifndef __cplusplus #define inline $ac_val #endif _ACEOF ;; esac if test "$ac_cv_c_compiler_gnu" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ allowed" >&5 $as_echo_n "checking whether __attribute__ allowed... " >&6; } if ${pac_cv_gnu_attr_pure+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(int) __attribute__ ((pure)); int main () { int a; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_gnu_attr_pure=yes else pac_cv_gnu_attr_pure=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_pure" >&5 $as_echo "$pac_cv_gnu_attr_pure" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) allowed" >&5 $as_echo_n "checking whether __attribute__((format)) allowed... " >&6; } if ${pac_cv_gnu_attr_format+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(char *,...) __attribute__ ((format(printf,1,2))); int main () { int a; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_gnu_attr_format=yes else pac_cv_gnu_attr_format=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_format" >&5 $as_echo "$pac_cv_gnu_attr_format" >&6; } if test "$pac_cv_gnu_attr_pure" = "yes" -a "$pac_cv_gnu_attr_format" = "yes" ; then $as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports __builtin_expect" >&5 $as_echo_n "checking if C compiler supports __builtin_expect... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return __builtin_expect(1, 1) ? 1 : 0 ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : have_builtin_expect=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else have_builtin_expect=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test x$have_builtin_expect = xyes ; then $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h fi # We need to check for the endianess in order to implement the # "external32" representations. This defines "WORDS_BIGENDIAN when # the system is bigendian. # As of autoconf 2.62, this macro takes an additional argument for systems # that can produce object files for either endianess. # With the as-always-incompatible-with-every-version autoconf, the # arguments for this macro *changed* in 2.62 to # (if-bigendian,if-littleendian,unknown,universal) # The fourth argument is new. # Also note that the definition emitted by autoheader requires that gcc # be used to compile the programs - other compilers may not define the # non-standard __BIG_ENDIAN__ or __LITTLE_ENDIAN__ CPP names on which # autoconf 2.62 now depends. byteOrdering=unknown { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } if ${ac_cv_c_bigendian+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __APPLE_CC__ not a universal capable compiler #endif typedef int dummy; _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. ac_arch= ac_prev= for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do if test -n "$ac_prev"; then case $ac_word in i?86 | x86_64 | ppc | ppc64) if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then ac_arch=$ac_word else ac_cv_c_bigendian=universal break fi ;; esac ac_prev= elif test "x$ac_word" = "x-arch"; then ac_prev=arch fi done fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then # See if sys/param.h defines the BYTE_ORDER macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ && LITTLE_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to _BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef _BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # Compile a test program. if test "$cross_compiling" = yes; then : # Try to guess by grepping values from an object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; int use_ascii (int i) { return ascii_mm[i] + ascii_ii[i]; } short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; } extern int foo; int main () { return use_ascii (foo) == use_ebcdic (foo); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else # finding both strings is unlikely to happen, but who knows? ac_cv_c_bigendian=unknown fi fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* Are we little or big endian? From Harbison&Steele. */ union { long int l; char c[sizeof (long int)]; } u; u.l = 1; return u.c[sizeof (long int) - 1] == 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_bigendian=no else ac_cv_c_bigendian=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 $as_echo "$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in #( yes) byteOrdering=big;; #( no) byteOrdering=little ;; #( universal) byteOrdering=universal ;; #( *) as_fn_error $? "unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; esac case $byteOrdering in big) # Nothing to do - the c_bigendian macro takes care of it : ;; little) $as_echo "#define WORDS_LITTLEENDIAN 1" >>confdefs.h ;; universal) $as_echo "#define WORDS_UNIVERSAL_ENDIAN 1" >>confdefs.h ;; unknown) as_fn_error $? "Unable to determine endianess" "$LINENO" 5 ;; esac # We only need this test if we are using Fortran if test "$enable_f77" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler allows unaligned doubles" >&5 $as_echo_n "checking whether C compiler allows unaligned doubles... " >&6; } if ${pac_cv_prog_c_unaligned_doubles+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : pac_cv_prog_c_unaligned_doubles="unknown" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ void fetch_double( v ) double *v; { *v = 1.0; } int main( argc, argv ) int argc; char **argv; { int p[4]; double *p_val; fetch_double( (double *)&(p[0]) ); p_val = (double *)&(p[0]); if (*p_val != 1.0) return 1; fetch_double( (double *)&(p[1]) ); p_val = (double *)&(p[1]); if (*p_val != 1.0) return 1; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : pac_cv_prog_c_unaligned_doubles="yes" else pac_cv_prog_c_unaligned_doubles="no" fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_c_unaligned_doubles" >&5 $as_echo "$pac_cv_prog_c_unaligned_doubles" >&6; } if test "X$pac_cv_prog_c_unaligned_doubles" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your C compiler $CC does not support unaligned accesses to doubles. This is required for interoperation with Fortran (the Fortran standard requires it). You may need to specify an additional argument to your C compiler to force it to allow unaligned accesses." >&5 $as_echo "$as_me: WARNING: Your C compiler $CC does not support unaligned accesses to doubles. This is required for interoperation with Fortran (the Fortran standard requires it). You may need to specify an additional argument to your C compiler to force it to allow unaligned accesses." >&2;} fi fi # Check for __func__ (defined in C99) or __FUNCTION__ (defined in older GCC) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __func__" >&5 $as_echo_n "checking whether $CC supports __func__... " >&6; } if ${pac_cv_cc_has___func__+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { const char *cp = __func__; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_cc_has___func__=yes else pac_cv_cc_has___func__=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_cc_has___func__" >&5 $as_echo "$pac_cv_cc_has___func__" >&6; } if test "$pac_cv_cc_has___func__" != "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __FUNCTION__" >&5 $as_echo_n "checking whether $CC supports __FUNCTION__... " >&6; } if ${pac_cv_cc_has___FUNCTION__+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { const char *cp = __FUNCTION__; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_cc_has___FUNCTION__=yes else pac_cv_cc_has___FUNCTION__=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_cc_has___FUNCTION__" >&5 $as_echo "$pac_cv_cc_has___FUNCTION__" >&6; } fi # ---------------------------------------------------------------------------- # Check on support for long double and long long types. Do this before the # structure alignment test because it will test for including those # types as well. In addition, allow the device to suppress support for these # optional C types by setting MPID_NO_LONG_DOUBLE and/or MPID_NO_LONG_LONG # to yes. if test "$MPID_NO_LONG_DOUBLE" != "yes" && test "X$enable_long_double" != "Xno" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double is supported" >&5 $as_echo_n "checking whether long double is supported... " >&6; } if ${pac_cv_have_long_double+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { long double a; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_long_double=yes else pac_cv_have_long_double=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_long_double" >&5 $as_echo "$pac_cv_have_long_double" >&6; } if test "$pac_cv_have_long_double" = "yes" ; then $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h fi fi if test "$MPID_NO_LONG_LONG" != "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long is supported" >&5 $as_echo_n "checking whether long long is supported... " >&6; } if ${pac_cv_have_long_long+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { long long a; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_long_long=yes else pac_cv_have_long_long=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_long_long" >&5 $as_echo "$pac_cv_have_long_long" >&6; } if test "$pac_cv_have_long_long" = "yes" ; then $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h fi fi # ---------------------------------------------------------------------------- # Get default structure alignment for integers { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max C struct integer alignment" >&5 $as_echo_n "checking for max C struct integer alignment... " >&6; } if ${pac_cv_c_max_integer_align+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : pac_cv_c_max_integer_align="$CROSS_ALIGN_STRUCT_INT" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #define DBG(a,b,c) int main( int argc, char *argv[] ) { FILE *cf; int is_packed = 1; int is_two = 1; int is_four = 1; int is_eight = 1; struct { char a; int b; } char_int; struct { char a; short b; } char_short; struct { char a; long b; } char_long; struct { char a; int b; char c; } char_int_char; struct { char a; short b; char c; } char_short_char; #ifdef HAVE_LONG_LONG_INT struct { long long int a; char b; } lli_c; struct { char a; long long int b; } c_lli; #endif int size, extent, extent2; /* assume max integer alignment isn't 8 if we don't have * an eight-byte value :) */ #ifdef HAVE_LONG_LONG_INT if (sizeof(int) < 8 && sizeof(long) < 8 && sizeof(long long int) < 8) is_eight = 0; #else if (sizeof(int) < 8 && sizeof(long) < 8) is_eight = 0; #endif size = sizeof(char) + sizeof(int); extent = sizeof(char_int); if (size != extent) is_packed = 0; if ( (extent % 2) != 0) is_two = 0; if ( (extent % 4) != 0) is_four = 0; if (sizeof(int) == 8 && (extent % 8) != 0) is_eight = 0; DBG("char_int",size,extent); size = sizeof(char) + sizeof(short); extent = sizeof(char_short); if (size != extent) is_packed = 0; if ( (extent % 2) != 0) is_two = 0; if (sizeof(short) == 4 && (extent % 4) != 0) is_four = 0; if (sizeof(short) == 8 && (extent % 8) != 0) is_eight = 0; DBG("char_short",size,extent); size = sizeof(char) + sizeof(long); extent = sizeof(char_long); if (size != extent) is_packed = 0; if ( (extent % 2) != 0) is_two = 0; if ( (extent % 4) != 0) is_four = 0; if (sizeof(long) == 8 && (extent % 8) != 0) is_eight = 0; DBG("char_long",size,extent); #ifdef HAVE_LONG_LONG_INT size = sizeof(char) + sizeof(long long int); extent = sizeof(lli_c); extent2 = sizeof(c_lli); if (size != extent) is_packed = 0; if ( (extent % 2) != 0 && (extent2 % 2) != 0) is_two = 0; if ( (extent % 4) != 0 && (extent2 % 4) != 0) is_four = 0; if (sizeof(long long int) >= 8 && (extent % 8) != 0 && (extent2 % 8) != 0) is_eight = 0; #endif size = sizeof(char) + sizeof(int) + sizeof(char); extent = sizeof(char_int_char); if (size != extent) is_packed = 0; if ( (extent % 2) != 0) is_two = 0; if ( (extent % 4) != 0) is_four = 0; if (sizeof(int) == 8 && (extent % 8) != 0) is_eight = 0; DBG("char_int_char",size,extent); size = sizeof(char) + sizeof(short) + sizeof(char); extent = sizeof(char_short_char); if (size != extent) is_packed = 0; if ( (extent % 2) != 0) is_two = 0; if (sizeof(short) == 4 && (extent % 4) != 0) is_four = 0; if (sizeof(short) == 8 && (extent % 8) != 0) is_eight = 0; DBG("char_short_char",size,extent); /* If aligned mod 8, it will be aligned mod 4 */ if (is_eight) { is_four = 0; is_two = 0; } if (is_four) is_two = 0; /* Tabulate the results */ cf = fopen( "ctest.out", "w" ); if (is_packed + is_two + is_four + is_eight == 0) { fprintf( cf, "Could not determine alignment\n" ); } else { if (is_packed + is_two + is_four + is_eight != 1) { fprintf( cf, "error!\n" ); } else { if (is_packed) fprintf( cf, "packed\n" ); if (is_two) fprintf( cf, "two\n" ); if (is_four) fprintf( cf, "four\n" ); if (is_eight) fprintf( cf, "eight\n" ); } } fclose( cf ); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : pac_cv_c_max_integer_align=`cat ctest.out` else pac_cv_c_max_integer_align="unknown" fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f ctest.out fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_c_max_integer_align" >&5 $as_echo "$pac_cv_c_max_integer_align" >&6; } if test -z "$pac_cv_c_max_integer_align" ; then pac_cv_c_max_integer_align="unknown" fi if test "$pac_cv_c_max_integer_align" = "packed" ; then pac_cv_c_struct_align_nr=1 elif test "$pac_cv_c_max_integer_align" = "two" ; then pac_cv_c_struct_align_nr=2 elif test "$pac_cv_c_max_integer_align" = "four" ; then pac_cv_c_struct_align_nr=4 elif test "$pac_cv_c_max_integer_align" = "eight" ; then pac_cv_c_struct_align_nr=8 fi if test -n "$pac_cv_c_struct_align_nr" ; then cat >>confdefs.h <<_ACEOF #define HAVE_MAX_INTEGER_ALIGNMENT $pac_cv_c_struct_align_nr _ACEOF cat >>confdefs.h <<_ACEOF #define HAVE_MAX_STRUCT_ALIGNMENT $pac_cv_c_struct_align_nr _ACEOF fi # Get default structure alignment for floating point types { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max C struct floating point alignment" >&5 $as_echo_n "checking for max C struct floating point alignment... " >&6; } if ${pac_cv_c_max_fp_align+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : pac_cv_c_max_fp_align="$CROSS_ALIGN_STRUCT_FP" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #define DBG(a,b,c) int main( int argc, char *argv[] ) { FILE *cf; int is_packed = 1; int is_two = 1; int is_four = 1; int is_eight = 1; int is_sixteen = 1; struct { char a; float b; } char_float; struct { float b; char a; } float_char; struct { char a; double b; } char_double; struct { double b; char a; } double_char; #ifdef HAVE_LONG_DOUBLE struct { char a; long double b; } char_long_double; struct { long double b; char a; } long_double_char; struct { long double a; int b; char c; } long_double_int_char; #endif int size, extent1, extent2; size = sizeof(char) + sizeof(float); extent1 = sizeof(char_float); extent2 = sizeof(float_char); if (size != extent1) is_packed = 0; if ( (extent1 % 2) != 0 && (extent2 % 2) != 0) is_two = 0; if ( (extent1 % 4) != 0 && (extent2 % 4) != 0) is_four = 0; if (sizeof(float) == 8 && (extent1 % 8) != 0 && (extent2 % 8) != 0) is_eight = 0; DBG("char_float",size,extent1); size = sizeof(char) + sizeof(double); extent1 = sizeof(char_double); extent2 = sizeof(double_char); if (size != extent1) is_packed = 0; if ( (extent1 % 2) != 0 && (extent2 % 2) != 0) is_two = 0; if ( (extent1 % 4) != 0 && (extent2 % 4) != 0) is_four = 0; if (sizeof(double) == 8 && (extent1 % 8) != 0 && (extent2 % 8) != 0) is_eight = 0; DBG("char_double",size,extent1); #ifdef HAVE_LONG_DOUBLE size = sizeof(char) + sizeof(long double); extent1 = sizeof(char_long_double); extent2 = sizeof(long_double_char); if (size != extent1) is_packed = 0; if ( (extent1 % 2) != 0 && (extent2 % 2) != 0) is_two = 0; if ( (extent1 % 4) != 0 && (extent2 % 4) != 0) is_four = 0; if (sizeof(long double) >= 8 && (extent1 % 8) != 0 && (extent2 % 8) != 0) is_eight = 0; if (sizeof(long double) > 8 && (extent1 % 16) != 0 && (extent2 % 16) != 0) is_sixteen = 0; DBG("char_long-double",size,extent1); extent1 = sizeof(long_double_int_char); if ( (extent1 % 2) != 0) is_two = 0; if ( (extent1 % 4) != 0) is_four = 0; if (sizeof(long double) >= 8 && (extent1 % 8) != 0) is_eight = 0; if (sizeof(long double) > 8 && (extent1 % 16) != 0) is_sixteen = 0; #else is_sixteen = 0; #endif if (is_sixteen) { is_eight = 0; is_four = 0; is_two = 0; } if (is_eight) { is_four = 0; is_two = 0; } if (is_four) is_two = 0; /* Tabulate the results */ cf = fopen( "ctest.out", "w" ); if (is_packed + is_two + is_four + is_eight + is_sixteen == 0) { fprintf( cf, "Could not determine alignment\n" ); } else { if (is_packed + is_two + is_four + is_eight + is_sixteen != 1) { fprintf( cf, "error!\n" ); } else { if (is_packed) fprintf( cf, "packed\n" ); if (is_two) fprintf( cf, "two\n" ); if (is_four) fprintf( cf, "four\n" ); if (is_eight) fprintf( cf, "eight\n" ); if (is_sixteen) fprintf( cf, "sixteen\n" ); } } fclose( cf ); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : pac_cv_c_max_fp_align=`cat ctest.out` else pac_cv_c_max_fp_align="unknown" fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f ctest.out fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_c_max_fp_align" >&5 $as_echo "$pac_cv_c_max_fp_align" >&6; } if test -z "$pac_cv_c_max_fp_align" ; then pac_cv_c_max_fp_align="unknown" fi if test "$pac_cv_c_max_fp_align" = "packed" ; then pac_cv_c_fp_align_nr=1 elif test "$pac_cv_c_max_fp_align" = "two" ; then pac_cv_c_fp_align_nr=2 elif test "$pac_cv_c_max_fp_align" = "four" ; then pac_cv_c_fp_align_nr=4 elif test "$pac_cv_c_max_fp_align" = "eight" ; then pac_cv_c_fp_align_nr=8 elif test "$pac_cv_c_max_fp_align" = "sixteen" ; then pac_cv_c_fp_align_nr=16 elif test "$pac_cv_c_max_fp_align" = "largest" ; then as_fn_error $? "Configure detected unsupported structure alignment rules." "$LINENO" 5 fi if test -n "$pac_cv_c_fp_align_nr" ; then cat >>confdefs.h <<_ACEOF #define HAVE_MAX_FP_ALIGNMENT $pac_cv_c_fp_align_nr _ACEOF fi # Test for the alignment of structs containing only long doubles. if test "$pac_cv_have_long_double" = yes ; then # Check for alignment of just float and double (no long doubles) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max C struct alignment of structs with doubles" >&5 $as_echo_n "checking for max C struct alignment of structs with doubles... " >&6; } if ${pac_cv_c_max_double_fp_align+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : pac_cv_c_max_double_fp_align="$CROSS_ALIGN_STRUCT_DOUBLE_FP" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #define DBG(a,b,c) int main( int argc, char *argv[] ) { FILE *cf; int is_packed = 1; int is_two = 1; int is_four = 1; int is_eight = 1; struct { char a; float b; } char_float; struct { float b; char a; } float_char; struct { char a; double b; } char_double; struct { double b; char a; } double_char; int size, extent1, extent2; size = sizeof(char) + sizeof(float); extent1 = sizeof(char_float); extent2 = sizeof(float_char); if (size != extent1) is_packed = 0; if ( (extent1 % 2) != 0 && (extent2 % 2) != 0) is_two = 0; if ( (extent1 % 4) != 0 && (extent2 % 4) != 0) is_four = 0; if (sizeof(float) == 8 && (extent1 % 8) != 0 && (extent2 % 8) != 0) is_eight = 0; DBG("char_float",size,extent1); size = sizeof(char) + sizeof(double); extent1 = sizeof(char_double); extent2 = sizeof(double_char); if (size != extent1) is_packed = 0; if ( (extent1 % 2) != 0 && (extent2 % 2) != 0) is_two = 0; if ( (extent1 % 4) != 0 && (extent2 % 4) != 0) is_four = 0; if (sizeof(double) == 8 && (extent1 % 8) != 0 && (extent2 % 8) != 0) is_eight = 0; DBG("char_double",size,extent1); if (is_eight) { is_four = 0; is_two = 0; } if (is_four) is_two = 0; /* Tabulate the results */ cf = fopen( "ctest.out", "w" ); if (is_packed + is_two + is_four + is_eight == 0) { fprintf( cf, "Could not determine alignment\n" ); } else { if (is_packed + is_two + is_four + is_eight != 1) { fprintf( cf, "error!\n" ); } else { if (is_packed) fprintf( cf, "packed\n" ); if (is_two) fprintf( cf, "two\n" ); if (is_four) fprintf( cf, "four\n" ); if (is_eight) fprintf( cf, "eight\n" ); } } fclose( cf ); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : pac_cv_c_max_double_fp_align=`cat ctest.out` else pac_cv_c_max_double_fp_align="unknown" fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f ctest.out fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_c_max_double_fp_align" >&5 $as_echo "$pac_cv_c_max_double_fp_align" >&6; } if test -z "$pac_cv_c_max_double_fp_align" ; then pac_cv_c_max_double_fp_align="unknown" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max C struct floating point alignment with long doubles" >&5 $as_echo_n "checking for max C struct floating point alignment with long doubles... " >&6; } if ${pac_cv_c_max_longdouble_fp_align+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : pac_cv_c_max_longdouble_fp_align="$CROSS_ALIGN_STRUCT_LONGDOUBLE_FP" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #define DBG(a,b,c) int main( int argc, char *argv[] ) { FILE *cf; int is_packed = 1; int is_two = 1; int is_four = 1; int is_eight = 1; int is_sixteen = 1; struct { char a; long double b; } char_long_double; struct { long double b; char a; } long_double_char; struct { long double a; int b; char c; } long_double_int_char; int size, extent1, extent2; size = sizeof(char) + sizeof(long double); extent1 = sizeof(char_long_double); extent2 = sizeof(long_double_char); if (size != extent1) is_packed = 0; if ( (extent1 % 2) != 0 && (extent2 % 2) != 0) is_two = 0; if ( (extent1 % 4) != 0 && (extent2 % 4) != 0) is_four = 0; if (sizeof(long double) >= 8 && (extent1 % 8) != 0 && (extent2 % 8) != 0) is_eight = 0; if (sizeof(long double) > 8 && (extent1 % 16) != 0 && (extent2 % 16) != 0) is_sixteen = 0; DBG("char_long-double",size,extent1); extent1 = sizeof(long_double_int_char); if ( (extent1 % 2) != 0) is_two = 0; if ( (extent1 % 4) != 0) is_four = 0; if (sizeof(long double) >= 8 && (extent1 % 8) != 0) is_eight = 0; if (sizeof(long double) > 8 && (extent1 % 16) != 0) is_sixteen = 0; if (is_sixteen) { is_eight = 0; is_four = 0; is_two = 0; } if (is_eight) { is_four = 0; is_two = 0; } if (is_four) is_two = 0; /* Tabulate the results */ cf = fopen( "ctest.out", "w" ); if (is_packed + is_two + is_four + is_eight + is_sixteen == 0) { fprintf( cf, "Could not determine alignment\n" ); } else { if (is_packed + is_two + is_four + is_eight + is_sixteen != 1) { fprintf( cf, "error!\n" ); } else { if (is_packed) fprintf( cf, "packed\n" ); if (is_two) fprintf( cf, "two\n" ); if (is_four) fprintf( cf, "four\n" ); if (is_eight) fprintf( cf, "eight\n" ); if (is_sixteen) fprintf( cf, "sixteen\n" ); } } fclose( cf ); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : pac_cv_c_max_longdouble_fp_align=`cat ctest.out` else pac_cv_c_max_longdouble_fp_align="unknown" fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f ctest.out fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_c_max_longdouble_fp_align" >&5 $as_echo "$pac_cv_c_max_longdouble_fp_align" >&6; } if test -z "$pac_cv_c_max_longdouble_fp_align" ; then pac_cv_c_max_longdouble_fp_align="unknown" fi # FIXME: If this alignment is not the same as that for all float types, # we need to do something else in the alignment rule code. if test "$pac_cv_c_max_fp_align" != "$pac_cv_c_max_longdouble_fp_align" -o \ "$pac_cv_c_max_fp_align" != "$pac_cv_c_max_double_fp_align" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Structures containing long doubles may be aligned differently from structures with floats or longs. MPICH does not handle this case automatically and you should avoid assumed extents for structures containing float types." >&5 $as_echo "$as_me: WARNING: Structures containing long doubles may be aligned differently from structures with floats or longs. MPICH does not handle this case automatically and you should avoid assumed extents for structures containing float types." >&2;} double_align=-1 case $pac_cv_c_max_double_fp_align in packed) double_align=1 ;; two) double_align=2 ;; four) double_align=4 ;; eight) double_align=8 ;; esac longdouble_align=-1 case $pac_cv_c_max_longdouble_fp_align in packed) longdouble_align=1 ;; two) longdouble_align=2 ;; four) longdouble_align=4 ;; eight) longdouble_align=8 ;; sixteen)longdouble_align=16 ;; esac cat >>confdefs.h <<_ACEOF #define HAVE_MAX_DOUBLE_FP_ALIGNMENT $double_align _ACEOF cat >>confdefs.h <<_ACEOF #define HAVE_MAX_LONG_DOUBLE_FP_ALIGNMENT $longdouble_align _ACEOF fi fi # Test for weird struct alignment rules that vary padding based on # size of leading type only. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alignment of structs with doubles is based on position" >&5 $as_echo_n "checking if alignment of structs with doubles is based on position... " >&6; } if ${pac_cv_c_double_pos_align+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : pac_cv_c_double_pos_align="$CROSS_ALIGN_DOUBLE_POS" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #define DBG(a,b,c) int main( int argc, char *argv[] ) { FILE *cf; int padding_varies_by_pos = 0; struct { char a; double b; } char_double; struct { double b; char a; } double_char; int extent1, extent2; extent1 = sizeof(char_double); extent2 = sizeof(double_char); if (extent1 != extent2) padding_varies_by_pos = 1; cf = fopen( "ctest.out", "w" ); if (padding_varies_by_pos) fprintf( cf, "yes\n" ); else fprintf( cf, "no\n" ); fclose( cf ); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : pac_cv_c_double_pos_align=`cat ctest.out` else pac_cv_c_double_pos_align="unknown" fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f ctest.out fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_c_double_pos_align" >&5 $as_echo "$pac_cv_c_double_pos_align" >&6; } if test -z "$pac_cv_c_double_pos_align" ; then pac_cv_c_double_pos_align="unknown" fi if test "$pac_cv_c_double_pos_align" = "yes" ; then cat >>confdefs.h <<_ACEOF #define HAVE_DOUBLE_POS_ALIGNMENT 1 _ACEOF fi # Test for same weird issues with long long int. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alignment of structs with long long ints is based on position" >&5 $as_echo_n "checking if alignment of structs with long long ints is based on position... " >&6; } if ${pac_cv_c_llint_pos_align+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : pac_cv_c_llint_pos_align="$CROSS_ALIGN_LLINT_POS" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #define DBG(a,b,c) int main( int argc, char *argv[] ) { FILE *cf; int padding_varies_by_pos = 0; #ifdef HAVE_LONG_LONG_INT struct { char a; long long int b; } char_llint; struct { long long int b; char a; } llint_char; int extent1, extent2; extent1 = sizeof(char_llint); extent2 = sizeof(llint_char); if (extent1 != extent2) padding_varies_by_pos = 1; #endif cf = fopen( "ctest.out", "w" ); if (padding_varies_by_pos) fprintf( cf, "yes\n" ); else fprintf( cf, "no\n" ); fclose( cf ); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : pac_cv_c_llint_pos_align=`cat ctest.out` else pac_cv_c_llint_pos_align="unknown" fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f ctest.out fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_c_llint_pos_align" >&5 $as_echo "$pac_cv_c_llint_pos_align" >&6; } if test -z "$pac_cv_c_llint_pos_align" ; then pac_cv_c_llint_pos_align="unknown" fi if test "$pac_cv_c_llint_pos_align" = "yes" ; then cat >>confdefs.h <<_ACEOF #define HAVE_LLINT_POS_ALIGNMENT 1 _ACEOF fi # Test for double alignment not following all our other carefully constructed rules { $as_echo "$as_me:${as_lineno-$LINENO}: checking if double alignment breaks rules, find actual alignment" >&5 $as_echo_n "checking if double alignment breaks rules, find actual alignment... " >&6; } if ${pac_cv_c_double_alignment_exception+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : pac_cv_c_double_alignment_exception="$CROSS_ALIGN_DOUBLE_EXCEPTION" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #define DBG(a,b,c) int main( int argc, char *argv[] ) { FILE *cf; struct { char a; double b; } char_double; struct { double b; char a; } double_char; int extent1, extent2, align_4 = 0; extent1 = sizeof(char_double); extent2 = sizeof(double_char); /* we're interested in the largest value, will let separate test * deal with position-based issues. */ if (extent1 < extent2) extent1 = extent2; if ((sizeof(double) == 8) && (extent1 % 8) != 0) { if (extent1 % 4 == 0) { #ifdef HAVE_MAX_FP_ALIGNMENT if (HAVE_MAX_FP_ALIGNMENT >= 8) align_4 = 1; #else align_4 = 1; #endif } } cf = fopen( "ctest.out", "w" ); if (align_4) fprintf( cf, "four\n" ); else fprintf( cf, "no\n" ); fclose( cf ); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : pac_cv_c_double_alignment_exception=`cat ctest.out` else pac_cv_c_double_alignment_exception="unknown" fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f ctest.out fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_c_double_alignment_exception" >&5 $as_echo "$pac_cv_c_double_alignment_exception" >&6; } if test -z "$pac_cv_c_double_alignment_exception" ; then pac_cv_c_double_alignment_exception="unknown" fi if test "$pac_cv_c_double_alignment_exception" = "four" ; then cat >>confdefs.h <<_ACEOF #define HAVE_DOUBLE_ALIGNMENT_EXCEPTION 4 _ACEOF fi # Test whether pointers can be aligned on a int boundary or require # a pointer boundary. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alignment restrictions on pointers" >&5 $as_echo_n "checking for alignment restrictions on pointers... " >&6; } if test "$cross_compiling" = yes; then : pac_cv_pointers_have_int_alignment=unknown else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ struct foo { int a; void *b; }; int main() { int buf[10]; struct foo *p1; p1=(struct foo*)&buf[0]; p1->b = (void *)0; p1=(struct foo*)&buf[1]; p1->b = (void *)0; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : pac_cv_pointers_have_int_alignment=yes else pac_cv_pointers_have_int_alignment=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$pac_cv_pointers_have_int_alignment" != "yes" ; then $as_echo "#define NEEDS_POINTER_ALIGNMENT_ADJUST 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: pointer" >&5 $as_echo "pointer" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: int or better" >&5 $as_echo "int or better" >&6; } fi # Require strict alignment memory access for alignment-sensitive platform (e.g., SPARC) if test "$host_cpu" = "sparc" ; then $as_echo "#define NEEDS_STRICT_ALIGNMENT 1" >>confdefs.h fi # There are further alignment checks after we test for int64_t etc. below. # Get the size of the C types for encoding in the basic datatypes and for # the specific-sized integers # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 $as_echo_n "checking size of char... " >&6; } if ${ac_cv_sizeof_char+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : else if test "$ac_cv_type_char" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (char) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_char=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 $as_echo "$ac_cv_sizeof_char" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_CHAR $ac_cv_sizeof_char _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char" >&5 $as_echo_n "checking size of unsigned char... " >&6; } if ${ac_cv_sizeof_unsigned_char+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char))" "ac_cv_sizeof_unsigned_char" "$ac_includes_default"; then : else if test "$ac_cv_type_unsigned_char" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (unsigned char) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_unsigned_char=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char" >&5 $as_echo "$ac_cv_sizeof_unsigned_char" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 $as_echo_n "checking size of short... " >&6; } if ${ac_cv_sizeof_short+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : else if test "$ac_cv_type_short" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (short) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_short=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 $as_echo "$ac_cv_sizeof_short" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_SHORT $ac_cv_sizeof_short _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 $as_echo_n "checking size of unsigned short... " >&6; } if ${ac_cv_sizeof_unsigned_short+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : else if test "$ac_cv_type_unsigned_short" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (unsigned short) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_unsigned_short=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 $as_echo_n "checking size of int... " >&6; } if ${ac_cv_sizeof_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : else if test "$ac_cv_type_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (int) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_int=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 $as_echo "$ac_cv_sizeof_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_INT $ac_cv_sizeof_int _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 $as_echo_n "checking size of unsigned int... " >&6; } if ${ac_cv_sizeof_unsigned_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : else if test "$ac_cv_type_unsigned_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (unsigned int) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_unsigned_int=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 $as_echo_n "checking size of long... " >&6; } if ${ac_cv_sizeof_long+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : else if test "$ac_cv_type_long" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 $as_echo "$ac_cv_sizeof_long" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_LONG $ac_cv_sizeof_long _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 $as_echo_n "checking size of unsigned long... " >&6; } if ${ac_cv_sizeof_unsigned_long+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : else if test "$ac_cv_type_unsigned_long" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (unsigned long) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_unsigned_long=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 $as_echo_n "checking size of long long... " >&6; } if ${ac_cv_sizeof_long_long+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : else if test "$ac_cv_type_long_long" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long long) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_long=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 $as_echo "$ac_cv_sizeof_long_long" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 $as_echo_n "checking size of unsigned long long... " >&6; } if ${ac_cv_sizeof_unsigned_long_long+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : else if test "$ac_cv_type_unsigned_long_long" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (unsigned long long) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_unsigned_long_long=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 $as_echo_n "checking size of float... " >&6; } if ${ac_cv_sizeof_float+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : else if test "$ac_cv_type_float" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (float) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_float=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 $as_echo "$ac_cv_sizeof_float" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_FLOAT $ac_cv_sizeof_float _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 $as_echo_n "checking size of double... " >&6; } if ${ac_cv_sizeof_double+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : else if test "$ac_cv_type_double" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (double) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_double=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 $as_echo "$ac_cv_sizeof_double" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_DOUBLE $ac_cv_sizeof_double _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 $as_echo_n "checking size of long double... " >&6; } if ${ac_cv_sizeof_long_double+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : else if test "$ac_cv_type_long_double" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long double) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_double=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 $as_echo "$ac_cv_sizeof_long_double" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 $as_echo_n "checking size of void *... " >&6; } if ${ac_cv_sizeof_void_p+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : else if test "$ac_cv_type_void_p" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (void *) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_void_p=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 $as_echo "$ac_cv_sizeof_void_p" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_VOID_P $ac_cv_sizeof_void_p _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi for ac_header in stddef.h do : ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" if test "x$ac_cv_header_stddef_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STDDEF_H 1 _ACEOF fi done # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 $as_echo_n "checking size of wchar_t... " >&6; } if ${ac_cv_sizeof_wchar_t+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" " #ifdef HAVE_STDDEF_H #include #endif "; then : else if test "$ac_cv_type_wchar_t" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (wchar_t) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_wchar_t=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 $as_echo "$ac_cv_sizeof_wchar_t" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_int" >&5 $as_echo_n "checking size of float_int... " >&6; } if ${ac_cv_sizeof_float_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_int))" "ac_cv_sizeof_float_int" "typedef struct { float a; int b; } float_int; "; then : else if test "$ac_cv_type_float_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (float_int) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_float_int=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_int" >&5 $as_echo "$ac_cv_sizeof_float_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_FLOAT_INT $ac_cv_sizeof_float_int _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_int" >&5 $as_echo_n "checking size of double_int... " >&6; } if ${ac_cv_sizeof_double_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_int))" "ac_cv_sizeof_double_int" "typedef struct { double a; int b; } double_int; "; then : else if test "$ac_cv_type_double_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (double_int) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_double_int=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_int" >&5 $as_echo "$ac_cv_sizeof_double_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_DOUBLE_INT $ac_cv_sizeof_double_int _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long_int" >&5 $as_echo_n "checking size of long_int... " >&6; } if ${ac_cv_sizeof_long_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long_int))" "ac_cv_sizeof_long_int" "typedef struct { long a; int b; } long_int; "; then : else if test "$ac_cv_type_long_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long_int) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_int=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 $as_echo "$ac_cv_sizeof_long_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short_int" >&5 $as_echo_n "checking size of short_int... " >&6; } if ${ac_cv_sizeof_short_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short_int))" "ac_cv_sizeof_short_int" "typedef struct { short a; int b; } short_int; "; then : else if test "$ac_cv_type_short_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (short_int) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_short_int=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5 $as_echo "$ac_cv_sizeof_short_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of two_int" >&5 $as_echo_n "checking size of two_int... " >&6; } if ${ac_cv_sizeof_two_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (two_int))" "ac_cv_sizeof_two_int" "typedef struct { int a; int b; } two_int; "; then : else if test "$ac_cv_type_two_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (two_int) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_two_int=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_two_int" >&5 $as_echo "$ac_cv_sizeof_two_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_TWO_INT $ac_cv_sizeof_two_int _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long_double_int" >&5 $as_echo_n "checking size of long_double_int... " >&6; } if ${ac_cv_sizeof_long_double_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long_double_int))" "ac_cv_sizeof_long_double_int" "typedef struct { long double a; int b;} long_double_int; "; then : else if test "$ac_cv_type_long_double_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long_double_int) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_double_int=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double_int" >&5 $as_echo "$ac_cv_sizeof_long_double_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_LONG_DOUBLE_INT $ac_cv_sizeof_long_double_int _ACEOF # sys/bitypes.h defines the int16_t etc. on some systems (e.g., OSF1). # Include it when testing for these types ac_fn_c_check_header_mongrel "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default" if test "x$ac_cv_header_sys_bitypes_h" = xyes; then : use_bitypes="#include " $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h fi # A C99 compliant compiler should have inttypes.h for fixed-size int types for ac_header in inttypes.h stdint.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # Check for types ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" case $ac_cv_c_int8_t in #( no|yes) ;; #( *) cat >>confdefs.h <<_ACEOF #define int8_t $ac_cv_c_int8_t _ACEOF ;; esac ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" case $ac_cv_c_int16_t in #( no|yes) ;; #( *) cat >>confdefs.h <<_ACEOF #define int16_t $ac_cv_c_int16_t _ACEOF ;; esac ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" case $ac_cv_c_int32_t in #( no|yes) ;; #( *) cat >>confdefs.h <<_ACEOF #define int32_t $ac_cv_c_int32_t _ACEOF ;; esac ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" case $ac_cv_c_int64_t in #( no|yes) ;; #( *) cat >>confdefs.h <<_ACEOF #define int64_t $ac_cv_c_int64_t _ACEOF ;; esac # Temporary issue in autoconf integer type checking (remove when # autoconf fixes this or provides a workaround for it) if test "$ac_cv_c_int8_t" != no ; then $as_echo "#define HAVE_INT8_T 1" >>confdefs.h fi if test "$ac_cv_c_int16_t" != no ; then $as_echo "#define HAVE_INT16_T 1" >>confdefs.h fi if test "$ac_cv_c_int32_t" != no ; then $as_echo "#define HAVE_INT32_T 1" >>confdefs.h fi if test "$ac_cv_c_int64_t" != no ; then $as_echo "#define HAVE_INT64_T 1" >>confdefs.h fi # The following make these definitions: # define _UINT_T 1 # if uint_t is available. E.g., define _UINT8_T as 1 if uint8_t is available # if not available, define uint_t as the related C type, e.g., # define uint8_t unsigned char # ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" case $ac_cv_c_uint8_t in #( no|yes) ;; #( *) $as_echo "#define _UINT8_T 1" >>confdefs.h cat >>confdefs.h <<_ACEOF #define uint8_t $ac_cv_c_uint8_t _ACEOF ;; esac ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" case $ac_cv_c_uint16_t in #( no|yes) ;; #( *) cat >>confdefs.h <<_ACEOF #define uint16_t $ac_cv_c_uint16_t _ACEOF ;; esac ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" case $ac_cv_c_uint32_t in #( no|yes) ;; #( *) $as_echo "#define _UINT32_T 1" >>confdefs.h cat >>confdefs.h <<_ACEOF #define uint32_t $ac_cv_c_uint32_t _ACEOF ;; esac ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" case $ac_cv_c_uint64_t in #( no|yes) ;; #( *) $as_echo "#define _UINT64_T 1" >>confdefs.h cat >>confdefs.h <<_ACEOF #define uint64_t $ac_cv_c_uint64_t _ACEOF ;; esac # Temporary issue in autoconf integer type checking (remove when # autoconf fixes this or provides a workaround for it) if test "$ac_cv_c_uint8_t" != no ; then $as_echo "#define HAVE_UINT8_T 1" >>confdefs.h fi if test "$ac_cv_c_uint16_t" != no ; then $as_echo "#define HAVE_UINT16_T 1" >>confdefs.h fi if test "$ac_cv_c_uint32_t" != no ; then $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h fi if test "$ac_cv_c_uint64_t" != no ; then $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h fi # Other C99 types. for ac_header in stdbool.h complex.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 $as_echo_n "checking size of _Bool... " >&6; } if ${ac_cv_sizeof__Bool+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" " #ifdef HAVE_STDBOOL_H #include #endif "; then : else if test "$ac_cv_type__Bool" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (_Bool) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof__Bool=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 $as_echo "$ac_cv_sizeof__Bool" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF__BOOL $ac_cv_sizeof__Bool _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float _Complex" >&5 $as_echo_n "checking size of float _Complex... " >&6; } if ${ac_cv_sizeof_float__Complex+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float _Complex))" "ac_cv_sizeof_float__Complex" " #ifdef HAVE_COMPLEX_H #include #endif "; then : else if test "$ac_cv_type_float__Complex" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (float _Complex) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_float__Complex=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float__Complex" >&5 $as_echo "$ac_cv_sizeof_float__Complex" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_FLOAT__COMPLEX $ac_cv_sizeof_float__Complex _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double _Complex" >&5 $as_echo_n "checking size of double _Complex... " >&6; } if ${ac_cv_sizeof_double__Complex+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double _Complex))" "ac_cv_sizeof_double__Complex" " #ifdef HAVE_COMPLEX_H #include #endif "; then : else if test "$ac_cv_type_double__Complex" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (double _Complex) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_double__Complex=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double__Complex" >&5 $as_echo "$ac_cv_sizeof_double__Complex" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_DOUBLE__COMPLEX $ac_cv_sizeof_double__Complex _ACEOF if test "X$pac_cv_have_long_double" = "Xyes"; then : # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double _Complex" >&5 $as_echo_n "checking size of long double _Complex... " >&6; } if ${ac_cv_sizeof_long_double__Complex+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double _Complex))" "ac_cv_sizeof_long_double__Complex" " #ifdef HAVE_COMPLEX_H #include #endif "; then : else if test "$ac_cv_type_long_double__Complex" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long double _Complex) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_double__Complex=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double__Complex" >&5 $as_echo "$ac_cv_sizeof_long_double__Complex" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_LONG_DOUBLE__COMPLEX $ac_cv_sizeof_long_double__Complex _ACEOF fi # we need really could just use the result of AC_CHECK_SIZEOF, but having a # HAVE_typename macro is useful for consistency ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" if test "x$ac_cv_type__Bool" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE__BOOL 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "float _Complex" "ac_cv_type_float__Complex" "$ac_includes_default" if test "x$ac_cv_type_float__Complex" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FLOAT__COMPLEX 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "double _Complex" "ac_cv_type_double__Complex" "$ac_includes_default" if test "x$ac_cv_type_double__Complex" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DOUBLE__COMPLEX 1 _ACEOF fi if test "X$pac_cv_have_long_double" = "Xyes"; then : ac_fn_c_check_type "$LINENO" "long double _Complex" "ac_cv_type_long_double__Complex" "$ac_includes_default" if test "x$ac_cv_type_long_double__Complex" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LONG_DOUBLE__COMPLEX 1 _ACEOF fi fi # Generate a hex version of the size of each type for type in short int long long_long float double long_double wchar_t \ float_int double_int long_int short_int two_int long_double_int \ _Bool float__Complex double__Complex long_double__Complex ; do eval len=\$ac_cv_sizeof_$type if test -z "$len" ; then len=0 # Check for sizes from the CHECK_SIZEOF_DERIVED macro eval pclen=\$ac_cv_sizeof_$type if test -n "$pclen" ; then len=$pclen else # check for a non-optional type if test $type != long_long -a \ $type != long_double -a \ $type != long_double_int -a \ $type != _Bool -a \ $type != float__Complex -a \ $type != double__Complex -a \ $type != long_double__Complex ; then as_fn_error $? "Configure was unable to determine the size of $type ; if cross compiling, use the environment variables CROSS_SIZEOF_typename, e.g., CROSS_SIZEOF_SHORT, or use the --with-cross=file configure option to specify a file containing Bourne (sh) shell assignments to CROSS_SIZEOF_typename for all datatype types. The program maint/getcross.c can be compiled and run on the target system; this program outputs an appropriate file for the --with-cross option" "$LINENO" 5 fi fi fi # # Take len and turn it into two hex digits (there are 8 bits available # in the built-in datatype handle for the length; see # src/mpid/common/datatype/mpidu_datatype.h) if test "$len" -gt 255 ; then as_fn_error $? "Type sizes greater than 255 bytes are not supported (type $type is $len bytes)" "$LINENO" 5 fi tmplen=$len hexlen="" while test $tmplen -gt 0 ; do lowdigit=`expr $tmplen - 16 \* \( $tmplen / 16 \)` case $lowdigit in 10) char=a ;; 11) char=b ;; 12) char=c ;; 13) char=d ;; 14) char=e ;; 15) char=f ;; *) char=$lowdigit ;; esac hexlen="$char$hexlen" tmplen=`expr $tmplen / 16` done if test $len -lt 16 ; then hexlen="0$hexlen" fi if test $len = 0 ; then # This sometimes happens for wchar_t hexlen="00"; fi eval len_$type=$hexlen done # By definition, sizeof char is 1 MPI_CHAR="0x4c000101" MPI_UNSIGNED_CHAR="0x4c000102" MPI_SHORT="0x4c00${len_short}03" MPI_UNSIGNED_SHORT="0x4c00${len_short}04" MPI_INT="0x4c00${len_int}05" MPI_UNSIGNED_INT="0x4c00${len_int}06" MPI_LONG="0x4c00${len_long}07" MPI_UNSIGNED_LONG="0x4c00${len_long}08" if test "$len_long_long" != 0 -a "$MPID_NO_LONG_LONG" != yes ; then MPI_LONG_LONG="0x4c00${len_long_long}09" else MPI_LONG_LONG=MPI_DATATYPE_NULL; fi MPI_FLOAT="0x4c00${len_float}0a" MPI_DOUBLE="0x4c00${len_double}0b" if test "$len_long_double" != 0 -a "$MPID_NO_LONG_DOUBLE" != yes ; then MPI_LONG_DOUBLE="0x4c00${len_long_double}0c" else MPI_LONG_DOUBLE=MPI_DATATYPE_NULL fi # If you change MPI_BYTE, you must change it in src/binding/fortran/mpif_h/buildiface MPI_BYTE="0x4c00010d" MPI_WCHAR="0x4c00${len_wchar_t}0e" MPI_PACKED="0x4c00010f" MPI_LB="0x4c000010" MPI_UB="0x4c000011" # # These should define the mixed types *only* for contiguous data. # For example, MPI_SHORT_INT may have a gap; it will need to be defined # as a derived type instead. For IA32, this only affects short_int. MPI_2INT="0x4c00${len_two_int}16" # # For now we aren't being too clever about figuring out which of these # are in fact contiguous, so these are all allocated as "real" types. # # These values correspond to direct types 0..5. # MPI_FLOAT_INT="0x8c000000" MPI_DOUBLE_INT="0x8c000001" MPI_LONG_INT="0x8c000002" MPI_SHORT_INT="0x8c000003" if test "$MPID_NO_LONG_DOUBLE" != yes ; then MPI_LONG_DOUBLE_INT="0x8c000004" else MPI_LONG_DOUBLE_INT=MPI_DATATYPE_NULL fi # 2 additional predefined types named in MPI-2 MPI_SIGNED_CHAR="0x4c000118" if test "$len_long_long" != 0 -a "$MPID_NO_LONG_LONG" != yes ; then MPI_UNSIGNED_LONG_LONG="0x4c00${len_long_long}19" else MPI_UNSIGNED_LONG_LONG=MPI_DATATYPE_NULL fi # # FIXME: Leftover from separate fortran system ## Export the basic C types so that the Fortran system can use them #export MPI_CHAR #export MPI_SHORT #export MPI_INT #export MPI_LONG #export MPI_LONG_LONG #export MPI_FLOAT #export MPI_DOUBLE #export MPI_LONG_DOUBLE # # Size-specific types. Initialize as NULL MPI_REAL4=MPI_DATATYPE_NULL MPI_REAL8=MPI_DATATYPE_NULL MPI_REAL16=MPI_DATATYPE_NULL MPI_COMPLEX8=MPI_DATATYPE_NULL MPI_COMPLEX16=MPI_DATATYPE_NULL MPI_COMPLEX32=MPI_DATATYPE_NULL MPI_INTEGER1=MPI_DATATYPE_NULL MPI_INTEGER2=MPI_DATATYPE_NULL MPI_INTEGER4=MPI_DATATYPE_NULL MPI_INTEGER8=MPI_DATATYPE_NULL MPI_INTEGER16=MPI_DATATYPE_NULL export MPI_REAL4 export MPI_REAL8 export MPI_REAL16 export MPI_COMPLEX8 export MPI_COMPLEX16 export MPI_COMPLEX32 export MPI_INTEGER1 export MPI_INTEGER2 export MPI_INTEGER4 export MPI_INTEGER8 export MPI_INTEGER16 # # Try to find corresponding types for the size-specific types. # # Assume that the float/double/long double are simply spaced # Datatypes used up through 26 in Fortran # 27,28,29,2a,2b,2c if test "$ac_cv_sizeof_float" = "4" ; then MPI_REAL4="0x4c000427" MPI_COMPLEX8="0x4c000828" MPIR_REAL4_CTYPE=float fi if test "$ac_cv_sizeof_double" = "8" ; then MPI_REAL8="0x4c000829" MPI_COMPLEX16="0x4c00102a" MPIR_REAL8_CTYPE=double fi if test "$ac_cv_sizeof_long_double" = "16" -a "$MPID_NO_LONG_DOUBLE" != yes ; then MPI_REAL16="0x4c00102b" MPI_COMPLEX32="0x4c00202c" MPIR_REAL16_CTYPE="long double" fi if test -n "$MPIR_REAL4_CTYPE" ; then cat >>confdefs.h <<_ACEOF #define MPIR_REAL4_CTYPE $MPIR_REAL4_CTYPE _ACEOF fi if test -n "$MPIR_REAL8_CTYPE" ; then cat >>confdefs.h <<_ACEOF #define MPIR_REAL8_CTYPE $MPIR_REAL8_CTYPE _ACEOF fi if test -n "$MPIR_REAL16_CTYPE" ; then cat >>confdefs.h <<_ACEOF #define MPIR_REAL16_CTYPE $MPIR_REAL16_CTYPE _ACEOF fi # For complex 8/16/32, we assume that these are 2 consequetive real4/8/16 # # Search for the integer types for type in char short int long long_long ; do # ctype is a valid C type which we can use to declare a C version of # this item ctype=`echo $type | sed 's/_/ /'` eval len=\$ac_cv_sizeof_$type if test -n "$len" ; then case $len in 1) if test "$MPI_INTEGER1" = "MPI_DATATYPE_NULL" ; then MPI_INTEGER1="0x4c00012d" MPIR_INTEGER1_CTYPE="$ctype" fi ;; 2) if test "$MPI_INTEGER2" = "MPI_DATATYPE_NULL" ; then MPI_INTEGER2="0x4c00022f" MPIR_INTEGER2_CTYPE="$ctype" fi ;; 4) if test "$MPI_INTEGER4" = "MPI_DATATYPE_NULL" ; then MPI_INTEGER4="0x4c000430" MPIR_INTEGER4_CTYPE="$ctype" fi ;; 8) if test "$MPI_INTEGER8" = "MPI_DATATYPE_NULL" ; then MPI_INTEGER8="0x4c000831" MPIR_INTEGER8_CTYPE="$ctype" fi ;; 16) if test "$MPI_INTEGER16" = "MPI_DATATYPE_NULL" ; then MPI_INTEGER16="0x4c001032" MPIR_INTEGER16_CTYPE="$ctype" fi ;; *) ;; esac fi done # # Add the definitions of these types if test -n "$MPIR_INTEGER1_CTYPE" ; then cat >>confdefs.h <<_ACEOF #define MPIR_INTEGER1_CTYPE $MPIR_INTEGER1_CTYPE _ACEOF fi if test -n "$MPIR_INTEGER2_CTYPE" ; then cat >>confdefs.h <<_ACEOF #define MPIR_INTEGER2_CTYPE $MPIR_INTEGER2_CTYPE _ACEOF fi if test -n "$MPIR_INTEGER4_CTYPE" ; then cat >>confdefs.h <<_ACEOF #define MPIR_INTEGER4_CTYPE $MPIR_INTEGER4_CTYPE _ACEOF fi if test -n "$MPIR_INTEGER8_CTYPE" ; then cat >>confdefs.h <<_ACEOF #define MPIR_INTEGER8_CTYPE $MPIR_INTEGER8_CTYPE _ACEOF fi if test -n "$MPIR_INTEGER16_CTYPE" ; then cat >>confdefs.h <<_ACEOF #define MPIR_INTEGER16_CTYPE $MPIR_INTEGER16_CTYPE _ACEOF fi # ---------------------------------------------------------------------------- # C99 types # The predefined types must be distinct types (as opposed to aliases to MPI_INT # or MPI_WHATEVER) in order to correctly support MPI_Type_{get,set}_name. # # FIXME the "basic id" portion should be automatically assigned. It's too easy # to have a conflict when this is done by hand. # # Because we make up a matching type for the fixed-width types if one doesn't # exist, we don't ever set these to MPI_DATATYPE_NULL. If we come across a # platform where 64-bit sizes aren't supported just add a test like the other # types. MPI_INT8_T=0x4c000137 MPI_INT16_T=0x4c000238 MPI_INT32_T=0x4c000439 MPI_INT64_T=0x4c00083a MPI_UINT8_T=0x4c00013b MPI_UINT16_T=0x4c00023c MPI_UINT32_T=0x4c00043d MPI_UINT64_T=0x4c00083e # The compiler may or may not support these types, depending on its level of C99 # compliance. We check for each one individually before assigning a handle # number. MPI_C_BOOL=MPI_DATATYPE_NULL MPI_C_FLOAT_COMPLEX=MPI_DATATYPE_NULL MPI_C_DOUBLE_COMPLEX=MPI_DATATYPE_NULL MPI_C_LONG_DOUBLE_COMPLEX=MPI_DATATYPE_NULL if test ${len__Bool} != 0 ; then MPI_C_BOOL=0x4c00${len__Bool}3f fi if test ${len_float__Complex} != 0 ; then MPI_C_FLOAT_COMPLEX=0x4c00${len_float__Complex}40 fi if test ${len_double__Complex} != 0 ; then MPI_C_DOUBLE_COMPLEX=0x4c00${len_double__Complex}41 fi if test ${len_long_double__Complex} != 0 ; then MPI_C_LONG_DOUBLE_COMPLEX=0x4c00${len_long_double__Complex}42 fi export MPI_INT8_T export MPI_INT16_T export MPI_INT32_T export MPI_INT64_T export MPI_UINT8_T export MPI_UINT16_T export MPI_UINT32_T export MPI_UINT64_T export MPI_C_BOOL export MPI_C_FLOAT_COMPLEX export MPI_C_DOUBLE_COMPLEX export MPI_C_LONG_DOUBLE_COMPLEX # ---------------------------------------------------------------------------- # We can now create the Fortran versions of the datatype values, along with # some of the other datatype-dependent sizes # There are two parts to handling the datatypes: # Convert the C datatype values to their Fortran equivalent. This # involves converting the hex values for the C version into decimal # since standard Fortran does not have hex constants # # Determine the existence of the Fortran 'sized' types and set those # values. # # In addition, we need to look at a few additional constants that depend # on how the compiler sizes some datatypes. These are: # STATUS_SIZE, INTEGER_KIND, ADDRESS_KIND, and OFFSET_KIND # # ---------------------------------------------------------------------------- if test "$enable_f77" = yes ; then # Up to size checking code in master configure.ac (where it tries to # find the matching C sizes) as part of defining mpi_integer8 etc. # The results are available in pac_cv_sizeof_f77_ # Size is 0 if unknown or unavailable (or cross-compiling) # Due to limitations in autoconf, we cannot put these into a loop. # We also check integer to find the type of MPI_Fint # # Cross-compilation results can be included with the --with-cross=file # option. CROSS_F77_SIZEOF_INTEGER=${CROSS_F77_SIZEOF_INTEGER:-0} CROSS_F77_SIZEOF_REAL=${CROSS_F77_SIZEOF_REAL:-0} CROSS_F77_SIZEOF_DOUBLE_PRECISION=${CROSS_F77_SIZEOF_DOUBLE_PRECISION:-0} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size of Fortran type integer" >&5 $as_echo_n "checking for size of Fortran type integer... " >&6; } if ${pac_cv_f77_sizeof_integer+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined(HAVE_STDIO_H) || defined(STDC_HEADERS) #include #endif #ifdef F77_NAME_UPPER #define cisize_ CISIZE #define isize_ ISIZE #elif defined(F77_NAME_LOWER) || defined(F77_NAME_MIXED) #define cisize_ cisize #define isize_ isize #endif int cisize_(char *,char*); int cisize_(char *i1p, char *i2p) { int isize_val=0; FILE *f = fopen("conftestval", "w"); if (!f) return 1; isize_val = (int)(i2p - i1p); fprintf(f,"%d\n", isize_val); fclose(f); return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # pac_compile_ok=yes { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } # Save LIBS and prepend object file to LIBS saved_LIBS="$LIBS" LIBS="pac_conftest.$OBJEXT $LIBS" ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test "$cross_compiling" = yes; then : # Use -9999 as value to emit a warning message after the cache_check. eval pac_cv_f77_sizeof_integer=$CROSS_F77_SIZEOF_INTEGER else cat > conftest.$ac_ext <<_ACEOF program main integer a(2) integer irc, cisize irc = cisize(a(1),a(2)) end _ACEOF if ac_fn_f77_try_run "$LINENO"; then : eval pac_cv_f77_sizeof_integer=`cat conftestval` else eval pac_cv_f77_sizeof_integer=0 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu LIBS="$saved_LIBS" # remove previously generated object file. rm -f pac_conftest.$OBJEXT else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to compile the C routine for finding the size of a integer" >&5 $as_echo "$as_me: WARNING: Unable to compile the C routine for finding the size of a integer" >&2;} fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_f77_sizeof_integer" >&5 $as_echo "$pac_cv_f77_sizeof_integer" >&6; } if test "$pac_cv_f77_sizeof_integer" = "-9999" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No value provided for size of integer when cross-compiling" >&5 $as_echo "$as_me: WARNING: No value provided for size of integer when cross-compiling" >&2;} fi cat >>confdefs.h <<_ACEOF #define SIZEOF_F77_INTEGER $pac_cv_f77_sizeof_integer _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size of Fortran type real" >&5 $as_echo_n "checking for size of Fortran type real... " >&6; } if ${pac_cv_f77_sizeof_real+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined(HAVE_STDIO_H) || defined(STDC_HEADERS) #include #endif #ifdef F77_NAME_UPPER #define cisize_ CISIZE #define isize_ ISIZE #elif defined(F77_NAME_LOWER) || defined(F77_NAME_MIXED) #define cisize_ cisize #define isize_ isize #endif int cisize_(char *,char*); int cisize_(char *i1p, char *i2p) { int isize_val=0; FILE *f = fopen("conftestval", "w"); if (!f) return 1; isize_val = (int)(i2p - i1p); fprintf(f,"%d\n", isize_val); fclose(f); return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # pac_compile_ok=yes { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } # Save LIBS and prepend object file to LIBS saved_LIBS="$LIBS" LIBS="pac_conftest.$OBJEXT $LIBS" ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test "$cross_compiling" = yes; then : # Use -9999 as value to emit a warning message after the cache_check. eval pac_cv_f77_sizeof_real=$CROSS_F77_SIZEOF_REAL else cat > conftest.$ac_ext <<_ACEOF program main real a(2) integer irc, cisize irc = cisize(a(1),a(2)) end _ACEOF if ac_fn_f77_try_run "$LINENO"; then : eval pac_cv_f77_sizeof_real=`cat conftestval` else eval pac_cv_f77_sizeof_real=0 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu LIBS="$saved_LIBS" # remove previously generated object file. rm -f pac_conftest.$OBJEXT else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to compile the C routine for finding the size of a real" >&5 $as_echo "$as_me: WARNING: Unable to compile the C routine for finding the size of a real" >&2;} fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_f77_sizeof_real" >&5 $as_echo "$pac_cv_f77_sizeof_real" >&6; } if test "$pac_cv_f77_sizeof_real" = "-9999" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No value provided for size of real when cross-compiling" >&5 $as_echo "$as_me: WARNING: No value provided for size of real when cross-compiling" >&2;} fi cat >>confdefs.h <<_ACEOF #define SIZEOF_F77_REAL $pac_cv_f77_sizeof_real _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size of Fortran type double precision" >&5 $as_echo_n "checking for size of Fortran type double precision... " >&6; } if ${pac_cv_f77_sizeof_double_precision+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined(HAVE_STDIO_H) || defined(STDC_HEADERS) #include #endif #ifdef F77_NAME_UPPER #define cisize_ CISIZE #define isize_ ISIZE #elif defined(F77_NAME_LOWER) || defined(F77_NAME_MIXED) #define cisize_ cisize #define isize_ isize #endif int cisize_(char *,char*); int cisize_(char *i1p, char *i2p) { int isize_val=0; FILE *f = fopen("conftestval", "w"); if (!f) return 1; isize_val = (int)(i2p - i1p); fprintf(f,"%d\n", isize_val); fclose(f); return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # pac_compile_ok=yes { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } # Save LIBS and prepend object file to LIBS saved_LIBS="$LIBS" LIBS="pac_conftest.$OBJEXT $LIBS" ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test "$cross_compiling" = yes; then : # Use -9999 as value to emit a warning message after the cache_check. eval pac_cv_f77_sizeof_double_precision=$CROSS_F77_SIZEOF_DOUBLE_PRECISION else cat > conftest.$ac_ext <<_ACEOF program main double precision a(2) integer irc, cisize irc = cisize(a(1),a(2)) end _ACEOF if ac_fn_f77_try_run "$LINENO"; then : eval pac_cv_f77_sizeof_double_precision=`cat conftestval` else eval pac_cv_f77_sizeof_double_precision=0 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu LIBS="$saved_LIBS" # remove previously generated object file. rm -f pac_conftest.$OBJEXT else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to compile the C routine for finding the size of a double precision" >&5 $as_echo "$as_me: WARNING: Unable to compile the C routine for finding the size of a double precision" >&2;} fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_f77_sizeof_double_precision" >&5 $as_echo "$pac_cv_f77_sizeof_double_precision" >&6; } if test "$pac_cv_f77_sizeof_double_precision" = "-9999" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No value provided for size of double precision when cross-compiling" >&5 $as_echo "$as_me: WARNING: No value provided for size of double precision when cross-compiling" >&2;} fi cat >>confdefs.h <<_ACEOF #define SIZEOF_F77_DOUBLE_PRECISION $pac_cv_f77_sizeof_double_precision _ACEOF ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu # If we have sizes for real and double, we do not need to call # mpir_get_fsize at run time. # For the size-defined types (e.g., integer*2), we assume that if the # compiler allows it, it has the stated size. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer*1 is supported" >&5 $as_echo_n "checking whether integer*1 is supported... " >&6; } if ${pac_cv_fort_integer1+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main integer*1 i end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : pac_cv_fort_integer1=yes else pac_cv_fort_integer1=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fort_integer1" >&5 $as_echo "$pac_cv_fort_integer1" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer*2 is supported" >&5 $as_echo_n "checking whether integer*2 is supported... " >&6; } if ${pac_cv_fort_integer2+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main integer*2 i end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : pac_cv_fort_integer2=yes else pac_cv_fort_integer2=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fort_integer2" >&5 $as_echo "$pac_cv_fort_integer2" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer*4 is supported" >&5 $as_echo_n "checking whether integer*4 is supported... " >&6; } if ${pac_cv_fort_integer4+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main integer*4 i end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : pac_cv_fort_integer4=yes else pac_cv_fort_integer4=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fort_integer4" >&5 $as_echo "$pac_cv_fort_integer4" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer*8 is supported" >&5 $as_echo_n "checking whether integer*8 is supported... " >&6; } if ${pac_cv_fort_integer8+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main integer*8 i end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : pac_cv_fort_integer8=yes else pac_cv_fort_integer8=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fort_integer8" >&5 $as_echo "$pac_cv_fort_integer8" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer*16 is supported" >&5 $as_echo_n "checking whether integer*16 is supported... " >&6; } if ${pac_cv_fort_integer16+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main integer*16 i end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : pac_cv_fort_integer16=yes else pac_cv_fort_integer16=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fort_integer16" >&5 $as_echo "$pac_cv_fort_integer16" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether real*4 is supported" >&5 $as_echo_n "checking whether real*4 is supported... " >&6; } if ${pac_cv_fort_real4+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main real*4 a end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : pac_cv_fort_real4=yes else pac_cv_fort_real4=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fort_real4" >&5 $as_echo "$pac_cv_fort_real4" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether real*8 is supported" >&5 $as_echo_n "checking whether real*8 is supported... " >&6; } if ${pac_cv_fort_real8+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main real*8 a end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : pac_cv_fort_real8=yes else pac_cv_fort_real8=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fort_real8" >&5 $as_echo "$pac_cv_fort_real8" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether real*16 is supported" >&5 $as_echo_n "checking whether real*16 is supported... " >&6; } if ${pac_cv_fort_real16+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main real*16 a end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : pac_cv_fort_real16=yes else pac_cv_fort_real16=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fort_real16" >&5 $as_echo "$pac_cv_fort_real16" >&6; } # Create the default datatype names for the standard MPI Fortran types MPI_CHARACTER=0x4c00011a if test -z "$pac_cv_f77_sizeof_integer" -o \ "X$pac_cv_f77_sizeof_integer" = "X0" ; then as_fn_error $? "Unable to configure with Fortran support because configure could not determine the size of a Fortran INTEGER. Consider setting CROSS_F77_SIZEOF_INTEGER to the length in bytes of a Fortran INTEGER" "$LINENO" 5 fi len_integer=$pac_cv_f77_sizeof_integer # Convert to two digit hex len=$len_integer # # Take len and turn it into two hex digits (there are 8 bits available # in the built-in datatype handle for the length; see # src/mpid/common/datatype/mpidu_datatype.h). This code is taken # from the code in mpich/configure.ac if test "$len" -gt 255 ; then as_fn_error $? "Type sizes greater than 255 bytes are not supported (type INTEGER is $len bytes)" "$LINENO" 5 fi tmplen=$len hexlen="" while test $tmplen -gt 0 ; do lowdigit=`expr $tmplen - 16 \* \( $tmplen / 16 \)` case $lowdigit in 10) char=a ;; 11) char=b ;; 12) char=c ;; 13) char=d ;; 14) char=e ;; 15) char=f ;; *) char=$lowdigit ;; esac hexlen="$char$hexlen" tmplen=`expr $tmplen / 16` done if test $len -lt 16 ; then hexlen="0$hexlen" fi len_integer=$hexlen if test "$len_integer" = 0 ; then # We have a problem { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to determine size of an INTEGER type; using 4" >&5 $as_echo "$as_me: WARNING: Unable to determine size of an INTEGER type; using 4" >&2;} # We make the length 4 len_integer="04" fi MPI_INTEGER=0x4c00${len_integer}1b MPI_REAL=0x4c00${len_integer}1c MPI_LOGICAL=0x4c00${len_integer}1d if test -z "$pac_cv_f77_sizeof_double_precision" ; then as_fn_error $? "Unable to configure with Fortran support because configure could not determine the size of a Fortran DOUBLE PRECISION. Consider setting CROSS_F77_SIZEOF_DOUBLE_PRECISION to the length in bytes of a Fortran DOUBLE PRECISION" "$LINENO" 5 fi len_double=$pac_cv_f77_sizeof_double_precision # Convert to two digit hex len=$len_double # # Take len and turn it into two hex digits (there are 8 bits available # in the built-in datatype handle for the length; see # src/mpid/common/datatype/mpidu_datatype.h). This code is taken # from the code in mpich/configure.ac if test "$len" -gt 255 ; then as_fn_error $? "Type sizes greater than 255 bytes are not supported (type DOUBLE is $len bytes)" "$LINENO" 5 fi tmplen=$len hexlen="" while test $tmplen -gt 0 ; do lowdigit=`expr $tmplen - 16 \* \( $tmplen / 16 \)` case $lowdigit in 10) char=a ;; 11) char=b ;; 12) char=c ;; 13) char=d ;; 14) char=e ;; 15) char=f ;; *) char=$lowdigit ;; esac hexlen="$char$hexlen" tmplen=`expr $tmplen / 16` done if test $len -lt 16 ; then hexlen="0$hexlen" fi len_double=$hexlen if test "$len_double" = 0 ; then # We have a problem { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to determine size of a DOUBLE PRECISION type; using 8" >&5 $as_echo "$as_me: WARNING: Unable to determine size of a DOUBLE PRECISION type; using 8" >&2;} # We make the length 8 len_double="08" fi # Provide the corresponding C types for MPI_REAL and MPI_DOUBLE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type matching Fortran real" >&5 $as_echo_n "checking for C type matching Fortran real... " >&6; } noval=yes for c_type in float double "long_double" ; do eval ctypelen=\$"ac_cv_sizeof_$c_type" if test "$pac_cv_f77_sizeof_real" = "$ctypelen" -a \ "$ctypelen" -gt 0 ; then c_type=`echo $c_type | sed -e 's/_/ /g'` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_type" >&5 $as_echo "$c_type" >&6; } MPIR_FC_REAL_CTYPE=$c_type noval="no" break fi done if test "$noval" = "yes" ; then # Set a default MPIR_FC_REAL_CTYPE="float" { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5 $as_echo "unavailable" >&6; } fi noval=yes { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type matching Fortran double" >&5 $as_echo_n "checking for C type matching Fortran double... " >&6; } for c_type in double "long_double" float ; do eval ctypelen=\$"ac_cv_sizeof_$c_type" if test "$pac_cv_f77_sizeof_double_precision" = "$ctypelen" -a \ "$ctypelen" -gt 0 ; then c_type=`echo $c_type | sed -e 's/_/ /g'` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_type" >&5 $as_echo "$c_type" >&6; } MPIR_FC_DOUBLE_CTYPE=$c_type noval="no" break fi done if test "$noval" = "yes" ; then # Set a default MPIR_FC_DOUBLE_CTYPE="double" { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5 $as_echo "unavailable" >&6; } fi # These are needed to correctly implement the MPI reduction operations cat >>confdefs.h <<_ACEOF #define MPIR_FC_REAL_CTYPE $MPIR_FC_REAL_CTYPE _ACEOF cat >>confdefs.h <<_ACEOF #define MPIR_FC_DOUBLE_CTYPE $MPIR_FC_DOUBLE_CTYPE _ACEOF # Use the proper length values for these items in case we are building # with Fortran integers that are not the same size as C ints and # reals and double precision that are the same size (not valid Fortran, # but used by some applications) len_2integer=`expr 2 \* $len_integer` len_2real=`expr 2 \* $len_integer` len_doublecplx=`expr $pac_cv_f77_sizeof_double_precision \* 2` if test "$len_doublecplx" = 0 ; then # We have a problem { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to determine size of a DOUBLE PRECISION type; using 8" >&5 $as_echo "$as_me: WARNING: Unable to determine size of a DOUBLE PRECISION type; using 8" >&2;} # We make the length 8*2 (in hex) len_doublecplx="16" fi for lenname in len_2integer len_2real len_doublecplx ; do eval len=\$$lenname if test "$len" -gt 255 ; then as_fn_error $? "Type sizes greater than 255 bytes are not supported (type $lenname is $len bytes)" "$LINENO" 5 fi tmplen=$len hexlen="" while test $tmplen -gt 0 ; do lowdigit=`expr $tmplen - 16 \* \( $tmplen / 16 \)` case $lowdigit in 10) char=a ;; 11) char=b ;; 12) char=c ;; 13) char=d ;; 14) char=e ;; 15) char=f ;; *) char=$lowdigit ;; esac hexlen="$char$hexlen" tmplen=`expr $tmplen / 16` done if test $len -lt 16 ; then hexlen="0$hexlen" fi eval ${lenname}=$hexlen if test "$hexlen" = 0 ; then # We have a problem { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to determine size of a $lenname type; using 8" >&5 $as_echo "$as_me: WARNING: Unable to determine size of a $lenname type; using 8" >&2;} # We make the length 8 eval ${lenname}=$hexlen fi done MPI_DOUBLE_PRECISION=0x4c00${len_double}1f MPI_2INTEGER=0x4c00${len_2integer}20 MPI_2REAL=0x4c00${len_2real}21 MPI_COMPLEX=0x4c00${len_2real}1e MPI_DOUBLE_COMPLEX=0x4c00${len_doublecplx}22 MPI_2DOUBLE_PRECISION=0x4c00${len_doublecplx}23 MPI_2COMPLEX=0x4c00${len_doublecplx}24 # # Temporary for the vast majority of systems that use 4 byte reals and # 8 byte doubles # Lengths at this point are in hex, hence "10" = 10 base 16 = 16 base 10. if test "$len_double" = "08" ; then F77_COMPLEX8=$MPI_COMPLEX fi if test "$len_doublecplx" = "10" ; then F77_COMPLEX16=$MPI_DOUBLE_COMPLEX fi if test "$len_long_double" = "10" -a "$MPID_NO_LONG_DOUBLE" != "yes" ; then F77_COMPLEX32="0x4c002025" else F77_COMPLEX32="MPI_DATATYPE_NULL" fi len_2dc=`expr $pac_cv_f77_sizeof_double_precision \* 4` firstdigit=0 seconddigit=0 while test $len_2dc -ge 16 ; do firstdigit=`expr $firstdigit + 1` len_2dc=`expr $len_2dc - 16` done case $len_2dc in 10) seconddigit=a ;; 11) seconddigit=b ;; 12) seconddigit=c ;; 13) seconddigit=d ;; 14) seconddigit=e ;; 15) seconddigit=f ;; *) seconddigit=$len_2dc ;; esac len_2dc="$firstdigit$seconddigit" #echo "2double complex = $len_2dc" MPI_2DOUBLE_COMPLEX=0x4c00${len_2dc}25 MPI_F77_PACKED=$MPI_PACKED MPI_F77_UB=$MPI_UB MPI_F77_LB=$MPI_LB MPI_F77_BYTE=$MPI_BYTE # # We must convert all hex values to decimal (!) # It would be nice to use expr to extract the next character rather than # the heavier-weight sed, but expr under Tru64 Unix discards leading zeros, # even when used only with the match (:) command. Rather than have # configure figure out if expr works, we just use sed. Sigh. for var in CHARACTER INTEGER REAL LOGICAL DOUBLE_PRECISION COMPLEX \ DOUBLE_COMPLEX 2INTEGER 2REAL 2COMPLEX 2DOUBLE_PRECISION \ 2DOUBLE_COMPLEX F77_PACKED F77_UB F77_LB F77_BYTE; do fullvar="MPI_$var" eval fullvarvalue=\$$fullvar #echo "$fullvar = $fullvarvalue" value=0 fullvarvalue=`echo $fullvarvalue | sed -e 's/..\(.*\)/\1/'` for pos in 3 4 5 6 7 8 9 10 ; do # This works, even for Tru64, because only a single character # is extracted char=`expr $fullvarvalue : '\(.\)'` # FIXME: Tru64 Unix eliminates leading zeros (!) # How do we fix something that broken? fullvarvalue=`echo $fullvarvalue | sed -e 's/.\(.*\)/\1/'` case $char in a) char=10 ;; b) char=11 ;; c) char=12 ;; d) char=13 ;; e) char=14 ;; f) char=15 ;; esac value=`expr $value \* 16 + $char` done #echo "$fullvar = $value" if test "X$value" = "X"; then eval origvarvalue=\$$fullvar as_fn_error $? "Internal Error: Failed to convert $fullvar value to hex! Original value was $origvarvalue" "$LINENO" 5 fi eval $fullvar=$value done ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Now, handle the sized types # # Preload the C mpi types # THESE MUST MATCH THE DEFINITIONS IN MPI.H and MPIF.H # We use these to match the optional Fortran types char_mpi=${MPI_CHAR:-0} short_mpi=${MPI_SHORT:-0} int_mpi=${MPI_INT:-0} long_mpi=${MPI_LONG:-0} long_long_mpi=${MPI_LONG_LONG:-0} float_mpi=${MPI_FLOAT:-0} double_mpi=${MPI_DOUBLE:-0} long_double_mpi=${MPI_LONG_DOUBLE:-0} # # The following code was correct for MPI-1, which allowed these datatypes # to be an alias for another MPI type. MPI-2 requires these to # be distinct types, so these are enumerated if test "$use_alias_types" = yes ; then for len in 1 2 4 8 16 ; do eval F77_INTEGER$len=0 #eval testval=\$"pac_cv_f77_sizeof_integer_$len" eval testval=\$"pac_cv_fort_integer$len" if test "$testval" = no ; then continue ; fi testval=$len noval="yes" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type matching Fortran integer*$len" >&5 $as_echo_n "checking for C type matching Fortran integer*$len... " >&6; } for c_type in char short int long "long_long" ; do eval ctypelen=\$"ac_cv_sizeof_$c_type" if test "$testval" = "$ctypelen" -a "$ctypelen" -gt 0 ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_type" >&5 $as_echo "$c_type" >&6; } eval F77_INTEGER$len=\$"${c_type}_mpi" noval="no" break fi done if test "$noval" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5 $as_echo "unavailable" >&6; } fi done # Complex is set separately above for len in 4 8 16 ; do len2=`expr $len + $len` eval F77_REAL$len=0 #eval F77_COMPLEX$len2=0 #eval testval=\$"pac_cv_f77_sizeof_real_$len" eval testval=\$"pac_cv_fort_real$len" if test "$testval" = no ; then continue ; fi testval=$len noval="yes" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type matching Fortran real*$len" >&5 $as_echo_n "checking for C type matching Fortran real*$len... " >&6; } for c_type in float double "long_double" ; do eval ctypelen=\$"ac_cv_sizeof_$c_type" if test "$testval" = "$ctypelen" -a "$ctypelen" -gt 0 ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_type" >&5 $as_echo "$c_type" >&6; } eval F77_REAL$len=\$"${c_type}_mpi" #eval F77_COMPLEX$len2=\$"${c_type}_cplx_mpi" noval="no" break fi done if test "$noval" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5 $as_echo "unavailable" >&6; } fi done else # Simply determine which types exist. These may have been set by the # toplevel configure for var in INTEGER1 INTEGER2 INTEGER4 INTEGER8 INTEGER16 \ REAL4 REAL8 REAL16 COMPLEX8 COMPLEX16 COMPLEX32 ; do eval varname=MPI_$var eval varvalue=\$$varname #echo "$varname = $varvalue" if test "$varvalue" = MPI_DATATYPE_NULL ; then eval F77_$var=0 else eval F77_$var=\$$varname fi done fi # We must convert all hex values to decimal (!) for var in INTEGER1 INTEGER2 INTEGER4 INTEGER8 INTEGER16 \ REAL4 REAL8 REAL16 COMPLEX8 COMPLEX16 COMPLEX32 ; do fullvar="F77_$var" eval fullvarvalue=\$$fullvar if test "$fullvarvalue" = 0 -o -z "$fullvarvalue" ; then eval $fullvar=MPI_DATATYPE_NULL continue fi #echo "$fullvar = $fullvarvalue" value=0 # See the comments above on why expr with : cannot be used here fullvarvalue=`echo $fullvarvalue | sed -e 's/..\(.*\)/\1/'` for pos in 3 4 5 6 7 8 9 10 ; do #char=`expr substr $fullvarvalue $pos 1` char=`expr $fullvarvalue : '\(.\)'` # We don't test for success of expr here because some expr's are # buggy and set the status to one on expressions like # expr 00ccc : '\(.\)' # while both # expr 00ccc : '\(..\)' # and # expr 100cc : '\(.\)' # return a zero status. So the status is set even on success, # if the result is a single character that is a zero (!) #rc=$? #if test "$rc" != 0 ; then # break #fi fullvarvalue=`echo $fullvarvalue | sed -e 's/.\(.*\)/\1/'` case $char in a) char=10 ;; b) char=11 ;; c) char=12 ;; d) char=13 ;; e) char=14 ;; f) char=15 ;; esac value=`expr $value \* 16 + $char` if test $? != 0 ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failure to evaluate $value \* 16 + $char" >&5 $as_echo "$as_me: WARNING: Failure to evaluate $value \* 16 + $char" >&2;} fi done #echo "$fullvar = $value" eval $fullvar=$value done noval="yes" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type matching Fortran integer" >&5 $as_echo_n "checking for C type matching Fortran integer... " >&6; } for c_type in char short int long "long_long" ; do eval ctypelen=\$"ac_cv_sizeof_$c_type" if test "$pac_cv_f77_sizeof_integer" = "$ctypelen" -a \ "$ctypelen" -gt 0 ; then c_type=`echo $c_type | sed -e 's/_/ /g'` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_type" >&5 $as_echo "$c_type" >&6; } MPI_FINT=$c_type noval="no" break fi done if test "$noval" = "yes" ; then # Set a default MPI_FINT="int" { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5 $as_echo "unavailable" >&6; } fi # We also need to check the size of MPI_Aint vs MPI_Fint, and # define AINT_LARGER_THAN_FINT if aint is larger (this # affects code in MPI_Address) if test "$ac_cv_sizeof_void_p" != "0" -a \ "$ac_cv_sizeof_void_p" -gt "$pac_cv_f77_sizeof_integer" ; then $as_echo "#define HAVE_AINT_LARGER_THAN_FINT 1" >>confdefs.h fi if test "$ac_cv_sizeof_void_p" != 0 -a \ "$ac_cv_sizeof_void_p" != "$pac_cv_f77_sizeof_integer" ; then $as_echo "#define HAVE_AINT_DIFFERENT_THAN_FINT 1" >>confdefs.h fi # Include a defined value for Fint is int if test "$MPI_FINT" = "int" ; then $as_echo "#define HAVE_FINT_IS_INT 1" >>confdefs.h elif test "$SIZEOF_F77_INTEGER" != "$ac_cv_sizeof_int" ; then # Make this fatal because we do not want to build a broken fortran # interface (was error) # Check to see if the f77 binding has enabled the code to support # the case of int != fint. if grep HAVE_FINT_IS_INT $master_top_srcdir/src/binding/fortran/mpif_h/testf.c 2>&1 1>/dev/null ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fortran integers and C ints are not the same size. Support for this case is experimental; use at your own risk" >&5 $as_echo "$as_me: WARNING: Fortran integers and C ints are not the same size. Support for this case is experimental; use at your own risk" >&2;} else as_fn_error $? "Fortran integers and C ints are not the same size. The current Fortran binding does not support this case. Either force the Fortran compiler to use integers of $ac_cv_sizeof_int bytes, or use --disable-fortran on the configure line for MPICH." "$LINENO" 5 fi fi # We must convert all hex values to decimal (!). # This is for the C types so they are also available in Fortran for var in CHAR SIGNED_CHAR UNSIGNED_CHAR WCHAR SHORT \ UNSIGNED_SHORT INT UNSIGNED_INT LONG UNSIGNED_LONG \ FLOAT DOUBLE LONG_DOUBLE LONG_LONG_INT \ UNSIGNED_LONG_LONG LONG_LONG FLOAT_INT DOUBLE_INT \ LONG_INT SHORT_INT "2INT" LONG_DOUBLE_INT \ INT8_T INT16_T INT32_T INT64_T \ UINT8_T UINT16_T UINT32_T UINT64_T \ C_BOOL C_FLOAT_COMPLEX C_DOUBLE_COMPLEX \ C_LONG_DOUBLE_COMPLEX AINT OFFSET ; do fullvar="MPI_$var" fullf77var="MPI_F77_$var" eval fullvarvalue=\$$fullvar #echo "$fullvar = $fullvarvalue" if test "x$fullvarvalue" = "x" -o \ "x$fullvarvalue" = "xMPI_DATATYPE_NULL" ; then eval $fullf77var="MPI_DATATYPE_NULL" continue fi value=0 fullvarvalue=`echo $fullvarvalue | sed -e 's/..\(.*\)/\1/'` offset=0 for pos in 3 4 5 6 7 8 9 10 ; do # This works, even for Tru64, because only a single character # is extracted char=`expr $fullvarvalue : '\(.\)'` # FIXME: Tru64 Unix eliminates leading zeros (!) # How do we fix something that broken? fullvarvalue=`echo $fullvarvalue | sed -e 's/.\(.*\)/\1/'` case $char in a) char=10 ;; b) char=11 ;; c) char=12 ;; d) char=13 ;; e) char=14 ;; f) char=15 ;; esac # For Fortran, if the value is too big for an unsigned int, # we need to make it a signed (negative) int. Currently, the # types in this class are the minloc/maxloc types. if test $pos = 3 -a $char -ge 8 ; then #echo "for $var in position $pos found a value >= 8" char=`expr $char - 8` offset=-2147483648 fi value=`expr $value \* 16 + $char` done if test "$offset" != 0 ; then #echo "$fullf77var: $value, $offset" value=`expr $value + $offset` fi #echo "$fullf77var = $value" eval $fullf77var=$value done MPI_F77_UNSIGNED=$MPI_F77_UNSIGNED_INT MPI_F77_LONG_LONG_INT=$MPI_F77_LONG_LONG # C_COMPLEX is an alias for FLOAT_COMPLEX MPI_F77_C_COMPLEX=$MPI_F77_C_FLOAT_COMPLEX # these two are not yet defined, but AC_SUBST only cares about them at # AC_OUTPUT-time # Try and compute the values of .true. and .false. in Fortran # This code has been removed because the Fortran binding code does # not yet support it. pac_mpi_fint="$MPI_FINT" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for values of Fortran logicals" >&5 $as_echo_n "checking for values of Fortran logicals... " >&6; } if ${pac_cv_prog_f77_true_false_value+:} false; then : $as_echo_n "(cached) " >&6 else pac_cv_prog_f77_true_false_value="" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined(HAVE_STDIO_H) || defined(STDC_HEADERS) #include #endif #if defined(HAVE_STDLIB_H) || defined(STDC_HEADERS) #include #endif #ifdef F77_NAME_UPPER #define ftest_ FTEST #elif defined(F77_NAME_LOWER) || defined(F77_NAME_MIXED) #define ftest_ ftest #endif void ftest_( $pac_mpi_fint *, $pac_mpi_fint *); void ftest_( $pac_mpi_fint *itrue, $pac_mpi_fint *ifalse ) { FILE *f = fopen("conftestval","w"); if (!f) exit(1); fprintf( f, "%d %d\n", *itrue, *ifalse ); fclose(f); } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } saved_LIBS="$LIBS" LIBS="pac_conftest.$OBJEXT $saved_LIBS" ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test "$cross_compiling" = yes; then : # Cross-Compiling. Allow the user to set the values if test -n "$CROSS_F77_TRUE_VALUE" -a -n "$CROSS_F77_FALSE_VALUE" ; then pac_cv_prog_f77_true_false_value="$CROSS_F77_TRUE_VALUE $CROSS_F77_FALSE_VALUE" else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Either CROSS_F77_TRUE_VALUE=\"$CROSS_F77_TRUE_VALUE\" or CROSS_F77_FALSE_VALUE=\"$CROSS_F77_FALSE_VALUE\" is not set." >&5 $as_echo "$as_me: WARNING: Either CROSS_F77_TRUE_VALUE=\"$CROSS_F77_TRUE_VALUE\" or CROSS_F77_FALSE_VALUE=\"$CROSS_F77_FALSE_VALUE\" is not set." >&2;} fi else cat > conftest.$ac_ext <<_ACEOF program main logical itrue, ifalse itrue = .TRUE. ifalse = .FALSE. call ftest( itrue, ifalse ) end _ACEOF if ac_fn_f77_try_run "$LINENO"; then : pac_cv_prog_f77_true_false_value="`cat conftestval`" else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to build/run program to determine Fortran logical values." >&5 $as_echo "$as_me: WARNING: Failed to build/run program to determine Fortran logical values." >&2;} fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu LIBS="$saved_LIBS" rm -f pac_conftest.$OBJEXT fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi if test "X$pac_cv_prog_f77_true_false_value" != "X" ; then true_val="`echo $pac_cv_prog_f77_true_false_value | sed -e 's/ .*//g'`" false_val="`echo $pac_cv_prog_f77_true_false_value | sed -e 's/.* *//g'`" if test -n "$true_val" -a -n "$false_val" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: True is $true_val and False is $false_val" >&5 $as_echo "True is $true_val and False is $false_val" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not determine" >&5 $as_echo "could not determine" >&6; } fi fi if test -n "$true_val" -a -n "$false_val" ; then $as_echo "#define F77_TRUE_VALUE_SET 1" >>confdefs.h cat >>confdefs.h <<_ACEOF #define F77_TRUE_VALUE $true_val _ACEOF cat >>confdefs.h <<_ACEOF #define F77_FALSE_VALUE $false_val _ACEOF fi # Get the INTEGER_KIND, ADDRESS_KIND and OFFSET_KIND if possible # # For Fortran 90, we'll also need MPI_ADDRESS_KIND and MPI_OFFSET_KIND # Since our compiler might BE a Fortran 90 compiler, try and determine the # values. if test "$FC" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 is a Fortran 90 compiler" >&5 $as_echo_n "checking whether $F77 is a Fortran 90 compiler... " >&6; } ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu saved_ac_ext=$ac_ext ac_ext="f90" cat > conftest.$ac_ext <<_ACEOF program main integer, dimension(10) :: n integer k print *, range(k) end _ACEOF if ac_fn_f77_try_link "$LINENO"; then : pac_cv_prog_f77_is_fc=yes FC=$F77 if test -z "$FCFLAGS" ; then FCFLAGS="$FFLAGS" fi else pac_cv_prog_f77_is_fc=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_f77_is_fc" >&5 $as_echo "$pac_cv_prog_f77_is_fc" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi if test "$FC" != "no" ; then # Offset kind should be for 8 bytes if possible (Romio prefers that) # address should be sizeof void * (unless --with-aint-size has # been set) # FIXME in the current configure implementation OFFSET_KIND and # MPI_Offset won't always agree, but generally will. The MPI Standard # implies that these types must have identical size, so this is a bug # waiting to happen. if test "$with_aint_size" -gt 0 -a \ "$with_aint_size" -gt "$ac_cv_sizeof_void_p" ; then testsize=$with_aint_size else testsize=$ac_cv_sizeof_void_p fi if test "$testsize" = 0 ; then # Set a default testsize=4 fi # Set the default ADDRESS_KIND=-1 if test "$pac_cv_prog_fc_cross" = "yes" ; then if test -z "$CROSS_F90_ADDRESS_KIND"; then : as_fn_error $? "'$CROSS_F90_ADDRESS_KIND' is empty" "$LINENO" 5 fi ADDRESS_KIND="$CROSS_F90_ADDRESS_KIND" else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 integer kind for ${testsize}-byte integers" >&5 $as_echo_n "checking for Fortran 90 integer kind for ${testsize}-byte integers... " >&6; } # Convert bytes to digits case ${testsize} in 1) sellen=2 ;; 2) sellen=4 ;; 4) sellen=8 ;; 8) sellen=16 ;; 16) sellen=30 ;; *) sellen=8 ;; esac # Check for cached value eval testval=\$"pac_cv_prog_fc_int_kind_$sellen" if test -n "$testval" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $testval (cached)" >&5 $as_echo "$testval (cached)" >&6; } ADDRESS_KIND=$testval else KINDVAL="unavailable" eval "pac_cv_prog_fc_int_kind_$sellen"=-1 if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } else cat > conftest.$ac_ext <<_ACEOF program main integer ii ii = selected_int_kind($sellen) open(8, file="conftest1.out", form="formatted") write (8,*) ii close(8) stop end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : pac_run_ok=yes else pac_run_ok=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$pac_run_ok" = "yes" ; then if test -s conftest1.out ; then # Because of write, there may be a leading blank. KINDVAL=`cat conftest1.out | sed 's/ //g'` eval "pac_cv_prog_fc_int_kind_$sellen"=$KINDVAL ADDRESS_KIND=$KINDVAL fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KINDVAL" >&5 $as_echo "$KINDVAL" >&6; } fi # not cached ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi # is not cross compiling if test "$testsize" = 8 ; then OFFSET_KIND=$ADDRESS_KIND else # Set the default OFFSET_KIND=-1 if test "$pac_cv_prog_fc_cross" = "yes" ; then if test -z "$CROSS_F90_OFFSET_KIND"; then : as_fn_error $? "'$CROSS_F90_OFFSET_KIND' is empty" "$LINENO" 5 fi OFFSET_KIND="$CROSS_F90_OFFSET_KIND" else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 integer kind for 8-byte integers" >&5 $as_echo_n "checking for Fortran 90 integer kind for 8-byte integers... " >&6; } # Convert bytes to digits case 8 in 1) sellen=2 ;; 2) sellen=4 ;; 4) sellen=8 ;; 8) sellen=16 ;; 16) sellen=30 ;; *) sellen=8 ;; esac # Check for cached value eval testval=\$"pac_cv_prog_fc_int_kind_$sellen" if test -n "$testval" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $testval (cached)" >&5 $as_echo "$testval (cached)" >&6; } OFFSET_KIND=$testval else KINDVAL="unavailable" eval "pac_cv_prog_fc_int_kind_$sellen"=-1 if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } else cat > conftest.$ac_ext <<_ACEOF program main integer ii ii = selected_int_kind($sellen) open(8, file="conftest1.out", form="formatted") write (8,*) ii close(8) stop end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : pac_run_ok=yes else pac_run_ok=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$pac_run_ok" = "yes" ; then if test -s conftest1.out ; then # Because of write, there may be a leading blank. KINDVAL=`cat conftest1.out | sed 's/ //g'` eval "pac_cv_prog_fc_int_kind_$sellen"=$KINDVAL OFFSET_KIND=$KINDVAL fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KINDVAL" >&5 $as_echo "$KINDVAL" >&6; } fi # not cached ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi # is not cross compiling fi # # Set the default INTEGER_KIND=-1 if test "$pac_cv_prog_fc_cross" = "yes" ; then if test -z "$CROSS_F90_INTEGER_KIND"; then : as_fn_error $? "'$CROSS_F90_INTEGER_KIND' is empty" "$LINENO" 5 fi INTEGER_KIND="$CROSS_F90_INTEGER_KIND" else ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 integer kind for $pac_cv_f77_sizeof_integer-byte integers" >&5 $as_echo_n "checking for Fortran 90 integer kind for $pac_cv_f77_sizeof_integer-byte integers... " >&6; } # Convert bytes to digits case $pac_cv_f77_sizeof_integer in 1) sellen=2 ;; 2) sellen=4 ;; 4) sellen=8 ;; 8) sellen=16 ;; 16) sellen=30 ;; *) sellen=8 ;; esac # Check for cached value eval testval=\$"pac_cv_prog_fc_int_kind_$sellen" if test -n "$testval" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $testval (cached)" >&5 $as_echo "$testval (cached)" >&6; } INTEGER_KIND=$testval else KINDVAL="unavailable" eval "pac_cv_prog_fc_int_kind_$sellen"=-1 if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } else cat > conftest.$ac_ext <<_ACEOF program main integer ii ii = selected_int_kind($sellen) open(8, file="conftest1.out", form="formatted") write (8,*) ii close(8) stop end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : pac_run_ok=yes else pac_run_ok=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$pac_run_ok" = "yes" ; then if test -s conftest1.out ; then # Because of write, there may be a leading blank. KINDVAL=`cat conftest1.out | sed 's/ //g'` eval "pac_cv_prog_fc_int_kind_$sellen"=$KINDVAL INTEGER_KIND=$KINDVAL fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KINDVAL" >&5 $as_echo "$KINDVAL" >&6; } fi # not cached ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi # is not cross compiling if test "$INTEGER_KIND" = "-1" ; then # In our experience, this usually means that there is some # problem building and/or running the f90 program. Fail # in this case rather than attempt to continue as_fn_error $? "Unable to determine Fortran 90 KIND values for either address-sized integers or offset-sized integers." "$LINENO" 5 fi # # Some compilers won't allow a -1 kind (e.g., absoft). In this case, # use a fallback (sizeof(int) kind) if test "$ADDRESS_KIND" = "-1" -o "$OFFSET_KIND" = "-1" ; then if test "$ADDRESS_KIND" = "-1" ; then ADDRESS_KIND=$INTEGER_KIND fi if test "$OFFSET_KIND" = "-1" ; then OFFSET_KIND=$INTEGER_KIND fi fi ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking if real*8 is supported in Fortran 90" >&5 $as_echo_n "checking if real*8 is supported in Fortran 90... " >&6; } if ${pac_cv_fort90_real8+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext <<_ACEOF program main real*8 a end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : pac_cv_fort90_real8=yes else pac_cv_fort90_real8=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fort90_real8" >&5 $as_echo "$pac_cv_fort90_real8" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu WTIME_DOUBLE_TYPE="DOUBLE PRECISION" # Save a copy of the original mpi_base.f90 file if test "$enable_fc" = "yes" -a "$pac_cv_fort90_real8" = "yes" ; then WTIME_DOUBLE_TYPE="REAL*8" fi # WTIME_DOUBLE_TYPE is substituted into mpi_base.f90 fi # Make sure that address kind and offset kind have values. if test -z "$ADDRESS_KIND" ; then ADDRESS_KIND=0 fi if test -z "$OFFSET_KIND" ; then OFFSET_KIND=0 fi # Note, however, that zero value are (in all practical case) invalid # for Fortran 90, and indicate a failure. Test and fail if Fortran 90 # enabled. if test "$enable_fc" = "yes" ; then if test "$ADDRESS_KIND" -le 0 -o "$OFFSET_KIND" -le 0 ; then as_fn_error $? "Unable to determine Fortran 90 integer kinds for MPI types. If you do not need Fortran 90, add --disable-fc to the configure options." "$LINENO" 5 # If the above is converted to a warning, you need to change # enable_fc and remote f90 from the bindings enable_fc=no fi fi # Some compilers may require special directives to handle the common # block in a library. In particular, directives are needed for Microsoft # Windows to support dynamic library import. The following six # directives may be needed: # CMS\$ATTRIBUTES DLLIMPORT::/MPIPRIV1/ # CMS\$ATTRIBUTES DLLIMPORT::/MPIPRIV2/ # CMS\$ATTRIBUTES DLLIMPORT::/MPIPRIVC/ # CDEC\$ATTRIBUTES DLLIMPORT::/MPIPRIV1/ # CDEC\$ATTRIBUTES DLLIMPORT::/MPIPRIV2/ # CDEC\$ATTRIBUTES DLLIMPORT::/MPIPRIVC/ # CMS is for the Microsoft compiler, # CDEC is (we believe) for the DEC Fortran compiler. # We need to make this a configure-time variable because some compilers # (in particular, a version of the Intel Fortran compiler for Linux) # will read directives for other compilers and then flag as fatal # errors directives that it does not support but does recognize. DLLIMPORT="" # FIXME: # We also need to include # SIZEOF_FC_MPI_OFFSET # SIZEOF_FC_MPI_AINT # # If other "kinds" are supported, MPI_SIZEOF needs to identify # those as well. This is very difficult to do in a general way. # To start with, we use the sizes determined for the Fortran 77 values. # These must be the same as for the Fortran 90 values. CROSS_F90_SIZEOF_INTEGER=${CROSS_F90_SIZEOF_INTEGER:-0} CROSS_F90_SIZEOF_REAL=${CROSS_F90_SIZEOF_REAL:-0} CROSS_F90_SIZEOF_DOUBLE_PRECISION=${CROSS_F90_SIZEOF_DOUBLE_PRECISION:-0} SIZEOF_FC_INTEGER=$CROSS_F90_SIZEOF_INTEGER SIZEOF_FC_REAL=$CROSS_F90_SIZEOF_REAL SIZEOF_FC_CHARACTER=1 SIZEOF_FC_DOUBLE_PRECISION=$CROSS_F90_SIZEOF_DOUBLE_PRECISION if test "$pac_cv_f77_sizeof_integer" -gt 0 -a \ "$SIZEOF_FC_INTEGER" = "0" ; then SIZEOF_FC_INTEGER=$pac_cv_f77_sizeof_integer fi if test "$pac_cv_f77_sizeof_real" -gt 0 -a "$SIZEOF_FC_REAL" = "0" ; then SIZEOF_FC_REAL=$pac_cv_f77_sizeof_real fi if test "$pac_cv_f77_sizeof_double_precision" -gt 0 -a \ "$SIZEOF_FC_DOUBLE_PRECISION" = "0" ; then SIZEOF_FC_DOUBLE_PRECISION=$pac_cv_f77_sizeof_double_precision fi # REQD is short for "real equal double precision" and is set to the # Fortran 90 comment character if true. This is necessary to # allow the mpi_sizeofs module to be built, since if this part of the # Fortran standard is violated by the compiler (unfortunately common, # as some applications are written to require this non-standard # version), the double precision versions of the MPI_SIZEOF routine # must be commented out of the module (!). REQD= if test "$SIZEOF_FC_REAL" = "$SIZEOF_FC_DOUBLE_PRECISION" ; then REQD="!" fi # Is integer*1 supported, and is it a different size than integer? REQI1="!" if test "$pac_cv_fort_integer1" = yes -a "$SIZEOF_FC_INTEGER" != 1 ; then REQI1= fi # Is integer*2 supported, and is it a different size than integer? REQI2="!" if test "$pac_cv_fort_integer2" = yes -a "$SIZEOF_FC_INTEGER" != 2 ; then REQI2= fi # Is integer*8 supported, and is it a different size than integer? REQI8="!" if test "$pac_cv_fort_integer8" = yes -a "$SIZEOF_FC_INTEGER" != 8 ; then REQI8= fi # ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi # ---------------------------------------------------------------------------- # C++ types # default to null types # Set to "0x0c000000" instead of "MPI_DATATYPE_NULL" because these values # sometimes are used in preprocessor tests where we cannot compare the # type-casted values. MPIR_CXX_BOOL=0x0c000000 MPIR_CXX_COMPLEX=0x0c000000 MPIR_CXX_DOUBLE_COMPLEX=0x0c000000 MPIR_CXX_LONG_DOUBLE_COMPLEX=0x0c000000 MPI_F77_CXX_BOOL=MPI_DATATYPE_NULL MPI_F77_CXX_FLOAT_COMPLEX=MPI_DATATYPE_NULL MPI_F77_CXX_DOUBLE_COMPLEX=MPI_DATATYPE_NULL MPI_F77_CXX_LONG_DOUBLE_COMPLEX=MPI_DATATYPE_NULL if test "$enable_cxx" = "yes" ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5 $as_echo_n "checking size of bool... " >&6; } if ${ac_cv_sizeof_bool+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool" "$ac_includes_default"; then : else if test "$ac_cv_type_bool" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (bool) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_bool=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5 $as_echo "$ac_cv_sizeof_bool" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_BOOL $ac_cv_sizeof_bool _ACEOF # Find a C type that matches the size of the C++ boolean type case "$ac_cv_sizeof_bool" in $ac_cv_sizeof__Bool) bool_type=_Bool ;; $ac_cv_sizeof_unsigned_char) bool_type="unsigned char" ;; $ac_cv_sizeof_unsigned_short) bool_type="unsigned short" ;; $ac_cv_sizeof_unsigned_int) bool_type="unsigned int" ;; $ac_cv_sizeof_unsigned_long) bool_type="unsigned long" ;; $ac_cv_sizeof_unsigned_long_long) bool_type="unsigned long long" ;; *) as_fn_error $? "unable to determine matching C type for C++ bool" "$LINENO" 5 ;; esac cat >>confdefs.h <<_ACEOF #define MPIR_CXX_BOOL_CTYPE $bool_type _ACEOF ac_fn_cxx_check_header_mongrel "$LINENO" "complex" "ac_cv_header_complex" "$ac_includes_default" if test "x$ac_cv_header_complex" = xyes; then : fi if test "$ac_cv_header_complex" = "yes" ; then # The C++ complex types are all templated. We finagle this by # defining a standin name # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Complex" >&5 $as_echo_n "checking size of Complex... " >&6; } if ${ac_cv_sizeof_Complex+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (Complex))" "ac_cv_sizeof_Complex" "#include #include using namespace std; #define Complex complex "; then : else if test "$ac_cv_type_Complex" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (Complex) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_Complex=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_Complex" >&5 $as_echo "$ac_cv_sizeof_Complex" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_COMPLEX $ac_cv_sizeof_Complex _ACEOF # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of DoubleComplex" >&5 $as_echo_n "checking size of DoubleComplex... " >&6; } if ${ac_cv_sizeof_DoubleComplex+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (DoubleComplex))" "ac_cv_sizeof_DoubleComplex" "#include #include using namespace std; #define DoubleComplex complex "; then : else if test "$ac_cv_type_DoubleComplex" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (DoubleComplex) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_DoubleComplex=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_DoubleComplex" >&5 $as_echo "$ac_cv_sizeof_DoubleComplex" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_DOUBLECOMPLEX $ac_cv_sizeof_DoubleComplex _ACEOF if test "$MPID_NO_LONG_DOUBLE" != yes ; then # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of LongDoubleComplex" >&5 $as_echo_n "checking size of LongDoubleComplex... " >&6; } if ${ac_cv_sizeof_LongDoubleComplex+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (LongDoubleComplex))" "ac_cv_sizeof_LongDoubleComplex" "#include #include using namespace std; #define LongDoubleComplex complex "; then : else if test "$ac_cv_type_LongDoubleComplex" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (LongDoubleComplex) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_LongDoubleComplex=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_LongDoubleComplex" >&5 $as_echo "$ac_cv_sizeof_LongDoubleComplex" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_LONGDOUBLECOMPLEX $ac_cv_sizeof_LongDoubleComplex _ACEOF fi # If either complex or double complex have length 0, then mark # c++ complex as unavailable if test "$ac_cv_sizeof_Complex" != 0 -a \ "$ac_cv_sizeof_DoubleComplex" != 0 ; then $as_echo "#define HAVE_CXX_COMPLEX 1" >>confdefs.h fi # Datatypes are given by # 0x4c00 (1 byte) (1 byte) # where the unique nums are # 33,34,35,36 case "$ac_cv_sizeof_bool" in 1) MPIR_CXX_BOOL=0x4c000133 ;; 2) MPIR_CXX_BOOL=0x4c000233 ;; 4) MPIR_CXX_BOOL=0x4c000433 ;; 8) MPIR_CXX_BOOL=0x4c000833 ;; *) ;; esac case "$ac_cv_sizeof_Complex" in 8) MPIR_CXX_COMPLEX=0x4c000834 ;; 16) MPIR_CXX_COMPLEX=0x4c001034 ;; *) ;; esac case "$ac_cv_sizeof_DoubleComplex" in 8) MPIR_CXX_DOUBLE_COMPLEX=0x4c000835 ;; 16) MPIR_CXX_DOUBLE_COMPLEX=0x4c001035 ;; 32) MPIR_CXX_DOUBLE_COMPLEX=0x4c002035 ;; *) ;; esac # only enable CXX "long double" if we have a C "long double", since we # currently perform reductions on CXX "long double" types via C. if test "X$pac_cv_have_long_double" = "Xyes" ; then case "$ac_cv_sizeof_LongDoubleComplex" in 8) MPIR_CXX_LONG_DOUBLE_COMPLEX=0x4c000836 ;; 16) MPIR_CXX_LONG_DOUBLE_COMPLEX=0x4c001036 ;; 24) MPIR_CXX_LONG_DOUBLE_COMPLEX=0x4c001836 ;; 32) MPIR_CXX_LONG_DOUBLE_COMPLEX=0x4c002036 ;; *) ;; esac fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Make these available to the collective operations and other code cat >>confdefs.h <<_ACEOF #define MPIR_CXX_BOOL_VALUE $MPIR_CXX_BOOL _ACEOF cat >>confdefs.h <<_ACEOF #define MPIR_CXX_COMPLEX_VALUE $MPIR_CXX_COMPLEX _ACEOF cat >>confdefs.h <<_ACEOF #define MPIR_CXX_DOUBLE_COMPLEX_VALUE $MPIR_CXX_DOUBLE_COMPLEX _ACEOF cat >>confdefs.h <<_ACEOF #define MPIR_CXX_LONG_DOUBLE_COMPLEX_VALUE $MPIR_CXX_LONG_DOUBLE_COMPLEX _ACEOF # compute F77 decimal constant values for these types MPI_F77_CXX_BOOL=`printf "%d" $MPIR_CXX_BOOL` MPI_F77_CXX_FLOAT_COMPLEX=`printf "%d" $MPIR_CXX_COMPLEX` MPI_F77_CXX_DOUBLE_COMPLEX=`printf "%d" $MPIR_CXX_DOUBLE_COMPLEX` MPI_F77_CXX_LONG_DOUBLE_COMPLEX=`printf "%d" $MPIR_CXX_LONG_DOUBLE_COMPLEX` fi # ------------------------------------------------------------------------ # Test if type_tag_for_datatype is agnostic to modifiers such as const, volatile, and restrict # if not, the type tags are disabled to avoid compiler warings. A new type_tag for const etc. does # does not help, since only the latest type_tag definition is used. Type tags are defined in mpi.h, # therefore, they must be also be activated/deavtivated there if test -z "${pac_save_CFLAGS_nesting}" ; then pac_save_CFLAGS_nesting=0 fi eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"' pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1` { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts option -Werror" >&5 $as_echo_n "checking whether C compiler accepts option -Werror... " >&6; } pac_opt="-Werror" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CFLAGS_orig="$CFLAGS" CFLAGS_opt="$pac_opt $CFLAGS" pac_result="unknown" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include const char hw[] = "Hello, World\n"; int main () { fputs (hw, stdout); ; return 0; } _ACEOF CFLAGS="$CFLAGS_orig" rm -f pac_test1.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`" if ac_fn_c_try_link "$LINENO"; then : CFLAGS="$CFLAGS_opt" rm -f pac_test2.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`" if ac_fn_c_try_link "$LINENO"; then : pac_TESTLOG="pac_test.log" rm -f $pac_TESTLOG if { $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5 (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; }; then : pac_result=yes else $as_echo "$as_me: program exited with status $ac_status" >&5 (exit $ac_status) $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5 cat $pac_TESTLOG >&5 pac_result=no fi rm -f $pac_TESTLOG else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5 $as_echo "$pac_result" >&6; } rm -f conftest.$ac_ext # gcc 4.2.4 on 32-bit does not complain about the -Wno-type-limits option # even though it doesn't support it. However, when another warning is # triggered, it gives an error that the option is not recognized. So we # need to test with a conftest file that will generate warnings. # # add an extra switch, pac_c_check_compiler_option_prototest, to # disable this test just in case some new compiler does not like it. # # Linking with a program with an invalid prototype to ensure a compiler warning. if test "$pac_result" = "yes" \ -a "$pac_c_check_compiler_option_prototest" != "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler option -Werror works with an invalid prototype program" >&5 $as_echo_n "checking whether C compiler option -Werror works with an invalid prototype program... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main(int argc, char **argv){ int foo, bar = 0; foo += 1; return foo; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_result=yes else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5 $as_echo "$pac_result" >&6; } fi # if test "$pac_result" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5 $as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; } pac_result=unknown CFLAGS="$CFLAGS_orig" rm -f pac_test3.log # START of PUSHVAL if ${pac_stk_ac_compile_level+:} false; then : as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val else pac_stk_ac_compile_level=0 fi eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile" if test "x$pac_stk_ac_compile_level" = x0; then : eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level fi eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level # END of PUSHVAL ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(void); int foo(void){return 0;} _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } saved_LIBS="$LIBS" LIBS="pac_conftest.$OBJEXT $LIBS" rm -f pac_test4.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : CFLAGS="$CFLAGS_opt" rm -f pac_test5.log # START of PUSHVAL if ${pac_stk_ac_link_level+:} false; then : as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val else pac_stk_ac_link_level=0 fi eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link" if test "x$pac_stk_ac_link_level" = x0; then : eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level fi eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level # END of PUSHVAL ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test5.log 2>\&1|g'`" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_TESTLOG="pac_test.log" rm -f $pac_TESTLOG if { $as_echo "$as_me:$LINENO: diff -b pac_test4.log pac_test5.log > $pac_TESTLOG" >&5 (eval diff -b pac_test4.log pac_test5.log > $pac_TESTLOG) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; }; then : pac_result=yes else $as_echo "$as_me: program exited with status $ac_status" >&5 (exit $ac_status) $as_echo "*** diff -b pac_test4.log pac_test5.log :" >&5 cat $pac_TESTLOG >&5 pac_result=no fi rm -f $pac_TESTLOG else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL else pac_result=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # START of POPVAL if ${pac_stk_ac_link_level+:} false; then : if test "x$pac_stk_ac_link_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;} else eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level as_fn_arith $pac_stk_ac_link_level - 1 && pac_stk_ac_link_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;} fi # END of POPVAL LIBS="$saved_LIBS" rm -f pac_conftest.$OBJEXT else pac_result=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # START of POPVAL if ${pac_stk_ac_compile_level+:} false; then : if test "x$pac_stk_ac_compile_level" = x-1; then : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5 $as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;} else eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level as_fn_arith $pac_stk_ac_compile_level - 1 && pac_stk_ac_compile_level=$as_val fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5 $as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;} fi # END of POPVAL { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5 $as_echo "$pac_result" >&6; } rm -f pac_test3.log pac_test4.log pac_test5.log fi rm -f pac_test1.log pac_test2.log CFLAGS="$CFLAGS_orig" if test "$pac_result" = "yes" ; then CFLAGS="$CFLAGS -Werror" else : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ typedef int TEST_Datatype; #define TEST_INT ((TEST_Datatype)0x44) static const TEST_Datatype test_int __attribute__((type_tag_for_datatype(TEST,int))) = TEST_INT; void test(const void* buffer, TEST_Datatype datatype)__attribute__((pointer_with_type_tag(TEST,1,2))); int main () { const int buf[10]; test(buf, TEST_INT); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_attr_support=yes else ac_attr_support=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test "$ac_attr_support" = yes then DISABLE_TAG_SUPPORT="#undef NO_TAGS_WITH_MODIFIERS" else DISABLE_TAG_SUPPORT="#define NO_TAGS_WITH_MODIFIERS 1" fi pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1` eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}" eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}="" # ---------------------------------------------------------------------------- # Check for the alignment rules moves with types int64_t etc. These # are used in the datatype code to perform pack and unpack operations. # These only determine if different alignments *work*, not whether they # work efficiently. The datatype pack code (should) allow the developer # to include stricter alignment rules than are needed for correctness to # get better performance. if test "$ac_cv_c_int64_t" != "no" -o -n "$INT64_T" ; then default_int64_t_alignment=${CROSS_INT64_T_ALIGNMENT:-"unknown"} if test -z "$INT64_T" ; then if test "$ac_cv_c_int64_t" = yes ; then INT64_T="int64_t" else INT64_T="$ac_cv_int64_t" fi fi # We use the type that we're going use for int64. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alignment restrictions on $INT64_T" >&5 $as_echo_n "checking for alignment restrictions on $INT64_T... " >&6; } if ${pac_cv_int64_t_alignment+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : pac_cv_int64_t_alignment=$default_int64_t_alignment else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main(int argc, char **argv ) { $INT64_T *p1, v; char *buf_p = (char *)malloc( 64 ), *bp; bp = buf_p; /* Make bp aligned on 4, not 8 bytes */ if (!( (long)bp & 0x7 ) ) bp += 4; p1 = ($INT64_T *)bp; v = -1; *p1 = v; if (!( (long)bp & 0x3 ) ) bp += 2; p1 = ($INT64_T *)bp; *p1 = 1; if (!( (long)bp & 0x1 ) ) bp += 1; p1 = ($INT64_T *)bp; *p1 = 1; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : pac_cv_int64_t_alignment=no else pac_cv_int64_t_alignment=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_int64_t_alignment" >&5 $as_echo "$pac_cv_int64_t_alignment" >&6; } if test "$pac_cv_int64_t_alignment" = "no" ; then $as_echo "#define HAVE_ANY_INT64_T_ALIGNMENT 1" >>confdefs.h fi fi if test "$ac_cv_int32_t" != "no" ; then default_int32_t_alignment=${CROSS_INT32_T_ALIGNMENT:-"unknown"} if test -z "$INT32_T" ; then if test "$ac_cv_c_int32_t" = yes ; then INT32_T="int32_t" else INT32_T="$ac_cv_int32_t" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alignment restrictions on int32_t" >&5 $as_echo_n "checking for alignment restrictions on int32_t... " >&6; } if ${pac_cv_int32_t_alignment+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : pac_cv_int32_t_alignment=$default_int32_t_alignment else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main(int argc, char **argv ) { $INT32_T *p1, v; char *buf_p = (char *)malloc( 64 ), *bp; bp = buf_p; /* Make bp aligned on 4, not 8 bytes */ if (!( (long)bp & 0x7 ) ) bp += 4; p1 = ($INT32_T *)bp; v = -1; *p1 = v; if (!( (long)bp & 0x3 ) ) bp += 2; p1 = ($INT32_T *)bp; *p1 = 1; if (!( (long)bp & 0x1 ) ) bp += 1; p1 = ($INT32_T *)bp; *p1 = 1; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : pac_cv_int32_t_alignment=no else pac_cv_int32_t_alignment=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_int32_t_alignment" >&5 $as_echo "$pac_cv_int32_t_alignment" >&6; } if test "$pac_cv_int32_t_alignment" = "no" ; then $as_echo "#define HAVE_ANY_INT32_T_ALIGNMENT 1" >>confdefs.h fi fi # ----------------------------------------------------------------------------- # Check for support of enable-coverage. Put this near the end of the tests # because the coverage options may affect the other tests. for ac_prog in gcov do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_GCOV+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$GCOV"; then ac_cv_prog_GCOV="$GCOV" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_GCOV="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi GCOV=$ac_cv_prog_GCOV if test -n "$GCOV"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5 $as_echo "$GCOV" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$GCOV" && break done # Check whether --enable-coverage was given. if test "${enable_coverage+set}" = set; then : enableval=$enable_coverage; else enable_coverage=no fi if test "$enable_coverage" = "yes" ; then if test "$ac_cv_c_compiler_gnu" = "yes" ; then CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage" LIBS="$LIBS -lgcov" if test ${WRAPPER_CFLAGS+set} = set ; then WRAPPER_CFLAGS="$WRAPPER_CFLAGS -fprofile-arcs -ftest-coverage" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-coverage only supported for GCC" >&5 $as_echo "$as_me: WARNING: --enable-coverage only supported for GCC" >&2;} fi if test "$enable_cxx" = "yes" ; then if test "$ac_cv_cxx_compiler_gnu" = "yes" ; then CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage" LIBS="$LIBS -lgcov" if test ${WRAPPER_CXXFLAGS+set} = set ; then WRAPPER_CXXFLAGS="$WRAPPER_CXXFLAGS -fprofile-arcs -ftest-coverage" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-coverage only supported for GCC" >&5 $as_echo "$as_me: WARNING: --enable-coverage only supported for GCC" >&2;} fi fi # Add similar options for g77 so that the Fortran tests will also # if test "$enable_f77" = yes ; then if test "$ac_cv_f77_compiler_gnu" = "yes" ; then FFLAGS="$FFLAGS -fprofile-arcs -ftest-coverage" LIBS="$LIBS -lgcov" if test ${WRAPPER_FFLAGS+set} = set ; then WRAPPER_FFLAGS="$WRAPPER_FFLAGS -fprofile-arcs -ftest-coverage" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-coverage only supported for G77/GFORTRAN" >&5 $as_echo "$as_me: WARNING: --enable-coverage only supported for G77/GFORTRAN" >&2;} fi fi if test "$enable_fc" = yes ; then if test "$ac_cv_fc_compiler_gnu" = "yes" ; then FCFLAGS="$FCFLAGS -fprofile-arcs -ftest-coverage" LIBS="$LIBS -lgcov" if test ${WRAPPER_FCFLAGS+set} = set ; then WRAPPER_FCFLAGS="$WRAPPER_FCFLAGS -fprofile-arcs -ftest-coverage" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-coverage only supported for GFORTRAN" >&5 $as_echo "$as_me: WARNING: --enable-coverage only supported for GFORTRAN" >&2;} fi fi # On some platforms (e.g., Mac Darwin), we must also *link* # with the -fprofile-args -ftest-coverage option. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compilation with coverage analysis enabled works" >&5 $as_echo_n "checking whether compilation with coverage analysis enabled works... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main(int argc, char **argv){return 1;} _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "Unable to link programs when coverage analysis enabled" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # Test for the routines that we need to use to ensure that the # data files are (usually) written out # FIXME: Some versions of Linux provide usleep, but it rounds times # up to the next second (!) for ac_func in usleep do : ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" if test "x$ac_cv_func_usleep" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_USLEEP 1 _ACEOF fi done # NOTE: using a "pac_cv_" prefix but not caching because of xFLAGS "side effects" pac_cv_use_coverage=yes $as_echo "#define USE_COVERAGE 1" >>confdefs.h fi if test "X$pac_cv_use_coverage" = "Xyes"; then BUILD_COVERAGE_TRUE= BUILD_COVERAGE_FALSE='#' else BUILD_COVERAGE_TRUE='#' BUILD_COVERAGE_FALSE= fi # ----------------------------------------------------------------------------- # Look for Standard headers { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # Check for a specific header # Grrr. OS/X fails the test for sys/uio.h because uio *requires* sys/types.h # to compile. Thus, we'll make that a separate test # stddef.h is sometimes needed for types like wchar_t for ac_header in stdlib.h stdarg.h sys/types.h string.h inttypes.h limits.h stddef.h errno.h sys/socket.h sys/time.h unistd.h endian.h assert.h sys/param.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/uio.h" >&5 $as_echo_n "checking for sys/uio.h... " >&6; } if ${ac_cv_header_sys_uio_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { int a; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_sys_uio_h=yes else ac_cv_header_sys_uio_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_uio_h" >&5 $as_echo "$ac_cv_header_sys_uio_h" >&6; } if test "$ac_cv_header_sys_uio_h" = yes ; then $as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h fi # Check for special types ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi # These are used to support timeouts for ac_func in setitimer alarm do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # These are used for error reporting for ac_func in vsnprintf vsprintf do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "$ac_cv_func_vsnprintf" = "yes" ; then # vsnprintf may be declared in stdio.h and may need stdarg.h { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf needs a declaration" >&5 $as_echo_n "checking whether vsnprintf needs a declaration... " >&6; } if ${pac_cv_func_decl_vsnprintf+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include void (*fptr)(void) = (void(*)(void))vsnprintf; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_func_decl_vsnprintf=no else pac_cv_func_decl_vsnprintf=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_vsnprintf" >&5 $as_echo "$pac_cv_func_decl_vsnprintf" >&6; } if test "$pac_cv_func_decl_vsnprintf" = "yes" ; then cat >>confdefs.h <<_ACEOF #define NEEDS_VSNPRINTF_DECL 1 _ACEOF fi fi # We would like to use strerror in the file namepublisher; it is also used # in MPIR_Strerror (whose implementation is broken if strerror is not found) for ac_func in strerror strncasecmp do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" if test "x$ac_cv_have_decl_strerror_r" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_STRERROR_R $ac_have_decl _ACEOF for ac_func in strerror_r do : ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" if test "x$ac_cv_func_strerror_r" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRERROR_R 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 $as_echo_n "checking whether strerror_r returns char *... " >&6; } if ${ac_cv_func_strerror_r_char_p+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_func_strerror_r_char_p=no if test $ac_cv_have_decl_strerror_r = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { char buf[100]; char x = *strerror_r (0, buf, sizeof buf); char *p = strerror_r (0, buf, sizeof buf); return !p || x; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_func_strerror_r_char_p=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else # strerror_r is not declared. Choose between # systems that have relatively inaccessible declarations for the # function. BeOS and DEC UNIX 4.0 fall in this category, but the # former has a strerror_r that returns char*, while the latter # has a strerror_r that returns `int'. # This test should segfault on the DEC system. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default extern char *strerror_r (); int main () { char buf[100]; char x = *strerror_r (0, buf, sizeof buf); return ! isalpha (x); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_strerror_r_char_p=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; } if test $ac_cv_func_strerror_r_char_p = yes; then $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h fi if test "$ac_cv_func_strerror_r" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r needs a declaration" >&5 $as_echo_n "checking whether strerror_r needs a declaration... " >&6; } if ${pac_cv_func_decl_strerror_r+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include void (*fptr)(void) = (void(*)(void))strerror_r; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_func_decl_strerror_r=no else pac_cv_func_decl_strerror_r=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_strerror_r" >&5 $as_echo "$pac_cv_func_decl_strerror_r" >&6; } if test "$pac_cv_func_decl_strerror_r" = "yes" ; then cat >>confdefs.h <<_ACEOF #define NEEDS_STRERROR_R_DECL 1 _ACEOF fi fi # Use snprintf if possible when creating messages for ac_func in snprintf do : ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" if test "x$ac_cv_func_snprintf" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SNPRINTF 1 _ACEOF fi done if test "$ac_cv_func_snprintf" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf needs a declaration" >&5 $as_echo_n "checking whether snprintf needs a declaration... " >&6; } if ${pac_cv_func_decl_snprintf+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include void (*fptr)(void) = (void(*)(void))snprintf; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_func_decl_snprintf=no else pac_cv_func_decl_snprintf=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_snprintf" >&5 $as_echo "$pac_cv_func_decl_snprintf" >&6; } if test "$pac_cv_func_decl_snprintf" = "yes" ; then cat >>confdefs.h <<_ACEOF #define NEEDS_SNPRINTF_DECL 1 _ACEOF fi fi # qsort will be used in MPI_Comm_split, if available for ac_func in qsort do : ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort" if test "x$ac_cv_func_qsort" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_QSORT 1 _ACEOF fi done # if we are using stdarg, we may need va_copy . Test to see if we have it # Since it may be a built-in instead of a function, we must try to # compile and link a program that uses it. # va_copy is currently used only in src/util/dbg_printf.c, in an obsolete # debugging routine. We may want to withdraw this (saving the # test in confdb/aclocal_cc.m4). { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 $as_echo_n "checking for va_copy... " >&6; } if ${pac_cv_func_va_copy+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include void foo1( char *fmt, ... ) { va_list ap, list; va_start(ap,fmt); va_copy(list,ap); va_end(list); va_end(ap); } int main () { foo1("a test %d", 3); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_cv_func_va_copy=yes else pac_cv_func_va_copy=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_va_copy" >&5 $as_echo "$pac_cv_func_va_copy" >&6; } if test "$pac_cv_func_va_copy" = "yes" ; then $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5 $as_echo_n "checking for __va_copy... " >&6; } if ${pac_cv_func___va_copy+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include void foo1( char *fmt, ... ) { va_list ap, list; va_start(ap,fmt); __va_copy(list,ap); va_end(list); va_end(ap); } int main () { foo1("a test %d", 3); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_cv_func___va_copy=yes else pac_cv_func___va_copy=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func___va_copy" >&5 $as_echo "$pac_cv_func___va_copy" >&6; } if test "$pac_cv_func___va_copy" = "yes" ; then $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable argument list macro functionality" >&5 $as_echo_n "checking for variable argument list macro functionality... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #define conftest_va_arg_macro(...) printf(__VA_ARGS__) int main () { conftest_va_arg_macro("a test %d", 3); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HAVE_MACRO_VA_ARGS 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # Check for alloca function. May set HAVE_ALLOCA_H and HAVE_ALLOCA # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 $as_echo_n "checking for working alloca.h... " >&6; } if ${ac_cv_working_alloca_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { char *p = (char *) alloca (2 * sizeof (int)); if (p) return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_working_alloca_h=yes else ac_cv_working_alloca_h=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 $as_echo "$ac_cv_working_alloca_h" >&6; } if test $ac_cv_working_alloca_h = yes; then $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 $as_echo_n "checking for alloca... " >&6; } if ${ac_cv_func_alloca_works+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __GNUC__ # define alloca __builtin_alloca #else # ifdef _MSC_VER # include # define alloca _alloca # else # ifdef HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ void *alloca (size_t); # endif # endif # endif # endif #endif int main () { char *p = (char *) alloca (1); if (p) return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_func_alloca_works=yes else ac_cv_func_alloca_works=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 $as_echo "$ac_cv_func_alloca_works" >&6; } if test $ac_cv_func_alloca_works = yes; then $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h else # The SVR3 libPW and SVR4 libucb both contain incompatible functions # that cause trouble. Some versions do not even contain alloca or # contain a buggy version. If you still want to use their alloca, # use ar to extract alloca.o from them instead of compiling alloca.c. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext $as_echo "#define C_ALLOCA 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } if ${ac_cv_os_cray+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined CRAY && ! defined CRAY2 webecray #else wenotbecray #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "webecray" >/dev/null 2>&1; then : ac_cv_os_cray=yes else ac_cv_os_cray=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 $as_echo "$ac_cv_os_cray" >&6; } if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define CRAY_STACKSEG_END $ac_func _ACEOF break fi done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 $as_echo_n "checking stack direction for C alloca... " >&6; } if ${ac_cv_c_stack_direction+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_c_stack_direction=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int find_stack_direction (int *addr, int depth) { int dir, dummy = 0; if (! addr) addr = &dummy; *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; dir = depth ? find_stack_direction (addr, depth - 1) : 0; return dir + dummy; } int main (int argc, char **argv) { return find_stack_direction (0, argc + !argv + 20) < 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_stack_direction=1 else ac_cv_c_stack_direction=-1 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 $as_echo "$ac_cv_c_stack_direction" >&6; } cat >>confdefs.h <<_ACEOF #define STACK_DIRECTION $ac_cv_c_stack_direction _ACEOF fi # We don't use alloca unless USE_ALLOCA is also set. # Check whether --enable-alloca was given. if test "${enable_alloca+set}" = set; then : enableval=$enable_alloca; else enable_alloca=no fi if test "$enable_alloca" = yes ; then $as_echo "#define USE_ALLOCA 1" >>confdefs.h fi if test "$enable_g_mem" != "yes" ; then # Strdup is needed only if memory tracing is not enabled. for ac_func in strdup do : ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" if test "x$ac_cv_func_strdup" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRDUP 1 _ACEOF fi done if test "$ac_cv_func_strdup" = "yes" ; then # Do we need to declare strdup? { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strdup needs a declaration" >&5 $as_echo_n "checking whether strdup needs a declaration... " >&6; } if ${pac_cv_func_decl_strdup+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include void (*fptr)(void) = (void(*)(void))strdup; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_func_decl_strdup=no else pac_cv_func_decl_strdup=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_strdup" >&5 $as_echo "$pac_cv_func_decl_strdup" >&6; } if test "$pac_cv_func_decl_strdup" = "yes" ; then cat >>confdefs.h <<_ACEOF #define NEEDS_STRDUP_DECL 1 _ACEOF fi fi fi # ---------------------------------------------------------------------------- # Look for some non-posix, but commonly provided functions # ---------------------------------------------------------------------------- # mkstemp() is a better replacement for mktemp() for ac_func in mkstemp do : ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" if test "x$ac_cv_func_mkstemp" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MKSTEMP 1 _ACEOF fi done if test "$ac_cv_func_mkstemp" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkstemp needs a declaration" >&5 $as_echo_n "checking whether mkstemp needs a declaration... " >&6; } if ${pac_cv_func_decl_mkstemp+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include void (*fptr)(void) = (void(*)(void))mkstemp; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_func_decl_mkstemp=no else pac_cv_func_decl_mkstemp=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_mkstemp" >&5 $as_echo "$pac_cv_func_decl_mkstemp" >&6; } if test "$pac_cv_func_decl_mkstemp" = "yes" ; then cat >>confdefs.h <<_ACEOF #define NEEDS_MKSTEMP_DECL 1 _ACEOF fi fi # putenv() sets environment variable for ac_func in putenv do : ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" if test "x$ac_cv_func_putenv" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PUTENV 1 _ACEOF fi done if test "$ac_cv_func_putenv" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv needs a declaration" >&5 $as_echo_n "checking whether putenv needs a declaration... " >&6; } if ${pac_cv_func_decl_putenv+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include void (*fptr)(void) = (void(*)(void))putenv; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_func_decl_putenv=no else pac_cv_func_decl_putenv=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_putenv" >&5 $as_echo "$pac_cv_func_decl_putenv" >&6; } if test "$pac_cv_func_decl_putenv" = "yes" ; then cat >>confdefs.h <<_ACEOF #define NEEDS_PUTENV_DECL 1 _ACEOF fi fi # ---------------------------------------------------------------------------- # Setup other replaceable values if test "$NEEDSPLIB" = "yes" ; then LPMPILIBNAME="-l${PMPILIBNAME}" fi # Note that aint_size must be used instead of void_p where the desired check # is on the size of MPI_Aint aint_size=$ac_cv_sizeof_void_p if test "$with_aint_size" -gt 0 ; then aint_size=$with_aint_size if test "$aint_size" != "$ac_cv_sizeof_void_p" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Overriding MPI_Aint to be $aint_size bytes" >&5 $as_echo "Overriding MPI_Aint to be $aint_size bytes" >&6; } fi fi MPI_AINT=int for type in int long long_long short ; do eval len=\$ac_cv_sizeof_$type if test "$len" = "$aint_size" ; then MPI_AINT=`echo $type | sed -e 's/_/ /'` # Make the sizeof AINT available to other configures MPI_SIZEOF_AINT=$len export MPI_SIZEOF_AINT case $type in int) MPI_AINT_FMT_DEC_SPEC="%d" MPI_AINT_FMT_HEX_SPEC="%x" MPIR_AINT_MAX="INT_MAX" ;; long) MPI_AINT_FMT_DEC_SPEC="%ld" MPI_AINT_FMT_HEX_SPEC="%lx" MPIR_AINT_MAX="LONG_MAX" ;; long_long) MPI_AINT_FMT_DEC_SPEC="%lld" MPI_AINT_FMT_HEX_SPEC="%llx" # tt#1776: if LLONG_MAX is missing, we fix it up in C, b/c it's # easier there. See mpiiimpl.h. MPIR_AINT_MAX="LLONG_MAX" ;; short) MPI_AINT_FMT_DEC_SPEC="%hd" MPI_AINT_FMT_HEX_SPEC="%hx" MPIR_AINT_MAX="SHRT_MAX" ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to determine format specifiers for MPI_Aint, defaulting to int" >&5 $as_echo "$as_me: WARNING: unable to determine format specifiers for MPI_Aint, defaulting to int" >&2;} MPI_AINT_FMT_DEC_SPEC="%d" MPI_AINT_FMT_HEX_SPEC="%x" MPIR_AINT_MAX="INT_MAX" ;; esac export MPI_AINT_FMT_DEC_SPEC MPI_AINT_FMT_HEX_SPEC break fi done cat >>confdefs.h <<_ACEOF #define MPIR_AINT_MAX $MPIR_AINT_MAX _ACEOF # If sizeof(mpi_aint) = sizeof(int), set this value if test "$ac_cv_sizeof_int" = "$aint_size" ; then $as_echo "#define SIZEOF_INT_IS_AINT 1" >>confdefs.h fi # If sizeof(mpi_aint) = sizeof(int), set this value if test "$ac_cv_sizeof_void_p" = "$aint_size" ; then $as_echo "#define SIZEOF_PTR_IS_AINT 1" >>confdefs.h fi # ---------------------------------------------------------------------------- # MPI_AINT datatype # ---------------------------------------------------------------------------- # Must be done after MPI_Aint type determination but before subconfigures. # convert to 2-char hex size case "$MPI_SIZEOF_AINT" in 4) len_mpi_aint=04 ;; 8) len_mpi_aint=08 ;; 16) len_mpi_aint=10 ;; *) as_fn_error $? "Unable to convert MPI_SIZEOF_AINT to a hex string. This is either because we are building on a very strange platform or there is a bug somewhere in configure." "$LINENO" 5 ;; esac # MPI_AINT and MPI_OFFSET are already taken, appending a _DATATYPE suffix MPI_AINT_DATATYPE=0x4c00${len_mpi_aint}43 export MPI_AINT_DATATYPE # 0x4c000043 is 1275068483 in decimal, add ($MPI_SIZEOF_AINT * 256) and you get # the decimal equivalent of the hex number MPI_F77_AINT=`expr 1275068483 '+' '(' 256 '*' $MPI_SIZEOF_AINT ')'` export MPI_F77_AINT # ---------------------------------------------------------------------------- if test "$ac_cv_sizeof_void_p" -lt "$aint_size" ; then $as_echo "#define USE_AINT_FOR_ATTRVAL 1" >>confdefs.h fi # with MPI_AINT defined, now we can # Get the size for the bsendoverhead # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of MPII_Bsend_data_t" >&5 $as_echo_n "checking size of MPII_Bsend_data_t... " >&6; } if ${ac_cv_sizeof_MPII_Bsend_data_t+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (MPII_Bsend_data_t))" "ac_cv_sizeof_MPII_Bsend_data_t" " #define MPI_Datatype int typedef $MPI_AINT MPI_Aint; #ifdef HAVE_STDLIB_H #include #endif #ifdef HAVE_STDINT_H #include #endif #include \"${master_top_srcdir}/src/include/mpii_bsend.h\" "; then : else if test "$ac_cv_type_MPII_Bsend_data_t" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (MPII_Bsend_data_t) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_MPII_Bsend_data_t=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_MPII_Bsend_data_t" >&5 $as_echo "$ac_cv_sizeof_MPII_Bsend_data_t" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_MPII_BSEND_DATA_T $ac_cv_sizeof_MPII_Bsend_data_t _ACEOF if test "$ac_cv_sizeof_MPII_Bsend_data_t" = "0" ; then as_fn_error $? "Unable to determine the size of MPI_BSEND_OVERHEAD" "$LINENO" 5 # In the past, a default of 128 was used (still likely good enough), # but the autoconf SIZEOF macro has been changed to ignore the second # argument, so code that depended on the prior defined behavior now # silently breaks. fi BSEND_OVERHEAD=$ac_cv_sizeof_MPII_Bsend_data_t export BSEND_OVERHEAD # Check for the Linux functions for controlling processor affinity. # LINUX: sched_setaffinity # AIX: bindprocessor # OSX (Leopard): thread_policy_set for ac_func in sched_setaffinity sched_getaffinity bindprocessor thread_policy_set do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "$ac_cv_func_sched_setaffinity" = "yes" ; then # Test for the cpu process set type { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cpu_set_t available" >&5 $as_echo_n "checking whether cpu_set_t available... " >&6; } if ${pac_cv_have_cpu_set_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { cpu_set_t t; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_cpu_set_t=yes else pac_cv_have_cpu_set_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_cpu_set_t" >&5 $as_echo "$pac_cv_have_cpu_set_t" >&6; } if test "$pac_cv_have_cpu_set_t" = yes ; then $as_echo "#define HAVE_CPU_SET_T 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the CPU_SET and CPU_ZERO macros are defined" >&5 $as_echo_n "checking whether the CPU_SET and CPU_ZERO macros are defined... " >&6; } if ${pac_cv_cpu_set_defined+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { cpu_set_t t; CPU_ZERO(&t); CPU_SET(1,&t); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_cv_cpu_set_defined=yes else pac_cv_cpu_set_defined=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_cpu_set_defined" >&5 $as_echo "$pac_cv_cpu_set_defined" >&6; } if test "$pac_cv_cpu_set_defined" = "yes" ; then $as_echo "#define HAVE_CPU_SET_MACROS 1" >>confdefs.h fi # FIXME: Some versions of sched_setaffinity return ENOSYS (!), # so we should test for the unfriendly and useless behavior fi fi if test "$ac_cv_func_thread_policy_set" = yes ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether thread affinity macros defined" >&5 $as_echo_n "checking whether thread affinity macros defined... " >&6; } if ${pac_cv_have_thread_affinity_policy+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if !defined(THREAD_AFFINITY_POLICY) || !defined(THREAD_AFFINITY_TAG_NULL) :'thread macros not defined ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_thread_affinity_policy=yes else pac_cv_have_thread_affinity_policy=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_thread_affinity_policy" >&5 $as_echo "$pac_cv_have_thread_affinity_policy" >&6; } if test "$pac_cv_have_thread_affinity_policy" = yes ; then $as_echo "#define HAVE_OSX_THREAD_AFFINITY 1" >>confdefs.h fi fi # ----------------------------------------------------------------------------- # End of thread configure # ----------------------------------------------------------------------------- # Checkpointing # Check whether --enable-checkpointing was given. if test "${enable_checkpointing+set}" = set; then : enableval=$enable_checkpointing; if test "$enableval" != "no" ; then # Check whether --with-blcr was given. if test "${with_blcr+set}" = set; then : withval=$with_blcr; else with_blcr= fi # Check whether --with-blcr-include was given. if test "${with_blcr_include+set}" = set; then : withval=$with_blcr_include; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-blcr-include=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-blcr-include=PATH expects a valid PATH" >&2;} with_blcr_include="" ;; #( *) : ;; esac fi # Check whether --with-blcr-lib was given. if test "${with_blcr_lib+set}" = set; then : withval=$with_blcr_lib; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-blcr-lib=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-blcr-lib=PATH expects a valid PATH" >&2;} with_blcr_lib="" ;; #( *) : ;; esac fi # The args have been sanitized into empty/non-empty values above. # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options # taking priority if test -n "${with_blcr_include}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_blcr_include}\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_blcr_include}', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_blcr_include}', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_blcr_include}" fi else if test -n "${with_blcr}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_blcr}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_blcr}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_blcr}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_blcr}/include" fi fi fi if test -n "${with_blcr_lib}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_blcr_lib}\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_blcr_lib}', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_blcr_lib}', appending" >&5 LDFLAGS="$LDFLAGS -L${with_blcr_lib}" fi else if test -n "${with_blcr}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_blcr}/lib\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_blcr}/lib', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_blcr}/lib', appending" >&5 LDFLAGS="$LDFLAGS -L${with_blcr}/lib" fi if test -d "${with_blcr}/lib64"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_blcr}/lib64\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_blcr}/lib64', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_blcr}/lib64', appending" >&5 LDFLAGS="$LDFLAGS -L${with_blcr}/lib64" fi fi fi fi if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` failure=no ac_fn_c_check_header_mongrel "$LINENO" "libcr.h" "ac_cv_header_libcr_h" "$ac_includes_default" if test "x$ac_cv_header_libcr_h" = xyes; then : else failure=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cr_init in -lcr" >&5 $as_echo_n "checking for cr_init in -lcr... " >&6; } if ${ac_cv_lib_cr_cr_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcr $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char cr_init (); int main () { return cr_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_cr_cr_init=yes else ac_cv_lib_cr_cr_init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cr_cr_init" >&5 $as_echo "$ac_cv_lib_cr_cr_init" >&6; } if test "x$ac_cv_lib_cr_cr_init" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBCR 1 _ACEOF LIBS="-lcr $LIBS" else failure=yes fi if test "$failure" = "no" ; then success=yes else success=no fi if test "$success" = "no" ; then as_fn_error $? "'libcr.h or libcr library not found. Did you specify --with-blcr= or --with-blcr-include= or --with-blcr-lib=?'" "$LINENO" 5 fi if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lcr\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lcr', not appending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lcr', appending" >&5 WRAPPER_LIBS="$WRAPPER_LIBS -lcr" fi pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" $as_echo "#define ENABLE_CHECKPOINTING 1" >>confdefs.h fi fi # Update the cache first with the results of the previous configure steps # We don't use the subdir cache because ensuring that the cache is consistant # with the way in which configure wishes to use it is very difficult and # too prone to error. # ----------------------------------------------------------------------------- # experiment with creating a cache file #if test "$CONF_USE_CACHEFILE" = yes ; then # basecachefile=`pwd`/cache.base # set | grep ac_cv > $basecachefile # # Tell other configures to load this file # echo "Creating and exporting the base cache file $basecachefile" # CONF_BASE_CACHEFILE=$basecachefile # export CONF_BASE_CACHEFILE #fi # Check whether --enable-base-cache was given. if test "${enable_base_cache+set}" = set; then : enableval=$enable_base_cache; else enable_base_cache=default fi # The default case is controlled by the environment variable CONF_USE_CACHEFILE if test "$enable_base_cache" = "default" ; then if test "$CONF_USE_CACHEFILE" = yes ; then enable_base_cache=yes else enable_base_cache=no fi fi if test "$enable_base_cache" != no ; then if test "$enable_base_cache" = yes ; then basecachefile=`pwd`/cache.base else basecachefile=`pwd`/$enable_base_cache fi set | grep ac_cv > $basecachefile # Tell other configures to load this file echo "Creating and exporting the base cache file $basecachefile" CONF_BASE_CACHEFILE=$basecachefile export CONF_BASE_CACHEFILE fi # ----------------------------------------------------------------------------- # # Configure the device second. This way, any libraries or variables that # it needs can be extracted before building the other subsystems (this is # particularly important for the bindings, which may need to know the # libraries in order to create the compilation scripts) user_specified_atomic_primitives=no if test "$DEBUG_SUBDIR_CACHE" = yes ; then set -x fi GNULIB__EXIT=0; GNULIB_ATOLL=0; GNULIB_CALLOC_POSIX=0; GNULIB_CANONICALIZE_FILE_NAME=0; GNULIB_GETLOADAVG=0; GNULIB_GETSUBOPT=0; GNULIB_GRANTPT=0; GNULIB_MALLOC_POSIX=0; GNULIB_MBTOWC=0; GNULIB_MKDTEMP=0; GNULIB_MKOSTEMP=0; GNULIB_MKOSTEMPS=0; GNULIB_MKSTEMP=0; GNULIB_MKSTEMPS=0; GNULIB_POSIX_OPENPT=0; GNULIB_PTSNAME=0; GNULIB_PTSNAME_R=0; GNULIB_PUTENV=0; GNULIB_QSORT_R=0; GNULIB_RANDOM=0; GNULIB_RANDOM_R=0; GNULIB_REALLOC_POSIX=0; GNULIB_REALPATH=0; GNULIB_RPMATCH=0; GNULIB_SECURE_GETENV=0; GNULIB_SETENV=0; GNULIB_STRTOD=0; GNULIB_STRTOLL=0; GNULIB_STRTOULL=0; GNULIB_SYSTEM_POSIX=0; GNULIB_UNLOCKPT=0; GNULIB_UNSETENV=0; GNULIB_WCTOMB=0; HAVE__EXIT=1; HAVE_ATOLL=1; HAVE_CANONICALIZE_FILE_NAME=1; HAVE_DECL_GETLOADAVG=1; HAVE_GETSUBOPT=1; HAVE_GRANTPT=1; HAVE_MKDTEMP=1; HAVE_MKOSTEMP=1; HAVE_MKOSTEMPS=1; HAVE_MKSTEMP=1; HAVE_MKSTEMPS=1; HAVE_POSIX_OPENPT=1; HAVE_PTSNAME=1; HAVE_PTSNAME_R=1; HAVE_RANDOM=1; HAVE_RANDOM_H=1; HAVE_RANDOM_R=1; HAVE_REALPATH=1; HAVE_RPMATCH=1; HAVE_SECURE_GETENV=1; HAVE_SETENV=1; HAVE_DECL_SETENV=1; HAVE_STRTOD=1; HAVE_STRTOLL=1; HAVE_STRTOULL=1; HAVE_STRUCT_RANDOM_DATA=1; HAVE_SYS_LOADAVG_H=0; HAVE_UNLOCKPT=1; HAVE_DECL_UNSETENV=1; REPLACE_CALLOC=0; REPLACE_CANONICALIZE_FILE_NAME=0; REPLACE_MALLOC=0; REPLACE_MBTOWC=0; REPLACE_MKSTEMP=0; REPLACE_PTSNAME=0; REPLACE_PTSNAME_R=0; REPLACE_PUTENV=0; REPLACE_QSORT_R=0; REPLACE_RANDOM_R=0; REPLACE_REALLOC=0; REPLACE_REALPATH=0; REPLACE_SETENV=0; REPLACE_STRTOD=0; REPLACE_UNSETENV=0; REPLACE_WCTOMB=0; ## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch4 if test -z "$BUILD_CH4_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR CH4 DEVICE" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR CH4 DEVICE" >&6;} # Check whether --with-ch4-rank-bits was given. if test "${with_ch4_rank_bits+set}" = set; then : withval=$with_ch4_rank_bits; rankbits=$withval else rankbits=32 fi if test "$rankbits" != "16" -a "$rankbits" != "32" ; then as_fn_error $? "Only 16 or 32-bit ranks are supported" "$LINENO" 5 fi cat >>confdefs.h <<_ACEOF #define CH4_RANK_BITS $rankbits _ACEOF # Check whether --enable-ch4r-per-comm-msg-queue was given. if test "${enable_ch4r_per_comm_msg_queue+set}" = set; then : enableval=$enable_ch4r_per_comm_msg_queue; else enable_ch4r_per_comm_msg_queue=yes fi if test "$enable_ch4r_per_comm_msg_queue" = "yes" ; then $as_echo "#define MPIDI_CH4U_USE_PER_COMM_QUEUE 1" >>confdefs.h fi # Check whether --enable-ch4-mt was given. if test "${enable_ch4_mt+set}" = set; then : enableval=$enable_ch4_mt; else enable_ch4_mt=direct fi case $enable_ch4_mt in direct) $as_echo "#define MPIDI_CH4_USE_MT_DIRECT 1" >>confdefs.h ;; handoff) $as_echo "#define MPIDI_CH4_USE_MT_HANDOFF 1" >>confdefs.h ;; trylock) $as_echo "#define MPIDI_CH4_USE_MT_TRYLOCK 1" >>confdefs.h ;; runtime) $as_echo "#define MPIDI_CH4_USE_MT_RUNTIME 1" >>confdefs.h ;; *) as_fn_error $? "Multi-threading model ${enable_ch4_mt} is unknown" "$LINENO" 5 ;; esac # # Dependency checks for CH4 MT modes # Currently, "handoff", "trylock", and "runtime" require the followings: # - izem linked in (--with-zm-prefix) # - enable-thread-cs=per-vni # if test "$enable_ch4_mt" != "direct"; then if test "${with_zm_prefix}" == "no" -o "${with_zm_prefix}" == "none" -o "${izem_queue}" != "yes" ; then as_fn_error $? "Multi-threading model \`${enable_ch4_mt}\` requires izem queue. Set \`--enable-izem={queue|all} --with-zm-prefix\` and retry." "$LINENO" 5 elif test "${enable_thread_cs}" != "per-vni" -a "${enable_thread_cs}" != "per_vni"; then as_fn_error $? "Multi-threading model \`${enable_ch4_mt}\` requires \`--enable-thread-cs=per-vni\`." "$LINENO" 5 fi fi for ac_header in sys/mman.h sys/stat.h fcntl.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" if test "x$ac_cv_func_mmap" = xyes; then : else as_fn_error $? "mmap is required to build CH4" "$LINENO" 5 fi for ac_header in random.h do : ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default " if test "x$ac_cv_header_random_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RANDOM_H 1 _ACEOF fi done if test $ac_cv_header_random_h = no; then HAVE_RANDOM_H=0 fi ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include #if HAVE_RANDOM_H # include #endif " if test "x$ac_cv_type_struct_random_data" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_RANDOM_DATA 1 _ACEOF else HAVE_STRUCT_RANDOM_DATA=0 fi case "$host_os" in aix* | osf*) REPLACE_RANDOM_R=1 ;; *) for ac_func in random_r do : ac_fn_c_check_func "$LINENO" "random_r" "ac_cv_func_random_r" if test "x$ac_cv_func_random_r" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RANDOM_R 1 _ACEOF fi done if test $ac_cv_func_random_r = no; then HAVE_RANDOM_R=0 fi ;; esac if test "$HAVE_RANDOM_R" = "1" -a "$HAVE_STRUCT_RANDOM_DATA" = "1" ; then $as_echo "#define USE_SYM_HEAP 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: Using a symmetric heap" >&5 $as_echo "$as_me: Using a symmetric heap" >&6;} else { $as_echo "$as_me:${as_lineno-$LINENO}: Using a non-symmetric heap" >&5 $as_echo "$as_me: Using a non-symmetric heap" >&6;} fi for ac_func in gethostname do : ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" if test "x$ac_cv_func_gethostname" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GETHOSTNAME 1 _ACEOF fi done if test "$ac_cv_func_gethostname" = "yes" ; then # Do we need to declare gethostname? { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostname needs a declaration" >&5 $as_echo_n "checking whether gethostname needs a declaration... " >&6; } if ${pac_cv_func_decl_gethostname+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include void (*fptr)(void) = (void(*)(void))gethostname; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_func_decl_gethostname=no else pac_cv_func_decl_gethostname=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_gethostname" >&5 $as_echo "$pac_cv_func_decl_gethostname" >&6; } if test "$pac_cv_func_decl_gethostname" = "yes" ; then cat >>confdefs.h <<_ACEOF #define NEEDS_GETHOSTNAME_DECL 1 _ACEOF fi fi # make sure we support signal for ac_header in signal.h do : ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" if test "x$ac_cv_header_signal_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SIGNAL_H 1 _ACEOF fi done for ac_func in signal do : ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal" if test "x$ac_cv_func_signal" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SIGNAL 1 _ACEOF fi done ac_config_files="$ac_config_files src/mpid/ch4/src/mpid_ch4_net_array.c src/mpid/ch4/include/netmodpre.h src/mpid/ch4/include/coll_algo_params.h src/mpid/ch4/src/ch4_coll_globals_default.c" fi if test -e "$srcdir/src/mpid/ch4/src/ch4_coll_globals.c"; then BUILD_CH4_COLL_TUNING_TRUE= BUILD_CH4_COLL_TUNING_FALSE='#' else BUILD_CH4_COLL_TUNING_TRUE='#' BUILD_CH4_COLL_TUNING_FALSE= fi ## end expansion of PAC_SUBCFG_BODY_src_mpid_ch4 ## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch4_netmod_ucx if test -z "$BUILD_CH4_NETMOD_UCX_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch4:ucx" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR ch4:ucx" >&6;} ucxdir="" ucxlib="" ucx_embedded="" if test "${with_ucx}" = "embedded" ; then ucx_embedded="yes" elif test -z ${with_ucx} ; then if test -f ${use_top_srcdir}/src/mpid/ch4/netmod/ucx/ucx/configure ; then ucx_embedded="yes" else ucx_embedded="no" # Check whether --with-ucx was given. if test "${with_ucx+set}" = set; then : withval=$with_ucx; else with_ucx= fi # Check whether --with-ucx-include was given. if test "${with_ucx_include+set}" = set; then : withval=$with_ucx_include; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ucx-include=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-ucx-include=PATH expects a valid PATH" >&2;} with_ucx_include="" ;; #( *) : ;; esac fi # Check whether --with-ucx-lib was given. if test "${with_ucx_lib+set}" = set; then : withval=$with_ucx_lib; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ucx-lib=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-ucx-lib=PATH expects a valid PATH" >&2;} with_ucx_lib="" ;; #( *) : ;; esac fi # The args have been sanitized into empty/non-empty values above. # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options # taking priority if test -n "${with_ucx_include}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_ucx_include}\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ucx_include}', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ucx_include}', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_ucx_include}" fi else if test -n "${with_ucx}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_ucx}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ucx}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ucx}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_ucx}/include" fi fi fi if test -n "${with_ucx_lib}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ucx_lib}\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ucx_lib}', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ucx_lib}', appending" >&5 LDFLAGS="$LDFLAGS -L${with_ucx_lib}" fi else if test -n "${with_ucx}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ucx}/lib\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ucx}/lib', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ucx}/lib', appending" >&5 LDFLAGS="$LDFLAGS -L${with_ucx}/lib" fi if test -d "${with_ucx}/lib64"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ucx}/lib64\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ucx}/lib64', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ucx}/lib64', appending" >&5 LDFLAGS="$LDFLAGS -L${with_ucx}/lib64" fi fi fi fi fi else ucx_embedded="no" # Check whether --with-ucx was given. if test "${with_ucx+set}" = set; then : withval=$with_ucx; else with_ucx= fi # Check whether --with-ucx-include was given. if test "${with_ucx_include+set}" = set; then : withval=$with_ucx_include; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ucx-include=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-ucx-include=PATH expects a valid PATH" >&2;} with_ucx_include="" ;; #( *) : ;; esac fi # Check whether --with-ucx-lib was given. if test "${with_ucx_lib+set}" = set; then : withval=$with_ucx_lib; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ucx-lib=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-ucx-lib=PATH expects a valid PATH" >&2;} with_ucx_lib="" ;; #( *) : ;; esac fi # The args have been sanitized into empty/non-empty values above. # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options # taking priority if test -n "${with_ucx_include}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_ucx_include}\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ucx_include}', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ucx_include}', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_ucx_include}" fi else if test -n "${with_ucx}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_ucx}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ucx}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ucx}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_ucx}/include" fi fi fi if test -n "${with_ucx_lib}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ucx_lib}\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ucx_lib}', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ucx_lib}', appending" >&5 LDFLAGS="$LDFLAGS -L${with_ucx_lib}" fi else if test -n "${with_ucx}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ucx}/lib\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ucx}/lib', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ucx}/lib', appending" >&5 LDFLAGS="$LDFLAGS -L${with_ucx}/lib" fi if test -d "${with_ucx}/lib64"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ucx}/lib64\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ucx}/lib64', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ucx}/lib64', appending" >&5 LDFLAGS="$LDFLAGS -L${with_ucx}/lib64" fi fi fi fi fi if test "${ucx_embedded}" = "yes" ; then if test -z "${pac_save_CPPFLAGS_nesting}" ; then pac_save_CPPFLAGS_nesting=0 fi eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}='"$CPPFLAGS"' pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} + 1` pac_dir="src/mpid/ch4/netmod/ucx/ucx" { $as_echo "$as_me:${as_lineno-$LINENO}: ===== configuring src/mpid/ch4/netmod/ucx/ucx =====" >&5 $as_echo "$as_me: ===== configuring src/mpid/ch4/netmod/ucx/ucx =====" >&6;} pac_abs_srcdir=`(cd $srcdir && pwd)` if test -f $pac_abs_srcdir/src/mpid/ch4/netmod/ucx/ucx/setup ; then { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/src/mpid/ch4/netmod/ucx/ucx/setup" >&5 $as_echo "$as_me: sourcing $pac_abs_srcdir/src/mpid/ch4/netmod/ucx/ucx/setup" >&6;} . $pac_abs_srcdir/src/mpid/ch4/netmod/ucx/ucx/setup fi # Adapted for MPICH from the autoconf-2.67 implementation of # AC_CONFIG_SUBDIRS. Search for "MPICH note:" for relevant commentary and # local modifications. # Remove --cache-file, --srcdir, and --disable-option-checking arguments # so they do not pile up. Otherwise relative paths (like --srcdir=.. from # make distcheck) will be incorrect. pac_sub_configure_args="--disable-static --enable-embedded" pac_prev= eval "set x $ac_configure_args" shift for pac_arg do if test -n "$pac_prev"; then pac_prev= continue fi case $pac_arg in -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) pac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | --c=*) ;; --config-cache | -C) ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) pac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) pac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ;; --disable-option-checking) ;; *) # MPICH note: this is a more robust version of the "precious # variable" propagation code that was present in the previous # incarnation of this macro for pac_pvar in $ac_precious_vars ; do # check if configure argument token contains the # precious variable, i.e. "name_of_prec_var=". if ( echo $pac_arg | grep "^$pac_pvar=" >/dev/null 2>&1 ) ; then # check if current precious variable is set in env eval pvar_set=\${$pac_pvar+set} if test "$pvar_set" = "set" ; then # Append 'name_of_prec_var=value_of_prec_var' # to the subconfigure arguments list, where # value_of_prec_var is fetched from the env. # this also overrides any value set on the command line eval pac_pval=\${$pac_pvar} pac_arg="$pac_pvar=$pac_pval" break fi fi done case $pac_arg in *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append pac_sub_configure_args " '$pac_arg'" ;; esac done # Always prepend --prefix to ensure using the same prefix # in subdir configurations. # MPICH note: see tt#983 for an example of why this is necessary pac_arg="--prefix=$prefix" case $pac_arg in *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac pac_sub_configure_args="'$pac_arg' $pac_sub_configure_args" # Pass --silent if test "$silent" = yes; then pac_sub_configure_args="--silent $pac_sub_configure_args" fi # Always prepend --disable-option-checking to silence warnings, since # different subdirs can have different --enable and --with options. pac_sub_configure_args="--disable-option-checking $pac_sub_configure_args" pac_popdir=`pwd` # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. test -d "$srcdir/$pac_dir" || continue # MPICH note: modified to remove the internal "_AS_*" macro usage, also # msg is already printed at top as_dir="$pac_dir"; as_fn_mkdir_p # MPICH note: we leave this internal macro reference for now. We can clone # the macro locally if this turns out to be non-portable across several autoconf # versions. It sets the following variables: ac_builddir, # ac_top_builddir_sub, ac_top_build_prefix, ac_srcdir, ac_top_srcdir, # ac_abs_top_builddir, ac_abs_builddir, ac_abs_top_srcdir, ac_abs_srcdir ac_builddir=. case "$pac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$pac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$pac_dir" # Check for guested configure; otherwise get Cygnus style configure. if test -f "$ac_srcdir/configure.gnu"; then pac_sub_configure=$ac_srcdir/configure.gnu elif test -f "$ac_srcdir/configure"; then pac_sub_configure=$ac_srcdir/configure elif test -f "$ac_srcdir/configure.ac"; then # This should be Cygnus configure. pac_sub_configure=$ac_aux_dir/configure else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $pac_dir" >&5 $as_echo "$as_me: WARNING: no configuration information is in $pac_dir" >&2;} pac_sub_configure= fi # The recursion is here. if test -n "$pac_sub_configure"; then # MPICH note: overriding the cache file on purpose to prevent strange # issues resulting from inter-dir caching pac_sub_cache_file="/dev/null" { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&5 $as_echo "$as_me: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. # MPICH note: we want to execute the provided actions, not be silent # or error out if the subconfigure succeeded/failed if eval "\$SHELL \"\$pac_sub_configure\" $pac_sub_configure_args \ --cache-file=\"\$pac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" then # restore the current dir for the provided actions cd "$pac_popdir" else # restore the current dir for the provided actions cd "$pac_popdir" as_fn_error $? "ucx configure failed" "$LINENO" 5 fi fi cd "$pac_popdir" { $as_echo "$as_me:${as_lineno-$LINENO}: ===== done with src/mpid/ch4/netmod/ucx/ucx configure =====" >&5 $as_echo "$as_me: ===== done with src/mpid/ch4/netmod/ucx/ucx configure =====" >&6;} # Check for any localdefs files. These may be created, so we # look in the local directory first. if test -f src/mpid/ch4/netmod/ucx/ucx/localdefs ; then { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing src/mpid/ch4/netmod/ucx/ucx/localdefs" >&5 $as_echo "$as_me: sourcing src/mpid/ch4/netmod/ucx/ucx/localdefs" >&6;} . src/mpid/ch4/netmod/ucx/ucx/localdefs elif test -f $pac_abs_srcdir/src/mpid/ch4/netmod/ucx/ucx/localdefs ; then { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/src/mpid/ch4/netmod/ucx/ucx/localdefs" >&5 $as_echo "$as_me: sourcing $pac_abs_srcdir/src/mpid/ch4/netmod/ucx/ucx/localdefs" >&6;} . $pac_abs_srcdir/src/mpid/ch4/netmod/ucx/ucx/localdefs fi pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} - 1` eval CPPFLAGS="\$pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}" eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}="" if echo "$CPPFLAGS" | $FGREP -e "\<-I${master_top_builddir}/src/mpid/ch4/netmod/ucx/ucx/src\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${master_top_builddir}/src/mpid/ch4/netmod/ucx/ucx/src', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${master_top_builddir}/src/mpid/ch4/netmod/ucx/ucx/src', appending" >&5 CPPFLAGS="$CPPFLAGS -I${master_top_builddir}/src/mpid/ch4/netmod/ucx/ucx/src" fi if echo "$CPPFLAGS" | $FGREP -e "\<-I${use_top_srcdir}/src/mpid/ch4/netmod/ucx/ucx/src\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${use_top_srcdir}/src/mpid/ch4/netmod/ucx/ucx/src', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${use_top_srcdir}/src/mpid/ch4/netmod/ucx/ucx/src', appending" >&5 CPPFLAGS="$CPPFLAGS -I${use_top_srcdir}/src/mpid/ch4/netmod/ucx/ucx/src" fi ucxdir="src/mpid/ch4/netmod/ucx/ucx" ucxlib="src/mpid/ch4/netmod/ucx/ucx/src/ucp/libucp.la" else if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` failure=no ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default" if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then : else failure=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucp_config_read in -lucp" >&5 $as_echo_n "checking for ucp_config_read in -lucp... " >&6; } if ${ac_cv_lib_ucp_ucp_config_read+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lucp $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ucp_config_read (); int main () { return ucp_config_read (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ucp_ucp_config_read=yes else ac_cv_lib_ucp_ucp_config_read=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucp_ucp_config_read" >&5 $as_echo "$ac_cv_lib_ucp_ucp_config_read" >&6; } if test "x$ac_cv_lib_ucp_ucp_config_read" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBUCP 1 _ACEOF LIBS="-lucp $LIBS" else failure=yes fi if test "$failure" = "no" ; then success=yes else success=no fi if test "$success" = "no" ; then as_fn_error $? "'ucp/api/ucp.h or libucp library not found. Did you specify --with-ucx= or --with-ucx-include= or --with-ucx-lib=?'" "$LINENO" 5 fi pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lucp -lucs\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lucp -lucs', not appending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lucp -lucs', appending" >&5 WRAPPER_LIBS="$WRAPPER_LIBS -lucp -lucs" fi fi fi ## end expansion of PAC_SUBCFG_BODY_src_mpid_ch4_netmod_ucx ## begin expansion of PAC_SUBCFG_BODY_src_pm for pm_name in $pm_names ; do case $pm_name in #( hydra) : build_pm_hydra=yes ;; #( hydra2) : build_pm_hydra2=yes ;; #( *) : ;; esac done # we handle these conditionals here in the BODY because they depend on logic in # the main portion of the top-level configure if test "x$build_pm_hydra" = "xyes"; then BUILD_PM_HYDRA_TRUE= BUILD_PM_HYDRA_FALSE='#' else BUILD_PM_HYDRA_TRUE='#' BUILD_PM_HYDRA_FALSE= fi if test "x$build_pm_hydra2" = "xyes"; then BUILD_PM_HYDRA2_TRUE= BUILD_PM_HYDRA2_FALSE='#' else BUILD_PM_HYDRA2_TRUE='#' BUILD_PM_HYDRA2_FALSE= fi # do nothing extra here for now ## end expansion of PAC_SUBCFG_BODY_src_pm ## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch4_shm_stubshm if test -z "$BUILD_SHM_STUBSHM_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch4:shm:stubshm" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR ch4:shm:stubshm" >&6;} fi ## end expansion of PAC_SUBCFG_BODY_src_mpid_ch4_shm_stubshm ## begin expansion of PAC_SUBCFG_BODY_src_binding_fortran_use_mpi if test -z "$BUILD_FC_BINDING_TRUE"; then : # FIXME XXX DJG this code came from a sub-configure in src/binding/fortran/use_mpi. Why # isn't this just all up in the top-level configure? Alternatively, why doesn't # most/all of the f90 configure code from the top level configure.ac live here # instead? Is it because of the c/f77/f90 interplay? { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR F90 CODE" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR F90 CODE" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi # Determine the extension for Fortran 90 files (it isn't always .f90) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extension for Fortran 90 programs" >&5 $as_echo_n "checking for extension for Fortran 90 programs... " >&6; } ac_fc_srcext="f90" ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: f90" >&5 $as_echo "f90" >&6; } else ac_fc_srcext="f" cat > conftest.$ac_ext <<_ACEOF program main end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: f" >&5 $as_echo "f" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown!" >&5 $as_echo "unknown!" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu FCEXT=$ac_fc_srcext # Determine the precision and range of the standard Fortran types. This # isn't quite enough for a full implementation of the Type_create_f90_xxx # routines, but will handle most programs. We can extend this by trying to # find (through selected_real_kind and selected_int_kind) types with larger or # smaller precisions and/or ranges than the basic types. pac_msg="the precision and range of reals" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pac_msg" >&5 $as_echo_n "checking for $pac_msg... " >&6; } ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu rm -f pac_fconftest.out if test "$cross_compiling" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSS_F90_REAL_MODEL" >&5 $as_echo "$CROSS_F90_REAL_MODEL" >&6; } FC_REAL_MODEL=$CROSS_F90_REAL_MODEL else cat > conftest.$ac_ext <<_ACEOF program main real aa open(8, file="pac_fconftest.out", form="formatted") write(8,*) precision(aa), ",", range(aa) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : if test -s pac_fconftest.out ; then pac_fc_num_model="`sed -e 's/ */ /g' pac_fconftest.out`" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_fc_num_model" >&5 $as_echo "$pac_fc_num_model" >&6; } FC_REAL_MODEL=$pac_fc_num_model else { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error" >&5 $as_echo "Error" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No output from test program!" >&5 $as_echo "$as_me: WARNING: No output from test program!" >&2;} fi rm -f pac_fconftest.out else { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error" >&5 $as_echo "Error" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to run program to determine $pac_msg" >&5 $as_echo "$as_me: WARNING: Failed to run program to determine $pac_msg" >&2;} fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # pac_msg="the precision and range of double precision" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pac_msg" >&5 $as_echo_n "checking for $pac_msg... " >&6; } ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu rm -f pac_fconftest.out if test "$cross_compiling" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSS_F90_DOUBLE_MODEL" >&5 $as_echo "$CROSS_F90_DOUBLE_MODEL" >&6; } FC_DOUBLE_MODEL=$CROSS_F90_DOUBLE_MODEL else cat > conftest.$ac_ext <<_ACEOF program main double precision aa open(8, file="pac_fconftest.out", form="formatted") write(8,*) precision(aa), ",", range(aa) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : if test -s pac_fconftest.out ; then pac_fc_num_model="`sed -e 's/ */ /g' pac_fconftest.out`" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_fc_num_model" >&5 $as_echo "$pac_fc_num_model" >&6; } FC_DOUBLE_MODEL=$pac_fc_num_model else { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error" >&5 $as_echo "Error" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No output from test program!" >&5 $as_echo "$as_me: WARNING: No output from test program!" >&2;} fi rm -f pac_fconftest.out else { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error" >&5 $as_echo "Error" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to run program to determine $pac_msg" >&5 $as_echo "$as_me: WARNING: Failed to run program to determine $pac_msg" >&2;} fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # pac_msg="the range of integer" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pac_msg" >&5 $as_echo_n "checking for $pac_msg... " >&6; } ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu rm -f pac_fconftest.out if test "$cross_compiling" = yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSS_F90_INTEGER_MODEL" >&5 $as_echo "$CROSS_F90_INTEGER_MODEL" >&6; } FC_INTEGER_MODEL=$CROSS_F90_INTEGER_MODEL else cat > conftest.$ac_ext <<_ACEOF program main integer aa open(8, file="pac_fconftest.out", form="formatted") write(8,*) range(aa) close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : if test -s pac_fconftest.out ; then pac_fc_num_model="`sed -e 's/ */ /g' pac_fconftest.out`" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_fc_num_model" >&5 $as_echo "$pac_fc_num_model" >&6; } FC_INTEGER_MODEL=$pac_fc_num_model else { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error" >&5 $as_echo "Error" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No output from test program!" >&5 $as_echo "$as_me: WARNING: No output from test program!" >&2;} fi rm -f pac_fconftest.out else { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error" >&5 $as_echo "Error" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to run program to determine $pac_msg" >&5 $as_echo "$as_me: WARNING: Failed to run program to determine $pac_msg" >&2;} fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Try to find the available integer kinds by using selected_int_kind # This produces a table of range,kind { $as_echo "$as_me:${as_lineno-$LINENO}: checking for available integer kinds" >&5 $as_echo_n "checking for available integer kinds... " >&6; } ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu rm -f pac_fconftest.out if test "$cross_compiling" = yes; then : pac_validKinds="`echo \"$CROSS_F90_ALL_INTEGER_MODELS\" | tr ',' ':'`" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSS_F90_ALL_INTEGER_MODELS" >&5 $as_echo "$CROSS_F90_ALL_INTEGER_MODELS" >&6; } FC_ALL_INTEGER_MODELS=$CROSS_F90_ALL_INTEGER_MODELS else cat > conftest.$ac_ext <<_ACEOF program main integer r, lastkind lastkind=selected_int_kind(1) open(8, file="pac_fconftest.out", form="formatted") do r=2,30 k = selected_int_kind(r) if (k .ne. lastkind) then write(8,*) r-1, ",", lastkind lastkind = k endif if (k .le. 0) then exit endif enddo if (k.ne.lastkind) then write(8,*) 31, ",", k endif close(8) end _ACEOF if ac_fn_fc_try_run "$LINENO"; then : if test -s pac_fconftest.out ; then pac_flag="`sed -e 's/ */ /g' pac_fconftest.out | tr '\012' ','`" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_flag" >&5 $as_echo "$pac_flag" >&6; } pac_validKinds="`sed -e 's/ */ /g' pac_fconftest.out | tr '\012' ':'`" FC_ALL_INTEGER_MODELS=$pac_flag else { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error" >&5 $as_echo "Error" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No output from test program!" >&5 $as_echo "$as_me: WARNING: No output from test program!" >&2;} fi rm -f pac_fconftest.out else { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error" >&5 $as_echo "Error" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to run program to determine available integer models" >&5 $as_echo "$as_me: WARNING: Failed to run program to determine available integer models" >&2;} fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # { $as_echo "$as_me:${as_lineno-$LINENO}: checking for available integer ranges" >&5 $as_echo_n "checking for available integer ranges... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef F77_NAME_UPPER #define cisize_ CISIZE #define isize_ ISIZE #elif defined(F77_NAME_LOWER) || defined(F77_NAME_MIXED) #define cisize_ cisize #define isize_ isize #endif int cisize_(char *,char*); int cisize_(char *i1p, char *i2p) { int isize_val=0; isize_val = (int)(i2p - i1p); return isize_val; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } pac_ccompile_ok=yes else pac_ccompile_ok=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$pac_ccompile_ok" = "yes" ; then saved_LIBS="$LIBS" LIBS="pac_conftest.$OBJEXT $LIBS" saved_IFS=$IFS IFS=: ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu pac_flag="" for rangekind in $pac_validKinds ; do kind="`echo $rangekind | sed -e 's/.*,//'`" range="`echo $rangekind | sed -e 's/,.*//'`" cat > conftest.$ac_ext <<_ACEOF program main integer (kind=$kind) a(2) integer cisize open(8, file="pac_fconftest.out", form="formatted") write(8,*) $range, ",", $kind, ",", cisize( a(1), a(2) ) close(8) end _ACEOF IFS=$saved_IFS rm -f pac_fconftest.out if test "$cross_compiling" = yes; then : pac_flag="$CROSS_F90_INTEGER_MODEL_MAP" else if ac_fn_fc_try_run "$LINENO"; then : if test -s pac_fconftest.out ; then sizes="`sed -e 's/ */ /g' pac_fconftest.out`" pac_flag="$pac_flag { $sizes }," else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No output from test program!" >&5 $as_echo "$as_me: WARNING: No output from test program!" >&2;} fi rm -f pac_fconftest.out else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fortran program fails to build or run!" >&5 $as_echo "$as_me: WARNING: Fortran program fails to build or run!" >&2;} fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam fi IFS=: done IFS=$saved_IFS { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_flag" >&5 $as_echo "$pac_flag" >&6; } FC_INTEGER_MODEL_MAP=$pac_flag ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu LIBS="$saved_LIBS" rm -f pac_conftest.$OBJEXT fi ac_config_files="$ac_config_files src/binding/fortran/use_mpi/mpif90model.h" fi ## end expansion of PAC_SUBCFG_BODY_src_binding_fortran_use_mpi ## begin expansion of PAC_SUBCFG_BODY_src_pm_gforker # the pm_names variable is set by the top level configure build_gforker=no for pm_name in $pm_names ; do if test "X$pm_name" = "Xgforker" ; then build_gforker=yes fi done if test "X$build_gforker" = "Xyes"; then BUILD_PM_GFORKER_TRUE= BUILD_PM_GFORKER_FALSE='#' else BUILD_PM_GFORKER_TRUE='#' BUILD_PM_GFORKER_FALSE= fi # first_pm_name is set by the top level configure if test "X$first_pm_name" = "Xgforker"; then PRIMARY_PM_GFORKER_TRUE= PRIMARY_PM_GFORKER_FALSE='#' else PRIMARY_PM_GFORKER_TRUE='#' PRIMARY_PM_GFORKER_FALSE= fi if test -z "$BUILD_PM_GFORKER_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR src/pm/gforker" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR src/pm/gforker" >&6;} # Check that we are using the simple PMI implementation # (Selecting multiple PMs may require incompatible PMI implementations # (e.g., gforker and SMPD). if test -z "$PM_REQUIRES_PMI" ; then PM_REQUIRES_PMI=simple elif test "$PM_REQUIRES_PMI" != "simple" ; then echo "gforker requires the simple PMI implementation; $PM_REQUIRES_PMI has already been selected" exit 1 fi # tell src/pm/util to configure itself build_pm_util=yes # Check whether --enable-allowport was given. if test "${enable_allowport+set}" = set; then : enableval=$enable_allowport; else enable_allowport=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5 $as_echo_n "checking for library containing socketpair... " >&6; } if ${ac_cv_search_socketpair+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char socketpair (); int main () { return socketpair (); ; return 0; } _ACEOF for ac_lib in '' socket; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_socketpair=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_socketpair+:} false; then : break fi done if ${ac_cv_search_socketpair+:} false; then : else ac_cv_search_socketpair=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5 $as_echo "$ac_cv_search_socketpair" >&6; } ac_res=$ac_cv_search_socketpair if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi for ac_header in sys/types.h signal.h sys/ptrace.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in strsignal do : ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal" if test "x$ac_cv_func_strsignal" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRSIGNAL 1 _ACEOF fi done for ac_func in sigaction signal sigset do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done sigaction_ok=no if test "$ac_cv_func_sigaction" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigaction" >&5 $as_echo_n "checking for struct sigaction... " >&6; } if ${pac_cv_struct_sigaction+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { struct sigaction act; sigaddset( &act.sa_mask, SIGINT ); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_struct_sigaction="yes" else pac_cv_struct_sigaction="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_struct_sigaction" >&5 $as_echo "$pac_cv_struct_sigaction" >&6; } if test "$pac_cv_struct_sigaction" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigaction with _POSIX_SOURCE" >&5 $as_echo_n "checking for struct sigaction with _POSIX_SOURCE... " >&6; } if ${pac_cv_struct_sigaction_needs_posix+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _POSIX_SOURCE #include int main () { struct sigaction act; sigaddset( &act.sa_mask, SIGINT ); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_struct_sigaction_needs_posix="yes" else pac_cv_struct_sigaction_needs_posix="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_struct_sigaction_needs_posix" >&5 $as_echo "$pac_cv_struct_sigaction_needs_posix" >&6; } if test "$pac_cv_struct_sigaction_needs_posix" = "yes" ; then sigaction_ok=yes fi else sigaction_ok=yes fi fi # Decide on the signal handler to use if test "$ac_cv_func_sigaction" = "yes" -a "$sigaction_ok" = "yes" ; then # FIXME DJG: where should this get set? if test "$pac_struct_sigaction_needs_posix" = yes ; then $as_echo "#define NEEDS_POSIX_FOR_SIGACTION 1" >>confdefs.h fi $as_echo "#define USE_SIGACTION 1" >>confdefs.h elif test "$ac_cv_func_signal" = "yes" ; then $as_echo "#define USE_SIGNAL 1" >>confdefs.h fi if test "$enable_allowport" = "yes" ; then $as_echo "#define MPIEXEC_ALLOW_PORT 1" >>confdefs.h fi # some of these may be redundant with the upper level code, although the caching # should detect it and make the performance impact a non-issue for ac_header in string.h sys/time.h unistd.h stdlib.h sys/socket.h wait.h errno.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done fi ## end expansion of PAC_SUBCFG_BODY_src_pm_gforker ## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch4_netmod_portals4 if test -z "$BUILD_CH4_NETMOD_PORTALS4_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch4:portals4" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR ch4:portals4" >&6;} # Check whether --with-portals4 was given. if test "${with_portals4+set}" = set; then : withval=$with_portals4; else with_portals4= fi # Check whether --with-portals4-include was given. if test "${with_portals4_include+set}" = set; then : withval=$with_portals4_include; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-portals4-include=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-portals4-include=PATH expects a valid PATH" >&2;} with_portals4_include="" ;; #( *) : ;; esac fi # Check whether --with-portals4-lib was given. if test "${with_portals4_lib+set}" = set; then : withval=$with_portals4_lib; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-portals4-lib=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-portals4-lib=PATH expects a valid PATH" >&2;} with_portals4_lib="" ;; #( *) : ;; esac fi # The args have been sanitized into empty/non-empty values above. # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options # taking priority if test -n "${with_portals4_include}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_portals4_include}\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_portals4_include}', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_portals4_include}', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_portals4_include}" fi else if test -n "${with_portals4}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_portals4}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_portals4}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_portals4}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_portals4}/include" fi fi fi if test -n "${with_portals4_lib}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_portals4_lib}\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_portals4_lib}', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_portals4_lib}', appending" >&5 LDFLAGS="$LDFLAGS -L${with_portals4_lib}" fi else if test -n "${with_portals4}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_portals4}/lib\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_portals4}/lib', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_portals4}/lib', appending" >&5 LDFLAGS="$LDFLAGS -L${with_portals4}/lib" fi if test -d "${with_portals4}/lib64"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_portals4}/lib64\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_portals4}/lib64', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_portals4}/lib64', appending" >&5 LDFLAGS="$LDFLAGS -L${with_portals4}/lib64" fi fi fi fi if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` failure=no ac_fn_c_check_header_mongrel "$LINENO" "portals4.h" "ac_cv_header_portals4_h" "$ac_includes_default" if test "x$ac_cv_header_portals4_h" = xyes; then : else failure=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PtlInit in -lportals" >&5 $as_echo_n "checking for PtlInit in -lportals... " >&6; } if ${ac_cv_lib_portals_PtlInit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lportals $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char PtlInit (); int main () { return PtlInit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_portals_PtlInit=yes else ac_cv_lib_portals_PtlInit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portals_PtlInit" >&5 $as_echo "$ac_cv_lib_portals_PtlInit" >&6; } if test "x$ac_cv_lib_portals_PtlInit" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBPORTALS 1 _ACEOF LIBS="-lportals $LIBS" else failure=yes fi if test "$failure" = "no" ; then success=yes else success=no fi if test "$success" = "no" ; then as_fn_error $? "'portals4.h or libportals library not found. Did you specify --with-portals4= or --with-portals4-include= or --with-portals4-lib=?'" "$LINENO" 5 fi if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lportals\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lportals', not appending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lportals', appending" >&5 WRAPPER_LIBS="$WRAPPER_LIBS -lportals" fi pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" fi ## end expansion of PAC_SUBCFG_BODY_src_mpid_ch4_netmod_portals4 ## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch4_netmod_stubnm if test -z "$BUILD_CH4_NETMOD_STUBNM_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch4:stubnm" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR ch4:stubnm" >&6;} $as_echo "#define ENABLE_COMM_OVERRIDES 1" >>confdefs.h $as_echo "#define MPIDI_BUILD_CH4_LOCALITY_INFO 1" >>confdefs.h fi ## end expansion of PAC_SUBCFG_BODY_src_mpid_ch4_netmod_stubnm ## begin expansion of PAC_SUBCFG_BODY_src_mpid_common_hcoll # nothing to do ## end expansion of PAC_SUBCFG_BODY_src_mpid_common_hcoll ## begin expansion of PAC_SUBCFG_BODY_src_pm_remshell # the pm_names variable is set by the top level configure build_remshell=no for pm_name in $pm_names ; do if test "X$pm_name" = "Xremshell" ; then build_remshell=yes fi done if test "X$build_remshell" = "Xyes"; then BUILD_PM_REMSHELL_TRUE= BUILD_PM_REMSHELL_FALSE='#' else BUILD_PM_REMSHELL_TRUE='#' BUILD_PM_REMSHELL_FALSE= fi # first_pm_name is set by the top level configure if test "X$first_pm_name" = "Xremshell"; then PRIMARY_PM_REMSHELL_TRUE= PRIMARY_PM_REMSHELL_FALSE='#' else PRIMARY_PM_REMSHELL_TRUE='#' PRIMARY_PM_REMSHELL_FALSE= fi if test -z "$BUILD_PM_REMSHELL_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR src/pm/remshell" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR src/pm/remshell" >&6;} # Check that we are using the simple PMI implementation # (Selecting multiple PMs may require incompatible PMI implementations # (e.g., remshell and SMPD). if test -z "$PM_REQUIRES_PMI" ; then PM_REQUIRES_PMI=simple elif test "$PM_REQUIRES_PMI" != "simple" ; then echo "remshell requires the simple PMI implementation; $PM_REQUIRES_PMI has already been selected" exit 1 fi # tell src/pm/util to configure itself build_pm_util=yes # Check whether --enable-allowport was given. if test "${enable_allowport+set}" = set; then : enableval=$enable_allowport; else enable_allowport=yes fi # Check whether --enable-onsig was given. if test "${enable_onsig+set}" = set; then : enableval=$enable_onsig; else enable_onsig=no fi # Check whether --enable-newsession was given. if test "${enable_newsession+set}" = set; then : enableval=$enable_newsession; else enable_newsession=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5 $as_echo_n "checking for library containing socketpair... " >&6; } if ${ac_cv_search_socketpair+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char socketpair (); int main () { return socketpair (); ; return 0; } _ACEOF for ac_lib in '' socket; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_socketpair=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_socketpair+:} false; then : break fi done if ${ac_cv_search_socketpair+:} false; then : else ac_cv_search_socketpair=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5 $as_echo "$ac_cv_search_socketpair" >&6; } ac_res=$ac_cv_search_socketpair if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi for ac_header in sys/types.h signal.h sys/ptrace.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in strsignal do : ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal" if test "x$ac_cv_func_strsignal" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRSIGNAL 1 _ACEOF fi done for ac_func in sigaction signal sigset do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done sigaction_ok=no if test "$ac_cv_func_sigaction" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigaction" >&5 $as_echo_n "checking for struct sigaction... " >&6; } if ${pac_cv_struct_sigaction+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { struct sigaction act; sigaddset( &act.sa_mask, SIGINT ); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_struct_sigaction="yes" else pac_cv_struct_sigaction="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_struct_sigaction" >&5 $as_echo "$pac_cv_struct_sigaction" >&6; } if test "$pac_cv_struct_sigaction" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigaction with _POSIX_SOURCE" >&5 $as_echo_n "checking for struct sigaction with _POSIX_SOURCE... " >&6; } if ${pac_cv_struct_sigaction_needs_posix+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _POSIX_SOURCE #include int main () { struct sigaction act; sigaddset( &act.sa_mask, SIGINT ); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_struct_sigaction_needs_posix="yes" else pac_cv_struct_sigaction_needs_posix="no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_struct_sigaction_needs_posix" >&5 $as_echo "$pac_cv_struct_sigaction_needs_posix" >&6; } if test "$pac_cv_struct_sigaction_needs_posix" = "yes" ; then sigaction_ok=yes fi else sigaction_ok=yes fi fi # Decide on the signal handler to use if test "$ac_cv_func_sigaction" = "yes" -a "$sigaction_ok" = "yes" ; then # FIXME DJG: where should this get set? if test "$pac_struct_sigaction_needs_posix" = yes ; then $as_echo "#define NEEDS_POSIX_FOR_SIGACTION 1" >>confdefs.h fi $as_echo "#define USE_SIGACTION 1" >>confdefs.h elif test "$ac_cv_func_signal" = "yes" ; then $as_echo "#define USE_SIGNAL 1" >>confdefs.h fi if test "$enable_allowport" = "yes" ; then $as_echo "#define MPIEXEC_ALLOW_PORT 1" >>confdefs.h fi # some of these may be redundant with the upper level code, although the caching # should detect it and make the performance impact a non-issue for ac_header in string.h sys/time.h unistd.h stdlib.h sys/socket.h wait.h errno.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in ptrace do : ac_fn_c_check_func "$LINENO" "ptrace" "ac_cv_func_ptrace" if test "x$ac_cv_func_ptrace" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PTRACE 1 _ACEOF fi done # It isn't enough to find ptrace. We also need the ptrace # parameters, which some systems, such as IRIX, do not define. if test "$ac_cv_func_ptrace" = yes ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrace named parameters" >&5 $as_echo_n "checking for ptrace named parameters... " >&6; } if ${pac_cv_has_ptrace_parms+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { int i = PTRACE_CONT; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_has_ptrace_parms=yes else pac_cv_has_ptrace_parms=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_has_ptrace_parms" >&5 $as_echo "$pac_cv_has_ptrace_parms" >&6; } if test "$pac_cv_has_ptrace_parms" = "yes" ; then $as_echo "#define HAVE_PTRACE_CONT /**/" >>confdefs.h fi fi if test "$enable_newsession" = "yes" ; then $as_echo "#define USE_NEW_SESSION 1" >>confdefs.h fi # Extract the first word of "ssh", so it can be a program name with args. set dummy ssh; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_SSH+:} false; then : $as_echo_n "(cached) " >&6 else case $SSH in [\\/]* | ?:[\\/]*) ac_cv_path_SSH="$SSH" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi SSH=$ac_cv_path_SSH if test -n "$SSH"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH" >&5 $as_echo "$SSH" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "rsh", so it can be a program name with args. set dummy rsh; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_RSH+:} false; then : $as_echo_n "(cached) " >&6 else case $RSH in [\\/]* | ?:[\\/]*) ac_cv_path_RSH="$RSH" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_RSH="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi RSH=$ac_cv_path_RSH if test -n "$RSH"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSH" >&5 $as_echo "$RSH" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$SSH" && test -n "$RSH" ; then remshell="$RSH" else remshell="$SSH" fi cat >>confdefs.h <<_ACEOF #define DEFAULT_MACHINES_PATH "$eval_datadir:." _ACEOF cat >>confdefs.h <<_ACEOF #define DEFAULT_REMOTE_SHELL "$remshell" _ACEOF fi ## end expansion of PAC_SUBCFG_BODY_src_pm_remshell ## begin expansion of PAC_SUBCFG_BODY_src_pm_util if test "X$build_pm_util" = "Xyes"; then BUILD_PM_UTIL_TRUE= BUILD_PM_UTIL_FALSE='#' else BUILD_PM_UTIL_TRUE='#' BUILD_PM_UTIL_FALSE= fi if test -z "$BUILD_PM_UTIL_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR src/pm/util" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR src/pm/util" >&6;} # Check whether --enable-onsig was given. if test "${enable_onsig+set}" = set; then : enableval=$enable_onsig; else enable_onsig=no fi # Check whether --enable-newsession was given. if test "${enable_newsession+set}" = set; then : enableval=$enable_newsession; else enable_newsession=yes fi # Check for types ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" if test "x$ac_cv_type_pid_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define pid_t int _ACEOF fi if test "$enable_onsig" = "yes" ; then for ac_func in ptrace do : ac_fn_c_check_func "$LINENO" "ptrace" "ac_cv_func_ptrace" if test "x$ac_cv_func_ptrace" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PTRACE 1 _ACEOF fi done # It isn't enough to find ptrace. We also need the ptrace # parameters, which some systems, such as IRIX, do not define. if test "$ac_cv_func_ptrace" = yes ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrace named parameters" >&5 $as_echo_n "checking for ptrace named parameters... " >&6; } if ${pac_cv_has_ptrace_parms+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { int i = PTRACE_CONT; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_has_ptrace_parms=yes else pac_cv_has_ptrace_parms=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_has_ptrace_parms" >&5 $as_echo "$pac_cv_has_ptrace_parms" >&6; } if test "$pac_cv_has_ptrace_parms" = "yes" ; then $as_echo "#define HAVE_PTRACE_CONT /**/" >>confdefs.h fi fi fi # Check for the functions needed to create a new session. # Note that getsid may not have a prototype in unistd.h unless # _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED are defined, or # if _XOPEN_SOURCE is defined as an integer 500 or larger (this # for glibc). The prototype should be # pid_t getsid( pid_t pid ); # # Cygwin has setsid but not getsid for ac_func in setsid isatty getsid do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # See if we need to define getsid (in the case that the above XOPEN # definitions have not been made. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getsid needs a declaration" >&5 $as_echo_n "checking whether getsid needs a declaration... " >&6; } if ${pac_cv_func_decl_getsid+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include void (*fptr)(void) = (void(*)(void))getsid; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_func_decl_getsid=no else pac_cv_func_decl_getsid=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_getsid" >&5 $as_echo "$pac_cv_func_decl_getsid" >&6; } if test "$pac_cv_func_decl_getsid" = "yes" ; then cat >>confdefs.h <<_ACEOF #define NEEDS_GETSID_DECL 1 _ACEOF fi if test "$enable_newsession" = "yes" ; then $as_echo "#define USE_NEW_SESSION 1" >>confdefs.h fi # Check for convenient functions for the environment for ac_func in unsetenv do : ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" if test "x$ac_cv_func_unsetenv" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UNSETENV 1 _ACEOF fi done # Check for cygwin1.dll in /bin. If found, define NEEDS_BIN_IN_PATH because # we need to include bin in the path when spawning programs. # This is the simplest possible test; lets hope that it is sufficient { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin1.dll in /bin" >&5 $as_echo_n "checking for cygwin1.dll in /bin... " >&6; } if ${pac_cv_needs_bin_in_path+:} false; then : $as_echo_n "(cached) " >&6 else pac_cv_needs_bin_in_path=no if test /bin/cygwin1.dll ; then pac_cv_needs_bin_in_path=yes fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_needs_bin_in_path" >&5 $as_echo "$pac_cv_needs_bin_in_path" >&6; } if test "$pac_cv_needs_bin_in_path" = yes ; then $as_echo "#define NEEDS_BIN_IN_PATH 1" >>confdefs.h fi # Look for alternatives. Is environ in unistd.h? { $as_echo "$as_me:${as_lineno-$LINENO}: checking for environ in unistd.h" >&5 $as_echo_n "checking for environ in unistd.h... " >&6; } if ${pac_cv_has_environ_in_unistd+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { char **ep = environ; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_has_environ_in_unistd=yes else pac_cv_has_environ_in_unistd=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_has_environ_in_unistd" >&5 $as_echo "$pac_cv_has_environ_in_unistd" >&6; } if test "$pac_cv_has_environ_in_unistd" != "yes" ; then # Can we declare it and use it? { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extern environ in runtime" >&5 $as_echo_n "checking for extern environ in runtime... " >&6; } if ${pac_cv_has_extern_environ+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern char **environ; int main () { char **ep = environ; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_cv_has_extern_environ=yes else pac_cv_has_extern_environ=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_has_extern_environ" >&5 $as_echo "$pac_cv_has_extern_environ" >&6; } if test "$pac_cv_has_extern_environ" = "yes" ; then $as_echo "#define NEEDS_ENVIRON_DECL 1" >>confdefs.h fi else pac_cv_has_extern_environ=yes fi if test "$pac_cv_has_extern_environ" = "yes" ; then $as_echo "#define HAVE_EXTERN_ENVIRON 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5 $as_echo_n "checking for library containing socketpair... " >&6; } if ${ac_cv_search_socketpair+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char socketpair (); int main () { return socketpair (); ; return 0; } _ACEOF for ac_lib in '' socket; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_socketpair=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_socketpair+:} false; then : break fi done if ${ac_cv_search_socketpair+:} false; then : else ac_cv_search_socketpair=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5 $as_echo "$ac_cv_search_socketpair" >&6; } ac_res=$ac_cv_search_socketpair if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi for ac_header in sys/types.h signal.h sys/ptrace.h sys/uio.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test "$ac_cv_header_sys_uio_h" = "yes" ; then # Test for iovec defined { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct iovec is defined in sys/uio.h" >&5 $as_echo_n "checking whether struct iovec is defined in sys/uio.h... " >&6; } if ${pac_cv_has_struct_iovec+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { struct iovec v ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_has_struct_iovec=yes else pac_cv_has_struct_iovec=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_has_struct_iovec" >&5 $as_echo "$pac_cv_has_struct_iovec" >&6; } if test "$pac_cv_has_struct_iovec" = "yes" ; then $as_echo "#define HAVE_IOVEC_DEFINITION 1" >>confdefs.h fi fi for ac_func in strsignal do : ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal" if test "x$ac_cv_func_strsignal" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRSIGNAL 1 _ACEOF fi done if test "$ac_cv_func_strsignal" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strsignal needs a declaration" >&5 $as_echo_n "checking whether strsignal needs a declaration... " >&6; } if ${pac_cv_func_decl_strsignal+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include void (*fptr)(void) = (void(*)(void))strsignal; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_func_decl_strsignal=no else pac_cv_func_decl_strsignal=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_strsignal" >&5 $as_echo "$pac_cv_func_decl_strsignal" >&6; } if test "$pac_cv_func_decl_strsignal" = "yes" ; then cat >>confdefs.h <<_ACEOF #define NEEDS_STRSIGNAL_DECL 1 _ACEOF fi fi for ac_func in sigaction signal sigset do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done sigaction_ok=no if test "$ac_cv_func_sigaction" = "yes" ; then # Make sure that the fields that we need in sigaction are defined { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigaction and sa_handler" >&5 $as_echo_n "checking for struct sigaction and sa_handler... " >&6; } if ${pac_cv_struct_sigaction_with_sa_handler+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { struct sigaction act; sigaddset( &act.sa_mask, SIGINT ); act.sa_handler = SIG_IGN; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_struct_sigaction_with_sa_handler=yes else pac_cv_struct_sigaction_with_sa_handler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_struct_sigaction_with_sa_handler" >&5 $as_echo "$pac_cv_struct_sigaction_with_sa_handler" >&6; } if test "$pac_cv_struct_sigaction_with_sa_handler" = "no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigaction and sa_handler with _POSIX_SOURCE" >&5 $as_echo_n "checking for struct sigaction and sa_handler with _POSIX_SOURCE... " >&6; } if ${pac_cv_struct_sigaction_with_sa_handler_needs_posix+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _POSIX_SOURCE #include int main () { struct sigaction act; sigaddset( &act.sa_mask, SIGINT ); act.sa_handler = SIG_IGN; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_struct_sigaction_with_sa_handler_needs_posix=yes else pac_cv_struct_sigaction_with_sa_handler_needs_posix=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_struct_sigaction_with_sa_handler_needs_posix" >&5 $as_echo "$pac_cv_struct_sigaction_with_sa_handler_needs_posix" >&6; } if test "$pac_cv_struct_sigaction_with_sa_handler_needs_posix" = "yes" ; then sigaction_ok=yes fi else sigaction_ok=yes fi fi # Decide on the signal handler to use if test "$ac_cv_func_sigaction" = "yes" -a "$sigaction_ok" = "yes" ; then if test "$pac_cv_struct_sigaction_with_sa_handler_needs_posix" = yes ; then $as_echo "#define NEEDS_POSIX_FOR_SIGACTION 1" >>confdefs.h fi $as_echo "#define USE_SIGACTION /**/" >>confdefs.h elif test "$ac_cv_func_signal" = "yes" ; then $as_echo "#define USE_SIGNAL /**/" >>confdefs.h fi # Check for needed declarations. This must be after any step that might # change the compilers behavior, such as the _POSIX_SOURCE test above # FIXME: need to include the test, at least for any file that # might set _POSIX_SOURCE # putenv() sets environment variable for ac_func in putenv do : ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" if test "x$ac_cv_func_putenv" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_PUTENV 1 _ACEOF fi done if test "$ac_cv_func_putenv" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv needs a declaration" >&5 $as_echo_n "checking whether putenv needs a declaration... " >&6; } if ${pac_cv_func_decl_putenv+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include void (*fptr)(void) = (void(*)(void))putenv; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_func_decl_putenv=no else pac_cv_func_decl_putenv=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_putenv" >&5 $as_echo "$pac_cv_func_decl_putenv" >&6; } if test "$pac_cv_func_decl_putenv" = "yes" ; then cat >>confdefs.h <<_ACEOF #define NEEDS_PUTENV_DECL 1 _ACEOF fi fi # gethostname() returns host name for ac_func in gethostname do : ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" if test "x$ac_cv_func_gethostname" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GETHOSTNAME 1 _ACEOF fi done if test "$ac_cv_func_gethostname" = "yes" ; then # Do we need to declare gethostname? { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostname needs a declaration" >&5 $as_echo_n "checking whether gethostname needs a declaration... " >&6; } if ${pac_cv_func_decl_gethostname+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include void (*fptr)(void) = (void(*)(void))gethostname; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_func_decl_gethostname=no else pac_cv_func_decl_gethostname=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_gethostname" >&5 $as_echo "$pac_cv_func_decl_gethostname" >&6; } if test "$pac_cv_func_decl_gethostname" = "yes" ; then cat >>confdefs.h <<_ACEOF #define NEEDS_GETHOSTNAME_DECL 1 _ACEOF fi fi # # Check for select and working FD_ZERO for ac_func in select do : ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" if test "x$ac_cv_func_select" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SELECT 1 _ACEOF fi done for ac_header in sys/select.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" if test "x$ac_cv_header_sys_select_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_SELECT_H 1 _ACEOF fi done if test "$ac_cv_func_select" != yes ; then as_fn_error $? "select is required for the process manager utilities" "$LINENO" 5 else # Check that FD_ZERO works. Under the Darwin xlc (version 6) compiler, # FD_ZERO gets turned into a referece to __builtin_bzero, which is not # in the xlc libraries. This is apparently due to xlc pretending that it # is GCC within the system header files (the same test that must # succeed within the system header files to cause the declaration to # be __builtin_bzero fails outside of the header file). # (sys/select.h is POSIX) if test "$ac_cv_header_sys_select_h" = yes ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FD_ZERO works" >&5 $as_echo_n "checking whether FD_ZERO works... " >&6; } if ${pac_cv_fdzero_works+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { fd_set v; FD_ZERO(&v) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_cv_fdzero_works=yes else pac_cv_fdzero_works=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fdzero_works" >&5 $as_echo "$pac_cv_fdzero_works" >&6; } if test "$pac_cv_fdzero_works" != yes ; then as_fn_error $? "Programs with FD_ZERO cannot be linked (check your system includes)" "$LINENO" 5 fi fi fi # # Check for the Linux functions for controlling processor affinity. # # LINUX: sched_setaffinity # AIX: bindprocessor # OSX (Leopard): thread_policy_set for ac_func in sched_setaffinity sched_getaffinity bindprocessor thread_policy_set do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "$ac_cv_func_sched_setaffinity" = "yes" ; then # Test for the cpu process set type { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cpu_set_t available" >&5 $as_echo_n "checking whether cpu_set_t available... " >&6; } if ${pac_cv_have_cpu_set_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { cpu_set_t t; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_cpu_set_t=yes else pac_cv_have_cpu_set_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_cpu_set_t" >&5 $as_echo "$pac_cv_have_cpu_set_t" >&6; } if test "$pac_cv_have_cpu_set_t" = yes ; then $as_echo "#define HAVE_CPU_SET_T 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the CPU_SET and CPU_ZERO macros are defined" >&5 $as_echo_n "checking whether the CPU_SET and CPU_ZERO macros are defined... " >&6; } if ${pac_cv_cpu_set_defined+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { cpu_set_t t; CPU_ZERO(&t); CPU_SET(1,&t); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_cv_cpu_set_defined=yes else pac_cv_cpu_set_defined=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_cpu_set_defined" >&5 $as_echo "$pac_cv_cpu_set_defined" >&6; } if test "$pac_cv_cpu_set_defined" = "yes" ; then $as_echo "#define HAVE_CPU_SET_MACROS 1" >>confdefs.h fi # FIXME: Some versions of sched_setaffinity return ENOSYS (!), # so we should test for the unfriendly and useless behavior fi fi if test "$ac_cv_func_thread_policy_set" = yes ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether thread affinity macros defined" >&5 $as_echo_n "checking whether thread affinity macros defined... " >&6; } if ${pac_cv_have_thread_affinity_policy+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if !defined(THREAD_AFFINITY_POLICY) || !defined(THREAD_AFFINITY_TAG_NULL) :'thread macros not defined ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_thread_affinity_policy=yes else pac_cv_have_thread_affinity_policy=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_thread_affinity_policy" >&5 $as_echo "$pac_cv_have_thread_affinity_policy" >&6; } if test "$pac_cv_have_thread_affinity_policy" = yes ; then $as_echo "#define HAVE_OSX_THREAD_AFFINITY 1" >>confdefs.h fi fi for ac_header in string.h sys/time.h time.h stdlib.h sys/socket.h wait.h errno.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in time do : ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time" if test "x$ac_cv_func_time" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_TIME 1 _ACEOF fi done # Check for socklen_t . # (note the conditional inclusion of sys/socket.h) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether socklen_t is defined (in sys/socket.h if present)" >&5 $as_echo_n "checking whether socklen_t is defined (in sys/socket.h if present)... " >&6; } if ${pac_cv_have_socklen_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif typedef struct { double a; int b; } socklen_t; int main () { socklen_t a;a.a=1.0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_socklen_t=no else pac_cv_have_socklen_t=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_socklen_t" >&5 $as_echo "$pac_cv_have_socklen_t" >&6; } if test "$pac_cv_have_socklen_t" = yes ; then $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h fi fi ## end expansion of PAC_SUBCFG_BODY_src_pm_util ## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch4_shm_posix if test -z "$BUILD_SHM_POSIX_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch4:shm:posix" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR ch4:shm:posix" >&6;} fi ## end expansion of PAC_SUBCFG_BODY_src_mpid_ch4_shm_posix ## begin expansion of PAC_SUBCFG_BODY_src_mpid_common_bc ## end expansion of PAC_SUBCFG_BODY_src_mpid_common_bc ## begin expansion of PAC_SUBCFG_BODY_src_pmi # common ARG_ENABLE, shared by "simple" and "pmi2" # Check whether --enable-pmiport was given. if test "${enable_pmiport+set}" = set; then : enableval=$enable_pmiport; else enable_pmiport=default fi ## end expansion of PAC_SUBCFG_BODY_src_pmi ## begin expansion of PAC_SUBCFG_BODY_src_pmi_slurm if test "x$pmi_name" = "xslurm"; then BUILD_PMI_SLURM_TRUE= BUILD_PMI_SLURM_FALSE='#' else BUILD_PMI_SLURM_TRUE='#' BUILD_PMI_SLURM_FALSE= fi if test -z "$BUILD_PMI_SLURM_TRUE"; then : # sets CPPFLAGS and LDFLAGS # Check whether --with-slurm was given. if test "${with_slurm+set}" = set; then : withval=$with_slurm; else with_slurm= fi # Check whether --with-slurm-include was given. if test "${with_slurm_include+set}" = set; then : withval=$with_slurm_include; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-slurm-include=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-slurm-include=PATH expects a valid PATH" >&2;} with_slurm_include="" ;; #( *) : ;; esac fi # Check whether --with-slurm-lib was given. if test "${with_slurm_lib+set}" = set; then : withval=$with_slurm_lib; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-slurm-lib=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-slurm-lib=PATH expects a valid PATH" >&2;} with_slurm_lib="" ;; #( *) : ;; esac fi # The args have been sanitized into empty/non-empty values above. # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options # taking priority if test -n "${with_slurm_include}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_slurm_include}\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_slurm_include}', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_slurm_include}', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_slurm_include}" fi else if test -n "${with_slurm}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_slurm}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_slurm}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_slurm}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_slurm}/include" fi fi fi if test -n "${with_slurm_lib}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_slurm_lib}\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_slurm_lib}', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_slurm_lib}', appending" >&5 LDFLAGS="$LDFLAGS -L${with_slurm_lib}" fi else if test -n "${with_slurm}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_slurm}/lib\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_slurm}/lib', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_slurm}/lib', appending" >&5 LDFLAGS="$LDFLAGS -L${with_slurm}/lib" fi if test -d "${with_slurm}/lib64"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_slurm}/lib64\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_slurm}/lib64', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_slurm}/lib64', appending" >&5 LDFLAGS="$LDFLAGS -L${with_slurm}/lib64" fi fi fi fi ac_fn_c_check_header_mongrel "$LINENO" "slurm/pmi.h" "ac_cv_header_slurm_pmi_h" "$ac_includes_default" if test "x$ac_cv_header_slurm_pmi_h" = xyes; then : else as_fn_error $? "could not find slurm/pmi.h. Configure aborted" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PMI_Init in -lpmi" >&5 $as_echo_n "checking for PMI_Init in -lpmi... " >&6; } if ${ac_cv_lib_pmi_PMI_Init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpmi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char PMI_Init (); int main () { return PMI_Init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pmi_PMI_Init=yes else ac_cv_lib_pmi_PMI_Init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pmi_PMI_Init" >&5 $as_echo "$ac_cv_lib_pmi_PMI_Init" >&6; } if test "x$ac_cv_lib_pmi_PMI_Init" = xyes; then : if echo "$LIBS" | $FGREP -e "\<-lpmi\>" >/dev/null 2>&1; then : echo "LIBS(='$LIBS') contains '-lpmi', not prepending" >&5 else echo "LIBS(='$LIBS') does not contain '-lpmi', prepending" >&5 LIBS="-lpmi $LIBS" fi if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lpmi\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lpmi', not prepending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lpmi', prepending" >&5 WRAPPER_LIBS="-lpmi $WRAPPER_LIBS" fi else as_fn_error $? "could not find the slurm libpmi. Configure aborted" "$LINENO" 5 fi fi ## end expansion of PAC_SUBCFG_BODY_src_pmi_slurm ## begin expansion of PAC_SUBCFG_BODY_src_pmi_pmi2 if test "x$pmi_name" = "xpmi2"; then BUILD_PMI_PMI2_TRUE= BUILD_PMI_PMI2_FALSE='#' else BUILD_PMI_PMI2_TRUE='#' BUILD_PMI_PMI2_FALSE= fi if test -z "$BUILD_PMI_PMI2_TRUE"; then : if test "$enable_pmiport" != "no" ; then enable_pmiport=yes fi USE_PMI2_API=yes # Check whether --enable-pmiport was given. if test "${enable_pmiport+set}" = set; then : enableval=$enable_pmiport; else enable_pmiport=default fi for ac_header in unistd.h string.h stdlib.h sys/socket.h strings.h assert.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in snprintf do : ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" if test "x$ac_cv_func_snprintf" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SNPRINTF 1 _ACEOF fi done if test "$ac_cv_func_snprintf" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf needs a declaration" >&5 $as_echo_n "checking whether snprintf needs a declaration... " >&6; } if ${pac_cv_func_decl_snprintf+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include void (*fptr)(void) = (void(*)(void))snprintf; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_func_decl_snprintf=no else pac_cv_func_decl_snprintf=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_snprintf" >&5 $as_echo "$pac_cv_func_decl_snprintf" >&6; } if test "$pac_cv_func_decl_snprintf" = "yes" ; then cat >>confdefs.h <<_ACEOF #define NEEDS_SNPRINTF_DECL 1 _ACEOF fi fi for ac_func in strncasecmp do : ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" if test "x$ac_cv_func_strncasecmp" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRNCASECMP 1 _ACEOF fi done # # PM's that need support for a port can set the environment variable # NEED_PMIPORT in their setup_pm script. if test "$NEED_PMIPORT" = "yes" -a "$enable_pmiport" != "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The process manager requires the pmiport capability. Do not specify --disable-pmiport." >&5 $as_echo "$as_me: WARNING: The process manager requires the pmiport capability. Do not specify --disable-pmiport." >&2;} enable_pmiport=yes fi # if test "$enable_pmiport" = "yes" ; then # Check for the necessary includes and functions missing_headers=no for ac_header in \ sys/types.h \ sys/param.h \ sys/socket.h \ netinet/in.h \ netinet/tcp.h \ sys/un.h \ netdb.h \ do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else missing_headers=yes fi done missing_functions=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 $as_echo_n "checking for library containing socket... " >&6; } if ${ac_cv_search_socket+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char socket (); int main () { return socket (); ; return 0; } _ACEOF for ac_lib in '' socket; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_socket=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_socket+:} false; then : break fi done if ${ac_cv_search_socket+:} false; then : else ac_cv_search_socket=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 $as_echo "$ac_cv_search_socket" >&6; } ac_res=$ac_cv_search_socket if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" else missing_functions=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 $as_echo_n "checking for library containing gethostbyname... " >&6; } if ${ac_cv_search_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF for ac_lib in '' nsl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_gethostbyname=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_gethostbyname+:} false; then : break fi done if ${ac_cv_search_gethostbyname+:} false; then : else ac_cv_search_gethostbyname=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 $as_echo "$ac_cv_search_gethostbyname" >&6; } ac_res=$ac_cv_search_gethostbyname if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" else missing_functions=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 $as_echo_n "checking for library containing setsockopt... " >&6; } if ${ac_cv_search_setsockopt+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char setsockopt (); int main () { return setsockopt (); ; return 0; } _ACEOF for ac_lib in '' ; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_setsockopt=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_setsockopt+:} false; then : break fi done if ${ac_cv_search_setsockopt+:} false; then : else ac_cv_search_setsockopt=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5 $as_echo "$ac_cv_search_setsockopt" >&6; } ac_res=$ac_cv_search_setsockopt if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" else missing_functions=yes fi if test "$missing_functions" = "no" ; then $as_echo "#define USE_PMI_PORT 1" >>confdefs.h else as_fn_error $? "Cannot build simple PMI with support for an IP port because of missing functions" "$LINENO" 5 fi fi # Check for socklen_t . If undefined, define it as int # (note the conditional inclusion of sys/socket.h) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether socklen_t is defined (in sys/socket.h if present)" >&5 $as_echo_n "checking whether socklen_t is defined (in sys/socket.h if present)... " >&6; } if ${pac_cv_have_socklen_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif typedef struct { double a; int b; } socklen_t; int main () { socklen_t a;a.a=1.0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_socklen_t=no else pac_cv_have_socklen_t=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_socklen_t" >&5 $as_echo "$pac_cv_have_socklen_t" >&6; } if test "$pac_cv_have_socklen_t" = no ; then $as_echo "#define socklen_t int" >>confdefs.h fi # Check for h_addr or h_addr_list { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct hostent contains h_addr_list" >&5 $as_echo_n "checking whether struct hostent contains h_addr_list... " >&6; } if ${pac_cv_have_haddr_list+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { struct hostent hp;hp.h_addr_list[0]=0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_haddr_list=yes else pac_cv_have_haddr_list=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_haddr_list" >&5 $as_echo "$pac_cv_have_haddr_list" >&6; } if test "$pac_cv_have_haddr_list" = "yes" ; then $as_echo "#define HAVE_H_ADDR_LIST 1" >>confdefs.h fi if test "$ac_cv_c_compiler_gnu" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ allowed" >&5 $as_echo_n "checking whether __attribute__ allowed... " >&6; } if ${pac_cv_gnu_attr_pure+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(int) __attribute__ ((pure)); int main () { int a; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_gnu_attr_pure=yes else pac_cv_gnu_attr_pure=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_pure" >&5 $as_echo "$pac_cv_gnu_attr_pure" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) allowed" >&5 $as_echo_n "checking whether __attribute__((format)) allowed... " >&6; } if ${pac_cv_gnu_attr_format+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(char *,...) __attribute__ ((format(printf,1,2))); int main () { int a; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_gnu_attr_format=yes else pac_cv_gnu_attr_format=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_format" >&5 $as_echo "$pac_cv_gnu_attr_format" >&6; } if test "$pac_cv_gnu_attr_pure" = "yes" -a "$pac_cv_gnu_attr_format" = "yes" ; then $as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h fi fi fi ## end expansion of PAC_SUBCFG_BODY_src_pmi_pmi2 ## begin expansion of PAC_SUBCFG_BODY_src_pmi_pmi2_simple if test "x$pmi_name" = "xpmi2/simple"; then BUILD_PMI_PMI2_SIMPLE_TRUE= BUILD_PMI_PMI2_SIMPLE_FALSE='#' else BUILD_PMI_PMI2_SIMPLE_TRUE='#' BUILD_PMI_PMI2_SIMPLE_FALSE= fi if test -z "$BUILD_PMI_PMI2_SIMPLE_TRUE"; then : if test "$enable_pmiport" != "no" ; then enable_pmiport=yes fi USE_PMI2_API=yes for ac_header in unistd.h string.h stdlib.h sys/socket.h strings.h assert.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in snprintf do : ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" if test "x$ac_cv_func_snprintf" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SNPRINTF 1 _ACEOF fi done if test "$ac_cv_func_snprintf" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf needs a declaration" >&5 $as_echo_n "checking whether snprintf needs a declaration... " >&6; } if ${pac_cv_func_decl_snprintf+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include void (*fptr)(void) = (void(*)(void))snprintf; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_func_decl_snprintf=no else pac_cv_func_decl_snprintf=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_snprintf" >&5 $as_echo "$pac_cv_func_decl_snprintf" >&6; } if test "$pac_cv_func_decl_snprintf" = "yes" ; then cat >>confdefs.h <<_ACEOF #define NEEDS_SNPRINTF_DECL 1 _ACEOF fi fi for ac_func in strncasecmp do : ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" if test "x$ac_cv_func_strncasecmp" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRNCASECMP 1 _ACEOF fi done # # PM's that need support for a port can set the environment variable # NEED_PMIPORT in their setup_pm script. if test "$NEED_PMIPORT" = "yes" -a "$enable_pmiport" != "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The process manager requires the pmiport capability. Do not specify --disable-pmiport." >&5 $as_echo "$as_me: WARNING: The process manager requires the pmiport capability. Do not specify --disable-pmiport." >&2;} enable_pmiport=yes fi # if test "$enable_pmiport" = "yes" ; then # Check for the necessary includes and functions missing_headers=no for ac_header in \ sys/types.h \ sys/param.h \ sys/socket.h \ netinet/in.h \ netinet/tcp.h \ sys/un.h \ netdb.h \ do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else missing_headers=yes fi done missing_functions=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 $as_echo_n "checking for library containing socket... " >&6; } if ${ac_cv_search_socket+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char socket (); int main () { return socket (); ; return 0; } _ACEOF for ac_lib in '' socket; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_socket=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_socket+:} false; then : break fi done if ${ac_cv_search_socket+:} false; then : else ac_cv_search_socket=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 $as_echo "$ac_cv_search_socket" >&6; } ac_res=$ac_cv_search_socket if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" else missing_functions=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 $as_echo_n "checking for library containing gethostbyname... " >&6; } if ${ac_cv_search_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF for ac_lib in '' nsl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_gethostbyname=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_gethostbyname+:} false; then : break fi done if ${ac_cv_search_gethostbyname+:} false; then : else ac_cv_search_gethostbyname=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 $as_echo "$ac_cv_search_gethostbyname" >&6; } ac_res=$ac_cv_search_gethostbyname if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" else missing_functions=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 $as_echo_n "checking for library containing setsockopt... " >&6; } if ${ac_cv_search_setsockopt+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char setsockopt (); int main () { return setsockopt (); ; return 0; } _ACEOF for ac_lib in '' ; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_setsockopt=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_setsockopt+:} false; then : break fi done if ${ac_cv_search_setsockopt+:} false; then : else ac_cv_search_setsockopt=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5 $as_echo "$ac_cv_search_setsockopt" >&6; } ac_res=$ac_cv_search_setsockopt if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" else missing_functions=yes fi if test "$missing_functions" = "no" ; then $as_echo "#define USE_PMI_PORT 1" >>confdefs.h else as_fn_error $? "Cannot build simple PMI with support for an IP port because of missing functions" "$LINENO" 5 fi fi # Check for socklen_t . If undefined, define it as int # (note the conditional inclusion of sys/socket.h) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether socklen_t is defined (in sys/socket.h if present)" >&5 $as_echo_n "checking whether socklen_t is defined (in sys/socket.h if present)... " >&6; } if ${pac_cv_have_socklen_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif typedef struct { double a; int b; } socklen_t; int main () { socklen_t a;a.a=1.0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_socklen_t=no else pac_cv_have_socklen_t=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_socklen_t" >&5 $as_echo "$pac_cv_have_socklen_t" >&6; } if test "$pac_cv_have_socklen_t" = no ; then $as_echo "#define socklen_t int" >>confdefs.h fi # Check for h_addr or h_addr_list { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct hostent contains h_addr_list" >&5 $as_echo_n "checking whether struct hostent contains h_addr_list... " >&6; } if ${pac_cv_have_haddr_list+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { struct hostent hp;hp.h_addr_list[0]=0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_haddr_list=yes else pac_cv_have_haddr_list=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_haddr_list" >&5 $as_echo "$pac_cv_have_haddr_list" >&6; } if test "$pac_cv_have_haddr_list" = "yes" ; then $as_echo "#define HAVE_H_ADDR_LIST 1" >>confdefs.h fi if test "$ac_cv_c_compiler_gnu" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ allowed" >&5 $as_echo_n "checking whether __attribute__ allowed... " >&6; } if ${pac_cv_gnu_attr_pure+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(int) __attribute__ ((pure)); int main () { int a; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_gnu_attr_pure=yes else pac_cv_gnu_attr_pure=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_pure" >&5 $as_echo "$pac_cv_gnu_attr_pure" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) allowed" >&5 $as_echo_n "checking whether __attribute__((format)) allowed... " >&6; } if ${pac_cv_gnu_attr_format+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(char *,...) __attribute__ ((format(printf,1,2))); int main () { int a; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_gnu_attr_format=yes else pac_cv_gnu_attr_format=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_format" >&5 $as_echo "$pac_cv_gnu_attr_format" >&6; } if test "$pac_cv_gnu_attr_pure" = "yes" -a "$pac_cv_gnu_attr_format" = "yes" ; then $as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h fi fi fi ## end expansion of PAC_SUBCFG_BODY_src_pmi_pmi2_simple ## begin expansion of PAC_SUBCFG_BODY_src_pmi_bgq if test "x$pmi_name" = "xbgq"; then BUILD_PMI_BGQ_TRUE= BUILD_PMI_BGQ_FALSE='#' else BUILD_PMI_BGQ_TRUE='#' BUILD_PMI_BGQ_FALSE= fi if test -z "$BUILD_PMI_BGQ_TRUE"; then : # This is a hack to include the pmi.h header. The OFI/BGQ provider # includes PMI functions, but no header file. if echo "$CPPFLAGS" | $FGREP -e "\<-I${use_top_srcdir}/src/pmi/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${use_top_srcdir}/src/pmi/include', not prepending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${use_top_srcdir}/src/pmi/include', prepending" >&5 CPPFLAGS="-I${use_top_srcdir}/src/pmi/include $CPPFLAGS" fi fi ## end expansion of PAC_SUBCFG_BODY_src_pmi_bgq ## begin expansion of PAC_SUBCFG_BODY_src_pmi_cray if test "x$pmi_name" = "xcray"; then BUILD_PMI_CRAY_TRUE= BUILD_PMI_CRAY_FALSE='#' else BUILD_PMI_CRAY_TRUE='#' BUILD_PMI_CRAY_FALSE= fi if test -z "$BUILD_PMI_CRAY_TRUE"; then : # set CPPFLAGS and LDFLAGS if echo "$CPPFLAGS" | $FGREP -e "\<$CRAY_PMI_INCLUDE_OPTS\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '$CRAY_PMI_INCLUDE_OPTS', not prepending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '$CRAY_PMI_INCLUDE_OPTS', prepending" >&5 CPPFLAGS="$CRAY_PMI_INCLUDE_OPTS $CPPFLAGS" fi if echo "$LDFLAGS" | $FGREP -e "\<$CRAY_PMI_POST_LINK_OPTS\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '$CRAY_PMI_POST_LINK_OPTS', not prepending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '$CRAY_PMI_POST_LINK_OPTS', prepending" >&5 LDFLAGS="$CRAY_PMI_POST_LINK_OPTS $LDFLAGS" fi ac_fn_c_check_header_mongrel "$LINENO" "pmi.h" "ac_cv_header_pmi_h" "$ac_includes_default" if test "x$ac_cv_header_pmi_h" = xyes; then : else as_fn_error $? "could not find pmi.h. Configure aborted" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PMI_Init in -lpmi" >&5 $as_echo_n "checking for PMI_Init in -lpmi... " >&6; } if ${ac_cv_lib_pmi_PMI_Init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpmi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char PMI_Init (); int main () { return PMI_Init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pmi_PMI_Init=yes else ac_cv_lib_pmi_PMI_Init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pmi_PMI_Init" >&5 $as_echo "$ac_cv_lib_pmi_PMI_Init" >&6; } if test "x$ac_cv_lib_pmi_PMI_Init" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBPMI 1 _ACEOF LIBS="-lpmi $LIBS" else as_fn_error $? "could not find the cray libpmi. Configure aborted" "$LINENO" 5 fi $as_echo "#define USE_PMI2_API 1" >>confdefs.h if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lpmi\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lpmi', not appending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lpmi', appending" >&5 WRAPPER_LIBS="$WRAPPER_LIBS -lpmi" fi fi ## end expansion of PAC_SUBCFG_BODY_src_pmi_cray ## begin expansion of PAC_SUBCFG_BODY_src_pmi_simple if test "x$pmi_name" = "xsimple"; then BUILD_PMI_SIMPLE_TRUE= BUILD_PMI_SIMPLE_FALSE='#' else BUILD_PMI_SIMPLE_TRUE='#' BUILD_PMI_SIMPLE_FALSE= fi if test -z "$BUILD_PMI_SIMPLE_TRUE"; then : if test "$enable_pmiport" != "no" ; then enable_pmiport=yes fi for ac_header in unistd.h string.h stdlib.h sys/socket.h strings.h assert.h arpa/inet.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in snprintf do : ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" if test "x$ac_cv_func_snprintf" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SNPRINTF 1 _ACEOF fi done if test "$ac_cv_func_snprintf" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf needs a declaration" >&5 $as_echo_n "checking whether snprintf needs a declaration... " >&6; } if ${pac_cv_func_decl_snprintf+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include void (*fptr)(void) = (void(*)(void))snprintf; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_func_decl_snprintf=no else pac_cv_func_decl_snprintf=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_snprintf" >&5 $as_echo "$pac_cv_func_decl_snprintf" >&6; } if test "$pac_cv_func_decl_snprintf" = "yes" ; then cat >>confdefs.h <<_ACEOF #define NEEDS_SNPRINTF_DECL 1 _ACEOF fi fi for ac_func in strncasecmp do : ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" if test "x$ac_cv_func_strncasecmp" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRNCASECMP 1 _ACEOF fi done # # PM's that need support for a port can set the environment variable # NEED_PMIPORT in their setup_pm script. if test "$NEED_PMIPORT" = "yes" -a "$enable_pmiport" != "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The process manager requires the pmiport capability. Do not specify --disable-pmiport." >&5 $as_echo "$as_me: WARNING: The process manager requires the pmiport capability. Do not specify --disable-pmiport." >&2;} enable_pmiport=yes fi # if test "$enable_pmiport" = "yes" ; then # Check for the necessary includes and functions missing_headers=no for ac_header in \ sys/types.h \ sys/param.h \ sys/socket.h \ netinet/in.h \ netinet/tcp.h \ sys/un.h \ netdb.h \ do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else missing_headers=yes fi done missing_functions=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 $as_echo_n "checking for library containing socket... " >&6; } if ${ac_cv_search_socket+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char socket (); int main () { return socket (); ; return 0; } _ACEOF for ac_lib in '' socket; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_socket=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_socket+:} false; then : break fi done if ${ac_cv_search_socket+:} false; then : else ac_cv_search_socket=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 $as_echo "$ac_cv_search_socket" >&6; } ac_res=$ac_cv_search_socket if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" else missing_functions=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 $as_echo_n "checking for library containing gethostbyname... " >&6; } if ${ac_cv_search_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF for ac_lib in '' nsl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_gethostbyname=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_gethostbyname+:} false; then : break fi done if ${ac_cv_search_gethostbyname+:} false; then : else ac_cv_search_gethostbyname=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 $as_echo "$ac_cv_search_gethostbyname" >&6; } ac_res=$ac_cv_search_gethostbyname if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" else missing_functions=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 $as_echo_n "checking for library containing setsockopt... " >&6; } if ${ac_cv_search_setsockopt+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char setsockopt (); int main () { return setsockopt (); ; return 0; } _ACEOF for ac_lib in '' ; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_setsockopt=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_setsockopt+:} false; then : break fi done if ${ac_cv_search_setsockopt+:} false; then : else ac_cv_search_setsockopt=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5 $as_echo "$ac_cv_search_setsockopt" >&6; } ac_res=$ac_cv_search_setsockopt if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" else missing_functions=yes fi if test "$missing_functions" = "no" ; then $as_echo "#define USE_PMI_PORT 1" >>confdefs.h else as_fn_error $? "Cannot build simple PMI with support for an IP port because of missing functions" "$LINENO" 5 fi fi # Check for socklen_t . If undefined, define it as int # (note the conditional inclusion of sys/socket.h) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether socklen_t is defined (in sys/socket.h if present)" >&5 $as_echo_n "checking whether socklen_t is defined (in sys/socket.h if present)... " >&6; } if ${pac_cv_have_socklen_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif typedef struct { double a; int b; } socklen_t; int main () { socklen_t a;a.a=1.0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_socklen_t=no else pac_cv_have_socklen_t=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_socklen_t" >&5 $as_echo "$pac_cv_have_socklen_t" >&6; } if test "$pac_cv_have_socklen_t" = no ; then $as_echo "#define socklen_t int" >>confdefs.h fi # Check for h_addr or h_addr_list { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct hostent contains h_addr_list" >&5 $as_echo_n "checking whether struct hostent contains h_addr_list... " >&6; } if ${pac_cv_have_haddr_list+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { struct hostent hp;hp.h_addr_list[0]=0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_haddr_list=yes else pac_cv_have_haddr_list=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_haddr_list" >&5 $as_echo "$pac_cv_have_haddr_list" >&6; } if test "$pac_cv_have_haddr_list" = "yes" ; then $as_echo "#define HAVE_H_ADDR_LIST 1" >>confdefs.h fi if test "$ac_cv_c_compiler_gnu" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ allowed" >&5 $as_echo_n "checking whether __attribute__ allowed... " >&6; } if ${pac_cv_gnu_attr_pure+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(int) __attribute__ ((pure)); int main () { int a; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_gnu_attr_pure=yes else pac_cv_gnu_attr_pure=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_pure" >&5 $as_echo "$pac_cv_gnu_attr_pure" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) allowed" >&5 $as_echo_n "checking whether __attribute__((format)) allowed... " >&6; } if ${pac_cv_gnu_attr_format+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(char *,...) __attribute__ ((format(printf,1,2))); int main () { int a; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_gnu_attr_format=yes else pac_cv_gnu_attr_format=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_format" >&5 $as_echo "$pac_cv_gnu_attr_format" >&6; } if test "$pac_cv_gnu_attr_pure" = "yes" -a "$pac_cv_gnu_attr_format" = "yes" ; then $as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h fi fi fi ## end expansion of PAC_SUBCFG_BODY_src_pmi_simple ## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch3 if test -z "$BUILD_CH3_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR CH3 DEVICE" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR CH3 DEVICE" >&6;} # ---------------------------------------------------------------------------- # include ftb functionality # ---------------------------------------------------------------------------- # Check whether --enable-ftb was given. if test "${enable_ftb+set}" = set; then : enableval=$enable_ftb; $as_echo "#define ENABLE_FTB 1" >>confdefs.h # Check whether --with-ftb was given. if test "${with_ftb+set}" = set; then : withval=$with_ftb; else with_ftb= fi # Check whether --with-ftb-include was given. if test "${with_ftb_include+set}" = set; then : withval=$with_ftb_include; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ftb-include=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-ftb-include=PATH expects a valid PATH" >&2;} with_ftb_include="" ;; #( *) : ;; esac fi # Check whether --with-ftb-lib was given. if test "${with_ftb_lib+set}" = set; then : withval=$with_ftb_lib; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ftb-lib=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-ftb-lib=PATH expects a valid PATH" >&2;} with_ftb_lib="" ;; #( *) : ;; esac fi # The args have been sanitized into empty/non-empty values above. # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options # taking priority if test -n "${with_ftb_include}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_ftb_include}\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ftb_include}', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ftb_include}', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_ftb_include}" fi else if test -n "${with_ftb}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_ftb}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ftb}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ftb}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_ftb}/include" fi fi fi if test -n "${with_ftb_lib}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ftb_lib}\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ftb_lib}', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ftb_lib}', appending" >&5 LDFLAGS="$LDFLAGS -L${with_ftb_lib}" fi else if test -n "${with_ftb}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ftb}/lib\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ftb}/lib', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ftb}/lib', appending" >&5 LDFLAGS="$LDFLAGS -L${with_ftb}/lib" fi if test -d "${with_ftb}/lib64"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ftb}/lib64\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ftb}/lib64', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ftb}/lib64', appending" >&5 LDFLAGS="$LDFLAGS -L${with_ftb}/lib64" fi fi fi fi if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` failure=no ac_fn_c_check_header_mongrel "$LINENO" "libftb.h" "ac_cv_header_libftb_h" "$ac_includes_default" if test "x$ac_cv_header_libftb_h" = xyes; then : else failure=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FTB_Connect in -lftb" >&5 $as_echo_n "checking for FTB_Connect in -lftb... " >&6; } if ${ac_cv_lib_ftb_FTB_Connect+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lftb $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char FTB_Connect (); int main () { return FTB_Connect (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ftb_FTB_Connect=yes else ac_cv_lib_ftb_FTB_Connect=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ftb_FTB_Connect" >&5 $as_echo "$ac_cv_lib_ftb_FTB_Connect" >&6; } if test "x$ac_cv_lib_ftb_FTB_Connect" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBFTB 1 _ACEOF LIBS="-lftb $LIBS" else failure=yes fi if test "$failure" = "no" ; then success=yes else success=no fi if test "$success" = "no" ; then as_fn_error $? "'libftb.h or libftb library not found. Did you specify --with-ftb= or --with-ftb-include= or --with-ftb-lib=?'" "$LINENO" 5 fi if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lftb\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lftb', not appending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lftb', appending" >&5 WRAPPER_LIBS="$WRAPPER_LIBS -lftb" fi pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" fi # Check whether --with-ch3-rank-bits was given. if test "${with_ch3_rank_bits+set}" = set; then : withval=$with_ch3_rank_bits; rankbits=$withval else rankbits=16 fi if test "$rankbits" != "16" -a "$rankbits" != "32" ; then as_fn_error $? "Only 16 or 32-bit ranks are supported" "$LINENO" 5 fi cat >>confdefs.h <<_ACEOF #define CH3_RANK_BITS $rankbits _ACEOF for ac_header in assert.h limits.h string.h sys/types.h sys/uio.h uuid/uuid.h \ time.h ctype.h unistd.h arpa/inet.h sys/socket.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # net/if.h requires special handling on darwin. The following code is # straight out of the autoconf-2.63 manual. Also, sys/socket.h (above) # is a prerequisite. for ac_header in net/if.h do : ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_SYS_SOCKET_H # include #endif " if test "x$ac_cv_header_net_if_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_NET_IF_H 1 _ACEOF fi done # Check for special types ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" if test "x$ac_cv_type_pid_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define pid_t int _ACEOF fi # Check for functions for ac_func in inet_pton do : ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" if test "x$ac_cv_func_inet_pton" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_INET_PTON 1 _ACEOF fi done for ac_func in gethostname do : ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" if test "x$ac_cv_func_gethostname" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GETHOSTNAME 1 _ACEOF fi done if test "$ac_cv_func_gethostname" = "yes" ; then # Do we need to declare gethostname? { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostname needs a declaration" >&5 $as_echo_n "checking whether gethostname needs a declaration... " >&6; } if ${pac_cv_func_decl_gethostname+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include void (*fptr)(void) = (void(*)(void))gethostname; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_func_decl_gethostname=no else pac_cv_func_decl_gethostname=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_gethostname" >&5 $as_echo "$pac_cv_func_decl_gethostname" >&6; } if test "$pac_cv_func_decl_gethostname" = "yes" ; then cat >>confdefs.h <<_ACEOF #define NEEDS_GETHOSTNAME_DECL 1 _ACEOF fi fi for ac_func in CFUUIDCreate uuid_generate time do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # ensure that atomic primitives are available { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenPA atomic primitive availability" >&5 $as_echo_n "checking for OpenPA atomic primitive availability... " >&6; } # Double check that we actually have a present and working OpenPA # configuration. This must be AC_COMPILE_IFELSE instead of the stronger # AC_LINK_IFELSE because the OpenPA library will typically not be # completely built by this point. # # This test was taken from sanity.c in the OpenPA test suite. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* will include pthread.h if present and needed */ int main () { OPA_int_t a, b; int c; #if defined(OPA_USE_LOCK_BASED_PRIMITIVES) pthread_mutex_t shm_lock; OPA_Interprocess_lock_init(&shm_lock, 1/*isLeader*/); #endif OPA_store_int(&a, 0); OPA_store_int(&b, 1); OPA_add_int(&a, 10); OPA_assert(10 == OPA_load_int(&a)); c = OPA_cas_int(&a, 10, 11); OPA_assert(10 == c); c = OPA_swap_int(&a, OPA_load_int(&b)); OPA_assert(11 == c); OPA_assert(1 == OPA_load_int(&a)); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : openpa_present_and_working=yes else openpa_present_and_working=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test "$openpa_present_and_working" = yes ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if defined(OPA_USE_LOCK_BASED_PRIMITIVES) #error "lock-based emulation is currently in use" #endif _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : using_emulated_atomics=no else using_emulated_atomics=yes fi rm -f conftest.err conftest.i conftest.$ac_ext if test "$using_emulated_atomics" = "yes" ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include /* may also be undefined in older (pre-r106) versions of OPA */ #if !defined(OPA_EXPLICIT_EMULATION) #error "lock-based emulation was automatic, not explicit" #endif _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : atomics_explicitly_emulated=yes else atomics_explicitly_emulated=no fi rm -f conftest.err conftest.i conftest.$ac_ext if test "$atomics_explicitly_emulated" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (emulated)" >&5 $as_echo "yes (emulated)" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? " The ch3 device was selected yet no native atomic primitives are available on this platform. OpenPA can emulate atomic primitives using locks by specifying --with-atomic-primitives=no but performance will be very poor. This override should only be specified for correctness testing purposes." "$LINENO" 5 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? " The ch3 devies was selected yet a set of working OpenPA headers were not found. Please check the OpenPA configure step for errors." "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } if ${ac_cv_c_bigendian+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __APPLE_CC__ not a universal capable compiler #endif typedef int dummy; _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. ac_arch= ac_prev= for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do if test -n "$ac_prev"; then case $ac_word in i?86 | x86_64 | ppc | ppc64) if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then ac_arch=$ac_word else ac_cv_c_bigendian=universal break fi ;; esac ac_prev= elif test "x$ac_word" = "x-arch"; then ac_prev=arch fi done fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then # See if sys/param.h defines the BYTE_ORDER macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ && LITTLE_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to _BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef _BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # Compile a test program. if test "$cross_compiling" = yes; then : # Try to guess by grepping values from an object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; int use_ascii (int i) { return ascii_mm[i] + ascii_ii[i]; } short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; } extern int foo; int main () { return use_ascii (foo) == use_ebcdic (foo); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else # finding both strings is unlikely to happen, but who knows? ac_cv_c_bigendian=unknown fi fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* Are we little or big endian? From Harbison&Steele. */ union { long int l; char c[sizeof (long int)]; } u; u.l = 1; return u.c[sizeof (long int) - 1] == 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_bigendian=no else ac_cv_c_bigendian=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 $as_echo "$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in #( yes) $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h ;; #( no) ;; #( universal) $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h ;; #( *) as_fn_error $? "unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; esac fi ## end expansion of PAC_SUBCFG_BODY_src_mpid_ch3 ## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_nemesis if test -z "$BUILD_CH3_NEMESIS_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch3:nemesis" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR ch3:nemesis" >&6;} ## below is code that formerly lived in configure.ac ### Only include papi in CPPFLAGS configure will handle libs, and checking that it exists, etc. ##if test -n "${papi_dir}" ; then ## PAC_APPEND_FLAG([-I${papi_dir}/include], [CPPFLAGS]) ##fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : lac_cv_header_net_if_h=yes else lac_cv_header_net_if_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext echo "checking for net/if.h... $lac_cv_header_net_if_h" if test "$lac_cv_header_net_if_h" = "yes" ; then $as_echo "#define HAVE_NET_IF_H 1" >>confdefs.h fi for ac_header in \ assert.h \ netdb.h \ unistd.h \ sched.h \ sys/mman.h \ sys/ioctl.h \ sys/socket.h \ sys/sockio.h \ sys/types.h \ errno.h \ sys/ipc.h \ sys/shm.h \ do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # netinet/in.h often requires sys/types.h first. With AC 2.57, check_headers # does the right thing, which is to test whether the header is found # by the compiler, but this can cause problems when the header needs # other headers. 2.57 changes the syntax (!) of check_headers to allow # additional headers. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netinet/in.h" >&5 $as_echo_n "checking for netinet/in.h... " >&6; } if ${ac_cv_header_netinet_in_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_SYS_TYPES_H #include #endif #include int main () { int a=0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_netinet_in_h=yes else ac_cv_header_netinet_in_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_netinet_in_h" >&5 $as_echo "$ac_cv_header_netinet_in_h" >&6; } if test "$ac_cv_header_netinet_in_h" = yes ; then $as_echo "#define HAVE_NETINET_IN_H 1" >>confdefs.h fi # Check whether --enable-fast was given. if test "${enable_fast+set}" = set; then : enableval=$enable_fast; else enable_fast=no fi # make sure we support signal for ac_header in signal.h do : ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" if test "x$ac_cv_header_signal_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SIGNAL_H 1 _ACEOF fi done for ac_func in signal do : ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal" if test "x$ac_cv_func_signal" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SIGNAL 1 _ACEOF fi done nemesis_nets_dirs="" nemesis_nets_strings="" nemesis_nets_array="" nemesis_nets_func_decl="" nemesis_nets_func_array="" nemesis_nets_macro_defs="" net_index=0 for net in $nemesis_networks ; do if test ! -d $srcdir/src/mpid/ch3/channels/nemesis/netmod/${net} ; then as_fn_error $? "Network module ${net} is unknown \"$srcdir/src/mpid/ch3/channels/nemesis/netmod/${net}\"" "$LINENO" 5 fi net_macro=`echo $net | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` net_macro="MPIDI_NEM_${net_macro}" if test -z "$nemesis_nets_array" ; then nemesis_nets_array="$net_macro" else nemesis_nets_array="$nemesis_nets_array, $net_macro" fi if test -z "$nemesis_nets_strings" ; then nemesis_nets_strings="\"$net\"" else nemesis_nets_strings="$nemesis_nets_strings, \"$net\"" fi if test -z "$nemesis_nets_dirs" ; then nemesis_nets_dirs="${net}" else nemesis_nets_dirs="$nemesis_nets_dirs ${net}" fi if test -z "$nemesis_nets_func_decl" ; then nemesis_nets_func_decl="MPIDI_nem_${net}_funcs" else nemesis_nets_func_decl="${nemesis_nets_func_decl}, MPIDI_nem_${net}_funcs" fi if test -z "$nemesis_nets_func_array" ; then nemesis_nets_func_array="&MPIDI_nem_${net}_funcs" else nemesis_nets_func_array="${nemesis_nets_func_array}, &MPIDI_nem_${net}_funcs" fi if test -z "$nemesis_nets_macro_defs" ; then nemesis_nets_macro_defs="#define $net_macro $net_index" else nemesis_nets_macro_defs=`printf "${nemesis_nets_macro_defs}\n#define $net_macro $net_index"` fi net_index=`expr $net_index + 1` done nemesis_nets_array_sz=$net_index # Check whether --enable-nemesis-dbg-nolocal was given. if test "${enable_nemesis_dbg_nolocal+set}" = set; then : enableval=$enable_nemesis_dbg_nolocal; $as_echo "#define ENABLED_NO_LOCAL 1" >>confdefs.h fi # Check whether --enable-nemesis-dbg-localoddeven was given. if test "${enable_nemesis_dbg_localoddeven+set}" = set; then : enableval=$enable_nemesis_dbg_localoddeven; $as_echo "#define ENABLED_ODD_EVEN_CLIQUES 1" >>confdefs.h fi # Check whether --with-papi was given. if test "${with_papi+set}" = set; then : withval=$with_papi; else with_papi=no fi if test "${with_papi}" != "no" ; then if test "${with_papi}" != "yes" ; then PAPI_INCLUDE="-I${with_papi}/include" CPPFLAGS="$CPPFLAGS $PAPI_INCLUDE" # LDFLAGS="$LDFLAGS -L${with_papi}/lib" LIBS="${with_papi}/lib/libpapi.a $LIBS" LIBS="${with_papi}/lib/libperfctr.a $LIBS" fi ac_fn_c_check_header_mongrel "$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default" if test "x$ac_cv_header_papi_h" = xyes; then : else as_fn_error $? "'papi.h not found in ${with_papi}/include. Did you specify the correct path with --with-papi=?'" "$LINENO" 5 fi echo -n "checking for papi libraries... " if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See \`config.log' for more details" "$LINENO" 5; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { PAPI_library_init(PAPI_VER_CURRENT); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : echo "yes" else echo "yes" ; as_fn_error $? "'Cannot link with papi: Cannot find ${with_papi}/lib/libpapi.a or ${with_papi}/lib/libperfctr.a'" "$LINENO" 5 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi # AC_CHECK_LIB(papi, PAPI_accum, , [AC_MSG_ERROR(['papi library not found. Did you specify --with-papi=?'])]) # AC_CHECK_LIB(perfctr, perfctr_info, , [AC_MSG_ERROR(['perfctr library not found. Did you specify --with-papi=?'])]) fi # handle missing mkstemp, or missing mkstemp declaration for ac_func in mkstemp do : ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" if test "x$ac_cv_func_mkstemp" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MKSTEMP 1 _ACEOF fi done for ac_func in rand do : ac_fn_c_check_func "$LINENO" "rand" "ac_cv_func_rand" if test "x$ac_cv_func_rand" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RAND 1 _ACEOF fi done for ac_func in srand do : ac_fn_c_check_func "$LINENO" "srand" "ac_cv_func_srand" if test "x$ac_cv_func_srand" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SRAND 1 _ACEOF fi done # Check for available shared memory functions #PAC_ARG_SHARED_MEMORY #if test "$with_shared_memory" != "mmap" -a "$with_shared_memory" != "sysv"; then # AC_MSG_ERROR([cannot support shared memory: need either sysv shared memory functions or mmap in order to support shared memory]) #fi # Check whether --enable-nemesis-shm-collectives was given. if test "${enable_nemesis_shm_collectives+set}" = set; then : enableval=$enable_nemesis_shm_collectives; $as_echo "#define ENABLED_SHM_COLLECTIVES 1" >>confdefs.h fi # These are defines to turn on different optimizations. Turn them off only for testing $as_echo "#define MPID_NEM_INLINE 1" >>confdefs.h $as_echo "#define PREFETCH_CELL 1" >>confdefs.h $as_echo "#define USE_FASTBOX 1" >>confdefs.h # We may need this only for tcp and related netmodules # Check for h_addr or h_addr_list { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct hostent contains h_addr_list" >&5 $as_echo_n "checking whether struct hostent contains h_addr_list... " >&6; } if ${pac_cv_have_haddr_list+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { struct hostent hp;hp.h_addr_list[0]=0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_haddr_list=yes else pac_cv_have_haddr_list=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_haddr_list" >&5 $as_echo "$pac_cv_have_haddr_list" >&6; } if test "$pac_cv_have_haddr_list" = "yes" ; then $as_echo "#define HAVE_H_ADDR_LIST 1" >>confdefs.h fi # If we need the socket code, see if we can use struct ifconf # sys/socket.h is needed on Solaris { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use struct ifconf" >&5 $as_echo_n "checking whether we can use struct ifconf... " >&6; } if ${pac_cv_have_struct_ifconf+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #include int main () { struct ifconf conftest; int s; s = sizeof(conftest); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_struct_ifconf=yes else pac_cv_have_struct_ifconf=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_struct_ifconf" >&5 $as_echo "$pac_cv_have_struct_ifconf" >&6; } # Intentionally not testing whether _SVID_SOURCE or _POSIX_C_SOURCE affects # ifconf availability. Making those sort of modifications at this stage # invalidates nearly all of our previous tests, since those macros fundamentally # change many features of the compiler on most platforms. See ticket #1568. if test "$pac_cv_have_struct_ifconf" = "yes" ; then $as_echo "#define HAVE_STRUCT_IFCONF 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use struct ifreq" >&5 $as_echo_n "checking whether we can use struct ifreq... " >&6; } if ${pac_cv_have_struct_ifreq+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #include int main () { struct ifreq conftest; int s; s = sizeof(conftest); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_struct_ifreq=yes else pac_cv_have_struct_ifreq=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_struct_ifreq" >&5 $as_echo "$pac_cv_have_struct_ifreq" >&6; } if test "$pac_cv_have_struct_ifreq" = "yes" ; then $as_echo "#define HAVE_STRUCT_IFREQ 1" >>confdefs.h fi # Check for knem options # Check whether --with-knem was given. if test "${with_knem+set}" = set; then : withval=$with_knem; if test "${with_knem}" != "yes" -a "${with_knem}" != "no" ; then CPPFLAGS="$CPPFLAGS -I${with_knem}/include" fi fi # Check whether --with-knem-include was given. if test "${with_knem_include+set}" = set; then : withval=$with_knem_include; if test "${with_knem_include}" != "yes" -a "${with_knem_include}" != "no" ; then CPPFLAGS="$CPPFLAGS -I${with_knem_include}" fi fi for ac_header in knem_io.h do : ac_fn_c_check_header_mongrel "$LINENO" "knem_io.h" "ac_cv_header_knem_io_h" "$ac_includes_default" if test "x$ac_cv_header_knem_io_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_KNEM_IO_H 1 _ACEOF pac_cv_have_knem_io_h=yes else pac_cv_have_knem_io_h=no fi done if test "${pac_cv_have_knem_io_h}" = yes ; then $as_echo "#define HAVE_KNEM_IO_H 1" >>confdefs.h fi # allow the user to select different local LMT implementations # Check whether --with-nemesis-local-lmt was given. if test "${with_nemesis_local_lmt+set}" = set; then : withval=$with_nemesis_local_lmt; else with_nemesis_local_lmt=default fi case "$with_nemesis_local_lmt" in shm_copy|default) local_lmt_impl=MPID_NEM_LOCAL_LMT_SHM_COPY ;; dma|shm_dma|knem) if test "${pac_cv_have_knem_io_h}" != yes ; then as_fn_error $? "Failed to find knem_io.h for nemesis-local-lmt=knem" "$LINENO" 5 fi local_lmt_impl=MPID_NEM_LOCAL_LMT_DMA ;; vmsplice) local_lmt_impl=MPID_NEM_LOCAL_LMT_VMSPLICE ;; none) local_lmt_impl=MPID_NEM_LOCAL_LMT_NONE ;; *) as_fn_error $? "Unrecognized value $with_nemesis_local_lmt for --with-nemesis-local-lmt" "$LINENO" 5 ;; esac cat >>confdefs.h <<_ACEOF #define MPID_NEM_LOCAL_LMT_IMPL $local_lmt_impl _ACEOF # Check whether --enable-nemesis-lock-free-queues was given. if test "${enable_nemesis_lock_free_queues+set}" = set; then : enableval=$enable_nemesis_lock_free_queues; else enable_nemesis_lock_free_queues=yes fi if test "$enable_nemesis_lock_free_queues" = "yes" ; then $as_echo "#define MPID_NEM_USE_LOCK_FREE_QUEUES 1" >>confdefs.h fi AS=as ac_config_files="$ac_config_files src/mpid/ch3/channels/nemesis/include/mpid_nem_net_module_defs.h src/mpid/ch3/channels/nemesis/src/mpid_nem_net_array.c" fi ## end expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_nemesis ## begin expansion of PAC_SUBCFG_BODY_src_mpid_common_shm ## end expansion of PAC_SUBCFG_BODY_src_mpid_common_shm ## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_nemesis_netmod_ofi if test -z "$BUILD_NEMESIS_NETMOD_OFI_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch3:nemesis:ofi" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR ch3:nemesis:ofi" >&6;} # Check whether --with-ofi was given. if test "${with_ofi+set}" = set; then : withval=$with_ofi; else with_ofi= fi # Check whether --with-ofi-include was given. if test "${with_ofi_include+set}" = set; then : withval=$with_ofi_include; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ofi-include=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-ofi-include=PATH expects a valid PATH" >&2;} with_ofi_include="" ;; #( *) : ;; esac fi # Check whether --with-ofi-lib was given. if test "${with_ofi_lib+set}" = set; then : withval=$with_ofi_lib; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ofi-lib=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-ofi-lib=PATH expects a valid PATH" >&2;} with_ofi_lib="" ;; #( *) : ;; esac fi # The args have been sanitized into empty/non-empty values above. # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options # taking priority if test -n "${with_ofi_include}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_ofi_include}\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ofi_include}', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ofi_include}', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_ofi_include}" fi else if test -n "${with_ofi}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_ofi}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ofi}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ofi}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_ofi}/include" fi fi fi if test -n "${with_ofi_lib}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ofi_lib}\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ofi_lib}', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ofi_lib}', appending" >&5 LDFLAGS="$LDFLAGS -L${with_ofi_lib}" fi else if test -n "${with_ofi}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ofi}/lib\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ofi}/lib', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ofi}/lib', appending" >&5 LDFLAGS="$LDFLAGS -L${with_ofi}/lib" fi if test -d "${with_ofi}/lib64"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ofi}/lib64\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ofi}/lib64', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ofi}/lib64', appending" >&5 LDFLAGS="$LDFLAGS -L${with_ofi}/lib64" fi fi fi fi if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` failure=no ac_fn_c_check_header_mongrel "$LINENO" "rdma/fabric.h" "ac_cv_header_rdma_fabric_h" "$ac_includes_default" if test "x$ac_cv_header_rdma_fabric_h" = xyes; then : else failure=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fi_getinfo in -lfabric" >&5 $as_echo_n "checking for fi_getinfo in -lfabric... " >&6; } if ${ac_cv_lib_fabric_fi_getinfo+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfabric $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fabric_fi_getinfo=yes else ac_cv_lib_fabric_fi_getinfo=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fabric_fi_getinfo" >&5 $as_echo "$ac_cv_lib_fabric_fi_getinfo" >&6; } if test "x$ac_cv_lib_fabric_fi_getinfo" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBFABRIC 1 _ACEOF LIBS="-lfabric $LIBS" else failure=yes fi if test "$failure" = "no" ; then success=yes else success=no fi if test "$success" = "no" ; then as_fn_error $? "'rdma/fabric.h or libfabric library not found. Did you specify --with-ofi= or --with-ofi-include= or --with-ofi-lib=?'" "$LINENO" 5 fi if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lfabric\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lfabric', not appending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lfabric', appending" >&5 WRAPPER_LIBS="$WRAPPER_LIBS -lfabric" fi pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" $as_echo "#define ENABLE_COMM_OVERRIDES 1" >>confdefs.h fi ## end expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_nemesis_netmod_ofi ## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_nemesis_netmod_portals4 if test -z "$BUILD_NEMESIS_NETMOD_PORTALS4_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch3:nemesis:portals4" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR ch3:nemesis:portals4" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler defines __func__" >&5 $as_echo_n "checking whether the compiler defines __func__... " >&6; } if ${pac_cv_have__func__+:} false; then : $as_echo_n "(cached) " >&6 else tmp_am_cross=no if test "$cross_compiling" = yes; then : tmp_am_cross=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int foo(void); int foo(void) { return (strcmp(__func__, "foo") == 0); } int main(int argc, char ** argv) { return (foo() ? 0 : 1); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : pac_cv_have__func__=yes else pac_cv_have__func__=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$tmp_am_cross" = yes ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int foo(void); int foo(void) { return (strcmp(__func__, "foo") == 0); } int main(int argc, char ** argv) { return (foo() ? 0 : 1); } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_cv_have__func__=yes else pac_cv_have__func__=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have__func__" >&5 $as_echo "$pac_cv_have__func__" >&6; } if test "$pac_cv_have__func__" = "yes" ; then $as_echo "#define HAVE__FUNC__ /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler defines __FUNC__" >&5 $as_echo_n "checking whether the compiler defines __FUNC__... " >&6; } if ${pac_cv_have_cap__func__+:} false; then : $as_echo_n "(cached) " >&6 else tmp_am_cross=no if test "$cross_compiling" = yes; then : tmp_am_cross=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int foo(void); int foo(void) { return (strcmp(__FUNC__, "foo") == 0); } int main(int argc, char ** argv) { return (foo() ? 0 : 1); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : pac_cv_have_cap__func__=yes else pac_cv_have_cap__func__=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$tmp_am_cross" = yes ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int foo(void); int foo(void) { return (strcmp(__FUNC__, "foo") == 0); } int main(int argc, char ** argv) { return (foo() ? 0 : 1); } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_cv_have__func__=yes else pac_cv_have__func__=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_cap__func__" >&5 $as_echo "$pac_cv_have_cap__func__" >&6; } if test "$pac_cv_have_cap__func__" = "yes" ; then $as_echo "#define HAVE_CAP__FUNC__ /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler sets __FUNCTION__" >&5 $as_echo_n "checking whether the compiler sets __FUNCTION__... " >&6; } if ${pac_cv_have__function__+:} false; then : $as_echo_n "(cached) " >&6 else tmp_am_cross=no if test "$cross_compiling" = yes; then : tmp_am_cross=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int foo(void); int foo(void) { return (strcmp(__FUNCTION__, "foo") == 0); } int main(int argc, char ** argv) { return (foo() ? 0 : 1); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : pac_cv_have__function__=yes else pac_cv_have__function__=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "$tmp_am_cross" = yes ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int foo(void); int foo(void) { return (strcmp(__FUNCTION__, "foo") == 0); } int main(int argc, char ** argv) { return (foo() ? 0 : 1); } _ACEOF if ac_fn_c_try_link "$LINENO"; then : pac_cv_have__func__=yes else pac_cv_have__func__=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have__function__" >&5 $as_echo "$pac_cv_have__function__" >&6; } if test "$pac_cv_have__function__" = "yes" ; then $as_echo "#define HAVE__FUNCTION__ /**/" >>confdefs.h fi # Check whether --with-portals4 was given. if test "${with_portals4+set}" = set; then : withval=$with_portals4; else with_portals4= fi # Check whether --with-portals4-include was given. if test "${with_portals4_include+set}" = set; then : withval=$with_portals4_include; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-portals4-include=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-portals4-include=PATH expects a valid PATH" >&2;} with_portals4_include="" ;; #( *) : ;; esac fi # Check whether --with-portals4-lib was given. if test "${with_portals4_lib+set}" = set; then : withval=$with_portals4_lib; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-portals4-lib=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-portals4-lib=PATH expects a valid PATH" >&2;} with_portals4_lib="" ;; #( *) : ;; esac fi # The args have been sanitized into empty/non-empty values above. # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options # taking priority if test -n "${with_portals4_include}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_portals4_include}\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_portals4_include}', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_portals4_include}', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_portals4_include}" fi else if test -n "${with_portals4}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_portals4}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_portals4}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_portals4}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_portals4}/include" fi fi fi if test -n "${with_portals4_lib}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_portals4_lib}\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_portals4_lib}', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_portals4_lib}', appending" >&5 LDFLAGS="$LDFLAGS -L${with_portals4_lib}" fi else if test -n "${with_portals4}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_portals4}/lib\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_portals4}/lib', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_portals4}/lib', appending" >&5 LDFLAGS="$LDFLAGS -L${with_portals4}/lib" fi if test -d "${with_portals4}/lib64"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_portals4}/lib64\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_portals4}/lib64', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_portals4}/lib64', appending" >&5 LDFLAGS="$LDFLAGS -L${with_portals4}/lib64" fi fi fi fi if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` failure=no ac_fn_c_check_header_mongrel "$LINENO" "portals4.h" "ac_cv_header_portals4_h" "$ac_includes_default" if test "x$ac_cv_header_portals4_h" = xyes; then : else failure=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PtlInit in -lportals" >&5 $as_echo_n "checking for PtlInit in -lportals... " >&6; } if ${ac_cv_lib_portals_PtlInit+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lportals $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char PtlInit (); int main () { return PtlInit (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_portals_PtlInit=yes else ac_cv_lib_portals_PtlInit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portals_PtlInit" >&5 $as_echo "$ac_cv_lib_portals_PtlInit" >&6; } if test "x$ac_cv_lib_portals_PtlInit" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBPORTALS 1 _ACEOF LIBS="-lportals $LIBS" else failure=yes fi if test "$failure" = "no" ; then success=yes else success=no fi if test "$success" = "no" ; then as_fn_error $? "'portals4.h or libportals library not found. Did you specify --with-portals4= or --with-portals4-include= or --with-portals4-lib=?'" "$LINENO" 5 fi if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lportals\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lportals', not appending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lportals', appending" >&5 WRAPPER_LIBS="$WRAPPER_LIBS -lportals" fi pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" $as_echo "#define ENABLE_COMM_OVERRIDES 1" >>confdefs.h fi ## end expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_nemesis_netmod_portals4 ## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_nemesis_netmod_llc if test -z "$BUILD_NEMESIS_NETMOD_LLC_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch3:nemesis:llc" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR ch3:nemesis:llc" >&6;} # Check whether --with-libmemcached was given. if test "${with_libmemcached+set}" = set; then : withval=$with_libmemcached; else with_libmemcached= fi # Check whether --with-libmemcached-include was given. if test "${with_libmemcached_include+set}" = set; then : withval=$with_libmemcached_include; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-libmemcached-include=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-libmemcached-include=PATH expects a valid PATH" >&2;} with_libmemcached_include="" ;; #( *) : ;; esac fi # Check whether --with-libmemcached-lib was given. if test "${with_libmemcached_lib+set}" = set; then : withval=$with_libmemcached_lib; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-libmemcached-lib=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-libmemcached-lib=PATH expects a valid PATH" >&2;} with_libmemcached_lib="" ;; #( *) : ;; esac fi # The args have been sanitized into empty/non-empty values above. # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options # taking priority if test -n "${with_libmemcached_include}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_libmemcached_include}\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_libmemcached_include}', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_libmemcached_include}', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_libmemcached_include}" fi else if test -n "${with_libmemcached}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_libmemcached}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_libmemcached}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_libmemcached}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_libmemcached}/include" fi fi fi if test -n "${with_libmemcached_lib}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_libmemcached_lib}\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_libmemcached_lib}', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_libmemcached_lib}', appending" >&5 LDFLAGS="$LDFLAGS -L${with_libmemcached_lib}" fi else if test -n "${with_libmemcached}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_libmemcached}/lib\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_libmemcached}/lib', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_libmemcached}/lib', appending" >&5 LDFLAGS="$LDFLAGS -L${with_libmemcached}/lib" fi if test -d "${with_libmemcached}/lib64"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_libmemcached}/lib64\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_libmemcached}/lib64', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_libmemcached}/lib64', appending" >&5 LDFLAGS="$LDFLAGS -L${with_libmemcached}/lib64" fi fi fi fi # Check whether --with-ibverbs was given. if test "${with_ibverbs+set}" = set; then : withval=$with_ibverbs; else with_ibverbs= fi # Check whether --with-ibverbs-include was given. if test "${with_ibverbs_include+set}" = set; then : withval=$with_ibverbs_include; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ibverbs-include=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-ibverbs-include=PATH expects a valid PATH" >&2;} with_ibverbs_include="" ;; #( *) : ;; esac fi # Check whether --with-ibverbs-lib was given. if test "${with_ibverbs_lib+set}" = set; then : withval=$with_ibverbs_lib; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ibverbs-lib=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-ibverbs-lib=PATH expects a valid PATH" >&2;} with_ibverbs_lib="" ;; #( *) : ;; esac fi # The args have been sanitized into empty/non-empty values above. # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options # taking priority if test -n "${with_ibverbs_include}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_ibverbs_include}\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ibverbs_include}', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ibverbs_include}', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_ibverbs_include}" fi else if test -n "${with_ibverbs}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_ibverbs}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ibverbs}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ibverbs}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_ibverbs}/include" fi fi fi if test -n "${with_ibverbs_lib}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ibverbs_lib}\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ibverbs_lib}', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ibverbs_lib}', appending" >&5 LDFLAGS="$LDFLAGS -L${with_ibverbs_lib}" fi else if test -n "${with_ibverbs}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ibverbs}/lib\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ibverbs}/lib', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ibverbs}/lib', appending" >&5 LDFLAGS="$LDFLAGS -L${with_ibverbs}/lib" fi if test -d "${with_ibverbs}/lib64"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ibverbs}/lib64\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ibverbs}/lib64', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ibverbs}/lib64', appending" >&5 LDFLAGS="$LDFLAGS -L${with_ibverbs}/lib64" fi fi fi fi # Check whether --with-llc was given. if test "${with_llc+set}" = set; then : withval=$with_llc; else with_llc= fi # Check whether --with-llc-include was given. if test "${with_llc_include+set}" = set; then : withval=$with_llc_include; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-llc-include=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-llc-include=PATH expects a valid PATH" >&2;} with_llc_include="" ;; #( *) : ;; esac fi # Check whether --with-llc-lib was given. if test "${with_llc_lib+set}" = set; then : withval=$with_llc_lib; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-llc-lib=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-llc-lib=PATH expects a valid PATH" >&2;} with_llc_lib="" ;; #( *) : ;; esac fi # The args have been sanitized into empty/non-empty values above. # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options # taking priority if test -n "${with_llc_include}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_llc_include}\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_llc_include}', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_llc_include}', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_llc_include}" fi else if test -n "${with_llc}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_llc}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_llc}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_llc}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_llc}/include" fi fi fi if test -n "${with_llc_lib}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_llc_lib}\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_llc_lib}', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_llc_lib}', appending" >&5 LDFLAGS="$LDFLAGS -L${with_llc_lib}" fi else if test -n "${with_llc}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_llc}/lib\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_llc}/lib', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_llc}/lib', appending" >&5 LDFLAGS="$LDFLAGS -L${with_llc}/lib" fi if test -d "${with_llc}/lib64"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_llc}/lib64\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_llc}/lib64', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_llc}/lib64', appending" >&5 LDFLAGS="$LDFLAGS -L${with_llc}/lib64" fi fi fi fi failure=no ac_fn_c_check_header_mongrel "$LINENO" "libmemcached/memcached.h" "ac_cv_header_libmemcached_memcached_h" "$ac_includes_default" if test "x$ac_cv_header_libmemcached_memcached_h" = xyes; then : else failure=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcached in -lmemcached" >&5 $as_echo_n "checking for memcached in -lmemcached... " >&6; } if ${ac_cv_lib_memcached_memcached+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lmemcached $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char memcached (); int main () { return memcached (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_memcached_memcached=yes else ac_cv_lib_memcached_memcached=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcached_memcached" >&5 $as_echo "$ac_cv_lib_memcached_memcached" >&6; } if test "x$ac_cv_lib_memcached_memcached" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBMEMCACHED 1 _ACEOF LIBS="-lmemcached $LIBS" else failure=yes fi if test "$failure" = "no" ; then libmemcached_found=yes else libmemcached_found=no fi if test "${libmemcached_found}" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: libmemcached is going to be linked." >&5 $as_echo "$as_me: libmemcached is going to be linked." >&6;} else { $as_echo "$as_me:${as_lineno-$LINENO}: libmemcached was not found" >&5 $as_echo "$as_me: libmemcached was not found" >&6;} fi failure=no ac_fn_c_check_header_mongrel "$LINENO" "infiniband/verbs.h" "ac_cv_header_infiniband_verbs_h" "$ac_includes_default" if test "x$ac_cv_header_infiniband_verbs_h" = xyes; then : else failure=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibv_open_device in -libverbs" >&5 $as_echo_n "checking for ibv_open_device in -libverbs... " >&6; } if ${ac_cv_lib_ibverbs_ibv_open_device+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-libverbs $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ibv_open_device (); int main () { return ibv_open_device (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ibverbs_ibv_open_device=yes else ac_cv_lib_ibverbs_ibv_open_device=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibverbs_ibv_open_device" >&5 $as_echo "$ac_cv_lib_ibverbs_ibv_open_device" >&6; } if test "x$ac_cv_lib_ibverbs_ibv_open_device" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBIBVERBS 1 _ACEOF LIBS="-libverbs $LIBS" else failure=yes fi if test "$failure" = "no" ; then ibverbs_found=yes else ibverbs_found=no fi if test "${ibverbs_found}" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: libibverbs is going to be linked." >&5 $as_echo "$as_me: libibverbs is going to be linked." >&6;} else as_fn_error $? "Internal error: ibverbs was not found" "$LINENO" 5 fi failure=no ac_fn_c_check_header_mongrel "$LINENO" "llc.h" "ac_cv_header_llc_h" "$ac_includes_default" if test "x$ac_cv_header_llc_h" = xyes; then : else failure=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLC_init in -lllc" >&5 $as_echo_n "checking for LLC_init in -lllc... " >&6; } if ${ac_cv_lib_llc_LLC_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lllc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char LLC_init (); int main () { return LLC_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_llc_LLC_init=yes else ac_cv_lib_llc_LLC_init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_llc_LLC_init" >&5 $as_echo "$ac_cv_lib_llc_LLC_init" >&6; } if test "x$ac_cv_lib_llc_LLC_init" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBLLC 1 _ACEOF LIBS="-lllc $LIBS" else failure=yes fi if test "$failure" = "no" ; then llc_found=yes else llc_found=no fi if test "${llc_found}" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: libllc is going to be linked." >&5 $as_echo "$as_me: libllc is going to be linked." >&6;} else as_fn_error $? "Internal error: llc was not found" "$LINENO" 5 fi #AC_CHECK_HEADERS([stdlib.h dlfcn.h]) #AC_CHECK_FUNCS([dlopen]) #AC_SEARCH_LIBS([dlopen], [dl]) $as_echo "#define ENABLE_COMM_OVERRIDES 1" >>confdefs.h fi ## end expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_nemesis_netmod_llc ## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_nemesis_netmod_tcp # nothing to do for tcp right now ## end expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_nemesis_netmod_tcp ## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_nemesis_netmod_mxm if test -z "$BUILD_NEMESIS_NETMOD_MXM_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch3:nemesis:mxm" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR ch3:nemesis:mxm" >&6;} # Check whether --with-mxm was given. if test "${with_mxm+set}" = set; then : withval=$with_mxm; else with_mxm= fi # Check whether --with-mxm-include was given. if test "${with_mxm_include+set}" = set; then : withval=$with_mxm_include; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-mxm-include=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-mxm-include=PATH expects a valid PATH" >&2;} with_mxm_include="" ;; #( *) : ;; esac fi # Check whether --with-mxm-lib was given. if test "${with_mxm_lib+set}" = set; then : withval=$with_mxm_lib; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-mxm-lib=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-mxm-lib=PATH expects a valid PATH" >&2;} with_mxm_lib="" ;; #( *) : ;; esac fi # The args have been sanitized into empty/non-empty values above. # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options # taking priority if test -n "${with_mxm_include}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_mxm_include}\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_mxm_include}', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_mxm_include}', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_mxm_include}" fi else if test -n "${with_mxm}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_mxm}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_mxm}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_mxm}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_mxm}/include" fi fi fi if test -n "${with_mxm_lib}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_mxm_lib}\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_mxm_lib}', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_mxm_lib}', appending" >&5 LDFLAGS="$LDFLAGS -L${with_mxm_lib}" fi else if test -n "${with_mxm}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_mxm}/lib\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_mxm}/lib', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_mxm}/lib', appending" >&5 LDFLAGS="$LDFLAGS -L${with_mxm}/lib" fi if test -d "${with_mxm}/lib64"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_mxm}/lib64\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_mxm}/lib64', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_mxm}/lib64', appending" >&5 LDFLAGS="$LDFLAGS -L${with_mxm}/lib64" fi fi fi fi if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` failure=no ac_fn_c_check_header_mongrel "$LINENO" "mxm/api/mxm_api.h" "ac_cv_header_mxm_api_mxm_api_h" "$ac_includes_default" if test "x$ac_cv_header_mxm_api_mxm_api_h" = xyes; then : else failure=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mxm_get_version in -lmxm" >&5 $as_echo_n "checking for mxm_get_version in -lmxm... " >&6; } if ${ac_cv_lib_mxm_mxm_get_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lmxm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char mxm_get_version (); int main () { return mxm_get_version (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_mxm_mxm_get_version=yes else ac_cv_lib_mxm_mxm_get_version=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mxm_mxm_get_version" >&5 $as_echo "$ac_cv_lib_mxm_mxm_get_version" >&6; } if test "x$ac_cv_lib_mxm_mxm_get_version" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBMXM 1 _ACEOF LIBS="-lmxm $LIBS" else failure=yes fi if test "$failure" = "no" ; then success=yes else success=no fi if test "$success" = "no" ; then as_fn_error $? "'mxm/api/mxm_api.h or libmxm library not found. Did you specify --with-mxm= or --with-mxm-include= or --with-mxm-lib=?'" "$LINENO" 5 fi pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" ac_fn_c_check_header_mongrel "$LINENO" "mxm/api/mxm_api.h" "ac_cv_header_mxm_api_mxm_api_h" "$ac_includes_default" if test "x$ac_cv_header_mxm_api_mxm_api_h" = xyes; then : else as_fn_error $? "'mxm/api/mxm_api.h not found.'" "$LINENO" 5 fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include "mxm/api/mxm_version.h" #ifndef MXM_VERSION #error "MXM Version is less than 1.5, please upgrade" #endif # #if MXM_API < MXM_VERSION(3,1) #error "MXM Version is less than 3.1, please upgrade" #endif int main () { int a=0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : mxm_api_version=yes else mxm_api_version=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test "$mxm_api_version" = no ; then as_fn_error $? "'MXM API version Problem. Are you running a recent version of MXM (at least 3.1)?'" "$LINENO" 5 fi; $as_echo "#define ENABLE_COMM_OVERRIDES 1" >>confdefs.h if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lmxm\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lmxm', not appending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lmxm', appending" >&5 WRAPPER_LIBS="$WRAPPER_LIBS -lmxm" fi fi ## end expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_nemesis_netmod_mxm ## begin expansion of PAC_SUBCFG_BODY_src_mpid_common_thread if test -z "$BUILD_MPID_COMMON_THREAD_TRUE"; then : : fi ## end expansion of PAC_SUBCFG_BODY_src_mpid_common_thread ## begin expansion of PAC_SUBCFG_BODY_src_mpid_common_sched ## end expansion of PAC_SUBCFG_BODY_src_mpid_common_sched ## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_sock if test -z "$BUILD_CH3_SOCK_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch3:sock" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR ch3:sock" >&6;} # code that formerly lived in configure.ac cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : lac_cv_header_net_if_h=yes else lac_cv_header_net_if_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # FIXME why doesn't this use the proper machinery? echo "checking for net/if.h... $lac_cv_header_net_if_h" if test "$lac_cv_header_net_if_h" = "yes" ; then $as_echo "#define HAVE_NET_IF_H 1" >>confdefs.h fi for ac_header in \ netdb.h \ sys/ioctl.h \ sys/socket.h \ sys/sockio.h \ sys/types.h \ errno.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # netinet/in.h often requires sys/types.h first. With AC 2.57, check_headers # does the right thing, which is to test whether the header is found # by the compiler, but this can cause problems when the header needs # other headers. 2.57 changes the syntax (!) of check_headers to allow # additional headers. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netinet/in.h" >&5 $as_echo_n "checking for netinet/in.h... " >&6; } if ${ac_cv_header_netinet_in_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_SYS_TYPES_H #include #endif #include int main () { int a=0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_netinet_in_h=yes else ac_cv_header_netinet_in_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_netinet_in_h" >&5 $as_echo "$ac_cv_header_netinet_in_h" >&6; } if test "$ac_cv_header_netinet_in_h" = yes ; then $as_echo "#define HAVE_NETINET_IN_H 1" >>confdefs.h fi fi ## end expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_sock ## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch3_util_sock if test -z "$BUILD_CH3_UTIL_SOCK_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR CH3U SOCK CODE" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR CH3U SOCK CODE" >&6;} for ac_header in assert.h limits.h string.h sys/types.h sys/uio.h \ time.h ctype.h unistd.h arpa/inet.h sys/socket.h net/if.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # Check for special types ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" if test "x$ac_cv_type_pid_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define pid_t int _ACEOF fi # Check for functions for ac_func in inet_pton do : ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" if test "x$ac_cv_func_inet_pton" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_INET_PTON 1 _ACEOF fi done for ac_func in gethostname do : ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" if test "x$ac_cv_func_gethostname" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GETHOSTNAME 1 _ACEOF fi done if test "$ac_cv_func_gethostname" = "yes" ; then # Do we need to declare gethostname? { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostname needs a declaration" >&5 $as_echo_n "checking whether gethostname needs a declaration... " >&6; } if ${pac_cv_func_decl_gethostname+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include void (*fptr)(void) = (void(*)(void))gethostname; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_func_decl_gethostname=no else pac_cv_func_decl_gethostname=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_gethostname" >&5 $as_echo "$pac_cv_func_decl_gethostname" >&6; } if test "$pac_cv_func_decl_gethostname" = "yes" ; then cat >>confdefs.h <<_ACEOF #define NEEDS_GETHOSTNAME_DECL 1 _ACEOF fi fi # If we need the socket code, see if we can use struct ifconf # sys/socket.h is needed on Solaris { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use struct ifconf" >&5 $as_echo_n "checking whether we can use struct ifconf... " >&6; } if ${pac_cv_have_struct_ifconf+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef HAVE_SYS_SOCKET_H #include #endif #include int main () { struct ifconf conftest; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_struct_ifconf=yes else pac_cv_have_struct_ifconf=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_struct_ifconf" >&5 $as_echo "$pac_cv_have_struct_ifconf" >&6; } if test "$pac_cv_have_struct_ifconf" = "no" ; then # Try again with _SVID_SOURCE { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use struct ifconf with _SVID_SOURCE" >&5 $as_echo_n "checking whether we can use struct ifconf with _SVID_SOURCE... " >&6; } if ${pac_cv_have_struct_ifconf_with_svid+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _SVID_SOURCE #include #ifdef HAVE_SYS_SOCKET_H #include #endif #include int main () { struct ifconf conftest; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_struct_ifconf_with_svid=yes else pac_cv_have_struct_ifconf_with_svid=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_struct_ifconf_with_svid" >&5 $as_echo "$pac_cv_have_struct_ifconf_with_svid" >&6; } if test "$pac_cv_have_struct_ifconf_with_svid" = yes ; then $as_echo "#define USE_SVIDSOURCE_FOR_IFCONF 1" >>confdefs.h fi fi if test "$pac_cv_have_struct_ifconf" = "no" -a \ "$pac_cv_have_struct_ifconf_with_svid" = "no" ; then # Try again with undef _POSIX_C_SOURCE { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use struct ifconf without _POSIX_C_SOURCE" >&5 $as_echo_n "checking whether we can use struct ifconf without _POSIX_C_SOURCE... " >&6; } if ${pac_cv_have_struct_ifconf_without_posix+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #undef _POSIX_C_SOURCE #include #ifdef HAVE_SYS_SOCKET_H #include #endif #include int main () { struct ifconf conftest; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : pac_cv_have_struct_ifconf_without_posix=yes else pac_cv_have_struct_ifconf_without_posix=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_struct_ifconf_without_posix" >&5 $as_echo "$pac_cv_have_struct_ifconf_without_posix" >&6; } if test "$pac_cv_have_struct_ifconf_without_posix" = yes ; then $as_echo "#define USE_NOPOSIX_FOR_IFCONF 1" >>confdefs.h fi fi if test "$pac_cv_have_struct_ifconf" = "yes" -o \ "$pac_cv_have_struct_ifconf_with_svid" = "yes" -o \ "$pac_cv_have_struct_ifconf_without_posix" ; then $as_echo "#define HAVE_STRUCT_IFCONF 1" >>confdefs.h fi fi ## end expansion of PAC_SUBCFG_BODY_src_mpid_ch3_util_sock ## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch4_netmod_ofi if test -z "$BUILD_CH4_NETMOD_OFI_TRUE"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch4:ofi" >&5 $as_echo "$as_me: RUNNING CONFIGURE FOR ch4:ofi" >&6;} ofisrcdir="" ofilib="" ofi_embedded="" if test "${with_libfabric}" = "embedded" ; then ofi_embedded="yes" elif test -z "${with_libfabric}" && test -z "${with_libfabric_lib}" && test -z "${with_libfabric_include}" ; then if test -f ${use_top_srcdir}/src/mpid/ch4/netmod/ofi/libfabric/configure ; then ofi_embedded="yes" else ofi_embedded="no" # Check whether --with-libfabric was given. if test "${with_libfabric+set}" = set; then : withval=$with_libfabric; else with_libfabric= fi # Check whether --with-libfabric-include was given. if test "${with_libfabric_include+set}" = set; then : withval=$with_libfabric_include; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-libfabric-include=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-libfabric-include=PATH expects a valid PATH" >&2;} with_libfabric_include="" ;; #( *) : ;; esac fi # Check whether --with-libfabric-lib was given. if test "${with_libfabric_lib+set}" = set; then : withval=$with_libfabric_lib; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-libfabric-lib=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-libfabric-lib=PATH expects a valid PATH" >&2;} with_libfabric_lib="" ;; #( *) : ;; esac fi # The args have been sanitized into empty/non-empty values above. # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options # taking priority if test -n "${with_libfabric_include}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_libfabric_include}\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_libfabric_include}', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_libfabric_include}', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_libfabric_include}" fi else if test -n "${with_libfabric}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_libfabric}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_libfabric}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_libfabric}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_libfabric}/include" fi fi fi if test -n "${with_libfabric_lib}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_libfabric_lib}\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_libfabric_lib}', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_libfabric_lib}', appending" >&5 LDFLAGS="$LDFLAGS -L${with_libfabric_lib}" fi else if test -n "${with_libfabric}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_libfabric}/lib\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_libfabric}/lib', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_libfabric}/lib', appending" >&5 LDFLAGS="$LDFLAGS -L${with_libfabric}/lib" fi if test -d "${with_libfabric}/lib64"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_libfabric}/lib64\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_libfabric}/lib64', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_libfabric}/lib64', appending" >&5 LDFLAGS="$LDFLAGS -L${with_libfabric}/lib64" fi fi fi fi fi else ofi_embedded="no" # Check whether --with-libfabric was given. if test "${with_libfabric+set}" = set; then : withval=$with_libfabric; else with_libfabric= fi # Check whether --with-libfabric-include was given. if test "${with_libfabric_include+set}" = set; then : withval=$with_libfabric_include; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-libfabric-include=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-libfabric-include=PATH expects a valid PATH" >&2;} with_libfabric_include="" ;; #( *) : ;; esac fi # Check whether --with-libfabric-lib was given. if test "${with_libfabric_lib+set}" = set; then : withval=$with_libfabric_lib; case "$withval" in #( yes|no|'') : { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-libfabric-lib=PATH expects a valid PATH" >&5 $as_echo "$as_me: WARNING: --without-libfabric-lib=PATH expects a valid PATH" >&2;} with_libfabric_lib="" ;; #( *) : ;; esac fi # The args have been sanitized into empty/non-empty values above. # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options # taking priority if test -n "${with_libfabric_include}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_libfabric_include}\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_libfabric_include}', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_libfabric_include}', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_libfabric_include}" fi else if test -n "${with_libfabric}"; then : if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_libfabric}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_libfabric}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_libfabric}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${with_libfabric}/include" fi fi fi if test -n "${with_libfabric_lib}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_libfabric_lib}\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_libfabric_lib}', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_libfabric_lib}', appending" >&5 LDFLAGS="$LDFLAGS -L${with_libfabric_lib}" fi else if test -n "${with_libfabric}"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_libfabric}/lib\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_libfabric}/lib', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_libfabric}/lib', appending" >&5 LDFLAGS="$LDFLAGS -L${with_libfabric}/lib" fi if test -d "${with_libfabric}/lib64"; then : if echo "$LDFLAGS" | $FGREP -e "\<-L${with_libfabric}/lib64\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-L${with_libfabric}/lib64', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_libfabric}/lib64', appending" >&5 LDFLAGS="$LDFLAGS -L${with_libfabric}/lib64" fi fi fi fi fi runtime_capabilities="no" no_providers="no" # $netmod_args - contains the OFI provider if test "${netmod_args#* }" != "$netmod_args" ; then runtime_capabilities="yes" { $as_echo "$as_me:${as_lineno-$LINENO}: Using runtime capability set due to multiple selected providers" >&5 $as_echo "$as_me: Using runtime capability set due to multiple selected providers" >&6;} elif test "x$netmod_args" = "x" || test "$netmod_args" = "runtime"; then runtime_capabilities="yes" no_providers="yes" { $as_echo "$as_me:${as_lineno-$LINENO}: Using runtime capability set due to no selected provider or explicity runtime selection" >&5 $as_echo "$as_me: Using runtime capability set due to no selected provider or explicity runtime selection" >&6;} fi if test "$no_providers" = "no" ; then enable_psm="no" enable_psm2="no" enable_sockets="no" enable_verbs="no" enable_usnic="no" enable_gni="no" enable_bgq="no" enable_udp="no" enable_rxm="no" enable_rxd="no" enable_tcp="no" enable_shm="no" enable_mlx="no" else enable_psm="yes" enable_psm2="yes" enable_sockets="yes" enable_verbs="yes" enable_usnic="yes" enable_gni="yes" enable_bgq="yes" enable_udp="yes" enable_rxm="yes" enable_rxd="yes" enable_tcp="yes" enable_shm="yes" enable_mlx="yes" fi for provider in $netmod_args ; do case "$provider" in "psm") enable_psm="yes" ;; "psm2" | "opa") enable_psm2="yes" ;; "sockets") enable_sockets="yes" ;; "gni") enable_gni="yes" ;; "bgq") enable_bgq="yes" ;; "verbs") enable_verbs="yes" runtime_capabilities="yes" ;; "usnic") enable_usnic="yes" runtime_capabilities="yes" ;; "udp") enable_udp="yes" runtime_capabilities="yes" ;; "rxm") enable_rxm="yes" runtime_capabilities="yes" ;; "rxd") enable_rxd="yes" runtime_capabilities="yes" ;; "tcp") enable_tcp="yes" runtime_capabilities="yes" ;; "shm") enable_shm="yes" runtime_capabilities="yes" ;; "mlx") enable_mlx="yes" runtime_capabilities="yes" ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Invalid provider $provider\"" >&5 $as_echo "$as_me: WARNING: \"Invalid provider $provider\"" >&2;} esac done if test "$runtime_capabilities" = "yes" ; then $as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h else case "$netmod_args" in "psm") $as_echo "#define MPIDI_CH4_OFI_USE_SET_PSM 1" >>confdefs.h enable_psm="yes" ;; "psm2" | "opa") $as_echo "#define MPIDI_CH4_OFI_USE_SET_PSM2 1" >>confdefs.h enable_psm2="yes" ;; "sockets") $as_echo "#define MPIDI_CH4_OFI_USE_SET_SOCKETS 1" >>confdefs.h enable_sockets="yes" ;; "gni") $as_echo "#define MPIDI_CH4_OFI_USE_SET_GNI 1" >>confdefs.h enable_gni="yes" ;; "bgq") $as_echo "#define MPIDI_CH4_OFI_USE_SET_BGQ 1" >>confdefs.h enable_bgq="yes" ;; "verbs") $as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h enable_verbs="yes" ;; "usnic") $as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h enable_usnic="yes" ;; "udp") $as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h enable_udp="yes" ;; "rxm") $as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h enable_rxm="yes" ;; "rxd") $as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h enable_rxd="yes" ;; "tcp") $as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h enable_tcp="yes" ;; "shm") $as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h enable_shm="yes" ;; "mlx") $as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h enable_mlx="yes" ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Invalid provider $netmod_args\"" >&5 $as_echo "$as_me: WARNING: \"Invalid provider $netmod_args\"" >&2;} esac fi if test "${ofi_embedded}" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: CH4 OFI Netmod: Using an embedded libfabric" >&5 $as_echo "$as_me: CH4 OFI Netmod: Using an embedded libfabric" >&6;} ofi_subdir_args="--enable-embedded" prov_config="" if test "x${netmod_args}" != "x" ; then prov_config+=" --enable-psm=${enable_psm}" prov_config+=" --enable-psm2=${enable_psm2}" prov_config+=" --enable-sockets=${enable_sockets}" prov_config+=" --enable-verbs=${enable_verbs}" prov_config+=" --enable-usnic=${enable_usnic}" prov_config+=" --enable-gni=${enable_gni}" prov_config+=" --enable-bgq=${enable_bgq}" prov_config+=" --enable-udp=${enable_udp}" prov_config+=" --enable-rxm=${enable_rxm}" prov_config+=" --enable-rxd=${enable_rxd}" prov_config+=" --enable-tcp=${enable_tcp}" prov_config+=" --enable-shm=${enable_shm}" prov_config+=" --enable-mlx=${enable_mlx}" fi if test "x${ofi_direct_provider}" != "x" ; then prov_config+=" --enable-direct=${ofi_direct_provider}" { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling direct embedded provider: ${ofi_direct_provider}" >&5 $as_echo "$as_me: Enabling direct embedded provider: ${ofi_direct_provider}" >&6;} fi ofi_subdir_args+=" $prov_config" if test -z "${pac_save_CFLAGS_nesting}" ; then pac_save_CFLAGS_nesting=0 fi eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"' pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1` if test -z "${pac_save_CPPFLAGS_nesting}" ; then pac_save_CPPFLAGS_nesting=0 fi eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}='"$CPPFLAGS"' pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} + 1` if test -z "${pac_save_CXXFLAGS_nesting}" ; then pac_save_CXXFLAGS_nesting=0 fi eval pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}='"$CXXFLAGS"' pac_save_CXXFLAGS_nesting=`expr ${pac_save_CXXFLAGS_nesting} + 1` if test -z "${pac_save_FFLAGS_nesting}" ; then pac_save_FFLAGS_nesting=0 fi eval pac_save_FFLAGS_${pac_save_FFLAGS_nesting}='"$FFLAGS"' pac_save_FFLAGS_nesting=`expr ${pac_save_FFLAGS_nesting} + 1` if test -z "${pac_save_FCFLAGS_nesting}" ; then pac_save_FCFLAGS_nesting=0 fi eval pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}='"$FCFLAGS"' pac_save_FCFLAGS_nesting=`expr ${pac_save_FCFLAGS_nesting} + 1` if test -z "${pac_save_LDFLAGS_nesting}" ; then pac_save_LDFLAGS_nesting=0 fi eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"' pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1` if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` if test "$FROM_MPICH" = "yes" ; then CFLAGS="$USER_CFLAGS" CPPFLAGS="$USER_CPPFLAGS" CXXFLAGS="$USER_CXXFLAGS" FFLAGS="$USER_FFLAGS" FCFLAGS="$USER_FCFLAGS" LDFLAGS="$USER_LDFLAGS" LIBS="$USER_LIBS" fi pac_dir="src/mpid/ch4/netmod/ofi/libfabric" { $as_echo "$as_me:${as_lineno-$LINENO}: ===== configuring src/mpid/ch4/netmod/ofi/libfabric =====" >&5 $as_echo "$as_me: ===== configuring src/mpid/ch4/netmod/ofi/libfabric =====" >&6;} pac_abs_srcdir=`(cd $srcdir && pwd)` if test -f $pac_abs_srcdir/src/mpid/ch4/netmod/ofi/libfabric/setup ; then { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/src/mpid/ch4/netmod/ofi/libfabric/setup" >&5 $as_echo "$as_me: sourcing $pac_abs_srcdir/src/mpid/ch4/netmod/ofi/libfabric/setup" >&6;} . $pac_abs_srcdir/src/mpid/ch4/netmod/ofi/libfabric/setup fi # Adapted for MPICH from the autoconf-2.67 implementation of # AC_CONFIG_SUBDIRS. Search for "MPICH note:" for relevant commentary and # local modifications. # Remove --cache-file, --srcdir, and --disable-option-checking arguments # so they do not pile up. Otherwise relative paths (like --srcdir=.. from # make distcheck) will be incorrect. pac_sub_configure_args="$ofi_subdir_args" pac_prev= eval "set x $ac_configure_args" shift for pac_arg do if test -n "$pac_prev"; then pac_prev= continue fi case $pac_arg in -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) pac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | --c=*) ;; --config-cache | -C) ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) pac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) pac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ;; --disable-option-checking) ;; *) # MPICH note: this is a more robust version of the "precious # variable" propagation code that was present in the previous # incarnation of this macro for pac_pvar in $ac_precious_vars ; do # check if configure argument token contains the # precious variable, i.e. "name_of_prec_var=". if ( echo $pac_arg | grep "^$pac_pvar=" >/dev/null 2>&1 ) ; then # check if current precious variable is set in env eval pvar_set=\${$pac_pvar+set} if test "$pvar_set" = "set" ; then # Append 'name_of_prec_var=value_of_prec_var' # to the subconfigure arguments list, where # value_of_prec_var is fetched from the env. # this also overrides any value set on the command line eval pac_pval=\${$pac_pvar} pac_arg="$pac_pvar=$pac_pval" break fi fi done case $pac_arg in *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append pac_sub_configure_args " '$pac_arg'" ;; esac done # Always prepend --prefix to ensure using the same prefix # in subdir configurations. # MPICH note: see tt#983 for an example of why this is necessary pac_arg="--prefix=$prefix" case $pac_arg in *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac pac_sub_configure_args="'$pac_arg' $pac_sub_configure_args" # Pass --silent if test "$silent" = yes; then pac_sub_configure_args="--silent $pac_sub_configure_args" fi # Always prepend --disable-option-checking to silence warnings, since # different subdirs can have different --enable and --with options. pac_sub_configure_args="--disable-option-checking $pac_sub_configure_args" pac_popdir=`pwd` # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. test -d "$srcdir/$pac_dir" || continue # MPICH note: modified to remove the internal "_AS_*" macro usage, also # msg is already printed at top as_dir="$pac_dir"; as_fn_mkdir_p # MPICH note: we leave this internal macro reference for now. We can clone # the macro locally if this turns out to be non-portable across several autoconf # versions. It sets the following variables: ac_builddir, # ac_top_builddir_sub, ac_top_build_prefix, ac_srcdir, ac_top_srcdir, # ac_abs_top_builddir, ac_abs_builddir, ac_abs_top_srcdir, ac_abs_srcdir ac_builddir=. case "$pac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$pac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$pac_dir" # Check for guested configure; otherwise get Cygnus style configure. if test -f "$ac_srcdir/configure.gnu"; then pac_sub_configure=$ac_srcdir/configure.gnu elif test -f "$ac_srcdir/configure"; then pac_sub_configure=$ac_srcdir/configure elif test -f "$ac_srcdir/configure.ac"; then # This should be Cygnus configure. pac_sub_configure=$ac_aux_dir/configure else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $pac_dir" >&5 $as_echo "$as_me: WARNING: no configuration information is in $pac_dir" >&2;} pac_sub_configure= fi # The recursion is here. if test -n "$pac_sub_configure"; then # MPICH note: overriding the cache file on purpose to prevent strange # issues resulting from inter-dir caching pac_sub_cache_file="/dev/null" { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&5 $as_echo "$as_me: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. # MPICH note: we want to execute the provided actions, not be silent # or error out if the subconfigure succeeded/failed if eval "\$SHELL \"\$pac_sub_configure\" $pac_sub_configure_args \ --cache-file=\"\$pac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" then # restore the current dir for the provided actions cd "$pac_popdir" else # restore the current dir for the provided actions cd "$pac_popdir" as_fn_error $? "libfabric configure failed" "$LINENO" 5 fi fi cd "$pac_popdir" { $as_echo "$as_me:${as_lineno-$LINENO}: ===== done with src/mpid/ch4/netmod/ofi/libfabric configure =====" >&5 $as_echo "$as_me: ===== done with src/mpid/ch4/netmod/ofi/libfabric configure =====" >&6;} # Check for any localdefs files. These may be created, so we # look in the local directory first. if test -f src/mpid/ch4/netmod/ofi/libfabric/localdefs ; then { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing src/mpid/ch4/netmod/ofi/libfabric/localdefs" >&5 $as_echo "$as_me: sourcing src/mpid/ch4/netmod/ofi/libfabric/localdefs" >&6;} . src/mpid/ch4/netmod/ofi/libfabric/localdefs elif test -f $pac_abs_srcdir/src/mpid/ch4/netmod/ofi/libfabric/localdefs ; then { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/src/mpid/ch4/netmod/ofi/libfabric/localdefs" >&5 $as_echo "$as_me: sourcing $pac_abs_srcdir/src/mpid/ch4/netmod/ofi/libfabric/localdefs" >&6;} . $pac_abs_srcdir/src/mpid/ch4/netmod/ofi/libfabric/localdefs fi pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1` eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}" eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}="" pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} - 1` eval CPPFLAGS="\$pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}" eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}="" pac_save_CXXFLAGS_nesting=`expr ${pac_save_CXXFLAGS_nesting} - 1` eval CXXFLAGS="\$pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}" eval pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}="" pac_save_FFLAGS_nesting=`expr ${pac_save_FFLAGS_nesting} - 1` eval FFLAGS="\$pac_save_FFLAGS_${pac_save_FFLAGS_nesting}" eval pac_save_FFLAGS_${pac_save_FFLAGS_nesting}="" pac_save_FCFLAGS_nesting=`expr ${pac_save_FCFLAGS_nesting} - 1` eval FCFLAGS="\$pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}" eval pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}="" pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1` eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}" eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}="" pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" if echo "$CPPFLAGS" | $FGREP -e "\<-I${master_top_builddir}/src/mpid/ch4/netmod/ofi/libfabric/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${master_top_builddir}/src/mpid/ch4/netmod/ofi/libfabric/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${master_top_builddir}/src/mpid/ch4/netmod/ofi/libfabric/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${master_top_builddir}/src/mpid/ch4/netmod/ofi/libfabric/include" fi if echo "$CPPFLAGS" | $FGREP -e "\<-I${use_top_srcdir}/src/mpid/ch4/netmod/ofi/libfabric/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${use_top_srcdir}/src/mpid/ch4/netmod/ofi/libfabric/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${use_top_srcdir}/src/mpid/ch4/netmod/ofi/libfabric/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${use_top_srcdir}/src/mpid/ch4/netmod/ofi/libfabric/include" fi if test "x$ofi_direct_provider" != "x" ; then if echo "$CPPFLAGS" | $FGREP -e "\<-I${master_top_builddir}/src/mpid/ch4/netmod/ofi/libfabric/prov/${ofi_direct_provider}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${master_top_builddir}/src/mpid/ch4/netmod/ofi/libfabric/prov/${ofi_direct_provider}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${master_top_builddir}/src/mpid/ch4/netmod/ofi/libfabric/prov/${ofi_direct_provider}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${master_top_builddir}/src/mpid/ch4/netmod/ofi/libfabric/prov/${ofi_direct_provider}/include" fi if echo "$CPPFLAGS" | $FGREP -e "\<-I${use_top_srcdir}/src/mpid/ch4/netmod/ofi/libfabric/prov/${ofi_direct_provider}/include\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-I${use_top_srcdir}/src/mpid/ch4/netmod/ofi/libfabric/prov/${ofi_direct_provider}/include', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${use_top_srcdir}/src/mpid/ch4/netmod/ofi/libfabric/prov/${ofi_direct_provider}/include', appending" >&5 CPPFLAGS="$CPPFLAGS -I${use_top_srcdir}/src/mpid/ch4/netmod/ofi/libfabric/prov/${ofi_direct_provider}/include" fi if echo "$CPPFLAGS" | $FGREP -e "\<-DFABRIC_DIRECT\>" >/dev/null 2>&1; then : echo "CPPFLAGS(='$CPPFLAGS') contains '-DFABRIC_DIRECT', not appending" >&5 else echo "CPPFLAGS(='$CPPFLAGS') does not contain '-DFABRIC_DIRECT', appending" >&5 CPPFLAGS="$CPPFLAGS -DFABRIC_DIRECT" fi fi ofisrcdir="${master_top_builddir}/src/mpid/ch4/netmod/ofi/libfabric" ofilib="src/mpid/ch4/netmod/ofi/libfabric/src/libfabric.la" else if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` failure=no ac_fn_c_check_header_mongrel "$LINENO" "rdma/fabric.h" "ac_cv_header_rdma_fabric_h" "$ac_includes_default" if test "x$ac_cv_header_rdma_fabric_h" = xyes; then : else failure=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fi_getinfo in -lfabric" >&5 $as_echo_n "checking for fi_getinfo in -lfabric... " >&6; } if ${ac_cv_lib_fabric_fi_getinfo+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfabric $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fi_getinfo (); int main () { return fi_getinfo (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_fabric_fi_getinfo=yes else ac_cv_lib_fabric_fi_getinfo=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fabric_fi_getinfo" >&5 $as_echo "$ac_cv_lib_fabric_fi_getinfo" >&6; } if test "x$ac_cv_lib_fabric_fi_getinfo" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBFABRIC 1 _ACEOF LIBS="-lfabric $LIBS" else failure=yes fi if test "$failure" = "no" ; then have_libfabric=yes else have_libfabric=no fi pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" if test "${have_libfabric}" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: CH4 OFI Netmod: Using an external libfabric" >&5 $as_echo "$as_me: CH4 OFI Netmod: Using an external libfabric" >&6;} if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lfabric\>" >/dev/null 2>&1; then : echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lfabric', not appending" >&5 else echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lfabric', appending" >&5 WRAPPER_LIBS="$WRAPPER_LIBS -lfabric" fi else as_fn_error $? "Provided libfabric installation (--with-libfabric=${with_libfabric}) could not be configured." "$LINENO" 5 fi fi # Check for required functions # Does MPL provide MPL_aligned_malloc? cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef MPL_DEFINE_ALIGNED_ALLOC # error #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else as_fn_error $? "MPL_aligned_alloc is required to build OFI netmod" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ## end expansion of PAC_SUBCFG_BODY_src_mpid_ch4_netmod_ofi # now configure any actual recursively configures subsystems, such as ROMIO and # hydra, or older components that haven't been updated to a subconfigure.m4 yet for subsys in $devsubsystems $subsystems ; do pac_dir="$subsys" { $as_echo "$as_me:${as_lineno-$LINENO}: ===== configuring $subsys =====" >&5 $as_echo "$as_me: ===== configuring $subsys =====" >&6;} pac_abs_srcdir=`(cd $srcdir && pwd)` if test -f $pac_abs_srcdir/$subsys/setup ; then { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/$subsys/setup" >&5 $as_echo "$as_me: sourcing $pac_abs_srcdir/$subsys/setup" >&6;} . $pac_abs_srcdir/$subsys/setup fi # Adapted for MPICH from the autoconf-2.67 implementation of # AC_CONFIG_SUBDIRS. Search for "MPICH note:" for relevant commentary and # local modifications. # Remove --cache-file, --srcdir, and --disable-option-checking arguments # so they do not pile up. Otherwise relative paths (like --srcdir=.. from # make distcheck) will be incorrect. pac_sub_configure_args="" pac_prev= eval "set x $ac_configure_args" shift for pac_arg do if test -n "$pac_prev"; then pac_prev= continue fi case $pac_arg in -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) pac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | --c=*) ;; --config-cache | -C) ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) pac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) pac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ;; --disable-option-checking) ;; *) # MPICH note: this is a more robust version of the "precious # variable" propagation code that was present in the previous # incarnation of this macro for pac_pvar in $ac_precious_vars ; do # check if configure argument token contains the # precious variable, i.e. "name_of_prec_var=". if ( echo $pac_arg | grep "^$pac_pvar=" >/dev/null 2>&1 ) ; then # check if current precious variable is set in env eval pvar_set=\${$pac_pvar+set} if test "$pvar_set" = "set" ; then # Append 'name_of_prec_var=value_of_prec_var' # to the subconfigure arguments list, where # value_of_prec_var is fetched from the env. # this also overrides any value set on the command line eval pac_pval=\${$pac_pvar} pac_arg="$pac_pvar=$pac_pval" break fi fi done case $pac_arg in *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append pac_sub_configure_args " '$pac_arg'" ;; esac done # Always prepend --prefix to ensure using the same prefix # in subdir configurations. # MPICH note: see tt#983 for an example of why this is necessary pac_arg="--prefix=$prefix" case $pac_arg in *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac pac_sub_configure_args="'$pac_arg' $pac_sub_configure_args" # Pass --silent if test "$silent" = yes; then pac_sub_configure_args="--silent $pac_sub_configure_args" fi # Always prepend --disable-option-checking to silence warnings, since # different subdirs can have different --enable and --with options. pac_sub_configure_args="--disable-option-checking $pac_sub_configure_args" pac_popdir=`pwd` # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. test -d "$srcdir/$pac_dir" || continue # MPICH note: modified to remove the internal "_AS_*" macro usage, also # msg is already printed at top as_dir="$pac_dir"; as_fn_mkdir_p # MPICH note: we leave this internal macro reference for now. We can clone # the macro locally if this turns out to be non-portable across several autoconf # versions. It sets the following variables: ac_builddir, # ac_top_builddir_sub, ac_top_build_prefix, ac_srcdir, ac_top_srcdir, # ac_abs_top_builddir, ac_abs_builddir, ac_abs_top_srcdir, ac_abs_srcdir ac_builddir=. case "$pac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$pac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$pac_dir" # Check for guested configure; otherwise get Cygnus style configure. if test -f "$ac_srcdir/configure.gnu"; then pac_sub_configure=$ac_srcdir/configure.gnu elif test -f "$ac_srcdir/configure"; then pac_sub_configure=$ac_srcdir/configure elif test -f "$ac_srcdir/configure.ac"; then # This should be Cygnus configure. pac_sub_configure=$ac_aux_dir/configure else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $pac_dir" >&5 $as_echo "$as_me: WARNING: no configuration information is in $pac_dir" >&2;} pac_sub_configure= fi # The recursion is here. if test -n "$pac_sub_configure"; then # MPICH note: overriding the cache file on purpose to prevent strange # issues resulting from inter-dir caching pac_sub_cache_file="/dev/null" { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&5 $as_echo "$as_me: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. # MPICH note: we want to execute the provided actions, not be silent # or error out if the subconfigure succeeded/failed if eval "\$SHELL \"\$pac_sub_configure\" $pac_sub_configure_args \ --cache-file=\"\$pac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" then # restore the current dir for the provided actions cd "$pac_popdir" else # restore the current dir for the provided actions cd "$pac_popdir" as_fn_error $? "$subsys configure failed" "$LINENO" 5 fi fi cd "$pac_popdir" { $as_echo "$as_me:${as_lineno-$LINENO}: ===== done with $subsys configure =====" >&5 $as_echo "$as_me: ===== done with $subsys configure =====" >&6;} # Check for any localdefs files. These may be created, so we # look in the local directory first. if test -f $subsys/localdefs ; then { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $subsys/localdefs" >&5 $as_echo "$as_me: sourcing $subsys/localdefs" >&6;} . $subsys/localdefs elif test -f $pac_abs_srcdir/$subsys/localdefs ; then { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/$subsys/localdefs" >&5 $as_echo "$as_me: sourcing $pac_abs_srcdir/$subsys/localdefs" >&6;} . $pac_abs_srcdir/$subsys/localdefs fi done if test "$DEBUG_SUBDIR_CACHE" = yes -a "$enable_echo" != yes ; then set +x fi # Make subsystems available to makefiles. # FIXME does the makefile actually need this? subsystems="$devsubsystems $subsystems $bindingsubsystems" # Find the size of OPA_ptr_t. This step needs to come after the OPA # configure above in order to get the size OPA_ptr_t evaluated for # this platform. # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of OPA_ptr_t" >&5 $as_echo_n "checking size of OPA_ptr_t... " >&6; } if ${ac_cv_sizeof_OPA_ptr_t+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (OPA_ptr_t))" "ac_cv_sizeof_OPA_ptr_t" " #include \"${master_top_srcdir}/src/openpa/src/opa_primitives.h\" pthread_mutex_t *OPA_emulation_lock; "; then : else if test "$ac_cv_type_OPA_ptr_t" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (OPA_ptr_t) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_OPA_ptr_t=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_OPA_ptr_t" >&5 $as_echo "$ac_cv_sizeof_OPA_ptr_t" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_OPA_PTR_T $ac_cv_sizeof_OPA_ptr_t _ACEOF if test "$enable_f77" != "yes" ; then # These are Fortran datatypes ONLY. Set to null if no Fortran compiler. # Removed the invalid 2COMPLEX and 2DOUBLE_COMPLEX for name in CHARACTER INTEGER REAL LOGICAL COMPLEX DOUBLE_PRECISION \ 2INTEGER 2REAL DOUBLE_COMPLEX 2DOUBLE_PRECISION ; do fullname="MPI_$name" eval $fullname=MPI_DATATYPE_NULL done { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not define Fortran MPI datatypes for C" >&5 $as_echo "$as_me: WARNING: Could not define Fortran MPI datatypes for C" >&2;} $as_echo "#define HAVE_NO_FORTRAN_MPI_TYPES_IN_C 1" >>confdefs.h # Temporary values for MPI_Fint (need help from the Fortran subsystem) MPI_FINT=int fi # If ROMIO was successfully configured, then ROMIO will have exported the # definition of MPI_OFFSET_TYPE through its localdefs file (created by the # ROMIO configure in src/mpi/romio/localdefs). If MPI_OFFSET_TYPE was not # defined, this code attempts to find a good choice for MPI_OFFSET_TYPE # (As the offset type is used for File operations, the specific type # really doesn't matter if ROMIO doesn't provide it). if test -n "$MPI_OFFSET_TYPE" ; then # We got the value from the ROMIO configure MPI_OFFSET="$MPI_OFFSET_TYPE" # Get and export the size of this type if possible if test -z "$MPI_SIZEOF_OFFSET" ; then # set a default { $as_echo "$as_me:${as_lineno-$LINENO}: checking the sizeof MPI_Offset" >&5 $as_echo_n "checking the sizeof MPI_Offset... " >&6; } if ${ac_cv_sizeof_MPI_Offset+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_sizeof_MPI_Offset=unknown if ac_fn_c_compute_int "$LINENO" "sizeof($MPI_OFFSET)" "ac_cv_sizeof_MPI_Offset" ""; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to determine the size of MPI_Offset" >&5 $as_echo "$as_me: WARNING: Unable to determine the size of MPI_Offset" >&2;} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_MPI_Offset" >&5 $as_echo "$ac_cv_sizeof_MPI_Offset" >&6; } if test "$ac_cv_sizeof_MPI_Offset" != "unknown" ; then MPI_SIZEOF_OFFSET=$ac_cv_sizeof_MPI_Offset fi fi export MPI_SIZEOF_OFFSET else # Make a guess at the appropriate definition for offset. Try to # find a 64bit type. if test "$ac_cv_sizeof_long" = 8 ; then MPI_OFFSET="long" # Make the size of this type available to other configures MPI_SIZEOF_OFFSET=8 elif test "$ac_cv_sizeof_long_long" = 8 ; then MPI_OFFSET="long long" # Make the size of this type available to other configures MPI_SIZEOF_OFFSET=8 else MPI_OFFSET=long MPI_SIZEOF_OFFSET=$ac_cv_sizeof_long fi export MPI_SIZEOF_OFFSET fi case $MPI_OFFSET in #( int) : MPIR_OFFSET_MAX="INT_MAX" ;; #( long) : MPIR_OFFSET_MAX="LONG_MAX" ;; #( 'long long') : MPIR_OFFSET_MAX="LLONG_MAX" ;; #( short) : MPIR_OFFSET_MAX="SHRT_MAX" ;; #( *) : as_fn_error $? "unable to determine MPIR_OFFSET_MAX for MPI_Offset" "$LINENO" 5 ;; esac cat >>confdefs.h <<_ACEOF #define MPIR_OFFSET_MAX $MPIR_OFFSET_MAX _ACEOF # FIXME: we need an explanation of why we need both MPI_OFFSET and # MPI_OFFSET_TYPEDEF. Why is MPI_OFFSET_TYPEDEF necessary? # This appears to be used by the Windows "winconfigure.wsf" which is used # to create a multiline definition using an #ifdef check on USE_GCC # We may wish to use a different approach MPI_OFFSET_TYPEDEF="typedef $MPI_OFFSET MPI_Offset;" # # Fortran type for an Offset type (needed to define MPI_DISPLACEMENT_CURRENT # The value for this comes from ROMIO, and is needed in mpif.h.in # First, we check that this works with both Fortran compilers (if # they are defined) # # If there is no FORTRAN_MPI_OFFSET type (because ROMIO is disabled), # just use INTEGER if test -z "$FORTRAN_MPI_OFFSET" ; then FORTRAN_MPI_OFFSET=INTEGER fi if test "$enable_f77" = yes -a "$enable_fc" = yes ; then ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran Offset type works with Fortran 77" >&5 $as_echo_n "checking whether the Fortran Offset type works with Fortran 77... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main $FORTRAN_MPI_OFFSET i end _ACEOF if ac_fn_f77_try_compile "$LINENO"; then : has_f77_offsettype=yes else has_f77_offsetype=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_f77_offsettype" >&5 $as_echo "$has_f77_offsettype" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran Offset type works with Fortran 90" >&5 $as_echo_n "checking whether the Fortran Offset type works with Fortran 90... " >&6; } cat > conftest.$ac_ext <<_ACEOF program main $FORTRAN_MPI_OFFSET i end _ACEOF if ac_fn_fc_try_compile "$LINENO"; then : has_fc_offsettype=yes else has_fc_offsetype=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_fc_offsettype" >&5 $as_echo "$has_fc_offsettype" >&6; } if test "$has_f77_offsettype" != yes -o "$has_fc_offsettype" != yes ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mpif.h is not compatible with both $F77 $FFLAGS and $FC $FCFLAGS. We recommend that you set both F77 and FC to the same compiler and reconfigure." >&5 $as_echo "$as_me: WARNING: mpif.h is not compatible with both $F77 $FFLAGS and $FC $FCFLAGS. We recommend that you set both F77 and FC to the same compiler and reconfigure." >&2;} fi fi # # ---------------------------------------------------------------------------- # MPI_OFFSET datatype # ---------------------------------------------------------------------------- # must be done after ROMIO configure step case "$MPI_SIZEOF_OFFSET" in 4) len_mpi_offset=04 ;; 8) len_mpi_offset=08 ;; 16) len_mpi_offset=10 ;; *) as_fn_error $? "Unable to convert MPI_SIZEOF_OFFSET to a hex string. This is either because we are building on a very strange platform or there is a bug somewhere in configure." "$LINENO" 5 ;; esac MPI_OFFSET_DATATYPE=0x4c00${len_mpi_offset}44 export MPI_OFFSET_DATATYPE # 0x4c000044 is 1275068484 in decimal, add ($MPI_SIZEOF_OFFSET * 256) and you get # the decimal equivalent of the hex number MPI_F77_OFFSET=`expr 1275068484 '+' '(' 256 '*' $MPI_SIZEOF_OFFSET ')'` export MPI_F77_OFFSET # ---------------------------------------------------------------------------- # MPI_COUNT datatype # ---------------------------------------------------------------------------- # quick sanity checking to avoid a bad test immediately below if test -z "$MPI_SIZEOF_AINT"; then : as_fn_error $? "size of MPI_Aint is unknown at this stage" "$LINENO" 5 fi if test -z "$MPI_SIZEOF_OFFSET"; then : as_fn_error $? "size of MPI_Offset is unknown at this stage" "$LINENO" 5 fi if test "$MPI_SIZEOF_AINT" -gt "$MPI_SIZEOF_OFFSET"; then : # an unlikely case, but I suppose it's theoretically possible MPI_COUNT="$MPI_AINT" COUNT_KIND="$ADDRESS_KIND" MPIR_COUNT_MAX="$MPIR_AINT_MAX" MPI_SIZEOF_COUNT="$MPI_SIZEOF_AINT" else # don't bother checking whether Aint or Offset are larger than int, they # surely will be MPI_COUNT="$MPI_OFFSET" COUNT_KIND="$OFFSET_KIND" MPIR_COUNT_MAX="$MPIR_OFFSET_MAX" MPI_SIZEOF_COUNT="$MPI_SIZEOF_OFFSET" fi cat >>confdefs.h <<_ACEOF #define MPIR_COUNT_MAX $MPIR_COUNT_MAX _ACEOF cat >>confdefs.h <<_ACEOF #define MPIR_Ucount unsigned $MPI_COUNT _ACEOF case $MPI_SIZEOF_COUNT in #( 4) : len_mpi_count=04 ;; #( 8) : len_mpi_count=08 ;; #( 16) : len_mpi_count=10 ;; #( *) : as_fn_error $? "Unable to convert MPI_SIZEOF_COUNT to a hex string!" "$LINENO" 5 ;; esac MPI_COUNT_DATATYPE=0x4c00${len_mpi_count}45 # 0x4c000045 is 1275068485 in decimal, add ($MPI_SIZEOF_COUNT * 256) and you get # the decimal equivalent of the hex number MPI_F77_COUNT=`expr 1275068485 '+' '(' 256 '*' $MPI_SIZEOF_OFFSET ')'` # ---------------------------------------------------------------------------- # # Set size of MPI_Status. Must come after MPI_Count determination. # # # The size of MPI_Status is needed for the Fortran interface. # # WARNING!!! this is a spot where we duplicate code from mpi.h.in and it *must* # be kept in sync in order to make a proper computation { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size of MPI_Status" >&5 $as_echo_n "checking for size of MPI_Status... " >&6; } if ${pac_cv_sizeof_mpi_status+:} false; then : $as_echo_n "(cached) " >&6 else rm -f pac_mpi_status.h cat > pac_mpi_status.h <<_EOF typedef struct { int count_lo; int count_hi_and_cancelled; int MPI_SOURCE; int MPI_TAG; int MPI_ERROR; } MPI_Status; _EOF if ac_fn_c_compute_int "$LINENO" "sizeof(MPI_Status)" "pac_cv_sizeof_mpi_status" "#include \"pac_mpi_status.h\""; then : else as_fn_error $? "unable to compute status size, are you compiling on a non-2s-complement host?" "$LINENO" 5 fi rm -f pac_mpi_status.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_sizeof_mpi_status" >&5 $as_echo "$pac_cv_sizeof_mpi_status" >&6; } SIZEOF_MPI_STATUS=$pac_cv_sizeof_mpi_status export SIZEOF_MPI_STATUS if test "$enable_f77" = yes -a -z "$MPI_STATUS_SIZE" ; then if test -n "$SIZEOF_MPI_STATUS" ; then # compute from the C sizeof as_fn_arith $SIZEOF_MPI_STATUS / $ac_cv_sizeof_int && MPI_STATUS_SIZE=$as_val if test "$MPI_STATUS_SIZE" = "0" ; then as_fn_error $? "Could not compute the size of MPI_Status" "$LINENO" 5 fi else as_fn_error $? "MPI_STATUS_SIZE was not defined!" "$LINENO" 5 fi fi # enable_f77 and mpi_status_size not set MPIF_STATUS_SIZE=$MPI_STATUS_SIZE cat >>confdefs.h <<_ACEOF #define MPIF_STATUS_SIZE $MPIF_STATUS_SIZE _ACEOF if test "$enable_f77" = yes ; then # Check if multiple __attribute__((alias)) is available # This test requires MPI_STATUS_SIZE, and thus must be made after # MPI_STATUS_SIZE is determined if test "$enable_multi_aliases" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD/POSIX style global symbol lister" >&5 $as_echo_n "checking for BSD/POSIX style global symbol lister... " >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -z "$NM_G"; then ac_path_NM_G_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/ccs/bin/elf$PATH_SEPARATOR/usr/ccs/bin$PATH_SEPARATOR/usr/ucb$PATH_SEPARATOR/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in nm; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_NM_G="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_NM_G" || continue # Check if nm accepts -g and BSD or POSIX compatible flag. # Use the `sed 1q' to avoid HP-UX's unknown option message: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file # # AIX's sed does not accept \+, 1) instead of doing 's|a\+||', do 's|aa*||' # or 2) instead of 's|A \+B|AB|g', do 's|A *B|AB|g' # Check if nm accepts -g case `${ac_path_NM_G} -g /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) ac_path_NM_G="${ac_path_NM_G} -g" # Check if nm accepts -B case `${ac_path_NM_G} -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int iglobal; _ACEOF if ac_fn_c_try_compile "$LINENO"; then : case `${ac_path_NM_G} -B conftest.$OBJEXT | sed -e 's|[0-9][0-9]* *[A-Z] *iglobal|XXXX|g'` in *XXXX*) pac_path_NM_G="${ac_path_NM_G} -B" pac_path_NM_G_type="BSD" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; *) # Check if nm accepts -P case `${ac_path_NM_G} -P /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int iglobal; _ACEOF if ac_fn_c_try_compile "$LINENO"; then : case `${ac_path_NM_G} -P conftest.$OBJEXT | sed -e 's|iglobal *[A-Z] *[0-9][0-9]*|XXXX|g'` in *XXXX*) pac_path_NM_G="${ac_path_NM_G} -P" pac_path_NM_G_type="POSIX" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;; esac # Endof case `${ac_path_NM_G} -P ;; esac # Endof case `${ac_path_NM_G} -B ;; esac # Endof case `${ac_path_NM_G} -g if test "X$pac_path_NM_G" != "X" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_path_NM_G_type style,$pac_path_NM_G" >&5 $as_echo "$pac_path_NM_G_type style,$pac_path_NM_G" >&6; } NM_G="`echo $pac_path_NM_G | sed -e 's|^.*nm |nm |g'`" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ac_cv_path_NM_G=${ac_path_NM_G} ac_path_NM_G_found=: $ac_path_NM_G_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_NM_G"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else ac_cv_path_NM_G=$NM_G fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu for ac_header in stdio.h do : ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" if test "x$ac_cv_header_stdio_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STDIO_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiple __attribute__((alias)) support" >&5 $as_echo_n "checking for multiple __attribute__((alias)) support... " >&6; } #Compile the "other" __attribute__ object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined(HAVE_STDIO_H) || defined(STDC_HEADERS) #include #endif struct mpif_cmblk_t_ { int imember; }; typedef struct mpif_cmblk_t_ mpif_cmblk_t; /* NOT initialize these structure so it appears in BSS or as COMMON symbols */ mpif_cmblk_t mpifcmb; mpif_cmblk_t MPIFCMB; /* Do the test in this file instead in the file where __attribute__((alias)) is used. This is needed for pgcc since pgcc seems to define aliased symbols if they are in the same file. */ /* We can't do the following comparision in one test: ilogical = (( &mpifcmb == ptr && &MPIFCMB == ptr ) ? TRUE : FALSE) ; because some compiler, like gcc 4.4.2's -O* optimizes the code such that the ilogical expression is FALSE. The likely reason is that mpifcmb and MPIFCMB are defined in the same scope in which C optimizer may have treated them as different objects (with different addresses), &mpifcmb != &MPIFCMB, before actually running the test and hence the illogical expression is assumed to be always FALSE. The solution taken here is to prevent the optimizer the opportunity to equate &mpifcmb and &MPIFCMB (in same scope), e.g. using 2 separate tests and combine the test results in a different scope. */ int same_addrs1( void *ptr ); int same_addrs1( void *ptr ) { #if defined(ATTR_ALIAS_DEBUG) printf( "others: addr(mpifcmb)=%p, addr(input ptr)=%p\n", &mpifcmb, ptr ); #endif return ( &mpifcmb == ptr ? 1 : 0 ); } int same_addrs2( void *ptr ); int same_addrs2( void *ptr ) { #if defined(ATTR_ALIAS_DEBUG) printf( "others: addr(MPIFCMB)=%p, addr(input ptr)=%p\n", &MPIFCMB, ptr ); #endif return ( &MPIFCMB == ptr ? 1 : 0 ); } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : rm -f pac_conftest_other.$OBJEXT { $as_echo "$as_me:$LINENO: cp conftest.$OBJEXT pac_conftest_other.$OBJEXT" >&5 (eval cp conftest.$OBJEXT pac_conftest_other.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } test -s pac_conftest_other.$OBJEXT && pac_c_attr_alias_other=yes else pac_c_attr_alias_other=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext pac_c_attr_alias_main=no if test "$pac_c_attr_alias_other" = "yes" ; then # Push LIBS for later restoration. if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` LIBS="pac_conftest_other.$OBJEXT $LIBS" # Link the "other" __attribute__ object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined(HAVE_STDIO_H) || defined(STDC_HEADERS) #include #endif struct mpif_cmblk_t_ { int imember; }; typedef struct mpif_cmblk_t_ mpif_cmblk_t; mpif_cmblk_t mpifcmbr = {0}; extern mpif_cmblk_t MPIFCMB __attribute__ ((alias("mpifcmbr"))); extern mpif_cmblk_t mpifcmb __attribute__ ((alias("mpifcmbr"))); extern int same_addrs1( void *ptr ); extern int same_addrs2( void *ptr ); int main () { int iaddr = 0; #if defined(ATTR_ALIAS_DEBUG) printf( "main: addr(mpifcmbr) = %p\n", &mpifcmbr ); printf( "main: addr(mpifcmb) = %p\n", &mpifcmb ); printf( "main: addr(MPIFCMB) = %p\n", &MPIFCMB ); #endif iaddr = same_addrs1( &mpifcmbr ) && same_addrs2( &mpifcmbr ); FILE *file = fopen( "pac_conftestval", "w" ); if (!file) return 1; fprintf( file, "%d\n", iaddr ); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : rm -f pac_conftest_main$EXEEXT { $as_echo "$as_me:$LINENO: cp conftest$EXEEXT pac_conftest_main$EXEEXT" >&5 (eval cp conftest$EXEEXT pac_conftest_main$EXEEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } test -x pac_conftest_main$EXEEXT && pac_c_attr_alias_main=yes else pac_c_attr_alias_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # Restore the previously pushed LIBS pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" rm -f pac_conftest_other.$OBJEXT fi if test "$pac_c_attr_alias_main" = "yes" ; then if test "$cross_compiling" = "yes" ; then # echo "PAC CROSS-COMPILING" dnl # POSIX NM = nm -P format dnl if test "$pac_path_NM_G_type" = "POSIX" ; then addrs=`${pac_path_NM_G} ./pac_conftest_main$EXEEXT | grep -i mpifcmb | sed -e 's% *[a-zA-Z][a-zA-Z]* *[a-zA-Z] *\([0-9abcdef][0-9abcdef]*\).*%\1%g'` fi # BSD NM = nm -B format dnl if test "$pac_path_NM_G_type" = "BSD" ; then addrs=`${pac_path_NM_G} -g ./pac_conftest_main$EXEEXT | grep -i mpifcmb | sed -e "s% *\([0-9abcdef][0-9abcdef]*\) *[a-zA-Z] *[a-zA-Z][a-zA-A]*.*%\1%g"` fi cmp_addr="" diff_addrs=no for addr in ${addrs} ; do if test "X${cmp_addr}" != "X" ; then if test "${cmp_addr}" != "${addr}" ; then diff_addrs=yes break fi else cmp_addr=${addr} fi done if test "$diff_addrs" != "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${NM_G} says yes" >&5 $as_echo "${NM_G} says yes" >&6; } pac_c_multi_attr_alias=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${NM_G} says no" >&5 $as_echo "${NM_G} says no" >&6; } pac_c_multi_attr_alias=no fi else # if test "$cross_compiling" != "yes" rm -f pac_conftestval ac_try="./pac_conftest_main$EXEEXT" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } ; then pac_c_attr_alias_val=0 if test -s pac_conftestval ; then eval pac_c_attr_alias_val=`cat pac_conftestval` fi if test "$pac_c_attr_alias_val" -eq 1 ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } pac_c_multi_attr_alias=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } pac_c_multi_attr_alias=no fi rm -f pac_conftestval fi fi rm -f pac_conftest_main$EXEEXT else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no! link failure" >&5 $as_echo "no! link failure" >&6; } pac_c_multi_attr_alias=no fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$pac_c_multi_attr_alias" = "yes" ; then cmblksize=1 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the minimum alignment of Fortran common block of $cmblksize integers" >&5 $as_echo_n "checking the minimum alignment of Fortran common block of $cmblksize integers... " >&6; } # # # First create a fortran CONFTEST which will be used repeatedly. ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program fconftest integer isize parameter (isize=$cmblksize) integer status_array(isize) common /mpifcmb/ status_array save /mpifcmb/ end _ACEOF ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Compile a C dummy.$OBJEXT and link with Fortran test program to create # a reference linker output file, pac_align0.log, as the base of "diff". ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cp conftest.$ac_ext pac_conftest.c { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` LIBS="pac_conftest.$OBJEXT $LIBS" ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test -z "${pac_save_ac_link_nesting}" ; then pac_save_ac_link_nesting=0 fi eval pac_save_ac_link_${pac_save_ac_link_nesting}='"$ac_link"' pac_save_ac_link_nesting=`expr ${pac_save_ac_link_nesting} + 1` ac_link="`echo $ac_link | sed -e 's|>.*$|> $pac_logfile 2>\&1|g'`" pac_logfile="pac_align0.log" rm -f $pac_logfile if ac_fn_fc_try_link "$LINENO"; then : pac_f2c_alignedn_diffbase=yes else pac_f2c_alignedn_diffbase=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext # Be sure NOT to remove the conftest.f which is still needed for later use. # rm -f conftest.$ac_ext # Restore everything in autoconf that has been overwritten pac_save_ac_link_nesting=`expr ${pac_save_ac_link_nesting} - 1` eval ac_link="\$pac_save_ac_link_${pac_save_ac_link_nesting}" eval pac_save_ac_link_${pac_save_ac_link_nesting}="" # restore previously pushed LIBS pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu else pac_f2c_alignedn_diffbase=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$pac_f2c_alignedn_diffbase" = "yes" ; then # Initialize pac_result_str to empty string since part of the test # depends on pac_result_str is empty or non-empty string. pac_result_str="" # Initialize pac_f2c_attr_aligned_str to empty string and # it will remain as empty string if the following test fails. pac_f2c_attr_aligned_str="" for asize in 4 8 16 32 64 128 max ; do if test "$asize" != "max" ; then pac_attr_aligned_str="__attribute__((aligned($asize)))" else pac_attr_aligned_str="__attribute__((aligned))" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu #Compile the __attribute__ object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ struct mpif_cmblk_t_ { $MPI_FINT imembers[$cmblksize]; }; typedef struct mpif_cmblk_t_ mpif_cmblk_t; mpif_cmblk_t mpifcmbr $pac_attr_aligned_str = {0}; extern mpif_cmblk_t _CMPIFCMB __attribute__ ((alias("mpifcmbr"))); extern mpif_cmblk_t MPIFCMB __attribute__ ((alias("mpifcmbr"))); extern mpif_cmblk_t MPIFCMB_ __attribute__ ((alias("mpifcmbr"))); extern mpif_cmblk_t _Cmpifcmb __attribute__ ((alias("mpifcmbr"))); extern mpif_cmblk_t mpifcmb __attribute__ ((alias("mpifcmbr"))); extern mpif_cmblk_t mpifcmb_ __attribute__ ((alias("mpifcmbr"))); _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cp conftest.$ac_ext pac_conftest.c { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` LIBS="pac_conftest.$OBJEXT $LIBS" ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test -z "${pac_save_ac_link_nesting}" ; then pac_save_ac_link_nesting=0 fi eval pac_save_ac_link_${pac_save_ac_link_nesting}='"$ac_link"' pac_save_ac_link_nesting=`expr ${pac_save_ac_link_nesting} + 1` ac_link="`echo $ac_link | sed -e 's|>.*$|> $pac_logfile 2>\&1|g'`" pac_logfile="pac_align1.log" rm -f $pac_logfile # Use conftest.f created in CONFTEST. if ac_fn_fc_try_link "$LINENO"; then : pac_TESTLOG="pac_test.log" rm -f $pac_TESTLOG if { $as_echo "$as_me:$LINENO: diff -b pac_align0.log pac_align1.log > $pac_TESTLOG" >&5 (eval diff -b pac_align0.log pac_align1.log > $pac_TESTLOG) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; }; then : pac_attr_alignedn=yes else $as_echo "$as_me: program exited with status $ac_status" >&5 (exit $ac_status) $as_echo "*** diff -b pac_align0.log pac_align1.log :" >&5 cat $pac_TESTLOG >&5 pac_attr_alignedn=no cat $pac_logfile >&5 echo "failed C program was:" >&5 cat pac_conftest.c >&5 echo "failed Fortran program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f $pac_TESTLOG else pac_attr_alignedn=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext # Restore everything in autoconf that has been overwritten pac_save_ac_link_nesting=`expr ${pac_save_ac_link_nesting} - 1` eval ac_link="\$pac_save_ac_link_${pac_save_ac_link_nesting}" eval pac_save_ac_link_${pac_save_ac_link_nesting}="" # restore previously pushed LIBS pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # remove previously generated object file and C file. rm -f pac_conftest.$OBJEXT pac_conftest.c rm -f $pac_logfile if test "$pac_attr_alignedn" = yes ; then pac_result_str="$asize" pac_f2c_attr_aligned_str="$pac_attr_aligned_str" break fi else pac_attr_alignedn=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu done CMB_1INT_ALIGNMENT="$pac_f2c_attr_aligned_str" else pac_result_str="" # Since the test fails, set pac_f2c_attr_aligned_str to empty string. pac_f2c_attr_aligned_str="" fi if test "X$pac_result_str" != "X" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result_str" >&5 $as_echo "$pac_result_str" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 $as_echo "unknown" >&6; } fi rm -f pac_align0.log cmblksize=$MPI_STATUS_SIZE { $as_echo "$as_me:${as_lineno-$LINENO}: checking the minimum alignment of Fortran common block of $cmblksize integers" >&5 $as_echo_n "checking the minimum alignment of Fortran common block of $cmblksize integers... " >&6; } # # # First create a fortran CONFTEST which will be used repeatedly. ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat > conftest.$ac_ext <<_ACEOF program fconftest integer isize parameter (isize=$cmblksize) integer status_array(isize) common /mpifcmb/ status_array save /mpifcmb/ end _ACEOF ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Compile a C dummy.$OBJEXT and link with Fortran test program to create # a reference linker output file, pac_align0.log, as the base of "diff". ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cp conftest.$ac_ext pac_conftest.c { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` LIBS="pac_conftest.$OBJEXT $LIBS" ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test -z "${pac_save_ac_link_nesting}" ; then pac_save_ac_link_nesting=0 fi eval pac_save_ac_link_${pac_save_ac_link_nesting}='"$ac_link"' pac_save_ac_link_nesting=`expr ${pac_save_ac_link_nesting} + 1` ac_link="`echo $ac_link | sed -e 's|>.*$|> $pac_logfile 2>\&1|g'`" pac_logfile="pac_align0.log" rm -f $pac_logfile if ac_fn_fc_try_link "$LINENO"; then : pac_f2c_alignedn_diffbase=yes else pac_f2c_alignedn_diffbase=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext # Be sure NOT to remove the conftest.f which is still needed for later use. # rm -f conftest.$ac_ext # Restore everything in autoconf that has been overwritten pac_save_ac_link_nesting=`expr ${pac_save_ac_link_nesting} - 1` eval ac_link="\$pac_save_ac_link_${pac_save_ac_link_nesting}" eval pac_save_ac_link_${pac_save_ac_link_nesting}="" # restore previously pushed LIBS pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu else pac_f2c_alignedn_diffbase=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$pac_f2c_alignedn_diffbase" = "yes" ; then # Initialize pac_result_str to empty string since part of the test # depends on pac_result_str is empty or non-empty string. pac_result_str="" # Initialize pac_f2c_attr_aligned_str to empty string and # it will remain as empty string if the following test fails. pac_f2c_attr_aligned_str="" for asize in 4 8 16 32 64 128 max ; do if test "$asize" != "max" ; then pac_attr_aligned_str="__attribute__((aligned($asize)))" else pac_attr_aligned_str="__attribute__((aligned))" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu #Compile the __attribute__ object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ struct mpif_cmblk_t_ { $MPI_FINT imembers[$cmblksize]; }; typedef struct mpif_cmblk_t_ mpif_cmblk_t; mpif_cmblk_t mpifcmbr $pac_attr_aligned_str = {0}; extern mpif_cmblk_t _CMPIFCMB __attribute__ ((alias("mpifcmbr"))); extern mpif_cmblk_t MPIFCMB __attribute__ ((alias("mpifcmbr"))); extern mpif_cmblk_t MPIFCMB_ __attribute__ ((alias("mpifcmbr"))); extern mpif_cmblk_t _Cmpifcmb __attribute__ ((alias("mpifcmbr"))); extern mpif_cmblk_t mpifcmb __attribute__ ((alias("mpifcmbr"))); extern mpif_cmblk_t mpifcmb_ __attribute__ ((alias("mpifcmbr"))); _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cp conftest.$ac_ext pac_conftest.c { $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5 (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; } if test -z "${pac_save_LIBS_nesting}" ; then pac_save_LIBS_nesting=0 fi eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` LIBS="pac_conftest.$OBJEXT $LIBS" ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test -z "${pac_save_ac_link_nesting}" ; then pac_save_ac_link_nesting=0 fi eval pac_save_ac_link_${pac_save_ac_link_nesting}='"$ac_link"' pac_save_ac_link_nesting=`expr ${pac_save_ac_link_nesting} + 1` ac_link="`echo $ac_link | sed -e 's|>.*$|> $pac_logfile 2>\&1|g'`" pac_logfile="pac_align1.log" rm -f $pac_logfile # Use conftest.f created in CONFTEST. if ac_fn_fc_try_link "$LINENO"; then : pac_TESTLOG="pac_test.log" rm -f $pac_TESTLOG if { $as_echo "$as_me:$LINENO: diff -b pac_align0.log pac_align1.log > $pac_TESTLOG" >&5 (eval diff -b pac_align0.log pac_align1.log > $pac_TESTLOG) 2>&5 ac_status=$? $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 test $ac_status = 0; }; then : pac_attr_alignedn=yes else $as_echo "$as_me: program exited with status $ac_status" >&5 (exit $ac_status) $as_echo "*** diff -b pac_align0.log pac_align1.log :" >&5 cat $pac_TESTLOG >&5 pac_attr_alignedn=no cat $pac_logfile >&5 echo "failed C program was:" >&5 cat pac_conftest.c >&5 echo "failed Fortran program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f $pac_TESTLOG else pac_attr_alignedn=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext # Restore everything in autoconf that has been overwritten pac_save_ac_link_nesting=`expr ${pac_save_ac_link_nesting} - 1` eval ac_link="\$pac_save_ac_link_${pac_save_ac_link_nesting}" eval pac_save_ac_link_${pac_save_ac_link_nesting}="" # restore previously pushed LIBS pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" eval pac_save_LIBS_${pac_save_LIBS_nesting}="" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # remove previously generated object file and C file. rm -f pac_conftest.$OBJEXT pac_conftest.c rm -f $pac_logfile if test "$pac_attr_alignedn" = yes ; then if test "$asize" != "max" -a "$asize" -lt "32" ; then if test "X$pac_result_str" = "X" ; then pac_result_str="$asize" pac_f2c_attr_aligned_str="$pac_attr_aligned_str" fi continue else pac_f2c_attr_aligned_str="$pac_attr_aligned_str" if test "X$pac_result_str" != "X" ; then pac_result_str="$pac_result_str, too small! reset to $asize" else pac_result_str="$asize" fi break fi fi else pac_attr_alignedn=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu done CMB_STATUS_ALIGNMENT="$pac_f2c_attr_aligned_str" else pac_result_str="" # Since the test fails, set pac_f2c_attr_aligned_str to empty string. pac_f2c_attr_aligned_str="" fi if test "X$pac_result_str" != "X" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result_str" >&5 $as_echo "$pac_result_str" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 $as_echo "unknown" >&6; } fi rm -f pac_align0.log if test "X$CMB_1INT_ALIGNMENT" != "X" \ -a "X$CMB_STATUS_ALIGNMENT" != "X" ; then $as_echo "#define HAVE_C_MULTI_ATTR_ALIAS 1" >>confdefs.h fi fi fi fi # ---------------------------------------------------------------------------- $as_echo "#define HAVE_FC_TYPE_ROUTINES 1" >>confdefs.h # ----------------------------------------------------------------------------- # Get the value of MPI_MAX_PROCESSOR_NAME if test -z "$MPID_MAX_PROCESSOR_NAME" ; then if test -z "$MPI_MAX_PROCESSOR_NAME" ; then MPI_MAX_PROCESSOR_NAME=128 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The $with_device device did not set the maximum size of a processor name, $MPI_MAX_PROCESSOR_NAME being used." >&5 $as_echo "$as_me: WARNING: The $with_device device did not set the maximum size of a processor name, $MPI_MAX_PROCESSOR_NAME being used." >&2;} else MPI_MAX_PROCESSOR_NAME=$MPID_MAX_PROCESSOR_NAME fi # Get the value of MPI_MAX_LIBRARY_VERSION_STRING if test -z "$MPID_MAX_LIBRARY_VERSION_STRING" ; then MPI_MAX_LIBRARY_VERSION_STRING=8192 else MPI_MAX_LIBRARY_VERSION_STRING=$MPID_MAX_LIBRARY_VERSION_STRING fi # Get the value of MPI_MAX_ERROR_STRING if test -z "$MPID_MAX_ERROR_STRING" ; then if test -z "$MPI_MAX_ERROR_STRING" ; then MPI_MAX_ERROR_STRING=512 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The $with_device device did not set the maximum size of an error string, $MPI_MAX_ERROR_STRING being used." >&5 $as_echo "$as_me: WARNING: The $with_device device did not set the maximum size of an error string, $MPI_MAX_ERROR_STRING being used." >&2;} else MPI_MAX_ERROR_STRING=$MPID_MAX_ERROR_STRING fi # Add a definition that is used to help support Windows DLLs (used in mpi.h.in) MPIU_DLL_SPEC_DEF="#define MPIU_DLL_SPEC" # set and export values that the test/mpi configure will reference to ensure # that the correct decisions are made since this configure happens before the # MPICH library is built. MPICH_ENABLE_CXX=$enable_cxx MPICH_ENABLE_F77=$enable_f77 MPICH_ENABLE_FC=$enable_fc export MPICH_ENABLE_CXX export MPICH_ENABLE_F77 export MPICH_ENABLE_FC if test "$enable_cxx" = "yes"; then BUILD_CXX_BINDING_TRUE= BUILD_CXX_BINDING_FALSE='#' else BUILD_CXX_BINDING_TRUE='#' BUILD_CXX_BINDING_FALSE= fi if test "$enable_f77" = "yes"; then BUILD_F77_BINDING_TRUE= BUILD_F77_BINDING_FALSE='#' else BUILD_F77_BINDING_TRUE='#' BUILD_F77_BINDING_FALSE= fi # MPI_SRCDIR gives the test/mpi configure the location of the source # files for an MPI implementation if test -n "$ac_abs_srcdir" ; then MPI_SRCDIR=$ac_abs_srcdir fi # Pass these two values with "MPI" names to the test configure MPI_NO_SPAWN=$MPID_NO_SPAWN export MPI_NO_SPAWN MPI_NO_RMA=$MPID_NO_RMA export MPI_NO_RMA # Attach program prefix and suffix to executable names for Makefile MPICC_NAME="mpicc" if test "$program_prefix" != "NONE" ; then MPICC_NAME="${program_prefix}$MPICC_NAME" fi if test "$program_suffix" != "NONE" ; then MPICC_NAME="$MPICC_NAME$program_suffix" fi MPICXX_NAME="mpicxx" if test "$program_prefix" != "NONE" ; then MPICXX_NAME="${program_prefix}$MPICXX_NAME" fi if test "$program_suffix" != "NONE" ; then MPICXX_NAME="$MPICXX_NAME$program_suffix" fi MPICPP_NAME="mpic++" if test "$program_prefix" != "NONE" ; then MPICPP_NAME="${program_prefix}$MPICPP_NAME" fi if test "$program_suffix" != "NONE" ; then MPICPP_NAME="$MPICPP_NAME$program_suffix" fi MPIFORT_NAME="mpifort" if test "$program_prefix" != "NONE" ; then MPIFORT_NAME="${program_prefix}$MPIFORT_NAME" fi if test "$program_suffix" != "NONE" ; then MPIFORT_NAME="$MPIFORT_NAME$program_suffix" fi MPIF90_NAME="mpif90" if test "$program_prefix" != "NONE" ; then MPIF90_NAME="${program_prefix}$MPIF90_NAME" fi if test "$program_suffix" != "NONE" ; then MPIF90_NAME="$MPIF90_NAME$program_suffix" fi MPIF77_NAME="mpif77" if test "$program_prefix" != "NONE" ; then MPIF77_NAME="${program_prefix}$MPIF77_NAME" fi if test "$program_suffix" != "NONE" ; then MPIF77_NAME="$MPIF77_NAME$program_suffix" fi subdirs="$subdirs test/mpi" ac_config_commands="$ac_config_commands default-2" if test -z "$includebuild_dir" ; then includebuild_dir=`pwd`/src/include fi if test -z "$libbuild_dir" ; then libbuild_dir=`pwd`/lib fi if test -z "$modincbuild_dir" ; then # The include files may be in a different directory from the mpif.h file modincbuild_dir=`pwd`/src/binding/fortran/use_mpi fi ac_config_commands="$ac_config_commands default-3" ac_config_commands="$ac_config_commands default-4" $as_echo "#define HAVE_MPICHCONF 1" >>confdefs.h if test "$USE_PMI2_API" = "yes" ; then $as_echo "#define USE_PMI2_API 1" >>confdefs.h fi ######################################################################## # cause libtool script to be built now so that we can use it to test one last # linking issue on Darwin : ${CONFIG_LT=./config.lt} { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5 $as_echo "$as_me: creating $CONFIG_LT" >&6;} as_write_fail=0 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate a libtool stub with the current configuration. SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## --------------------------------- ## ## Main body of "$CONFIG_LT" script. ## ## --------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x "$CONFIG_LT" cat >>"$CONFIG_LT" <<\_LTEOF lt_cl_silent=false exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX } >&5 lt_cl_help="\ '$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $0 [OPTIONS] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ MPICH config.lt 3.3.2 configured by $0, generated by GNU Autoconf 2.69. Copyright (C) 2011 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test 0 != $# do case $1 in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) as_fn_error $? "unrecognized option: $1 Try '$0 --help' for more information." "$LINENO" 5 ;; *) as_fn_error $? "unrecognized argument: $1 Try '$0 --help' for more information." "$LINENO" 5 ;; esac shift done if $lt_cl_silent; then exec 6>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 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"`' lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`' reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`' reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`' old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`' compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`' GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`' compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`' archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`' hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`' hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`' inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`' link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`' always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`' exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`' include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`' prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`' postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`' postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`' file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`' hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`' predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`' postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`' predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`' postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } # Quote evaled strings. for var in SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ DLLTOOL \ sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_import \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ lt_cv_nm_interface \ nm_file_list_spec \ lt_cv_truncate_bin \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib \ compiler_lib_search_dirs \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ LD_CXX \ LD_FC \ LD_F77 \ reload_flag_CXX \ reload_flag_FC \ reload_flag_F77 \ compiler_CXX \ compiler_FC \ compiler_F77 \ lt_prog_compiler_no_builtin_flag_CXX \ lt_prog_compiler_no_builtin_flag_FC \ lt_prog_compiler_no_builtin_flag_F77 \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_pic_FC \ lt_prog_compiler_pic_F77 \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_wl_FC \ lt_prog_compiler_wl_F77 \ lt_prog_compiler_static_CXX \ lt_prog_compiler_static_FC \ lt_prog_compiler_static_F77 \ lt_cv_prog_compiler_c_o_CXX \ lt_cv_prog_compiler_c_o_FC \ lt_cv_prog_compiler_c_o_F77 \ export_dynamic_flag_spec_CXX \ export_dynamic_flag_spec_FC \ export_dynamic_flag_spec_F77 \ whole_archive_flag_spec_CXX \ whole_archive_flag_spec_FC \ whole_archive_flag_spec_F77 \ compiler_needs_object_CXX \ compiler_needs_object_FC \ compiler_needs_object_F77 \ with_gnu_ld_CXX \ with_gnu_ld_FC \ with_gnu_ld_F77 \ allow_undefined_flag_CXX \ allow_undefined_flag_FC \ allow_undefined_flag_F77 \ no_undefined_flag_CXX \ no_undefined_flag_FC \ no_undefined_flag_F77 \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_FC \ hardcode_libdir_flag_spec_F77 \ hardcode_libdir_separator_CXX \ hardcode_libdir_separator_FC \ hardcode_libdir_separator_F77 \ exclude_expsyms_CXX \ exclude_expsyms_FC \ exclude_expsyms_F77 \ include_expsyms_CXX \ include_expsyms_FC \ include_expsyms_F77 \ file_list_spec_CXX \ file_list_spec_FC \ file_list_spec_F77 \ compiler_lib_search_dirs_CXX \ compiler_lib_search_dirs_FC \ compiler_lib_search_dirs_F77 \ predep_objects_CXX \ predep_objects_FC \ predep_objects_F77 \ postdep_objects_CXX \ postdep_objects_FC \ postdep_objects_F77 \ predeps_CXX \ predeps_FC \ predeps_F77 \ postdeps_CXX \ postdeps_FC \ postdeps_F77 \ compiler_lib_search_path_CXX \ compiler_lib_search_path_FC \ compiler_lib_search_path_F77; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ configure_time_dlsearch_path \ configure_time_lt_sys_library_path \ reload_cmds_CXX \ reload_cmds_FC \ reload_cmds_F77 \ old_archive_cmds_CXX \ old_archive_cmds_FC \ old_archive_cmds_F77 \ old_archive_from_new_cmds_CXX \ old_archive_from_new_cmds_FC \ old_archive_from_new_cmds_F77 \ old_archive_from_expsyms_cmds_CXX \ old_archive_from_expsyms_cmds_FC \ old_archive_from_expsyms_cmds_F77 \ archive_cmds_CXX \ archive_cmds_FC \ archive_cmds_F77 \ archive_expsym_cmds_CXX \ archive_expsym_cmds_FC \ archive_expsym_cmds_F77 \ module_cmds_CXX \ module_cmds_FC \ module_cmds_F77 \ module_expsym_cmds_CXX \ module_expsym_cmds_FC \ module_expsym_cmds_F77 \ export_symbols_cmds_CXX \ export_symbols_cmds_FC \ export_symbols_cmds_F77 \ prelink_cmds_CXX \ prelink_cmds_FC \ prelink_cmds_F77 \ postlink_cmds_CXX \ postlink_cmds_FC \ postlink_cmds_F77; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile' _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 $as_echo "$as_me: creating $ofile" >&6;} # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. # Written by Gordon Matzigkeit, 1996 # Copyright (C) 2014 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program or library that is built # using GNU Libtool, you may include this file under the same # distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # The names of the tagged configurations supported by this script. available_tags='CXX FC F77 ' # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shared archive member basename,for filename based shared library versioning on AIX. shared_archive_member_spec=$shared_archive_member_spec # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The PATH separator for the build system. PATH_SEPARATOR=$lt_PATH_SEPARATOR # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd # How to find potential files when deplibs_check_method = "file_magic". file_magic_glob=$lt_file_magic_glob # Find potential files using nocaseglob when deplibs_check_method = "file_magic". want_nocaseglob=$lt_want_nocaseglob # DLL creation program. DLLTOOL=$lt_DLLTOOL # Command to associate shared and link libraries. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR # Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm into a list of symbols to manually relocate. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # The name lister interface. nm_interface=$lt_lt_cv_nm_interface # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and where our libraries should be installed. lt_sysroot=$lt_sysroot # Command to truncate a binary pipe. lt_truncate_bin=$lt_lt_cv_truncate_bin # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Detected run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects postdep_objects=$lt_postdep_objects predeps=$lt_predeps postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain=$ac_aux_dir/ltmain.sh # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: CXX # The linker used to build libraries. LD=$lt_LD_CXX # How to create reloadable object files. reload_flag=$lt_reload_flag_CXX reload_cmds=$lt_reload_cmds_CXX # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_CXX # A language specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU compiler? with_gcc=$GCC_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_CXX # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_CXX # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute_CXX # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic_CXX # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_CXX # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_CXX # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_CXX # Specify filename containing input files. file_list_spec=$lt_file_list_spec_CXX # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_CXX postdep_objects=$lt_postdep_objects_CXX predeps=$lt_predeps_CXX postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # ### END LIBTOOL TAG CONFIG: CXX _LT_EOF cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: FC # The linker used to build libraries. LD=$lt_LD_FC # How to create reloadable object files. reload_flag=$lt_reload_flag_FC reload_cmds=$lt_reload_cmds_FC # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_FC # A language specific compiler. CC=$lt_compiler_FC # Is the compiler the GNU compiler? with_gcc=$GCC_FC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_FC # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_FC # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_FC # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_FC # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_FC # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_FC archive_expsym_cmds=$lt_archive_expsym_cmds_FC # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_FC module_expsym_cmds=$lt_module_expsym_cmds_FC # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_FC # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_FC # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_FC # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_FC # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute_FC # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_FC # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_FC # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic_FC # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_FC # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_FC # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_FC # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_FC # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_FC # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_FC # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_FC # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_FC # Specify filename containing input files. file_list_spec=$lt_file_list_spec_FC # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_FC # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_FC postdep_objects=$lt_postdep_objects_FC predeps=$lt_predeps_FC postdeps=$lt_postdeps_FC # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_FC # ### END LIBTOOL TAG CONFIG: FC _LT_EOF cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: F77 # The linker used to build libraries. LD=$lt_LD_F77 # How to create reloadable object files. reload_flag=$lt_reload_flag_F77 reload_cmds=$lt_reload_cmds_F77 # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_F77 # A language specific compiler. CC=$lt_compiler_F77 # Is the compiler the GNU compiler? with_gcc=$GCC_F77 # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_F77 # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_F77 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_F77 # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_F77 # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_F77 # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_F77 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_F77 module_expsym_cmds=$lt_module_expsym_cmds_F77 # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_F77 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_F77 # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_F77 # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_F77 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute_F77 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_F77 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic_F77 # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_F77 # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_F77 # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_F77 # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_F77 # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_F77 # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_F77 # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_F77 # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_F77 # Specify filename containing input files. file_list_spec=$lt_file_list_spec_F77 # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_F77 # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_F77 postdep_objects=$lt_postdep_objects_F77 predeps=$lt_predeps_F77 postdeps=$lt_postdeps_F77 # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_F77 # ### END LIBTOOL TAG CONFIG: F77 _LT_EOF as_fn_exit 0 _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. lt_cl_success=: test yes = "$silent" && lt_config_lt_args="$lt_config_lt_args --quiet" exec 5>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec 5>>config.log $lt_cl_success || as_fn_exit 1 if test "X$enable_shared" = "Xyes" ; then # see ticket #1590 for some more background on these Darwin linking issues case $host in #( *-*-darwin*) : # The linker on Darwin does not allow common symbols, thus libtool # adds the -fno-common option by default for shared libraries. # However, the common symbols defined in different shared libraries # and object files still can not be treated as the same symbol. # For example: # with gfortran, the same common block in the shared libraries and # the object files will have different memory locations separately; # with ifort, the same common block in different shared libraries # will get the same memory location but still get a different location # in the object file. # The -Wl,-commons,use_dylibs option asks linker to check dylibs for # definitions and use them to replace tentative definitions(commons) # from object files, thus it solves the issue of the common symbol # mismatch between the object file and the dylibs (i.e., by setting # the address of a common symbol to the place located in the first # dylib that is linked with the object file and contains this symbol). # It needs to be added only in the linking stage for the final # executable file. # On the other hand, the -flat-namespace option allows linker to # unify the same common symbols in different dylibs. It needs to be # added in linking stage for both the shared library and the final # executable file. # In Fortran programs, we implement global definitions such as MPI_BOTTOM # as common symbols. We check the address of the user input and translate it # to the C global definition if it is equal to the internal pre-stored address # in the Fortran binding layer. Without -flat-namespace, we may get different # addresses and thus treat the predefined constant as a normal buffer. # Although gfortran works fine by only adding -flat-namespace, and # ifort works by only adding -Wl,-commons,use_dylibs, we should add # both options here as a generic solution to make sure everything safe. # sanity check that -Wl,-flat_namespace works on darwin, unless the user # asked us not to add it if test "X$enable_two_level_namespace" = "Xno"; then # TODO, move this into a PAC macro with real autoconf caching pac_cv_wl_flat_namespace_works=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler accepts -Wl,-flat_namespace" >&5 $as_echo_n "checking if the C compiler accepts -Wl,-flat_namespace... " >&6; } if test -z "${pac_save_LDFLAGS_nesting}" ; then pac_save_LDFLAGS_nesting=0 fi eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"' pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1` if echo "$LDFLAGS" | $FGREP -e "\<-Wl,-flat_namespace\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-Wl,-flat_namespace', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-Wl,-flat_namespace', appending" >&5 LDFLAGS="$LDFLAGS -Wl,-flat_namespace" fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { int i; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } pac_cv_wl_flat_namespace_works=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1` eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}" eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}="" # Technically we may not be able to use the same form of the argument # for all four compilers (CC/CXX/F77/FC). But we only think this is # necessary for Darwin for now, so this unconditional, single-var # approximation will work for now. if test "X$pac_cv_wl_flat_namespace_works" = "Xyes" ; then if echo "$LDFLAGS" | $FGREP -e "\<-Wl,-flat_namespace\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-Wl,-flat_namespace', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-Wl,-flat_namespace', appending" >&5 LDFLAGS="$LDFLAGS -Wl,-flat_namespace" fi if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<-Wl,-flat_namespace\>" >/dev/null 2>&1; then : echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '-Wl,-flat_namespace', not appending" >&5 else echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '-Wl,-flat_namespace', appending" >&5 WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS -Wl,-flat_namespace" fi fi fi # We only need to bother with -Wl,-commons,-use_dylibs if we are # building fortran bindings (no common block usage in our C libs). if test "X$enable_f77" = "Xyes" ; then # TODO, move this into a PAC macro with real autoconf caching pac_cv_wl_commons_use_dylibs_works=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the F77 compiler accepts -Wl,-commons,use_dylibs" >&5 $as_echo_n "checking if the F77 compiler accepts -Wl,-commons,use_dylibs... " >&6; } ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test -z "${pac_save_LDFLAGS_nesting}" ; then pac_save_LDFLAGS_nesting=0 fi eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"' pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1` if echo "$LDFLAGS" | $FGREP -e "\<-Wl,-commons,use_dylibs\>" >/dev/null 2>&1; then : echo "LDFLAGS(='$LDFLAGS') contains '-Wl,-commons,use_dylibs', not appending" >&5 else echo "LDFLAGS(='$LDFLAGS') does not contain '-Wl,-commons,use_dylibs', appending" >&5 LDFLAGS="$LDFLAGS -Wl,-commons,use_dylibs" fi cat > conftest.$ac_ext <<_ACEOF program main INTEGER i end _ACEOF if ac_fn_f77_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } pac_cv_wl_commons_use_dylibs_works=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1` eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}" eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}="" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Add the flag to the WRAPPER_LDFLAGS, since this common block issue # is really only a problem for dynamically linked user programs. # # Technically we may not be able to use the same form of the argument # for all four compilers (CC/CXX/F77/FC). But we only think this is # necessary for Darwin for now, so this unconditional, single-var # approximation will work for now. if test "X$pac_cv_wl_commons_use_dylibs_works" = "Xyes" ; then if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<-Wl,-commons,use_dylibs\>" >/dev/null 2>&1; then : echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '-Wl,-commons,use_dylibs', not appending" >&5 else echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '-Wl,-commons,use_dylibs', appending" >&5 WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS -Wl,-commons,use_dylibs" fi fi fi ;; #( *) : ;; esac fi # Set F08 versions of datatypes, which have type MPI_Datatype and are not integers anymore. # If the correspoinding F77 datatypes exist, i.e., not MPI_DATATYPE_NULL, we simply use their # integer value (already converted into decimal) in F08 counterparts. Otherwise, we use # MPI_VAL value of F08 MPI_DATATYPE_NULL. # We put the code at the end to ensure all F77 datatypes have been set. if test "X$f08_works" = "Xyes"; then for type in INTEGER1 INTEGER2 INTEGER4 INTEGER8 INTEGER16 \ REAL4 REAL8 REAL16 \ COMPLEX8 COMPLEX16 COMPLEX32; do eval f77typename=F77_$type eval f77typevalue=\$$f77typename if test "$f77typevalue" = MPI_DATATYPE_NULL ; then eval F08_$type=MPI_DATATYPE_NULL%MPI_VAL else eval F08_$type=$f77typevalue fi done for type in PACKED UB LB BYTE \ CHAR SIGNED_CHAR UNSIGNED_CHAR WCHAR SHORT \ UNSIGNED_SHORT UNSIGNED INT LONG UNSIGNED_INT UNSIGNED_LONG \ FLOAT DOUBLE LONG_DOUBLE LONG_LONG_INT \ UNSIGNED_LONG_LONG LONG_LONG FLOAT_INT DOUBLE_INT \ LONG_INT SHORT_INT "2INT" LONG_DOUBLE_INT \ INT8_T INT16_T INT32_T INT64_T \ UINT8_T UINT16_T UINT32_T UINT64_T \ C_BOOL C_FLOAT_COMPLEX C_COMPLEX C_DOUBLE_COMPLEX C_LONG_DOUBLE_COMPLEX \ AINT OFFSET COUNT \ CXX_BOOL CXX_FLOAT_COMPLEX CXX_DOUBLE_COMPLEX CXX_LONG_DOUBLE_COMPLEX; do eval f77typename=MPI_F77_$type eval f77typevalue=\$$f77typename if test "$f77typevalue" = MPI_DATATYPE_NULL ; then eval F08_$type=MPI_DATATYPE_NULL%MPI_VAL else eval F08_$type=$f77typevalue fi done case $MPI_AINT in #( short) : F08_C_AINT="c_short" ;; #( int) : F08_C_AINT="c_int" ;; #( long) : F08_C_AINT="c_long" ;; #( 'long long') : F08_C_AINT="c_long_long" ;; #( *) : as_fn_error $? "unable to determine C MPI_AINT type in Fortran 2008" "$LINENO" 5 ;; esac case $MPI_COUNT in #( short) : F08_C_COUNT="c_short" ;; #( int) : F08_C_COUNT="c_int" ;; #( long) : F08_C_COUNT="c_long" ;; #( 'long long') : F08_C_COUNT="c_long_long" ;; #( *) : as_fn_error $? "unable to determine C MPI_COUNT type in Fortran 2008" "$LINENO" 5 ;; esac case $MPI_OFFSET in #( short) : F08_C_OFFSET="c_short" ;; #( int) : F08_C_OFFSET="c_int" ;; #( long) : F08_C_OFFSET="c_long" ;; #( 'long long') : F08_C_OFFSET="c_long_long" ;; #( *) : as_fn_error $? "unable to determine C MPI_OFFSET type in Fortran 2008" "$LINENO" 5 ;; esac fi ######################################################################## if test -z "$pkgconfigdir" ; then # The default pkgconfig dir is under the lib dir pkgconfigdir=$libdir/pkgconfig fi export pkgconfigdir ac_config_files="$ac_config_files Makefile examples/Makefile test/Makefile test/commands/Makefile src/include/mpichinfo.h mpich-doxygen src/include/mpir_ext.h src/binding/cxx/mpicxx.h src/binding/fortran/mpif_h/mpif.h src/binding/fortran/mpif_h/setbotf.f src/binding/fortran/mpif_h/setbot.c src/binding/fortran/use_mpi/mpi_sizeofs.f90 src/binding/fortran/use_mpi/mpi_base.f90 src/binding/fortran/use_mpi/mpi_constants.f90 src/binding/fortran/use_mpi_f08/mpi_f08_compile_constants.f90 src/binding/fortran/use_mpi_f08/mpi_c_interface_types.f90 src/packaging/pkgconfig/mpich.pc src/packaging/envmods/mpich.module src/env/mpixxx_opts.conf src/env/mpicc.sh src/env/mpicc.bash src/env/mpicxx.sh src/env/mpicxx.bash src/env/mpif77.sh src/env/mpif77.bash src/env/mpifort.sh src/env/mpifort.bash src/env/parkill src/include/mpi.h doc/design/Makefile doc/installguide/Makefile doc/logging/Makefile doc/refman/Makefile doc/userguide/Makefile test/commands/cmdtests" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${INSTALL_MPIF77_TRUE}" && test -z "${INSTALL_MPIF77_FALSE}"; then as_fn_error $? "conditional \"INSTALL_MPIF77\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_CH4_TRUE}" && test -z "${BUILD_CH4_FALSE}"; then as_fn_error $? "conditional \"BUILD_CH4\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_CH4_NETMOD_UCX_TRUE}" && test -z "${BUILD_CH4_NETMOD_UCX_FALSE}"; then as_fn_error $? "conditional \"BUILD_CH4_NETMOD_UCX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_SHM_STUBSHM_TRUE}" && test -z "${BUILD_SHM_STUBSHM_FALSE}"; then as_fn_error $? "conditional \"BUILD_SHM_STUBSHM\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_FC_BINDING_TRUE}" && test -z "${BUILD_FC_BINDING_FALSE}"; then as_fn_error $? "conditional \"BUILD_FC_BINDING\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_CH4_NETMOD_PORTALS4_TRUE}" && test -z "${BUILD_CH4_NETMOD_PORTALS4_FALSE}"; then as_fn_error $? "conditional \"BUILD_CH4_NETMOD_PORTALS4\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_CH4_NETMOD_STUBNM_TRUE}" && test -z "${BUILD_CH4_NETMOD_STUBNM_FALSE}"; then as_fn_error $? "conditional \"BUILD_CH4_NETMOD_STUBNM\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_HCOLL_TRUE}" && test -z "${BUILD_HCOLL_FALSE}"; then as_fn_error $? "conditional \"BUILD_HCOLL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_SHM_POSIX_TRUE}" && test -z "${BUILD_SHM_POSIX_FALSE}"; then as_fn_error $? "conditional \"BUILD_SHM_POSIX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_MPID_COMMON_BC_TRUE}" && test -z "${BUILD_MPID_COMMON_BC_FALSE}"; then as_fn_error $? "conditional \"BUILD_MPID_COMMON_BC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_CH3_TRUE}" && test -z "${BUILD_CH3_FALSE}"; then as_fn_error $? "conditional \"BUILD_CH3\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_CH3_UTIL_FTB_TRUE}" && test -z "${BUILD_CH3_UTIL_FTB_FALSE}"; then as_fn_error $? "conditional \"BUILD_CH3_UTIL_FTB\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_CH3_NEMESIS_TRUE}" && test -z "${BUILD_CH3_NEMESIS_FALSE}"; then as_fn_error $? "conditional \"BUILD_CH3_NEMESIS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_MPID_COMMON_SHM_TRUE}" && test -z "${BUILD_MPID_COMMON_SHM_FALSE}"; then as_fn_error $? "conditional \"BUILD_MPID_COMMON_SHM\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_NEMESIS_NETMOD_OFI_TRUE}" && test -z "${BUILD_NEMESIS_NETMOD_OFI_FALSE}"; then as_fn_error $? "conditional \"BUILD_NEMESIS_NETMOD_OFI\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_NEMESIS_NETMOD_PORTALS4_TRUE}" && test -z "${BUILD_NEMESIS_NETMOD_PORTALS4_FALSE}"; then as_fn_error $? "conditional \"BUILD_NEMESIS_NETMOD_PORTALS4\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_NEMESIS_NETMOD_LLC_TRUE}" && test -z "${BUILD_NEMESIS_NETMOD_LLC_FALSE}"; then as_fn_error $? "conditional \"BUILD_NEMESIS_NETMOD_LLC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_NEMESIS_NETMOD_TCP_TRUE}" && test -z "${BUILD_NEMESIS_NETMOD_TCP_FALSE}"; then as_fn_error $? "conditional \"BUILD_NEMESIS_NETMOD_TCP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_NEMESIS_NETMOD_MXM_TRUE}" && test -z "${BUILD_NEMESIS_NETMOD_MXM_FALSE}"; then as_fn_error $? "conditional \"BUILD_NEMESIS_NETMOD_MXM\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_MPID_COMMON_THREAD_TRUE}" && test -z "${BUILD_MPID_COMMON_THREAD_FALSE}"; then as_fn_error $? "conditional \"BUILD_MPID_COMMON_THREAD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_MPID_COMMON_SCHED_TRUE}" && test -z "${BUILD_MPID_COMMON_SCHED_FALSE}"; then as_fn_error $? "conditional \"BUILD_MPID_COMMON_SCHED\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_CH3_SOCK_TRUE}" && test -z "${BUILD_CH3_SOCK_FALSE}"; then as_fn_error $? "conditional \"BUILD_CH3_SOCK\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_CH3_UTIL_SOCK_TRUE}" && test -z "${BUILD_CH3_UTIL_SOCK_FALSE}"; then as_fn_error $? "conditional \"BUILD_CH3_UTIL_SOCK\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_CH4_NETMOD_OFI_TRUE}" && test -z "${BUILD_CH4_NETMOD_OFI_FALSE}"; then as_fn_error $? "conditional \"BUILD_CH4_NETMOD_OFI\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_LOGGING_RLOG_TRUE}" && test -z "${BUILD_LOGGING_RLOG_FALSE}"; then as_fn_error $? "conditional \"BUILD_LOGGING_RLOG\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PROFILING_LIB_TRUE}" && test -z "${BUILD_PROFILING_LIB_FALSE}"; then as_fn_error $? "conditional \"BUILD_PROFILING_LIB\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_BUILD_STANDALONE_TRUE}" && test -z "${HWLOC_BUILD_STANDALONE_FALSE}"; then as_fn_error $? "conditional \"HWLOC_BUILD_STANDALONE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_GCC_TRUE}" && test -z "${HWLOC_HAVE_GCC_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_GCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_MS_LIB_TRUE}" && test -z "${HWLOC_HAVE_MS_LIB_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_MS_LIB\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_OPENAT_TRUE}" && test -z "${HWLOC_HAVE_OPENAT_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_OPENAT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_SCHED_SETAFFINITY_TRUE}" && test -z "${HWLOC_HAVE_SCHED_SETAFFINITY_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_SCHED_SETAFFINITY\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_PTHREAD_TRUE}" && test -z "${HWLOC_HAVE_PTHREAD_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_PTHREAD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_LINUX_LIBNUMA_TRUE}" && test -z "${HWLOC_HAVE_LINUX_LIBNUMA_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_LINUX_LIBNUMA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_LIBIBVERBS_TRUE}" && test -z "${HWLOC_HAVE_LIBIBVERBS_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_LIBIBVERBS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_CUDA_TRUE}" && test -z "${HWLOC_HAVE_CUDA_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_CUDA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_GL_TRUE}" && test -z "${HWLOC_HAVE_GL_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_GL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_CUDART_TRUE}" && test -z "${HWLOC_HAVE_CUDART_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_CUDART\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_LIBXML2_TRUE}" && test -z "${HWLOC_HAVE_LIBXML2_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_LIBXML2\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_CAIRO_TRUE}" && test -z "${HWLOC_HAVE_CAIRO_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_CAIRO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_PCIACCESS_TRUE}" && test -z "${HWLOC_HAVE_PCIACCESS_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_PCIACCESS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_OPENCL_TRUE}" && test -z "${HWLOC_HAVE_OPENCL_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_OPENCL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_NVML_TRUE}" && test -z "${HWLOC_HAVE_NVML_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_NVML\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_BUNZIPP_TRUE}" && test -z "${HWLOC_HAVE_BUNZIPP_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_BUNZIPP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_USER32_TRUE}" && test -z "${HWLOC_HAVE_USER32_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_USER32\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_BUILD_DOXYGEN_TRUE}" && test -z "${HWLOC_BUILD_DOXYGEN_FALSE}"; then as_fn_error $? "conditional \"HWLOC_BUILD_DOXYGEN\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_BUILD_README_TRUE}" && test -z "${HWLOC_BUILD_README_FALSE}"; then as_fn_error $? "conditional \"HWLOC_BUILD_README\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_INSTALL_DOXYGEN_TRUE}" && test -z "${HWLOC_INSTALL_DOXYGEN_FALSE}"; then as_fn_error $? "conditional \"HWLOC_INSTALL_DOXYGEN\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_LINUX_TRUE}" && test -z "${HWLOC_HAVE_LINUX_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_LINUX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_BGQ_TRUE}" && test -z "${HWLOC_HAVE_BGQ_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_BGQ\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_IRIX_TRUE}" && test -z "${HWLOC_HAVE_IRIX_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_IRIX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_DARWIN_TRUE}" && test -z "${HWLOC_HAVE_DARWIN_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_DARWIN\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_FREEBSD_TRUE}" && test -z "${HWLOC_HAVE_FREEBSD_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_FREEBSD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_NETBSD_TRUE}" && test -z "${HWLOC_HAVE_NETBSD_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_NETBSD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_SOLARIS_TRUE}" && test -z "${HWLOC_HAVE_SOLARIS_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_SOLARIS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_AIX_TRUE}" && test -z "${HWLOC_HAVE_AIX_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_AIX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_HPUX_TRUE}" && test -z "${HWLOC_HAVE_HPUX_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_HPUX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_WINDOWS_TRUE}" && test -z "${HWLOC_HAVE_WINDOWS_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_WINDOWS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_MINGW32_TRUE}" && test -z "${HWLOC_HAVE_MINGW32_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_MINGW32\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_X86_TRUE}" && test -z "${HWLOC_HAVE_X86_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_X86\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_X86_32_TRUE}" && test -z "${HWLOC_HAVE_X86_32_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_X86_32\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_X86_64_TRUE}" && test -z "${HWLOC_HAVE_X86_64_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_X86_64\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_X86_CPUID_TRUE}" && test -z "${HWLOC_HAVE_X86_CPUID_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_X86_CPUID\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_PLUGINS_TRUE}" && test -z "${HWLOC_HAVE_PLUGINS_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_PLUGINS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_PCI_BUILD_STATIC_TRUE}" && test -z "${HWLOC_PCI_BUILD_STATIC_FALSE}"; then as_fn_error $? "conditional \"HWLOC_PCI_BUILD_STATIC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_OPENCL_BUILD_STATIC_TRUE}" && test -z "${HWLOC_OPENCL_BUILD_STATIC_FALSE}"; then as_fn_error $? "conditional \"HWLOC_OPENCL_BUILD_STATIC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_CUDA_BUILD_STATIC_TRUE}" && test -z "${HWLOC_CUDA_BUILD_STATIC_FALSE}"; then as_fn_error $? "conditional \"HWLOC_CUDA_BUILD_STATIC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_NVML_BUILD_STATIC_TRUE}" && test -z "${HWLOC_NVML_BUILD_STATIC_FALSE}"; then as_fn_error $? "conditional \"HWLOC_NVML_BUILD_STATIC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_GL_BUILD_STATIC_TRUE}" && test -z "${HWLOC_GL_BUILD_STATIC_FALSE}"; then as_fn_error $? "conditional \"HWLOC_GL_BUILD_STATIC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_XML_LIBXML_BUILD_STATIC_TRUE}" && test -z "${HWLOC_XML_LIBXML_BUILD_STATIC_FALSE}"; then as_fn_error $? "conditional \"HWLOC_XML_LIBXML_BUILD_STATIC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HWLOC_HAVE_CXX_TRUE}" && test -z "${HWLOC_HAVE_CXX_FALSE}"; then as_fn_error $? "conditional \"HWLOC_HAVE_CXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_NETLOC_TRUE}" && test -z "${BUILD_NETLOC_FALSE}"; then as_fn_error $? "conditional \"BUILD_NETLOC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_NETLOCSCOTCH_TRUE}" && test -z "${BUILD_NETLOCSCOTCH_FALSE}"; then as_fn_error $? "conditional \"BUILD_NETLOCSCOTCH\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_MPITOOLS_TRUE}" && test -z "${BUILD_MPITOOLS_FALSE}"; then as_fn_error $? "conditional \"BUILD_MPITOOLS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${FOUND_XZ_TRUE}" && test -z "${FOUND_XZ_FALSE}"; then as_fn_error $? "conditional \"FOUND_XZ\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${have_hwloc_TRUE}" && test -z "${have_hwloc_FALSE}"; then as_fn_error $? "conditional \"have_hwloc\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${use_embedded_hwloc_TRUE}" && test -z "${use_embedded_hwloc_FALSE}"; then as_fn_error $? "conditional \"use_embedded_hwloc\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_ROMIO_TRUE}" && test -z "${BUILD_ROMIO_FALSE}"; then as_fn_error $? "conditional \"BUILD_ROMIO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_F08_BINDING_TRUE}" && test -z "${BUILD_F08_BINDING_FALSE}"; then as_fn_error $? "conditional \"BUILD_F08_BINDING\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_BASH_SCRIPTS_TRUE}" && test -z "${BUILD_BASH_SCRIPTS_FALSE}"; then as_fn_error $? "conditional \"BUILD_BASH_SCRIPTS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_DEBUGGER_DLL_TRUE}" && test -z "${BUILD_DEBUGGER_DLL_FALSE}"; then as_fn_error $? "conditional \"BUILD_DEBUGGER_DLL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_NAMEPUB_FILE_TRUE}" && test -z "${BUILD_NAMEPUB_FILE_FALSE}"; then as_fn_error $? "conditional \"BUILD_NAMEPUB_FILE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_NAMEPUB_PMI_TRUE}" && test -z "${BUILD_NAMEPUB_PMI_FALSE}"; then as_fn_error $? "conditional \"BUILD_NAMEPUB_PMI\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_COVERAGE_TRUE}" && test -z "${BUILD_COVERAGE_FALSE}"; then as_fn_error $? "conditional \"BUILD_COVERAGE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_CH4_COLL_TUNING_TRUE}" && test -z "${BUILD_CH4_COLL_TUNING_FALSE}"; then as_fn_error $? "conditional \"BUILD_CH4_COLL_TUNING\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PM_HYDRA_TRUE}" && test -z "${BUILD_PM_HYDRA_FALSE}"; then as_fn_error $? "conditional \"BUILD_PM_HYDRA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PM_HYDRA2_TRUE}" && test -z "${BUILD_PM_HYDRA2_FALSE}"; then as_fn_error $? "conditional \"BUILD_PM_HYDRA2\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PM_GFORKER_TRUE}" && test -z "${BUILD_PM_GFORKER_FALSE}"; then as_fn_error $? "conditional \"BUILD_PM_GFORKER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${PRIMARY_PM_GFORKER_TRUE}" && test -z "${PRIMARY_PM_GFORKER_FALSE}"; then as_fn_error $? "conditional \"PRIMARY_PM_GFORKER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PM_REMSHELL_TRUE}" && test -z "${BUILD_PM_REMSHELL_FALSE}"; then as_fn_error $? "conditional \"BUILD_PM_REMSHELL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${PRIMARY_PM_REMSHELL_TRUE}" && test -z "${PRIMARY_PM_REMSHELL_FALSE}"; then as_fn_error $? "conditional \"PRIMARY_PM_REMSHELL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PM_UTIL_TRUE}" && test -z "${BUILD_PM_UTIL_FALSE}"; then as_fn_error $? "conditional \"BUILD_PM_UTIL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PMI_SLURM_TRUE}" && test -z "${BUILD_PMI_SLURM_FALSE}"; then as_fn_error $? "conditional \"BUILD_PMI_SLURM\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PMI_PMI2_TRUE}" && test -z "${BUILD_PMI_PMI2_FALSE}"; then as_fn_error $? "conditional \"BUILD_PMI_PMI2\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PMI_PMI2_SIMPLE_TRUE}" && test -z "${BUILD_PMI_PMI2_SIMPLE_FALSE}"; then as_fn_error $? "conditional \"BUILD_PMI_PMI2_SIMPLE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PMI_BGQ_TRUE}" && test -z "${BUILD_PMI_BGQ_FALSE}"; then as_fn_error $? "conditional \"BUILD_PMI_BGQ\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PMI_CRAY_TRUE}" && test -z "${BUILD_PMI_CRAY_FALSE}"; then as_fn_error $? "conditional \"BUILD_PMI_CRAY\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PMI_SIMPLE_TRUE}" && test -z "${BUILD_PMI_SIMPLE_FALSE}"; then as_fn_error $? "conditional \"BUILD_PMI_SIMPLE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_CXX_BINDING_TRUE}" && test -z "${BUILD_CXX_BINDING_FALSE}"; then as_fn_error $? "conditional \"BUILD_CXX_BINDING\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_F77_BINDING_TRUE}" && test -z "${BUILD_F77_BINDING_FALSE}"; then as_fn_error $? "conditional \"BUILD_F77_BINDING\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by MPICH $as_me 3.3.2, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to . MPICH home page: ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ MPICH config.status 3.3.2 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 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"`' lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`' reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`' reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`' old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`' compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`' GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`' compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`' archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`' hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`' hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`' inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`' link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`' always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`' exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`' include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`' prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`' postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`' postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`' file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`' hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`' predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`' postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`' predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`' postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } # Quote evaled strings. for var in SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ DLLTOOL \ sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_import \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ lt_cv_nm_interface \ nm_file_list_spec \ lt_cv_truncate_bin \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib \ compiler_lib_search_dirs \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ LD_CXX \ LD_FC \ LD_F77 \ reload_flag_CXX \ reload_flag_FC \ reload_flag_F77 \ compiler_CXX \ compiler_FC \ compiler_F77 \ lt_prog_compiler_no_builtin_flag_CXX \ lt_prog_compiler_no_builtin_flag_FC \ lt_prog_compiler_no_builtin_flag_F77 \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_pic_FC \ lt_prog_compiler_pic_F77 \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_wl_FC \ lt_prog_compiler_wl_F77 \ lt_prog_compiler_static_CXX \ lt_prog_compiler_static_FC \ lt_prog_compiler_static_F77 \ lt_cv_prog_compiler_c_o_CXX \ lt_cv_prog_compiler_c_o_FC \ lt_cv_prog_compiler_c_o_F77 \ export_dynamic_flag_spec_CXX \ export_dynamic_flag_spec_FC \ export_dynamic_flag_spec_F77 \ whole_archive_flag_spec_CXX \ whole_archive_flag_spec_FC \ whole_archive_flag_spec_F77 \ compiler_needs_object_CXX \ compiler_needs_object_FC \ compiler_needs_object_F77 \ with_gnu_ld_CXX \ with_gnu_ld_FC \ with_gnu_ld_F77 \ allow_undefined_flag_CXX \ allow_undefined_flag_FC \ allow_undefined_flag_F77 \ no_undefined_flag_CXX \ no_undefined_flag_FC \ no_undefined_flag_F77 \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_FC \ hardcode_libdir_flag_spec_F77 \ hardcode_libdir_separator_CXX \ hardcode_libdir_separator_FC \ hardcode_libdir_separator_F77 \ exclude_expsyms_CXX \ exclude_expsyms_FC \ exclude_expsyms_F77 \ include_expsyms_CXX \ include_expsyms_FC \ include_expsyms_F77 \ file_list_spec_CXX \ file_list_spec_FC \ file_list_spec_F77 \ compiler_lib_search_dirs_CXX \ compiler_lib_search_dirs_FC \ compiler_lib_search_dirs_F77 \ predep_objects_CXX \ predep_objects_FC \ predep_objects_F77 \ postdep_objects_CXX \ postdep_objects_FC \ postdep_objects_F77 \ predeps_CXX \ predeps_FC \ predeps_F77 \ postdeps_CXX \ postdeps_FC \ postdeps_F77 \ compiler_lib_search_path_CXX \ compiler_lib_search_path_FC \ compiler_lib_search_path_F77; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ configure_time_dlsearch_path \ configure_time_lt_sys_library_path \ reload_cmds_CXX \ reload_cmds_FC \ reload_cmds_F77 \ old_archive_cmds_CXX \ old_archive_cmds_FC \ old_archive_cmds_F77 \ old_archive_from_new_cmds_CXX \ old_archive_from_new_cmds_FC \ old_archive_from_new_cmds_F77 \ old_archive_from_expsyms_cmds_CXX \ old_archive_from_expsyms_cmds_FC \ old_archive_from_expsyms_cmds_F77 \ archive_cmds_CXX \ archive_cmds_FC \ archive_cmds_F77 \ archive_expsym_cmds_CXX \ archive_expsym_cmds_FC \ archive_expsym_cmds_F77 \ module_cmds_CXX \ module_cmds_FC \ module_cmds_F77 \ module_expsym_cmds_CXX \ module_expsym_cmds_FC \ module_expsym_cmds_F77 \ export_symbols_cmds_CXX \ export_symbols_cmds_FC \ export_symbols_cmds_F77 \ prelink_cmds_CXX \ prelink_cmds_FC \ prelink_cmds_F77 \ postlink_cmds_CXX \ postlink_cmds_FC \ postlink_cmds_F77; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile' ac_aux_dir='$ac_aux_dir' master_top_srcdir=$master_top_srcdir enable_f77=$enable_f77 enable_fc=$enable_fc has_exclaim=$has_exclaim has_fort_real8=$pac_cv_fort_real8 includebuild_dir=$includebuild_dir libbuild_dir=$libbuild_dir bashWorks=$bashWorks EXTERNAL_SETUPS="$EXTERNAL_SETUPS" LIBDIR="$libbuild_dir" MPILIBNAME="$MPILIBNAME" PMPILIBNAME="$PMPILIBNAME" AR="$AR" CC="$CC" CPPFLAGS="$CPPFLAGS" CFLAGS="$CFLAGS" export LIBDIR ; export MPILIBNAME ; export AR ; export CC ; export CPPFLAGS export PMPILIBNAME export CFLAGS # For test/mpi/configure MPI_SRCDIR=$MPI_SRCDIR MPI_NO_SPAWN=$MPID_NO_SPAWN export MPI_SRCDIR export MPI_NO_SPAWN _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "src/include/mpichconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/mpichconf.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "src/hwloc/include/private/autogen/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/hwloc/include/private/autogen/config.h" ;; "src/hwloc/include/hwloc/autogen/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/hwloc/include/hwloc/autogen/config.h" ;; "src/hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES src/hwloc/Makefile" ;; "src/hwloc/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/hwloc/include/Makefile" ;; "src/hwloc/hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES src/hwloc/hwloc/Makefile" ;; "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; "src/mpid/ch4/src/mpid_ch4_net_array.c") CONFIG_FILES="$CONFIG_FILES src/mpid/ch4/src/mpid_ch4_net_array.c" ;; "src/mpid/ch4/include/netmodpre.h") CONFIG_FILES="$CONFIG_FILES src/mpid/ch4/include/netmodpre.h" ;; "src/mpid/ch4/include/coll_algo_params.h") CONFIG_FILES="$CONFIG_FILES src/mpid/ch4/include/coll_algo_params.h" ;; "src/mpid/ch4/src/ch4_coll_globals_default.c") CONFIG_FILES="$CONFIG_FILES src/mpid/ch4/src/ch4_coll_globals_default.c" ;; "src/binding/fortran/use_mpi/mpif90model.h") CONFIG_FILES="$CONFIG_FILES src/binding/fortran/use_mpi/mpif90model.h" ;; "src/mpid/ch3/channels/nemesis/include/mpid_nem_net_module_defs.h") CONFIG_FILES="$CONFIG_FILES src/mpid/ch3/channels/nemesis/include/mpid_nem_net_module_defs.h" ;; "src/mpid/ch3/channels/nemesis/src/mpid_nem_net_array.c") CONFIG_FILES="$CONFIG_FILES src/mpid/ch3/channels/nemesis/src/mpid_nem_net_array.c" ;; "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;; "default-3") CONFIG_COMMANDS="$CONFIG_COMMANDS default-3" ;; "default-4") CONFIG_COMMANDS="$CONFIG_COMMANDS default-4" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; "test/commands/Makefile") CONFIG_FILES="$CONFIG_FILES test/commands/Makefile" ;; "src/include/mpichinfo.h") CONFIG_FILES="$CONFIG_FILES src/include/mpichinfo.h" ;; "mpich-doxygen") CONFIG_FILES="$CONFIG_FILES mpich-doxygen" ;; "src/include/mpir_ext.h") CONFIG_FILES="$CONFIG_FILES src/include/mpir_ext.h" ;; "src/binding/cxx/mpicxx.h") CONFIG_FILES="$CONFIG_FILES src/binding/cxx/mpicxx.h" ;; "src/binding/fortran/mpif_h/mpif.h") CONFIG_FILES="$CONFIG_FILES src/binding/fortran/mpif_h/mpif.h" ;; "src/binding/fortran/mpif_h/setbotf.f") CONFIG_FILES="$CONFIG_FILES src/binding/fortran/mpif_h/setbotf.f" ;; "src/binding/fortran/mpif_h/setbot.c") CONFIG_FILES="$CONFIG_FILES src/binding/fortran/mpif_h/setbot.c" ;; "src/binding/fortran/use_mpi/mpi_sizeofs.f90") CONFIG_FILES="$CONFIG_FILES src/binding/fortran/use_mpi/mpi_sizeofs.f90" ;; "src/binding/fortran/use_mpi/mpi_base.f90") CONFIG_FILES="$CONFIG_FILES src/binding/fortran/use_mpi/mpi_base.f90" ;; "src/binding/fortran/use_mpi/mpi_constants.f90") CONFIG_FILES="$CONFIG_FILES src/binding/fortran/use_mpi/mpi_constants.f90" ;; "src/binding/fortran/use_mpi_f08/mpi_f08_compile_constants.f90") CONFIG_FILES="$CONFIG_FILES src/binding/fortran/use_mpi_f08/mpi_f08_compile_constants.f90" ;; "src/binding/fortran/use_mpi_f08/mpi_c_interface_types.f90") CONFIG_FILES="$CONFIG_FILES src/binding/fortran/use_mpi_f08/mpi_c_interface_types.f90" ;; "src/packaging/pkgconfig/mpich.pc") CONFIG_FILES="$CONFIG_FILES src/packaging/pkgconfig/mpich.pc" ;; "src/packaging/envmods/mpich.module") CONFIG_FILES="$CONFIG_FILES src/packaging/envmods/mpich.module" ;; "src/env/mpixxx_opts.conf") CONFIG_FILES="$CONFIG_FILES src/env/mpixxx_opts.conf" ;; "src/env/mpicc.sh") CONFIG_FILES="$CONFIG_FILES src/env/mpicc.sh" ;; "src/env/mpicc.bash") CONFIG_FILES="$CONFIG_FILES src/env/mpicc.bash" ;; "src/env/mpicxx.sh") CONFIG_FILES="$CONFIG_FILES src/env/mpicxx.sh" ;; "src/env/mpicxx.bash") CONFIG_FILES="$CONFIG_FILES src/env/mpicxx.bash" ;; "src/env/mpif77.sh") CONFIG_FILES="$CONFIG_FILES src/env/mpif77.sh" ;; "src/env/mpif77.bash") CONFIG_FILES="$CONFIG_FILES src/env/mpif77.bash" ;; "src/env/mpifort.sh") CONFIG_FILES="$CONFIG_FILES src/env/mpifort.sh" ;; "src/env/mpifort.bash") CONFIG_FILES="$CONFIG_FILES src/env/mpifort.bash" ;; "src/env/parkill") CONFIG_FILES="$CONFIG_FILES src/env/parkill" ;; "src/include/mpi.h") CONFIG_FILES="$CONFIG_FILES src/include/mpi.h" ;; "doc/design/Makefile") CONFIG_FILES="$CONFIG_FILES doc/design/Makefile" ;; "doc/installguide/Makefile") CONFIG_FILES="$CONFIG_FILES doc/installguide/Makefile" ;; "doc/logging/Makefile") CONFIG_FILES="$CONFIG_FILES doc/logging/Makefile" ;; "doc/refman/Makefile") CONFIG_FILES="$CONFIG_FILES doc/refman/Makefile" ;; "doc/userguide/Makefile") CONFIG_FILES="$CONFIG_FILES doc/userguide/Makefile" ;; "test/commands/cmdtests") CONFIG_FILES="$CONFIG_FILES test/commands/cmdtests" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then if $AWK 'BEGIN { getline <"/dev/null" }' /dev/null; then ac_cs_awk_getline=: ac_cs_awk_pipe_init= ac_cs_awk_read_file=' while ((getline aline < (F[key])) > 0) print(aline) close(F[key])' ac_cs_awk_pipe_fini= else ac_cs_awk_getline=false ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" ac_cs_awk_read_file=' print "|#_!!_#|" print "cat " F[key] " &&" '$ac_cs_awk_pipe_init # The final `:' finishes the AND list. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' fi ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF # Create commands to substitute file output variables. { echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && echo "_ACAWK" && echo "_ACEOF" } >conf$$files.sh && . ./conf$$files.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 rm -f conf$$files.sh { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" \$ac_cs_awk_pipe_init } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } if (nfields == 3 && !substed) { key = field[2] if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { \$ac_cs_awk_read_file next } } print line } \$ac_cs_awk_pipe_fini _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | if $ac_cs_awk_getline; then $AWK -f "$ac_tmp/subs.awk" else $AWK -f "$ac_tmp/subs.awk" | $SHELL fi \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "libtool":C) # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. # Written by Gordon Matzigkeit, 1996 # Copyright (C) 2014 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program or library that is built # using GNU Libtool, you may include this file under the same # distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # The names of the tagged configurations supported by this script. available_tags='CXX FC F77 ' # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shared archive member basename,for filename based shared library versioning on AIX. shared_archive_member_spec=$shared_archive_member_spec # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The PATH separator for the build system. PATH_SEPARATOR=$lt_PATH_SEPARATOR # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd # How to find potential files when deplibs_check_method = "file_magic". file_magic_glob=$lt_file_magic_glob # Find potential files using nocaseglob when deplibs_check_method = "file_magic". want_nocaseglob=$lt_want_nocaseglob # DLL creation program. DLLTOOL=$lt_DLLTOOL # Command to associate shared and link libraries. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR # Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm into a list of symbols to manually relocate. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # The name lister interface. nm_interface=$lt_lt_cv_nm_interface # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and where our libraries should be installed. lt_sysroot=$lt_sysroot # Command to truncate a binary pipe. lt_truncate_bin=$lt_lt_cv_truncate_bin # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Detected run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects postdep_objects=$lt_postdep_objects predeps=$lt_predeps postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain=$ac_aux_dir/ltmain.sh # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: CXX # The linker used to build libraries. LD=$lt_LD_CXX # How to create reloadable object files. reload_flag=$lt_reload_flag_CXX reload_cmds=$lt_reload_cmds_CXX # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_CXX # A language specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU compiler? with_gcc=$GCC_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_CXX # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_CXX # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute_CXX # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic_CXX # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_CXX # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_CXX # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_CXX # Specify filename containing input files. file_list_spec=$lt_file_list_spec_CXX # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_CXX postdep_objects=$lt_postdep_objects_CXX predeps=$lt_predeps_CXX postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # ### END LIBTOOL TAG CONFIG: CXX _LT_EOF cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: FC # The linker used to build libraries. LD=$lt_LD_FC # How to create reloadable object files. reload_flag=$lt_reload_flag_FC reload_cmds=$lt_reload_cmds_FC # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_FC # A language specific compiler. CC=$lt_compiler_FC # Is the compiler the GNU compiler? with_gcc=$GCC_FC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_FC # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_FC # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_FC # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_FC # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_FC # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_FC archive_expsym_cmds=$lt_archive_expsym_cmds_FC # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_FC module_expsym_cmds=$lt_module_expsym_cmds_FC # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_FC # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_FC # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_FC # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_FC # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute_FC # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_FC # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_FC # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic_FC # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_FC # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_FC # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_FC # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_FC # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_FC # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_FC # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_FC # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_FC # Specify filename containing input files. file_list_spec=$lt_file_list_spec_FC # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_FC # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_FC postdep_objects=$lt_postdep_objects_FC predeps=$lt_predeps_FC postdeps=$lt_postdeps_FC # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_FC # ### END LIBTOOL TAG CONFIG: FC _LT_EOF cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: F77 # The linker used to build libraries. LD=$lt_LD_F77 # How to create reloadable object files. reload_flag=$lt_reload_flag_F77 reload_cmds=$lt_reload_cmds_F77 # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_F77 # A language specific compiler. CC=$lt_compiler_F77 # Is the compiler the GNU compiler? with_gcc=$GCC_F77 # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_F77 # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_F77 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_F77 # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_F77 # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_F77 # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_F77 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_F77 module_expsym_cmds=$lt_module_expsym_cmds_F77 # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_F77 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_F77 # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_F77 # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_F77 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute_F77 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_F77 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic_F77 # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_F77 # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_F77 # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_F77 # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_F77 # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_F77 # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_F77 # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_F77 # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_F77 # Specify filename containing input files. file_list_spec=$lt_file_list_spec_F77 # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_F77 # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_F77 postdep_objects=$lt_postdep_objects_F77 predeps=$lt_predeps_F77 postdeps=$lt_postdeps_F77 # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_F77 # ### END LIBTOOL TAG CONFIG: F77 _LT_EOF ;; "default-1":C) if test "$enable_f77" = yes ; then if test "$has_exclaim" = "yes" ; then sed -e 's/^C/\!/g' src/binding/fortran/mpif_h/mpif.h > src/include/mpif.h cp src/include/mpif.h src/binding/fortran/mpif_h/mpif.h else cp src/binding/fortran/mpif_h/mpif.h src/include fi if test "$has_fort_real8" = "yes" ; then sed -e 's/DOUBLE PRECISION/REAL*8/g' src/include/mpif.h > src/include/mpif.h.new mv src/include/mpif.h.new src/include/mpif.h cp src/include/mpif.h src/binding/fortran/mpif_h/mpif.h fi fi ;; "default-2":C) for prog in $EXTERNAL_SETUPS - ; do if test "$prog" != "-" ; then dir=`dirname $prog` name=`basename $prog` (cd $dir && ./$name) fi done ;; "default-3":C) if [ ! -d lib ] ; then mkdir lib ; fi date > lib/newconfig ;; "default-4":C) chmod a+x test/commands/cmdtests ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi # # CONFIG_SUBDIRS section. # if test "$no_recursion" != yes; then # Remove --cache-file, --srcdir, and --disable-option-checking arguments # so they do not pile up. ac_sub_configure_args= ac_prev= eval "set x $ac_configure_args" shift for ac_arg do if test -n "$ac_prev"; then ac_prev= continue fi case $ac_arg in -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | --c=*) ;; --config-cache | -C) ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ;; --disable-option-checking) ;; *) case $ac_arg in *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append ac_sub_configure_args " '$ac_arg'" ;; esac done # Always prepend --prefix to ensure using the same prefix # in subdir configurations. ac_arg="--prefix=$prefix" case $ac_arg in *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" # Pass --silent if test "$silent" = yes; then ac_sub_configure_args="--silent $ac_sub_configure_args" fi # Always prepend --disable-option-checking to silence warnings, since # different subdirs can have different --enable and --with options. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" ac_popdir=`pwd` for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. test -d "$srcdir/$ac_dir" || continue ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 $as_echo "$ac_msg" >&6 as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" # Check for guested configure; otherwise get Cygnus style configure. if test -f "$ac_srcdir/configure.gnu"; then ac_sub_configure=$ac_srcdir/configure.gnu elif test -f "$ac_srcdir/configure"; then ac_sub_configure=$ac_srcdir/configure elif test -f "$ac_srcdir/configure.in"; then # This should be Cygnus configure. ac_sub_configure=$ac_aux_dir/configure else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} ac_sub_configure= fi # The recursion is here. if test -n "$ac_sub_configure"; then # Make the cache file name correct relative to the subdirectory. case $cache_file in [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; *) # Relative name. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 fi cd "$ac_popdir" done fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi echo 'Configuration completed.'