#! /bin/sh # From configure.in Revision: 1.60.1.37 # the "new" way # AC_INIT(GASNet, 0.2) # AC_CONFIG_SRCDIR(gasnet.h) # AM_INIT_AUTOMAKE([no-define]) # the "old" way # Define a conditional. # Do all the work for Automake. This macro actually does too much -- # some checks are only needed if your package does certain things. # But this isn't really a big deal. # serial 1 # # Check to make sure that the build environment is sane. # # Like AC_CONFIG_HEADER, but automatically create stamp file. # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. # Defaults: ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_default_prefix=/usr/local ac_help="$ac_help --enable-pthreads support pthreaded GASNet clients" ac_help="$ac_help --disable-pthreads support pthreaded GASNet clients" ac_help="$ac_help --with-cc= value for CC" ac_help="$ac_help --disable-full-path-expansion Disable expansion of program names to full pathnames" ac_help="$ac_help --enable-cross-compile Enable cross-compilation (experimental) " ac_help="$ac_help --enable-allow-gcc296 Allow the use of the broken gcc/g++ 2.96 compiler" ac_help="$ac_help --enable-allow-gcc32 Allow the use of the known broken gcc/g++ 3.2.0-2 compiler" ac_help="$ac_help --enable-debug Build GASNet in a debugging mode" ac_help="$ac_help --enable-gasnet-verbose Build GASNet lib with debugging status messages" ac_help="$ac_help --enable-trace Build GASNet with tracing enabled (enabled by default with --enable-debug)" ac_help="$ac_help --disable-trace Build GASNet with tracing enabled (enabled by default with --enable-debug)" ac_help="$ac_help --enable-stats Build GASNet with statistical collection enabled (enabled by default with --enable-debug)" ac_help="$ac_help --disable-stats Build GASNet with statistical collection enabled (enabled by default with --enable-debug)" ac_help="$ac_help --enable-segment-fast Build GASNet in the FAST shared segment configuration" ac_help="$ac_help --enable-segment-large Build GASNet in the LARGE shared segment configuration" ac_help="$ac_help --enable-segment-everything Build GASNet in the EVERYTHING shared segment configuration" ac_help="$ac_help --with-segment-mmap-max=value Upper bound for mmap-based GASNet segments (ex: "2GB", "1045MB")" ac_help="$ac_help --with-barrier=value Default barrier implementation to use for reference extended implementation" ac_help="$ac_help --with-cross-sizeof-char= value for CROSS_SIZEOF_CHAR" ac_help="$ac_help --with-cross-sizeof-short= value for CROSS_SIZEOF_SHORT" ac_help="$ac_help --with-cross-sizeof-int= value for CROSS_SIZEOF_INT" ac_help="$ac_help --with-cross-sizeof-long= value for CROSS_SIZEOF_LONG" ac_help="$ac_help --with-cross-sizeof-long-long= value for CROSS_SIZEOF_LONG_LONG" ac_help="$ac_help --with-cross-sizeof-void-p= value for CROSS_SIZEOF_VOID_P" ac_help="$ac_help --with-cross-pagesize= value for CROSS_PAGESIZE" ac_help="$ac_help --with-pthreads-include= value for PTHREADS_INCLUDE" ac_help="$ac_help --with-pthreads-lib= value for PTHREADS_LIB" ac_help="$ac_help --enable-smp-safe Enable build of SMP-safe libraries (default is to probe at configure time)" ac_help="$ac_help --disable-smp-safe Enable build of SMP-safe libraries (default is to probe at configure time)" ac_help="$ac_help --enable-loopback-memsync Force memory barriers for GASNet local (loopback) puts and gets" ac_help="$ac_help --enable-throttle-poll throttle polling threads in multi-threaded configurations to reduce contention" ac_help="$ac_help --enable-udp Enable/disable the portable UDP network conduit (udp) (auto-detected)" ac_help="$ac_help --disable-udp Enable/disable the portable UDP network conduit (udp) (auto-detected)" ac_help="$ac_help --enable-cross-compile Enable cross-compilation (experimental) " ac_help="$ac_help --enable-allow-gcc296 Allow the use of the broken gcc/g++ 2.96 compiler" ac_help="$ac_help --enable-allow-gcc32 Allow the use of the known broken gcc/g++ 3.2.0-2 compiler" ac_help="$ac_help --with-gasnet-cspawn-cmd= value for GASNET_CSPAWN_CMD" ac_help="$ac_help --enable-mpi Enable/disable the portable MPI-1.1 network conduit (mpi) (auto-detected)" ac_help="$ac_help --disable-mpi Enable/disable the portable MPI-1.1 network conduit (mpi) (auto-detected)" ac_help="$ac_help --with-mpi-cc= value for MPI_CC" ac_help="$ac_help --with-mpi-cflags= value for MPI_CFLAGS" ac_help="$ac_help --with-mpi-libs= value for MPI_LIBS" ac_help="$ac_help --with-mpirun-cmd= value for MPIRUN_CMD" ac_help="$ac_help --enable-smp Enable/disable the portable SMP-loopback network conduit (smp) (auto-detected)" ac_help="$ac_help --disable-smp Enable/disable the portable SMP-loopback network conduit (smp) (auto-detected)" ac_help="$ac_help --enable-gm Enable/disable the Myricom/GM network conduit (gm) (auto-detected)" ac_help="$ac_help --disable-gm Enable/disable the Myricom/GM network conduit (gm) (auto-detected)" ac_help="$ac_help --with-gmhome= value for GMHOME" ac_help="$ac_help --with-gm-include= value for GM_INCLUDE" ac_help="$ac_help --with-gm-lib= value for GM_LIB" ac_help="$ac_help --enable-broken-gm Allow 2.x GM versions with broken RDMA gets" ac_help="$ac_help --enable-gm-mpi-compat Enable/disable GM interoperability with MPI (enabled if MPI detected)" ac_help="$ac_help --disable-gm-mpi-compat Enable/disable GM interoperability with MPI (enabled if MPI detected)" ac_help="$ac_help --enable-gm-rodata-workaround Enable rodata permissions hack to work-around GM's inability to register read-only program data segments" ac_help="$ac_help --enable-lapi Enable the LAPI (IBM SP) network conduit (lapi) (auto-detected)" ac_help="$ac_help --disable-lapi Enable the LAPI (IBM SP) network conduit (lapi) (auto-detected)" ac_help="$ac_help --with-lapi-type=value IBM Switch hardware type ("colony" or "federation", default is to probe)" ac_help="$ac_help --enable-elan Enable/disable the Quadrics Elan3/Elan4 network conduit (elan) (auto-detected)" ac_help="$ac_help --disable-elan Enable/disable the Quadrics Elan3/Elan4 network conduit (elan) (auto-detected)" ac_help="$ac_help --with-elan-include= value for ELAN_INCLUDE" ac_help="$ac_help --with-elan-libs= value for ELAN_LIBS" ac_help="$ac_help --enable-vapi Enable/disable the Mellanox InfiniBand/VAPI network conduit (vapi) (auto-detected)" ac_help="$ac_help --disable-vapi Enable/disable the Mellanox InfiniBand/VAPI network conduit (vapi) (auto-detected)" ac_help="$ac_help --with-mthome= value for MTHOME" ac_help="$ac_help --with-vapi-include= value for VAPI_INCLUDE" ac_help="$ac_help --with-vapi-libs= value for VAPI_LIBS" ac_help="$ac_help --with-vapi-libdir= value for VAPI_LIBDIR" ac_help="$ac_help --enable-vapi-force-poll-lock See vapi-conduit/README (disabled by default)" ac_help="$ac_help --disable-vapi-force-poll-lock See vapi-conduit/README (disabled by default)" ac_help="$ac_help --enable-vapi-rcv-thread See vapi-conduit/README (enabled by default)" ac_help="$ac_help --disable-vapi-rcv-thread See vapi-conduit/README (enabled by default)" ac_help="$ac_help --with-vapi-spawner=value VAPI job spawner ("ssh" or "mpi", default is mpi when available)" ac_help="$ac_help --enable-shmem Enable the Shmem network conduit (shmem) (auto-detected)" ac_help="$ac_help --disable-shmem Enable the Shmem network conduit (shmem) (auto-detected)" ac_help="$ac_help --with-shmem-include= value for SHMEM_INCLUDE" ac_help="$ac_help --with-shmem-libdir= value for SHMEM_LIBDIR" ac_help="$ac_help --with-shmem-libs= value for SHMEM_LIBS" ac_help="$ac_help --enable-sci Enable the Dolphin SISCI network conduit (sci) (auto-detected)" ac_help="$ac_help --disable-sci Enable the Dolphin SISCI network conduit (sci) (auto-detected)" ac_help="$ac_help --with-scihome= value for SCIHOME" ac_help="$ac_help --with-sci-includes= value for SCI_INCLUDES" ac_help="$ac_help --with-sci-libs= value for SCI_LIBS" ac_help="$ac_help --enable-ssh-prctl Enable use of prctl() in the ssh-based spawner (see other/ssh-spawner/README) (disabled by default)" ac_help="$ac_help --with-cross-have-mmap= value for CROSS_HAVE_MMAP" ac_help="$ac_help --with-tool-prefix=value Naming prefix to use for contributed tools" # Initialize some variables set by options. # The variables have the same names as the options, with # dashes changed to underlines. build=NONE cache_file=./config.cache exec_prefix=NONE host=NONE no_create= nonopt=NONE no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= target=NONE verbose= x_includes=NONE x_libraries=NONE bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' # Initialize some other variables. subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. ac_max_here_lines=12 ac_prev= 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=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) ac_optarg= ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case "$ac_option" in -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 ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build="$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" ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir="$ac_optarg" ;; -disable-* | --disable-*) ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` eval "enable_${ac_feature}=no" ;; -enable-* | --enable-*) ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "enable_${ac_feature}='$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) # 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 << EOF Usage: configure [options] [host] Options: [defaults in brackets after descriptions] Configuration: --cache-file=FILE cache test results in FILE --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [same as prefix] --bindir=DIR user executables in DIR [EPREFIX/bin] --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] --libexecdir=DIR program executables in DIR [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share] --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com] --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] --libdir=DIR object code libraries in DIR [EPREFIX/lib] --includedir=DIR C header files in DIR [PREFIX/include] --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] --infodir=DIR info documentation in DIR [PREFIX/info] --mandir=DIR man documentation in DIR [PREFIX/man] --srcdir=DIR find the sources in DIR [configure dir or ..] --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 EOF cat << EOF Host type: --build=BUILD configure for building on BUILD [BUILD=HOST] --host=HOST configure for HOST [guessed] --target=TARGET configure for TARGET [TARGET=HOST] Features and packages: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR EOF if test -n "$ac_help"; then echo "--enable and --with options recognized:$ac_help" fi exit 0 ;; -host | --host | --hos | --ho) ac_prev=host ;; -host=* | --host=* | --hos=* | --ho=*) host="$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" ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 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) 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" ;; -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 ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target="$ac_optarg" ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers) echo "configure generated by autoconf version 2.13" exit 0 ;; -with-* | --with-*) ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "with_${ac_package}='$ac_optarg'" ;; -without-* | --without-*) ac_package=`echo $ac_option|sed -e 's/-*without-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` eval "with_${ac_package}=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" ;; -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } ;; *) if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then echo "configure: warning: $ac_option: invalid host type" 1>&2 fi if test "x$nonopt" != xNONE; then { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } fi nonopt="$ac_option" ;; esac done if test -n "$ac_prev"; then { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } fi trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 # File descriptor usage: # 0 standard input # 1 file creation # 2 errors and warnings # 3 some systems may open it to /dev/tty # 4 used on the Kubota Titan # 6 checking for... messages and results # 5 compiler messages saved in config.log if test "$silent" = yes; then exec 6>/dev/null else exec 6>&1 fi exec 5>./config.log echo "\ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. " 1>&5 # Strip out --no-create and --no-recursion so they do not pile up. # Also quote any args containing shell metacharacters. ac_configure_args= for ac_arg do case "$ac_arg" in -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; *) ac_configure_args="$ac_configure_args $ac_arg" ;; esac done # NLS nuisances. # Only set these to C if already set. These must not be set unconditionally # because not all systems understand e.g. LANG=C (notably SCO). # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! # Non-C LC_CTYPE values break the ctype check. if test "${LANG+set}" = set; then LANG=C; export LANG; fi if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo > confdefs.h # A filename unique to this package, relative to the directory that # configure is in, which we can look for to find out if srcdir is correct. ac_unique_file=gasnet.h # 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 its parent. ac_prog=$0 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 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 if test "$ac_srcdir_defaulted" = yes; then { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } else { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } fi fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then echo "loading site script $ac_site_file" . "$ac_site_file" fi done if test -r "$cache_file"; then echo "loading cache $cache_file" . $cache_file else echo "creating cache $cache_file" > $cache_file fi ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross ac_exeext= ac_objext=o if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c=' ' ac_t=' ' else ac_n=-n ac_c= ac_t= fi else ac_n= ac_c='\c' ac_t= fi echo $ac_n "checking for good shell""... $ac_c" 1>&6 echo "configure:875: checking for good shell" >&5 if test "$BASH" = '' && test `uname` = HP-UX; then echo "$ac_t""no, switching to bash" 1>&6 case $# in 0) exec bash - "$0" ;; *) exec bash - "$0" "$@" ;; esac else echo "$ac_t""yes" 1>&6 fi ac_aux_dir= for ac_dir in config-aux $srcdir/config-aux; 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 fi done if test -z "$ac_aux_dir"; then { echo "configure: error: can not find install-sh or install.sh in config-aux $srcdir/config-aux" 1>&2; exit 1; } fi ac_config_guess=$ac_aux_dir/config.guess ac_config_sub=$ac_aux_dir/config.sub ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. # Do some error checking and defaulting for the host and target type. # The inputs are: # configure --host=HOST --target=TARGET --build=BUILD NONOPT # # The rules are: # 1. You are not allowed to specify --host, --target, and nonopt at the # same time. # 2. Host defaults to nonopt. # 3. If nonopt is not specified, then host defaults to the current host, # as determined by config.guess. # 4. Target and build default to nonopt. # 5. If nonopt is not specified, then target and build default to host. # The aliases save the names the user supplied, while $host etc. # will get canonicalized. case $host---$target---$nonopt in NONE---*---* | *---NONE---* | *---*---NONE) ;; *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; esac # Make sure we can run config.sub. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 echo "configure:933: checking host system type" >&5 host_alias=$host case "$host_alias" in NONE) case $nonopt in NONE) if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } fi ;; *) host_alias=$nonopt ;; esac ;; esac host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 echo $ac_n "checking target system type""... $ac_c" 1>&6 echo "configure:954: checking target system type" >&5 target_alias=$target case "$target_alias" in NONE) case $nonopt in NONE) target_alias=$host_alias ;; *) target_alias=$nonopt ;; esac ;; esac target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$target" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6 echo "configure:972: checking build system type" >&5 build_alias=$build case "$build_alias" in NONE) case $nonopt in NONE) build_alias=$host_alias ;; *) build_alias=$nonopt ;; esac ;; esac build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$build" 1>&6 test "$host_alias" != "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- echo $ac_n "checking cached system tuple""... $ac_c" 1>&6 echo "configure:997: checking cached system tuple" >&5 if { test x"${ac_cv_host_system_type+set}" = x"set" && test x"$ac_cv_host_system_type" != x"$host"; } || { test x"${ac_cv_build_system_type+set}" = x"set" && test x"$ac_cv_build_system_type" != x"$build"; } || { test x"${ac_cv_target_system_type+set}" = x"set" && test x"$ac_cv_target_system_type" != x"$target"; }; then echo "$ac_t""different" 1>&6 { echo "configure: error: remove config.cache and re-run configure" 1>&2; exit 1; } else echo "$ac_t""ok" 1>&6 fi ac_cv_host_system_type="$host" ac_cv_build_system_type="$build" ac_cv_target_system_type="$target" # 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 # 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" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 echo "configure:1025: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" for ac_dir in $PATH; do # Account for people who put trailing slashes in PATH elements. case "$ac_dir/" in /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/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 if test -f $ac_dir/$ac_prog; then if test $ac_prog = install && grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : else ac_cv_path_install="$ac_dir/$ac_prog -c" break 2 fi fi done ;; esac done IFS="$ac_save_IFS" 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. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL="$ac_install_sh" fi fi echo "$ac_t""$INSTALL" 1>&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_PROGRAM}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 echo "configure:1078: checking whether build environment is sane" >&5 # Just in case sleep 1 echo timestamp > conftestfile # 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 ( set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftestfile` fi if test "$*" != "X $srcdir/configure conftestfile" \ && test "$*" != "X conftestfile $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". { echo "configure: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" 1>&2; exit 1; } fi test "$2" = conftestfile ) then # Ok. : else { echo "configure: error: newly created file is older than distributed files! Check your system clock" 1>&2; exit 1; } fi rm -f conftest* echo "$ac_t""yes" 1>&6 if test "$program_transform_name" = s,x,x,; then program_transform_name= else # Double any \ or $. echo might interpret backslashes. cat <<\EOF_SED > conftestsed s,\\,\\\\,g; s,\$,$$,g EOF_SED program_transform_name="`echo $program_transform_name|sed -f conftestsed`" rm -f conftestsed fi 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" # sed with no file args requires a program. test "$program_transform_name" = "" && program_transform_name="s,x,x," echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 echo "configure:1135: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftestmake <<\EOF all: @echo 'ac_maketemp="${MAKE}"' EOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes else eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftestmake fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$ac_t""yes" 1>&6 SET_MAKE= else echo "$ac_t""no" 1>&6 SET_MAKE="MAKE=${MAKE-make}" fi PACKAGE=GASNet VERSION=1.6 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } fi missing_dir=`cd $ac_aux_dir && pwd` echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 echo "configure:1174: checking for working aclocal" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (aclocal --version) < /dev/null > /dev/null 2>&1; then ACLOCAL=aclocal echo "$ac_t""found" 1>&6 else ACLOCAL="$missing_dir/missing aclocal" echo "$ac_t""missing" 1>&6 fi echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 echo "configure:1187: checking for working autoconf" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (autoconf --version) < /dev/null > /dev/null 2>&1; then AUTOCONF=autoconf echo "$ac_t""found" 1>&6 else AUTOCONF="$missing_dir/missing autoconf" echo "$ac_t""missing" 1>&6 fi echo $ac_n "checking for working automake""... $ac_c" 1>&6 echo "configure:1200: checking for working automake" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (automake --version) < /dev/null > /dev/null 2>&1; then AUTOMAKE=automake echo "$ac_t""found" 1>&6 else AUTOMAKE="$missing_dir/missing automake" echo "$ac_t""missing" 1>&6 fi echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 echo "configure:1213: checking for working autoheader" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (autoheader --version) < /dev/null > /dev/null 2>&1; then AUTOHEADER=autoheader echo "$ac_t""found" 1>&6 else AUTOHEADER="$missing_dir/missing autoheader" echo "$ac_t""missing" 1>&6 fi echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 echo "configure:1226: checking for working makeinfo" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then MAKEINFO=makeinfo echo "$ac_t""found" 1>&6 else MAKEINFO="$missing_dir/missing makeinfo" echo "$ac_t""missing" 1>&6 fi for ac_prog in mawk gawk 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 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1250: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_AWK="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi AWK="$ac_cv_prog_AWK" if test -n "$AWK"; then echo "$ac_t""$AWK" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$AWK" && break done case "$PWD_PROG" in '') for ac_prog in pwd do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1287: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PWD_PROG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$PWD_PROG" in /*) ac_cv_path_PWD_PROG="$PWD_PROG" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_PWD_PROG="$PWD_PROG" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_PWD_PROG="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi PWD_PROG="$ac_cv_path_PWD_PROG" if test -n "$PWD_PROG"; then echo "$ac_t""$PWD_PROG" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$PWD_PROG" && break done ;; *) echo $ac_n "checking for pwd""... $ac_c" 1>&6 echo "configure:1324: checking for pwd" >&5 echo "$ac_t""$PWD_PROG" 1>&6 ;; esac case "$PWD_PROG" in '') { echo "configure: error: cannot find pwd" 1>&2; exit 1; } ;; esac echo $ac_n "checking autoconf version""... $ac_c" 1>&6 echo "configure:1336: checking autoconf version" >&5 AUTOCONF_VERSION_STR=`cat ${srcdir}/configure | $AWK '/.*enerated.*utoconf.*([0-9]+).([0-9]+).*/ { match($0,"[0-9]+.[0-9]+"); print substr($0,RSTART,RLENGTH); exit 0 } '` AUTOCONF_VERSION=`echo $AUTOCONF_VERSION_STR | $AWK -F. '{ printf("%i%i",$1,$2); }'` echo "$ac_t""$AUTOCONF_VERSION_STR" 1>&6 echo $ac_n "checking for configure settings""... $ac_c" 1>&6 echo "configure:1342: checking for configure settings" >&5 echo "$ac_t""" 1>&6 CONFIGURE_ARGS="$ac_configure_args" echo "$ac_t""configure args: $CONFIGURE_ARGS" 1>&6 ac_configure_args="$ac_configure_args --cache-file=$cache_file" TOP_SRCDIR=`cd ${srcdir} && ${PWD_PROG}` echo "$ac_t""TOP_SRCDIR: $TOP_SRCDIR" 1>&6 TOP_BUILDDIR=`${PWD_PROG}` echo "$ac_t""TOP_BUILDDIR: $TOP_BUILDDIR" 1>&6 if `echo $TOP_SRCDIR | grep ' ' >/dev/null 2>/dev/null`; then { echo "configure: error: TOP_SRCDIR contains space characters - please unpack the source in a different directory." 1>&2; exit 1; } fi if `echo $TOP_BUILDDIR | grep ' ' >/dev/null 2>/dev/null`; then { echo "configure: error: TOP_BUILDDIR contains space characters - please build in a different directory." 1>&2; exit 1; } fi if test "$TOP_BUILDDIR" = "$TOP_SRCDIR"; then BUILD_IS_SRC_TRUE= BUILD_IS_SRC_FALSE='#' else BUILD_IS_SRC_TRUE='#' BUILD_IS_SRC_FALSE= fi if test "$TOP_BUILDDIR" = "$TOP_SRCDIR"; then BUILD_IS_SRC=yes else BUILD_IS_SRC=no fi SYSTEM_NAME="`hostname`" SYSTEM_TUPLE="$target" echo "$ac_t""system info: $SYSTEM_NAME $SYSTEM_TUPLE" 1>&6 BUILD_USER=`whoami 2> /dev/null || id -un 2> /dev/null || echo $USER` BUILD_ID="`date` $BUILD_USER" echo "$ac_t""build id: $BUILD_ID" 1>&6 if test "$gasnet_acenv_list" != ""; then { echo "configure: error: _GASNET_RESTORE_AUTOCONF_ENV called more than once with prefix = "gasnet_cv_"" 1>&2; exit 1; } fi gasnet_acenv_list="CC CXX CFLAGS CXXFLAGS CPPFLAGS LIBS MAKE GMAKE AR AS RANLIB PERL SUM LEX YACC AWK" echo $ac_n "checking for cached autoconf environment settings""... $ac_c" 1>&6 echo "configure:1392: checking for cached autoconf environment settings" >&5 echo "$ac_t""""" 1>&6 for varname in CC CXX CFLAGS CXXFLAGS CPPFLAGS LIBS MAKE GMAKE AR AS RANLIB PERL SUM LEX YACC AWK; do val=`eval echo '$'"gasnet_cv_acenv_$varname"` if test "$val" != ""; then eval $varname=\"$val\" echo "$ac_t""$varname=\"$val\"" 1>&6 fi done cat >> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <&6 echo "configure:1429: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_AWK="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi AWK="$ac_cv_prog_AWK" if test -n "$AWK"; then echo "$ac_t""$AWK" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$AWK" && break done ######################################################################## ## ## Misc configure option processing ## # default: support pthreads if library found # --enable-pthreads: fail if pthreads lib not found # --disable-pthreads: don't even look for pthreads library # Check whether --enable-pthreads or --disable-pthreads was given. if test "${enable_pthreads+set}" = set; then enableval="$enable_pthreads" : fi # Check whether --enable-pthreads or --disable-pthreads was given. if test "${enable_pthreads+set}" = set; then enableval="$enable_pthreads" : fi case "$enable_pthreads" in no) use_pthreads="no" ;; yes) use_pthreads="yes" ;; *) use_pthreads="try" ;; esac ######################################################################## ## ## Supporting Command-Line Tools ## case "$GMAKE" in '') for ac_prog in $GMAKE gmake make $MAKE do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1499: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$GMAKE" in /*) ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_GMAKE="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi GMAKE="$ac_cv_path_GMAKE" if test -n "$GMAKE"; then echo "$ac_t""$GMAKE" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$GMAKE" && break done ;; *) echo $ac_n "checking for GNU make""... $ac_c" 1>&6 echo "configure:1536: checking for GNU make" >&5 echo "$ac_t""$GMAKE" 1>&6 ;; esac case "$GMAKE" in '') { echo "configure: error: cannot find GNU make" 1>&2; exit 1; } ;; esac echo $ac_n "checking for GNU make""... $ac_c" 1>&6 echo "configure:1545: checking for GNU make" >&5 if $GMAKE --version | grep GNU ; then echo "$ac_t""yes" 1>&6 else # We don't actually require GNU Make at the moment # AC_MSG_ERROR(cannot find a version of GNU make - please install GNU make and/or set \$GMAKE to indicate where it's located) echo "configure: warning: cannot find a version of GNU make - if you encounter make problems, install GNU make and/or set \$GMAKE to indicate where it's located" 1>&2 fi # we do not require nm # Extract the first word of "$NM nm", so it can be a program name with args. set dummy $NM nm; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1559: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$NM" in /*) ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_NM="$NM" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_NM="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm utility" ;; esac fi NM="$ac_cv_path_NM" if test -n "$NM"; then echo "$ac_t""$NM" 1>&6 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for GNU nm""... $ac_c" 1>&6 echo "configure:1593: checking for GNU nm" >&5 if test "`${NM:-nm} --version 2>&1 | grep GNU`" = "" ; then gnu_nm=no else gnu_nm=yes fi echo "$ac_t""$gnu_nm" 1>&6 if test "$gnu_nm" = "yes"; then GNU_NM_TRUE= GNU_NM_FALSE='#' else GNU_NM_TRUE='#' GNU_NM_FALSE= fi ######################################################################## ## ## Perl ## ## We do this early so we can use "$PERL -e" for complex configure tests. case "$PERL" in '') for ac_prog in perl5 perl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1623: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$PERL" in /*) ac_cv_path_PERL="$PERL" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_PERL="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi PERL="$ac_cv_path_PERL" if test -n "$PERL"; then echo "$ac_t""$PERL" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$PERL" && break done ;; *) echo $ac_n "checking for perl""... $ac_c" 1>&6 echo "configure:1660: checking for perl" >&5 echo "$ac_t""$PERL" 1>&6 ;; esac case "$PERL" in '') { echo "configure: error: cannot find perl" 1>&2; exit 1; } ;; esac MIN_PERL_VERSION="5.005" echo $ac_n "checking for perl version $MIN_PERL_VERSION or later""... $ac_c" 1>&6 echo "configure:1670: checking for perl version $MIN_PERL_VERSION or later" >&5 if $PERL -e "require $MIN_PERL_VERSION;" 2>/dev/null; then echo "$ac_t""yes" 1>&6 else { echo "configure: error: cannot find perl $MIN_PERL_VERSION or later" 1>&2; exit 1; } fi if $PERL -Mbytes -e "exit 0" 2>/dev/null; then GASNET_PERL_BYTESFLAG="-Mbytes" else GASNET_PERL_BYTESFLAG= fi PERLSTART=$TOP_BUILDDIR/other/perlstart ######################################################################## ## ## C/C++ Compilers ## # Some OS's need help to find the right C compiler case "$target_os" in superux*) # "cc" is completely broken on SuperUX, never use it # --------------------------------------- # [GASNET_ENV_DEFAULT](CC, c++ -Xa) echo $ac_n "checking for CC in environment""... $ac_c" 1>&6 echo "configure:1703: checking for CC in environment" >&5 # Check whether --with-cc or --without-cc was given. if test "${with_cc+set}" = set; then withval="$with_cc" : fi envval_src_CC="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CC-__NOT_SET__}" in __NOT_SET__) if test "$with_cc" != ""; then gasnet_cv_envvar_CC="$with_cc" envval_src_CC=given else gasnet_cv_envvar_CC="c++ -Xa" envval_src_CC=default fi ;; *) gasnet_cv_envvar_CC="$CC" envval_src_CC=given esac fi CC="$gasnet_cv_envvar_CC" case "$envval_src_CC" in 'cached') echo "$ac_t""using cached value \"$CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; # may also/alternately want -Kc99 esac # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1757: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="gcc" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1787: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_prog_rejected=no ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" break fi done IFS="$ac_save_ifs" if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# -gt 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift set dummy "$ac_dir/$ac_word" "$@" shift ac_cv_prog_CC="$@" fi fi fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -z "$CC"; then case "`uname -s`" in *win32* | *WIN32*) # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1838: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="cl" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi ;; esac fi test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 echo "configure:1870: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF #line 1881 "configure" #include "confdefs.h" main(){return(0);} EOF if { (eval echo configure:1886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then ac_cv_prog_cc_cross=no else ac_cv_prog_cc_cross=yes fi else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_cc_works=no fi rm -fr conftest* ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 echo "configure:1912: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 echo "configure:1917: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no fi fi echo "$ac_t""$ac_cv_prog_gcc" 1>&6 if test $ac_cv_prog_gcc = yes; then GCC=yes else GCC= fi ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 echo "configure:1945: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then ac_cv_prog_cc_g=yes else ac_cv_prog_cc_g=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_prog_cc_g" 1>&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 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 echo "configure:1977: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP=/lib/cpp fi rm -f conftest* fi rm -f conftest* fi rm -f conftest* ac_cv_prog_CPP="$CPP" fi CPP="$ac_cv_prog_CPP" else ac_cv_prog_CPP="$CPP" fi echo "$ac_t""$CPP" 1>&6 # Check whether --enable-full-path-expansion or --disable-full-path-expansion was given. if test "${enable_full_path_expansion+set}" = set; then enableval="$enable_full_path_expansion" : fi case "$enable_full_path_expansion" in '' | yes) : ;; *) gasnet_cv__gfp_disable=1 ;; esac # ---------------------------------------------- # [GASNET_GETFULLPATH](CPP) if test "$gasnet_cv__gfp_disable" = ""; then gasnet_gfp_progname=`echo "$CPP" | $AWK -F' ' '{ print $1 }'` gasnet_gfp_progargs=`echo "$CPP" | $AWK -F' ' 'BEGIN { ORS=" "; } { for (i=2;i<=NF;i++) print $i; }'` gasnet_gfp_progname0=`echo "$gasnet_gfp_progname" | $AWK '{ print substr($0,1,1) }'` if test "$gasnet_gfp_progname0" != "/" ; then # clear cached values, in case this is a pushed var unset gasnet_cv__gfp_fullprogname_CPP unset ac_cv_path_gasnet_cv__gfp_fullprogname_CPP # [AC_PATH_PROG](cv_prefix[]_gfp_fullprogname_CPP, $gasnet_gfp_progname,[]) # Extract the first word of "$gasnet_gfp_progname", so it can be a program name with args. set dummy $gasnet_gfp_progname; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2092: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_gasnet_cv__gfp_fullprogname_CPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$gasnet_cv__gfp_fullprogname_CPP" in /*) ac_cv_path_gasnet_cv__gfp_fullprogname_CPP="$gasnet_cv__gfp_fullprogname_CPP" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_gasnet_cv__gfp_fullprogname_CPP="$gasnet_cv__gfp_fullprogname_CPP" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_gasnet_cv__gfp_fullprogname_CPP="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi gasnet_cv__gfp_fullprogname_CPP="$ac_cv_path_gasnet_cv__gfp_fullprogname_CPP" if test -n "$gasnet_cv__gfp_fullprogname_CPP"; then echo "$ac_t""$gasnet_cv__gfp_fullprogname_CPP" 1>&6 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for full path expansion of CPP""... $ac_c" 1>&6 echo "configure:2125: checking for full path expansion of CPP" >&5 if test "$gasnet_cv__gfp_fullprogname_CPP" != "" ; then CPP="$gasnet_cv__gfp_fullprogname_CPP $gasnet_gfp_progargs" fi echo "$ac_t""$CPP" 1>&6 fi fi # ---------------------------------------------- echo $ac_n "checking for working C preprocessor""... $ac_c" 1>&6 echo "configure:2137: checking for working C preprocessor" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross gasnet_progcpp_extrainfo= if test -n "`$CPP -version 2>&1 < /dev/null | grep MIPSpro`" ; then gasnet_progcpp_extrainfo=" (added -diag_error 1035 to deal with broken MIPSPro preprocessor)" CFLAGS="$CFLAGS -diag_error 1035" CPPFLAGS="$CPPFLAGS -diag_error 1035" fi cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* { echo "configure: error: Your C preprocessor is broken - reported success when it should have failed" 1>&2; exit 1; } else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo echo "configure error: Your C preprocessor is broken - reported failure when it should have succeeded" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -f conftest* echo "$ac_t""yes$gasnet_progcpp_extrainfo" 1>&6 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross # ---------------------------------------------- # [GASNET_GETFULLPATH](CC) if test "$gasnet_cv__gfp_disable" = ""; then gasnet_gfp_progname=`echo "$CC" | $AWK -F' ' '{ print $1 }'` gasnet_gfp_progargs=`echo "$CC" | $AWK -F' ' 'BEGIN { ORS=" "; } { for (i=2;i<=NF;i++) print $i; }'` gasnet_gfp_progname0=`echo "$gasnet_gfp_progname" | $AWK '{ print substr($0,1,1) }'` if test "$gasnet_gfp_progname0" != "/" ; then # clear cached values, in case this is a pushed var unset gasnet_cv__gfp_fullprogname_CC unset ac_cv_path_gasnet_cv__gfp_fullprogname_CC # [AC_PATH_PROG](cv_prefix[]_gfp_fullprogname_CC, $gasnet_gfp_progname,[]) # Extract the first word of "$gasnet_gfp_progname", so it can be a program name with args. set dummy $gasnet_gfp_progname; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2247: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_gasnet_cv__gfp_fullprogname_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$gasnet_cv__gfp_fullprogname_CC" in /*) ac_cv_path_gasnet_cv__gfp_fullprogname_CC="$gasnet_cv__gfp_fullprogname_CC" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_gasnet_cv__gfp_fullprogname_CC="$gasnet_cv__gfp_fullprogname_CC" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_gasnet_cv__gfp_fullprogname_CC="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi gasnet_cv__gfp_fullprogname_CC="$ac_cv_path_gasnet_cv__gfp_fullprogname_CC" if test -n "$gasnet_cv__gfp_fullprogname_CC"; then echo "$ac_t""$gasnet_cv__gfp_fullprogname_CC" 1>&6 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for full path expansion of CC""... $ac_c" 1>&6 echo "configure:2280: checking for full path expansion of CC" >&5 if test "$gasnet_cv__gfp_fullprogname_CC" != "" ; then CC="$gasnet_cv__gfp_fullprogname_CC $gasnet_gfp_progargs" fi echo "$ac_t""$CC" 1>&6 fi fi # ---------------------------------------------- echo $ac_n "checking for working C compiler""... $ac_c" 1>&6 echo "configure:2292: checking for working C compiler" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* { echo "configure: error: Your C compiler is broken - reported success when it should have failed" 1>&2; exit 1; } else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo echo "configure error: Your C compiler is broken - reported failure when it should have succeeded" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* { echo "configure: error: Your C linker is broken - reported success when it should have failed" 1>&2; exit 1; } else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo echo "configure error: Your C link is broken - reported failure when it should have succeeded" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -f conftest* echo "$ac_t""yes" 1>&6 echo $ac_n "checking if user enabled cross-compile""... $ac_c" 1>&6 echo "configure:2431: checking if user enabled cross-compile" >&5 # Check whether --enable-cross-compile or --disable-cross-compile was given. if test "${enable_cross_compile+set}" = set; then enableval="$enable_cross_compile" : fi case "$enable_cross_compile" in '' | no) : echo "$ac_t""no" 1>&6 cross_compiling=no CROSS_COMPILING=0 ac_cv_prog_cc_cross=no echo $ac_n "checking working C compiler executables""... $ac_c" 1>&6 echo "configure:2448: checking working C compiler executables" >&5 if test "$cross_compiling" = yes; then { echo "configure: error: Internal configure error - please report" 1>&2; exit 1; } else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then echo "$ac_t""yes" 1>&6 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* echo "$ac_t""no" 1>&6 echo echo "configure error: Cannot run executables created with C compiler. If you're attempting to cross-compile" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -fr conftest* fi ;; *) echo "$ac_t""yes" 1>&6 cross_compiling=yes CROSS_COMPILING=1 ac_cv_prog_cc_cross=yes ;; esac if test "$cross_compiling" = "yes"; then CROSS_COMPILING_TRUE= CROSS_COMPILING_FALSE='#' else CROSS_COMPILING_TRUE='#' CROSS_COMPILING_FALSE= fi ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 echo "configure:2528: checking whether ln -s works" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else rm -f conftestdata if ln -s X conftestdata 2>/dev/null then rm -f conftestdata ac_cv_prog_LN_S="ln -s" else ac_cv_prog_LN_S=ln fi fi LN_S="$ac_cv_prog_LN_S" if test "$ac_cv_prog_LN_S" = "ln -s"; then echo "$ac_t""yes" 1>&6 else echo "$ac_t""no" 1>&6 fi if test "$cross_compiling" = "no" ; then echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 echo "configure:2553: checking whether byte ordering is bigendian" >&5 if eval "test \"`echo '$''{'gasnet_cv_c_bigendian'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < int main() { FILE *f=fopen("conftestval", "w"); int val = 0; if (!f) exit(1); { { /* Are we little or big endian? From Harbison&Steele. */ union { long l; char c[sizeof (long)]; } u; u.l = 1; val = (u.c[sizeof (long) - 1] == 1); }; } fprintf(f, "%d\n", (int)(val)); return 0; } EOF if { (eval echo configure:2584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then gasnet_cv_c_bigendian=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* gasnet_cv_c_bigendian=no fi rm -fr conftest* fi fi echo "$ac_t""$gasnet_cv_c_bigendian" 1>&6 if test "$gasnet_cv_c_bigendian" != no; then : WORDS_BIGENDIAN=$gasnet_cv_c_bigendian fi else echo $ac_n "checking whether byte ordering is bigendian (binary probe)""... $ac_c" 1>&6 echo "configure:2605: checking whether byte ordering is bigendian (binary probe)" >&5 cat >conftest.c <&6 fi if test "$WORDS_BIGENDIAN" = "1"; then cat >> confdefs.h <<\EOF #define WORDS_BIGENDIAN 1 EOF elif test "$WORDS_BIGENDIAN" = ""; then { echo "configure: error: Inconsistent results from endian probe" 1>&2; exit 1; } fi # Extract the first word of "mpcc_r", so it can be a program name with args. set dummy mpcc_r; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:2650: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_have_mpcc_r'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$have_mpcc_r"; then ac_cv_prog_have_mpcc_r="$have_mpcc_r" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_have_mpcc_r="yes" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_have_mpcc_r" && ac_cv_prog_have_mpcc_r="no" fi fi have_mpcc_r="$ac_cv_prog_have_mpcc_r" if test -n "$have_mpcc_r"; then echo "$ac_t""$have_mpcc_r" 1>&6 else echo "$ac_t""no" 1>&6 fi ## DOB: this is more trouble than it's worth because so many OS's define ## LITTLE_ENDIAN or BIG_ENDIAN in random and sultry header files ## Code with access to gasnet_config.h should use #if defined(WORDS_BIGENDIAN) ## If we ever decide we need this (to support other code) then we ## can reintroduce this define with a fresh prefix ## specific compiler families echo $ac_n "checking for C compiler family""... $ac_c" 1>&6 echo "configure:2689: checking for C compiler family" >&5 if eval "test \"`echo '$''{'gasnet_cv_cc_family'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else gasnet_cv_cc_family=unknown if test "$gasnet_cv_cc_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cc_family=XLC else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$gasnet_cv_cc_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cc_family=Cray else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$gasnet_cv_cc_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cc_family=GNU else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cc_family=Pathscale else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cc_family=PGI else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cc_family=Intel else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$gasnet_cv_cc_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cc_family=Compaq else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # Compaq C cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cc_family=Compaq else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # Compaq C++ fi if test "$gasnet_cv_cc_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cc_family=Sun else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # Sun C cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cc_family=Sun else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # Sun C++ fi if test "$gasnet_cv_cc_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cc_family=HP else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # HP C cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cc_family=HP else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # HP aCC (C++) fi if test "$gasnet_cv_cc_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cc_family=MTA else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$gasnet_cv_cc_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cc_family=KAI else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$gasnet_cv_cc_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cc_family=MIPS else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cc_family=NEC else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi fi echo "$ac_t""$gasnet_cv_cc_family" 1>&6 if test "$gasnet_cv_cc_family" != "GNU" ; then case CC in CC) ac_cv_c_compiler_gnu=no GCC="" ;; CXX) ac_cv_cxx_compiler_gnu=no GXX="" ;; esac fi CC_FAMILY=$gasnet_cv_cc_family CC_UNWRAPPED=$CC case $gasnet_cv_cc_family in GNU) CC_WRAPPED=$CC ;; *) CC_WRAPPED="\$(top_builddir)/cc-wrapper \$(CC_FAMILY) \$(CC_UNWRAPPED)" ;; esac cc_wrapper_mk="cc-wrapper.mk" if test "$gasnet_cv_cc_family" = MIPS; then # The MIPSPro C compiler apparently has no identifying markings cat >> confdefs.h <<\EOF #define MIPSPRO_COMPILER 1 EOF fi if test "$gasnet_cv_cc_family" = MTA ; then # override target_os for MTA, which may be wrong if cross-compiling target_os="mtx" fi ### # # choose the default CC flags # case "$gasnet_cv_cc_family" in GNU) echo $ac_n "checking for known buggy compilers""... $ac_c" 1>&6 echo "configure:3099: checking for known buggy compilers" >&5 badgccmsg="" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""CC is gcc 2.96" 1>&6 badgccmsg="Use of gcc/g++ 2.96 for compiling this software is strongly discouraged. \ It is not an official GNU release and has many serious known bugs, especially \ in the optimizer, which may lead to bad code and incorrect runtime behavior. \ Consider using \$CC to select a different compiler." # Check whether --enable-allow-gcc296 or --disable-allow-gcc296 was given. if test "${enable_allow_gcc296+set}" = set; then enableval="$enable_allow_gcc296" : fi case "$enable_allow_gcc296" in '' | no) : { echo "configure: error: $badgccmsg \ You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc296 flag." 1>&2; exit 1; } ;; *) echo "configure: warning: $badgccmsg" 1>&2 ;; esac fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""CC is gcc 3.2.0-2" 1>&6 badgccmsg="Use of gcc/g++ 3.2.0-2 for compiling this software is strongly discouraged. \ This version has a serious known bug in the optimizer regarding structure copying, \ which may lead to bad code and incorrect runtime behavior when optimization is enabled. \ Consider using \$CC to select a different compiler." # Check whether --enable-allow-gcc32 or --disable-allow-gcc32 was given. if test "${enable_allow_gcc32+set}" = set; then enableval="$enable_allow_gcc32" : fi case "$enable_allow_gcc32" in '' | no) : { echo "configure: error: $badgccmsg \ You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc32 flag." 1>&2; exit 1; } ;; *) echo "configure: warning: $badgccmsg" 1>&2 ;; esac fi rm -f conftest* if test -z "$badgccmsg"; then echo "$ac_t""ok" 1>&6 fi # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "-O3") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="-O3" # --------------------------------------- # prefer the --param inliner option(s), which give us finer control # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS --param max-inline-insns-single=35000") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS --param max-inline-insns-single=35000" # --------------------------------------- echo $ac_n "checking for C compiler flag --param max-inline-insns-single=35000""... $ac_c" 1>&6 echo "configure:3234: checking for C compiler flag --param max-inline-insns-single=35000" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CFLAGS="$CFLAGS --param max-inline-insns-single=35000" # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS --param max-inline-insns=100000") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS --param max-inline-insns=100000" # --------------------------------------- echo $ac_n "checking for C compiler flag --param max-inline-insns=100000""... $ac_c" 1>&6 echo "configure:3291: checking for C compiler flag --param max-inline-insns=100000" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CFLAGS="$CFLAGS --param max-inline-insns=100000" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -finline-limit=10000") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -finline-limit=10000" # --------------------------------------- echo $ac_n "checking for C compiler flag -finline-limit=10000""... $ac_c" 1>&6 echo "configure:3418: checking for C compiler flag -finline-limit=10000" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CFLAGS="$CFLAGS -finline-limit=10000" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -finline-limit=10000") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -finline-limit=10000" # --------------------------------------- echo $ac_n "checking for C compiler flag -finline-limit=10000""... $ac_c" 1>&6 echo "configure:3548: checking for C compiler flag -finline-limit=10000" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CFLAGS="$CFLAGS -finline-limit=10000" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* fi rm -f ${gasnet_testname}.* # gcc 3.4+ require new flags to enable full inlining # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS --param inline-unit-growth=10000") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS --param inline-unit-growth=10000" # --------------------------------------- echo $ac_n "checking for C compiler flag --param inline-unit-growth=10000""... $ac_c" 1>&6 echo "configure:3663: checking for C compiler flag --param inline-unit-growth=10000" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CFLAGS="$CFLAGS --param inline-unit-growth=10000" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS --param large-function-growth=200000") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS --param large-function-growth=200000" # --------------------------------------- echo $ac_n "checking for C compiler flag --param large-function-growth=200000""... $ac_c" 1>&6 echo "configure:3770: checking for C compiler flag --param large-function-growth=200000" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CFLAGS="$CFLAGS --param large-function-growth=200000" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* # We'd like to use -Winline to detect call sites where the optimizer # ignores our inline function modifier (usually due to technical limitations) # However, some versions of gcc issue spurious warnings with -Winline # for inlining operations which the user did not request. # Detect that gcc bug and avoid -Winline for those versions # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -Winline") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Winline" # --------------------------------------- echo $ac_n "checking for C compiler flag -Winline""... $ac_c" 1>&6 echo "configure:3882: checking for C compiler flag -Winline" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- noninlineCFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Winline" echo $ac_n "checking for buggy -Winline""... $ac_c" 1>&6 echo "configure:3925: checking for buggy -Winline" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""ok" 1>&6 # keep -Winline else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""buggy" 1>&6 CFLAGS="$noninlineCFLAGS" # remove -Winline fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 { echo "configure: error: failure when detecting buggy -Winline" 1>&2; exit 1; } fi rm -f ${gasnet_testname}.* else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* CCOPTFLAGS="$CFLAGS" # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- ;; Pathscale) CCOPTFLAGS="-O3 -Winline" ;; Sun) CCOPTFLAGS="-fast -xO5" ;; Cray) CCOPTFLAGS="-O2" ;; # DOB: -O3 is unstable on Cray cc HP) CCOPTFLAGS="-O3" ;; MIPS) CCOPTFLAGS="-O3" ;; XLC) case "$target_os" in darwin*) # enabling ipa (-O4 or higher) breaks linking to MPI (and thus vapi). case `/usr/sbin/sysctl hw.cpusubtype | cut '-d ' -f2` in # bug926: on G5 (cpusubtype 100) -qarch={ppc970,auto} causes corruption of 64-bit integer arithmetic 100) CCOPTFLAGS="-O3 -qhot -qarch=g5 -qtune=auto -qsmp=noauto -qmaxmem=-1" ;; *) CCOPTFLAGS="-O3 -qhot -qarch=auto -qtune=auto -qsmp=noauto -qmaxmem=-1" ;; esac ;; linux*) CCOPTFLAGS="-O3 -qhot -qarch=auto -qtune=auto -qsmp=noauto -qmaxmem=-1" ;; # XXX: untested *) #CCOPTFLAGS="-O5 -qsmp=noauto -qmaxmem=-1" ;; # -O5 == -O3 w/ intra-procedural analysis, maxmem=-1 is default for -O3 or higher CCOPTFLAGS="-O3 -qarch=auto -qtune=auto -qsmp=noauto -qmaxmem=-1" ;; # -O5 causes linker to hang on Titanium esac ;; Compaq) CCOPTFLAGS="-fast -noifo -O4 -tune host -inline all" ;; Intel) CCOPTFLAGS="-O3" ;; MTA) CCOPTFLAGS="-O3" ;; # MTA C actually ignores -O, optimization controlled by presence/absence of -g PGI) CCOPTFLAGS="-O2" ;; *) CCOPTFLAGS="-O" ;; esac case "$gasnet_cv_cc_family" in GNU) # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS" # --------------------------------------- CFLAGS="-g3" # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -Wall") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wall" # --------------------------------------- echo $ac_n "checking for C compiler flag -Wall""... $ac_c" 1>&6 echo "configure:4108: checking for C compiler flag -Wall" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CFLAGS="$CFLAGS -Wall" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -Wno-unused") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wno-unused" # --------------------------------------- echo $ac_n "checking for C compiler flag -Wno-unused""... $ac_c" 1>&6 echo "configure:4215: checking for C compiler flag -Wno-unused" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CFLAGS="$CFLAGS -Wno-unused" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -Wpointer-arith") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wpointer-arith" # --------------------------------------- echo $ac_n "checking for C compiler flag -Wpointer-arith""... $ac_c" 1>&6 echo "configure:4322: checking for C compiler flag -Wpointer-arith" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CFLAGS="$CFLAGS -Wpointer-arith" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -Wnested-externs") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wnested-externs" # --------------------------------------- echo $ac_n "checking for C compiler flag -Wnested-externs""... $ac_c" 1>&6 echo "configure:4429: checking for C compiler flag -Wnested-externs" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CFLAGS="$CFLAGS -Wnested-externs" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -Wwrite-strings") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wwrite-strings" # --------------------------------------- echo $ac_n "checking for C compiler flag -Wwrite-strings""... $ac_c" 1>&6 echo "configure:4536: checking for C compiler flag -Wwrite-strings" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CFLAGS="$CFLAGS -Wwrite-strings" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -Wdeclaration-after-statement") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wdeclaration-after-statement" # --------------------------------------- echo $ac_n "checking for C compiler flag -Wdeclaration-after-statement""... $ac_c" 1>&6 echo "configure:4643: checking for C compiler flag -Wdeclaration-after-statement" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CFLAGS="$CFLAGS -Wdeclaration-after-statement" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -Wmissing-format-attribute") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wmissing-format-attribute" # --------------------------------------- echo $ac_n "checking for C compiler flag -Wmissing-format-attribute""... $ac_c" 1>&6 echo "configure:4750: checking for C compiler flag -Wmissing-format-attribute" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CFLAGS="$CFLAGS -Wmissing-format-attribute" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* if test "$use_pthreads" != "no" ; then # some crappy pthread mutex implementations generate warnings without -Wno-missing-braces echo $ac_n "checking for buggy pthread.h mutex initializers""... $ac_c" 1>&6 echo "configure:4843: checking for buggy pthread.h mutex initializers" >&5 oldCFLAGS="$CFLAGS" # OSF and FREEBSD require the -pthread compiler flag when including pthread.h case "$target_os" in osf*) CFLAGS="-pthread $CFLAGS" ;; freebsd*) CFLAGS="-pthread $CFLAGS" ;; esac gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile < int main() { pthread_mutex_t fastmutex = PTHREAD_MUTEX_INITIALIZER; ; return 0; } EOF echo \"$gasnet_compile_cmd\" >&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""ok" 1>&6 else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""buggy" 1>&6 # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -Wno-missing-braces") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wno-missing-braces" # --------------------------------------- echo $ac_n "checking for C compiler flag -Wno-missing-braces""... $ac_c" 1>&6 echo "configure:4898: checking for C compiler flag -Wno-missing-braces" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- oldCFLAGS="$oldCFLAGS -Wno-missing-braces" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 #bug611: ignore failures here, which may be due to broken/missing pthreads support #AC_MSG_ERROR(failure while checking for buggy pthread.h mutexes) echo "$ac_t""failure - ignored" 1>&6 fi rm -f ${gasnet_testname}.* CFLAGS="$oldCFLAGS" fi case "$target_os" in solaris*) # hide pragma warnings in system header files included by absolute path # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -Wno-unknown-pragmas") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -Wno-unknown-pragmas" # --------------------------------------- echo $ac_n "checking for C compiler flag -Wno-unknown-pragmas""... $ac_c" 1>&6 echo "configure:5026: checking for C compiler flag -Wno-unknown-pragmas" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CFLAGS="$CFLAGS -Wno-unknown-pragmas" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* esac #GASNET_TRY_CFLAG([-ansi -U__STRICT_ANSI__],[[C]FLAGS="$[C]FLAGS -ansi -U__STRICT_ANSI__"]) CCDEBUGFLAGS="$CFLAGS" # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- ;; NEC) CCDEBUGFLAGS="-g -Cnoopt -Cdebug" ;; HP) CCDEBUGFLAGS="-g +ESdbgasm" ;; # need +ESdbgasm to use -g with _asm() MTA) CCDEBUGFLAGS="-g2" ;; # need +ESdbgasm to use -g with _asm() Compaq) CCDEBUGFLAGS="-trapuv -g2" ;; *) CCDEBUGFLAGS="-g" ;; esac case "$gasnet_cv_cc_family" in GNU) case "$target_cpu" in sparc) # Get sparc v9 ISA # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -mcpu=ultrasparc -mtune=ultrasparc") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -mcpu=ultrasparc -mtune=ultrasparc" # --------------------------------------- echo $ac_n "checking for C compiler flag -mcpu=ultrasparc -mtune=ultrasparc""... $ac_c" 1>&6 echo "configure:5161: checking for C compiler flag -mcpu=ultrasparc -mtune=ultrasparc" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- MISC_CFLAGS="-mcpu=ultrasparc -mtune=ultrasparc" cat >> confdefs.h <<\EOF #define GASNETI_ARCH_SPARCV9 1 EOF else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* ;; *) ;; esac ;; Cray) case "$target_cpu" in alphaev5) MISC_CFLAGS="-hnomessage=236 -htaskprivate $LIBCM" ;; # T3E *) MISC_CFLAGS="-hnomessage=236 $LIBCM" ;; # X1 esac ;; MIPS) MISC_CFLAGS="-common -diag_error 1035 -diag_suppress1171,1174,1209,1552 -LD_MSG:off=84" ;; # 1035 ensures "#error" is fatal Compaq) MISC_CFLAGS="-msg_disable extrasemi" ;; HP) MISC_CFLAGS="+W612 +W2111 +W2174 +W2177 +W2236 +W2550 -Wp,-H100000" ;; # -H increases internal preprocessor table size Intel) MISC_CFLAGS="-wd177 -wd279" # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -wd1572") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -wd1572" # --------------------------------------- echo $ac_n "checking for C compiler flag -wd1572""... $ac_c" 1>&6 echo "configure:5283: checking for C compiler flag -wd1572" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- MISC_CFLAGS="$MISC_CFLAGS -wd1572" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* ;; NEC) MISC_CFLAGS="-woff=68:111:174:177:236:301:550:940" ;; PGI) MISC_CFLAGS="-Masmkeyword -c9x" ;; # get inline assembly and restrict MTA) MISC_CFLAGS="-display_error_number -WS 111,174,238" ;; Sun) MISC_CFLAGS="-errtags" ;; # show warning tag ids in warnings XLC) MISC_CFLAGS="-qsuppress=1500-010:1506-229" ;; # 1500-010 = infinite loop (such as in our tests) # 1506-229 = empty source file (some linux headers) *) MISC_CFLAGS="" ;; esac case "$gasnet_cv_cc_family" in XLC) MISC_CPPFLAGS="-qcpluscmt" ;; # tell preprocessor to allow C++-style comments PGI) MISC_CPPFLAGS="-B" ;; # C++ comments Sun) MISC_CPPFLAGS="-xCC" ;; # C++ comments HP) MISC_CPPFLAGS="+W67" ;; # unrecognized #pragma upc GNU) case "$target_os" in darwin*) MISC_CPPFLAGS="-no-cpp-precomp -Wno-long-double" ;; esac ;; *) MISC_CPPFLAGS="" ;; esac # Check whether --enable-debug or --disable-debug was given. if test "${enable_debug+set}" = set; then enableval="$enable_debug" : fi case "$enable_debug" in '' | no) : CFLAGS="$CCOPTFLAGS" BUILDCONFIG_DEFINES="-DGASNET_NDEBUG" BUILDCONFIG="optimize" enabled_debug=no ;; *) echo "-----------------------------------------------------------------------" echo " WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING" echo "" echo " Configuring the system for global, forced debugging mode. " echo " This usually has a SERIOUS impact on performance, so you should NOT" echo " trust any performance numbers obtained from programs built" echo " using this GASNet installation!!!" echo "" echo " WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING" echo "-----------------------------------------------------------------------" CFLAGS="$CCDEBUGFLAGS" BUILDCONFIG_DEFINES="-DGASNET_DEBUG" BUILDCONFIG="debug" enabled_debug=yes ;; esac if test "$enabled_debug" = yes; then BUILDCONFIG_DEBUG_TRUE= BUILDCONFIG_DEBUG_FALSE='#' else BUILDCONFIG_DEBUG_TRUE='#' BUILDCONFIG_DEBUG_FALSE= fi # Check whether --enable-gasnet-verbose or --disable-gasnet-verbose was given. if test "${enable_gasnet_verbose+set}" = set; then enableval="$enable_gasnet_verbose" : fi case "$enable_gasnet_verbose" in '' | no) : enabled_debug_verbose=no ;; *) enabled_debug_verbose=yes ;; esac if test "$enabled_debug_verbose" = yes; then BUILDCONFIG_DEFINES="$BUILDCONFIG_DEFINES -DGASNET_DEBUG_VERBOSE=1" fi if test "$enabled_debug_verbose" = yes; then BUILDCONFIG_DEBUG_VERBOSE_TRUE= BUILDCONFIG_DEBUG_VERBOSE_FALSE='#' else BUILDCONFIG_DEBUG_VERBOSE_TRUE='#' BUILDCONFIG_DEBUG_VERBOSE_FALSE= fi # Check whether --enable-trace or --disable-trace was given. if test "${enable_trace+set}" = set; then enableval="$enable_trace" : fi # Check whether --enable-trace or --disable-trace was given. if test "${enable_trace+set}" = set; then enableval="$enable_trace" : fi case "$enable_trace" in no) enabled_trace=no ;; yes) enabled_trace=yes ;; *) enabled_trace=$enabled_debug ;; esac if test "$enabled_trace" = yes; then BUILDCONFIG_DEFINES="$BUILDCONFIG_DEFINES -DGASNET_TRACE" fi if test "$enabled_trace" = yes; then BUILDCONFIG_TRACE_TRUE= BUILDCONFIG_TRACE_FALSE='#' else BUILDCONFIG_TRACE_TRUE='#' BUILDCONFIG_TRACE_FALSE= fi # Check whether --enable-stats or --disable-stats was given. if test "${enable_stats+set}" = set; then enableval="$enable_stats" : fi # Check whether --enable-stats or --disable-stats was given. if test "${enable_stats+set}" = set; then enableval="$enable_stats" : fi case "$enable_stats" in no) enabled_stats=no ;; yes) enabled_stats=yes ;; *) enabled_stats=$enabled_debug ;; esac if test "$enabled_stats" = yes; then BUILDCONFIG_DEFINES="$BUILDCONFIG_DEFINES -DGASNET_STATS" fi if test "$enabled_stats" = yes; then BUILDCONFIG_STATS_TRUE= BUILDCONFIG_STATS_FALSE='#' else BUILDCONFIG_STATS_TRUE='#' BUILDCONFIG_STATS_FALSE= fi if test "$enable_debug" = "yes" ; then echo $ac_n "checking CC for debug vs. optimize compilation conflict""... $ac_c" 1>&6 echo "configure:5531: checking CC for debug vs. optimize compilation conflict" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross # --------------------------------------- # [GASNET_PUSHVAR](CC, "$CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $CPPFLAGS $MISC_CFLAGS $MISC_CPPFLAGS $BUILDCONFIG_DEFINES") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $CPPFLAGS $MISC_CFLAGS $MISC_CPPFLAGS $BUILDCONFIG_DEFINES" # --------------------------------------- cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""no" 1>&6 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""yes" 1>&6 echo echo "configure error: User requested --enable-debug but CC or CFLAGS has enabled optimization (-O) or disabled assertions (-DNDEBUG). Try setting CC='$CC -O0 -UNDEBUG' or changing CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -f conftest* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross fi #AC_SUBST(CFLAGS) # opt/debug flags # warning suppression and other misc C flags # misc preprocessor flags # defines that setup build configuration segconfig="" # Check whether --enable-segment-fast or --disable-segment-fast was given. if test "${enable_segment_fast+set}" = set; then enableval="$enable_segment_fast" : fi case "$enable_segment_fast" in '' | no) : ;; *) segconfig="fast$segconfig" ;; esac # Check whether --enable-segment-large or --disable-segment-large was given. if test "${enable_segment_large+set}" = set; then enableval="$enable_segment_large" : fi case "$enable_segment_large" in '' | no) : ;; *) segconfig="large$segconfig" ;; esac # Check whether --enable-segment-everything or --disable-segment-everything was given. if test "${enable_segment_everything+set}" = set; then enableval="$enable_segment_everything" : fi case "$enable_segment_everything" in '' | no) : ;; *) segconfig="everything$segconfig" ;; esac case "$segconfig" in "") segconfig=fast; #for AM_CONDITIONAL, below cat >> confdefs.h <<\EOF #define GASNET_SEGMENT_FAST 1 EOF ;; # default is fast fast) cat >> confdefs.h <<\EOF #define GASNET_SEGMENT_FAST 1 EOF ;; large) cat >> confdefs.h <<\EOF #define GASNET_SEGMENT_LARGE 1 EOF ;; everything) cat >> confdefs.h <<\EOF #define GASNET_SEGMENT_EVERYTHING 1 EOF ;; *) { echo "configure: error: Conflicting shared segment configurations specified" 1>&2; exit 1; } ;; esac # Do it all again because AM_CONDITIONAL()s can't go inside if or case. # Groan. if test "$segconfig" = fast; then GASNET_SEGMENT_FAST_TRUE= GASNET_SEGMENT_FAST_FALSE='#' else GASNET_SEGMENT_FAST_TRUE='#' GASNET_SEGMENT_FAST_FALSE= fi if test "$segconfig" = large; then GASNET_SEGMENT_LARGE_TRUE= GASNET_SEGMENT_LARGE_FALSE='#' else GASNET_SEGMENT_LARGE_TRUE='#' GASNET_SEGMENT_LARGE_FALSE= fi if test "$segconfig" = everything; then GASNET_SEGMENT_EVERYTHING_TRUE= GASNET_SEGMENT_EVERYTHING_FALSE='#' else GASNET_SEGMENT_EVERYTHING_TRUE='#' GASNET_SEGMENT_EVERYTHING_FALSE= fi # Check whether --with-segment-mmap-max or --without-segment-mmap-max was given. if test "${with_segment_mmap_max+set}" = set; then withval="$with_segment_mmap_max" case "$withval" in no) : ;; *) case "$withval" in [1-9]*G*) cat >> confdefs.h <> confdefs.h <> confdefs.h <&2; exit 1; } ;; esac ;; esac else : fi # Check whether --with-barrier or --without-barrier was given. if test "${with_barrier+set}" = set; then withval="$with_barrier" case "$withval" in no) : { echo "configure: error: Illegal value for --with-barrier: permitted values are AMDISSEM or AMCENTRAL" 1>&2; exit 1; } ;; *) case "$withval" in AMDISSEM) cat >> confdefs.h <<\EOF #define GASNETE_USE_AMDISSEMINATION_REFBARRIER 1 EOF ;; AMCENTRAL) ;; *) { echo "configure: error: Illegal value for --with-barrier: permitted values are AMDISSEM or AMCENTRAL" 1>&2; exit 1; } ;; esac ;; esac else : # default is AMDISSEM cat >> confdefs.h <<\EOF #define GASNETE_USE_AMDISSEMINATION_REFBARRIER 1 EOF fi echo $ac_n "checking for libgcc link flags""... $ac_c" 1>&6 echo "configure:5841: checking for libgcc link flags" >&5 if eval "test \"`echo '$''{'gasnet_cv_lib_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$GCC" = yes; then #LIBGCC="`$CC -v 2>&1 | sed -n 's:^Reading specs from \(.*\)/specs$:-L\1 -lgcc:p'`" LIBGCC="-L`$CC -print-libgcc-file-name | xargs dirname` -lgcc" if test -z "$LIBGCC"; then { echo "configure: error: cannot find libgcc" 1>&2; exit 1; } fi fi gasnet_cv_lib_gcc="$LIBGCC" fi echo "$ac_t""$gasnet_cv_lib_gcc" 1>&6 LIBGCC="$gasnet_cv_lib_gcc" # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MISC_CPPFLAGS $MISC_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MISC_CPPFLAGS $MISC_CFLAGS" # --------------------------------------- restrict_keyword="" if test "$restrict_keyword" = ""; then echo $ac_n "checking for restrict keyword""... $ac_c" 1>&6 echo "configure:5879: checking for restrict keyword" >&5 if eval "test \"`echo '$''{'gasnet_cv_cc_keyrestrict'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gasnet_cv_cc_keyrestrict=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_cc_keyrestrict=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_cc_keyrestrict" 1>&6 if test "$gasnet_cv_cc_keyrestrict" = yes; then : cat >> confdefs.h <<\EOF #define GASNETI_RESTRICT restrict EOF restrict_keyword="restrict" else : fi fi if test "$restrict_keyword" = ""; then echo $ac_n "checking for __restrict__ keyword""... $ac_c" 1>&6 echo "configure:5919: checking for __restrict__ keyword" >&5 if eval "test \"`echo '$''{'gasnet_cv_cc_key__restrict__'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gasnet_cv_cc_key__restrict__=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_cc_key__restrict__=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_cc_key__restrict__" 1>&6 if test "$gasnet_cv_cc_key__restrict__" = yes; then : cat >> confdefs.h <<\EOF #define GASNETI_RESTRICT __restrict__ EOF restrict_keyword="__restrict__" else : fi fi if test "$restrict_keyword" = ""; then echo $ac_n "checking for __restrict keyword""... $ac_c" 1>&6 echo "configure:5959: checking for __restrict keyword" >&5 if eval "test \"`echo '$''{'gasnet_cv_cc_key__restrict'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gasnet_cv_cc_key__restrict=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_cc_key__restrict=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_cc_key__restrict" 1>&6 if test "$gasnet_cv_cc_key__restrict" = yes; then : cat >> confdefs.h <<\EOF #define GASNETI_RESTRICT __restrict EOF restrict_keyword="__restrict" else : fi fi if test "$restrict_keyword" = ""; then cat >> confdefs.h <<\EOF #define GASNETI_RESTRICT EOF fi # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- ######################################################################## # hunt for 16-, 32-, and 64-bit integer types # Check sizes if test "$cross_compiling" = "yes" ; then if test "$cross_compiling" = "yes" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](CROSS_SIZEOF_CHAR, ) echo $ac_n "checking for CROSS_SIZEOF_CHAR in environment""... $ac_c" 1>&6 echo "configure:6036: checking for CROSS_SIZEOF_CHAR in environment" >&5 # Check whether --with-cross-sizeof-char or --without-cross-sizeof-char was given. if test "${with_cross_sizeof_char+set}" = set; then withval="$with_cross_sizeof_char" : fi envval_src_CROSS_SIZEOF_CHAR="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_CROSS_SIZEOF_CHAR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_SIZEOF_CHAR-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sizeof_char" != ""; then gasnet_cv_envvar_CROSS_SIZEOF_CHAR="$with_cross_sizeof_char" envval_src_CROSS_SIZEOF_CHAR=given else gasnet_cv_envvar_CROSS_SIZEOF_CHAR="" envval_src_CROSS_SIZEOF_CHAR=default fi ;; *) gasnet_cv_envvar_CROSS_SIZEOF_CHAR="$CROSS_SIZEOF_CHAR" envval_src_CROSS_SIZEOF_CHAR=given esac fi CROSS_SIZEOF_CHAR="$gasnet_cv_envvar_CROSS_SIZEOF_CHAR" case "$envval_src_CROSS_SIZEOF_CHAR" in 'cached') echo "$ac_t""using cached value \"$CROSS_SIZEOF_CHAR\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_SIZEOF_CHAR\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_SIZEOF_CHAR\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_SIZEOF_CHAR" = "" ; then { echo "configure: error: This configure script requires \$CROSS_SIZEOF_CHAR be set for cross-compilation" 1>&2; exit 1; } else SIZEOF_CHAR="$CROSS_SIZEOF_CHAR" fi fi ac_cv_sizeof_char=$SIZEOF_CHAR fi echo $ac_n "checking size of char""... $ac_c" 1>&6 echo "configure:6096: checking size of char" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_sizeof_char=$SIZEOF_CHAR else cat > conftest.$ac_ext < main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(char)); exit(0); } EOF if { (eval echo configure:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_char=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_char=0 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_sizeof_char" 1>&6 cat >> confdefs.h <&2; exit 1; } fi if test "$cross_compiling" = "yes" ; then if test "$cross_compiling" = "yes" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](CROSS_SIZEOF_SHORT, ) echo $ac_n "checking for CROSS_SIZEOF_SHORT in environment""... $ac_c" 1>&6 echo "configure:6158: checking for CROSS_SIZEOF_SHORT in environment" >&5 # Check whether --with-cross-sizeof-short or --without-cross-sizeof-short was given. if test "${with_cross_sizeof_short+set}" = set; then withval="$with_cross_sizeof_short" : fi envval_src_CROSS_SIZEOF_SHORT="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_CROSS_SIZEOF_SHORT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_SIZEOF_SHORT-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sizeof_short" != ""; then gasnet_cv_envvar_CROSS_SIZEOF_SHORT="$with_cross_sizeof_short" envval_src_CROSS_SIZEOF_SHORT=given else gasnet_cv_envvar_CROSS_SIZEOF_SHORT="" envval_src_CROSS_SIZEOF_SHORT=default fi ;; *) gasnet_cv_envvar_CROSS_SIZEOF_SHORT="$CROSS_SIZEOF_SHORT" envval_src_CROSS_SIZEOF_SHORT=given esac fi CROSS_SIZEOF_SHORT="$gasnet_cv_envvar_CROSS_SIZEOF_SHORT" case "$envval_src_CROSS_SIZEOF_SHORT" in 'cached') echo "$ac_t""using cached value \"$CROSS_SIZEOF_SHORT\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_SIZEOF_SHORT\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_SIZEOF_SHORT\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_SIZEOF_SHORT" = "" ; then { echo "configure: error: This configure script requires \$CROSS_SIZEOF_SHORT be set for cross-compilation" 1>&2; exit 1; } else SIZEOF_SHORT="$CROSS_SIZEOF_SHORT" fi fi ac_cv_sizeof_short=$SIZEOF_SHORT fi echo $ac_n "checking size of short""... $ac_c" 1>&6 echo "configure:6218: checking size of short" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_sizeof_short=$SIZEOF_SHORT else cat > conftest.$ac_ext < main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(short)); exit(0); } EOF if { (eval echo configure:6237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_short=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_short=0 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_sizeof_short" 1>&6 cat >> confdefs.h <&2; exit 1; } fi if test "$cross_compiling" = "yes" ; then if test "$cross_compiling" = "yes" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](CROSS_SIZEOF_INT, ) echo $ac_n "checking for CROSS_SIZEOF_INT in environment""... $ac_c" 1>&6 echo "configure:6280: checking for CROSS_SIZEOF_INT in environment" >&5 # Check whether --with-cross-sizeof-int or --without-cross-sizeof-int was given. if test "${with_cross_sizeof_int+set}" = set; then withval="$with_cross_sizeof_int" : fi envval_src_CROSS_SIZEOF_INT="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_CROSS_SIZEOF_INT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_SIZEOF_INT-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sizeof_int" != ""; then gasnet_cv_envvar_CROSS_SIZEOF_INT="$with_cross_sizeof_int" envval_src_CROSS_SIZEOF_INT=given else gasnet_cv_envvar_CROSS_SIZEOF_INT="" envval_src_CROSS_SIZEOF_INT=default fi ;; *) gasnet_cv_envvar_CROSS_SIZEOF_INT="$CROSS_SIZEOF_INT" envval_src_CROSS_SIZEOF_INT=given esac fi CROSS_SIZEOF_INT="$gasnet_cv_envvar_CROSS_SIZEOF_INT" case "$envval_src_CROSS_SIZEOF_INT" in 'cached') echo "$ac_t""using cached value \"$CROSS_SIZEOF_INT\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_SIZEOF_INT\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_SIZEOF_INT\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_SIZEOF_INT" = "" ; then { echo "configure: error: This configure script requires \$CROSS_SIZEOF_INT be set for cross-compilation" 1>&2; exit 1; } else SIZEOF_INT="$CROSS_SIZEOF_INT" fi fi ac_cv_sizeof_int=$SIZEOF_INT fi echo $ac_n "checking size of int""... $ac_c" 1>&6 echo "configure:6340: checking size of int" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_sizeof_int=$SIZEOF_INT else cat > conftest.$ac_ext < main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(int)); exit(0); } EOF if { (eval echo configure:6359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_int=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_int=0 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_sizeof_int" 1>&6 cat >> confdefs.h <&2; exit 1; } fi if test "$cross_compiling" = "yes" ; then if test "$cross_compiling" = "yes" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](CROSS_SIZEOF_LONG, ) echo $ac_n "checking for CROSS_SIZEOF_LONG in environment""... $ac_c" 1>&6 echo "configure:6402: checking for CROSS_SIZEOF_LONG in environment" >&5 # Check whether --with-cross-sizeof-long or --without-cross-sizeof-long was given. if test "${with_cross_sizeof_long+set}" = set; then withval="$with_cross_sizeof_long" : fi envval_src_CROSS_SIZEOF_LONG="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_CROSS_SIZEOF_LONG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_SIZEOF_LONG-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sizeof_long" != ""; then gasnet_cv_envvar_CROSS_SIZEOF_LONG="$with_cross_sizeof_long" envval_src_CROSS_SIZEOF_LONG=given else gasnet_cv_envvar_CROSS_SIZEOF_LONG="" envval_src_CROSS_SIZEOF_LONG=default fi ;; *) gasnet_cv_envvar_CROSS_SIZEOF_LONG="$CROSS_SIZEOF_LONG" envval_src_CROSS_SIZEOF_LONG=given esac fi CROSS_SIZEOF_LONG="$gasnet_cv_envvar_CROSS_SIZEOF_LONG" case "$envval_src_CROSS_SIZEOF_LONG" in 'cached') echo "$ac_t""using cached value \"$CROSS_SIZEOF_LONG\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_SIZEOF_LONG\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_SIZEOF_LONG\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_SIZEOF_LONG" = "" ; then { echo "configure: error: This configure script requires \$CROSS_SIZEOF_LONG be set for cross-compilation" 1>&2; exit 1; } else SIZEOF_LONG="$CROSS_SIZEOF_LONG" fi fi ac_cv_sizeof_long=$SIZEOF_LONG fi echo $ac_n "checking size of long""... $ac_c" 1>&6 echo "configure:6462: checking size of long" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_sizeof_long=$SIZEOF_LONG else cat > conftest.$ac_ext < main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(long)); exit(0); } EOF if { (eval echo configure:6481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_long=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_long=0 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_sizeof_long" 1>&6 cat >> confdefs.h <&2; exit 1; } fi if test "$cross_compiling" = "yes" ; then if test "$cross_compiling" = "yes" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](CROSS_SIZEOF_LONG_LONG, ) echo $ac_n "checking for CROSS_SIZEOF_LONG_LONG in environment""... $ac_c" 1>&6 echo "configure:6524: checking for CROSS_SIZEOF_LONG_LONG in environment" >&5 # Check whether --with-cross-sizeof-long-long or --without-cross-sizeof-long-long was given. if test "${with_cross_sizeof_long_long+set}" = set; then withval="$with_cross_sizeof_long_long" : fi envval_src_CROSS_SIZEOF_LONG_LONG="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_CROSS_SIZEOF_LONG_LONG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_SIZEOF_LONG_LONG-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sizeof_long_long" != ""; then gasnet_cv_envvar_CROSS_SIZEOF_LONG_LONG="$with_cross_sizeof_long_long" envval_src_CROSS_SIZEOF_LONG_LONG=given else gasnet_cv_envvar_CROSS_SIZEOF_LONG_LONG="" envval_src_CROSS_SIZEOF_LONG_LONG=default fi ;; *) gasnet_cv_envvar_CROSS_SIZEOF_LONG_LONG="$CROSS_SIZEOF_LONG_LONG" envval_src_CROSS_SIZEOF_LONG_LONG=given esac fi CROSS_SIZEOF_LONG_LONG="$gasnet_cv_envvar_CROSS_SIZEOF_LONG_LONG" case "$envval_src_CROSS_SIZEOF_LONG_LONG" in 'cached') echo "$ac_t""using cached value \"$CROSS_SIZEOF_LONG_LONG\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_SIZEOF_LONG_LONG\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_SIZEOF_LONG_LONG\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_SIZEOF_LONG_LONG" = "" ; then { echo "configure: error: This configure script requires \$CROSS_SIZEOF_LONG_LONG be set for cross-compilation" 1>&2; exit 1; } else SIZEOF_LONG_LONG="$CROSS_SIZEOF_LONG_LONG" fi fi ac_cv_sizeof_long_long=$SIZEOF_LONG_LONG fi echo $ac_n "checking size of long long""... $ac_c" 1>&6 echo "configure:6584: checking size of long long" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_sizeof_long_long=$SIZEOF_LONG_LONG else cat > conftest.$ac_ext < main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(long long)); exit(0); } EOF if { (eval echo configure:6603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_long_long=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_long_long=0 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 cat >> confdefs.h <&2; exit 1; } fi if test "$cross_compiling" = "yes" ; then if test "$cross_compiling" = "yes" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](CROSS_SIZEOF_VOID_P, ) echo $ac_n "checking for CROSS_SIZEOF_VOID_P in environment""... $ac_c" 1>&6 echo "configure:6646: checking for CROSS_SIZEOF_VOID_P in environment" >&5 # Check whether --with-cross-sizeof-void-p or --without-cross-sizeof-void-p was given. if test "${with_cross_sizeof_void_p+set}" = set; then withval="$with_cross_sizeof_void_p" : fi envval_src_CROSS_SIZEOF_VOID_P="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_CROSS_SIZEOF_VOID_P'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_SIZEOF_VOID_P-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_sizeof_void_p" != ""; then gasnet_cv_envvar_CROSS_SIZEOF_VOID_P="$with_cross_sizeof_void_p" envval_src_CROSS_SIZEOF_VOID_P=given else gasnet_cv_envvar_CROSS_SIZEOF_VOID_P="" envval_src_CROSS_SIZEOF_VOID_P=default fi ;; *) gasnet_cv_envvar_CROSS_SIZEOF_VOID_P="$CROSS_SIZEOF_VOID_P" envval_src_CROSS_SIZEOF_VOID_P=given esac fi CROSS_SIZEOF_VOID_P="$gasnet_cv_envvar_CROSS_SIZEOF_VOID_P" case "$envval_src_CROSS_SIZEOF_VOID_P" in 'cached') echo "$ac_t""using cached value \"$CROSS_SIZEOF_VOID_P\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_SIZEOF_VOID_P\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_SIZEOF_VOID_P\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_SIZEOF_VOID_P" = "" ; then { echo "configure: error: This configure script requires \$CROSS_SIZEOF_VOID_P be set for cross-compilation" 1>&2; exit 1; } else SIZEOF_VOID_P="$CROSS_SIZEOF_VOID_P" fi fi ac_cv_sizeof_void_p=$SIZEOF_VOID_P fi echo $ac_n "checking size of void *""... $ac_c" 1>&6 echo "configure:6706: checking size of void *" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_sizeof_void_p=$SIZEOF_VOID_P else cat > conftest.$ac_ext < main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(void *)); exit(0); } EOF if { (eval echo configure:6725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_void_p=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_sizeof_void_p=0 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 cat >> confdefs.h <&2; exit 1; } fi if test x"$ac_cv_sizeof_int$ac_cv_sizeof_long$ac_cv_sizeof_void_p" = x444; then PLATFORM_ILP32_TRUE= PLATFORM_ILP32_FALSE='#' else PLATFORM_ILP32_TRUE='#' PLATFORM_ILP32_FALSE= fi if test x"$ac_cv_sizeof_int$ac_cv_sizeof_long$ac_cv_sizeof_void_p" = x488; then PLATFORM_LP64_TRUE= PLATFORM_LP64_FALSE='#' else PLATFORM_LP64_TRUE='#' PLATFORM_LP64_FALSE= fi if test x"$ac_cv_sizeof_int$ac_cv_sizeof_long$ac_cv_sizeof_void_p" = x888; then PLATFORM_ILP64_TRUE= PLATFORM_ILP64_FALSE='#' else PLATFORM_ILP64_TRUE='#' PLATFORM_ILP64_FALSE= fi for ac_hdr in stdint.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:6787: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:6797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done if test "$ac_cv_header_stdint_h" = "yes"; then HAVE_STDINT_H=1 if test "$cross_compiling" = "yes" ; then echo $ac_n "checking for a complete stdint.h""... $ac_c" 1>&6 echo "configure:6830: checking for a complete stdint.h" >&5 if eval "test \"`echo '$''{'gasnet_cv_COMPLETE_STDINT_H'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int check() { int8_t i8; uint8_t u8; int16_t i16; uint16_t u16; int32_t i32; uint32_t u32; int64_t i64; uint64_t u64; intptr_t ip; uintptr_t up; if (sizeof(i8) != 1) return 1; if (sizeof(u8) != 1) return 1; if (sizeof(i16) != 2) return 1; if (sizeof(u16) != 2) return 1; if (sizeof(i32) != 4) return 1; if (sizeof(u32) != 4) return 1; if (sizeof(i64) != 8) return 1; if (sizeof(u64) != 8) return 1; if (sizeof(ip) != sizeof(void*)) return 1; if (sizeof(up) != sizeof(void*)) return 1; return 0; } int main() { return check(); ; return 0; } EOF if { (eval echo configure:6869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gasnet_cv_COMPLETE_STDINT_H=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_COMPLETE_STDINT_H=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_COMPLETE_STDINT_H" 1>&6 if test "$gasnet_cv_COMPLETE_STDINT_H" = yes; then : COMPLETE_STDINT_H=1 cat >> confdefs.h <<\EOF #define COMPLETE_STDINT_H 1 EOF else : fi else echo $ac_n "checking for a complete stdint.h""... $ac_c" 1>&6 echo "configure:6899: checking for a complete stdint.h" >&5 if eval "test \"`echo '$''{'gasnet_cv_COMPLETE_STDINT_H'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < int check() { int8_t i8; uint8_t u8; int16_t i16; uint16_t u16; int32_t i32; uint32_t u32; int64_t i64; uint64_t u64; intptr_t ip; uintptr_t up; if (sizeof(i8) != 1) return 1; if (sizeof(u8) != 1) return 1; if (sizeof(i16) != 2) return 1; if (sizeof(u16) != 2) return 1; if (sizeof(i32) != 4) return 1; if (sizeof(u32) != 4) return 1; if (sizeof(i64) != 8) return 1; if (sizeof(u64) != 8) return 1; if (sizeof(ip) != sizeof(void*)) return 1; if (sizeof(up) != sizeof(void*)) return 1; return 0; } int main() { return check(); } EOF if { (eval echo configure:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then gasnet_cv_COMPLETE_STDINT_H=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* gasnet_cv_COMPLETE_STDINT_H=no fi rm -fr conftest* fi fi echo "$ac_t""$gasnet_cv_COMPLETE_STDINT_H" 1>&6 if test "$gasnet_cv_COMPLETE_STDINT_H" = yes; then : COMPLETE_STDINT_H=1 cat >> confdefs.h <<\EOF #define COMPLETE_STDINT_H 1 EOF else : fi fi fi for ac_hdr in inttypes.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:6978: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:6988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done if test "$ac_cv_header_inttypes_h" = "yes"; then HAVE_INTTYPES_H=1 if test "$cross_compiling" = "yes" ; then echo $ac_n "checking for a complete inttypes.h""... $ac_c" 1>&6 echo "configure:7021: checking for a complete inttypes.h" >&5 if eval "test \"`echo '$''{'gasnet_cv_COMPLETE_INTTYPES_H'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int check() { int8_t i8; uint8_t u8; int16_t i16; uint16_t u16; int32_t i32; uint32_t u32; int64_t i64; uint64_t u64; intptr_t ip; uintptr_t up; if (sizeof(i8) != 1) return 1; if (sizeof(u8) != 1) return 1; if (sizeof(i16) != 2) return 1; if (sizeof(u16) != 2) return 1; if (sizeof(i32) != 4) return 1; if (sizeof(u32) != 4) return 1; if (sizeof(i64) != 8) return 1; if (sizeof(u64) != 8) return 1; if (sizeof(ip) != sizeof(void*)) return 1; if (sizeof(up) != sizeof(void*)) return 1; return 0; } int main() { return check(); ; return 0; } EOF if { (eval echo configure:7060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gasnet_cv_COMPLETE_INTTYPES_H=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_COMPLETE_INTTYPES_H=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_COMPLETE_INTTYPES_H" 1>&6 if test "$gasnet_cv_COMPLETE_INTTYPES_H" = yes; then : COMPLETE_INTTYPES_H=1 cat >> confdefs.h <<\EOF #define COMPLETE_INTTYPES_H 1 EOF else : fi else echo $ac_n "checking for a complete inttypes.h""... $ac_c" 1>&6 echo "configure:7090: checking for a complete inttypes.h" >&5 if eval "test \"`echo '$''{'gasnet_cv_COMPLETE_INTTYPES_H'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < int check() { int8_t i8; uint8_t u8; int16_t i16; uint16_t u16; int32_t i32; uint32_t u32; int64_t i64; uint64_t u64; intptr_t ip; uintptr_t up; if (sizeof(i8) != 1) return 1; if (sizeof(u8) != 1) return 1; if (sizeof(i16) != 2) return 1; if (sizeof(u16) != 2) return 1; if (sizeof(i32) != 4) return 1; if (sizeof(u32) != 4) return 1; if (sizeof(i64) != 8) return 1; if (sizeof(u64) != 8) return 1; if (sizeof(ip) != sizeof(void*)) return 1; if (sizeof(up) != sizeof(void*)) return 1; return 0; } int main() { return check(); } EOF if { (eval echo configure:7130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then gasnet_cv_COMPLETE_INTTYPES_H=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* gasnet_cv_COMPLETE_INTTYPES_H=no fi rm -fr conftest* fi fi echo "$ac_t""$gasnet_cv_COMPLETE_INTTYPES_H" 1>&6 if test "$gasnet_cv_COMPLETE_INTTYPES_H" = yes; then : COMPLETE_INTTYPES_H=1 cat >> confdefs.h <<\EOF #define COMPLETE_INTTYPES_H 1 EOF else : fi fi fi for ac_hdr in sys/types.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:7169: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:7179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done if test "$ac_cv_header_sys_types_h" = "yes"; then HAVE_SYS_TYPES_H=1 if test "$cross_compiling" = "yes" ; then echo $ac_n "checking for a complete sys/types.h""... $ac_c" 1>&6 echo "configure:7212: checking for a complete sys/types.h" >&5 if eval "test \"`echo '$''{'gasnet_cv_COMPLETE_SYS_TYPES_H'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int check() { int8_t i8; uint8_t u8; int16_t i16; uint16_t u16; int32_t i32; uint32_t u32; int64_t i64; uint64_t u64; intptr_t ip; uintptr_t up; if (sizeof(i8) != 1) return 1; if (sizeof(u8) != 1) return 1; if (sizeof(i16) != 2) return 1; if (sizeof(u16) != 2) return 1; if (sizeof(i32) != 4) return 1; if (sizeof(u32) != 4) return 1; if (sizeof(i64) != 8) return 1; if (sizeof(u64) != 8) return 1; if (sizeof(ip) != sizeof(void*)) return 1; if (sizeof(up) != sizeof(void*)) return 1; return 0; } int main() { return check(); ; return 0; } EOF if { (eval echo configure:7251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gasnet_cv_COMPLETE_SYS_TYPES_H=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_COMPLETE_SYS_TYPES_H=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_COMPLETE_SYS_TYPES_H" 1>&6 if test "$gasnet_cv_COMPLETE_SYS_TYPES_H" = yes; then : COMPLETE_SYS_TYPES_H=1 cat >> confdefs.h <<\EOF #define COMPLETE_SYS_TYPES_H 1 EOF else : fi else echo $ac_n "checking for a complete sys/types.h""... $ac_c" 1>&6 echo "configure:7281: checking for a complete sys/types.h" >&5 if eval "test \"`echo '$''{'gasnet_cv_COMPLETE_SYS_TYPES_H'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < int check() { int8_t i8; uint8_t u8; int16_t i16; uint16_t u16; int32_t i32; uint32_t u32; int64_t i64; uint64_t u64; intptr_t ip; uintptr_t up; if (sizeof(i8) != 1) return 1; if (sizeof(u8) != 1) return 1; if (sizeof(i16) != 2) return 1; if (sizeof(u16) != 2) return 1; if (sizeof(i32) != 4) return 1; if (sizeof(u32) != 4) return 1; if (sizeof(i64) != 8) return 1; if (sizeof(u64) != 8) return 1; if (sizeof(ip) != sizeof(void*)) return 1; if (sizeof(up) != sizeof(void*)) return 1; return 0; } int main() { return check(); } EOF if { (eval echo configure:7321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then gasnet_cv_COMPLETE_SYS_TYPES_H=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* gasnet_cv_COMPLETE_SYS_TYPES_H=no fi rm -fr conftest* fi fi echo "$ac_t""$gasnet_cv_COMPLETE_SYS_TYPES_H" 1>&6 if test "$gasnet_cv_COMPLETE_SYS_TYPES_H" = yes; then : COMPLETE_SYS_TYPES_H=1 cat >> confdefs.h <<\EOF #define COMPLETE_SYS_TYPES_H 1 EOF else : fi fi fi INTTYPES_DEFINES="-DSIZEOF_CHAR=$SIZEOF_CHAR -DSIZEOF_SHORT=$SIZEOF_SHORT -DSIZEOF_INT=$SIZEOF_INT -DSIZEOF_LONG=$SIZEOF_LONG -DSIZEOF_LONG_LONG=$SIZEOF_LONG_LONG -DSIZEOF_VOID_P=$SIZEOF_VOID_P" if test "$HAVE_STDINT_H" != ""; then INTTYPES_DEFINES="$INTTYPES_DEFINES -DHAVE_STDINT_H" fi if test "$COMPLETE_STDINT_H" != ""; then INTTYPES_DEFINES="$INTTYPES_DEFINES -DCOMPLETE_STDINT_H" fi if test "$HAVE_INTTYPES_H" != ""; then INTTYPES_DEFINES="$INTTYPES_DEFINES -DHAVE_INTTYPES_H" fi if test "$COMPLETE_INTTYPES_H" != ""; then INTTYPES_DEFINES="$INTTYPES_DEFINES -DCOMPLETE_INTTYPES_H" fi if test "$HAVE_SYS_TYPES_H" != ""; then INTTYPES_DEFINES="$INTTYPES_DEFINES -DHAVE_SYS_TYPES_H" fi if test "$COMPLETE_SYS_TYPES_H" != ""; then INTTYPES_DEFINES="$INTTYPES_DEFINES -DCOMPLETE_SYS_TYPES_H" fi ######################################################################## ## ## Page size ## if test "$cross_compiling" = "yes" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](CROSS_PAGESIZE, ) echo $ac_n "checking for CROSS_PAGESIZE in environment""... $ac_c" 1>&6 echo "configure:7406: checking for CROSS_PAGESIZE in environment" >&5 # Check whether --with-cross-pagesize or --without-cross-pagesize was given. if test "${with_cross_pagesize+set}" = set; then withval="$with_cross_pagesize" : fi envval_src_CROSS_PAGESIZE="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_CROSS_PAGESIZE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_PAGESIZE-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_pagesize" != ""; then gasnet_cv_envvar_CROSS_PAGESIZE="$with_cross_pagesize" envval_src_CROSS_PAGESIZE=given else gasnet_cv_envvar_CROSS_PAGESIZE="" envval_src_CROSS_PAGESIZE=default fi ;; *) gasnet_cv_envvar_CROSS_PAGESIZE="$CROSS_PAGESIZE" envval_src_CROSS_PAGESIZE=given esac fi CROSS_PAGESIZE="$gasnet_cv_envvar_CROSS_PAGESIZE" case "$envval_src_CROSS_PAGESIZE" in 'cached') echo "$ac_t""using cached value \"$CROSS_PAGESIZE\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_PAGESIZE\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_PAGESIZE\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_PAGESIZE" = "" ; then { echo "configure: error: This configure script requires \$CROSS_PAGESIZE be set for cross-compilation" 1>&2; exit 1; } else GASNETI_PAGESIZE="$CROSS_PAGESIZE" fi fi if test "$GASNETI_PAGESIZE" = ""; then echo $ac_n "checking PAGESIZE""... $ac_c" 1>&6 echo "configure:7467: checking PAGESIZE" >&5 if eval "test \"`echo '$''{'gasnet_cv_PAGESIZE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #include int main() { FILE *f=fopen("conftestval", "w"); int val = 0; if (!f) exit(1); { val = PAGESIZE; if (val<=0) exit(1); ; } fprintf(f, "%d\n", (int)(val)); return 0; } EOF if { (eval echo configure:7490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then gasnet_cv_PAGESIZE=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* gasnet_cv_PAGESIZE=no fi rm -fr conftest* fi fi echo "$ac_t""$gasnet_cv_PAGESIZE" 1>&6 if test "$gasnet_cv_PAGESIZE" != no; then : GASNETI_PAGESIZE=$gasnet_cv_PAGESIZE fi fi if test "$GASNETI_PAGESIZE" = ""; then echo $ac_n "checking PAGE_SIZE""... $ac_c" 1>&6 echo "configure:7514: checking PAGE_SIZE" >&5 if eval "test \"`echo '$''{'gasnet_cv_PAGE_SIZE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #include int main() { FILE *f=fopen("conftestval", "w"); int val = 0; if (!f) exit(1); { val = PAGE_SIZE; if (val<=0) exit(1); ; } fprintf(f, "%d\n", (int)(val)); return 0; } EOF if { (eval echo configure:7537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then gasnet_cv_PAGE_SIZE=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* gasnet_cv_PAGE_SIZE=no fi rm -fr conftest* fi fi echo "$ac_t""$gasnet_cv_PAGE_SIZE" 1>&6 if test "$gasnet_cv_PAGE_SIZE" != no; then : GASNETI_PAGESIZE=$gasnet_cv_PAGE_SIZE fi fi if test "$GASNETI_PAGESIZE" = ""; then echo $ac_n "checking sysconf(_SC_PAGESIZE)""... $ac_c" 1>&6 echo "configure:7561: checking sysconf(_SC_PAGESIZE)" >&5 if eval "test \"`echo '$''{'gasnet_cv__SC_PAGESIZE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #include int main() { FILE *f=fopen("conftestval", "w"); int val = 0; if (!f) exit(1); { val = sysconf(_SC_PAGESIZE); if (val<=0) exit(1); ; } fprintf(f, "%d\n", (int)(val)); return 0; } EOF if { (eval echo configure:7584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then gasnet_cv__SC_PAGESIZE=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* gasnet_cv__SC_PAGESIZE=no fi rm -fr conftest* fi fi echo "$ac_t""$gasnet_cv__SC_PAGESIZE" 1>&6 if test "$gasnet_cv__SC_PAGESIZE" != no; then : GASNETI_PAGESIZE=$gasnet_cv__SC_PAGESIZE fi fi if test "$GASNETI_PAGESIZE" = ""; then echo $ac_n "checking sysconf(_SC_PAGE_SIZE)""... $ac_c" 1>&6 echo "configure:7608: checking sysconf(_SC_PAGE_SIZE)" >&5 if eval "test \"`echo '$''{'gasnet_cv__SC_PAGE_SIZE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #include int main() { FILE *f=fopen("conftestval", "w"); int val = 0; if (!f) exit(1); { val = sysconf(_SC_PAGE_SIZE); if (val<=0) exit(1); ; } fprintf(f, "%d\n", (int)(val)); return 0; } EOF if { (eval echo configure:7631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then gasnet_cv__SC_PAGE_SIZE=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* gasnet_cv__SC_PAGE_SIZE=no fi rm -fr conftest* fi fi echo "$ac_t""$gasnet_cv__SC_PAGE_SIZE" 1>&6 if test "$gasnet_cv__SC_PAGE_SIZE" != no; then : GASNETI_PAGESIZE=$gasnet_cv__SC_PAGE_SIZE fi fi if test "$GASNETI_PAGESIZE" = ""; then echo $ac_n "checking getpagesize()""... $ac_c" 1>&6 echo "configure:7655: checking getpagesize()" >&5 if eval "test \"`echo '$''{'gasnet_cv_getpagesize'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #include int main() { FILE *f=fopen("conftestval", "w"); int val = 0; if (!f) exit(1); { val = getpagesize(); if (val<=0) exit(1); ; } fprintf(f, "%d\n", (int)(val)); return 0; } EOF if { (eval echo configure:7678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then gasnet_cv_getpagesize=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* gasnet_cv_getpagesize=no fi rm -fr conftest* fi fi echo "$ac_t""$gasnet_cv_getpagesize" 1>&6 if test "$gasnet_cv_getpagesize" != no; then : GASNETI_PAGESIZE=$gasnet_cv_getpagesize fi fi if test "$GASNETI_PAGESIZE" != ""; then cat >> confdefs.h <&2; exit 1; } ;; esac cat >> confdefs.h <&6 echo "configure:7760: checking for sin in -lm" >&5 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBM="-lm" else echo "$ac_t""no" 1>&6 LIBM="" fi ;; esac # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](LDFLAGS, "$LDFLAGS -L/usr/lib ${with_ens:+-L$with_ens}") if test "$_pushcnt_LDFLAGS" = "" ; then _pushcnt_LDFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LDFLAGS_$_pushcnt_LDFLAGS=\$LDFLAGS _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LDFLAGS="$LDFLAGS -L/usr/lib ${with_ens:+-L$with_ens}" # --------------------------------------- echo $ac_n "checking for NameServer_Init in -lens""... $ac_c" 1>&6 echo "configure:7834: checking for NameServer_Init in -lens" >&5 ac_lib_var=`echo ens'_'NameServer_Init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lens $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 have_libens=yes else echo "$ac_t""no" 1>&6 fi # --------------------------------------- # [GASNET_POPVAR](LDFLAGS) if test "$_pushcnt_LDFLAGS" -ge "1"; then _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LDFLAGS=\$_pushedvar_LDFLAGS_$_pushcnt_LDFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LDFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo $ac_n "checking for Glib_Initialize in -lglunix""... $ac_c" 1>&6 echo "configure:7887: checking for Glib_Initialize in -lglunix" >&5 ac_lib_var=`echo glunix'_'Glib_Initialize | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lglunix -lsocket $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 have_libglunix=yes else echo "$ac_t""no" 1>&6 fi # Extract the first word of "$REXEC rexec", so it can be a program name with args. set dummy $REXEC rexec; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:7930: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_REXEC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$REXEC" in /*) ac_cv_path_REXEC="$REXEC" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_REXEC="$REXEC" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$with_rexec:$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_REXEC="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi REXEC="$ac_cv_path_REXEC" if test -n "$REXEC"; then echo "$ac_t""$REXEC" 1>&6 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for Millennium rexec""... $ac_c" 1>&6 echo "configure:7964: checking for Millennium rexec" >&5 # We're only interested in the Millennium version of rexec # the standard UNIX command 'rexec' has completely different behavior and is currently of no use to us if test -n "$REXEC" -a -n "`$REXEC 2> /dev/null | grep -- '-n #nodes'`"; then have_rexec=yes GASNET_REXEC_DEFINES="-DREXEC" echo "$ac_t""yes" 1>&6 else have_rexec=no GASNET_REXEC_DEFINES="" echo "$ac_t""no" 1>&6 fi #--------------------------------------------------------------------------------------------------------------- # Machine defs cat >> confdefs.h <<\EOF #define UNIX 1 EOF GASNET_THREAD_DEFINES="" GASNET_THREAD_LIBS="" case "$target_os" in solaris*) cat >> confdefs.h <<\EOF #define SOLARIS 1 EOF GASNET_MACHINE_DEFINES="-DSOLARIS" GASNET_THREAD_DEFINES="-D_REENTRANT" # on some systems static linking fails with -lpthread, # but need it or pthread_create will fail at runtime GASNET_THREAD_LIBS="-lpthread" ;; linux*) cat >> confdefs.h <<\EOF #define LINUX 1 EOF GASNET_MACHINE_DEFINES="-DLINUX" # Check for SGI Altix, using a device heuristic. SGI has assured us # that /dev/hw is specific (and standard) on their system if test -d "/dev/hw/cpunum"; then cat >> confdefs.h <<\EOF #define ALTIX 1 EOF GASNET_MACHINE_DEFINES="$GASNET_MACHINE_DEFINES -DALTIX" fi case "$target" in *-catamount-*) cat >> confdefs.h <<\EOF #define CATAMOUNT 1 EOF GASNET_MACHINE_DEFINES="-DCATAMOUNT" ;; esac # Defining _GNU_SOURCE gives us accesss to the "adaptive" # implementation of pthread_mutex_t, which is faster then # the default implementation for our purposes. GASNET_THREAD_DEFINES="-D_REENTRANT -D_GNU_SOURCE" GASNET_THREAD_LIBS="-lpthread" ;; freebsd*) cat >> confdefs.h <<\EOF #define FREEBSD 1 EOF GASNET_MACHINE_DEFINES="-DFREEBSD" GASNET_THREAD_DEFINES="-D_REENTRANT" GASNET_THREAD_LIBS="-pthread" # bug 1205: do not explicitly select threading lib ;; netbsd*) cat >> confdefs.h <<\EOF #define NETBSD 1 EOF GASNET_MACHINE_DEFINES="-DNETBSD" GASNET_THREAD_DEFINES="-D_REENTRANT" GASNET_THREAD_LIBS="-pthread" # bug 1205: do not explicitly select threading lib ;; cygwin*) cat >> confdefs.h <<\EOF #define CYGWIN 1 EOF GASNET_MACHINE_DEFINES="-DCYGWIN" GASNET_THREAD_DEFINES="-D_REENTRANT" GASNET_THREAD_LIBS="" ;; darwin*) cat >> confdefs.h <<\EOF #define DARWIN 1 EOF GASNET_MACHINE_DEFINES="-DDARWIN" GASNET_THREAD_DEFINES="-D_REENTRANT" GASNET_THREAD_LIBS="" ;; irix*) cat >> confdefs.h <<\EOF #define IRIX 1 EOF GASNET_MACHINE_DEFINES="-DIRIX" GASNET_THREAD_DEFINES="-D_REENTRANT" GASNET_THREAD_LIBS="-lpthread" ;; aix*) cat >> confdefs.h <<\EOF #define AIX 1 EOF GASNET_MACHINE_DEFINES="-DAIX" GASNET_THREAD_DEFINES="-D_REENTRANT -D_THREAD_SAFE" GASNET_THREAD_LIBS="-lpthread" ;; osf*) cat >> confdefs.h <<\EOF #define OSF 1 EOF GASNET_MACHINE_DEFINES="-DOSF" # -D_PTHREAD_NOMETER_STATIC fixes failures when initially trylocking a statically-init mutex GASNET_THREAD_DEFINES="-D_REENTRANT -D_THREAD_SAFE -D_PTHREAD_NOMETER_STATIC" GASNET_THREAD_LIBS="-pthread -lpthreads" ;; hpux*) cat >> confdefs.h <<\EOF #define HPUX 1 EOF GASNET_MACHINE_DEFINES="-DHPUX" GASNET_THREAD_DEFINES="-D_REENTRANT" GASNET_THREAD_LIBS="-lpthread" ;; mtx*) cat >> confdefs.h <<\EOF #define MTA 1 EOF GASNET_MACHINE_DEFINES="-DMTA" GASNET_THREAD_DEFINES="" GASNET_THREAD_LIBS="-lpthread" ;; superux*) cat >> confdefs.h <<\EOF #define SUPERUX 1 EOF GASNET_MACHINE_DEFINES="-DSUPERUX" GASNET_THREAD_DEFINES="-D_REENTRANT" GASNET_THREAD_LIBS="-lpthread" ;; unicos*) cat >> confdefs.h <<\EOF #define UNICOS 1 EOF GASNET_MACHINE_DEFINES="-DUNICOS" GASNET_THREAD_LIBS="-lpthread" echo $ac_n "checking for Cray T3E""... $ac_c" 1>&6 echo "configure:8128: checking for Cray T3E" >&5 if eval "test \"`echo '$''{'gasnet_cv_cc_is_t3e'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gasnet_cv_cc_is_t3e=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_cc_is_t3e=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_cc_is_t3e" 1>&6 if test "$gasnet_cv_cc_is_t3e" = yes; then : GASNET_THREAD_DEFINES="-D_REENTRANT" GASNET_MACHINE_DEFINES="$GASNET_MACHINE_DEFINES -DCRAYT3E" cat >> confdefs.h <<\EOF #define CRAYT3E 1 EOF use_pthreads=no # pthreads are horribly broken on the T3E else : fi echo $ac_n "checking for Cray X1""... $ac_c" 1>&6 echo "configure:8174: checking for Cray X1" >&5 if eval "test \"`echo '$''{'gasnet_cv_cc_is_x1'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gasnet_cv_cc_is_x1=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_cc_is_x1=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_cc_is_x1" 1>&6 if test "$gasnet_cv_cc_is_x1" = yes; then : GASNET_THREAD_DEFINES="-D_REENTRANT -hthreadsafe" GASNET_MACHINE_DEFINES="$GASNET_MACHINE_DEFINES -DCRAYX1" cat >> confdefs.h <<\EOF #define CRAYX1 1 EOF else : fi ;; *) echo "configure: warning: unknown OS - you may need to update the configure script" 1>&2 ;; esac GASNET_MACHINE_DEFINES="$GASNET_MACHINE_DEFINES -DUNIX" # Find the appropriate OS suffix for executables case "$target_os" in cygwin*) EXESUFFIX='.exe' ;; *) EXESUFFIX='' ;; esac ######################################################################## ## ## Multithreading Libraries ## ## POSIX threads # have_pthread=no if test "$use_pthreads" != "no"; then # --------------------------------------- # [GASNET_ENV_DEFAULT](PTHREADS_INCLUDE, ) echo $ac_n "checking for PTHREADS_INCLUDE in environment""... $ac_c" 1>&6 echo "configure:8255: checking for PTHREADS_INCLUDE in environment" >&5 # Check whether --with-pthreads-include or --without-pthreads-include was given. if test "${with_pthreads_include+set}" = set; then withval="$with_pthreads_include" : fi envval_src_PTHREADS_INCLUDE="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_PTHREADS_INCLUDE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${PTHREADS_INCLUDE-__NOT_SET__}" in __NOT_SET__) if test "$with_pthreads_include" != ""; then gasnet_cv_envvar_PTHREADS_INCLUDE="$with_pthreads_include" envval_src_PTHREADS_INCLUDE=given else gasnet_cv_envvar_PTHREADS_INCLUDE="" envval_src_PTHREADS_INCLUDE=default fi ;; *) gasnet_cv_envvar_PTHREADS_INCLUDE="$PTHREADS_INCLUDE" envval_src_PTHREADS_INCLUDE=given esac fi PTHREADS_INCLUDE="$gasnet_cv_envvar_PTHREADS_INCLUDE" case "$envval_src_PTHREADS_INCLUDE" in 'cached') echo "$ac_t""using cached value \"$PTHREADS_INCLUDE\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$PTHREADS_INCLUDE\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$PTHREADS_INCLUDE\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](PTHREADS_LIB, ) echo $ac_n "checking for PTHREADS_LIB in environment""... $ac_c" 1>&6 echo "configure:8311: checking for PTHREADS_LIB in environment" >&5 # Check whether --with-pthreads-lib or --without-pthreads-lib was given. if test "${with_pthreads_lib+set}" = set; then withval="$with_pthreads_lib" : fi envval_src_PTHREADS_LIB="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_PTHREADS_LIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${PTHREADS_LIB-__NOT_SET__}" in __NOT_SET__) if test "$with_pthreads_lib" != ""; then gasnet_cv_envvar_PTHREADS_LIB="$with_pthreads_lib" envval_src_PTHREADS_LIB=given else gasnet_cv_envvar_PTHREADS_LIB="" envval_src_PTHREADS_LIB=default fi ;; *) gasnet_cv_envvar_PTHREADS_LIB="$PTHREADS_LIB" envval_src_PTHREADS_LIB=given esac fi PTHREADS_LIB="$gasnet_cv_envvar_PTHREADS_LIB" case "$envval_src_PTHREADS_LIB" in 'cached') echo "$ac_t""using cached value \"$PTHREADS_LIB\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$PTHREADS_LIB\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$PTHREADS_LIB\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test -n "$PTHREADS_INCLUDE" || test -n "$PTHREADS_LIB"; then if test -z "$PTHREADS_INCLUDE" || test -z "$PTHREADS_LIB"; then { echo "configure: error: 'Both \$PTHREADS_INCLUDE and \$PTHREADS_LIB must be set, or neither'" 1>&2; exit 1; } fi # test to see if files exist if test ! -f "$PTHREADS_INCLUDE/pthread.h"; then { echo "configure: error: "Could not find $PTHREADS_INCLUDE/pthread.h: bad \$PTHREADS_INCLUDE"" 1>&2; exit 1; } fi if test ! -f "$PTHREADS_LIB/libpthread.a" || test ! -f "$PTHREADS_LIB/libpthread.so" ; then { echo "configure: error: "Could not find $PTHREADS_LIB/libpthread.{a,so}: bad \$PTHREADS_LIB"" 1>&2; exit 1; } fi CFLAGS="-I$PTHREADS_INCLUDE -L$PTHREADS_LIB $CFLAGS" fi echo $ac_n "checking for working pthreads support""... $ac_c" 1>&6 echo "configure:8375: checking for working pthreads support" >&5 # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $GASNET_THREAD_DEFINES") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $GASNET_THREAD_DEFINES" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$LIBS $GASNET_THREAD_LIBS") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$LIBS $GASNET_THREAD_LIBS" # --------------------------------------- cat > conftest.$ac_ext < int main() { pthread_create(0,0,0,0); ; return 0; } EOF if { (eval echo configure:8414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* have_pthread=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- echo "$ac_t""$have_pthread" 1>&6 else pthread_reason="was disabled" fi if test "$use_pthreads$have_pthread" = "yesno" ; then { echo "configure: error: --enable-pthreads passed but no working pthreads support found" 1>&2; exit 1; } fi if test "$use_pthreads$have_pthread" = "tryno" ; then echo "configure: warning: No working pthreads support found - disabling pthreads support" 1>&2 pthread_reason="appear to be missing or broken" fi GASNETI_CACHE_LINE_BYTES="" if test "$have_pthread" = no ; then GASNET_THREAD_DEFINES="" GASNET_THREAD_LIBS="" else # --------------------------------------- # [GASNET_PUSHVAR](CPPFLAGS, "$CPPFLAGS $GASNET_THREAD_DEFINES -I$TOP_SRCDIR/other") if test "$_pushcnt_CPPFLAGS" = "" ; then _pushcnt_CPPFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CPPFLAGS_$_pushcnt_CPPFLAGS=\$CPPFLAGS _pushcnt_CPPFLAGS=`expr $_pushcnt_CPPFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CPPFLAGS="$CPPFLAGS $GASNET_THREAD_DEFINES -I$TOP_SRCDIR/other" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$GASNET_THREAD_LIBS") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$GASNET_THREAD_LIBS" # --------------------------------------- # define HAVE_PTHREAD_H for ac_hdr in pthread.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:8499: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:8509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done # look for optional pthreads entry points and features echo $ac_n "checking for library containing pthread_setconcurrency""... $ac_c" 1>&6 echo "configure:8539: checking for library containing pthread_setconcurrency" >&5 if eval "test \"`echo '$''{'ac_cv_search_pthread_setconcurrency'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_pthread_setconcurrency="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_pthread_setconcurrency="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_pthread_setconcurrency" = "no" && for i in pthread pthreads c_r; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_pthread_setconcurrency="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_pthread_setconcurrency" 1>&6 if test "$ac_cv_search_pthread_setconcurrency" != "no"; then test "$ac_cv_search_pthread_setconcurrency" = "none required" || LIBS="$ac_cv_search_pthread_setconcurrency $LIBS" cat >> confdefs.h <<\EOF #define HAVE_PTHREAD_SETCONCURRENCY 1 EOF else : fi echo $ac_n "checking for library containing pthread_kill_other_threads_np""... $ac_c" 1>&6 echo "configure:8604: checking for library containing pthread_kill_other_threads_np" >&5 if eval "test \"`echo '$''{'ac_cv_search_pthread_kill_other_threads_np'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_pthread_kill_other_threads_np="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_pthread_kill_other_threads_np="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_pthread_kill_other_threads_np" = "no" && for i in pthread pthreads; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_pthread_kill_other_threads_np="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_pthread_kill_other_threads_np" 1>&6 if test "$ac_cv_search_pthread_kill_other_threads_np" != "no"; then test "$ac_cv_search_pthread_kill_other_threads_np" = "none required" || LIBS="$ac_cv_search_pthread_kill_other_threads_np $LIBS" cat >> confdefs.h <<\EOF #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1 EOF else : fi if test "$cross_compiling" = "no"; then case "$target_os" in darwin*) echo $ac_n "checking for shared data cache line size""... $ac_c" 1>&6 echo "configure:8672: checking for shared data cache line size" >&5 GASNETI_CACHE_LINE_BYTES=`/usr/sbin/sysctl hw.cachelinesize | cut '-d ' -f2` echo "$ac_t""$GASNETI_CACHE_LINE_BYTES" 1>&6 ;; *) echo $ac_n "checking for shared data cache line size""... $ac_c" 1>&6 echo "configure:8679: checking for shared data cache line size" >&5 if eval "test \"`echo '$''{'gasnet_cv_datacache_line_size'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #define CONFIG_TEST 1 #include "detect-cachesz.c" int main() { FILE *f=fopen("conftestval", "w"); int val = 0; if (!f) exit(1); { val = detect_cachesz(79.0, 0); if (val<=0) exit(1); ; } fprintf(f, "%d\n", (int)(val)); return 0; } EOF if { (eval echo configure:8704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then gasnet_cv_datacache_line_size=`cat conftestval` else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* gasnet_cv_datacache_line_size=no fi rm -fr conftest* fi fi echo "$ac_t""$gasnet_cv_datacache_line_size" 1>&6 if test "$gasnet_cv_datacache_line_size" != no; then : GASNETI_CACHE_LINE_BYTES=$gasnet_cv_datacache_line_size fi ;; esac fi case "$target_os" in freebsd*) ;; # bug 1205: intentionally avoid -lpthread on BSD, where it causes problems netbsd*) ;; *) GASNET_THREAD_LIBS="$LIBS" ;; esac # --------------------------------------- # [GASNET_POPVAR](CPPFLAGS) if test "$_pushcnt_CPPFLAGS" -ge "1"; then _pushcnt_CPPFLAGS=`expr $_pushcnt_CPPFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CPPFLAGS=\$_pushedvar_CPPFLAGS_$_pushcnt_CPPFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CPPFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- fi if test "$GASNETI_CACHE_LINE_BYTES" = "" ; then GASNETI_CACHE_LINE_BYTES=128 echo "configure: warning: Unable to automatically detect a shared data cache line size (either system load too high, pthreads is broken or this is not a cache-coherent SMP). Using a safe default size of $GASNETI_CACHE_LINE_BYTES" 1>&2 fi cat >> confdefs.h <&6 echo "configure:8781: checking for thr_create in -lthread" >&5 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lthread $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 have_solthread=yes else echo "$ac_t""no" 1>&6 have_solthread=no fi echo $ac_n "checking for x86 pause instruction""... $ac_c" 1>&6 echo "configure:8823: checking for x86 pause instruction" >&5 cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat >> confdefs.h <<\EOF #define HAVE_X86_PAUSE_INSTRUCTION 1 EOF echo "$ac_t""yes" 1>&6 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""no" 1>&6 fi rm -f conftest* #--------------------------------------------------------------------------------------------------------------- # Check for overrides of compile-time checks for SMPs # Check whether --enable-smp-safe or --disable-smp-safe was given. if test "${enable_smp_safe+set}" = set; then enableval="$enable_smp_safe" : fi # Check whether --enable-smp-safe or --disable-smp-safe was given. if test "${enable_smp_safe+set}" = set; then enableval="$enable_smp_safe" : fi case "$enable_smp_safe" in no) uni_build=yes ;; yes) uni_build=no ;; *) for ac_hdr in /boot/kernel.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:8876: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:8886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done echo $ac_n "checking whether to force a uni-processor build""... $ac_c" 1>&6 echo "configure:8913: checking whether to force a uni-processor build" >&5 if test "`uname -a | grep -i SMP`" != ""; then uni_build=no; else cat > conftest.$ac_ext < #if defined(CONFIG_SMP) #error Make the AC_TRY_COMPILE fail (SMP) #endif #ifdef HAVE__BOOT_KERNEL_H #include #if defined(__BOOT_KERNEL_SMP) && (__BOOT_KERNEL_SMP == 1) #error Make the AC_TRY_COMPILE fail (SMP) #endif #endif #elif defined(__FreeBSD__) #if defined(SMP) #error Make the AC_TRY_COMPILE fail (SMP) #endif #else #error Make the AC_TRY_COMPILE fail (SMP) #endif int main() { ; return 0; } EOF if { (eval echo configure:8945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* uni_build=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* uni_build=no fi rm -f conftest* fi echo "$ac_t""$uni_build" 1>&6 ;; esac if test "$uni_build" = yes; then cat >> confdefs.h <<\EOF #define GASNETI_UNI_BUILD 1 EOF fi # Check whether --enable-loopback-memsync or --disable-loopback-memsync was given. if test "${enable_loopback_memsync+set}" = set; then enableval="$enable_loopback_memsync" : fi case "$enable_loopback_memsync" in '' | no) : ;; *) cat >> confdefs.h <<\EOF #define GASNETI_MEMSYNC_ON_LOOPBACK 1 EOF ;; esac # Check whether --enable-throttle-poll or --disable-throttle-poll was given. if test "${enable_throttle_poll+set}" = set; then enableval="$enable_throttle_poll" : fi case "$enable_throttle_poll" in '' | no) : ;; *) cat >> confdefs.h <<\EOF #define GASNETI_THROTTLE_FEATURE_ENABLED 1 EOF ;; esac #--------------------------------------------------------------------------------------------------------------- # CONDUIT CONFIGURATIONS #--------------------------------------------------------------------------------------------------------------- CONDUITS= # reporting file output at completion CONDUIT_LIST=.gasnet-conduit-list.tmp echo > $CONDUIT_LIST echo " Portable conduits:" >> $CONDUIT_LIST echo " -----------------" >> $CONDUIT_LIST #--------------------------------------------------------------------------------------------------------------- # UDP/AMUDP Configuration # Hack-around to prevent a bogus autoconf 2.58 bug when AC_PROG_CXX is called conditionally below am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= # Check whether --enable-udp or --disable-udp was given. if test "${enable_udp+set}" = set; then enableval="$enable_udp" : fi # Check whether --enable-udp or --disable-udp was given. if test "${enable_udp+set}" = set; then enableval="$enable_udp" : fi case "$enable_udp" in no) enabled_udp=no ;; yes) enabled_udp=yes;force_udp=yes ;; *) enabled_udp=yes ;; esac if test $enabled_udp = yes; then # Do C++ configuration for ac_prog in $CCC c++ g++ gcc 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 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:9052: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done test -n "$CXX" || CXX="gcc" echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 echo "configure:9084: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext << EOF #line 9095 "configure" #include "confdefs.h" int main(){return(0);} EOF if { (eval echo configure:9100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cxx_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then ac_cv_prog_cxx_cross=no else ac_cv_prog_cxx_cross=yes fi else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_cxx_works=no fi rm -fr conftest* ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 if test $ac_cv_prog_cxx_works = no; then { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 echo "configure:9126: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 echo "configure:9131: checking whether we are using GNU C++" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.C <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gxx=yes else ac_cv_prog_gxx=no fi fi echo "$ac_t""$ac_cv_prog_gxx" 1>&6 if test $ac_cv_prog_gxx = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS="${CXXFLAGS+set}" ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS= echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 echo "configure:9159: checking whether ${CXX-g++} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else echo 'void f(){}' > conftest.cc if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then ac_cv_prog_cxx_g=yes else ac_cv_prog_cxx_g=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_prog_cxx_g" 1>&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 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 echo "configure:9191: checking how to run the C++ preprocessor" >&5 if test -z "$CXXCPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross CXXCPP="${CXX-g++} -E" cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:9209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CXXCPP=/lib/cpp fi rm -f conftest* ac_cv_prog_CXXCPP="$CXXCPP" ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross fi fi CXXCPP="$ac_cv_prog_CXXCPP" echo "$ac_t""$CXXCPP" 1>&6 # ---------------------------------------------- # [GASNET_GETFULLPATH](CXXCPP) if test "$gasnet_cv__gfp_disable" = ""; then gasnet_gfp_progname=`echo "$CXXCPP" | $AWK -F' ' '{ print $1 }'` gasnet_gfp_progargs=`echo "$CXXCPP" | $AWK -F' ' 'BEGIN { ORS=" "; } { for (i=2;i<=NF;i++) print $i; }'` gasnet_gfp_progname0=`echo "$gasnet_gfp_progname" | $AWK '{ print substr($0,1,1) }'` if test "$gasnet_gfp_progname0" != "/" ; then # clear cached values, in case this is a pushed var unset gasnet_cv__gfp_fullprogname_CXXCPP unset ac_cv_path_gasnet_cv__gfp_fullprogname_CXXCPP # [AC_PATH_PROG](cv_prefix[]_gfp_fullprogname_CXXCPP, $gasnet_gfp_progname,[]) # Extract the first word of "$gasnet_gfp_progname", so it can be a program name with args. set dummy $gasnet_gfp_progname; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:9254: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_gasnet_cv__gfp_fullprogname_CXXCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$gasnet_cv__gfp_fullprogname_CXXCPP" in /*) ac_cv_path_gasnet_cv__gfp_fullprogname_CXXCPP="$gasnet_cv__gfp_fullprogname_CXXCPP" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_gasnet_cv__gfp_fullprogname_CXXCPP="$gasnet_cv__gfp_fullprogname_CXXCPP" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_gasnet_cv__gfp_fullprogname_CXXCPP="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi gasnet_cv__gfp_fullprogname_CXXCPP="$ac_cv_path_gasnet_cv__gfp_fullprogname_CXXCPP" if test -n "$gasnet_cv__gfp_fullprogname_CXXCPP"; then echo "$ac_t""$gasnet_cv__gfp_fullprogname_CXXCPP" 1>&6 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for full path expansion of CXXCPP""... $ac_c" 1>&6 echo "configure:9287: checking for full path expansion of CXXCPP" >&5 if test "$gasnet_cv__gfp_fullprogname_CXXCPP" != "" ; then CXXCPP="$gasnet_cv__gfp_fullprogname_CXXCPP $gasnet_gfp_progargs" fi echo "$ac_t""$CXXCPP" 1>&6 fi fi # ---------------------------------------------- echo $ac_n "checking for working C++ preprocessor""... $ac_c" 1>&6 echo "configure:9299: checking for working C++ preprocessor" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross gasnet_progcxxcpp_extrainfo= if test -n "`$CXXCPP -version 2>&1 < /dev/null | grep MIPSpro`" ; then gasnet_progcxxcpp_extrainfo=" (added -diag_error 1035 to deal with broken MIPSPro preprocessor)" CXXFLAGS="$CXXFLAGS -diag_error 1035" CXXCPPFLAGS="$CXXCPPFLAGS -diag_error 1035" fi cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* { echo "configure: error: Your C++ preprocessor is broken - reported success when it should have failed" 1>&2; exit 1; } else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo echo "configure error: Your C++ preprocessor is broken - reported failure when it should have succeeded" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -f conftest* echo "$ac_t""yes$gasnet_progcxxcpp_extrainfo" 1>&6 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross # ---------------------------------------------- # [GASNET_GETFULLPATH](CXX) if test "$gasnet_cv__gfp_disable" = ""; then gasnet_gfp_progname=`echo "$CXX" | $AWK -F' ' '{ print $1 }'` gasnet_gfp_progargs=`echo "$CXX" | $AWK -F' ' 'BEGIN { ORS=" "; } { for (i=2;i<=NF;i++) print $i; }'` gasnet_gfp_progname0=`echo "$gasnet_gfp_progname" | $AWK '{ print substr($0,1,1) }'` if test "$gasnet_gfp_progname0" != "/" ; then # clear cached values, in case this is a pushed var unset gasnet_cv__gfp_fullprogname_CXX unset ac_cv_path_gasnet_cv__gfp_fullprogname_CXX # [AC_PATH_PROG](cv_prefix[]_gfp_fullprogname_CXX, $gasnet_gfp_progname,[]) # Extract the first word of "$gasnet_gfp_progname", so it can be a program name with args. set dummy $gasnet_gfp_progname; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:9409: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_gasnet_cv__gfp_fullprogname_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$gasnet_cv__gfp_fullprogname_CXX" in /*) ac_cv_path_gasnet_cv__gfp_fullprogname_CXX="$gasnet_cv__gfp_fullprogname_CXX" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_gasnet_cv__gfp_fullprogname_CXX="$gasnet_cv__gfp_fullprogname_CXX" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_gasnet_cv__gfp_fullprogname_CXX="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi gasnet_cv__gfp_fullprogname_CXX="$ac_cv_path_gasnet_cv__gfp_fullprogname_CXX" if test -n "$gasnet_cv__gfp_fullprogname_CXX"; then echo "$ac_t""$gasnet_cv__gfp_fullprogname_CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for full path expansion of CXX""... $ac_c" 1>&6 echo "configure:9442: checking for full path expansion of CXX" >&5 if test "$gasnet_cv__gfp_fullprogname_CXX" != "" ; then CXX="$gasnet_cv__gfp_fullprogname_CXX $gasnet_gfp_progargs" fi echo "$ac_t""$CXX" 1>&6 fi fi # ---------------------------------------------- echo $ac_n "checking for working C++ compiler""... $ac_c" 1>&6 echo "configure:9454: checking for working C++ compiler" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* { echo "configure: error: Your C++ compiler is broken - reported success when it should have failed" 1>&2; exit 1; } else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo echo "configure error: Your C++ compiler is broken - reported failure when it should have succeeded" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* { echo "configure: error: Your C++ linker is broken - reported success when it should have failed" 1>&2; exit 1; } else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo echo "configure error: Your C++ link is broken - reported failure when it should have succeeded" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -f conftest* echo "$ac_t""yes" 1>&6 echo $ac_n "checking if user enabled cross-compile""... $ac_c" 1>&6 echo "configure:9593: checking if user enabled cross-compile" >&5 # Check whether --enable-cross-compile or --disable-cross-compile was given. if test "${enable_cross_compile+set}" = set; then enableval="$enable_cross_compile" : fi case "$enable_cross_compile" in '' | no) : echo "$ac_t""no" 1>&6 cross_compiling=no ac_cv_prog_cxx_cross=no echo $ac_n "checking working C++ compiler executables""... $ac_c" 1>&6 echo "configure:9609: checking working C++ compiler executables" >&5 if test "$cross_compiling" = yes; then { echo "configure: error: Internal configure error - please report" 1>&2; exit 1; } else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then echo "$ac_t""yes" 1>&6 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* echo "$ac_t""no" 1>&6 echo echo "configure error: Cannot run executables created with C++ compiler. If you're attempting to cross-compile" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -fr conftest* fi ;; *) echo "$ac_t""yes" 1>&6 cross_compiling=yes ac_cv_prog_cxx_cross=yes ;; esac ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross have_cxx=1 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking for C++ compiler family""... $ac_c" 1>&6 echo "configure:9692: checking for C++ compiler family" >&5 if eval "test \"`echo '$''{'gasnet_cv_cxx_family'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else gasnet_cv_cxx_family=unknown if test "$gasnet_cv_cxx_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cxx_family=XLC else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$gasnet_cv_cxx_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cxx_family=Cray else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$gasnet_cv_cxx_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cxx_family=GNU else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cxx_family=Pathscale else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cxx_family=PGI else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cxx_family=Intel else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$gasnet_cv_cxx_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cxx_family=Compaq else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # Compaq C cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cxx_family=Compaq else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # Compaq C++ fi if test "$gasnet_cv_cxx_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cxx_family=Sun else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # Sun C cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cxx_family=Sun else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # Sun C++ fi if test "$gasnet_cv_cxx_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cxx_family=HP else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # HP C cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cxx_family=HP else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* # HP aCC (C++) fi if test "$gasnet_cv_cxx_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cxx_family=MTA else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$gasnet_cv_cxx_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cxx_family=KAI else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi if test "$gasnet_cv_cxx_family" = "unknown"; then cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cxx_family=MIPS else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* gasnet_cv_cxx_family=NEC else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* fi fi echo "$ac_t""$gasnet_cv_cxx_family" 1>&6 if test "$gasnet_cv_cxx_family" != "GNU" ; then case CXX in CC) ac_cv_c_compiler_gnu=no GCC="" ;; CXX) ac_cv_cxx_compiler_gnu=no GXX="" ;; esac fi CXX_FAMILY=$gasnet_cv_cxx_family CXX_UNWRAPPED=$CXX case $gasnet_cv_cxx_family in GNU) CXX_WRAPPED=$CXX ;; *) CXX_WRAPPED="\$(top_builddir)/cc-wrapper \$(CXX_FAMILY) \$(CXX_UNWRAPPED)" ;; esac cc_wrapper_mk="cc-wrapper.mk" CXXDEBUGFLAGS="-g" CXXOPTFLAGS="-O2" GASNET_UDP_LIBS="" case "$gasnet_cv_cxx_family" in GNU) echo $ac_n "checking for known buggy compilers""... $ac_c" 1>&6 echo "configure:10087: checking for known buggy compilers" >&5 badgccmsg="" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""CXX is gcc 2.96" 1>&6 badgccmsg="Use of gcc/g++ 2.96 for compiling this software is strongly discouraged. \ It is not an official GNU release and has many serious known bugs, especially \ in the optimizer, which may lead to bad code and incorrect runtime behavior. \ Consider using \$CXX to select a different compiler." # Check whether --enable-allow-gcc296 or --disable-allow-gcc296 was given. if test "${enable_allow_gcc296+set}" = set; then enableval="$enable_allow_gcc296" : fi case "$enable_allow_gcc296" in '' | no) : { echo "configure: error: $badgccmsg \ You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc296 flag." 1>&2; exit 1; } ;; *) echo "configure: warning: $badgccmsg" 1>&2 ;; esac fi rm -f conftest* cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* : else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""CXX is gcc 3.2.0-2" 1>&6 badgccmsg="Use of gcc/g++ 3.2.0-2 for compiling this software is strongly discouraged. \ This version has a serious known bug in the optimizer regarding structure copying, \ which may lead to bad code and incorrect runtime behavior when optimization is enabled. \ Consider using \$CXX to select a different compiler." # Check whether --enable-allow-gcc32 or --disable-allow-gcc32 was given. if test "${enable_allow_gcc32+set}" = set; then enableval="$enable_allow_gcc32" : fi case "$enable_allow_gcc32" in '' | no) : { echo "configure: error: $badgccmsg \ You may enable use of this broken compiler at your own risk by passing the --enable-allow-gcc32 flag." 1>&2; exit 1; } ;; *) echo "configure: warning: $badgccmsg" 1>&2 ;; esac fi rm -f conftest* if test -z "$badgccmsg"; then echo "$ac_t""ok" 1>&6 fi # --------------------------------------- # [GASNET_PUSHVAR](CXXFLAGS, "$CXXFLAGS") if test "$_pushcnt_CXXFLAGS" = "" ; then _pushcnt_CXXFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CXXFLAGS="$CXXFLAGS" # --------------------------------------- CXXFLAGS="-g3" # --------------------------------------- # [GASNET_PUSHVAR](CXXFLAGS, "$CXXFLAGS -Wall") if test "$_pushcnt_CXXFLAGS" = "" ; then _pushcnt_CXXFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CXXFLAGS="$CXXFLAGS -Wall" # --------------------------------------- echo $ac_n "checking for C++ compiler flag -Wall""... $ac_c" 1>&6 echo "configure:10223: checking for C++ compiler flag -Wall" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.cc gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CXXFLAGS="$CXXFLAGS -Wall" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_PUSHVAR](CXXFLAGS, "$CXXFLAGS -Wno-unused") if test "$_pushcnt_CXXFLAGS" = "" ; then _pushcnt_CXXFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CXXFLAGS="$CXXFLAGS -Wno-unused" # --------------------------------------- echo $ac_n "checking for C++ compiler flag -Wno-unused""... $ac_c" 1>&6 echo "configure:10330: checking for C++ compiler flag -Wno-unused" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.cc gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CXXFLAGS="$CXXFLAGS -Wno-unused" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_PUSHVAR](CXXFLAGS, "$CXXFLAGS -Wpointer-arith") if test "$_pushcnt_CXXFLAGS" = "" ; then _pushcnt_CXXFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CXXFLAGS="$CXXFLAGS -Wpointer-arith" # --------------------------------------- echo $ac_n "checking for C++ compiler flag -Wpointer-arith""... $ac_c" 1>&6 echo "configure:10437: checking for C++ compiler flag -Wpointer-arith" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.cc gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CXXFLAGS="$CXXFLAGS -Wpointer-arith" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_PUSHVAR](CXXFLAGS, "$CXXFLAGS -Wnested-externs") if test "$_pushcnt_CXXFLAGS" = "" ; then _pushcnt_CXXFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CXXFLAGS="$CXXFLAGS -Wnested-externs" # --------------------------------------- echo $ac_n "checking for C++ compiler flag -Wnested-externs""... $ac_c" 1>&6 echo "configure:10544: checking for C++ compiler flag -Wnested-externs" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.cc gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CXXFLAGS="$CXXFLAGS -Wnested-externs" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_PUSHVAR](CXXFLAGS, "$CXXFLAGS -Wwrite-strings") if test "$_pushcnt_CXXFLAGS" = "" ; then _pushcnt_CXXFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CXXFLAGS="$CXXFLAGS -Wwrite-strings" # --------------------------------------- echo $ac_n "checking for C++ compiler flag -Wwrite-strings""... $ac_c" 1>&6 echo "configure:10651: checking for C++ compiler flag -Wwrite-strings" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.cc gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CXXFLAGS="$CXXFLAGS -Wwrite-strings" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_PUSHVAR](CXXFLAGS, "$CXXFLAGS -Wdeclaration-after-statement") if test "$_pushcnt_CXXFLAGS" = "" ; then _pushcnt_CXXFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CXXFLAGS="$CXXFLAGS -Wdeclaration-after-statement" # --------------------------------------- echo $ac_n "checking for C++ compiler flag -Wdeclaration-after-statement""... $ac_c" 1>&6 echo "configure:10758: checking for C++ compiler flag -Wdeclaration-after-statement" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.cc gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CXXFLAGS="$CXXFLAGS -Wdeclaration-after-statement" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_PUSHVAR](CXXFLAGS, "$CXXFLAGS -Wmissing-format-attribute") if test "$_pushcnt_CXXFLAGS" = "" ; then _pushcnt_CXXFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute" # --------------------------------------- echo $ac_n "checking for C++ compiler flag -Wmissing-format-attribute""... $ac_c" 1>&6 echo "configure:10865: checking for C++ compiler flag -Wmissing-format-attribute" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.cc gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* if test "$use_pthreads" != "no" ; then # some crappy pthread mutex implementations generate warnings without -Wno-missing-braces echo $ac_n "checking for buggy pthread.h mutex initializers""... $ac_c" 1>&6 echo "configure:10958: checking for buggy pthread.h mutex initializers" >&5 oldCXXFLAGS="$CXXFLAGS" # OSF and FREEBSD require the -pthread compiler flag when including pthread.h case "$target_os" in osf*) CXXFLAGS="-pthread $CXXFLAGS" ;; freebsd*) CXXFLAGS="-pthread $CXXFLAGS" ;; esac gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.cc gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile < int main() { pthread_mutex_t fastmutex = PTHREAD_MUTEX_INITIALIZER; ; return 0; } EOF echo \"$gasnet_compile_cmd\" >&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""ok" 1>&6 else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""buggy" 1>&6 # --------------------------------------- # [GASNET_PUSHVAR](CXXFLAGS, "$CXXFLAGS -Wno-missing-braces") if test "$_pushcnt_CXXFLAGS" = "" ; then _pushcnt_CXXFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CXXFLAGS="$CXXFLAGS -Wno-missing-braces" # --------------------------------------- echo $ac_n "checking for C++ compiler flag -Wno-missing-braces""... $ac_c" 1>&6 echo "configure:11013: checking for C++ compiler flag -Wno-missing-braces" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.cc gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- oldCXXFLAGS="$oldCXXFLAGS -Wno-missing-braces" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 #bug611: ignore failures here, which may be due to broken/missing pthreads support #AC_MSG_ERROR(failure while checking for buggy pthread.h mutexes) echo "$ac_t""failure - ignored" 1>&6 fi rm -f ${gasnet_testname}.* CXXFLAGS="$oldCXXFLAGS" fi case "$target_os" in solaris*) # hide pragma warnings in system header files included by absolute path # --------------------------------------- # [GASNET_PUSHVAR](CXXFLAGS, "$CXXFLAGS -Wno-unknown-pragmas") if test "$_pushcnt_CXXFLAGS" = "" ; then _pushcnt_CXXFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas" # --------------------------------------- echo $ac_n "checking for C++ compiler flag -Wno-unknown-pragmas""... $ac_c" 1>&6 echo "configure:11141: checking for C++ compiler flag -Wno-unknown-pragmas" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.cc gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* esac #GASNET_TRY_CXXFLAG([-ansi -U__STRICT_ANSI__],[[CXX]FLAGS="$[CXX]FLAGS -ansi -U__STRICT_ANSI__"]) MISC_CXXFLAGS="$CXXFLAGS" case "$target_cpu" in sparc) # Get sparc v9 ISA # --------------------------------------- # [GASNET_PUSHVAR](CXXFLAGS, "$CXXFLAGS -mcpu=ultrasparc -mtune=ultrasparc") if test "$_pushcnt_CXXFLAGS" = "" ; then _pushcnt_CXXFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CXXFLAGS="$CXXFLAGS -mcpu=ultrasparc -mtune=ultrasparc" # --------------------------------------- echo $ac_n "checking for C++ compiler flag -mcpu=ultrasparc -mtune=ultrasparc""... $ac_c" 1>&6 echo "configure:11254: checking for C++ compiler flag -mcpu=ultrasparc -mtune=ultrasparc" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.cc gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- MISC_CXXFLAGS="$MISC_CXXFLAGS -mcpu=ultrasparc -mtune=ultrasparc" cat >> confdefs.h <<\EOF #define GASNETI_ARCH_SPARCV9 1 EOF else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* ;; *) ;; esac # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- ;; PGI) MISC_CXXFLAGS="-w -Masmkeyword" ;; # apparently has no way to indep control warnings KAI) MISC_CXXFLAGS="--diag_suppress 611 --diag_suppress 610" ;; MIPS) MISC_CXXFLAGS="-diag_error 1035 -diag_suppress 1171,1174,1209,1552,1681,1682 -LANG:std -common" ;; HP) MISC_CXXFLAGS="+W612 +W749 +W2111 +W2174 +W2177 +W2236 +W2550" ;; Compaq) MISC_CXXFLAGS="-msg_disable extrasemi,boolexprconst,codeunreachable" ;; MTA) MISC_CXXFLAGS="-exceptions -display_error_number -WS 111,174,238" CXXDEBUGFLAGS="-g2" CXXOPTFLAGS="-O3" ;; Intel) MISC_CXXFLAGS="-wd654 -wd1125 -wd279" # --------------------------------------- # [GASNET_PUSHVAR](CXXFLAGS, "$CXXFLAGS -wd1572") if test "$_pushcnt_CXXFLAGS" = "" ; then _pushcnt_CXXFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CXXFLAGS="$CXXFLAGS -wd1572" # --------------------------------------- echo $ac_n "checking for C++ compiler flag -wd1572""... $ac_c" 1>&6 echo "configure:11390: checking for C++ compiler flag -wd1572" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.cc gasnet_compile_cmd="${CXX-c++} -c $CXXFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- MISC_CXXFLAGS="$MISC_CXXFLAGS -wd1572" else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi rm -f ${gasnet_testname}.* ;; XLC) MISC_CXXFLAGS="-qsuppress=1540-0809" # 1540-0809 = empty source file (some linux headers) case "$target_os" in aix*) MISC_CXXFLAGS="$MISC_CXXFLAGS -qeh -qweaksymbol" ;; *) MISC_CXXFLAGS="$MISC_CXXFLAGS -qeh" ;; esac ;; NEC) MISC_CXXFLAGS="-woff=68:111:174:177:236:301:550:940 -Kexceptions" CXXDEBUGFLAGS="-g -Cnoopt -Cdebug" GASNET_UDP_LIBS="-Kexceptions" ;; Cray) case "$target_cpu" in # Cray CC v3.3.0.2 fails to accept "-htaskprivate", but accepts "-htask private" alphaev5) MISC_CXXFLAGS="-hnomessage=236:611:997 -hexceptions -hnew_for_init -htask private $LIBCM" ;; # T3E *) MISC_CXXFLAGS="-hnomessage=236:611:997 -hexceptions -hnew_for_init $LIBCM" ;; # X1 esac ;; esac if test "$BUILDCONFIG" = "optimize" ; then CXXFLAGS="$CXXOPTFLAGS" else CXXFLAGS="$CXXDEBUGFLAGS" fi if test "$enable_debug" = "yes" ; then echo $ac_n "checking CXX for debug vs. optimize compilation conflict""... $ac_c" 1>&6 echo "configure:11506: checking CXX for debug vs. optimize compilation conflict" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross # --------------------------------------- # [GASNET_PUSHVAR](CC, "$CXX") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$CXX" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CXXFLAGS $CXXCPPFLAGS $MISC_CXXFLAGS $BUILDCONFIG_DEFINES") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CXXFLAGS $CXXCPPFLAGS $MISC_CXXFLAGS $BUILDCONFIG_DEFINES" # --------------------------------------- cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""no" 1>&6 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""yes" 1>&6 echo echo "configure error: User requested --enable-debug but CXX or CXXFLAGS has enabled optimization (-O) or disabled assertions (-DNDEBUG). Try setting CXX='$CXX -O0 -UNDEBUG' or changing CXXFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -f conftest* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross fi # --------------------------------------- # [GASNET_PUSHVAR](CXXFLAGS, "$CXXFLAGS $CXXCPPFLAGS $MISC_CXXFLAGS $BUILDCONFIG_DEFINES") if test "$_pushcnt_CXXFLAGS" = "" ; then _pushcnt_CXXFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS=\$CXXFLAGS _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CXXFLAGS="$CXXFLAGS $CXXCPPFLAGS $MISC_CXXFLAGS $BUILDCONFIG_DEFINES" # --------------------------------------- if test "$cross_compiling" = "yes" ; then echo $ac_n "checking for working C++ exceptions""... $ac_c" 1>&6 echo "configure:11653: checking for working C++ exceptions" >&5 if eval "test \"`echo '$''{'gasnet_cv_cxx_exceptions'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* gasnet_cv_cxx_exceptions=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_cxx_exceptions=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_cxx_exceptions" 1>&6 if test "$gasnet_cv_cxx_exceptions" = yes; then : else : echo echo "configure error: "I can\'t figure out how to build and run a program that uses C++ exceptions" " if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi else echo $ac_n "checking for working C++ exceptions""... $ac_c" 1>&6 echo "configure:11727: checking for working C++ exceptions" >&5 if eval "test \"`echo '$''{'gasnet_cv_cxx_exceptions'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then gasnet_cv_cxx_exceptions=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* gasnet_cv_cxx_exceptions=no fi rm -fr conftest* fi fi echo "$ac_t""$gasnet_cv_cxx_exceptions" 1>&6 if test "$gasnet_cv_cxx_exceptions" = yes; then : else : echo echo "configure error: "I can\'t figure out how to build and run a program that uses C++ exceptions" " if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi fi # --------------------------------------- # [GASNET_POPVAR](CXXFLAGS) if test "$_pushcnt_CXXFLAGS" -ge "1"; then _pushcnt_CXXFLAGS=`expr $_pushcnt_CXXFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CXXFLAGS=\$_pushedvar_CXXFLAGS_$_pushcnt_CXXFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CXXFLAGS" 1>&2; exit 1; } fi # --------------------------------------- ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross supported_amudp=yes if test "$force_udp$supported_udp" = yesno ; then { echo "configure: error: User requested --enable-udp but AMUDP is not supported on your system" 1>&2; exit 1; } fi if test $supported_amudp = yes; then # detect libraries necessary for udp-* backends # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="" # --------------------------------------- echo $ac_n "checking for library containing socket""... $ac_c" 1>&6 echo "configure:11856: checking for library containing socket" >&5 if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_socket="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_socket="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_socket" = "no" && for i in socket; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_socket="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_socket" 1>&6 if test "$ac_cv_search_socket" != "no"; then test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS" have_udp=yes else : have_udp=no fi echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6 echo "configure:11918: checking for library containing gethostbyname" >&5 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_gethostbyname="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_gethostbyname="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_gethostbyname="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6 if test "$ac_cv_search_gethostbyname" != "no"; then test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" else : have_udp=no fi GASNET_UDP_LIBS="$GASNET_UDP_LIBS $LIBS" if test "$have_udp" = yes ; then echo $ac_n "checking for working UDP configuration""... $ac_c" 1>&6 echo "configure:11982: checking for working UDP configuration" >&5 # TODO: add a basic test of the UDP configuration to make sure it works # this is a mess because every OS has different headers required udp_test_worked=yes if test "$udp_test_worked" = yes ; then echo "$ac_t""yes" 1>&6 else echo "$ac_t""no" 1>&6 echo "configure: warning: build test failed: I don't know how to build UDP programs on your system" 1>&2 have_udp=no fi fi if test "$force_udp$have_udp" = yesno ; then echo echo "configure error: User requested --enable-udp but I don't know how to build UDP programs for your system" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- fi fi if test "$have_cxx" = 1; then HAVE_CXX_TRUE= HAVE_CXX_FALSE='#' else HAVE_CXX_TRUE='#' HAVE_CXX_FALSE= fi if test "$enabled_udp$have_udp" = yesyes; then USE_UDP_CONDUIT_TRUE= USE_UDP_CONDUIT_FALSE='#' else USE_UDP_CONDUIT_TRUE='#' USE_UDP_CONDUIT_FALSE= fi if test "$enabled_udp$have_udp" = yesyes ; then CONDUITS="$CONDUITS udp" echo " portable UDP network conduit (udp) ON" >> $CONDUIT_LIST else echo " portable UDP network conduit (udp) OFF" >> $CONDUIT_LIST fi # --------------------------------------- # [GASNET_ENV_DEFAULT](GASNET_CSPAWN_CMD, "$TI_CSPAWN_CMD") echo $ac_n "checking for GASNET_CSPAWN_CMD in environment""... $ac_c" 1>&6 echo "configure:12077: checking for GASNET_CSPAWN_CMD in environment" >&5 # Check whether --with-gasnet-cspawn-cmd or --without-gasnet-cspawn-cmd was given. if test "${with_gasnet_cspawn_cmd+set}" = set; then withval="$with_gasnet_cspawn_cmd" : fi envval_src_GASNET_CSPAWN_CMD="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_GASNET_CSPAWN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${GASNET_CSPAWN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_gasnet_cspawn_cmd" != ""; then gasnet_cv_envvar_GASNET_CSPAWN_CMD="$with_gasnet_cspawn_cmd" envval_src_GASNET_CSPAWN_CMD=given else gasnet_cv_envvar_GASNET_CSPAWN_CMD=""$TI_CSPAWN_CMD"" envval_src_GASNET_CSPAWN_CMD=default fi ;; *) gasnet_cv_envvar_GASNET_CSPAWN_CMD="$GASNET_CSPAWN_CMD" envval_src_GASNET_CSPAWN_CMD=given esac fi GASNET_CSPAWN_CMD="$gasnet_cv_envvar_GASNET_CSPAWN_CMD" case "$envval_src_GASNET_CSPAWN_CMD" in 'cached') echo "$ac_t""using cached value \"$GASNET_CSPAWN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$GASNET_CSPAWN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$GASNET_CSPAWN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$GASNET_CSPAWN_CMD" != "" ; then cat >> confdefs.h <&6 echo "configure:12175: checking for MPI_CC in environment" >&5 # Check whether --with-mpi-cc or --without-mpi-cc was given. if test "${with_mpi_cc+set}" = set; then withval="$with_mpi_cc" : fi envval_src_MPI_CC="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CC-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cc" != ""; then gasnet_cv_envvar_MPI_CC="$with_mpi_cc" envval_src_MPI_CC=given else gasnet_cv_envvar_MPI_CC="mpicc" envval_src_MPI_CC=default fi ;; *) gasnet_cv_envvar_MPI_CC="$MPI_CC" envval_src_MPI_CC=given esac fi MPI_CC="$gasnet_cv_envvar_MPI_CC" case "$envval_src_MPI_CC" in 'cached') echo "$ac_t""using cached value \"$MPI_CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$MPI_CFLAGS" != "" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, ) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:12233: checking for MPI_CFLAGS in environment" >&5 # Check whether --with-mpi-cflags or --without-mpi-cflags was given. if test "${with_mpi_cflags+set}" = set; then withval="$with_mpi_cflags" : fi envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else gasnet_cv_envvar_MPI_CFLAGS="" envval_src_MPI_CFLAGS=default fi ;; *) gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # user-provided flags else # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, $MISC_CFLAGS $CFLAGS) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:12290: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else gasnet_cv_envvar_MPI_CFLAGS="$MISC_CFLAGS $CFLAGS" envval_src_MPI_CFLAGS=default fi ;; *) gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # try DEFAULT_CFLAGS # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MPI_CFLAGS" # --------------------------------------- echo $ac_n "checking for C compiler flag $MPI_CFLAGS""... $ac_c" 1>&6 echo "configure:12379: checking for C compiler flag $MPI_CFLAGS" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, ) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:12508: checking for MPI_LIBS in environment" >&5 # Check whether --with-mpi-libs or --without-mpi-libs was given. if test "${with_mpi_libs+set}" = set; then withval="$with_mpi_libs" : fi envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else gasnet_cv_envvar_MPI_LIBS="" envval_src_MPI_LIBS=default fi ;; *) gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, mpirun -np %N %C) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:12564: checking for MPIRUN_CMD in environment" >&5 # Check whether --with-mpirun-cmd or --without-mpirun-cmd was given. if test "${with_mpirun_cmd+set}" = set; then withval="$with_mpirun_cmd" : fi envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else gasnet_cv_envvar_MPIRUN_CMD="mpirun -np %N %C" envval_src_MPIRUN_CMD=default fi ;; *) gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; linux*) # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CC, mpicc) echo $ac_n "checking for MPI_CC in environment""... $ac_c" 1>&6 echo "configure:12622: checking for MPI_CC in environment" >&5 envval_src_MPI_CC="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CC-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cc" != ""; then gasnet_cv_envvar_MPI_CC="$with_mpi_cc" envval_src_MPI_CC=given else gasnet_cv_envvar_MPI_CC="mpicc" envval_src_MPI_CC=default fi ;; *) gasnet_cv_envvar_MPI_CC="$MPI_CC" envval_src_MPI_CC=given esac fi MPI_CC="$gasnet_cv_envvar_MPI_CC" case "$envval_src_MPI_CC" in 'cached') echo "$ac_t""using cached value \"$MPI_CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$MPI_CFLAGS" != "" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, ) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:12673: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else gasnet_cv_envvar_MPI_CFLAGS="" envval_src_MPI_CFLAGS=default fi ;; *) gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # user-provided flags else # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, $MISC_CFLAGS $CFLAGS) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:12723: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else gasnet_cv_envvar_MPI_CFLAGS="$MISC_CFLAGS $CFLAGS" envval_src_MPI_CFLAGS=default fi ;; *) gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # try DEFAULT_CFLAGS # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MPI_CFLAGS" # --------------------------------------- echo $ac_n "checking for C compiler flag $MPI_CFLAGS""... $ac_c" 1>&6 echo "configure:12812: checking for C compiler flag $MPI_CFLAGS" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, ) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:12941: checking for MPI_LIBS in environment" >&5 envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else gasnet_cv_envvar_MPI_LIBS="" envval_src_MPI_LIBS=default fi ;; *) gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, mpirun -np %N %C) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:12990: checking for MPIRUN_CMD in environment" >&5 envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else gasnet_cv_envvar_MPIRUN_CMD="mpirun -np %N %C" envval_src_MPIRUN_CMD=default fi ;; *) gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; irix*) # use SGI native MPI library # user may need to do a "module load mpt" to make this work # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CC, cc -n32) echo $ac_n "checking for MPI_CC in environment""... $ac_c" 1>&6 echo "configure:13043: checking for MPI_CC in environment" >&5 envval_src_MPI_CC="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CC-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cc" != ""; then gasnet_cv_envvar_MPI_CC="$with_mpi_cc" envval_src_MPI_CC=given else gasnet_cv_envvar_MPI_CC="cc -n32" envval_src_MPI_CC=default fi ;; *) gasnet_cv_envvar_MPI_CC="$MPI_CC" envval_src_MPI_CC=given esac fi MPI_CC="$gasnet_cv_envvar_MPI_CC" case "$envval_src_MPI_CC" in 'cached') echo "$ac_t""using cached value \"$MPI_CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # cannot use MISC_CFLAGS here because C compiler may not be MIPSPro # -common gets us correct linking behavior for tentative definitions BASIC_MPI_CFLAGS="-diag_error 1035 -diag_suppress1171,1174,1209,1552 -common" if test "$BUILDCONFIG" = "optimize" ; then BASIC_MPI_CFLAGS="-O2 $BASIC_MPI_CFLAGS" else BASIC_MPI_CFLAGS="-g $BASIC_MPI_CFLAGS" fi if test "$MPI_CFLAGS" != "" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, ) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:13102: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else gasnet_cv_envvar_MPI_CFLAGS="" envval_src_MPI_CFLAGS=default fi ;; *) gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # user-provided flags else # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, $BASIC_MPI_CFLAGS) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:13152: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else gasnet_cv_envvar_MPI_CFLAGS="$BASIC_MPI_CFLAGS" envval_src_MPI_CFLAGS=default fi ;; *) gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # try DEFAULT_CFLAGS # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MPI_CFLAGS" # --------------------------------------- echo $ac_n "checking for C compiler flag $MPI_CFLAGS""... $ac_c" 1>&6 echo "configure:13241: checking for C compiler flag $MPI_CFLAGS" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, -lmpi) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:13370: checking for MPI_LIBS in environment" >&5 envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else gasnet_cv_envvar_MPI_LIBS="-lmpi" envval_src_MPI_LIBS=default fi ;; *) gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, mpirun -np %N %C) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:13419: checking for MPIRUN_CMD in environment" >&5 envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else gasnet_cv_envvar_MPIRUN_CMD="mpirun -np %N %C" envval_src_MPIRUN_CMD=default fi ;; *) gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; aix*) # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CC, mpcc) echo $ac_n "checking for MPI_CC in environment""... $ac_c" 1>&6 echo "configure:13470: checking for MPI_CC in environment" >&5 envval_src_MPI_CC="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CC-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cc" != ""; then gasnet_cv_envvar_MPI_CC="$with_mpi_cc" envval_src_MPI_CC=given else gasnet_cv_envvar_MPI_CC="mpcc" envval_src_MPI_CC=default fi ;; *) gasnet_cv_envvar_MPI_CC="$MPI_CC" envval_src_MPI_CC=given esac fi MPI_CC="$gasnet_cv_envvar_MPI_CC" case "$envval_src_MPI_CC" in 'cached') echo "$ac_t""using cached value \"$MPI_CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- BASIC_MPI_CFLAGS="" if test "$BUILDCONFIG" = "optimize" ; then BASIC_MPI_CFLAGS="-O3 -qstrict -qarch=auto -qtune=auto -qsmp=noauto -qmaxmem=-1 $BASIC_MPI_CFLAGS" else BASIC_MPI_CFLAGS="-g $BASIC_MPI_CFLAGS" fi if test "$MPI_CFLAGS" != "" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, ) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:13527: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else gasnet_cv_envvar_MPI_CFLAGS="" envval_src_MPI_CFLAGS=default fi ;; *) gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # user-provided flags else # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, $BASIC_MPI_CFLAGS) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:13577: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else gasnet_cv_envvar_MPI_CFLAGS="$BASIC_MPI_CFLAGS" envval_src_MPI_CFLAGS=default fi ;; *) gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # try DEFAULT_CFLAGS # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MPI_CFLAGS" # --------------------------------------- echo $ac_n "checking for C compiler flag $MPI_CFLAGS""... $ac_c" 1>&6 echo "configure:13666: checking for C compiler flag $MPI_CFLAGS" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, -Wl,-bbigtoc) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:13795: checking for MPI_LIBS in environment" >&5 envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else gasnet_cv_envvar_MPI_LIBS="-Wl,-bbigtoc" envval_src_MPI_LIBS=default fi ;; *) gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, poe %C -nodes %N -tasks_per_node 1 -rmpool 1 -euilib us -retry 1 -retrycount 10000 -msg_api mpi) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:13844: checking for MPIRUN_CMD in environment" >&5 envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else gasnet_cv_envvar_MPIRUN_CMD="poe %C -nodes %N -tasks_per_node 1 -rmpool 1 -euilib us -retry 1 -retrycount 10000 -msg_api mpi" envval_src_MPIRUN_CMD=default fi ;; *) gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; osf*) # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CC, cc) echo $ac_n "checking for MPI_CC in environment""... $ac_c" 1>&6 echo "configure:13895: checking for MPI_CC in environment" >&5 envval_src_MPI_CC="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CC-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cc" != ""; then gasnet_cv_envvar_MPI_CC="$with_mpi_cc" envval_src_MPI_CC=given else gasnet_cv_envvar_MPI_CC="cc" envval_src_MPI_CC=default fi ;; *) gasnet_cv_envvar_MPI_CC="$MPI_CC" envval_src_MPI_CC=given esac fi MPI_CC="$gasnet_cv_envvar_MPI_CC" case "$envval_src_MPI_CC" in 'cached') echo "$ac_t""using cached value \"$MPI_CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- BASIC_MPI_CFLAGS="-msg_disable extrasemi" if test "$BUILDCONFIG" = "optimize" ; then BASIC_MPI_CFLAGS="-fast -noifo -O4 -tune host -inline speed $BASIC_MPI_CFLAGS" else BASIC_MPI_CFLAGS="-g $BASIC_MPI_CFLAGS" fi if test "$MPI_CFLAGS" != "" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, ) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:13952: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else gasnet_cv_envvar_MPI_CFLAGS="" envval_src_MPI_CFLAGS=default fi ;; *) gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # user-provided flags else # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, $BASIC_MPI_CFLAGS) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:14002: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else gasnet_cv_envvar_MPI_CFLAGS="$BASIC_MPI_CFLAGS" envval_src_MPI_CFLAGS=default fi ;; *) gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # try DEFAULT_CFLAGS # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MPI_CFLAGS" # --------------------------------------- echo $ac_n "checking for C compiler flag $MPI_CFLAGS""... $ac_c" 1>&6 echo "configure:14091: checking for C compiler flag $MPI_CFLAGS" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, -lmpi -lelan -lrt) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:14220: checking for MPI_LIBS in environment" >&5 envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else gasnet_cv_envvar_MPI_LIBS="-lmpi -lelan -lrt" envval_src_MPI_LIBS=default fi ;; *) gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, prun -N %N %C) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:14269: checking for MPIRUN_CMD in environment" >&5 envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else gasnet_cv_envvar_MPIRUN_CMD="prun -N %N %C" envval_src_MPIRUN_CMD=default fi ;; *) gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; unicos*) # Cray cc - need to enable private global vars and disable a silly warning # user may need to do a "module load mpt" to make this work # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CC, cc) echo $ac_n "checking for MPI_CC in environment""... $ac_c" 1>&6 echo "configure:14322: checking for MPI_CC in environment" >&5 envval_src_MPI_CC="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CC-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cc" != ""; then gasnet_cv_envvar_MPI_CC="$with_mpi_cc" envval_src_MPI_CC=given else gasnet_cv_envvar_MPI_CC="cc" envval_src_MPI_CC=default fi ;; *) gasnet_cv_envvar_MPI_CC="$MPI_CC" envval_src_MPI_CC=given esac fi MPI_CC="$gasnet_cv_envvar_MPI_CC" case "$envval_src_MPI_CC" in 'cached') echo "$ac_t""using cached value \"$MPI_CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- case "$target_cpu" in alphaev5) BASIC_MPI_CFLAGS="-hnomessage=236 -htaskprivate $LIBCM" # T3E # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, mpprun -n %N %C) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:14373: checking for MPIRUN_CMD in environment" >&5 envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else gasnet_cv_envvar_MPIRUN_CMD="mpprun -n %N %C" envval_src_MPIRUN_CMD=default fi ;; *) gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, ) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:14422: checking for MPI_LIBS in environment" >&5 envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else gasnet_cv_envvar_MPI_LIBS="" envval_src_MPI_LIBS=default fi ;; *) gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; *) BASIC_MPI_CFLAGS="-hnomessage=236 $LIBCM" # X1 # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, mpirun -np %N %C) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:14473: checking for MPIRUN_CMD in environment" >&5 envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else gasnet_cv_envvar_MPIRUN_CMD="mpirun -np %N %C" envval_src_MPIRUN_CMD=default fi ;; *) gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, -lpthread) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:14522: checking for MPI_LIBS in environment" >&5 envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else gasnet_cv_envvar_MPI_LIBS="-lpthread" envval_src_MPI_LIBS=default fi ;; *) gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; esac if test "$BUILDCONFIG" = "optimize" ; then BASIC_MPI_CFLAGS="-O2 $BASIC_MPI_CFLAGS" else BASIC_MPI_CFLAGS="-g $BASIC_MPI_CFLAGS" fi if test "$MPI_CFLAGS" != "" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, ) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:14580: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else gasnet_cv_envvar_MPI_CFLAGS="" envval_src_MPI_CFLAGS=default fi ;; *) gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # user-provided flags else # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, $BASIC_MPI_CFLAGS) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:14630: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else gasnet_cv_envvar_MPI_CFLAGS="$BASIC_MPI_CFLAGS" envval_src_MPI_CFLAGS=default fi ;; *) gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # try DEFAULT_CFLAGS # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MPI_CFLAGS" # --------------------------------------- echo $ac_n "checking for C compiler flag $MPI_CFLAGS""... $ac_c" 1>&6 echo "configure:14719: checking for C compiler flag $MPI_CFLAGS" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi ;; mtx*) # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CC, cc) echo $ac_n "checking for MPI_CC in environment""... $ac_c" 1>&6 echo "configure:14850: checking for MPI_CC in environment" >&5 envval_src_MPI_CC="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CC-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cc" != ""; then gasnet_cv_envvar_MPI_CC="$with_mpi_cc" envval_src_MPI_CC=given else gasnet_cv_envvar_MPI_CC="cc" envval_src_MPI_CC=default fi ;; *) gasnet_cv_envvar_MPI_CC="$MPI_CC" envval_src_MPI_CC=given esac fi MPI_CC="$gasnet_cv_envvar_MPI_CC" case "$envval_src_MPI_CC" in 'cached') echo "$ac_t""using cached value \"$MPI_CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$MPI_CFLAGS" != "" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, ) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:14901: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else gasnet_cv_envvar_MPI_CFLAGS="" envval_src_MPI_CFLAGS=default fi ;; *) gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # user-provided flags else # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, $MISC_CFLAGS $CFLAGS) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:14951: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else gasnet_cv_envvar_MPI_CFLAGS="$MISC_CFLAGS $CFLAGS" envval_src_MPI_CFLAGS=default fi ;; *) gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # try DEFAULT_CFLAGS # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MPI_CFLAGS" # --------------------------------------- echo $ac_n "checking for C compiler flag $MPI_CFLAGS""... $ac_c" 1>&6 echo "configure:15040: checking for C compiler flag $MPI_CFLAGS" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, -lmpi) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:15169: checking for MPI_LIBS in environment" >&5 envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else gasnet_cv_envvar_MPI_LIBS="-lmpi" envval_src_MPI_LIBS=default fi ;; *) gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, mtarun -t %N -m %N /usr/bin/env _MPI_MT=%N %C) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:15218: checking for MPIRUN_CMD in environment" >&5 envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else gasnet_cv_envvar_MPIRUN_CMD="mtarun -t %N -m %N /usr/bin/env _MPI_MT=%N %C" envval_src_MPIRUN_CMD=default fi ;; *) gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; superux*) # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CC, mpic++ -Xa) echo $ac_n "checking for MPI_CC in environment""... $ac_c" 1>&6 echo "configure:15269: checking for MPI_CC in environment" >&5 envval_src_MPI_CC="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CC-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cc" != ""; then gasnet_cv_envvar_MPI_CC="$with_mpi_cc" envval_src_MPI_CC=given else gasnet_cv_envvar_MPI_CC="mpic++ -Xa" envval_src_MPI_CC=default fi ;; *) gasnet_cv_envvar_MPI_CC="$MPI_CC" envval_src_MPI_CC=given esac fi MPI_CC="$gasnet_cv_envvar_MPI_CC" case "$envval_src_MPI_CC" in 'cached') echo "$ac_t""using cached value \"$MPI_CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$MPI_CFLAGS" != "" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, ) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:15320: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else gasnet_cv_envvar_MPI_CFLAGS="" envval_src_MPI_CFLAGS=default fi ;; *) gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # user-provided flags else # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, $MISC_CFLAGS $CFLAGS) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:15370: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else gasnet_cv_envvar_MPI_CFLAGS="$MISC_CFLAGS $CFLAGS" envval_src_MPI_CFLAGS=default fi ;; *) gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # try DEFAULT_CFLAGS # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MPI_CFLAGS" # --------------------------------------- echo $ac_n "checking for C compiler flag $MPI_CFLAGS""... $ac_c" 1>&6 echo "configure:15459: checking for C compiler flag $MPI_CFLAGS" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, ) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:15588: checking for MPI_LIBS in environment" >&5 envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else gasnet_cv_envvar_MPI_LIBS="" envval_src_MPI_LIBS=default fi ;; *) gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, mpirun -np %N %C) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:15637: checking for MPIRUN_CMD in environment" >&5 envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else gasnet_cv_envvar_MPIRUN_CMD="mpirun -np %N %C" envval_src_MPIRUN_CMD=default fi ;; *) gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; *) # unknown OS - if user doesn't provide info, nothing we can do # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CC, mpicc) echo $ac_n "checking for MPI_CC in environment""... $ac_c" 1>&6 echo "configure:15689: checking for MPI_CC in environment" >&5 envval_src_MPI_CC="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CC-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cc" != ""; then gasnet_cv_envvar_MPI_CC="$with_mpi_cc" envval_src_MPI_CC=given else gasnet_cv_envvar_MPI_CC="mpicc" envval_src_MPI_CC=default fi ;; *) gasnet_cv_envvar_MPI_CC="$MPI_CC" envval_src_MPI_CC=given esac fi MPI_CC="$gasnet_cv_envvar_MPI_CC" case "$envval_src_MPI_CC" in 'cached') echo "$ac_t""using cached value \"$MPI_CC\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CC\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CC\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$MPI_CFLAGS" != "" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, ) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:15740: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else gasnet_cv_envvar_MPI_CFLAGS="" envval_src_MPI_CFLAGS=default fi ;; *) gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # user-provided flags else # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_CFLAGS, $MISC_CFLAGS $CFLAGS) echo $ac_n "checking for MPI_CFLAGS in environment""... $ac_c" 1>&6 echo "configure:15790: checking for MPI_CFLAGS in environment" >&5 envval_src_MPI_CFLAGS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_CFLAGS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_CFLAGS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_cflags" != ""; then gasnet_cv_envvar_MPI_CFLAGS="$with_mpi_cflags" envval_src_MPI_CFLAGS=given else gasnet_cv_envvar_MPI_CFLAGS="$MISC_CFLAGS $CFLAGS" envval_src_MPI_CFLAGS=default fi ;; *) gasnet_cv_envvar_MPI_CFLAGS="$MPI_CFLAGS" envval_src_MPI_CFLAGS=given esac fi MPI_CFLAGS="$gasnet_cv_envvar_MPI_CFLAGS" case "$envval_src_MPI_CFLAGS" in 'cached') echo "$ac_t""using cached value \"$MPI_CFLAGS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_CFLAGS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_CFLAGS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # try DEFAULT_CFLAGS # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $MPI_CFLAGS" # --------------------------------------- echo $ac_n "checking for C compiler flag $MPI_CFLAGS""... $ac_c" 1>&6 echo "configure:15879: checking for C compiler flag $MPI_CFLAGS" >&5 gasnet_testname=gasnet-conftest gasnet_testfile=${gasnet_testname}.c gasnet_compile_cmd="${CC-cc} -c $CFLAGS $CPPFLAGS $gasnet_testfile" cat > $gasnet_testfile <&5 ( $gasnet_compile_cmd ) > conftest-runcmdout 2> conftest-runcmderr gasnet_cmd_result="$?" gasnet_cmd_stdout="`cat conftest-runcmdout`" gasnet_cmd_stderr="`cat conftest-runcmderr`" cat conftest-runcmdout >&5 cat conftest-runcmderr >&5 echo gasnet_cmd_result=$gasnet_cmd_result >&5 rm -rf conftest* if test "$gasnet_cmd_result" = "0" ; then if test -z "$gasnet_cmd_stdout$gasnet_cmd_stderr" ; then : echo "$ac_t""yes" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- else : echo "configure: warned program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/warning: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi else : echo "configure: failed program was:" >&5 cat $gasnet_testfile >&5 echo "$ac_t""no/error: $gasnet_cmd_stdout$gasnet_cmd_stderr" 1>&6 # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- echo "configure: warning: Unable to use default MPI_CFLAGS="$MPI_CFLAGS" so using "$SAFE_MPI_CFLAGS" instead. Consider manually seting MPI_CFLAGS" 1>&2 MPI_CFLAGS="$SAFE_MPI_CFLAGS" fi rm -f ${gasnet_testname}.* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- fi # --------------------------------------- # [GASNET_ENV_DEFAULT](MPI_LIBS, ) echo $ac_n "checking for MPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:16008: checking for MPI_LIBS in environment" >&5 envval_src_MPI_LIBS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_mpi_libs" != ""; then gasnet_cv_envvar_MPI_LIBS="$with_mpi_libs" envval_src_MPI_LIBS=given else gasnet_cv_envvar_MPI_LIBS="" envval_src_MPI_LIBS=default fi ;; *) gasnet_cv_envvar_MPI_LIBS="$MPI_LIBS" envval_src_MPI_LIBS=given esac fi MPI_LIBS="$gasnet_cv_envvar_MPI_LIBS" case "$envval_src_MPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$MPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](MPIRUN_CMD, mpirun -np %N %C) echo $ac_n "checking for MPIRUN_CMD in environment""... $ac_c" 1>&6 echo "configure:16057: checking for MPIRUN_CMD in environment" >&5 envval_src_MPIRUN_CMD="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MPIRUN_CMD-__NOT_SET__}" in __NOT_SET__) if test "$with_mpirun_cmd" != ""; then gasnet_cv_envvar_MPIRUN_CMD="$with_mpirun_cmd" envval_src_MPIRUN_CMD=given else gasnet_cv_envvar_MPIRUN_CMD="mpirun -np %N %C" envval_src_MPIRUN_CMD=default fi ;; *) gasnet_cv_envvar_MPIRUN_CMD="$MPIRUN_CMD" envval_src_MPIRUN_CMD=given esac fi MPIRUN_CMD="$gasnet_cv_envvar_MPIRUN_CMD" case "$envval_src_MPIRUN_CMD" in 'cached') echo "$ac_t""using cached value \"$MPIRUN_CMD\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MPIRUN_CMD\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MPIRUN_CMD\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$MPI_CC" = ""; then echo "configure: warning: I don't know how to build MPI programs on your system" 1>&2 echo "configure: warning: consider using \$MPI_CC \$MPI_CFLAGS and \$MPI_LIBS to configure MPI support for your site if you want the mpi-* backends" 1>&2 MPI_CC=$CC have_mpi=no fi ;; esac # ---------------------------------------------- # [GASNET_GETFULLPATH](MPI_CC) if test "$gasnet_cv__gfp_disable" = ""; then gasnet_gfp_progname=`echo "$MPI_CC" | $AWK -F' ' '{ print $1 }'` gasnet_gfp_progargs=`echo "$MPI_CC" | $AWK -F' ' 'BEGIN { ORS=" "; } { for (i=2;i<=NF;i++) print $i; }'` gasnet_gfp_progname0=`echo "$gasnet_gfp_progname" | $AWK '{ print substr($0,1,1) }'` if test "$gasnet_gfp_progname0" != "/" ; then # clear cached values, in case this is a pushed var unset gasnet_cv__gfp_fullprogname_MPI_CC unset ac_cv_path_gasnet_cv__gfp_fullprogname_MPI_CC # [AC_PATH_PROG](cv_prefix[]_gfp_fullprogname_MPI_CC, $gasnet_gfp_progname,[]) # Extract the first word of "$gasnet_gfp_progname", so it can be a program name with args. set dummy $gasnet_gfp_progname; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:16124: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_gasnet_cv__gfp_fullprogname_MPI_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$gasnet_cv__gfp_fullprogname_MPI_CC" in /*) ac_cv_path_gasnet_cv__gfp_fullprogname_MPI_CC="$gasnet_cv__gfp_fullprogname_MPI_CC" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_gasnet_cv__gfp_fullprogname_MPI_CC="$gasnet_cv__gfp_fullprogname_MPI_CC" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_gasnet_cv__gfp_fullprogname_MPI_CC="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi gasnet_cv__gfp_fullprogname_MPI_CC="$ac_cv_path_gasnet_cv__gfp_fullprogname_MPI_CC" if test -n "$gasnet_cv__gfp_fullprogname_MPI_CC"; then echo "$ac_t""$gasnet_cv__gfp_fullprogname_MPI_CC" 1>&6 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for full path expansion of MPI_CC""... $ac_c" 1>&6 echo "configure:16157: checking for full path expansion of MPI_CC" >&5 if test "$gasnet_cv__gfp_fullprogname_MPI_CC" != "" ; then MPI_CC="$gasnet_cv__gfp_fullprogname_MPI_CC $gasnet_gfp_progargs" fi echo "$ac_t""$MPI_CC" 1>&6 fi fi # ---------------------------------------------- # ---------------------------------------------- # [GASNET_GETFULLPATH](MPIRUN_CMD) if test "$gasnet_cv__gfp_disable" = ""; then gasnet_gfp_progname=`echo "$MPIRUN_CMD" | $AWK -F' ' '{ print $1 }'` gasnet_gfp_progargs=`echo "$MPIRUN_CMD" | $AWK -F' ' 'BEGIN { ORS=" "; } { for (i=2;i<=NF;i++) print $i; }'` gasnet_gfp_progname0=`echo "$gasnet_gfp_progname" | $AWK '{ print substr($0,1,1) }'` if test "$gasnet_gfp_progname0" != "/" ; then # clear cached values, in case this is a pushed var unset gasnet_cv__gfp_fullprogname_MPIRUN_CMD unset ac_cv_path_gasnet_cv__gfp_fullprogname_MPIRUN_CMD # [AC_PATH_PROG](cv_prefix[]_gfp_fullprogname_MPIRUN_CMD, $gasnet_gfp_progname,[]) # Extract the first word of "$gasnet_gfp_progname", so it can be a program name with args. set dummy $gasnet_gfp_progname; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:16183: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_gasnet_cv__gfp_fullprogname_MPIRUN_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$gasnet_cv__gfp_fullprogname_MPIRUN_CMD" in /*) ac_cv_path_gasnet_cv__gfp_fullprogname_MPIRUN_CMD="$gasnet_cv__gfp_fullprogname_MPIRUN_CMD" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_gasnet_cv__gfp_fullprogname_MPIRUN_CMD="$gasnet_cv__gfp_fullprogname_MPIRUN_CMD" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_gasnet_cv__gfp_fullprogname_MPIRUN_CMD="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi gasnet_cv__gfp_fullprogname_MPIRUN_CMD="$ac_cv_path_gasnet_cv__gfp_fullprogname_MPIRUN_CMD" if test -n "$gasnet_cv__gfp_fullprogname_MPIRUN_CMD"; then echo "$ac_t""$gasnet_cv__gfp_fullprogname_MPIRUN_CMD" 1>&6 else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for full path expansion of MPIRUN_CMD""... $ac_c" 1>&6 echo "configure:16216: checking for full path expansion of MPIRUN_CMD" >&5 if test "$gasnet_cv__gfp_fullprogname_MPIRUN_CMD" != "" ; then MPIRUN_CMD="$gasnet_cv__gfp_fullprogname_MPIRUN_CMD $gasnet_gfp_progargs" fi echo "$ac_t""$MPIRUN_CMD" 1>&6 fi fi # ---------------------------------------------- MPI_CFLAGS="$BUILDCONFIG_DEFINES $MPI_CFLAGS" # now run a basic test of the MPI configuration to make sure it works if test $have_mpi = yes; then echo $ac_n "checking building MPI helper object""... $ac_c" 1>&6 echo "configure:16232: checking building MPI helper object" >&5 # we link in an object compiled with CC that uses libc, to ensure that's working MPIHELPER_BASE=conftest_cfunc MPIHELPER_SRC=$MPIHELPER_BASE.c MPIHELPER_OBJ=$MPIHELPER_BASE.o MPIHELPER_LIBS="$MPIHELPER_OBJ $LIBM" MPIHELPER_CODE="extern int mpihelper_cint; extern void mpihelper_cfunc(int val); mpihelper_cfunc(mpihelper_cint);" cat >$MPIHELPER_BASE.c <<_GASNET_EOF #include #include #include #include int mpihelper_cint = 0xFFFF; extern void mpihelper_cfunc(int val) { char s[255], s2[255]; int a[40] = {1}; /* trigger Intel C issue */ assert(val == mpihelper_cint); s[4] = '\0'; s[5] = (char)(sin((double)val)+cos((double)val))+sqrt((double)val)+log((double)val); strcpy(s2, s); memcpy(s2, s, strlen(s)); memmove(s2, s, strlen(s)); memcpy(s2, s, 4); memmove(s2, s, 4); fprintf(stdout,"hi\n"); } _GASNET_EOF compile="$CC $CFLAGS $CPPFLAGS -c $MPIHELPER_SRC" eval echo "$compile" >&5 if eval $compile 2>&5 && test -s $MPIHELPER_OBJ ; then echo "$ac_t""ok" 1>&6 else { echo "configure: error: failed while building MPI helper object" 1>&2; exit 1; } fi echo $ac_n "checking for working MPI configuration""... $ac_c" 1>&6 echo "configure:16266: checking for working MPI configuration" >&5 # we need a clean slate here because MPI config may be totally different # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$MPI_CFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$MPI_CFLAGS" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CPPFLAGS, "") if test "$_pushcnt_CPPFLAGS" = "" ; then _pushcnt_CPPFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CPPFLAGS_$_pushcnt_CPPFLAGS=\$CPPFLAGS _pushcnt_CPPFLAGS=`expr $_pushcnt_CPPFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CPPFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](LDFLAGS, "") if test "$_pushcnt_LDFLAGS" = "" ; then _pushcnt_LDFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LDFLAGS_$_pushcnt_LDFLAGS=\$LDFLAGS _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LDFLAGS="" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$MPIHELPER_LIBS $MPI_LIBS") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$MPIHELPER_LIBS $MPI_LIBS" # --------------------------------------- # we just try to link an MPI app - running MPI apps is a whole new can of worms cat > conftest.$ac_ext < int main() { $MPIHELPER_CODE MPI_Init((void*)0,(void*)0); MPI_Finalize(); ; return 0; } EOF if { (eval echo configure:16358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* mpi_test_worked=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* mpi_test_worked=no if test -f "conftest.$ac_ext" ; then cp conftest.$ac_ext gasnet_errsave_file fi if test -f "conftest.err" ; then cp conftest.err gasnet_errsave_err fi fi rm -f conftest* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CPPFLAGS) if test "$_pushcnt_CPPFLAGS" -ge "1"; then _pushcnt_CPPFLAGS=`expr $_pushcnt_CPPFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CPPFLAGS=\$_pushedvar_CPPFLAGS_$_pushcnt_CPPFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CPPFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](LDFLAGS) if test "$_pushcnt_LDFLAGS" -ge "1"; then _pushcnt_LDFLAGS=`expr $_pushcnt_LDFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LDFLAGS=\$_pushedvar_LDFLAGS_$_pushcnt_LDFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LDFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- rm -f $MPIHELPER_OBJ fi if test "$mpi_test_worked" = yes ; then echo "$ac_t""yes" 1>&6 if echo "$MPI_CFLAGS" | grep -- "-DAMMPI_COEXIST_WITH_AM" > /dev/null ; then # -DAMMPI_COEXIST_WITH_AM must be included whenever ammpi.h is compiled, or not at all MPI_DEFINES="$MPI_DEFINES -DAMMPI_COEXIST_WITH_AM" fi if test "$enable_debug" = "yes" ; then echo $ac_n "checking MPI_CC for debug vs. optimize compilation conflict""... $ac_c" 1>&6 echo "configure:16446: checking MPI_CC for debug vs. optimize compilation conflict" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross # --------------------------------------- # [GASNET_PUSHVAR](CC, "$MPI_CC") if test "$_pushcnt_CC" = "" ; then _pushcnt_CC=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CC_$_pushcnt_CC=\$CC _pushcnt_CC=`expr $_pushcnt_CC + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CC="$MPI_CC" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$MPI_CFLAGS ") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$MPI_CFLAGS " # --------------------------------------- cat > conftest.$ac_ext < #if defined(__OPTIMIZE__) || defined(NDEBUG) choke me #endif int main() { ; return 0; } EOF if { (eval echo configure:16500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""no" 1>&6 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""yes" 1>&6 echo echo "configure error: User requested --enable-debug but MPI_CC or MPI_CFLAGS has enabled optimization (-O) or disabled assertions (-DNDEBUG). Try setting MPI_CC='$MPI_CC -O0 -UNDEBUG' or changing MPI_CFLAGS" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi rm -f conftest* # --------------------------------------- # [GASNET_POPVAR](CC) if test "$_pushcnt_CC" -ge "1"; then _pushcnt_CC=`expr $_pushcnt_CC - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CC=\$_pushedvar_CC_$_pushcnt_CC else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CC" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross fi else echo "$ac_t""no" 1>&6 echo "configure: warning: build test failed: I don't know how to build MPI programs on your system -- see $TOP_BUILDDIR/config.log for details" 1>&2 echo "configure: warning: consider using \$MPI_CC \$MPI_CFLAGS and \$MPI_LIBS to configure MPI support for your site if you want the mpi conduit" 1>&2 have_mpi=no fi if test "$force_mpi$have_mpi" = yesno ; then echo echo "configure error: User requested --enable-mpi but I don't know how to build MPI programs for your system" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi if test "$have_mpi" = no ; then mpi_reason="was not found" fi else have_mpi=no mpi_reason="was disabled" fi # compiler to be used to build AMMPI, and linker for AMMPI-based backends # compiler flags (optimization, includes, etc) to be used with above compiler when building AMMPI # libs and ldflags that must be used when linking AMMPI-based backend # preprocessor defs to be used for all client code that includes ammpi.h (not including AMMPI library itself) # prototype command used by tcrun to run MPI programs if test "$enabled_mpi$have_mpi" = yesyes; then USE_MPI_CONDUIT_TRUE= USE_MPI_CONDUIT_FALSE='#' else USE_MPI_CONDUIT_TRUE='#' USE_MPI_CONDUIT_FALSE= fi if test "$enabled_mpi$have_mpi" = yesyes ; then CONDUITS="$CONDUITS mpi" echo " portable MPI-1.1 network conduit (mpi) ON" >> $CONDUIT_LIST else echo " portable MPI-1.1 network conduit (mpi) OFF" >> $CONDUIT_LIST fi #----------------------------------------------------------------------------------------------- # SMP configuration # Check whether --enable-smp or --disable-smp was given. if test "${enable_smp+set}" = set; then enableval="$enable_smp" : fi # Check whether --enable-smp or --disable-smp was given. if test "${enable_smp+set}" = set; then enableval="$enable_smp" : fi case "$enable_smp" in no) have_smp=no ;; yes) have_smp=yes ;; *) have_smp=yes ;; esac if test "$have_smp" = yes; then USE_SMP_CONDUIT_TRUE= USE_SMP_CONDUIT_FALSE='#' else USE_SMP_CONDUIT_TRUE='#' USE_SMP_CONDUIT_FALSE= fi if test "$have_smp" = yes ; then CONDUITS="$CONDUITS smp" echo " portable SMP-loopback network conduit (smp) ON" >> $CONDUIT_LIST else echo " portable SMP-loopback network conduit (smp) OFF" >> $CONDUIT_LIST fi echo " " >> $CONDUIT_LIST echo " Native, high-performance conduits:" >> $CONDUIT_LIST echo " ---------------------------------" >> $CONDUIT_LIST #-------------------------------------------------------------------------------------------------------- # GM configuration # Check whether --enable-gm or --disable-gm was given. if test "${enable_gm+set}" = set; then enableval="$enable_gm" : fi # Check whether --enable-gm or --disable-gm was given. if test "${enable_gm+set}" = set; then enableval="$enable_gm" : fi case "$enable_gm" in no) enabled_gm=no ;; yes) enabled_gm=yes;force_gm=yes ;; *) enabled_gm=yes ;; esac if test $enabled_gm = yes; then # Assume the best have_gm=yes # Look for gm binaries in our path for ac_prog in gm_board_info do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:16721: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_gm_board_info'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$gm_board_info" in /*) ac_cv_path_gm_board_info="$gm_board_info" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_gm_board_info="$gm_board_info" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_gm_board_info="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi gm_board_info="$ac_cv_path_gm_board_info" if test -n "$gm_board_info"; then echo "$ac_t""$gm_board_info" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$gm_board_info" && break done case "$gm_board_info" in '') gm_guess=/usr/local/gm ;; *) gm_guess=`dirname $gm_board_info` gm_guess=`dirname $gm_guess` ;; esac # --------------------------------------- # [GASNET_ENV_DEFAULT](GMHOME, $gm_guess) echo $ac_n "checking for GMHOME in environment""... $ac_c" 1>&6 echo "configure:16771: checking for GMHOME in environment" >&5 # Check whether --with-gmhome or --without-gmhome was given. if test "${with_gmhome+set}" = set; then withval="$with_gmhome" : fi envval_src_GMHOME="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_GMHOME'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${GMHOME-__NOT_SET__}" in __NOT_SET__) if test "$with_gmhome" != ""; then gasnet_cv_envvar_GMHOME="$with_gmhome" envval_src_GMHOME=given else gasnet_cv_envvar_GMHOME="$gm_guess" envval_src_GMHOME=default fi ;; *) gasnet_cv_envvar_GMHOME="$GMHOME" envval_src_GMHOME=given esac fi GMHOME="$gasnet_cv_envvar_GMHOME" case "$envval_src_GMHOME" in 'cached') echo "$ac_t""using cached value \"$GMHOME\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$GMHOME\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$GMHOME\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- case "$target_os" in solaris*) ;; *) # All unknown for now # --------------------------------------- # [GASNET_ENV_DEFAULT](GM_INCLUDE, $GMHOME/include) echo $ac_n "checking for GM_INCLUDE in environment""... $ac_c" 1>&6 echo "configure:16831: checking for GM_INCLUDE in environment" >&5 # Check whether --with-gm-include or --without-gm-include was given. if test "${with_gm_include+set}" = set; then withval="$with_gm_include" : fi envval_src_GM_INCLUDE="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_GM_INCLUDE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${GM_INCLUDE-__NOT_SET__}" in __NOT_SET__) if test "$with_gm_include" != ""; then gasnet_cv_envvar_GM_INCLUDE="$with_gm_include" envval_src_GM_INCLUDE=given else gasnet_cv_envvar_GM_INCLUDE="$GMHOME/include" envval_src_GM_INCLUDE=default fi ;; *) gasnet_cv_envvar_GM_INCLUDE="$GM_INCLUDE" envval_src_GM_INCLUDE=given esac fi GM_INCLUDE="$gasnet_cv_envvar_GM_INCLUDE" case "$envval_src_GM_INCLUDE" in 'cached') echo "$ac_t""using cached value \"$GM_INCLUDE\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$GM_INCLUDE\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$GM_INCLUDE\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](GM_LIB, $GMHOME/lib) echo $ac_n "checking for GM_LIB in environment""... $ac_c" 1>&6 echo "configure:16887: checking for GM_LIB in environment" >&5 # Check whether --with-gm-lib or --without-gm-lib was given. if test "${with_gm_lib+set}" = set; then withval="$with_gm_lib" : fi envval_src_GM_LIB="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_GM_LIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${GM_LIB-__NOT_SET__}" in __NOT_SET__) if test "$with_gm_lib" != ""; then gasnet_cv_envvar_GM_LIB="$with_gm_lib" envval_src_GM_LIB=given else gasnet_cv_envvar_GM_LIB="$GMHOME/lib" envval_src_GM_LIB=default fi ;; *) gasnet_cv_envvar_GM_LIB="$GM_LIB" envval_src_GM_LIB=given esac fi GM_LIB="$gasnet_cv_envvar_GM_LIB" case "$envval_src_GM_LIB" in 'cached') echo "$ac_t""using cached value \"$GM_LIB\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$GM_LIB\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$GM_LIB\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$GM_INCLUDE" = "" || test ! -d "$GM_INCLUDE"; then have_gm=no fi if test "$GM_LIB" = ""; then have_gm=no fi ;; esac if test $have_gm = yes; then echo $ac_n "checking for working GM configuration""... $ac_c" 1>&6 echo "configure:16947: checking for working GM configuration" >&5 # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -I$GM_INCLUDE -L$GM_LIB") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -I$GM_INCLUDE -L$GM_LIB" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$LIBS -lgm") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$LIBS -lgm" # --------------------------------------- # try to compile and link a simple gm_init, gm_finalize cat > conftest.$ac_ext < #include int main() { gm_init(); gm_finalize(); ; return 0; } EOF if { (eval echo configure:16993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* gm_test_worked=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gm_test_worked=no if test -f "conftest.$ac_ext" ; then cp conftest.$ac_ext gasnet_errsave_file fi if test -f "conftest.err" ; then cp conftest.err gasnet_errsave_err fi fi rm -f conftest* # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- if test "$gm_test_worked" = yes; then echo "$ac_t""yes" 1>&6 else echo "$ac_t""no" 1>&6 have_gm=no fi # GM conduit was shown to break horribly on some versions of gcc, because # of our reuse of memory storage in firehose. We disable strict aliasing # altogether as the problem appears and disappears across gcc3 minor # versions. # This is a firehose problem, and bug #1052 showed xlc to be affected as well. case "$gasnet_cv_cc_family" in GNU) GM_NO_ALIAS="-fno-strict-aliasing";; Pathscale) GM_NO_ALIAS="-fno-strict-aliasing";; XLC) GM_NO_ALIAS="-qnoansialias -qalias=addr";; *) GM_NO_ALIAS="";; esac # Only test if working GM config if test $have_gm = yes; then # Check whether --enable-broken-gm or --disable-broken-gm was given. if test "${enable_broken_gm+set}" = set; then enableval="$enable_broken_gm" : fi case "$enable_broken_gm" in '' | no) : allow_broken_gm=no ;; *) cat >> confdefs.h <<\EOF #define GASNETC_GM_ENABLE_BROKEN_VERSIONS 1 EOF allow_broken_gm=yes ;; esac # Now test to see if the targetted GM is a broken one # broken gm builds echo $ac_n "checking for broken GM 2.x RDMA gets build""... $ac_c" 1>&6 echo "configure:17078: checking for broken GM 2.x RDMA gets build" >&5 # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -I$GM_INCLUDE -L$GM_LIB") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -I$GM_INCLUDE -L$GM_LIB" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$LIBS -lgm") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$LIBS -lgm" # --------------------------------------- cat > conftest.$ac_ext < int main() { #if GM_API_VERSION_2_0 && \ ((GM_API_VERSION_2_1_0 && GM_API_VERSION < 0x20102) || \ GM_API_VERSION < 0x2000c) #error GM build is broken #endif ; return 0; } EOF if { (eval echo configure:17125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gm_build_broken=no else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gm_build_broken=yes fi rm -f conftest* if test "$gm_build_broken" = yes; then if test "$allow_broken_gm" = no; then echo "$ac_t""yes" 1>&6 { echo "configure: error: Detected a broken GM 2.x RDMA gets build. See gm-conduit/README" 1>&2; exit 1; } else echo "$ac_t""yes which disables RDMA gets" 1>&6 fi else echo "$ac_t""no" 1>&6 fi # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- force_enable_gm_mpi_compat=no echo $ac_n "checking for GM interoperability with MPI""... $ac_c" 1>&6 echo "configure:17172: checking for GM interoperability with MPI" >&5 # Check whether --enable-gm-mpi-compat or --disable-gm-mpi-compat was given. if test "${enable_gm_mpi_compat+set}" = set; then enableval="$enable_gm_mpi_compat" : fi # Check whether --enable-gm-mpi-compat or --disable-gm-mpi-compat was given. if test "${enable_gm_mpi_compat+set}" = set; then enableval="$enable_gm_mpi_compat" : fi case "$enable_gm_mpi_compat" in no) enabled_gm_mpi_compat=no ;; yes) force_enable_gm_mpi_compat=yes; enabled_gm_mpi_compat=yes ;; *) enabled_gm_mpi_compat=yes ;; esac if test "$enabled_gm_mpi_compat" = yes; then if test "$have_mpi" = yes; then cat >> confdefs.h <<\EOF #define GASNETC_GM_MPI_COMPAT 1 EOF GM_MPI_COMPAT='yes' else GM_MPI_COMPAT='no' if test "$force_enable_gm_mpi_compat" = yes; then { echo "configure: error: GM requires a working MPI for interoperability. Install MPI \ and fix detection OR rerun configure with --disable-gm-mpi-compat" 1>&2; exit 1; } else echo "configure: warning: GM requires MPI for interoperability and MPI $mpi_reason - disabling feature" 1>&2 fi fi else GM_MPI_COMPAT='no' fi echo "$ac_t""$GM_MPI_COMPAT" 1>&6 fi fi if test "$force_gm$have_gm" = yesno ; then echo echo "configure error: User requested --enable-gm but I don't know how to build GM programs for your system" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi fi if test "$enabled_gm$have_gm" = yesyes; then USE_GM_CONDUIT_TRUE= USE_GM_CONDUIT_FALSE='#' else USE_GM_CONDUIT_TRUE='#' USE_GM_CONDUIT_FALSE= fi if test "$GM_MPI_COMPAT" = yes; then GM_MPI_COMPAT_TRUE= GM_MPI_COMPAT_FALSE='#' else GM_MPI_COMPAT_TRUE='#' GM_MPI_COMPAT_FALSE= fi # Check whether --enable-gm-rodata-workaround or --disable-gm-rodata-workaround was given. if test "${enable_gm_rodata_workaround+set}" = set; then enableval="$enable_gm_rodata_workaround" : fi case "$enable_gm_rodata_workaround" in '' | no) : ;; *) gm_rodata_workaround=yes ;; esac if test "$gm_rodata_workaround" = yes; then GM_RODATA_WORKAROUND_TRUE= GM_RODATA_WORKAROUND_FALSE='#' else GM_RODATA_WORKAROUND_TRUE='#' GM_RODATA_WORKAROUND_FALSE= fi if test "$enabled_gm$have_gm" = yesyes ; then CONDUITS="$CONDUITS gm" echo " Myricom/GM network conduit (gm) ON" >> $CONDUIT_LIST else echo " Myricom/GM network conduit (gm) OFF" >> $CONDUIT_LIST fi #-------------------------------------------------------------------------------------------------------- # LAPI configuration # Check whether --enable-lapi or --disable-lapi was given. if test "${enable_lapi+set}" = set; then enableval="$enable_lapi" : fi # Check whether --enable-lapi or --disable-lapi was given. if test "${enable_lapi+set}" = set; then enableval="$enable_lapi" : fi case "$enable_lapi" in no) enabled_lapi=no ;; yes) enabled_lapi=yes;force_lapi=yes ;; *) enabled_lapi=yes ;; esac if test "$force_lapi$have_pthread" = yesno; then { echo "configure: error: lapi-conduit requires pthread support but pthreads $pthread_reason" 1>&2; exit 1; } fi if test "$enabled_lapi$have_pthread" = yesno; then enabled_lapi=no echo "configure: warning: lapi-conduit requires pthread support but pthreads $pthread_reason - disabling lapi" 1>&2 fi if test "$enabled_lapi" = yes; then echo $ac_n "checking for working LAPI configuration""... $ac_c" 1>&6 echo "configure:17336: checking for working LAPI configuration" >&5 # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$LIBS -llapi_r -lpthread") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$LIBS -llapi_r -lpthread" # --------------------------------------- # try to compile and link a simple LAPI program cat > conftest.$ac_ext < #include int main() { { lapi_handle_t gasnetc_lapi_context; lapi_info_t gasnetc_lapi_info; memset(&gasnetc_lapi_info, 0, sizeof(lapi_info_t)); LAPI_Init(&gasnetc_lapi_context, &gasnetc_lapi_info); } ; return 0; } EOF if { (eval echo configure:17370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* have_lapi=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* have_lapi=no if test -f "conftest.$ac_ext" ; then cp conftest.$ac_ext gasnet_errsave_file fi if test -f "conftest.err" ; then cp conftest.err gasnet_errsave_err fi fi rm -f conftest* # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- echo "$ac_t""$have_lapi" 1>&6 # Check for hardware version if test "$have_lapi" = "yes"; then have_fed="no" have_col="no" lapi_how="selected" # Check whether --with-lapi-type or --without-lapi-type was given. if test "${with_lapi_type+set}" = set; then withval="$with_lapi_type" case "$withval" in no) : have_lapi=no ;; *) case "$withval" in [cC]olony|COLONY) have_col="yes" ;; [fF]ederation|FEDERATION) have_fed="yes" ;; *) { echo "configure: error: Unrecognized value "$withval" passed to --with-lapi-type. Legal values are "colony" or "federation"." 1>&2; exit 1; }; esac ;; esac else : echo $ac_n "checking for Federation Switch hardware""... $ac_c" 1>&6 echo "configure:17425: checking for Federation Switch hardware" >&5 if test -n "`lscfg -l sni0 2> /dev/null | grep -- sni0`" ; then have_fed="yes" fi echo "$ac_t""$have_fed" 1>&6 echo $ac_n "checking for Colony Switch hardware""... $ac_c" 1>&6 echo "configure:17431: checking for Colony Switch hardware" >&5 if test -n "`lscfg -l css0 2> /dev/null | grep -- css0`" ; then have_col="yes" fi echo "$ac_t""$have_col" 1>&6 lapi_how="found" fi if test "${have_fed}${have_col}" = "yesyes"; then echo "configure: warning: Both Federation and Colony Switch hardware $lapi_how - disabling lapi. Pass exactly one of --with-lapi-type=colony or --with-lapi-type=federation to select one." 1>&2 have_lapi="no" elif test "${have_fed}" = "yes"; then cat >> confdefs.h <<\EOF #define GASNETC_LAPI_FEDERATION 1 EOF echo $ac_n "checking For LAPI Federation Version""... $ac_c" 1>&6 echo "configure:17450: checking For LAPI Federation Version" >&5 LAPI_VER=`lslpp -l | grep rsct.lapi.rte 2>/dev/null | tail -1 | $AWK '{print $2}'` if test -z "$LAPI_VER" ; then echo "configure: warning: Could not detect LAPI version number with lslpp. " 1>&2 else LAPI_VER_NUM1=`echo $LAPI_VER | cut -d\. -f 1` cat >> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <&6 elif test "${have_col}" = "yes"; then cat >> confdefs.h <<\EOF #define GASNETC_LAPI_COLONY 1 EOF echo $ac_n "checking For LAPI Colony Version""... $ac_c" 1>&6 echo "configure:17483: checking For LAPI Colony Version" >&5 LAPI_VER=`lslpp -l | grep ssp.css.lapi 2>/dev/null | tail -1 | $AWK '{print $2}'` if test -z "$LAPI_VER" ; then echo "configure: warning: Could not detect LAPI version number with lslpp. " 1>&2 else LAPI_VER_NUM1=`echo $LAPI_VER | cut -d\. -f 1` cat >> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <&6 else echo "configure: warning: No IBM SP Switch hardware $lapi_how - disabling lapi" 1>&2 have_lapi="no" fi fi # Check for conflict if test "$force_lapi$have_lapi" = yesno; then echo echo "configure error: User requested --enable-lapi but I don't know how to build LAPI programs for your system." if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi if test x"$ac_cv_sizeof_void_p" = x4; then LAPI_LD="mpcc_r" else LAPI_LD="mpcc_r -q64" fi fi if test "$have_lapi" = yes; then USE_LAPI_CONDUIT_TRUE= USE_LAPI_CONDUIT_FALSE='#' else USE_LAPI_CONDUIT_TRUE='#' USE_LAPI_CONDUIT_FALSE= fi if test "$have_lapi" = yes ; then CONDUITS="$CONDUITS lapi" echo " LAPI (IBM SP) network conduit (lapi) ON" >> $CONDUIT_LIST else echo " LAPI (IBM SP) network conduit (lapi) OFF" >> $CONDUIT_LIST fi #-------------------------------------------------------------------------------------------------------- # ELAN configuration # Check whether --enable-elan or --disable-elan was given. if test "${enable_elan+set}" = set; then enableval="$enable_elan" : fi # Check whether --enable-elan or --disable-elan was given. if test "${enable_elan+set}" = set; then enableval="$enable_elan" : fi case "$enable_elan" in no) enabled_elan=no ;; yes) enabled_elan=yes;force_elan=yes ;; *) enabled_elan=yes ;; esac if test $enabled_elan = yes; then case "$target_os" in linux*) # the default locations are /usr/include and /usr/lib # rms libs are only there to support signalling exit, # if they're problematic they can be removed provided # you compile with -DGASNETC_USE_SIGNALING_EXIT=0 # --------------------------------------- # [GASNET_ENV_DEFAULT](ELAN_INCLUDE, /usr/include) echo $ac_n "checking for ELAN_INCLUDE in environment""... $ac_c" 1>&6 echo "configure:17615: checking for ELAN_INCLUDE in environment" >&5 # Check whether --with-elan-include or --without-elan-include was given. if test "${with_elan_include+set}" = set; then withval="$with_elan_include" : fi envval_src_ELAN_INCLUDE="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_ELAN_INCLUDE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${ELAN_INCLUDE-__NOT_SET__}" in __NOT_SET__) if test "$with_elan_include" != ""; then gasnet_cv_envvar_ELAN_INCLUDE="$with_elan_include" envval_src_ELAN_INCLUDE=given else gasnet_cv_envvar_ELAN_INCLUDE="/usr/include" envval_src_ELAN_INCLUDE=default fi ;; *) gasnet_cv_envvar_ELAN_INCLUDE="$ELAN_INCLUDE" envval_src_ELAN_INCLUDE=given esac fi ELAN_INCLUDE="$gasnet_cv_envvar_ELAN_INCLUDE" case "$envval_src_ELAN_INCLUDE" in 'cached') echo "$ac_t""using cached value \"$ELAN_INCLUDE\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$ELAN_INCLUDE\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$ELAN_INCLUDE\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; *) # the default locations are /usr/opt/rms/include and /usr/lib # --------------------------------------- # [GASNET_ENV_DEFAULT](ELAN_INCLUDE, /usr/opt/rms/include) echo $ac_n "checking for ELAN_INCLUDE in environment""... $ac_c" 1>&6 echo "configure:17674: checking for ELAN_INCLUDE in environment" >&5 envval_src_ELAN_INCLUDE="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_ELAN_INCLUDE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${ELAN_INCLUDE-__NOT_SET__}" in __NOT_SET__) if test "$with_elan_include" != ""; then gasnet_cv_envvar_ELAN_INCLUDE="$with_elan_include" envval_src_ELAN_INCLUDE=given else gasnet_cv_envvar_ELAN_INCLUDE="/usr/opt/rms/include" envval_src_ELAN_INCLUDE=default fi ;; *) gasnet_cv_envvar_ELAN_INCLUDE="$ELAN_INCLUDE" envval_src_ELAN_INCLUDE=given esac fi ELAN_INCLUDE="$gasnet_cv_envvar_ELAN_INCLUDE" case "$envval_src_ELAN_INCLUDE" in 'cached') echo "$ac_t""using cached value \"$ELAN_INCLUDE\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$ELAN_INCLUDE\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$ELAN_INCLUDE\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- ;; esac ELAN_HEADERBASE="${ELAN_INCLUDE}" # Don't actually place -I/usr/include on the compile line, because this # breaks IA64 Intel C, which relies on preceding /usr/include with its own # include directory that overrides some system headers (eg asm/*) if test "`cd ${ELAN_INCLUDE} 2>/dev/null; pwd`" = "/usr/include"; then ELAN_INCLUDE=. fi echo $ac_n "checking for ELAN device driver headers""... $ac_c" 1>&6 echo "configure:17727: checking for ELAN device driver headers" >&5 if test -f "$ELAN_HEADERBASE/elan4/library.h" ; then echo "$ac_t""elan4" 1>&6 ELANDEVLIB="-lelan4" cat >> confdefs.h <<\EOF #define GASNETC_ELAN4 1 EOF have_elan=yes else if test -f "$ELAN_HEADERBASE/elan3/elan3.h" ; then echo "$ac_t""elan3" 1>&6 ELANDEVLIB="-lelan3" cat >> confdefs.h <<\EOF #define GASNETC_ELAN3 1 EOF have_elan=yes else echo "$ac_t""none found" 1>&6 have_elan=no fi fi if test $have_elan = yes; then # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -I$ELAN_INCLUDE") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -I$ELAN_INCLUDE" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$LIBS") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$LIBS" # --------------------------------------- # librmscall used by any elan program, librms also used on older systems RMSLIBS="-lrmscall" echo $ac_n "checking for main in -lrms""... $ac_c" 1>&6 echo "configure:17785: checking for main in -lrms" >&5 ac_lib_var=`echo rms'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lrms $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 RMSLIBS="$RMSLIBS -lrms" else echo "$ac_t""no" 1>&6 fi # look for RMS rcontrol echo $ac_n "checking for RMS rcontrol""... $ac_c" 1>&6 echo "configure:17822: checking for RMS rcontrol" >&5 RMS_RCONTROL_PATH=`which rcontrol 2> /dev/null` if test -x "$RMS_RCONTROL_PATH" -a \ "`$RMS_RCONTROL_PATH help 2> /dev/null | grep signal`" != "" ; then cat >> confdefs.h <&6 else echo "$ac_t""no" 1>&6 fi # rmsapi is used for RMS signalling exit for ac_hdr in rms/rmsapi.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:17839: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:17849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done echo $ac_n "checking for rms_killResource in -lrmsapi""... $ac_c" 1>&6 echo "configure:17876: checking for rms_killResource in -lrmsapi" >&5 ac_lib_var=`echo rmsapi'_'rms_killResource | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lrmsapi $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF #define HAVE_RMS_KILLRESOURCE 1 EOF RMSLIBS="$RMSLIBS -lrmsapi" else echo "$ac_t""no" 1>&6 fi # look for SLURM scancel echo $ac_n "checking for SLURM scancel""... $ac_c" 1>&6 echo "configure:17921: checking for SLURM scancel" >&5 SLURM_SCANCEL_PATH=`which scancel 2> /dev/null` if test -x "$SLURM_SCANCEL_PATH" -a \ "`$SLURM_SCANCEL_PATH -V 2> /dev/null | grep slurm`" != "" ; then cat >> confdefs.h <&6 else echo "$ac_t""no" 1>&6 fi # slurm API is used for SLURM signalling exit for ac_hdr in slurm/slurm.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:17938: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:17948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done echo $ac_n "checking for slurm_kill_job in -lslurm""... $ac_c" 1>&6 echo "configure:17975: checking for slurm_kill_job in -lslurm" >&5 ac_lib_var=`echo slurm'_'slurm_kill_job | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lslurm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF #define HAVE_SLURM_KILL_JOB 1 EOF RMSLIBS="$RMSLIBS -lslurm" else echo "$ac_t""no" 1>&6 fi # --------------------------------------- # [GASNET_ENV_DEFAULT](ELAN_LIBS, -lelan $ELANDEVLIB $RMSLIBS) echo $ac_n "checking for ELAN_LIBS in environment""... $ac_c" 1>&6 echo "configure:18025: checking for ELAN_LIBS in environment" >&5 # Check whether --with-elan-libs or --without-elan-libs was given. if test "${with_elan_libs+set}" = set; then withval="$with_elan_libs" : fi envval_src_ELAN_LIBS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_ELAN_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${ELAN_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_elan_libs" != ""; then gasnet_cv_envvar_ELAN_LIBS="$with_elan_libs" envval_src_ELAN_LIBS=given else gasnet_cv_envvar_ELAN_LIBS="-lelan $ELANDEVLIB $RMSLIBS" envval_src_ELAN_LIBS=default fi ;; *) gasnet_cv_envvar_ELAN_LIBS="$ELAN_LIBS" envval_src_ELAN_LIBS=given esac fi ELAN_LIBS="$gasnet_cv_envvar_ELAN_LIBS" case "$envval_src_ELAN_LIBS" in 'cached') echo "$ac_t""using cached value \"$ELAN_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$ELAN_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$ELAN_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- echo $ac_n "checking for elan_queueMaxSlotSize in -lelan""... $ac_c" 1>&6 echo "configure:18075: checking for elan_queueMaxSlotSize in -lelan" >&5 ac_lib_var=`echo elan'_'elan_queueMaxSlotSize | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lelan $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF #define HAVE_ELAN_QUEUEMAXSLOTSIZE 1 EOF else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for elan_queueTxInit in -lelan""... $ac_c" 1>&6 echo "configure:18118: checking for elan_queueTxInit in -lelan" >&5 ac_lib_var=`echo elan'_'elan_queueTxInit | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lelan $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF #define HAVE_ELAN_QUEUETXINIT 1 EOF else echo "$ac_t""no" 1>&6 fi echo $ac_n "checking for elan_done in -lelan""... $ac_c" 1>&6 echo "configure:18161: checking for elan_done in -lelan" >&5 ac_lib_var=`echo elan'_'elan_done | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lelan $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF #define HAVE_ELAN_DONE 1 EOF else echo "$ac_t""no" 1>&6 fi LIBS="$ELAN_LIBS" echo $ac_n "checking for working ELAN configuration""... $ac_c" 1>&6 echo "configure:18205: checking for working ELAN configuration" >&5 # try to compile and link a simple elan prog cat > conftest.$ac_ext < #include int main() { #ifdef QSNETLIBS_VERSION_CODE #if QSNETLIBS_VERSION_CODE >= QSNETLIBS_VERSION(1,4,10) elan_baseInit(0); #else elan_baseInit(); #endif #else elan_baseInit(); #endif ; return 0; } EOF if { (eval echo configure:18228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* elan_test_worked=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* elan_test_worked=no fi rm -f conftest* # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- if test "$elan_test_worked" = yes; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for libelan version""... $ac_c" 1>&6 echo "configure:18266: checking for libelan version" >&5 if test -e ${ELAN_HEADERBASE}/elan/version.h; then verstr=`grep QSNETLIBS_VERSION_STRING ${ELAN_HEADERBASE}/elan/version.h` majorver=`echo $verstr | $AWK -F'[ \t]*|\"|[.]' '{ print $4 }'` minorver=`echo $verstr | $AWK -F'[ \t]*|\"|[.]' '{ print $5 }'` subver=`echo $verstr | $AWK -F'[ \t]*|\"|[.]' '{ print $6 }'` else verstr=`grep 'ELAN_VERSION' ${ELAN_HEADERBASE}/elan/misc.h` majorver=`echo $verstr | $AWK -F'[ \t]*|\"|[.]' '{ print $5 }'` minorver=`echo $verstr | $AWK -F'[ \t]*|\"|[.]' '{ print $6 }'` subver=0 fi echo "$ac_t"""${majorver}.${minorver}.${subver}"" 1>&6 if test "$majorver" = "" -o "$minorver" = "" -o "$subver" = "" ; then { echo "configure: error: "libelan present, but unable to determine libelan version"" 1>&2; exit 1; } fi cat >> confdefs.h <> confdefs.h <> confdefs.h <&6 have_elan=no fi fi if test "$force_elan$have_elan" = yesno; then { echo "configure: error: User requested --enable-elan but I don't know how to build elan programs for your system." 1>&2; exit 1; } fi fi if test "$enabled_elan$have_elan" = yesyes; then USE_ELAN_CONDUIT_TRUE= USE_ELAN_CONDUIT_FALSE='#' else USE_ELAN_CONDUIT_TRUE='#' USE_ELAN_CONDUIT_FALSE= fi if test "$enabled_elan$have_elan" = yesyes ; then CONDUITS="$CONDUITS elan" echo " Quadrics Elan3/Elan4 network conduit (elan) ON" >> $CONDUIT_LIST else echo " Quadrics Elan3/Elan4 network conduit (elan) OFF" >> $CONDUIT_LIST fi #-------------------------------------------------------------------------------------------------------- # VAPI configuration # Check whether --enable-vapi or --disable-vapi was given. if test "${enable_vapi+set}" = set; then enableval="$enable_vapi" : fi # Check whether --enable-vapi or --disable-vapi was given. if test "${enable_vapi+set}" = set; then enableval="$enable_vapi" : fi case "$enable_vapi" in no) enabled_vapi=no ;; yes) enabled_vapi=yes;force_vapi=yes ;; *) enabled_vapi=yes ;; esac if test "$force_vapi$have_pthread" = yesno; then { echo "configure: error: vapi-conduit requires pthread support but pthreads $pthread_reason" 1>&2; exit 1; } fi if test "$enabled_vapi$have_pthread" = yesno; then enabled_vapi=no echo "configure: warning: vapi-conduit requires pthread support but pthreads $pthread_reason - disabling vapi" 1>&2 fi if test "$enabled_vapi" = yes; then # Start by assuming we do have VAPI have_vapi=yes # Start with some sensable defaults # --------------------------------------- # [GASNET_ENV_DEFAULT](MTHOME, /usr/mellanox) echo $ac_n "checking for MTHOME in environment""... $ac_c" 1>&6 echo "configure:18366: checking for MTHOME in environment" >&5 # Check whether --with-mthome or --without-mthome was given. if test "${with_mthome+set}" = set; then withval="$with_mthome" : fi envval_src_MTHOME="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_MTHOME'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${MTHOME-__NOT_SET__}" in __NOT_SET__) if test "$with_mthome" != ""; then gasnet_cv_envvar_MTHOME="$with_mthome" envval_src_MTHOME=given else gasnet_cv_envvar_MTHOME="/usr/mellanox" envval_src_MTHOME=default fi ;; *) gasnet_cv_envvar_MTHOME="$MTHOME" envval_src_MTHOME=given esac fi MTHOME="$gasnet_cv_envvar_MTHOME" case "$envval_src_MTHOME" in 'cached') echo "$ac_t""using cached value \"$MTHOME\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$MTHOME\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$MTHOME\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](VAPI_INCLUDE, $MTHOME/include) echo $ac_n "checking for VAPI_INCLUDE in environment""... $ac_c" 1>&6 echo "configure:18422: checking for VAPI_INCLUDE in environment" >&5 # Check whether --with-vapi-include or --without-vapi-include was given. if test "${with_vapi_include+set}" = set; then withval="$with_vapi_include" : fi envval_src_VAPI_INCLUDE="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_VAPI_INCLUDE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${VAPI_INCLUDE-__NOT_SET__}" in __NOT_SET__) if test "$with_vapi_include" != ""; then gasnet_cv_envvar_VAPI_INCLUDE="$with_vapi_include" envval_src_VAPI_INCLUDE=given else gasnet_cv_envvar_VAPI_INCLUDE="$MTHOME/include" envval_src_VAPI_INCLUDE=default fi ;; *) gasnet_cv_envvar_VAPI_INCLUDE="$VAPI_INCLUDE" envval_src_VAPI_INCLUDE=given esac fi VAPI_INCLUDE="$gasnet_cv_envvar_VAPI_INCLUDE" case "$envval_src_VAPI_INCLUDE" in 'cached') echo "$ac_t""using cached value \"$VAPI_INCLUDE\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$VAPI_INCLUDE\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$VAPI_INCLUDE\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](VAPI_LIBS, -lvapi -lmtl_common -lmosal -lmpga) echo $ac_n "checking for VAPI_LIBS in environment""... $ac_c" 1>&6 echo "configure:18478: checking for VAPI_LIBS in environment" >&5 # Check whether --with-vapi-libs or --without-vapi-libs was given. if test "${with_vapi_libs+set}" = set; then withval="$with_vapi_libs" : fi envval_src_VAPI_LIBS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_VAPI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${VAPI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_vapi_libs" != ""; then gasnet_cv_envvar_VAPI_LIBS="$with_vapi_libs" envval_src_VAPI_LIBS=given else gasnet_cv_envvar_VAPI_LIBS="-lvapi -lmtl_common -lmosal -lmpga" envval_src_VAPI_LIBS=default fi ;; *) gasnet_cv_envvar_VAPI_LIBS="$VAPI_LIBS" envval_src_VAPI_LIBS=given esac fi VAPI_LIBS="$gasnet_cv_envvar_VAPI_LIBS" case "$envval_src_VAPI_LIBS" in 'cached') echo "$ac_t""using cached value \"$VAPI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$VAPI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$VAPI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # Note 'test -d $foo/.' works even if $foo is a symlink if test x"$ac_cv_sizeof_void_p" = x8 -a -d $MTHOME/lib64/.; then vapi_libdir_default=$MTHOME/lib64 else vapi_libdir_default=$MTHOME/lib fi # --------------------------------------- # [GASNET_ENV_DEFAULT](VAPI_LIBDIR, $vapi_libdir_default) echo $ac_n "checking for VAPI_LIBDIR in environment""... $ac_c" 1>&6 echo "configure:18540: checking for VAPI_LIBDIR in environment" >&5 # Check whether --with-vapi-libdir or --without-vapi-libdir was given. if test "${with_vapi_libdir+set}" = set; then withval="$with_vapi_libdir" : fi envval_src_VAPI_LIBDIR="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_VAPI_LIBDIR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${VAPI_LIBDIR-__NOT_SET__}" in __NOT_SET__) if test "$with_vapi_libdir" != ""; then gasnet_cv_envvar_VAPI_LIBDIR="$with_vapi_libdir" envval_src_VAPI_LIBDIR=given else gasnet_cv_envvar_VAPI_LIBDIR="$vapi_libdir_default" envval_src_VAPI_LIBDIR=default fi ;; *) gasnet_cv_envvar_VAPI_LIBDIR="$VAPI_LIBDIR" envval_src_VAPI_LIBDIR=given esac fi VAPI_LIBDIR="$gasnet_cv_envvar_VAPI_LIBDIR" case "$envval_src_VAPI_LIBDIR" in 'cached') echo "$ac_t""using cached value \"$VAPI_LIBDIR\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$VAPI_LIBDIR\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$VAPI_LIBDIR\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # Assemble any extra flags needed at library build time VAPI_LIBCFLAGS='' echo $ac_n "checking if $CC supports GNU variadic preprocessor macros""... $ac_c" 1>&6 echo "configure:18593: checking if $CC supports GNU variadic preprocessor macros" >&5 if test "$gasnet_cv_cc_family" = "GNU"; then echo "$ac_t""yes (gcc)" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* # Work aroung bug #522 by omitting mtl_log.h echo "$ac_t""no" 1>&6 VAPI_LIBCFLAGS="$VAPI_LIBCFLAGS -DH_MTL_LOG_H" fi rm -f conftest* fi # Since we are using firehose we need to disable certain optimizations. # See bug #350 for an example of why firehose needs this. # See bug #596 or #1031 for evidence that VAPI is affected by this. # See bug #1052 for evidence that xlc is affected. case "$gasnet_cv_cc_family" in GNU) VAPI_NO_ALIAS="-fno-strict-aliasing";; Pathscale) VAPI_NO_ALIAS="-fno-strict-aliasing";; XLC) VAPI_NO_ALIAS="-qnoansialias -qalias=addr";; *) VAPI_NO_ALIAS="";; esac # Try to compile and link a basic VAPI program echo $ac_n "checking for working VAPI configuration""... $ac_c" 1>&6 echo "configure:18642: checking for working VAPI configuration" >&5 # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -I$VAPI_INCLUDE $GASNET_THREAD_DEFINES $VAPI_LIBCFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -I$VAPI_INCLUDE $GASNET_THREAD_DEFINES $VAPI_LIBCFLAGS" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$LIBS -L$VAPI_LIBDIR $VAPI_LIBS $GASNET_THREAD_LIBS") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$LIBS -L$VAPI_LIBDIR $VAPI_LIBS $GASNET_THREAD_LIBS" # --------------------------------------- # try to compile and link a simple VAPI program cat > conftest.$ac_ext < int main() { { int rc; u_int32_t num_of_hcas; VAPI_hca_id_t inst_hca_id; rc = EVAPI_list_hcas(1, &num_of_hcas, &inst_hca_id); } ; return 0; } EOF if { (eval echo configure:18690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* vapi_test_worked=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* vapi_test_worked=no if test -f "conftest.$ac_ext" ; then cp conftest.$ac_ext gasnet_errsave_file fi if test -f "conftest.err" ; then cp conftest.err gasnet_errsave_err fi fi rm -f conftest* # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- if test "$vapi_test_worked" = yes; then echo "$ac_t""yes" 1>&6 else echo "$ac_t""no" 1>&6 have_vapi=no fi # Check for conflict if test "$force_vapi$have_vapi" = yesno; then echo echo "configure error: User requested --enable-vapi but I don't know how to build VAPI programs for your system." if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi if test "$have_vapi" = yes; then echo $ac_n "checking for VAPI FMR support""... $ac_c" 1>&6 echo "configure:18775: checking for VAPI FMR support" >&5 # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -I$VAPI_INCLUDE $GASNET_THREAD_DEFINES $VAPI_LIBCFLAGS") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -I$VAPI_INCLUDE $GASNET_THREAD_DEFINES $VAPI_LIBCFLAGS" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$LIBS -L$VAPI_LIBDIR $VAPI_LIBS $GASNET_THREAD_LIBS") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$LIBS -L$VAPI_LIBDIR $VAPI_LIBS $GASNET_THREAD_LIBS" # --------------------------------------- cat > conftest.$ac_ext < #include int main() { { VAPI_hca_hndl_t my_hca; EVAPI_fmr_hndl_t handles[1]; EVAPI_unmap_fmr(my_hca, 1, handles); } ; return 0; } EOF if { (eval echo configure:18821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF #define HAVE_VAPI_FMR 1 EOF echo "$ac_t""yes" 1>&6 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""no" 1>&6 fi rm -f conftest* # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- # Collect some VAPI-specifc configure options # Check whether --enable-vapi-force-poll-lock or --disable-vapi-force-poll-lock was given. if test "${enable_vapi_force_poll_lock+set}" = set; then enableval="$enable_vapi_force_poll_lock" : fi # Check whether --enable-vapi-force-poll-lock or --disable-vapi-force-poll-lock was given. if test "${enable_vapi_force_poll_lock+set}" = set; then enableval="$enable_vapi_force_poll_lock" : fi case "$enable_vapi_force_poll_lock" in no) enabled_vapi_force_poll_lock=no ;; yes) enabled_vapi_force_poll_lock=yes ;; *) enabled_vapi_force_poll_lock=no ;; esac if test "$enabled_vapi_force_poll_lock" = yes; then cat >> confdefs.h <<\EOF #define GASNETC_VAPI_FORCE_POLL_LOCK 1 EOF fi # Check whether --enable-vapi-rcv-thread or --disable-vapi-rcv-thread was given. if test "${enable_vapi_rcv_thread+set}" = set; then enableval="$enable_vapi_rcv_thread" : fi # Check whether --enable-vapi-rcv-thread or --disable-vapi-rcv-thread was given. if test "${enable_vapi_rcv_thread+set}" = set; then enableval="$enable_vapi_rcv_thread" : fi case "$enable_vapi_rcv_thread" in no) enabled_vapi_rcv_thread=no ;; yes) enabled_vapi_rcv_thread=yes ;; *) enabled_vapi_rcv_thread=yes ;; esac if test "$enabled_vapi_rcv_thread" = yes; then cat >> confdefs.h <<\EOF #define GASNETC_VAPI_RCV_THREAD 1 EOF fi # Check whether --with-vapi-spawner or --without-vapi-spawner was given. if test "${with_vapi_spawner+set}" = set; then withval="$with_vapi_spawner" case "$withval" in no) : { echo "configure: error: --with-vapi-spawner argument must be "ssh" or "mpi"" 1>&2; exit 1; } ;; *) case "$withval" in ssh|mpi) GASNET_VAPI_SPAWNER=$withval ;; yes) { echo "configure: error: --with-vapi-spawner requires an argument ("ssh" or "mpi")" 1>&2; exit 1; } ;; *) { echo "configure: error: --with-vapi-spawner argument must be "ssh" or "mpi"" 1>&2; exit 1; } ;; esac ;; esac else : if test "$have_mpi" = yes; then GASNET_VAPI_SPAWNER=mpi else GASNET_VAPI_SPAWNER=ssh fi fi if test "$GASNET_VAPI_SPAWNER$have_mpi" = mpino; then { echo "configure: error: --with-vapi-spawner=mpi requires MPI support and MPI $mpi_reason" 1>&2; exit 1; }; fi fi fi if test "$have_vapi" = yes; then USE_VAPI_CONDUIT_TRUE= USE_VAPI_CONDUIT_FALSE='#' else USE_VAPI_CONDUIT_TRUE='#' USE_VAPI_CONDUIT_FALSE= fi if test "$have_mpi" = yes; then VAPI_BOOTSTRAP_MPI_TRUE= VAPI_BOOTSTRAP_MPI_FALSE='#' else VAPI_BOOTSTRAP_MPI_TRUE='#' VAPI_BOOTSTRAP_MPI_FALSE= fi # Option to omit MPI support? if test "$enabled_vapi_rcv_thread" = yes; then VAPI_RCV_THREAD_TRUE= VAPI_RCV_THREAD_FALSE='#' else VAPI_RCV_THREAD_TRUE='#' VAPI_RCV_THREAD_FALSE= fi if test "$have_vapi" = yes ; then CONDUITS="$CONDUITS vapi" echo " Mellanox InfiniBand/VAPI network conduit (vapi) ON" >> $CONDUIT_LIST else echo " Mellanox InfiniBand/VAPI network conduit (vapi) OFF" >> $CONDUIT_LIST fi #-------------------------------------------------------------------------------------------------------- # SHMEM configuration # Check whether --enable-shmem or --disable-shmem was given. if test "${enable_shmem+set}" = set; then enableval="$enable_shmem" : fi # Check whether --enable-shmem or --disable-shmem was given. if test "${enable_shmem+set}" = set; then enableval="$enable_shmem" : fi case "$enable_shmem" in no) enabled_shmem=no ;; yes) enabled_shmem=yes;force_shmem=yes ;; *) enabled_shmem=yes ;; esac if test $enabled_shmem = yes; then SHMEM_FLAVOUR="unknown" have_shmem=yes echo $ac_n "checking for SHMEM network type""... $ac_c" 1>&6 echo "configure:19017: checking for SHMEM network type" >&5 case "$target_os" in unicos*) echo "$ac_t""Cray" 1>&6 # --------------------------------------- # [GASNET_ENV_DEFAULT](SHMEM_INCLUDE, /opt/ctl/mpt/mpt/include) echo $ac_n "checking for SHMEM_INCLUDE in environment""... $ac_c" 1>&6 echo "configure:19029: checking for SHMEM_INCLUDE in environment" >&5 # Check whether --with-shmem-include or --without-shmem-include was given. if test "${with_shmem_include+set}" = set; then withval="$with_shmem_include" : fi envval_src_SHMEM_INCLUDE="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_SHMEM_INCLUDE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${SHMEM_INCLUDE-__NOT_SET__}" in __NOT_SET__) if test "$with_shmem_include" != ""; then gasnet_cv_envvar_SHMEM_INCLUDE="$with_shmem_include" envval_src_SHMEM_INCLUDE=given else gasnet_cv_envvar_SHMEM_INCLUDE="/opt/ctl/mpt/mpt/include" envval_src_SHMEM_INCLUDE=default fi ;; *) gasnet_cv_envvar_SHMEM_INCLUDE="$SHMEM_INCLUDE" envval_src_SHMEM_INCLUDE=given esac fi SHMEM_INCLUDE="$gasnet_cv_envvar_SHMEM_INCLUDE" case "$envval_src_SHMEM_INCLUDE" in 'cached') echo "$ac_t""using cached value \"$SHMEM_INCLUDE\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$SHMEM_INCLUDE\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$SHMEM_INCLUDE\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](SHMEM_LIBDIR, /opt/ctl/mpt/mpt/lib) echo $ac_n "checking for SHMEM_LIBDIR in environment""... $ac_c" 1>&6 echo "configure:19085: checking for SHMEM_LIBDIR in environment" >&5 # Check whether --with-shmem-libdir or --without-shmem-libdir was given. if test "${with_shmem_libdir+set}" = set; then withval="$with_shmem_libdir" : fi envval_src_SHMEM_LIBDIR="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_SHMEM_LIBDIR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${SHMEM_LIBDIR-__NOT_SET__}" in __NOT_SET__) if test "$with_shmem_libdir" != ""; then gasnet_cv_envvar_SHMEM_LIBDIR="$with_shmem_libdir" envval_src_SHMEM_LIBDIR=given else gasnet_cv_envvar_SHMEM_LIBDIR="/opt/ctl/mpt/mpt/lib" envval_src_SHMEM_LIBDIR=default fi ;; *) gasnet_cv_envvar_SHMEM_LIBDIR="$SHMEM_LIBDIR" envval_src_SHMEM_LIBDIR=given esac fi SHMEM_LIBDIR="$gasnet_cv_envvar_SHMEM_LIBDIR" case "$envval_src_SHMEM_LIBDIR" in 'cached') echo "$ac_t""using cached value \"$SHMEM_LIBDIR\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$SHMEM_LIBDIR\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$SHMEM_LIBDIR\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](SHMEM_LIBS, "-lsma") echo $ac_n "checking for SHMEM_LIBS in environment""... $ac_c" 1>&6 echo "configure:19141: checking for SHMEM_LIBS in environment" >&5 # Check whether --with-shmem-libs or --without-shmem-libs was given. if test "${with_shmem_libs+set}" = set; then withval="$with_shmem_libs" : fi envval_src_SHMEM_LIBS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_SHMEM_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${SHMEM_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_shmem_libs" != ""; then gasnet_cv_envvar_SHMEM_LIBS="$with_shmem_libs" envval_src_SHMEM_LIBS=given else gasnet_cv_envvar_SHMEM_LIBS=""-lsma"" envval_src_SHMEM_LIBS=default fi ;; *) gasnet_cv_envvar_SHMEM_LIBS="$SHMEM_LIBS" envval_src_SHMEM_LIBS=given esac fi SHMEM_LIBS="$gasnet_cv_envvar_SHMEM_LIBS" case "$envval_src_SHMEM_LIBS" in 'cached') echo "$ac_t""using cached value \"$SHMEM_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$SHMEM_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$SHMEM_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- SHMEM_FLAVOUR="CRAY_SHMEM" ;; irix*) echo "configure: warning: Currently no access to shmem on IRIX" 1>&2 have_shmem=no ;; # Linux shmem may mean Quadrics shmem, or SGI shmem. A first try is to # look for _ELAN_SHMEM_H in /usr/include/shmem.h. linux*) # This first case should catch Elan shmem if test -e ${SHMEM_INCLUDE}/shmem.h; then is_quadrics=`grep ELAN_SHMEM ${SHMEM_INCLUDE}/shmem.h` if test -n "$is_quadrics"; then SHMEM_FLAVOUR="ELAN_SHMEM" echo "$ac_t""Quadrics/Elan" 1>&6 # --------------------------------------- # [GASNET_ENV_DEFAULT](SHMEM_INCLUDE, /usr/include) echo $ac_n "checking for SHMEM_INCLUDE in environment""... $ac_c" 1>&6 echo "configure:19212: checking for SHMEM_INCLUDE in environment" >&5 envval_src_SHMEM_INCLUDE="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_SHMEM_INCLUDE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${SHMEM_INCLUDE-__NOT_SET__}" in __NOT_SET__) if test "$with_shmem_include" != ""; then gasnet_cv_envvar_SHMEM_INCLUDE="$with_shmem_include" envval_src_SHMEM_INCLUDE=given else gasnet_cv_envvar_SHMEM_INCLUDE="/usr/include" envval_src_SHMEM_INCLUDE=default fi ;; *) gasnet_cv_envvar_SHMEM_INCLUDE="$SHMEM_INCLUDE" envval_src_SHMEM_INCLUDE=given esac fi SHMEM_INCLUDE="$gasnet_cv_envvar_SHMEM_INCLUDE" case "$envval_src_SHMEM_INCLUDE" in 'cached') echo "$ac_t""using cached value \"$SHMEM_INCLUDE\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$SHMEM_INCLUDE\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$SHMEM_INCLUDE\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](SHMEM_LIBDIR, /usr/lib) echo $ac_n "checking for SHMEM_LIBDIR in environment""... $ac_c" 1>&6 echo "configure:19261: checking for SHMEM_LIBDIR in environment" >&5 envval_src_SHMEM_LIBDIR="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_SHMEM_LIBDIR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${SHMEM_LIBDIR-__NOT_SET__}" in __NOT_SET__) if test "$with_shmem_libdir" != ""; then gasnet_cv_envvar_SHMEM_LIBDIR="$with_shmem_libdir" envval_src_SHMEM_LIBDIR=given else gasnet_cv_envvar_SHMEM_LIBDIR="/usr/lib" envval_src_SHMEM_LIBDIR=default fi ;; *) gasnet_cv_envvar_SHMEM_LIBDIR="$SHMEM_LIBDIR" envval_src_SHMEM_LIBDIR=given esac fi SHMEM_LIBDIR="$gasnet_cv_envvar_SHMEM_LIBDIR" case "$envval_src_SHMEM_LIBDIR" in 'cached') echo "$ac_t""using cached value \"$SHMEM_LIBDIR\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$SHMEM_LIBDIR\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$SHMEM_LIBDIR\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](SHMEM_LIBS, "-lshmem") echo $ac_n "checking for SHMEM_LIBS in environment""... $ac_c" 1>&6 echo "configure:19310: checking for SHMEM_LIBS in environment" >&5 envval_src_SHMEM_LIBS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_SHMEM_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${SHMEM_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_shmem_libs" != ""; then gasnet_cv_envvar_SHMEM_LIBS="$with_shmem_libs" envval_src_SHMEM_LIBS=given else gasnet_cv_envvar_SHMEM_LIBS=""-lshmem"" envval_src_SHMEM_LIBS=default fi ;; *) gasnet_cv_envvar_SHMEM_LIBS="$SHMEM_LIBS" envval_src_SHMEM_LIBS=given esac fi SHMEM_LIBS="$gasnet_cv_envvar_SHMEM_LIBS" case "$envval_src_SHMEM_LIBS" in 'cached') echo "$ac_t""using cached value \"$SHMEM_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$SHMEM_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$SHMEM_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- fi elif test -e /dev/xpmem; then # SGI Altix uhas xpmem device SHMEM_FLAVOUR="SGI_SHMEM" echo "$ac_t""SGI/Altix" 1>&6 # --------------------------------------- # [GASNET_ENV_DEFAULT](SHMEM_INCLUDE, /usr/include) echo $ac_n "checking for SHMEM_INCLUDE in environment""... $ac_c" 1>&6 echo "configure:19364: checking for SHMEM_INCLUDE in environment" >&5 envval_src_SHMEM_INCLUDE="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_SHMEM_INCLUDE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${SHMEM_INCLUDE-__NOT_SET__}" in __NOT_SET__) if test "$with_shmem_include" != ""; then gasnet_cv_envvar_SHMEM_INCLUDE="$with_shmem_include" envval_src_SHMEM_INCLUDE=given else gasnet_cv_envvar_SHMEM_INCLUDE="/usr/include" envval_src_SHMEM_INCLUDE=default fi ;; *) gasnet_cv_envvar_SHMEM_INCLUDE="$SHMEM_INCLUDE" envval_src_SHMEM_INCLUDE=given esac fi SHMEM_INCLUDE="$gasnet_cv_envvar_SHMEM_INCLUDE" case "$envval_src_SHMEM_INCLUDE" in 'cached') echo "$ac_t""using cached value \"$SHMEM_INCLUDE\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$SHMEM_INCLUDE\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$SHMEM_INCLUDE\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # Work around stoopid bug in Intel ecc on Altix: programs won't compile # if -L/usr/lib is explicitly passed. # --------------------------------------- # [GASNET_ENV_DEFAULT](SHMEM_LIBDIR, /anything/but/usr/lib) echo $ac_n "checking for SHMEM_LIBDIR in environment""... $ac_c" 1>&6 echo "configure:19415: checking for SHMEM_LIBDIR in environment" >&5 envval_src_SHMEM_LIBDIR="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_SHMEM_LIBDIR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${SHMEM_LIBDIR-__NOT_SET__}" in __NOT_SET__) if test "$with_shmem_libdir" != ""; then gasnet_cv_envvar_SHMEM_LIBDIR="$with_shmem_libdir" envval_src_SHMEM_LIBDIR=given else gasnet_cv_envvar_SHMEM_LIBDIR="/anything/but/usr/lib" envval_src_SHMEM_LIBDIR=default fi ;; *) gasnet_cv_envvar_SHMEM_LIBDIR="$SHMEM_LIBDIR" envval_src_SHMEM_LIBDIR=given esac fi SHMEM_LIBDIR="$gasnet_cv_envvar_SHMEM_LIBDIR" case "$envval_src_SHMEM_LIBDIR" in 'cached') echo "$ac_t""using cached value \"$SHMEM_LIBDIR\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$SHMEM_LIBDIR\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$SHMEM_LIBDIR\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](SHMEM_LIBS, -lsma -lmpi) echo $ac_n "checking for SHMEM_LIBS in environment""... $ac_c" 1>&6 echo "configure:19464: checking for SHMEM_LIBS in environment" >&5 envval_src_SHMEM_LIBS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_SHMEM_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${SHMEM_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_shmem_libs" != ""; then gasnet_cv_envvar_SHMEM_LIBS="$with_shmem_libs" envval_src_SHMEM_LIBS=given else gasnet_cv_envvar_SHMEM_LIBS="-lsma -lmpi" envval_src_SHMEM_LIBS=default fi ;; *) gasnet_cv_envvar_SHMEM_LIBS="$SHMEM_LIBS" envval_src_SHMEM_LIBS=given esac fi SHMEM_LIBS="$gasnet_cv_envvar_SHMEM_LIBS" case "$envval_src_SHMEM_LIBS" in 'cached') echo "$ac_t""using cached value \"$SHMEM_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$SHMEM_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$SHMEM_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- else echo "$ac_t""unknown" 1>&6 have_shmem=no fi ;; *) echo "$ac_t""unknown" 1>&6 have_shmem=no ;; esac if test $have_shmem = yes; then # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS -I${SHMEM_INCLUDE} -I${SHMEM_INCLUDE}/mpp") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS -I${SHMEM_INCLUDE} -I${SHMEM_INCLUDE}/mpp" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$LIBS -L${SHMEM_LIBDIR} ${SHMEM_LIBS}") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$LIBS -L${SHMEM_LIBDIR} ${SHMEM_LIBS}" # --------------------------------------- SHMEM_FLAGS="-D${SHMEM_FLAVOUR}" echo $ac_n "checking for working SHMEM configuration""... $ac_c" 1>&6 echo "configure:19552: checking for working SHMEM configuration" >&5 # only include shmem.h even if some prescribe and rely on the # include search directories to be correct. This approach is more general cat > conftest.$ac_ext < int main() { { int mype, numpes; mype = shmem_my_pe(); numpes = shmem_n_pes(); } ; return 0; } EOF if { (eval echo configure:19570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* shmem_test_worked=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* shmem_test_worked=no if test -f "conftest.$ac_ext" ; then cp conftest.$ac_ext gasnet_errsave_file fi if test -f "conftest.err" ; then cp conftest.err gasnet_errsave_err fi fi rm -f conftest* # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- if test "$shmem_test_worked" = yes; then echo "$ac_t""yes" 1>&6 SHMEM_FLAGS="-D${SHMEM_FLAVOUR} " else echo "$ac_t""no" 1>&6 echo "configure: warning: build test failed: I don't know how to build SHMEM programs on your system" 1>&2 have_shmem=no fi fi if test "$force_shmem$have_shmem" = yesno; then echo echo "configure error: User requested --enable-shmem but I don't know how to build shmem programs for your system" if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi fi if test "$enabled_shmem$have_shmem" = yesyes; then USE_SHMEM_CONDUIT_TRUE= USE_SHMEM_CONDUIT_FALSE='#' else USE_SHMEM_CONDUIT_TRUE='#' USE_SHMEM_CONDUIT_FALSE= fi if test "$enabled_shmem$have_shmem" = yesyes ; then CONDUITS="$CONDUITS shmem" echo " Shmem network conduit (shmem) ON" >> $CONDUIT_LIST else echo " Shmem network conduit (shmem) OFF" >> $CONDUIT_LIST fi #-------------------------------------------------------------------------------------------------------- # SCI configuration # Check whether --enable-sci or --disable-sci was given. if test "${enable_sci+set}" = set; then enableval="$enable_sci" : fi # Check whether --enable-sci or --disable-sci was given. if test "${enable_sci+set}" = set; then enableval="$enable_sci" : fi case "$enable_sci" in no) enabled_sci=no ;; yes) enabled_sci=yes;force_sci=yes ;; *) enabled_sci=yes ;; esac if test "$enabled_sci" = yes; then # Look for sci binaries in our path for ac_prog in scibench2 do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:19708: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_scibench2'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$scibench2" in /*) ac_cv_path_scibench2="$scibench2" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_scibench2="$scibench2" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_scibench2="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi scibench2="$ac_cv_path_scibench2" if test -n "$scibench2"; then echo "$ac_t""$scibench2" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$scibench2" && break done case "$scibench2" in '') sci_guess=/opt/DIS ;; *) sci_guess=`dirname $scibench2` sci_guess=`dirname $sci_guess` ;; esac # --------------------------------------- # [GASNET_ENV_DEFAULT](SCIHOME, $sci_guess) echo $ac_n "checking for SCIHOME in environment""... $ac_c" 1>&6 echo "configure:19758: checking for SCIHOME in environment" >&5 # Check whether --with-scihome or --without-scihome was given. if test "${with_scihome+set}" = set; then withval="$with_scihome" : fi envval_src_SCIHOME="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_SCIHOME'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${SCIHOME-__NOT_SET__}" in __NOT_SET__) if test "$with_scihome" != ""; then gasnet_cv_envvar_SCIHOME="$with_scihome" envval_src_SCIHOME=given else gasnet_cv_envvar_SCIHOME="$sci_guess" envval_src_SCIHOME=default fi ;; *) gasnet_cv_envvar_SCIHOME="$SCIHOME" envval_src_SCIHOME=given esac fi SCIHOME="$gasnet_cv_envvar_SCIHOME" case "$envval_src_SCIHOME" in 'cached') echo "$ac_t""using cached value \"$SCIHOME\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$SCIHOME\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$SCIHOME\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](SCI_INCLUDES, -I$SCIHOME/include -I$SCIHOME/lib/api) echo $ac_n "checking for SCI_INCLUDES in environment""... $ac_c" 1>&6 echo "configure:19814: checking for SCI_INCLUDES in environment" >&5 # Check whether --with-sci-includes or --without-sci-includes was given. if test "${with_sci_includes+set}" = set; then withval="$with_sci_includes" : fi envval_src_SCI_INCLUDES="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_SCI_INCLUDES'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${SCI_INCLUDES-__NOT_SET__}" in __NOT_SET__) if test "$with_sci_includes" != ""; then gasnet_cv_envvar_SCI_INCLUDES="$with_sci_includes" envval_src_SCI_INCLUDES=given else gasnet_cv_envvar_SCI_INCLUDES="-I$SCIHOME/include -I$SCIHOME/lib/api" envval_src_SCI_INCLUDES=default fi ;; *) gasnet_cv_envvar_SCI_INCLUDES="$SCI_INCLUDES" envval_src_SCI_INCLUDES=given esac fi SCI_INCLUDES="$gasnet_cv_envvar_SCI_INCLUDES" case "$envval_src_SCI_INCLUDES" in 'cached') echo "$ac_t""using cached value \"$SCI_INCLUDES\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$SCI_INCLUDES\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$SCI_INCLUDES\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- # --------------------------------------- # [GASNET_ENV_DEFAULT](SCI_LIBS, -L$SCIHOME/lib -lsisci) echo $ac_n "checking for SCI_LIBS in environment""... $ac_c" 1>&6 echo "configure:19870: checking for SCI_LIBS in environment" >&5 # Check whether --with-sci-libs or --without-sci-libs was given. if test "${with_sci_libs+set}" = set; then withval="$with_sci_libs" : fi envval_src_SCI_LIBS="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_SCI_LIBS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${SCI_LIBS-__NOT_SET__}" in __NOT_SET__) if test "$with_sci_libs" != ""; then gasnet_cv_envvar_SCI_LIBS="$with_sci_libs" envval_src_SCI_LIBS=given else gasnet_cv_envvar_SCI_LIBS="-L$SCIHOME/lib -lsisci" envval_src_SCI_LIBS=default fi ;; *) gasnet_cv_envvar_SCI_LIBS="$SCI_LIBS" envval_src_SCI_LIBS=given esac fi SCI_LIBS="$gasnet_cv_envvar_SCI_LIBS" case "$envval_src_SCI_LIBS" in 'cached') echo "$ac_t""using cached value \"$SCI_LIBS\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$SCI_LIBS\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$SCI_LIBS\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- echo $ac_n "checking for working SCI configuration""... $ac_c" 1>&6 echo "configure:19921: checking for working SCI configuration" >&5 # --------------------------------------- # [GASNET_PUSHVAR](CFLAGS, "$CFLAGS $SCI_INCLUDES") if test "$_pushcnt_CFLAGS" = "" ; then _pushcnt_CFLAGS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_CFLAGS_$_pushcnt_CFLAGS=\$CFLAGS _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` CFLAGS="$CFLAGS $SCI_INCLUDES" # --------------------------------------- # --------------------------------------- # [GASNET_PUSHVAR](LIBS, "$LIBS $SCI_LIBS") if test "$_pushcnt_LIBS" = "" ; then _pushcnt_LIBS=0 fi if test "$_total_pushcnt" = "" ; then _total_pushcnt=0 fi eval _pushedvar_LIBS_$_pushcnt_LIBS=\$LIBS _pushcnt_LIBS=`expr $_pushcnt_LIBS + 1` _total_pushcnt=`expr $_total_pushcnt + 1` LIBS="$LIBS $SCI_LIBS" # --------------------------------------- # try to compile and link a simple SCI program cat > conftest.$ac_ext < #include #include int main() { { sci_desc_t sd; sci_error_t err; SCIOpen(&sd, 0, &err); } ; return 0; } EOF if { (eval echo configure:19969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* have_sci=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* have_sci=no if test -f "conftest.$ac_ext" ; then cp conftest.$ac_ext gasnet_errsave_file fi if test -f "conftest.err" ; then cp conftest.err gasnet_errsave_err fi fi rm -f conftest* # --------------------------------------- # [GASNET_POPVAR](CFLAGS) if test "$_pushcnt_CFLAGS" -ge "1"; then _pushcnt_CFLAGS=`expr $_pushcnt_CFLAGS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval CFLAGS=\$_pushedvar_CFLAGS_$_pushcnt_CFLAGS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on CFLAGS" 1>&2; exit 1; } fi # --------------------------------------- # --------------------------------------- # [GASNET_POPVAR](LIBS) if test "$_pushcnt_LIBS" -ge "1"; then _pushcnt_LIBS=`expr $_pushcnt_LIBS - 1` _total_pushcnt=`expr $_total_pushcnt - 1` eval LIBS=\$_pushedvar_LIBS_$_pushcnt_LIBS else { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR underflow on LIBS" 1>&2; exit 1; } fi # --------------------------------------- echo "$ac_t""$have_sci" 1>&6 # Check for conflict if test "$force_sci$have_sci" = yesno; then echo echo "configure error: User requested --enable-sci but I don't know how to build SCI programs for your system." if test "" ; then if test -f "conftest.$ac_ext" ; then errfile=conftest.$ac_ext else errfile=gasnet_errsave_file fi if test -f "$errfile" ; then echo echo " --- Failed program --- " cat $errfile echo " -----------------------" fi fi if test -f "conftest.err" ; then errfile=conftest.err else errfile=gasnet_errsave_err fi if test -f "$errfile" ; then echo echo "Compilation error: " echo cat $errfile fi echo CONFIG_FILE=`pwd`/config.log { echo "configure: error: See $CONFIG_FILE for details." 1>&2; exit 1; } fi fi if test "$have_sci" = yes; then USE_SCI_CONDUIT_TRUE= USE_SCI_CONDUIT_FALSE='#' else USE_SCI_CONDUIT_TRUE='#' USE_SCI_CONDUIT_FALSE= fi if test "$have_sci" = yes ; then CONDUITS="$CONDUITS sci" echo " Dolphin SISCI network conduit (sci) ON" >> $CONDUIT_LIST else echo " Dolphin SISCI network conduit (sci) OFF" >> $CONDUIT_LIST fi ######################################################################## # Configure conduit-independent spawners # Things needed by ssh spawner for ac_hdr in netinet/tcp.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:20074: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:20084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done case "$target_os" in linux*) # Check whether --enable-ssh-prctl or --disable-ssh-prctl was given. if test "${enable_ssh_prctl+set}" = set; then enableval="$enable_ssh_prctl" : fi case "$enable_ssh_prctl" in '' | no) : ;; *) echo $ac_n "checking for PR_SET_PDEATHSIG""... $ac_c" 1>&6 echo "configure:20125: checking for PR_SET_PDEATHSIG" >&5 cat > conftest.$ac_ext < int main() { int rc = prctl(PR_SET_PDEATHSIG, 0); ; return 0; } EOF if { (eval echo configure:20138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF #define HAVE_PR_SET_PDEATHSIG 1 EOF else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""no" 1>&6 fi rm -f conftest* ;; esac ;; esac ######################################################################## # Check for broken asm/atomic.h on Linux case "$target_os" in linux*) echo $ac_n "checking for broken asm/atomic.h""... $ac_c" 1>&6 echo "configure:20165: checking for broken asm/atomic.h" >&5 cat > conftest.$ac_ext < #include #include int main() { atomic_t v; atomic_set(&v,5); atomic_inc(&v); #ifdef cmpxchg /* cmpxchg may fail to link when optimizations are disabled */ do { volatile int x = 1; cmpxchg(&x, 1, 2); } while (0); #endif ; return 0; } EOF if { (eval echo configure:20188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""ok" 1>&6 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""broken" 1>&6 cat >> confdefs.h <<\EOF #define BROKEN_LINUX_ASM_ATOMIC_H 1 EOF fi rm -f conftest* if test "$have_cxx" = 1; then # Do the same check for CXX as well ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking for broken asm/atomic.h with c++""... $ac_c" 1>&6 echo "configure:20214: checking for broken asm/atomic.h with c++" >&5 cat > conftest.$ac_ext < #include #include int main() { atomic_t v; atomic_set(&v,5); atomic_inc(&v); #ifdef cmpxchg /* cmpxchg may fail to link when optimizations are disabled */ do { volatile int x = 1; cmpxchg(&x, 1, 2); } while (0); #endif ; return 0; } EOF if { (eval echo configure:20237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""ok" 1>&6 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""broken" 1>&6 cat >> confdefs.h <<\EOF #define BROKEN_LINUX_ASM_ATOMIC_H 1 EOF fi rm -f conftest* ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross fi ;; esac # Check for alloca in C code # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 echo "configure:20270: checking for working alloca.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *p = (char *)alloca(2 * sizeof(int)); ; return 0; } EOF if { (eval echo configure:20282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_header_alloca_h=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_header_alloca_h=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 if test $ac_cv_header_alloca_h = yes; then cat >> confdefs.h <<\EOF #define HAVE_ALLOCA_H 1 EOF fi echo $ac_n "checking for alloca""... $ac_c" 1>&6 echo "configure:20303: checking for alloca" >&5 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < # define alloca _alloca # else # if HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ char *alloca (); # endif # endif # endif # endif #endif int main() { char *p = (char *) alloca(1); ; return 0; } EOF if { (eval echo configure:20336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_alloca_works=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_func_alloca_works=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 if test $ac_cv_func_alloca_works = yes; then cat >> confdefs.h <<\EOF #define HAVE_ALLOCA 1 EOF fi if test $ac_cv_func_alloca_works = no; then # 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=alloca.${ac_objext} cat >> confdefs.h <<\EOF #define C_ALLOCA 1 EOF echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 echo "configure:20368: checking whether alloca needs Cray hooks" >&5 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5 | egrep "webecray" >/dev/null 2>&1; then rm -rf conftest* ac_cv_os_cray=yes else rm -rf conftest* ac_cv_os_cray=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_os_cray" 1>&6 if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:20398: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); int main() { /* 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_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif ; return 0; } EOF if { (eval echo configure:20426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <&6 fi done fi echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 echo "configure:20453: checking stack direction for C alloca" >&5 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then ac_cv_c_stack_direction=0 else cat > conftest.$ac_ext < addr) ? 1 : -1; } main () { exit (find_stack_direction() < 0); } EOF if { (eval echo configure:20480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_stack_direction=1 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* ac_cv_c_stack_direction=-1 fi rm -fr conftest* fi fi echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 cat >> confdefs.h <&6 echo "configure:20507: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func(); int main() { /* 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_$ac_func) || defined (__stub___$ac_func) choke me #else $ac_func(); #endif ; return 0; } EOF if { (eval echo configure:20535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <&6 fi done ######################################################################## # Try to discover the C compiler's inline modifier inlinemod="" case "$gasnet_cv_cc_family" in Compaq) # force __inline on Compaq C, because it's the most effective cat >> confdefs.h <<\EOF #define CC_INLINE_MODIFIER __inline EOF inlinemod=__inline ;; XLC) # force __inline on XLC, to avoid warnings cat >> confdefs.h <<\EOF #define CC_INLINE_MODIFIER __inline EOF inlinemod=__inline ;; HP) # __inline crashes HP C when optimizations are disabled if test "$BUILDCONFIG" = "debug" ; then cat >> confdefs.h <<\EOF #define CC_INLINE_MODIFIER EOF inlinemod=" " fi ;; esac if test "$inlinemod" = ""; then echo $ac_n "checking for inline modifier""... $ac_c" 1>&6 echo "configure:20593: checking for inline modifier" >&5 if eval "test \"`echo '$''{'gasnet_cv_cc_modinline'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gasnet_cv_cc_modinline=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_cc_modinline=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_cc_modinline" 1>&6 if test "$gasnet_cv_cc_modinline" = yes; then : cat >> confdefs.h <<\EOF #define CC_INLINE_MODIFIER inline EOF inlinemod=inline else : fi fi if test "$inlinemod" = ""; then echo $ac_n "checking for __inline__ modifier""... $ac_c" 1>&6 echo "configure:20633: checking for __inline__ modifier" >&5 if eval "test \"`echo '$''{'gasnet_cv_cc_mod__inline__'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gasnet_cv_cc_mod__inline__=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_cc_mod__inline__=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_cc_mod__inline__" 1>&6 if test "$gasnet_cv_cc_mod__inline__" = yes; then : cat >> confdefs.h <<\EOF #define CC_INLINE_MODIFIER __inline__ EOF inlinemod=__inline__ else : fi fi if test "$inlinemod" = ""; then echo $ac_n "checking for __inline modifier""... $ac_c" 1>&6 echo "configure:20673: checking for __inline modifier" >&5 if eval "test \"`echo '$''{'gasnet_cv_cc_mod__inline'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gasnet_cv_cc_mod__inline=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_cc_mod__inline=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_cc_mod__inline" 1>&6 if test "$gasnet_cv_cc_mod__inline" = yes; then : cat >> confdefs.h <<\EOF #define CC_INLINE_MODIFIER __inline EOF inlinemod=__inline else : fi fi if test "$inlinemod" = ""; then echo $ac_n "checking for _inline modifier""... $ac_c" 1>&6 echo "configure:20713: checking for _inline modifier" >&5 if eval "test \"`echo '$''{'gasnet_cv_cc_mod_inline'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gasnet_cv_cc_mod_inline=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_cc_mod_inline=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_cc_mod_inline" 1>&6 if test "$gasnet_cv_cc_mod_inline" = yes; then : cat >> confdefs.h <<\EOF #define CC_INLINE_MODIFIER _inline EOF inlinemod=_inline else : fi fi if test "$inlinemod" = ""; then echo $ac_n "checking for _Inline modifier""... $ac_c" 1>&6 echo "configure:20753: checking for _Inline modifier" >&5 if eval "test \"`echo '$''{'gasnet_cv_cc_mod_Inline'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gasnet_cv_cc_mod_Inline=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_cc_mod_Inline=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_cc_mod_Inline" 1>&6 if test "$gasnet_cv_cc_mod_Inline" = yes; then : cat >> confdefs.h <<\EOF #define CC_INLINE_MODIFIER _Inline EOF inlinemod=_Inline else : fi fi if test "$inlinemod" != ""; then echo $ac_n "checking whether static $inlinemod works""... $ac_c" 1>&6 echo "configure:20793: checking whether static $inlinemod works" >&5 cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat >> confdefs.h <<\EOF #define STATIC_INLINE_WORKS 1 EOF echo "$ac_t""yes" 1>&6 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* echo "$ac_t""no" 1>&6 fi rm -f conftest* fi # Runtime Var Arrays #GASNET_IF_ENABLED_WITH_AUTO(vararray, Use stack arrays of variable size in code, #AC_DEFINE(VARARRAY_WORKS), #, #GASNET_TRY_CACHE_CHECK(for variable stack arrays, cc_vararray_mod, # [void dummy(int x) { char y[x]; }], [], # AC_DEFINE(VARARRAY_WORKS))) ######################################################################## # different high-precision sleep libraries # Check for usleep echo $ac_n "checking for usleep()""... $ac_c" 1>&6 echo "configure:20832: checking for usleep()" >&5 if eval "test \"`echo '$''{'gasnet_cv_cc_has_usleep'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { usleep(500); ; return 0; } EOF if { (eval echo configure:20848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gasnet_cv_cc_has_usleep=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_cc_has_usleep=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_cc_has_usleep" 1>&6 if test "$gasnet_cv_cc_has_usleep" = yes; then : echo $ac_n "checking for library containing usleep""... $ac_c" 1>&6 echo "configure:20865: checking for library containing usleep" >&5 if eval "test \"`echo '$''{'ac_cv_search_usleep'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_usleep="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_usleep="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_usleep" = "no" && for i in posix4; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_usleep="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_usleep" 1>&6 if test "$ac_cv_search_usleep" != "no"; then test "$ac_cv_search_usleep" = "none required" || LIBS="$ac_cv_search_usleep $LIBS" cat >> confdefs.h <<\EOF #define HAVE_USLEEP 1 EOF else : echo "$ac_t""entry point not found - disabled" 1>&6 fi else : fi # Check for nanosleep echo $ac_n "checking for nanosleep()""... $ac_c" 1>&6 echo "configure:20936: checking for nanosleep()" >&5 if eval "test \"`echo '$''{'gasnet_cv_cc_has_nanosleep'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include int main() { struct timespec tm, tmremaining; tm.tv_sec =1; tm.tv_nsec = 1000000; nanosleep(&tm, &tmremaining); ; return 0; } EOF if { (eval echo configure:20956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gasnet_cv_cc_has_nanosleep=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_cc_has_nanosleep=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_cc_has_nanosleep" 1>&6 if test "$gasnet_cv_cc_has_nanosleep" = yes; then : echo $ac_n "checking for library containing nanosleep""... $ac_c" 1>&6 echo "configure:20973: checking for library containing nanosleep" >&5 if eval "test \"`echo '$''{'ac_cv_search_nanosleep'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_nanosleep="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_nanosleep="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_nanosleep" = "no" && for i in posix4; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_nanosleep="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_nanosleep" 1>&6 if test "$ac_cv_search_nanosleep" != "no"; then test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS" cat >> confdefs.h <<\EOF #define HAVE_NANOSLEEP 1 EOF else : echo "$ac_t""entry point not found - disabled" 1>&6 fi else : fi # Check for nsleep echo $ac_n "checking for nsleep()""... $ac_c" 1>&6 echo "configure:21044: checking for nsleep()" >&5 if eval "test \"`echo '$''{'gasnet_cv_cc_has_nsleep'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include int main() { struct timespec tm, tmremaining; tm.tv_sec =1; tm.tv_nsec = 1000000; nsleep(&tm, &tmremaining); ; return 0; } EOF if { (eval echo configure:21064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gasnet_cv_cc_has_nsleep=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_cc_has_nsleep=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_cc_has_nsleep" 1>&6 if test "$gasnet_cv_cc_has_nsleep" = yes; then : echo $ac_n "checking for library containing nsleep""... $ac_c" 1>&6 echo "configure:21081: checking for library containing nsleep" >&5 if eval "test \"`echo '$''{'ac_cv_search_nsleep'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_nsleep="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_nsleep="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_nsleep" = "no" && for i in posix4; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_nsleep="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_nsleep" 1>&6 if test "$ac_cv_search_nsleep" != "no"; then test "$ac_cv_search_nsleep" = "none required" || LIBS="$ac_cv_search_nsleep $LIBS" cat >> confdefs.h <<\EOF #define HAVE_NSLEEP 1 EOF else : echo "$ac_t""entry point not found - disabled" 1>&6 fi else : fi # Check for sched_yield echo $ac_n "checking for sched_yield()""... $ac_c" 1>&6 echo "configure:21152: checking for sched_yield()" >&5 if eval "test \"`echo '$''{'gasnet_cv_cc_has_sched_yield'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { sched_yield(); ; return 0; } EOF if { (eval echo configure:21168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gasnet_cv_cc_has_sched_yield=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_cc_has_sched_yield=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_cc_has_sched_yield" 1>&6 if test "$gasnet_cv_cc_has_sched_yield" = yes; then : echo $ac_n "checking for library containing sched_yield""... $ac_c" 1>&6 echo "configure:21185: checking for library containing sched_yield" >&5 if eval "test \"`echo '$''{'ac_cv_search_sched_yield'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_sched_yield="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_sched_yield="none required" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* test "$ac_cv_search_sched_yield" = "no" && for i in posix4; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_sched_yield="-l$i" break else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done LIBS="$ac_func_search_save_LIBS" fi echo "$ac_t""$ac_cv_search_sched_yield" 1>&6 if test "$ac_cv_search_sched_yield" != "no"; then test "$ac_cv_search_sched_yield" = "none required" || LIBS="$ac_cv_search_sched_yield $LIBS" cat >> confdefs.h <<\EOF #define HAVE_SCHED_YIELD 1 EOF else : echo "$ac_t""entry point not found - disabled" 1>&6 fi else : fi # AC_FUNC_MMAP # Check for mmap functionality we actually use case "$target_os" in cygwin*) # mmap is known to be broken on Cygwin - dont even try HAVE_MMAP=0 ;; *) if test "$cross_compiling" = "yes" ; then if test "$cross_compiling" = "yes" ; then # --------------------------------------- # [GASNET_ENV_DEFAULT](CROSS_HAVE_MMAP, ) echo $ac_n "checking for CROSS_HAVE_MMAP in environment""... $ac_c" 1>&6 echo "configure:21272: checking for CROSS_HAVE_MMAP in environment" >&5 # Check whether --with-cross-have-mmap or --without-cross-have-mmap was given. if test "${with_cross_have_mmap+set}" = set; then withval="$with_cross_have_mmap" : fi envval_src_CROSS_HAVE_MMAP="cached" if eval "test \"`echo '$''{'gasnet_cv_envvar_CROSS_HAVE_MMAP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "${CROSS_HAVE_MMAP-__NOT_SET__}" in __NOT_SET__) if test "$with_cross_have_mmap" != ""; then gasnet_cv_envvar_CROSS_HAVE_MMAP="$with_cross_have_mmap" envval_src_CROSS_HAVE_MMAP=given else gasnet_cv_envvar_CROSS_HAVE_MMAP="" envval_src_CROSS_HAVE_MMAP=default fi ;; *) gasnet_cv_envvar_CROSS_HAVE_MMAP="$CROSS_HAVE_MMAP" envval_src_CROSS_HAVE_MMAP=given esac fi CROSS_HAVE_MMAP="$gasnet_cv_envvar_CROSS_HAVE_MMAP" case "$envval_src_CROSS_HAVE_MMAP" in 'cached') echo "$ac_t""using cached value \"$CROSS_HAVE_MMAP\"" 1>&6 ;; 'default') echo "$ac_t""no, defaulting to \"$CROSS_HAVE_MMAP\"" 1>&6 ;; 'given') echo "$ac_t""yes, using \"$CROSS_HAVE_MMAP\"" 1>&6 ;; *) { echo "configure: error: _GASNET_ENV_DEFAULT broken" 1>&2; exit 1; } esac # --------------------------------------- if test "$CROSS_HAVE_MMAP" = "" ; then { echo "configure: error: This configure script requires \$CROSS_HAVE_MMAP be set for cross-compilation" 1>&2; exit 1; } else HAVE_MMAP="$CROSS_HAVE_MMAP" fi fi else echo $ac_n "checking for working mmap()""... $ac_c" 1>&6 echo "configure:21332: checking for working mmap()" >&5 if eval "test \"`echo '$''{'gasnet_cv_have_mmap'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then { echo "configure: error: no default value for cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext < #include #include #include #include #include char junk[16384]; int testfd(int); int main() { int fd, retval; #if 0 char filename[255]; tmpnam(filename); /* unsafe */ fd = open(filename, O_RDWR | O_CREAT); #else char filename[255]; strcpy(filename,"/tmp/gasnet-conftemp-XXXXXX"); fd = mkstemp(filename); /* leaves crap laying around */ #endif retval = testfd(fd); close(fd); remove(filename); return retval; } int testfd(int fd) { void *ptr,*ptr2; if (fd == -1) return 1; if (write(fd, junk, 16384) == -1) return 2; ptr = mmap(0, 16384, (PROT_READ|PROT_WRITE), MAP_PRIVATE, fd, 0); if (ptr == MAP_FAILED || ptr == NULL) return 3; if (munmap(ptr,16384) != 0) return 4; ptr2 = mmap(ptr, 16384, (PROT_READ|PROT_WRITE), (MAP_PRIVATE | MAP_FIXED), fd, 0); if (ptr2 == MAP_FAILED || ptr2 == NULL || ptr2 != ptr) return 5; if (munmap(ptr,16384) != 0) return 6; return 0; } EOF if { (eval echo configure:21382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then gasnet_cv_have_mmap=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* gasnet_cv_have_mmap=no fi rm -fr conftest* fi fi echo "$ac_t""$gasnet_cv_have_mmap" 1>&6 if test "$gasnet_cv_have_mmap" = yes; then : HAVE_MMAP=1 else : HAVE_MMAP=0 fi fi ;; esac if test "$HAVE_MMAP" != "0" ; then cat >> confdefs.h <<\EOF #define HAVE_MMAP 1 EOF fi case "$target" in *-catamount-*) ;; # don't use mallopt on catamount, even if it appears to be available *) for ac_hdr in malloc.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:21421: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:21431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done echo $ac_n "checking for ptmalloc""... $ac_c" 1>&6 echo "configure:21459: checking for ptmalloc" >&5 if eval "test \"`echo '$''{'gasnet_cv_malloc_is_ptmalloc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #endif #if HAVE_MALLOC_H #include #endif int main() { mallopt(M_TRIM_THRESHOLD, -1); mallopt(M_MMAP_MAX, 0); ; return 0; } EOF if { (eval echo configure:21480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* gasnet_cv_malloc_is_ptmalloc=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_malloc_is_ptmalloc=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_malloc_is_ptmalloc" 1>&6 if test "$gasnet_cv_malloc_is_ptmalloc" = yes; then : cat >> confdefs.h <<\EOF #define HAVE_PTMALLOC 1 EOF else : fi esac case "$target" in *-blrts-*) debugmalloc_support=no ;; # debug malloc vars crash BG/L RTS *) debugmalloc_support=yes ;; # it's a glibc feature, but appears harmless elsewhere esac if test "$debugmalloc_support" = "yes"; then DEBUGMALLOC_TRUE= DEBUGMALLOC_FALSE='#' else DEBUGMALLOC_TRUE='#' DEBUGMALLOC_FALSE= fi ######################################################################## # Special GCC feature support # Check for __builtin_expect (GCC 3.0) echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6 echo "configure:21527: checking for __builtin_expect" >&5 if eval "test \"`echo '$''{'gasnet_cv_cc_has_builtin_expect'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* gasnet_cv_cc_has_builtin_expect=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_cc_has_builtin_expect=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_cc_has_builtin_expect" 1>&6 if test "$gasnet_cv_cc_has_builtin_expect" = yes; then : cat >> confdefs.h <<\EOF #define HAVE_BUILTIN_EXPECT 1 EOF else : fi echo $ac_n "checking for __builtin_prefetch""... $ac_c" 1>&6 echo "configure:21565: checking for __builtin_prefetch" >&5 if eval "test \"`echo '$''{'gasnet_cv_cc_has_builtin_prefetch'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* gasnet_cv_cc_has_builtin_prefetch=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_cc_has_builtin_prefetch=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_cc_has_builtin_prefetch" 1>&6 if test "$gasnet_cv_cc_has_builtin_prefetch" = yes; then : cat >> confdefs.h <<\EOF #define HAVE_BUILTIN_PREFETCH 1 EOF else : fi echo $ac_n "checking for __func__""... $ac_c" 1>&6 echo "configure:21603: checking for __func__" >&5 if eval "test \"`echo '$''{'gasnet_cv_cc_has_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* gasnet_cv_cc_has_func=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gasnet_cv_cc_has_func=no fi rm -f conftest* fi echo "$ac_t""$gasnet_cv_cc_has_func" 1>&6 if test "$gasnet_cv_cc_has_func" = yes; then : cat >> confdefs.h <<\EOF #define HAVE_FUNC 1 EOF else : fi ######################################################################## ## Misc Header checks for ac_hdr in sys/param.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:21646: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:21656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done ######################################################################## ## ## Supporting Command-Line Tools (continued) ## case "$target_os" in aix*) # If on AIX, and in 64 bit mode, we need to use 'ranlib -X64' and 'ar -X64' if test x"$ac_cv_sizeof_void_p" = x8; then AR="ar -X64" RANLIB="ranlib -X64" fi ;; osf*) # Tru64 has a default /bin/sh that emits error msgs for missing # commands, even when 2>/dev/null passed. Use posix shell instead. if test -x /usr/bin/posix/sh; then BOURNE_SHELL="/usr/bin/posix/sh" fi ;; esac if test x"$BOURNE_SHELL" = x; then BOURNE_SHELL="/bin/sh" fi case "$AR" in '') for ac_prog in $AR ar gar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:21716: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$AR" in /*) ac_cv_path_AR="$AR" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_AR="$AR" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_AR="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi AR="$ac_cv_path_AR" if test -n "$AR"; then echo "$ac_t""$AR" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$AR" && break done ;; *) echo $ac_n "checking for archiver""... $ac_c" 1>&6 echo "configure:21753: checking for archiver" >&5 echo "$ac_t""$AR" 1>&6 ;; esac case "$AR" in '') { echo "configure: error: cannot find archiver" 1>&2; exit 1; } ;; esac #AC_PROG_RANLIB case "$RANLIB" in '') for ac_prog in $RANLIB ranlib touch do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:21769: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$RANLIB" in /*) ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_RANLIB="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi RANLIB="$ac_cv_path_RANLIB" if test -n "$RANLIB"; then echo "$ac_t""$RANLIB" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$RANLIB" && break done ;; *) echo $ac_n "checking for ranlib""... $ac_c" 1>&6 echo "configure:21806: checking for ranlib" >&5 echo "$ac_t""$RANLIB" 1>&6 ;; esac case "$RANLIB" in '') { echo "configure: error: cannot find ranlib" 1>&2; exit 1; } ;; esac case "$target_os" in darwin*) RANLIB="$RANLIB -s -c" ;; # ensure correct common block behavior on darwin esac case "$BASENAME" in '') for ac_prog in $BASENAME basename do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:21824: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_BASENAME'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$BASENAME" in /*) ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_BASENAME="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi BASENAME="$ac_cv_path_BASENAME" if test -n "$BASENAME"; then echo "$ac_t""$BASENAME" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$BASENAME" && break done ;; *) echo $ac_n "checking for basename""... $ac_c" 1>&6 echo "configure:21861: checking for basename" >&5 echo "$ac_t""$BASENAME" 1>&6 ;; esac case "$BASENAME" in '') { echo "configure: error: cannot find basename" 1>&2; exit 1; } ;; esac case "$DIRNAME" in '') for ac_prog in $DIRNAME dirname do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:21876: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_DIRNAME'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$DIRNAME" in /*) ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_DIRNAME="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi DIRNAME="$ac_cv_path_DIRNAME" if test -n "$DIRNAME"; then echo "$ac_t""$DIRNAME" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$DIRNAME" && break done ;; *) echo $ac_n "checking for dirname""... $ac_c" 1>&6 echo "configure:21913: checking for dirname" >&5 echo "$ac_t""$DIRNAME" 1>&6 ;; esac case "$DIRNAME" in '') { echo "configure: error: cannot find dirname" 1>&2; exit 1; } ;; esac # Some platforms are lacking readlink, and we currently do not require it for ac_prog in $READLINK readlink do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:21927: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_READLINK'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$READLINK" in /*) ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_READLINK="$READLINK" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_READLINK="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi READLINK="$ac_cv_path_READLINK" if test -n "$READLINK"; then echo "$ac_t""$READLINK" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$READLINK" && break done # other optional commands for ac_prog in $TIMECMD time do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:21968: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_TIMECMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$TIMECMD" in /*) ac_cv_path_TIMECMD="$TIMECMD" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_TIMECMD="$TIMECMD" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="/usr/bin:${PATH}" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_TIMECMD="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi TIMECMD="$ac_cv_path_TIMECMD" if test -n "$TIMECMD"; then echo "$ac_t""$TIMECMD" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$TIMECMD" && break done for ac_prog in $ENVCMD env do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:22008: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_ENVCMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$ENVCMD" in /*) ac_cv_path_ENVCMD="$ENVCMD" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_ENVCMD="$ENVCMD" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="/usr/bin/:${PATH}" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_ENVCMD="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;; esac fi ENVCMD="$ac_cv_path_ENVCMD" if test -n "$ENVCMD"; then echo "$ac_t""$ENVCMD" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$ENVCMD" && break done ######################################################################## # complete linker setup case "$target_os" in aix*) # AIX linker doesn't allow large enough TOC by default to accomodate # most large applications # LDFLAGS="$LDFLAGS -Wl,-bbigtoc" # set the data segment size to the largest permitted size for 32-bit apps (2GB) # MLW: No. (1) this has no effect when building libraries, only executables # and should be under control of end user. # (2) If this was used for a executable in a 32 bit app there would # only be one segment left for mmap and shared memory segments # and GASNET allocs shared mem region using mmap. # LDFLAGS="$LDFLAGS -Wl,-bmaxdata:0x80000000" ;; darwin*) # Darwin linker complains about symbols defined in multiple dynamic libs. # This is a minor annoyance in some cases, however it becomes a fatal error # when linking with the mpich libs. LDFLAGS="$LDFLAGS -Wl,-multiply_defined,suppress" ;; esac # Figure out how to install config files GASNET_INSTALL_CMD="sed -e '/###NOINSTALL###/d' -e 's@###INSTALL_PREFIX###@\$(prefix)@g'" TOOL_PREFIX=gasnet # Check whether --with-tool-prefix or --without-tool-prefix was given. if test "${with_tool_prefix+set}" = set; then withval="$with_tool_prefix" case "$withval" in no) : ;; *) TOOL_PREFIX=$withval ;; esac else : fi ######################################################################## ## ## Final Output ## gasnet_cv_exec_list="$gasnet_cv_exec_list gm-conduit/contrib/gasnetrun_gm" gasnet_cv_exec_list="$gasnet_cv_exec_list mpi-conduit/contrib/gasnetrun_mpi" gasnet_cv_exec_list="$gasnet_cv_exec_list sci-conduit/contrib/gasnetrun_sci" gasnet_cv_exec_list="$gasnet_cv_exec_list vapi-conduit/contrib/gasnetrun_vapi" gasnet_cv_exec_list="$gasnet_cv_exec_list other/contrib/gasnet_trace" # Files added here should also be added to ./unBootstrap rm -f gasnet_errsave_file gasnet_errsave_err for varname in $gasnet_cv_acenv_list; do val=`eval echo '$'"$varname"` if test "$val" != ""; then cachevarname=gasnet_cv_acenv_$varname eval $cachevarname=\"$val\" fi done if test "$_total_pushcnt" -ge "1" ; then { echo "configure: error: INTERNAL ERROR: GASNET_PUSH/POPVAR mismatch: $_total_pushcnt more pushes than pops" 1>&2; exit 1; } fi trap '' 1 2 15 cat > confcache <<\EOF # 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. It is not useful on other systems. # If it contains results you don't want to keep, you may remove or edit it. # # By default, configure uses ./config.cache as the cache file, # creating it if it does not exist already. You can give configure # the --cache-file=FILE option to use a different cache file; that is # what configure does when it calls configure scripts in # subdirectories, so they share the cache. # Giving --cache-file=/dev/null disables caching, for debugging configure. # config.status only pays attention to the cache file if you give it the # --recheck option to rerun configure. # EOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # 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. (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). sed -n \ -e "s/'/'\\\\''/g" \ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ;; esac >> 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 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Any assignment to VPATH causes Sun make to only execute # the first set of double-colon rules, so remove it if not needed. # If there is a colon in the path, we need to keep it. if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' fi trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 DEFS=-DHAVE_CONFIG_H # Without the "./", some shells look in PATH for config.status. : ${CONFIG_STATUS=./config.status} echo creating $CONFIG_STATUS rm -f $CONFIG_STATUS cat > $CONFIG_STATUS </dev/null | sed 1q`: # # $0 $ac_configure_args # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" for ac_option do case "\$ac_option" in -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) echo "$CONFIG_STATUS generated by autoconf version 2.13" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; *) echo "\$ac_cs_usage"; exit 1 ;; esac done ac_given_srcdir=$srcdir ac_given_INSTALL="$INSTALL" trap 'rm -fr `echo "Makefile other/perlstart mpi-conduit/Makefile mpi-conduit/conduit.mak mpi-conduit/contrib/Makefile mpi-conduit/contrib/gasnetrun_mpi udp-conduit/Makefile udp-conduit/conduit.mak gm-conduit/Makefile gm-conduit/conduit.mak gm-conduit/contrib/Makefile gm-conduit/contrib/gasnetrun_gm lapi-conduit/Makefile lapi-conduit/conduit.mak sci-conduit/Makefile sci-conduit/conduit.mak sci-conduit/contrib/Makefile sci-conduit/contrib/gasnetrun_sci smp-conduit/Makefile smp-conduit/conduit.mak elan-conduit/Makefile elan-conduit/conduit.mak vapi-conduit/Makefile vapi-conduit/conduit.mak vapi-conduit/contrib/Makefile vapi-conduit/contrib/gasnetrun_vapi shmem-conduit/Makefile shmem-conduit/conduit.mak other/Makefile other/Makefile-conduit.mak other/fragment-head.mak other/fragment-body.mak other/ammpi/Makefile other/amudp/Makefile other/contrib/Makefile other/contrib/gasnet_trace other/testspawn/Makefile tests/Makefile config-aux/Makefile gasnet_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF $ac_vpsub $extrasub s%@SHELL@%$SHELL%g s%@CFLAGS@%$CFLAGS%g s%@CPPFLAGS@%$CPPFLAGS%g s%@CXXFLAGS@%$CXXFLAGS%g s%@FFLAGS@%$FFLAGS%g s%@DEFS@%$DEFS%g s%@LDFLAGS@%$LDFLAGS%g s%@LIBS@%$LIBS%g s%@exec_prefix@%$exec_prefix%g s%@prefix@%$prefix%g s%@program_transform_name@%$program_transform_name%g s%@bindir@%$bindir%g s%@sbindir@%$sbindir%g s%@libexecdir@%$libexecdir%g s%@datadir@%$datadir%g s%@sysconfdir@%$sysconfdir%g s%@sharedstatedir@%$sharedstatedir%g s%@localstatedir@%$localstatedir%g s%@libdir@%$libdir%g s%@includedir@%$includedir%g s%@oldincludedir@%$oldincludedir%g s%@infodir@%$infodir%g s%@mandir@%$mandir%g s%@host@%$host%g s%@host_alias@%$host_alias%g s%@host_cpu@%$host_cpu%g s%@host_vendor@%$host_vendor%g s%@host_os@%$host_os%g s%@target@%$target%g s%@target_alias@%$target_alias%g s%@target_cpu@%$target_cpu%g s%@target_vendor@%$target_vendor%g s%@target_os@%$target_os%g s%@build@%$build%g s%@build_alias@%$build_alias%g s%@build_cpu@%$build_cpu%g s%@build_vendor@%$build_vendor%g s%@build_os@%$build_os%g s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g s%@INSTALL_DATA@%$INSTALL_DATA%g s%@PACKAGE@%$PACKAGE%g s%@VERSION@%$VERSION%g s%@ACLOCAL@%$ACLOCAL%g s%@AUTOCONF@%$AUTOCONF%g s%@AUTOMAKE@%$AUTOMAKE%g s%@AUTOHEADER@%$AUTOHEADER%g s%@MAKEINFO@%$MAKEINFO%g s%@SET_MAKE@%$SET_MAKE%g s%@PWD_PROG@%$PWD_PROG%g s%@AWK@%$AWK%g s%@CONFIGURE_ARGS@%$CONFIGURE_ARGS%g s%@TOP_SRCDIR@%$TOP_SRCDIR%g s%@TOP_BUILDDIR@%$TOP_BUILDDIR%g s%@BUILD_IS_SRC_TRUE@%$BUILD_IS_SRC_TRUE%g s%@BUILD_IS_SRC_FALSE@%$BUILD_IS_SRC_FALSE%g s%@BUILD_IS_SRC@%$BUILD_IS_SRC%g s%@SYSTEM_NAME@%$SYSTEM_NAME%g s%@SYSTEM_TUPLE@%$SYSTEM_TUPLE%g s%@BUILD_ID@%$BUILD_ID%g s%@GMAKE@%$GMAKE%g s%@NM@%$NM%g s%@GNU_NM_TRUE@%$GNU_NM_TRUE%g s%@GNU_NM_FALSE@%$GNU_NM_FALSE%g s%@PERL@%$PERL%g s%@GASNET_PERL_BYTESFLAG@%$GASNET_PERL_BYTESFLAG%g /@PERLSTART@/r $PERLSTART s%@PERLSTART@%%g s%@CC@%$CC%g s%@CPP@%$CPP%g s%@gasnet_cv__gfp_fullprogname_CPP@%$gasnet_cv__gfp_fullprogname_CPP%g s%@gasnet_cv__gfp_fullprogname_CC@%$gasnet_cv__gfp_fullprogname_CC%g s%@CROSS_COMPILING_TRUE@%$CROSS_COMPILING_TRUE%g s%@CROSS_COMPILING_FALSE@%$CROSS_COMPILING_FALSE%g s%@CROSS_COMPILING@%$CROSS_COMPILING%g s%@LN_S@%$LN_S%g s%@have_mpcc_r@%$have_mpcc_r%g s%@CC_FAMILY@%$CC_FAMILY%g s%@CC_UNWRAPPED@%$CC_UNWRAPPED%g s%@CC_WRAPPED@%$CC_WRAPPED%g /@cc_wrapper_mk@/r $cc_wrapper_mk s%@cc_wrapper_mk@%%g s%@BUILDCONFIG_DEBUG_TRUE@%$BUILDCONFIG_DEBUG_TRUE%g s%@BUILDCONFIG_DEBUG_FALSE@%$BUILDCONFIG_DEBUG_FALSE%g s%@BUILDCONFIG_DEBUG_VERBOSE_TRUE@%$BUILDCONFIG_DEBUG_VERBOSE_TRUE%g s%@BUILDCONFIG_DEBUG_VERBOSE_FALSE@%$BUILDCONFIG_DEBUG_VERBOSE_FALSE%g s%@BUILDCONFIG_TRACE_TRUE@%$BUILDCONFIG_TRACE_TRUE%g s%@BUILDCONFIG_TRACE_FALSE@%$BUILDCONFIG_TRACE_FALSE%g s%@BUILDCONFIG_STATS_TRUE@%$BUILDCONFIG_STATS_TRUE%g s%@BUILDCONFIG_STATS_FALSE@%$BUILDCONFIG_STATS_FALSE%g s%@MISC_CFLAGS@%$MISC_CFLAGS%g s%@MISC_CPPFLAGS@%$MISC_CPPFLAGS%g s%@BUILDCONFIG_DEFINES@%$BUILDCONFIG_DEFINES%g s%@GASNET_SEGMENT_FAST_TRUE@%$GASNET_SEGMENT_FAST_TRUE%g s%@GASNET_SEGMENT_FAST_FALSE@%$GASNET_SEGMENT_FAST_FALSE%g s%@GASNET_SEGMENT_LARGE_TRUE@%$GASNET_SEGMENT_LARGE_TRUE%g s%@GASNET_SEGMENT_LARGE_FALSE@%$GASNET_SEGMENT_LARGE_FALSE%g s%@GASNET_SEGMENT_EVERYTHING_TRUE@%$GASNET_SEGMENT_EVERYTHING_TRUE%g s%@GASNET_SEGMENT_EVERYTHING_FALSE@%$GASNET_SEGMENT_EVERYTHING_FALSE%g s%@LIBGCC@%$LIBGCC%g s%@SIZEOF_CHAR@%$SIZEOF_CHAR%g s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g s%@SIZEOF_INT@%$SIZEOF_INT%g s%@SIZEOF_LONG@%$SIZEOF_LONG%g s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g s%@SIZEOF_VOID_P@%$SIZEOF_VOID_P%g s%@PLATFORM_ILP32_TRUE@%$PLATFORM_ILP32_TRUE%g s%@PLATFORM_ILP32_FALSE@%$PLATFORM_ILP32_FALSE%g s%@PLATFORM_LP64_TRUE@%$PLATFORM_LP64_TRUE%g s%@PLATFORM_LP64_FALSE@%$PLATFORM_LP64_FALSE%g s%@PLATFORM_ILP64_TRUE@%$PLATFORM_ILP64_TRUE%g s%@PLATFORM_ILP64_FALSE@%$PLATFORM_ILP64_FALSE%g s%@COMPLETE_STDINT_H@%$COMPLETE_STDINT_H%g s%@COMPLETE_INTTYPES_H@%$COMPLETE_INTTYPES_H%g s%@COMPLETE_SYS_TYPES_H@%$COMPLETE_SYS_TYPES_H%g s%@INTTYPES_DEFINES@%$INTTYPES_DEFINES%g s%@LIBM@%$LIBM%g s%@REXEC@%$REXEC%g s%@GASNET_MACHINE_DEFINES@%$GASNET_MACHINE_DEFINES%g s%@GASNET_THREAD_DEFINES@%$GASNET_THREAD_DEFINES%g s%@GASNET_THREAD_LIBS@%$GASNET_THREAD_LIBS%g s%@GASNET_REXEC_DEFINES@%$GASNET_REXEC_DEFINES%g s%@EXESUFFIX@%$EXESUFFIX%g s%@HAVE_PTHREAD_TRUE@%$HAVE_PTHREAD_TRUE%g s%@HAVE_PTHREAD_FALSE@%$HAVE_PTHREAD_FALSE%g s%@PTHREADS@%$PTHREADS%g s%@CONDUITS@%$CONDUITS%g s%@CXX@%$CXX%g s%@CXXCPP@%$CXXCPP%g s%@gasnet_cv__gfp_fullprogname_CXXCPP@%$gasnet_cv__gfp_fullprogname_CXXCPP%g s%@CXXCPPFLAGS@%$CXXCPPFLAGS%g s%@gasnet_cv__gfp_fullprogname_CXX@%$gasnet_cv__gfp_fullprogname_CXX%g s%@CXX_FAMILY@%$CXX_FAMILY%g s%@CXX_UNWRAPPED@%$CXX_UNWRAPPED%g s%@CXX_WRAPPED@%$CXX_WRAPPED%g s%@MISC_CXXFLAGS@%$MISC_CXXFLAGS%g s%@HAVE_CXX_TRUE@%$HAVE_CXX_TRUE%g s%@HAVE_CXX_FALSE@%$HAVE_CXX_FALSE%g s%@GASNET_UDP_LIBS@%$GASNET_UDP_LIBS%g s%@USE_UDP_CONDUIT_TRUE@%$USE_UDP_CONDUIT_TRUE%g s%@USE_UDP_CONDUIT_FALSE@%$USE_UDP_CONDUIT_FALSE%g s%@gasnet_cv__gfp_fullprogname_MPI_CC@%$gasnet_cv__gfp_fullprogname_MPI_CC%g s%@gasnet_cv__gfp_fullprogname_MPIRUN_CMD@%$gasnet_cv__gfp_fullprogname_MPIRUN_CMD%g s%@MPI_CC@%$MPI_CC%g s%@MPI_CFLAGS@%$MPI_CFLAGS%g s%@MPI_LIBS@%$MPI_LIBS%g s%@MPI_DEFINES@%$MPI_DEFINES%g s%@MPIRUN_CMD@%$MPIRUN_CMD%g s%@USE_MPI_CONDUIT_TRUE@%$USE_MPI_CONDUIT_TRUE%g s%@USE_MPI_CONDUIT_FALSE@%$USE_MPI_CONDUIT_FALSE%g s%@USE_SMP_CONDUIT_TRUE@%$USE_SMP_CONDUIT_TRUE%g s%@USE_SMP_CONDUIT_FALSE@%$USE_SMP_CONDUIT_FALSE%g s%@gm_board_info@%$gm_board_info%g s%@GM_INCLUDE@%$GM_INCLUDE%g s%@GM_LIB@%$GM_LIB%g s%@GM_NO_ALIAS@%$GM_NO_ALIAS%g s%@GM_MPI_COMPAT@%$GM_MPI_COMPAT%g s%@USE_GM_CONDUIT_TRUE@%$USE_GM_CONDUIT_TRUE%g s%@USE_GM_CONDUIT_FALSE@%$USE_GM_CONDUIT_FALSE%g s%@GM_MPI_COMPAT_TRUE@%$GM_MPI_COMPAT_TRUE%g s%@GM_MPI_COMPAT_FALSE@%$GM_MPI_COMPAT_FALSE%g s%@GM_RODATA_WORKAROUND_TRUE@%$GM_RODATA_WORKAROUND_TRUE%g s%@GM_RODATA_WORKAROUND_FALSE@%$GM_RODATA_WORKAROUND_FALSE%g s%@LAPI_LD@%$LAPI_LD%g s%@USE_LAPI_CONDUIT_TRUE@%$USE_LAPI_CONDUIT_TRUE%g s%@USE_LAPI_CONDUIT_FALSE@%$USE_LAPI_CONDUIT_FALSE%g s%@ELAN_INCLUDE@%$ELAN_INCLUDE%g s%@ELAN_LIBS@%$ELAN_LIBS%g s%@USE_ELAN_CONDUIT_TRUE@%$USE_ELAN_CONDUIT_TRUE%g s%@USE_ELAN_CONDUIT_FALSE@%$USE_ELAN_CONDUIT_FALSE%g s%@GASNET_VAPI_SPAWNER@%$GASNET_VAPI_SPAWNER%g s%@VAPI_INCLUDE@%$VAPI_INCLUDE%g s%@VAPI_LIBDIR@%$VAPI_LIBDIR%g s%@VAPI_LIBS@%$VAPI_LIBS%g s%@VAPI_LIBCFLAGS@%$VAPI_LIBCFLAGS%g s%@VAPI_NO_ALIAS@%$VAPI_NO_ALIAS%g s%@USE_VAPI_CONDUIT_TRUE@%$USE_VAPI_CONDUIT_TRUE%g s%@USE_VAPI_CONDUIT_FALSE@%$USE_VAPI_CONDUIT_FALSE%g s%@VAPI_BOOTSTRAP_MPI_TRUE@%$VAPI_BOOTSTRAP_MPI_TRUE%g s%@VAPI_BOOTSTRAP_MPI_FALSE@%$VAPI_BOOTSTRAP_MPI_FALSE%g s%@VAPI_RCV_THREAD_TRUE@%$VAPI_RCV_THREAD_TRUE%g s%@VAPI_RCV_THREAD_FALSE@%$VAPI_RCV_THREAD_FALSE%g s%@SHMEM_INCLUDE@%$SHMEM_INCLUDE%g s%@SHMEM_LIBDIR@%$SHMEM_LIBDIR%g s%@SHMEM_LIBS@%$SHMEM_LIBS%g s%@SHMEM_FLAGS@%$SHMEM_FLAGS%g s%@USE_SHMEM_CONDUIT_TRUE@%$USE_SHMEM_CONDUIT_TRUE%g s%@USE_SHMEM_CONDUIT_FALSE@%$USE_SHMEM_CONDUIT_FALSE%g s%@scibench2@%$scibench2%g s%@SCI_INCLUDES@%$SCI_INCLUDES%g s%@SCI_LIBS@%$SCI_LIBS%g s%@USE_SCI_CONDUIT_TRUE@%$USE_SCI_CONDUIT_TRUE%g s%@USE_SCI_CONDUIT_FALSE@%$USE_SCI_CONDUIT_FALSE%g s%@ALLOCA@%$ALLOCA%g s%@DEBUGMALLOC_TRUE@%$DEBUGMALLOC_TRUE%g s%@DEBUGMALLOC_FALSE@%$DEBUGMALLOC_FALSE%g s%@AR@%$AR%g s%@RANLIB@%$RANLIB%g s%@BASENAME@%$BASENAME%g s%@DIRNAME@%$DIRNAME%g s%@READLINK@%$READLINK%g s%@TIMECMD@%$TIMECMD%g s%@ENVCMD@%$ENVCMD%g s%@BOURNE_SHELL@%$BOURNE_SHELL%g s%@GASNET_INSTALL_CMD@%$GASNET_INSTALL_CMD%g s%@TOOL_PREFIX@%$TOOL_PREFIX%g CEOF EOF cat >> $CONFIG_STATUS <<\EOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. ac_file=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_cmds # Line after last line for current file. ac_more_lines=: ac_sed_cmds="" while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file else sed "${ac_end}q" conftest.subs > conftest.s$ac_file fi if test ! -s conftest.s$ac_file; then ac_more_lines=false rm -f conftest.s$ac_file else if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f conftest.s$ac_file" else ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" fi ac_file=`expr $ac_file + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_cmds` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" # A "../" for each directory in $ac_dir_suffix. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` else ac_dir_suffix= ac_dots= fi case "$ac_given_srcdir" in .) srcdir=. if test -z "$ac_dots"; then top_srcdir=. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; *) # Relative path. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" top_srcdir="$ac_dots$ac_given_srcdir" ;; esac case "$ac_given_INSTALL" in [/$]*) INSTALL="$ac_given_INSTALL" ;; *) INSTALL="$ac_dots$ac_given_INSTALL" ;; esac echo creating "$ac_file" rm -f "$ac_file" configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." case "$ac_file" in *Makefile*) ac_comsub="1i\\ # $configure_input" ;; *) ac_comsub= ;; esac ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` sed -e "$ac_comsub s%@configure_input@%$configure_input%g s%@srcdir@%$srcdir%g s%@top_srcdir@%$top_srcdir%g s%@INSTALL@%$INSTALL%g " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file fi; done rm -f conftest.s* # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' ac_dC='\3' ac_dD='%g' # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='\([ ]\)%\1#\2define\3' ac_uC=' ' ac_uD='\4%g' # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_eB='$%\1#\2define\3' ac_eC=' ' ac_eD='%g' if test "${CONFIG_HEADERS+set}" != set; then EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF fi for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac echo creating $ac_file rm -f conftest.frag conftest.in conftest.out ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` cat $ac_file_inputs > conftest.in EOF # Transform confdefs.h into a sed script conftest.vals that substitutes # the proper values into config.h.in to produce config.h. And first: # Protect against being on the right side of a sed subst in config.status. # Protect against being in an unquoted here document in config.status. rm -f conftest.vals cat > conftest.hdr <<\EOF s/[\\&%]/\\&/g s%[\\$`]%\\&%g s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp s%ac_d%ac_u%gp s%ac_u%ac_e%gp EOF sed -n -f conftest.hdr confdefs.h > conftest.vals rm -f conftest.hdr # This sed command replaces #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. cat >> conftest.vals <<\EOF s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% EOF # Break up conftest.vals because some shells have a limit on # the size of here documents, and old seds have small limits too. rm -f conftest.tail while : do ac_lines=`grep -c . conftest.vals` # grep -c gives empty output for an empty file on some AIX systems. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi # Write a limited-size here document to conftest.frag. echo ' cat > conftest.frag <> $CONFIG_STATUS sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS echo 'CEOF sed -f conftest.frag conftest.in > conftest.out rm -f conftest.in mv conftest.out conftest.in ' >> $CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail rm -f conftest.vals mv conftest.tail conftest.vals done rm -f conftest.vals cat >> $CONFIG_STATUS <<\EOF rm -f conftest.frag conftest.h echo "/* $ac_file. Generated automatically by configure. */" > conftest.h cat conftest.in >> conftest.h rm -f conftest.in if cmp -s $ac_file conftest.h 2>/dev/null; then echo "$ac_file is unchanged" rm -f conftest.h else # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" fi rm -f $ac_file mv conftest.h $ac_file fi fi; done EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h for file in $gasnet_cv_exec_list; do case "$CONFIG_FILES" in *${file}*) chmod +x ${file} ;; esac done CONDUIT_LIST=.gasnet-conduit-list.tmp if test -f "$CONDUIT_LIST" ; then echo "----------------------------------------------------------------------" echo "GASNet conduit configuration: $CONDUITS" cat $CONDUIT_LIST echo " " echo " Some conduits require --enable-XXX configure flags and/or additional" echo " variables providing the install location of vendor drivers." echo " See the GASNet documentation for details." echo "----------------------------------------------------------------------" rm -f $CONDUIT_LIST fi exit 0 EOF chmod +x $CONFIG_STATUS rm -fr confdefs* $ac_clean_files test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1