| 1 | #! /bin/sh | 
| 2 | # Guess values for system-dependent variables and create Makefiles. | 
| 3 | # Generated by GNU Autoconf 2.57 for OOPSE 1.0. | 
| 4 | # | 
| 5 | # Report bugs to <gezelter@nd.edu>. | 
| 6 | # | 
| 7 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | 
| 8 | # Free Software Foundation, Inc. | 
| 9 | # This configure script is free software; the Free Software Foundation | 
| 10 | # gives unlimited permission to copy, distribute and modify it. | 
| 11 | ## --------------------- ## | 
| 12 | ## M4sh Initialization.  ## | 
| 13 | ## --------------------- ## | 
| 14 |  | 
| 15 | # Be Bourne compatible | 
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
| 17 | emulate sh | 
| 18 | NULLCMD=: | 
| 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
| 20 | # is contrary to our usage.  Disable this feature. | 
| 21 | alias -g '${1+"$@"}'='"$@"' | 
| 22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | 
| 23 | set -o posix | 
| 24 | fi | 
| 25 |  | 
| 26 | # Support unset when possible. | 
| 27 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | 
| 28 | as_unset=unset | 
| 29 | else | 
| 30 | as_unset=false | 
| 31 | fi | 
| 32 |  | 
| 33 |  | 
| 34 | # Work around bugs in pre-3.0 UWIN ksh. | 
| 35 | $as_unset ENV MAIL MAILPATH | 
| 36 | PS1='$ ' | 
| 37 | PS2='> ' | 
| 38 | PS4='+ ' | 
| 39 |  | 
| 40 | # NLS nuisances. | 
| 41 | for as_var in \ | 
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
| 44 | LC_TELEPHONE LC_TIME | 
| 45 | do | 
| 46 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | 
| 47 | eval $as_var=C; export $as_var | 
| 48 | else | 
| 49 | $as_unset $as_var | 
| 50 | fi | 
| 51 | done | 
| 52 |  | 
| 53 | # Required to use basename. | 
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
| 55 | as_expr=expr | 
| 56 | else | 
| 57 | as_expr=false | 
| 58 | fi | 
| 59 |  | 
| 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | 
| 61 | as_basename=basename | 
| 62 | else | 
| 63 | as_basename=false | 
| 64 | fi | 
| 65 |  | 
| 66 |  | 
| 67 | # Name of the executable. | 
| 68 | as_me=`$as_basename "$0" || | 
| 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
| 70 | X"$0" : 'X\(//\)$' \| \ | 
| 71 | X"$0" : 'X\(/\)$' \| \ | 
| 72 | .     : '\(.\)' 2>/dev/null || | 
| 73 | echo X/"$0" | | 
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | 
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } | 
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } | 
| 77 | s/.*/./; q'` | 
| 78 |  | 
| 79 |  | 
| 80 | # PATH needs CR, and LINENO needs CR and PATH. | 
| 81 | # Avoid depending upon Character Ranges. | 
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
| 85 | as_cr_digits='0123456789' | 
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| 87 |  | 
| 88 | # The user is always right. | 
| 89 | if test "${PATH_SEPARATOR+set}" != set; then | 
| 90 | echo "#! /bin/sh" >conf$$.sh | 
| 91 | echo  "exit 0"   >>conf$$.sh | 
| 92 | chmod +x conf$$.sh | 
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
| 94 | PATH_SEPARATOR=';' | 
| 95 | else | 
| 96 | PATH_SEPARATOR=: | 
| 97 | fi | 
| 98 | rm -f conf$$.sh | 
| 99 | fi | 
| 100 |  | 
| 101 |  | 
| 102 | as_lineno_1=$LINENO | 
| 103 | as_lineno_2=$LINENO | 
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && | 
| 106 | test "x$as_lineno_3"  = "x$as_lineno_2"  || { | 
| 107 | # Find who we are.  Look in the path if we contain no path at all | 
| 108 | # relative or not. | 
| 109 | case $0 in | 
| 110 | *[\\/]* ) as_myself=$0 ;; | 
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| 112 | for as_dir in $PATH | 
| 113 | do | 
| 114 | IFS=$as_save_IFS | 
| 115 | test -z "$as_dir" && as_dir=. | 
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
| 117 | done | 
| 118 |  | 
| 119 | ;; | 
| 120 | esac | 
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
| 122 | # in which case we are not to be found in the path. | 
| 123 | if test "x$as_myself" = x; then | 
| 124 | as_myself=$0 | 
| 125 | fi | 
| 126 | if test ! -f "$as_myself"; then | 
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | 
| 128 | { (exit 1); exit 1; }; } | 
| 129 | fi | 
| 130 | case $CONFIG_SHELL in | 
| 131 | '') | 
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
| 134 | do | 
| 135 | IFS=$as_save_IFS | 
| 136 | test -z "$as_dir" && as_dir=. | 
| 137 | for as_base in sh bash ksh sh5; do | 
| 138 | case $as_dir in | 
| 139 | /*) | 
| 140 | if ("$as_dir/$as_base" -c ' | 
| 141 | as_lineno_1=$LINENO | 
| 142 | as_lineno_2=$LINENO | 
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && | 
| 145 | test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then | 
| 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | 
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | 
| 148 | CONFIG_SHELL=$as_dir/$as_base | 
| 149 | export CONFIG_SHELL | 
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | 
| 151 | fi;; | 
| 152 | esac | 
| 153 | done | 
| 154 | done | 
| 155 | ;; | 
| 156 | esac | 
| 157 |  | 
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
| 159 | # uniformly replaced by the line number.  The first 'sed' inserts a | 
| 160 | # line-number line before each line; the second 'sed' does the real | 
| 161 | # work.  The second script uses 'N' to pair each line-number line | 
| 162 | # with the numbered line, and appends trailing '-' during | 
| 163 | # substitution so that $LINENO is not a special case at line end. | 
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
| 165 | # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-) | 
| 166 | sed '=' <$as_myself | | 
| 167 | sed ' | 
| 168 | N | 
| 169 | s,$,-, | 
| 170 | : loop | 
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | 
| 172 | t loop | 
| 173 | s,-$,, | 
| 174 | s,^['$as_cr_digits']*\n,, | 
| 175 | ' >$as_me.lineno && | 
| 176 | chmod +x $as_me.lineno || | 
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | 
| 178 | { (exit 1); exit 1; }; } | 
| 179 |  | 
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems | 
| 181 | # (the dirname of $[0] is not the place where we might find the | 
| 182 | # original and so on.  Autoconf is especially sensible to this). | 
| 183 | . ./$as_me.lineno | 
| 184 | # Exit status is that of the last command. | 
| 185 | exit | 
| 186 | } | 
| 187 |  | 
| 188 |  | 
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | 
| 190 | *c*,-n*) ECHO_N= ECHO_C=' | 
| 191 | ' ECHO_T='      ' ;; | 
| 192 | *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;; | 
| 193 | *)       ECHO_N= ECHO_C='\c' ECHO_T= ;; | 
| 194 | esac | 
| 195 |  | 
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
| 197 | as_expr=expr | 
| 198 | else | 
| 199 | as_expr=false | 
| 200 | fi | 
| 201 |  | 
| 202 | rm -f conf$$ conf$$.exe conf$$.file | 
| 203 | echo >conf$$.file | 
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic | 
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | 
| 207 | if test -f conf$$.exe; then | 
| 208 | # Don't use ln at all; we don't have any links | 
| 209 | as_ln_s='cp -p' | 
| 210 | else | 
| 211 | as_ln_s='ln -s' | 
| 212 | fi | 
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
| 214 | as_ln_s=ln | 
| 215 | else | 
| 216 | as_ln_s='cp -p' | 
| 217 | fi | 
| 218 | rm -f conf$$ conf$$.exe conf$$.file | 
| 219 |  | 
| 220 | if mkdir -p . 2>/dev/null; then | 
| 221 | as_mkdir_p=: | 
| 222 | else | 
| 223 | as_mkdir_p=false | 
| 224 | fi | 
| 225 |  | 
| 226 | as_executable_p="test -f" | 
| 227 |  | 
| 228 | # Sed expression to map a string onto a valid CPP name. | 
| 229 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | 
| 230 |  | 
| 231 | # Sed expression to map a string onto a valid variable name. | 
| 232 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | 
| 233 |  | 
| 234 |  | 
| 235 | # IFS | 
| 236 | # We need space, tab and new line, in precisely that order. | 
| 237 | as_nl=' | 
| 238 | ' | 
| 239 | IFS="   $as_nl" | 
| 240 |  | 
| 241 | # CDPATH. | 
| 242 | $as_unset CDPATH | 
| 243 |  | 
| 244 |  | 
| 245 | # Name of the host. | 
| 246 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | 
| 247 | # so uname gets run too. | 
| 248 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
| 249 |  | 
| 250 | exec 6>&1 | 
| 251 |  | 
| 252 | # | 
| 253 | # Initializations. | 
| 254 | # | 
| 255 | ac_default_prefix=/usr/local | 
| 256 | ac_config_libobj_dir=. | 
| 257 | cross_compiling=no | 
| 258 | subdirs= | 
| 259 | MFLAGS= | 
| 260 | MAKEFLAGS= | 
| 261 | SHELL=${CONFIG_SHELL-/bin/sh} | 
| 262 |  | 
| 263 | # Maximum number of lines to put in a shell here document. | 
| 264 | # This variable seems obsolete.  It should probably be removed, and | 
| 265 | # only ac_max_sed_lines should be used. | 
| 266 | : ${ac_max_here_lines=38} | 
| 267 |  | 
| 268 | # Identity of this package. | 
| 269 | PACKAGE_NAME='OOPSE' | 
| 270 | PACKAGE_TARNAME='oopse' | 
| 271 | PACKAGE_VERSION='1.0' | 
| 272 | PACKAGE_STRING='OOPSE 1.0' | 
| 273 | PACKAGE_BUGREPORT='gezelter@nd.edu' | 
| 274 |  | 
| 275 | ac_unique_file="src/oopse.cpp" | 
| 276 | ac_default_prefix="/usr/local" | 
| 277 | # Factoring default headers for most tests. | 
| 278 | ac_includes_default="\ | 
| 279 | #include <stdio.h> | 
| 280 | #if HAVE_SYS_TYPES_H | 
| 281 | # include <sys/types.h> | 
| 282 | #endif | 
| 283 | #if HAVE_SYS_STAT_H | 
| 284 | # include <sys/stat.h> | 
| 285 | #endif | 
| 286 | #if STDC_HEADERS | 
| 287 | # include <stdlib.h> | 
| 288 | # include <stddef.h> | 
| 289 | #else | 
| 290 | # if HAVE_STDLIB_H | 
| 291 | #  include <stdlib.h> | 
| 292 | # endif | 
| 293 | #endif | 
| 294 | #if HAVE_STRING_H | 
| 295 | # if !STDC_HEADERS && HAVE_MEMORY_H | 
| 296 | #  include <memory.h> | 
| 297 | # endif | 
| 298 | # include <string.h> | 
| 299 | #endif | 
| 300 | #if HAVE_STRINGS_H | 
| 301 | # include <strings.h> | 
| 302 | #endif | 
| 303 | #if HAVE_INTTYPES_H | 
| 304 | # include <inttypes.h> | 
| 305 | #else | 
| 306 | # if HAVE_STDINT_H | 
| 307 | #  include <stdint.h> | 
| 308 | # endif | 
| 309 | #endif | 
| 310 | #if HAVE_UNISTD_H | 
| 311 | # include <unistd.h> | 
| 312 | #endif" | 
| 313 |  | 
| 314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME DEBUG build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR F90LIBS F90_FUNC F90_FUNC_ mpi_dir MPI_LIBDIR MPI_INC MPI_LIB MPIF77 MPIF90 MPILIBS CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL MPI_F90_MODS MPIMODLIBNAME BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS' | 
| 315 | ac_subst_files='' | 
| 316 |  | 
| 317 | # Initialize some variables set by options. | 
| 318 | ac_init_help= | 
| 319 | ac_init_version=false | 
| 320 | # The variables have the same names as the options, with | 
| 321 | # dashes changed to underlines. | 
| 322 | cache_file=/dev/null | 
| 323 | exec_prefix=NONE | 
| 324 | no_create= | 
| 325 | no_recursion= | 
| 326 | prefix=NONE | 
| 327 | program_prefix=NONE | 
| 328 | program_suffix=NONE | 
| 329 | program_transform_name=s,x,x, | 
| 330 | silent= | 
| 331 | site= | 
| 332 | srcdir= | 
| 333 | verbose= | 
| 334 | x_includes=NONE | 
| 335 | x_libraries=NONE | 
| 336 |  | 
| 337 | # Installation directory options. | 
| 338 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
| 339 | # and all the variables that are supposed to be based on exec_prefix | 
| 340 | # by default will actually change. | 
| 341 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
| 342 | bindir='${exec_prefix}/bin' | 
| 343 | sbindir='${exec_prefix}/sbin' | 
| 344 | libexecdir='${exec_prefix}/libexec' | 
| 345 | datadir='${prefix}/share' | 
| 346 | sysconfdir='${prefix}/etc' | 
| 347 | sharedstatedir='${prefix}/com' | 
| 348 | localstatedir='${prefix}/var' | 
| 349 | libdir='${exec_prefix}/lib' | 
| 350 | includedir='${prefix}/include' | 
| 351 | oldincludedir='/usr/include' | 
| 352 | infodir='${prefix}/info' | 
| 353 | mandir='${prefix}/man' | 
| 354 |  | 
| 355 | ac_prev= | 
| 356 | for ac_option | 
| 357 | do | 
| 358 | # If the previous option needs an argument, assign it. | 
| 359 | if test -n "$ac_prev"; then | 
| 360 | eval "$ac_prev=\$ac_option" | 
| 361 | ac_prev= | 
| 362 | continue | 
| 363 | fi | 
| 364 |  | 
| 365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | 
| 366 |  | 
| 367 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
| 368 |  | 
| 369 | case $ac_option in | 
| 370 |  | 
| 371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
| 372 | ac_prev=bindir ;; | 
| 373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| 374 | bindir=$ac_optarg ;; | 
| 375 |  | 
| 376 | -build | --build | --buil | --bui | --bu) | 
| 377 | ac_prev=build_alias ;; | 
| 378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| 379 | build_alias=$ac_optarg ;; | 
| 380 |  | 
| 381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
| 382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
| 383 | ac_prev=cache_file ;; | 
| 384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
| 385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| 386 | cache_file=$ac_optarg ;; | 
| 387 |  | 
| 388 | --config-cache | -C) | 
| 389 | cache_file=config.cache ;; | 
| 390 |  | 
| 391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 
| 392 | ac_prev=datadir ;; | 
| 393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 
| 394 | | --da=*) | 
| 395 | datadir=$ac_optarg ;; | 
| 396 |  | 
| 397 | -disable-* | --disable-*) | 
| 398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
| 399 | # Reject names that are not valid shell variable names. | 
| 400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
| 401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
| 402 | { (exit 1); exit 1; }; } | 
| 403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
| 404 | eval "enable_$ac_feature=no" ;; | 
| 405 |  | 
| 406 | -enable-* | --enable-*) | 
| 407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
| 408 | # Reject names that are not valid shell variable names. | 
| 409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
| 410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | 
| 411 | { (exit 1); exit 1; }; } | 
| 412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | 
| 413 | case $ac_option in | 
| 414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | 
| 415 | *) ac_optarg=yes ;; | 
| 416 | esac | 
| 417 | eval "enable_$ac_feature='$ac_optarg'" ;; | 
| 418 |  | 
| 419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
| 420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
| 421 | | --exec | --exe | --ex) | 
| 422 | ac_prev=exec_prefix ;; | 
| 423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
| 424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
| 425 | | --exec=* | --exe=* | --ex=*) | 
| 426 | exec_prefix=$ac_optarg ;; | 
| 427 |  | 
| 428 | -gas | --gas | --ga | --g) | 
| 429 | # Obsolete; use --with-gas. | 
| 430 | with_gas=yes ;; | 
| 431 |  | 
| 432 | -help | --help | --hel | --he | -h) | 
| 433 | ac_init_help=long ;; | 
| 434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
| 435 | ac_init_help=recursive ;; | 
| 436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
| 437 | ac_init_help=short ;; | 
| 438 |  | 
| 439 | -host | --host | --hos | --ho) | 
| 440 | ac_prev=host_alias ;; | 
| 441 | -host=* | --host=* | --hos=* | --ho=*) | 
| 442 | host_alias=$ac_optarg ;; | 
| 443 |  | 
| 444 | -includedir | --includedir | --includedi | --included | --include \ | 
| 445 | | --includ | --inclu | --incl | --inc) | 
| 446 | ac_prev=includedir ;; | 
| 447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
| 448 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| 449 | includedir=$ac_optarg ;; | 
| 450 |  | 
| 451 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
| 452 | ac_prev=infodir ;; | 
| 453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| 454 | infodir=$ac_optarg ;; | 
| 455 |  | 
| 456 | -libdir | --libdir | --libdi | --libd) | 
| 457 | ac_prev=libdir ;; | 
| 458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| 459 | libdir=$ac_optarg ;; | 
| 460 |  | 
| 461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
| 462 | | --libexe | --libex | --libe) | 
| 463 | ac_prev=libexecdir ;; | 
| 464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
| 465 | | --libexe=* | --libex=* | --libe=*) | 
| 466 | libexecdir=$ac_optarg ;; | 
| 467 |  | 
| 468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
| 469 | | --localstate | --localstat | --localsta | --localst \ | 
| 470 | | --locals | --local | --loca | --loc | --lo) | 
| 471 | ac_prev=localstatedir ;; | 
| 472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
| 473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 
| 474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 
| 475 | localstatedir=$ac_optarg ;; | 
| 476 |  | 
| 477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
| 478 | ac_prev=mandir ;; | 
| 479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| 480 | mandir=$ac_optarg ;; | 
| 481 |  | 
| 482 | -nfp | --nfp | --nf) | 
| 483 | # Obsolete; use --without-fp. | 
| 484 | with_fp=no ;; | 
| 485 |  | 
| 486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
| 487 | | --no-cr | --no-c | -n) | 
| 488 | no_create=yes ;; | 
| 489 |  | 
| 490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
| 491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
| 492 | no_recursion=yes ;; | 
| 493 |  | 
| 494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
| 495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
| 496 | | --oldin | --oldi | --old | --ol | --o) | 
| 497 | ac_prev=oldincludedir ;; | 
| 498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
| 499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
| 500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| 501 | oldincludedir=$ac_optarg ;; | 
| 502 |  | 
| 503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
| 504 | ac_prev=prefix ;; | 
| 505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| 506 | prefix=$ac_optarg ;; | 
| 507 |  | 
| 508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
| 509 | | --program-pre | --program-pr | --program-p) | 
| 510 | ac_prev=program_prefix ;; | 
| 511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
| 512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| 513 | program_prefix=$ac_optarg ;; | 
| 514 |  | 
| 515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
| 516 | | --program-suf | --program-su | --program-s) | 
| 517 | ac_prev=program_suffix ;; | 
| 518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
| 519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| 520 | program_suffix=$ac_optarg ;; | 
| 521 |  | 
| 522 | -program-transform-name | --program-transform-name \ | 
| 523 | | --program-transform-nam | --program-transform-na \ | 
| 524 | | --program-transform-n | --program-transform- \ | 
| 525 | | --program-transform | --program-transfor \ | 
| 526 | | --program-transfo | --program-transf \ | 
| 527 | | --program-trans | --program-tran \ | 
| 528 | | --progr-tra | --program-tr | --program-t) | 
| 529 | ac_prev=program_transform_name ;; | 
| 530 | -program-transform-name=* | --program-transform-name=* \ | 
| 531 | | --program-transform-nam=* | --program-transform-na=* \ | 
| 532 | | --program-transform-n=* | --program-transform-=* \ | 
| 533 | | --program-transform=* | --program-transfor=* \ | 
| 534 | | --program-transfo=* | --program-transf=* \ | 
| 535 | | --program-trans=* | --program-tran=* \ | 
| 536 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
| 537 | program_transform_name=$ac_optarg ;; | 
| 538 |  | 
| 539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
| 540 | | -silent | --silent | --silen | --sile | --sil) | 
| 541 | silent=yes ;; | 
| 542 |  | 
| 543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
| 544 | ac_prev=sbindir ;; | 
| 545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
| 546 | | --sbi=* | --sb=*) | 
| 547 | sbindir=$ac_optarg ;; | 
| 548 |  | 
| 549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
| 550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
| 551 | | --sharedst | --shareds | --shared | --share | --shar \ | 
| 552 | | --sha | --sh) | 
| 553 | ac_prev=sharedstatedir ;; | 
| 554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
| 555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
| 556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
| 557 | | --sha=* | --sh=*) | 
| 558 | sharedstatedir=$ac_optarg ;; | 
| 559 |  | 
| 560 | -site | --site | --sit) | 
| 561 | ac_prev=site ;; | 
| 562 | -site=* | --site=* | --sit=*) | 
| 563 | site=$ac_optarg ;; | 
| 564 |  | 
| 565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
| 566 | ac_prev=srcdir ;; | 
| 567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| 568 | srcdir=$ac_optarg ;; | 
| 569 |  | 
| 570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
| 571 | | --syscon | --sysco | --sysc | --sys | --sy) | 
| 572 | ac_prev=sysconfdir ;; | 
| 573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
| 574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| 575 | sysconfdir=$ac_optarg ;; | 
| 576 |  | 
| 577 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
| 578 | ac_prev=target_alias ;; | 
| 579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| 580 | target_alias=$ac_optarg ;; | 
| 581 |  | 
| 582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
| 583 | verbose=yes ;; | 
| 584 |  | 
| 585 | -version | --version | --versio | --versi | --vers | -V) | 
| 586 | ac_init_version=: ;; | 
| 587 |  | 
| 588 | -with-* | --with-*) | 
| 589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
| 590 | # Reject names that are not valid shell variable names. | 
| 591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
| 592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
| 593 | { (exit 1); exit 1; }; } | 
| 594 | ac_package=`echo $ac_package| sed 's/-/_/g'` | 
| 595 | case $ac_option in | 
| 596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | 
| 597 | *) ac_optarg=yes ;; | 
| 598 | esac | 
| 599 | eval "with_$ac_package='$ac_optarg'" ;; | 
| 600 |  | 
| 601 | -without-* | --without-*) | 
| 602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
| 603 | # Reject names that are not valid shell variable names. | 
| 604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | 
| 605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | 
| 606 | { (exit 1); exit 1; }; } | 
| 607 | ac_package=`echo $ac_package | sed 's/-/_/g'` | 
| 608 | eval "with_$ac_package=no" ;; | 
| 609 |  | 
| 610 | --x) | 
| 611 | # Obsolete; use --with-x. | 
| 612 | with_x=yes ;; | 
| 613 |  | 
| 614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
| 615 | | --x-incl | --x-inc | --x-in | --x-i) | 
| 616 | ac_prev=x_includes ;; | 
| 617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
| 618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| 619 | x_includes=$ac_optarg ;; | 
| 620 |  | 
| 621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
| 622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
| 623 | ac_prev=x_libraries ;; | 
| 624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
| 625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
| 626 | x_libraries=$ac_optarg ;; | 
| 627 |  | 
| 628 | -*) { echo "$as_me: error: unrecognized option: $ac_option | 
| 629 | Try \`$0 --help' for more information." >&2 | 
| 630 | { (exit 1); exit 1; }; } | 
| 631 | ;; | 
| 632 |  | 
| 633 | *=*) | 
| 634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
| 635 | # Reject names that are not valid shell variable names. | 
| 636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | 
| 637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | 
| 638 | { (exit 1); exit 1; }; } | 
| 639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | 
| 640 | eval "$ac_envvar='$ac_optarg'" | 
| 641 | export $ac_envvar ;; | 
| 642 |  | 
| 643 | *) | 
| 644 | # FIXME: should be removed in autoconf 3.0. | 
| 645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
| 646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
| 647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| 648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | 
| 649 | ;; | 
| 650 |  | 
| 651 | esac | 
| 652 | done | 
| 653 |  | 
| 654 | if test -n "$ac_prev"; then | 
| 655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| 656 | { echo "$as_me: error: missing argument to $ac_option" >&2 | 
| 657 | { (exit 1); exit 1; }; } | 
| 658 | fi | 
| 659 |  | 
| 660 | # Be sure to have absolute paths. | 
| 661 | for ac_var in exec_prefix prefix | 
| 662 | do | 
| 663 | eval ac_val=$`echo $ac_var` | 
| 664 | case $ac_val in | 
| 665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | 
| 666 | *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
| 667 | { (exit 1); exit 1; }; };; | 
| 668 | esac | 
| 669 | done | 
| 670 |  | 
| 671 | # Be sure to have absolute paths. | 
| 672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | 
| 673 | localstatedir libdir includedir oldincludedir infodir mandir | 
| 674 | do | 
| 675 | eval ac_val=$`echo $ac_var` | 
| 676 | case $ac_val in | 
| 677 | [\\/$]* | ?:[\\/]* ) ;; | 
| 678 | *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | 
| 679 | { (exit 1); exit 1; }; };; | 
| 680 | esac | 
| 681 | done | 
| 682 |  | 
| 683 | # There might be people who depend on the old broken behavior: `$host' | 
| 684 | # used to hold the argument of --host etc. | 
| 685 | # FIXME: To remove some day. | 
| 686 | build=$build_alias | 
| 687 | host=$host_alias | 
| 688 | target=$target_alias | 
| 689 |  | 
| 690 | # FIXME: To remove some day. | 
| 691 | if test "x$host_alias" != x; then | 
| 692 | if test "x$build_alias" = x; then | 
| 693 | cross_compiling=maybe | 
| 694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | 
| 695 | If a cross compiler is detected then cross compile mode will be used." >&2 | 
| 696 | elif test "x$build_alias" != "x$host_alias"; then | 
| 697 | cross_compiling=yes | 
| 698 | fi | 
| 699 | fi | 
| 700 |  | 
| 701 | ac_tool_prefix= | 
| 702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
| 703 |  | 
| 704 | test "$silent" = yes && exec 6>/dev/null | 
| 705 |  | 
| 706 |  | 
| 707 | # Find the source files, if location was not specified. | 
| 708 | if test -z "$srcdir"; then | 
| 709 | ac_srcdir_defaulted=yes | 
| 710 | # Try the directory containing this script, then its parent. | 
| 711 | ac_confdir=`(dirname "$0") 2>/dev/null || | 
| 712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| 713 | X"$0" : 'X\(//\)[^/]' \| \ | 
| 714 | X"$0" : 'X\(//\)$' \| \ | 
| 715 | X"$0" : 'X\(/\)' \| \ | 
| 716 | .     : '\(.\)' 2>/dev/null || | 
| 717 | echo X"$0" | | 
| 718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
| 719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
| 720 | /^X\(\/\/\)$/{ s//\1/; q; } | 
| 721 | /^X\(\/\).*/{ s//\1/; q; } | 
| 722 | s/.*/./; q'` | 
| 723 | srcdir=$ac_confdir | 
| 724 | if test ! -r $srcdir/$ac_unique_file; then | 
| 725 | srcdir=.. | 
| 726 | fi | 
| 727 | else | 
| 728 | ac_srcdir_defaulted=no | 
| 729 | fi | 
| 730 | if test ! -r $srcdir/$ac_unique_file; then | 
| 731 | if test "$ac_srcdir_defaulted" = yes; then | 
| 732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | 
| 733 | { (exit 1); exit 1; }; } | 
| 734 | else | 
| 735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | 
| 736 | { (exit 1); exit 1; }; } | 
| 737 | fi | 
| 738 | fi | 
| 739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | 
| 740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | 
| 741 | { (exit 1); exit 1; }; } | 
| 742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | 
| 743 | ac_env_build_alias_set=${build_alias+set} | 
| 744 | ac_env_build_alias_value=$build_alias | 
| 745 | ac_cv_env_build_alias_set=${build_alias+set} | 
| 746 | ac_cv_env_build_alias_value=$build_alias | 
| 747 | ac_env_host_alias_set=${host_alias+set} | 
| 748 | ac_env_host_alias_value=$host_alias | 
| 749 | ac_cv_env_host_alias_set=${host_alias+set} | 
| 750 | ac_cv_env_host_alias_value=$host_alias | 
| 751 | ac_env_target_alias_set=${target_alias+set} | 
| 752 | ac_env_target_alias_value=$target_alias | 
| 753 | ac_cv_env_target_alias_set=${target_alias+set} | 
| 754 | ac_cv_env_target_alias_value=$target_alias | 
| 755 | ac_env_CC_set=${CC+set} | 
| 756 | ac_env_CC_value=$CC | 
| 757 | ac_cv_env_CC_set=${CC+set} | 
| 758 | ac_cv_env_CC_value=$CC | 
| 759 | ac_env_CFLAGS_set=${CFLAGS+set} | 
| 760 | ac_env_CFLAGS_value=$CFLAGS | 
| 761 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | 
| 762 | ac_cv_env_CFLAGS_value=$CFLAGS | 
| 763 | ac_env_LDFLAGS_set=${LDFLAGS+set} | 
| 764 | ac_env_LDFLAGS_value=$LDFLAGS | 
| 765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | 
| 766 | ac_cv_env_LDFLAGS_value=$LDFLAGS | 
| 767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | 
| 768 | ac_env_CPPFLAGS_value=$CPPFLAGS | 
| 769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | 
| 770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | 
| 771 | ac_env_CXX_set=${CXX+set} | 
| 772 | ac_env_CXX_value=$CXX | 
| 773 | ac_cv_env_CXX_set=${CXX+set} | 
| 774 | ac_cv_env_CXX_value=$CXX | 
| 775 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | 
| 776 | ac_env_CXXFLAGS_value=$CXXFLAGS | 
| 777 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | 
| 778 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | 
| 779 | ac_env_F90_set=${F90+set} | 
| 780 | ac_env_F90_value=$F90 | 
| 781 | ac_cv_env_F90_set=${F90+set} | 
| 782 | ac_cv_env_F90_value=$F90 | 
| 783 | ac_env_F90FLAGS_set=${F90FLAGS+set} | 
| 784 | ac_env_F90FLAGS_value=$F90FLAGS | 
| 785 | ac_cv_env_F90FLAGS_set=${F90FLAGS+set} | 
| 786 | ac_cv_env_F90FLAGS_value=$F90FLAGS | 
| 787 | ac_env_MPIF77_set=${MPIF77+set} | 
| 788 | ac_env_MPIF77_value=$MPIF77 | 
| 789 | ac_cv_env_MPIF77_set=${MPIF77+set} | 
| 790 | ac_cv_env_MPIF77_value=$MPIF77 | 
| 791 | ac_env_CPP_set=${CPP+set} | 
| 792 | ac_env_CPP_value=$CPP | 
| 793 | ac_cv_env_CPP_set=${CPP+set} | 
| 794 | ac_cv_env_CPP_value=$CPP | 
| 795 |  | 
| 796 | # | 
| 797 | # Report the --help message. | 
| 798 | # | 
| 799 | if test "$ac_init_help" = "long"; then | 
| 800 | # Omit some internal or obsolete options to make the list less imposing. | 
| 801 | # This message is too long to be a string in the A/UX 3.1 sh. | 
| 802 | cat <<_ACEOF | 
| 803 | \`configure' configures OOPSE 1.0 to adapt to many kinds of systems. | 
| 804 |  | 
| 805 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
| 806 |  | 
| 807 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
| 808 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
| 809 |  | 
| 810 | Defaults for the options are specified in brackets. | 
| 811 |  | 
| 812 | Configuration: | 
| 813 | -h, --help              display this help and exit | 
| 814 | --help=short        display options specific to this package | 
| 815 | --help=recursive    display the short help of all the included packages | 
| 816 | -V, --version           display version information and exit | 
| 817 | -q, --quiet, --silent   do not print \`checking...' messages | 
| 818 | --cache-file=FILE   cache test results in FILE [disabled] | 
| 819 | -C, --config-cache      alias for \`--cache-file=config.cache' | 
| 820 | -n, --no-create         do not create output files | 
| 821 | --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
| 822 |  | 
| 823 | _ACEOF | 
| 824 |  | 
| 825 | cat <<_ACEOF | 
| 826 | Installation directories: | 
| 827 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
| 828 | [$ac_default_prefix] | 
| 829 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| 830 | [PREFIX] | 
| 831 |  | 
| 832 | By default, \`make install' will install all the files in | 
| 833 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
| 834 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
| 835 | for instance \`--prefix=\$HOME'. | 
| 836 |  | 
| 837 | For better control, use the options below. | 
| 838 |  | 
| 839 | Fine tuning of the installation directories: | 
| 840 | --bindir=DIR           user executables [EPREFIX/bin] | 
| 841 | --sbindir=DIR          system admin executables [EPREFIX/sbin] | 
| 842 | --libexecdir=DIR       program executables [EPREFIX/libexec] | 
| 843 | --datadir=DIR          read-only architecture-independent data [PREFIX/share] | 
| 844 | --sysconfdir=DIR       read-only single-machine data [PREFIX/etc] | 
| 845 | --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com] | 
| 846 | --localstatedir=DIR    modifiable single-machine data [PREFIX/var] | 
| 847 | --libdir=DIR           object code libraries [EPREFIX/lib] | 
| 848 | --includedir=DIR       C header files [PREFIX/include] | 
| 849 | --oldincludedir=DIR    C header files for non-gcc [/usr/include] | 
| 850 | --infodir=DIR          info documentation [PREFIX/info] | 
| 851 | --mandir=DIR           man documentation [PREFIX/man] | 
| 852 | _ACEOF | 
| 853 |  | 
| 854 | cat <<\_ACEOF | 
| 855 |  | 
| 856 | System types: | 
| 857 | --build=BUILD     configure for building on BUILD [guessed] | 
| 858 | --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
| 859 | _ACEOF | 
| 860 | fi | 
| 861 |  | 
| 862 | if test -n "$ac_init_help"; then | 
| 863 | case $ac_init_help in | 
| 864 | short | recursive ) echo "Configuration of OOPSE 1.0:";; | 
| 865 | esac | 
| 866 | cat <<\_ACEOF | 
| 867 |  | 
| 868 | Optional Features: | 
| 869 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
| 870 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| 871 | --enable-debug          Compile OOPSE in debug mode | 
| 872 | --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse | 
| 873 |  | 
| 874 | Optional Packages: | 
| 875 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
| 876 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| 877 | --with-mpi_dir=MPIDIR   give the path for MPI /usr/local | 
| 878 | --with-mpi-libdir=dir  give the path for MPI-libraries MPI_DIR/lib | 
| 879 | --with-mpi_inc=dir  give the path for MPI-include-files MPI_DIR/include | 
| 880 | --with-sprng-prefix=PREFIX | 
| 881 | Prefix where SPRNG is installed | 
| 882 | --with-sprng-lib=PREFIX  SPRNG library directory | 
| 883 | --with-sprng-include=PREFIX | 
| 884 | SPRNG include directory | 
| 885 | --with-mkl              Do we want MKL will check /usr/local/intel/mkl60 /opt/intel/mkl60 | 
| 886 | --with-mpi_f90_mods=<dir> | 
| 887 | Location where MPI f90 modules are installed | 
| 888 |  | 
| 889 | Some influential environment variables: | 
| 890 | CC          C compiler command | 
| 891 | CFLAGS      C compiler flags | 
| 892 | LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
| 893 | nonstandard directory <lib dir> | 
| 894 | CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have | 
| 895 | headers in a nonstandard directory <include dir> | 
| 896 | CXX         C++ compiler command | 
| 897 | CXXFLAGS    C++ compiler flags | 
| 898 | F90         Fortran 90 compiler command | 
| 899 | F90FLAGS    Fortran 90 compiler flags | 
| 900 | MPIF77      MPI Fortran compiler command | 
| 901 | CPP         C preprocessor | 
| 902 |  | 
| 903 | Use these variables to override the choices made by `configure' or to help | 
| 904 | it to find libraries and programs with nonstandard names/locations. | 
| 905 |  | 
| 906 | Report bugs to <gezelter@nd.edu>. | 
| 907 | _ACEOF | 
| 908 | fi | 
| 909 |  | 
| 910 | if test "$ac_init_help" = "recursive"; then | 
| 911 | # If there are subdirs, report their specific --help. | 
| 912 | ac_popdir=`pwd` | 
| 913 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
| 914 | test -d $ac_dir || continue | 
| 915 | ac_builddir=. | 
| 916 |  | 
| 917 | if test "$ac_dir" != .; then | 
| 918 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
| 919 | # A "../" for each directory in $ac_dir_suffix. | 
| 920 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
| 921 | else | 
| 922 | ac_dir_suffix= ac_top_builddir= | 
| 923 | fi | 
| 924 |  | 
| 925 | case $srcdir in | 
| 926 | .)  # No --srcdir option.  We are building in place. | 
| 927 | ac_srcdir=. | 
| 928 | if test -z "$ac_top_builddir"; then | 
| 929 | ac_top_srcdir=. | 
| 930 | else | 
| 931 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
| 932 | fi ;; | 
| 933 | [\\/]* | ?:[\\/]* )  # Absolute path. | 
| 934 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| 935 | ac_top_srcdir=$srcdir ;; | 
| 936 | *) # Relative path. | 
| 937 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
| 938 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
| 939 | esac | 
| 940 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | 
| 941 | # absolute. | 
| 942 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | 
| 943 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | 
| 944 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | 
| 945 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | 
| 946 |  | 
| 947 | cd $ac_dir | 
| 948 | # Check for guested configure; otherwise get Cygnus style configure. | 
| 949 | if test -f $ac_srcdir/configure.gnu; then | 
| 950 | echo | 
| 951 | $SHELL $ac_srcdir/configure.gnu  --help=recursive | 
| 952 | elif test -f $ac_srcdir/configure; then | 
| 953 | echo | 
| 954 | $SHELL $ac_srcdir/configure  --help=recursive | 
| 955 | elif test -f $ac_srcdir/configure.ac || | 
| 956 | test -f $ac_srcdir/configure.in; then | 
| 957 | echo | 
| 958 | $ac_configure --help | 
| 959 | else | 
| 960 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
| 961 | fi | 
| 962 | cd $ac_popdir | 
| 963 | done | 
| 964 | fi | 
| 965 |  | 
| 966 | test -n "$ac_init_help" && exit 0 | 
| 967 | if $ac_init_version; then | 
| 968 | cat <<\_ACEOF | 
| 969 | OOPSE configure 1.0 | 
| 970 | generated by GNU Autoconf 2.57 | 
| 971 |  | 
| 972 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | 
| 973 | Free Software Foundation, Inc. | 
| 974 | This configure script is free software; the Free Software Foundation | 
| 975 | gives unlimited permission to copy, distribute and modify it. | 
| 976 | _ACEOF | 
| 977 | exit 0 | 
| 978 | fi | 
| 979 | exec 5>config.log | 
| 980 | cat >&5 <<_ACEOF | 
| 981 | This file contains any messages produced by compilers while | 
| 982 | running configure, to aid debugging if configure makes a mistake. | 
| 983 |  | 
| 984 | It was created by OOPSE $as_me 1.0, which was | 
| 985 | generated by GNU Autoconf 2.57.  Invocation command line was | 
| 986 |  | 
| 987 | $ $0 $@ | 
| 988 |  | 
| 989 | _ACEOF | 
| 990 | { | 
| 991 | cat <<_ASUNAME | 
| 992 | ## --------- ## | 
| 993 | ## Platform. ## | 
| 994 | ## --------- ## | 
| 995 |  | 
| 996 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
| 997 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
| 998 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
| 999 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
| 1000 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
| 1001 |  | 
| 1002 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
| 1003 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
| 1004 |  | 
| 1005 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
| 1006 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
| 1007 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
| 1008 | hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown` | 
| 1009 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
| 1010 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
| 1011 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
| 1012 |  | 
| 1013 | _ASUNAME | 
| 1014 |  | 
| 1015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| 1016 | for as_dir in $PATH | 
| 1017 | do | 
| 1018 | IFS=$as_save_IFS | 
| 1019 | test -z "$as_dir" && as_dir=. | 
| 1020 | echo "PATH: $as_dir" | 
| 1021 | done | 
| 1022 |  | 
| 1023 | } >&5 | 
| 1024 |  | 
| 1025 | cat >&5 <<_ACEOF | 
| 1026 |  | 
| 1027 |  | 
| 1028 | ## ----------- ## | 
| 1029 | ## Core tests. ## | 
| 1030 | ## ----------- ## | 
| 1031 |  | 
| 1032 | _ACEOF | 
| 1033 |  | 
| 1034 |  | 
| 1035 | # Keep a trace of the command line. | 
| 1036 | # Strip out --no-create and --no-recursion so they do not pile up. | 
| 1037 | # Strip out --silent because we don't want to record it for future runs. | 
| 1038 | # Also quote any args containing shell meta-characters. | 
| 1039 | # Make two passes to allow for proper duplicate-argument suppression. | 
| 1040 | ac_configure_args= | 
| 1041 | ac_configure_args0= | 
| 1042 | ac_configure_args1= | 
| 1043 | ac_sep= | 
| 1044 | ac_must_keep_next=false | 
| 1045 | for ac_pass in 1 2 | 
| 1046 | do | 
| 1047 | for ac_arg | 
| 1048 | do | 
| 1049 | case $ac_arg in | 
| 1050 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
| 1051 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
| 1052 | | -silent | --silent | --silen | --sile | --sil) | 
| 1053 | continue ;; | 
| 1054 | *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | 
| 1055 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| 1056 | esac | 
| 1057 | case $ac_pass in | 
| 1058 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | 
| 1059 | 2) | 
| 1060 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | 
| 1061 | if test $ac_must_keep_next = true; then | 
| 1062 | ac_must_keep_next=false # Got value, back to normal. | 
| 1063 | else | 
| 1064 | case $ac_arg in | 
| 1065 | *=* | --config-cache | -C | -disable-* | --disable-* \ | 
| 1066 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
| 1067 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
| 1068 | | -with-* | --with-* | -without-* | --without-* | --x) | 
| 1069 | case "$ac_configure_args0 " in | 
| 1070 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
| 1071 | esac | 
| 1072 | ;; | 
| 1073 | -* ) ac_must_keep_next=true ;; | 
| 1074 | esac | 
| 1075 | fi | 
| 1076 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | 
| 1077 | # Get rid of the leading space. | 
| 1078 | ac_sep=" " | 
| 1079 | ;; | 
| 1080 | esac | 
| 1081 | done | 
| 1082 | done | 
| 1083 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | 
| 1084 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | 
| 1085 |  | 
| 1086 | # When interrupted or exit'd, cleanup temporary files, and complete | 
| 1087 | # config.log.  We remove comments because anyway the quotes in there | 
| 1088 | # would cause problems or look ugly. | 
| 1089 | # WARNING: Be sure not to use single quotes in there, as some shells, | 
| 1090 | # such as our DU 5.0 friend, will then `close' the trap. | 
| 1091 | trap 'exit_status=$? | 
| 1092 | # Save into config.log some information that might help in debugging. | 
| 1093 | { | 
| 1094 | echo | 
| 1095 |  | 
| 1096 | cat <<\_ASBOX | 
| 1097 | ## ---------------- ## | 
| 1098 | ## Cache variables. ## | 
| 1099 | ## ---------------- ## | 
| 1100 | _ASBOX | 
| 1101 | echo | 
| 1102 | # The following way of writing the cache mishandles newlines in values, | 
| 1103 | { | 
| 1104 | (set) 2>&1 | | 
| 1105 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | 
| 1106 | *ac_space=\ *) | 
| 1107 | sed -n \ | 
| 1108 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | 
| 1109 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | 
| 1110 | ;; | 
| 1111 | *) | 
| 1112 | sed -n \ | 
| 1113 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | 
| 1114 | ;; | 
| 1115 | esac; | 
| 1116 | } | 
| 1117 | echo | 
| 1118 |  | 
| 1119 | cat <<\_ASBOX | 
| 1120 | ## ----------------- ## | 
| 1121 | ## Output variables. ## | 
| 1122 | ## ----------------- ## | 
| 1123 | _ASBOX | 
| 1124 | echo | 
| 1125 | for ac_var in $ac_subst_vars | 
| 1126 | do | 
| 1127 | eval ac_val=$`echo $ac_var` | 
| 1128 | echo "$ac_var='"'"'$ac_val'"'"'" | 
| 1129 | done | sort | 
| 1130 | echo | 
| 1131 |  | 
| 1132 | if test -n "$ac_subst_files"; then | 
| 1133 | cat <<\_ASBOX | 
| 1134 | ## ------------- ## | 
| 1135 | ## Output files. ## | 
| 1136 | ## ------------- ## | 
| 1137 | _ASBOX | 
| 1138 | echo | 
| 1139 | for ac_var in $ac_subst_files | 
| 1140 | do | 
| 1141 | eval ac_val=$`echo $ac_var` | 
| 1142 | echo "$ac_var='"'"'$ac_val'"'"'" | 
| 1143 | done | sort | 
| 1144 | echo | 
| 1145 | fi | 
| 1146 |  | 
| 1147 | if test -s confdefs.h; then | 
| 1148 | cat <<\_ASBOX | 
| 1149 | ## ----------- ## | 
| 1150 | ## confdefs.h. ## | 
| 1151 | ## ----------- ## | 
| 1152 | _ASBOX | 
| 1153 | echo | 
| 1154 | sed "/^$/d" confdefs.h | sort | 
| 1155 | echo | 
| 1156 | fi | 
| 1157 | test "$ac_signal" != 0 && | 
| 1158 | echo "$as_me: caught signal $ac_signal" | 
| 1159 | echo "$as_me: exit $exit_status" | 
| 1160 | } >&5 | 
| 1161 | rm -f core core.* *.core && | 
| 1162 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | 
| 1163 | exit $exit_status | 
| 1164 | ' 0 | 
| 1165 | for ac_signal in 1 2 13 15; do | 
| 1166 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | 
| 1167 | done | 
| 1168 | ac_signal=0 | 
| 1169 |  | 
| 1170 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
| 1171 | rm -rf conftest* confdefs.h | 
| 1172 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 
| 1173 | echo >confdefs.h | 
| 1174 |  | 
| 1175 | # Predefined preprocessor variables. | 
| 1176 |  | 
| 1177 | cat >>confdefs.h <<_ACEOF | 
| 1178 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
| 1179 | _ACEOF | 
| 1180 |  | 
| 1181 |  | 
| 1182 | cat >>confdefs.h <<_ACEOF | 
| 1183 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
| 1184 | _ACEOF | 
| 1185 |  | 
| 1186 |  | 
| 1187 | cat >>confdefs.h <<_ACEOF | 
| 1188 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
| 1189 | _ACEOF | 
| 1190 |  | 
| 1191 |  | 
| 1192 | cat >>confdefs.h <<_ACEOF | 
| 1193 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
| 1194 | _ACEOF | 
| 1195 |  | 
| 1196 |  | 
| 1197 | cat >>confdefs.h <<_ACEOF | 
| 1198 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
| 1199 | _ACEOF | 
| 1200 |  | 
| 1201 |  | 
| 1202 | # Let the site file select an alternate cache file if it wants to. | 
| 1203 | # Prefer explicitly selected file to automatically selected ones. | 
| 1204 | if test -z "$CONFIG_SITE"; then | 
| 1205 | if test "x$prefix" != xNONE; then | 
| 1206 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | 
| 1207 | else | 
| 1208 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 
| 1209 | fi | 
| 1210 | fi | 
| 1211 | for ac_site_file in $CONFIG_SITE; do | 
| 1212 | if test -r "$ac_site_file"; then | 
| 1213 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | 
| 1214 | echo "$as_me: loading site script $ac_site_file" >&6;} | 
| 1215 | sed 's/^/| /' "$ac_site_file" >&5 | 
| 1216 | . "$ac_site_file" | 
| 1217 | fi | 
| 1218 | done | 
| 1219 |  | 
| 1220 | if test -r "$cache_file"; then | 
| 1221 | # Some versions of bash will fail to source /dev/null (special | 
| 1222 | # files actually), so we avoid doing that. | 
| 1223 | if test -f "$cache_file"; then | 
| 1224 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | 
| 1225 | echo "$as_me: loading cache $cache_file" >&6;} | 
| 1226 | case $cache_file in | 
| 1227 | [\\/]* | ?:[\\/]* ) . $cache_file;; | 
| 1228 | *)                      . ./$cache_file;; | 
| 1229 | esac | 
| 1230 | fi | 
| 1231 | else | 
| 1232 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | 
| 1233 | echo "$as_me: creating cache $cache_file" >&6;} | 
| 1234 | >$cache_file | 
| 1235 | fi | 
| 1236 |  | 
| 1237 | # Check that the precious variables saved in the cache have kept the same | 
| 1238 | # value. | 
| 1239 | ac_cache_corrupted=false | 
| 1240 | for ac_var in `(set) 2>&1 | | 
| 1241 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | 
| 1242 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
| 1243 | eval ac_new_set=\$ac_env_${ac_var}_set | 
| 1244 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | 
| 1245 | eval ac_new_val="\$ac_env_${ac_var}_value" | 
| 1246 | case $ac_old_set,$ac_new_set in | 
| 1247 | set,) | 
| 1248 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | 
| 1249 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 
| 1250 | ac_cache_corrupted=: ;; | 
| 1251 | ,set) | 
| 1252 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | 
| 1253 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 
| 1254 | ac_cache_corrupted=: ;; | 
| 1255 | ,);; | 
| 1256 | *) | 
| 1257 | if test "x$ac_old_val" != "x$ac_new_val"; then | 
| 1258 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | 
| 1259 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
| 1260 | { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5 | 
| 1261 | echo "$as_me:   former value:  $ac_old_val" >&2;} | 
| 1262 | { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5 | 
| 1263 | echo "$as_me:   current value: $ac_new_val" >&2;} | 
| 1264 | ac_cache_corrupted=: | 
| 1265 | fi;; | 
| 1266 | esac | 
| 1267 | # Pass precious variables to config.status. | 
| 1268 | if test "$ac_new_set" = set; then | 
| 1269 | case $ac_new_val in | 
| 1270 | *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | 
| 1271 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| 1272 | *) ac_arg=$ac_var=$ac_new_val ;; | 
| 1273 | esac | 
| 1274 | case " $ac_configure_args " in | 
| 1275 | *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| 1276 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
| 1277 | esac | 
| 1278 | fi | 
| 1279 | done | 
| 1280 | if $ac_cache_corrupted; then | 
| 1281 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | 
| 1282 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
| 1283 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | 
| 1284 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | 
| 1285 | { (exit 1); exit 1; }; } | 
| 1286 | fi | 
| 1287 |  | 
| 1288 | ac_ext=c | 
| 1289 | ac_cpp='$CPP $CPPFLAGS' | 
| 1290 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 1291 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 1292 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 1293 |  | 
| 1294 |  | 
| 1295 |  | 
| 1296 |  | 
| 1297 |  | 
| 1298 |  | 
| 1299 |  | 
| 1300 |  | 
| 1301 |  | 
| 1302 |  | 
| 1303 |  | 
| 1304 |  | 
| 1305 |  | 
| 1306 |  | 
| 1307 |  | 
| 1308 |  | 
| 1309 |  | 
| 1310 |  | 
| 1311 |  | 
| 1312 |  | 
| 1313 |  | 
| 1314 |  | 
| 1315 |  | 
| 1316 |  | 
| 1317 |  | 
| 1318 |  | 
| 1319 |  | 
| 1320 | ac_aux_dir= | 
| 1321 | for ac_dir in ac-tools $srcdir/ac-tools; do | 
| 1322 | if test -f $ac_dir/install-sh; then | 
| 1323 | ac_aux_dir=$ac_dir | 
| 1324 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
| 1325 | break | 
| 1326 | elif test -f $ac_dir/install.sh; then | 
| 1327 | ac_aux_dir=$ac_dir | 
| 1328 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
| 1329 | break | 
| 1330 | elif test -f $ac_dir/shtool; then | 
| 1331 | ac_aux_dir=$ac_dir | 
| 1332 | ac_install_sh="$ac_aux_dir/shtool install -c" | 
| 1333 | break | 
| 1334 | fi | 
| 1335 | done | 
| 1336 | if test -z "$ac_aux_dir"; then | 
| 1337 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5 | 
| 1338 | echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;} | 
| 1339 | { (exit 1); exit 1; }; } | 
| 1340 | fi | 
| 1341 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | 
| 1342 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | 
| 1343 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | 
| 1344 |  | 
| 1345 |  | 
| 1346 | # This file is part of Autoconf.                       -*- Autoconf -*- | 
| 1347 | # Programming languages support. | 
| 1348 | # Copyright 2000, 2001 | 
| 1349 | # Free Software Foundation, Inc. | 
| 1350 | # | 
| 1351 | # This program is free software; you can redistribute it and/or modify | 
| 1352 | # it under the terms of the GNU General Public License as published by | 
| 1353 | # the Free Software Foundation; either version 2, or (at your option) | 
| 1354 | # any later version. | 
| 1355 | # | 
| 1356 | # This program is distributed in the hope that it will be useful, | 
| 1357 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| 1358 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
| 1359 | # GNU General Public License for more details. | 
| 1360 | # | 
| 1361 | # You should have received a copy of the GNU General Public License | 
| 1362 | # along with this program; if not, write to the Free Software | 
| 1363 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | 
| 1364 | # 02111-1307, USA. | 
| 1365 | # | 
| 1366 | # As a special exception, the Free Software Foundation gives unlimited | 
| 1367 | # permission to copy, distribute and modify the configure scripts that | 
| 1368 | # are the output of Autoconf.  You need not follow the terms of the GNU | 
| 1369 | # General Public License when using or distributing such scripts, even | 
| 1370 | # though portions of the text of Autoconf appear in them.  The GNU | 
| 1371 | # General Public License (GPL) does govern all other use of the material | 
| 1372 | # that constitutes the Autoconf program. | 
| 1373 | # | 
| 1374 | # Certain portions of the Autoconf source text are designed to be copied | 
| 1375 | # (in certain cases, depending on the input) into the output of | 
| 1376 | # Autoconf.  We call these the "data" portions.  The rest of the Autoconf | 
| 1377 | # source text consists of comments plus executable code that decides which | 
| 1378 | # of the data portions to output in any given case.  We call these | 
| 1379 | # comments and executable code the "non-data" portions.  Autoconf never | 
| 1380 | # copies any of the non-data portions into its output. | 
| 1381 | # | 
| 1382 | # This special exception to the GPL applies to versions of Autoconf | 
| 1383 | # released by the Free Software Foundation.  When you make and | 
| 1384 | # distribute a modified version of Autoconf, you may extend this special | 
| 1385 | # exception to the GPL to apply to your modified version as well, *unless* | 
| 1386 | # your modified version has the potential to copy into its output some | 
| 1387 | # of the text that was the non-data portion of the version that you started | 
| 1388 | # with.  (In other words, unless your change moves or copies text from | 
| 1389 | # the non-data portions to the data portions.)  If your modification has | 
| 1390 | # such potential, you must delete any notice of this special exception | 
| 1391 | # to the GPL from your modified version. | 
| 1392 | # | 
| 1393 | # Written by Akim Demaille, Christian Marquardt, Martin Wilks (and probably | 
| 1394 | # many others). | 
| 1395 |  | 
| 1396 |  | 
| 1397 | # Table of Contents: | 
| 1398 | # | 
| 1399 | # 1. Language selection | 
| 1400 | #    and routines to produce programs in a given language. | 
| 1401 | #  a. Fortran 77 (to be moved from aclang.m4) | 
| 1402 | #  b. Fortran 90 | 
| 1403 | #  c. Fortran 95 | 
| 1404 | # | 
| 1405 | # 2. Producing programs in a given language. | 
| 1406 | #  a. Fortran 77 (to be moved from aclang.m4) | 
| 1407 | #  b. Fortran 90 | 
| 1408 | #  c. Fortran 95 | 
| 1409 | # | 
| 1410 | # 3. Looking for a compiler | 
| 1411 | #    And possibly the associated preprocessor. | 
| 1412 | #  a. Fortran 77 (to be moved from aclang.m4) | 
| 1413 | #  b. Fortran 90 | 
| 1414 | #  c. Fortran 95 | 
| 1415 | # | 
| 1416 | # 4. Compilers' characteristics. | 
| 1417 | #  a. Fortran 77 (to be moved from aclang.m4) | 
| 1418 | #  b. Fortran 90 | 
| 1419 | #  c. Fortran 95 | 
| 1420 |  | 
| 1421 | # _AC_LIST_MEMBER_IF(ELEMENT, LIST, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | 
| 1422 | # --------------------------------------------------------------------------- | 
| 1423 | # | 
| 1424 | # Processing the elements of a list is tedious in shell programming, | 
| 1425 | # as lists tend to be implemented as space delimited strings. | 
| 1426 | # | 
| 1427 | # This macro searches LIST for ELEMENT, and executes ACTION-IF-FOUND | 
| 1428 | # if ELEMENT is a member of LIST, otherwise it executes | 
| 1429 | # ACTION-IF-NOT-FOUND. | 
| 1430 | # _AC_LIST_MEMBER_IF | 
| 1431 |  | 
| 1432 |  | 
| 1433 |  | 
| 1434 | # _AC_LINKER_OPTION(LINKER-OPTIONS, SHELL-VARIABLE) | 
| 1435 | # ------------------------------------------------- | 
| 1436 | # | 
| 1437 | # Specifying options to the compiler (whether it be the C, C++ or | 
| 1438 | # Fortran 77 compiler) that are meant for the linker is compiler | 
| 1439 | # dependent.  This macro lets you give options to the compiler that | 
| 1440 | # are meant for the linker in a portable, compiler-independent way. | 
| 1441 | # | 
| 1442 | # This macro take two arguments, a list of linker options that the | 
| 1443 | # compiler should pass to the linker (LINKER-OPTIONS) and the name of | 
| 1444 | # a shell variable (SHELL-VARIABLE).  The list of linker options are | 
| 1445 | # appended to the shell variable in a compiler-dependent way. | 
| 1446 | # | 
| 1447 | # For example, if the selected language is C, then this: | 
| 1448 | # | 
| 1449 | #   _AC_LINKER_OPTION([-R /usr/local/lib/foo], foo_LDFLAGS) | 
| 1450 | # | 
| 1451 | # will expand into this if the selected C compiler is gcc: | 
| 1452 | # | 
| 1453 | #   foo_LDFLAGS="-Xlinker -R -Xlinker /usr/local/lib/foo" | 
| 1454 | # | 
| 1455 | # otherwise, it will expand into this: | 
| 1456 | # | 
| 1457 | #   foo_LDFLAGS"-R /usr/local/lib/foo" | 
| 1458 | # | 
| 1459 | # You are encouraged to add support for compilers that this macro | 
| 1460 | # doesn't currently support. | 
| 1461 | # FIXME: Get rid of this macro. | 
| 1462 | # _AC_LINKER_OPTION | 
| 1463 |  | 
| 1464 |  | 
| 1465 |  | 
| 1466 | ## ----------------------- ## | 
| 1467 | ## 1. Language selection.  ## | 
| 1468 | ## ----------------------- ## | 
| 1469 |  | 
| 1470 | # ----------------------------- # | 
| 1471 | # 1b. The Fortran 90 language.  # | 
| 1472 | # ----------------------------- # | 
| 1473 |  | 
| 1474 | # AC_LANG(Fortran 90) | 
| 1475 | # ------------------- | 
| 1476 |  | 
| 1477 |  | 
| 1478 |  | 
| 1479 | # _AC_LANG_ABBREV(Fortran 90) | 
| 1480 | # --------------------------- | 
| 1481 |  | 
| 1482 |  | 
| 1483 |  | 
| 1484 | # ----------------------------- # | 
| 1485 | # 1c. The Fortran 95 language.  # | 
| 1486 | # ----------------------------- # | 
| 1487 |  | 
| 1488 | # AC_LANG(Fortran 95) | 
| 1489 | # ------------------- | 
| 1490 |  | 
| 1491 |  | 
| 1492 |  | 
| 1493 | # _AC_LANG_ABBREV(Fortran 95) | 
| 1494 | # --------------------------- | 
| 1495 |  | 
| 1496 |  | 
| 1497 |  | 
| 1498 | ## ---------------------- ## | 
| 1499 | ## 2.Producing programs.  ## | 
| 1500 | ## ---------------------- ## | 
| 1501 |  | 
| 1502 | # ------------------------ # | 
| 1503 | # 2b. Fortran 90 sources.  # | 
| 1504 | # ------------------------ # | 
| 1505 |  | 
| 1506 | # AC_LANG_SOURCE(Fortran 90)(BODY) | 
| 1507 | # -------------------------------- | 
| 1508 |  | 
| 1509 |  | 
| 1510 |  | 
| 1511 | # AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY]) | 
| 1512 | # ----------------------------------------------- | 
| 1513 |  | 
| 1514 |  | 
| 1515 | # AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION) | 
| 1516 | # -------------------------------------------- | 
| 1517 |  | 
| 1518 |  | 
| 1519 |  | 
| 1520 | # ------------------------ # | 
| 1521 | # 2c. Fortran 95 sources.  # | 
| 1522 | # ------------------------ # | 
| 1523 |  | 
| 1524 | # AC_LANG_SOURCE(Fortran 95)(BODY) | 
| 1525 | # -------------------------------- | 
| 1526 |  | 
| 1527 |  | 
| 1528 | # AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY]) | 
| 1529 | # ----------------------------------------------- | 
| 1530 |  | 
| 1531 |  | 
| 1532 | # AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION) | 
| 1533 | # -------------------------------------------- | 
| 1534 |  | 
| 1535 |  | 
| 1536 |  | 
| 1537 | ## -------------------------------------------- ## | 
| 1538 | ## 3. Looking for Compilers and Preprocessors.  ## | 
| 1539 | ## -------------------------------------------- ## | 
| 1540 |  | 
| 1541 | # ----------------------------- # | 
| 1542 | # 3b. The Fortran 90 compiler.  # | 
| 1543 | # ----------------------------- # | 
| 1544 |  | 
| 1545 |  | 
| 1546 | # AC_LANG_PREPROC(Fortran 90) | 
| 1547 | # --------------------------- | 
| 1548 | # Find the Fortran 90 preprocessor.  Must be AC_DEFUN'd to be AC_REQUIRE'able. | 
| 1549 |  | 
| 1550 |  | 
| 1551 |  | 
| 1552 | # AC_LANG_COMPILER(Fortran 90) | 
| 1553 | # ---------------------------- | 
| 1554 | # Find the Fortran 90 compiler.  Must be AC_DEFUN'd to be | 
| 1555 | # AC_REQUIRE'able. | 
| 1556 |  | 
| 1557 |  | 
| 1558 |  | 
| 1559 | # AC_PROG_F90([COMPILERS...]) | 
| 1560 | # --------------------------- | 
| 1561 | # COMPILERS is a space separated list of Fortran 90 compilers to search | 
| 1562 | # for. | 
| 1563 | # | 
| 1564 | # Compilers are ordered by | 
| 1565 | #  1. F90, F95 | 
| 1566 | #  2. Good/tested native compilers, bad/untested native compilers | 
| 1567 | # | 
| 1568 | # pgf90 is the Portland Group F90 compilers. | 
| 1569 | # xlf90/xlf95 are IBM (AIX) F90/F95 compilers. | 
| 1570 | # lf95 is the Lahey-Fujitsu compiler. | 
| 1571 | # epcf90 is the "Edinburgh Portable Compiler" F90. | 
| 1572 | # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha. | 
| 1573 | # AC_PROG_F90 | 
| 1574 |  | 
| 1575 |  | 
| 1576 | # ----------------------------- # | 
| 1577 | # 3c. The Fortran 95 compiler.  # | 
| 1578 | # ----------------------------- # | 
| 1579 |  | 
| 1580 |  | 
| 1581 | # AC_LANG_PREPROC(Fortran 95) | 
| 1582 | # --------------------------- | 
| 1583 | # Find the Fortran 95 preprocessor.  Must be AC_DEFUN'd to be AC_REQUIRE'able. | 
| 1584 |  | 
| 1585 |  | 
| 1586 |  | 
| 1587 | # AC_LANG_COMPILER(Fortran 95) | 
| 1588 | # ---------------------------- | 
| 1589 | # Find the Fortran 95 compiler.  Must be AC_DEFUN'd to be | 
| 1590 | # AC_REQUIRE'able. | 
| 1591 |  | 
| 1592 |  | 
| 1593 |  | 
| 1594 | # AC_PROG_F95([COMPILERS...]) | 
| 1595 | # --------------------------- | 
| 1596 | # COMPILERS is a space separated list of Fortran 95 compilers to search | 
| 1597 | # for. | 
| 1598 | # | 
| 1599 | # Compilers are ordered by | 
| 1600 | #  1. Good/tested native compilers, bad/untested native compilers | 
| 1601 | # | 
| 1602 | # xlf95 is the IBM (AIX) F95 compiler. | 
| 1603 | # lf95 is the Lahey-Fujitsu compiler. | 
| 1604 | # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha. | 
| 1605 | # AC_PROG_F95 | 
| 1606 |  | 
| 1607 |  | 
| 1608 | ## ------------------------------- ## | 
| 1609 | ## 4. Compilers' characteristics.  ## | 
| 1610 | ## ------------------------------- ## | 
| 1611 |  | 
| 1612 |  | 
| 1613 | # ---------------------------------------- # | 
| 1614 | # 4b. Fortan 90 compiler characteristics.  # | 
| 1615 | # ---------------------------------------- # | 
| 1616 |  | 
| 1617 |  | 
| 1618 | # _AC_PROG_F90_V_OUTPUT([FLAG = $ac_cv_prog_f90_v]) | 
| 1619 | # ------------------------------------------------- | 
| 1620 | # Link a trivial Fortran program, compiling with a verbose output FLAG | 
| 1621 | # (which default value, $ac_cv_prog_f90_v, is computed by | 
| 1622 | # _AC_PROG_F90_V), and return the output in $ac_f90_v_output.  This | 
| 1623 | # output is processed in the way expected by AC_F90_LIBRARY_LDFLAGS, | 
| 1624 | # so that any link flags that are echoed by the compiler appear as | 
| 1625 | # space-separated items. | 
| 1626 | # _AC_PROG_F90_V_OUTPUT | 
| 1627 |  | 
| 1628 |  | 
| 1629 | # _AC_PROG_F90_V | 
| 1630 | # -------------- | 
| 1631 | # | 
| 1632 | # Determine the flag that causes the Fortran 90 compiler to print | 
| 1633 | # information of library and object files (normally -v) | 
| 1634 | # Needed for AC_F90_LIBRARY_FLAGS | 
| 1635 | # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###) | 
| 1636 | # _AC_PROG_F90_V | 
| 1637 |  | 
| 1638 |  | 
| 1639 | # AC_F90_LIBRARY_LDFLAGS | 
| 1640 | # ---------------------- | 
| 1641 | # | 
| 1642 | # Determine the linker flags (e.g. "-L" and "-l") for the Fortran 90 | 
| 1643 | # intrinsic and run-time libraries that are required to successfully | 
| 1644 | # link a Fortran 90 program or shared library.  The output variable | 
| 1645 | # F90LIBS is set to these flags. | 
| 1646 | # | 
| 1647 | # This macro is intended to be used in those situations when it is | 
| 1648 | # necessary to mix, e.g. C++ and Fortran 90, source code into a single | 
| 1649 | # program or shared library. | 
| 1650 | # | 
| 1651 | # For example, if object files from a C++ and Fortran 90 compiler must | 
| 1652 | # be linked together, then the C++ compiler/linker must be used for | 
| 1653 | # linking (since special C++-ish things need to happen at link time | 
| 1654 | # like calling global constructors, instantiating templates, enabling | 
| 1655 | # exception support, etc.). | 
| 1656 | # | 
| 1657 | # However, the Fortran 90 intrinsic and run-time libraries must be | 
| 1658 | # linked in as well, but the C++ compiler/linker doesn't know how to | 
| 1659 | # add these Fortran 90 libraries.  Hence, the macro | 
| 1660 | # "AC_F90_LIBRARY_LDFLAGS" was created to determine these Fortran 90 | 
| 1661 | # libraries. | 
| 1662 | # | 
| 1663 | # This macro was copied from the Fortran 77 version by Matthew D. Langston. | 
| 1664 | # AC_F90_LIBRARY_LDFLAGS | 
| 1665 |  | 
| 1666 |  | 
| 1667 | # _AC_F90_NAME_MANGLING | 
| 1668 | # --------------------- | 
| 1669 | # Test for the name mangling scheme used by the Fortran 90 compiler. | 
| 1670 | # | 
| 1671 | # Sets ac_cv_f90_mangling. The value contains three fields, separated | 
| 1672 | # by commas: | 
| 1673 | # | 
| 1674 | # lower case / upper case: | 
| 1675 | #    case translation of the Fortan 90 symbols | 
| 1676 | # underscore / no underscore: | 
| 1677 | #    whether the compiler appends "_" to symbol names | 
| 1678 | # extra underscore / no extra underscore: | 
| 1679 | #    whether the compiler appends an extra "_" to symbol names already | 
| 1680 | #    containing at least one underscore | 
| 1681 | # | 
| 1682 | # _AC_F90_NAME_MANGLING | 
| 1683 |  | 
| 1684 | # The replacement is empty. | 
| 1685 |  | 
| 1686 |  | 
| 1687 |  | 
| 1688 | # AC_F90_WRAPPERS | 
| 1689 | # --------------- | 
| 1690 | # Defines C macros F90_FUNC(name,NAME) and F90_FUNC_(name,NAME) to | 
| 1691 | # properly mangle the names of C identifiers, and C identifiers with | 
| 1692 | # underscores, respectively, so that they match the name mangling | 
| 1693 | # scheme used by the Fortran 90 compiler. | 
| 1694 | # AC_F90_WRAPPERS | 
| 1695 |  | 
| 1696 |  | 
| 1697 | # AC_F90_FUNC(NAME, [SHELLVAR = NAME]) | 
| 1698 | # ------------------------------------ | 
| 1699 | # For a Fortran subroutine of given NAME, define a shell variable | 
| 1700 | # $SHELLVAR to the Fortran 90 mangled name.  If the SHELLVAR | 
| 1701 | # argument is not supplied, it defaults to NAME. | 
| 1702 | # AC_F90_FUNC | 
| 1703 |  | 
| 1704 |  | 
| 1705 | # ---------------------------------------- # | 
| 1706 | # 4c. Fortan 95 compiler characteristics.  # | 
| 1707 | # ---------------------------------------- # | 
| 1708 |  | 
| 1709 |  | 
| 1710 | # _AC_PROG_F95_V_OUTPUT([FLAG = $ac_cv_prog_f95_v]) | 
| 1711 | # ------------------------------------------------- | 
| 1712 | # Link a trivial Fortran program, compiling with a verbose output FLAG | 
| 1713 | # (which default value, $ac_cv_prog_f95_v, is computed by | 
| 1714 | # _AC_PROG_F95_V), and return the output in $ac_f95_v_output.  This | 
| 1715 | # output is processed in the way expected by AC_F95_LIBRARY_LDFLAGS, | 
| 1716 | # so that any link flags that are echoed by the compiler appear as | 
| 1717 | # space-separated items. | 
| 1718 | # _AC_PROG_F95_V_OUTPUT | 
| 1719 |  | 
| 1720 |  | 
| 1721 | # _AC_PROG_F95_V | 
| 1722 | # -------------- | 
| 1723 | # | 
| 1724 | # Determine the flag that causes the Fortran 95 compiler to print | 
| 1725 | # information of library and object files (normally -v) | 
| 1726 | # Needed for AC_F95_LIBRARY_FLAGS | 
| 1727 | # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###) | 
| 1728 | # _AC_PROG_F95_V | 
| 1729 |  | 
| 1730 |  | 
| 1731 | # AC_F95_LIBRARY_LDFLAGS | 
| 1732 | # ---------------------- | 
| 1733 | # | 
| 1734 | # Determine the linker flags (e.g. "-L" and "-l") for the Fortran 95 | 
| 1735 | # intrinsic and run-time libraries that are required to successfully | 
| 1736 | # link a Fortran 95 program or shared library.  The output variable | 
| 1737 | # F95LIBS is set to these flags. | 
| 1738 | # | 
| 1739 | # This macro is intended to be used in those situations when it is | 
| 1740 | # necessary to mix, e.g. C++ and Fortran 95, source code into a single | 
| 1741 | # program or shared library. | 
| 1742 | # | 
| 1743 | # For example, if object files from a C++ and Fortran 95 compiler must | 
| 1744 | # be linked together, then the C++ compiler/linker must be used for | 
| 1745 | # linking (since special C++-ish things need to happen at link time | 
| 1746 | # like calling global constructors, instantiating templates, enabling | 
| 1747 | # exception support, etc.). | 
| 1748 | # | 
| 1749 | # However, the Fortran 95 intrinsic and run-time libraries must be | 
| 1750 | # linked in as well, but the C++ compiler/linker doesn't know how to | 
| 1751 | # add these Fortran 95 libraries.  Hence, the macro | 
| 1752 | # "AC_F95_LIBRARY_LDFLAGS" was created to determine these Fortran 95 | 
| 1753 | # libraries. | 
| 1754 | # | 
| 1755 | # This macro was copied from the Fortran 77 version by Matthew D. Langston. | 
| 1756 | # AC_F95_LIBRARY_LDFLAGS | 
| 1757 |  | 
| 1758 |  | 
| 1759 | # _AC_F95_NAME_MANGLING | 
| 1760 | # --------------------- | 
| 1761 | # Test for the name mangling scheme used by the Fortran 95 compiler. | 
| 1762 | # | 
| 1763 | # Sets ac_cv_f95_mangling. The value contains three fields, separated | 
| 1764 | # by commas: | 
| 1765 | # | 
| 1766 | # lower case / upper case: | 
| 1767 | #    case translation of the Fortan 95 symbols | 
| 1768 | # underscore / no underscore: | 
| 1769 | #    whether the compiler appends "_" to symbol names | 
| 1770 | # extra underscore / no extra underscore: | 
| 1771 | #    whether the compiler appends an extra "_" to symbol names already | 
| 1772 | #    containing at least one underscore | 
| 1773 | # | 
| 1774 | # _AC_F95_NAME_MANGLING | 
| 1775 |  | 
| 1776 | # The replacement is empty. | 
| 1777 |  | 
| 1778 |  | 
| 1779 |  | 
| 1780 | # AC_F95_WRAPPERS | 
| 1781 | # --------------- | 
| 1782 | # Defines C macros F95_FUNC(name,NAME) and F95_FUNC_(name,NAME) to | 
| 1783 | # properly mangle the names of C identifiers, and C identifiers with | 
| 1784 | # underscores, respectively, so that they match the name mangling | 
| 1785 | # scheme used by the Fortran 95 compiler. | 
| 1786 | # AC_F95_WRAPPERS | 
| 1787 |  | 
| 1788 |  | 
| 1789 | # AC_F95_FUNC(NAME, [SHELLVAR = NAME]) | 
| 1790 | # ------------------------------------ | 
| 1791 | # For a Fortran subroutine of given NAME, define a shell variable | 
| 1792 | # $SHELLVAR to the Fortran 95 mangled name.  If the SHELLVAR | 
| 1793 | # argument is not supplied, it defaults to NAME. | 
| 1794 | # AC_F95_FUNC | 
| 1795 |  | 
| 1796 |  | 
| 1797 |  | 
| 1798 |  | 
| 1799 |  | 
| 1800 |  | 
| 1801 |  | 
| 1802 |  | 
| 1803 |  | 
| 1804 |  | 
| 1805 |  | 
| 1806 |  | 
| 1807 |  | 
| 1808 |  | 
| 1809 |  | 
| 1810 |  | 
| 1811 |  | 
| 1812 |  | 
| 1813 |  | 
| 1814 |  | 
| 1815 |  | 
| 1816 |  | 
| 1817 |  | 
| 1818 |  | 
| 1819 |  | 
| 1820 |  | 
| 1821 |  | 
| 1822 |  | 
| 1823 |  | 
| 1824 |  | 
| 1825 |  | 
| 1826 |  | 
| 1827 |  | 
| 1828 |  | 
| 1829 |  | 
| 1830 |  | 
| 1831 | # what should I build? | 
| 1832 |  | 
| 1833 | # Check whether --enable-debug or --disable-debug was given. | 
| 1834 | if test "${enable_debug+set}" = set; then | 
| 1835 | enableval="$enable_debug" | 
| 1836 | DEBUG=1 | 
| 1837 | fi; | 
| 1838 |  | 
| 1839 | # set program name | 
| 1840 | PROGNAME="oopse" | 
| 1841 |  | 
| 1842 |  | 
| 1843 | if test "${DEBUG}"; then | 
| 1844 |  | 
| 1845 | cat >>confdefs.h <<\_ACEOF | 
| 1846 | #define DEBUG 1 | 
| 1847 | _ACEOF | 
| 1848 |  | 
| 1849 | msg="$msg, debug mode" | 
| 1850 | fi | 
| 1851 |  | 
| 1852 |  | 
| 1853 | # who am i | 
| 1854 | # Make sure we can run config.sub. | 
| 1855 | $ac_config_sub sun4 >/dev/null 2>&1 || | 
| 1856 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | 
| 1857 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | 
| 1858 | { (exit 1); exit 1; }; } | 
| 1859 |  | 
| 1860 | echo "$as_me:$LINENO: checking build system type" >&5 | 
| 1861 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | 
| 1862 | if test "${ac_cv_build+set}" = set; then | 
| 1863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 1864 | else | 
| 1865 | ac_cv_build_alias=$build_alias | 
| 1866 | test -z "$ac_cv_build_alias" && | 
| 1867 | ac_cv_build_alias=`$ac_config_guess` | 
| 1868 | test -z "$ac_cv_build_alias" && | 
| 1869 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | 
| 1870 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | 
| 1871 | { (exit 1); exit 1; }; } | 
| 1872 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | 
| 1873 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | 
| 1874 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | 
| 1875 | { (exit 1); exit 1; }; } | 
| 1876 |  | 
| 1877 | fi | 
| 1878 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | 
| 1879 | echo "${ECHO_T}$ac_cv_build" >&6 | 
| 1880 | build=$ac_cv_build | 
| 1881 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
| 1882 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
| 1883 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
| 1884 |  | 
| 1885 |  | 
| 1886 | echo "$as_me:$LINENO: checking host system type" >&5 | 
| 1887 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | 
| 1888 | if test "${ac_cv_host+set}" = set; then | 
| 1889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 1890 | else | 
| 1891 | ac_cv_host_alias=$host_alias | 
| 1892 | test -z "$ac_cv_host_alias" && | 
| 1893 | ac_cv_host_alias=$ac_cv_build_alias | 
| 1894 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | 
| 1895 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | 
| 1896 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | 
| 1897 | { (exit 1); exit 1; }; } | 
| 1898 |  | 
| 1899 | fi | 
| 1900 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | 
| 1901 | echo "${ECHO_T}$ac_cv_host" >&6 | 
| 1902 | host=$ac_cv_host | 
| 1903 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
| 1904 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
| 1905 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
| 1906 |  | 
| 1907 |  | 
| 1908 |  | 
| 1909 | ac_ext=c | 
| 1910 | ac_cpp='$CPP $CPPFLAGS' | 
| 1911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 1912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 1913 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 1914 | if test -n "$ac_tool_prefix"; then | 
| 1915 | for ac_prog in icc xlc gcc cc | 
| 1916 | do | 
| 1917 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
| 1918 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| 1919 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
| 1920 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| 1921 | if test "${ac_cv_prog_CC+set}" = set; then | 
| 1922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 1923 | else | 
| 1924 | if test -n "$CC"; then | 
| 1925 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
| 1926 | else | 
| 1927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| 1928 | for as_dir in $PATH | 
| 1929 | do | 
| 1930 | IFS=$as_save_IFS | 
| 1931 | test -z "$as_dir" && as_dir=. | 
| 1932 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| 1933 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| 1934 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| 1935 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| 1936 | break 2 | 
| 1937 | fi | 
| 1938 | done | 
| 1939 | done | 
| 1940 |  | 
| 1941 | fi | 
| 1942 | fi | 
| 1943 | CC=$ac_cv_prog_CC | 
| 1944 | if test -n "$CC"; then | 
| 1945 | echo "$as_me:$LINENO: result: $CC" >&5 | 
| 1946 | echo "${ECHO_T}$CC" >&6 | 
| 1947 | else | 
| 1948 | echo "$as_me:$LINENO: result: no" >&5 | 
| 1949 | echo "${ECHO_T}no" >&6 | 
| 1950 | fi | 
| 1951 |  | 
| 1952 | test -n "$CC" && break | 
| 1953 | done | 
| 1954 | fi | 
| 1955 | if test -z "$CC"; then | 
| 1956 | ac_ct_CC=$CC | 
| 1957 | for ac_prog in icc xlc gcc cc | 
| 1958 | do | 
| 1959 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
| 1960 | set dummy $ac_prog; ac_word=$2 | 
| 1961 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
| 1962 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| 1963 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | 
| 1964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 1965 | else | 
| 1966 | if test -n "$ac_ct_CC"; then | 
| 1967 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
| 1968 | else | 
| 1969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| 1970 | for as_dir in $PATH | 
| 1971 | do | 
| 1972 | IFS=$as_save_IFS | 
| 1973 | test -z "$as_dir" && as_dir=. | 
| 1974 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| 1975 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| 1976 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
| 1977 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| 1978 | break 2 | 
| 1979 | fi | 
| 1980 | done | 
| 1981 | done | 
| 1982 |  | 
| 1983 | fi | 
| 1984 | fi | 
| 1985 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
| 1986 | if test -n "$ac_ct_CC"; then | 
| 1987 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | 
| 1988 | echo "${ECHO_T}$ac_ct_CC" >&6 | 
| 1989 | else | 
| 1990 | echo "$as_me:$LINENO: result: no" >&5 | 
| 1991 | echo "${ECHO_T}no" >&6 | 
| 1992 | fi | 
| 1993 |  | 
| 1994 | test -n "$ac_ct_CC" && break | 
| 1995 | done | 
| 1996 |  | 
| 1997 | CC=$ac_ct_CC | 
| 1998 | fi | 
| 1999 |  | 
| 2000 |  | 
| 2001 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 
| 2002 | See \`config.log' for more details." >&5 | 
| 2003 | echo "$as_me: error: no acceptable C compiler found in \$PATH | 
| 2004 | See \`config.log' for more details." >&2;} | 
| 2005 | { (exit 1); exit 1; }; } | 
| 2006 |  | 
| 2007 | # Provide some information about the compiler. | 
| 2008 | echo "$as_me:$LINENO:" \ | 
| 2009 | "checking for C compiler version" >&5 | 
| 2010 | ac_compiler=`set X $ac_compile; echo $2` | 
| 2011 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
| 2012 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
| 2013 | ac_status=$? | 
| 2014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2015 | (exit $ac_status); } | 
| 2016 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
| 2017 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
| 2018 | ac_status=$? | 
| 2019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2020 | (exit $ac_status); } | 
| 2021 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
| 2022 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
| 2023 | ac_status=$? | 
| 2024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2025 | (exit $ac_status); } | 
| 2026 |  | 
| 2027 | cat >conftest.$ac_ext <<_ACEOF | 
| 2028 | #line $LINENO "configure" | 
| 2029 | /* confdefs.h.  */ | 
| 2030 | _ACEOF | 
| 2031 | cat confdefs.h >>conftest.$ac_ext | 
| 2032 | cat >>conftest.$ac_ext <<_ACEOF | 
| 2033 | /* end confdefs.h.  */ | 
| 2034 |  | 
| 2035 | int | 
| 2036 | main () | 
| 2037 | { | 
| 2038 |  | 
| 2039 | ; | 
| 2040 | return 0; | 
| 2041 | } | 
| 2042 | _ACEOF | 
| 2043 | ac_clean_files_save=$ac_clean_files | 
| 2044 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | 
| 2045 | # Try to create an executable without -o first, disregard a.out. | 
| 2046 | # It will help us diagnose broken compilers, and finding out an intuition | 
| 2047 | # of exeext. | 
| 2048 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | 
| 2049 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | 
| 2050 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
| 2051 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | 
| 2052 | (eval $ac_link_default) 2>&5 | 
| 2053 | ac_status=$? | 
| 2054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2055 | (exit $ac_status); }; then | 
| 2056 | # Find the output, starting from the most likely.  This scheme is | 
| 2057 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | 
| 2058 | # resort. | 
| 2059 |  | 
| 2060 | # Be careful to initialize this variable, since it used to be cached. | 
| 2061 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | 
| 2062 | ac_cv_exeext= | 
| 2063 | # b.out is created by i960 compilers. | 
| 2064 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | 
| 2065 | do | 
| 2066 | test -f "$ac_file" || continue | 
| 2067 | case $ac_file in | 
| 2068 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | 
| 2069 | ;; | 
| 2070 | conftest.$ac_ext ) | 
| 2071 | # This is the source file. | 
| 2072 | ;; | 
| 2073 | [ab].out ) | 
| 2074 | # We found the default executable, but exeext='' is most | 
| 2075 | # certainly right. | 
| 2076 | break;; | 
| 2077 | *.* ) | 
| 2078 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
| 2079 | # FIXME: I believe we export ac_cv_exeext for Libtool, | 
| 2080 | # but it would be cool to find out if it's true.  Does anybody | 
| 2081 | # maintain Libtool? --akim. | 
| 2082 | export ac_cv_exeext | 
| 2083 | break;; | 
| 2084 | * ) | 
| 2085 | break;; | 
| 2086 | esac | 
| 2087 | done | 
| 2088 | else | 
| 2089 | echo "$as_me: failed program was:" >&5 | 
| 2090 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 2091 |  | 
| 2092 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | 
| 2093 | See \`config.log' for more details." >&5 | 
| 2094 | echo "$as_me: error: C compiler cannot create executables | 
| 2095 | See \`config.log' for more details." >&2;} | 
| 2096 | { (exit 77); exit 77; }; } | 
| 2097 | fi | 
| 2098 |  | 
| 2099 | ac_exeext=$ac_cv_exeext | 
| 2100 | echo "$as_me:$LINENO: result: $ac_file" >&5 | 
| 2101 | echo "${ECHO_T}$ac_file" >&6 | 
| 2102 |  | 
| 2103 | # Check the compiler produces executables we can run.  If not, either | 
| 2104 | # the compiler is broken, or we cross compile. | 
| 2105 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | 
| 2106 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | 
| 2107 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | 
| 2108 | # If not cross compiling, check that we can run a simple program. | 
| 2109 | if test "$cross_compiling" != yes; then | 
| 2110 | if { ac_try='./$ac_file' | 
| 2111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 2112 | (eval $ac_try) 2>&5 | 
| 2113 | ac_status=$? | 
| 2114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2115 | (exit $ac_status); }; }; then | 
| 2116 | cross_compiling=no | 
| 2117 | else | 
| 2118 | if test "$cross_compiling" = maybe; then | 
| 2119 | cross_compiling=yes | 
| 2120 | else | 
| 2121 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | 
| 2122 | If you meant to cross compile, use \`--host'. | 
| 2123 | See \`config.log' for more details." >&5 | 
| 2124 | echo "$as_me: error: cannot run C compiled programs. | 
| 2125 | If you meant to cross compile, use \`--host'. | 
| 2126 | See \`config.log' for more details." >&2;} | 
| 2127 | { (exit 1); exit 1; }; } | 
| 2128 | fi | 
| 2129 | fi | 
| 2130 | fi | 
| 2131 | echo "$as_me:$LINENO: result: yes" >&5 | 
| 2132 | echo "${ECHO_T}yes" >&6 | 
| 2133 |  | 
| 2134 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | 
| 2135 | ac_clean_files=$ac_clean_files_save | 
| 2136 | # Check the compiler produces executables we can run.  If not, either | 
| 2137 | # the compiler is broken, or we cross compile. | 
| 2138 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | 
| 2139 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | 
| 2140 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | 
| 2141 | echo "${ECHO_T}$cross_compiling" >&6 | 
| 2142 |  | 
| 2143 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | 
| 2144 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | 
| 2145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| 2146 | (eval $ac_link) 2>&5 | 
| 2147 | ac_status=$? | 
| 2148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2149 | (exit $ac_status); }; then | 
| 2150 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
| 2151 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
| 2152 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
| 2153 | # `rm'. | 
| 2154 | for ac_file in conftest.exe conftest conftest.*; do | 
| 2155 | test -f "$ac_file" || continue | 
| 2156 | case $ac_file in | 
| 2157 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | 
| 2158 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
| 2159 | export ac_cv_exeext | 
| 2160 | break;; | 
| 2161 | * ) break;; | 
| 2162 | esac | 
| 2163 | done | 
| 2164 | else | 
| 2165 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | 
| 2166 | See \`config.log' for more details." >&5 | 
| 2167 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | 
| 2168 | See \`config.log' for more details." >&2;} | 
| 2169 | { (exit 1); exit 1; }; } | 
| 2170 | fi | 
| 2171 |  | 
| 2172 | rm -f conftest$ac_cv_exeext | 
| 2173 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | 
| 2174 | echo "${ECHO_T}$ac_cv_exeext" >&6 | 
| 2175 |  | 
| 2176 | rm -f conftest.$ac_ext | 
| 2177 | EXEEXT=$ac_cv_exeext | 
| 2178 | ac_exeext=$EXEEXT | 
| 2179 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | 
| 2180 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | 
| 2181 | if test "${ac_cv_objext+set}" = set; then | 
| 2182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 2183 | else | 
| 2184 | cat >conftest.$ac_ext <<_ACEOF | 
| 2185 | #line $LINENO "configure" | 
| 2186 | /* confdefs.h.  */ | 
| 2187 | _ACEOF | 
| 2188 | cat confdefs.h >>conftest.$ac_ext | 
| 2189 | cat >>conftest.$ac_ext <<_ACEOF | 
| 2190 | /* end confdefs.h.  */ | 
| 2191 |  | 
| 2192 | int | 
| 2193 | main () | 
| 2194 | { | 
| 2195 |  | 
| 2196 | ; | 
| 2197 | return 0; | 
| 2198 | } | 
| 2199 | _ACEOF | 
| 2200 | rm -f conftest.o conftest.obj | 
| 2201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 2202 | (eval $ac_compile) 2>&5 | 
| 2203 | ac_status=$? | 
| 2204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2205 | (exit $ac_status); }; then | 
| 2206 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | 
| 2207 | case $ac_file in | 
| 2208 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | 
| 2209 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
| 2210 | break;; | 
| 2211 | esac | 
| 2212 | done | 
| 2213 | else | 
| 2214 | echo "$as_me: failed program was:" >&5 | 
| 2215 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 2216 |  | 
| 2217 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | 
| 2218 | See \`config.log' for more details." >&5 | 
| 2219 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | 
| 2220 | See \`config.log' for more details." >&2;} | 
| 2221 | { (exit 1); exit 1; }; } | 
| 2222 | fi | 
| 2223 |  | 
| 2224 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
| 2225 | fi | 
| 2226 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | 
| 2227 | echo "${ECHO_T}$ac_cv_objext" >&6 | 
| 2228 | OBJEXT=$ac_cv_objext | 
| 2229 | ac_objext=$OBJEXT | 
| 2230 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | 
| 2231 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | 
| 2232 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 
| 2233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 2234 | else | 
| 2235 | cat >conftest.$ac_ext <<_ACEOF | 
| 2236 | #line $LINENO "configure" | 
| 2237 | /* confdefs.h.  */ | 
| 2238 | _ACEOF | 
| 2239 | cat confdefs.h >>conftest.$ac_ext | 
| 2240 | cat >>conftest.$ac_ext <<_ACEOF | 
| 2241 | /* end confdefs.h.  */ | 
| 2242 |  | 
| 2243 | int | 
| 2244 | main () | 
| 2245 | { | 
| 2246 | #ifndef __GNUC__ | 
| 2247 | choke me | 
| 2248 | #endif | 
| 2249 |  | 
| 2250 | ; | 
| 2251 | return 0; | 
| 2252 | } | 
| 2253 | _ACEOF | 
| 2254 | rm -f conftest.$ac_objext | 
| 2255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 2256 | (eval $ac_compile) 2>&5 | 
| 2257 | ac_status=$? | 
| 2258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2259 | (exit $ac_status); } && | 
| 2260 | { ac_try='test -s conftest.$ac_objext' | 
| 2261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 2262 | (eval $ac_try) 2>&5 | 
| 2263 | ac_status=$? | 
| 2264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2265 | (exit $ac_status); }; }; then | 
| 2266 | ac_compiler_gnu=yes | 
| 2267 | else | 
| 2268 | echo "$as_me: failed program was:" >&5 | 
| 2269 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 2270 |  | 
| 2271 | ac_compiler_gnu=no | 
| 2272 | fi | 
| 2273 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 2274 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
| 2275 |  | 
| 2276 | fi | 
| 2277 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | 
| 2278 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | 
| 2279 | GCC=`test $ac_compiler_gnu = yes && echo yes` | 
| 2280 | ac_test_CFLAGS=${CFLAGS+set} | 
| 2281 | ac_save_CFLAGS=$CFLAGS | 
| 2282 | CFLAGS="-g" | 
| 2283 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | 
| 2284 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | 
| 2285 | if test "${ac_cv_prog_cc_g+set}" = set; then | 
| 2286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 2287 | else | 
| 2288 | cat >conftest.$ac_ext <<_ACEOF | 
| 2289 | #line $LINENO "configure" | 
| 2290 | /* confdefs.h.  */ | 
| 2291 | _ACEOF | 
| 2292 | cat confdefs.h >>conftest.$ac_ext | 
| 2293 | cat >>conftest.$ac_ext <<_ACEOF | 
| 2294 | /* end confdefs.h.  */ | 
| 2295 |  | 
| 2296 | int | 
| 2297 | main () | 
| 2298 | { | 
| 2299 |  | 
| 2300 | ; | 
| 2301 | return 0; | 
| 2302 | } | 
| 2303 | _ACEOF | 
| 2304 | rm -f conftest.$ac_objext | 
| 2305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 2306 | (eval $ac_compile) 2>&5 | 
| 2307 | ac_status=$? | 
| 2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2309 | (exit $ac_status); } && | 
| 2310 | { ac_try='test -s conftest.$ac_objext' | 
| 2311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 2312 | (eval $ac_try) 2>&5 | 
| 2313 | ac_status=$? | 
| 2314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2315 | (exit $ac_status); }; }; then | 
| 2316 | ac_cv_prog_cc_g=yes | 
| 2317 | else | 
| 2318 | echo "$as_me: failed program was:" >&5 | 
| 2319 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 2320 |  | 
| 2321 | ac_cv_prog_cc_g=no | 
| 2322 | fi | 
| 2323 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 2324 | fi | 
| 2325 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | 
| 2326 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | 
| 2327 | if test "$ac_test_CFLAGS" = set; then | 
| 2328 | CFLAGS=$ac_save_CFLAGS | 
| 2329 | elif test $ac_cv_prog_cc_g = yes; then | 
| 2330 | if test "$GCC" = yes; then | 
| 2331 | CFLAGS="-g -O2" | 
| 2332 | else | 
| 2333 | CFLAGS="-g" | 
| 2334 | fi | 
| 2335 | else | 
| 2336 | if test "$GCC" = yes; then | 
| 2337 | CFLAGS="-O2" | 
| 2338 | else | 
| 2339 | CFLAGS= | 
| 2340 | fi | 
| 2341 | fi | 
| 2342 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | 
| 2343 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | 
| 2344 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | 
| 2345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 2346 | else | 
| 2347 | ac_cv_prog_cc_stdc=no | 
| 2348 | ac_save_CC=$CC | 
| 2349 | cat >conftest.$ac_ext <<_ACEOF | 
| 2350 | #line $LINENO "configure" | 
| 2351 | /* confdefs.h.  */ | 
| 2352 | _ACEOF | 
| 2353 | cat confdefs.h >>conftest.$ac_ext | 
| 2354 | cat >>conftest.$ac_ext <<_ACEOF | 
| 2355 | /* end confdefs.h.  */ | 
| 2356 | #include <stdarg.h> | 
| 2357 | #include <stdio.h> | 
| 2358 | #include <sys/types.h> | 
| 2359 | #include <sys/stat.h> | 
| 2360 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
| 2361 | struct buf { int x; }; | 
| 2362 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
| 2363 | static char *e (p, i) | 
| 2364 | char **p; | 
| 2365 | int i; | 
| 2366 | { | 
| 2367 | return p[i]; | 
| 2368 | } | 
| 2369 | static char *f (char * (*g) (char **, int), char **p, ...) | 
| 2370 | { | 
| 2371 | char *s; | 
| 2372 | va_list v; | 
| 2373 | va_start (v,p); | 
| 2374 | s = g (p, va_arg (v,int)); | 
| 2375 | va_end (v); | 
| 2376 | return s; | 
| 2377 | } | 
| 2378 | int test (int i, double x); | 
| 2379 | struct s1 {int (*f) (int a);}; | 
| 2380 | struct s2 {int (*f) (double a);}; | 
| 2381 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
| 2382 | int argc; | 
| 2383 | char **argv; | 
| 2384 | int | 
| 2385 | main () | 
| 2386 | { | 
| 2387 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
| 2388 | ; | 
| 2389 | return 0; | 
| 2390 | } | 
| 2391 | _ACEOF | 
| 2392 | # Don't try gcc -ansi; that turns off useful extensions and | 
| 2393 | # breaks some systems' header files. | 
| 2394 | # AIX                   -qlanglvl=ansi | 
| 2395 | # Ultrix and OSF/1      -std1 | 
| 2396 | # HP-UX 10.20 and later -Ae | 
| 2397 | # HP-UX older versions  -Aa -D_HPUX_SOURCE | 
| 2398 | # SVR4                  -Xc -D__EXTENSIONS__ | 
| 2399 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
| 2400 | do | 
| 2401 | CC="$ac_save_CC $ac_arg" | 
| 2402 | rm -f conftest.$ac_objext | 
| 2403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 2404 | (eval $ac_compile) 2>&5 | 
| 2405 | ac_status=$? | 
| 2406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2407 | (exit $ac_status); } && | 
| 2408 | { ac_try='test -s conftest.$ac_objext' | 
| 2409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 2410 | (eval $ac_try) 2>&5 | 
| 2411 | ac_status=$? | 
| 2412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2413 | (exit $ac_status); }; }; then | 
| 2414 | ac_cv_prog_cc_stdc=$ac_arg | 
| 2415 | break | 
| 2416 | else | 
| 2417 | echo "$as_me: failed program was:" >&5 | 
| 2418 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 2419 |  | 
| 2420 | fi | 
| 2421 | rm -f conftest.$ac_objext | 
| 2422 | done | 
| 2423 | rm -f conftest.$ac_ext conftest.$ac_objext | 
| 2424 | CC=$ac_save_CC | 
| 2425 |  | 
| 2426 | fi | 
| 2427 |  | 
| 2428 | case "x$ac_cv_prog_cc_stdc" in | 
| 2429 | x|xno) | 
| 2430 | echo "$as_me:$LINENO: result: none needed" >&5 | 
| 2431 | echo "${ECHO_T}none needed" >&6 ;; | 
| 2432 | *) | 
| 2433 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | 
| 2434 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | 
| 2435 | CC="$CC $ac_cv_prog_cc_stdc" ;; | 
| 2436 | esac | 
| 2437 |  | 
| 2438 | # Some people use a C++ compiler to compile C.  Since we use `exit', | 
| 2439 | # in C++ we need to declare it.  In case someone uses the same compiler | 
| 2440 | # for both compiling C and C++ we need to have the C++ compiler decide | 
| 2441 | # the declaration of exit, since it's the most demanding environment. | 
| 2442 | cat >conftest.$ac_ext <<_ACEOF | 
| 2443 | #ifndef __cplusplus | 
| 2444 | choke me | 
| 2445 | #endif | 
| 2446 | _ACEOF | 
| 2447 | rm -f conftest.$ac_objext | 
| 2448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 2449 | (eval $ac_compile) 2>&5 | 
| 2450 | ac_status=$? | 
| 2451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2452 | (exit $ac_status); } && | 
| 2453 | { ac_try='test -s conftest.$ac_objext' | 
| 2454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 2455 | (eval $ac_try) 2>&5 | 
| 2456 | ac_status=$? | 
| 2457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2458 | (exit $ac_status); }; }; then | 
| 2459 | for ac_declaration in \ | 
| 2460 | ''\ | 
| 2461 | '#include <stdlib.h>' \ | 
| 2462 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
| 2463 | 'extern "C" void std::exit (int); using std::exit;' \ | 
| 2464 | 'extern "C" void exit (int) throw ();' \ | 
| 2465 | 'extern "C" void exit (int);' \ | 
| 2466 | 'void exit (int);' | 
| 2467 | do | 
| 2468 | cat >conftest.$ac_ext <<_ACEOF | 
| 2469 | #line $LINENO "configure" | 
| 2470 | /* confdefs.h.  */ | 
| 2471 | _ACEOF | 
| 2472 | cat confdefs.h >>conftest.$ac_ext | 
| 2473 | cat >>conftest.$ac_ext <<_ACEOF | 
| 2474 | /* end confdefs.h.  */ | 
| 2475 | #include <stdlib.h> | 
| 2476 | $ac_declaration | 
| 2477 | int | 
| 2478 | main () | 
| 2479 | { | 
| 2480 | exit (42); | 
| 2481 | ; | 
| 2482 | return 0; | 
| 2483 | } | 
| 2484 | _ACEOF | 
| 2485 | rm -f conftest.$ac_objext | 
| 2486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 2487 | (eval $ac_compile) 2>&5 | 
| 2488 | ac_status=$? | 
| 2489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2490 | (exit $ac_status); } && | 
| 2491 | { ac_try='test -s conftest.$ac_objext' | 
| 2492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 2493 | (eval $ac_try) 2>&5 | 
| 2494 | ac_status=$? | 
| 2495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2496 | (exit $ac_status); }; }; then | 
| 2497 | : | 
| 2498 | else | 
| 2499 | echo "$as_me: failed program was:" >&5 | 
| 2500 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 2501 |  | 
| 2502 | continue | 
| 2503 | fi | 
| 2504 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 2505 | cat >conftest.$ac_ext <<_ACEOF | 
| 2506 | #line $LINENO "configure" | 
| 2507 | /* confdefs.h.  */ | 
| 2508 | _ACEOF | 
| 2509 | cat confdefs.h >>conftest.$ac_ext | 
| 2510 | cat >>conftest.$ac_ext <<_ACEOF | 
| 2511 | /* end confdefs.h.  */ | 
| 2512 | $ac_declaration | 
| 2513 | int | 
| 2514 | main () | 
| 2515 | { | 
| 2516 | exit (42); | 
| 2517 | ; | 
| 2518 | return 0; | 
| 2519 | } | 
| 2520 | _ACEOF | 
| 2521 | rm -f conftest.$ac_objext | 
| 2522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 2523 | (eval $ac_compile) 2>&5 | 
| 2524 | ac_status=$? | 
| 2525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2526 | (exit $ac_status); } && | 
| 2527 | { ac_try='test -s conftest.$ac_objext' | 
| 2528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 2529 | (eval $ac_try) 2>&5 | 
| 2530 | ac_status=$? | 
| 2531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2532 | (exit $ac_status); }; }; then | 
| 2533 | break | 
| 2534 | else | 
| 2535 | echo "$as_me: failed program was:" >&5 | 
| 2536 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 2537 |  | 
| 2538 | fi | 
| 2539 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 2540 | done | 
| 2541 | rm -f conftest* | 
| 2542 | if test -n "$ac_declaration"; then | 
| 2543 | echo '#ifdef __cplusplus' >>confdefs.h | 
| 2544 | echo $ac_declaration      >>confdefs.h | 
| 2545 | echo '#endif'             >>confdefs.h | 
| 2546 | fi | 
| 2547 |  | 
| 2548 | else | 
| 2549 | echo "$as_me: failed program was:" >&5 | 
| 2550 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 2551 |  | 
| 2552 | fi | 
| 2553 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 2554 | ac_ext=c | 
| 2555 | ac_cpp='$CPP $CPPFLAGS' | 
| 2556 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 2557 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 2558 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 2559 |  | 
| 2560 |  | 
| 2561 |  | 
| 2562 |  | 
| 2563 |  | 
| 2564 | # Try to determine "good" native compiler flags if none specified on command | 
| 2565 | # line | 
| 2566 | if test "$ac_test_CFLAGS" != "set"; then | 
| 2567 | CFLAGS="" | 
| 2568 | case "${host_cpu}-${host_os}" in | 
| 2569 |  | 
| 2570 | *linux*) if test "$CC" = icc; then | 
| 2571 | CFLAGS="-O" | 
| 2572 | fi;; | 
| 2573 | sparc-solaris2*) if test "$CC" = cc; then | 
| 2574 | CFLAGS="-native -fast -xO5 -dalign" | 
| 2575 | fi;; | 
| 2576 |  | 
| 2577 | alpha*-osf*)  if test "$CC" = cc; then | 
| 2578 | CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1" | 
| 2579 | fi;; | 
| 2580 |  | 
| 2581 | hppa*-hpux*)  if test "$CC" = cc; then | 
| 2582 | CFLAGS="-Ae +O3 +Oall" | 
| 2583 | fi;; | 
| 2584 |  | 
| 2585 | rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then | 
| 2586 | CFLAGS="-O3 -qtune=auto -qansialias -w" | 
| 2587 | fi;; | 
| 2588 | powerpc*-aix*) | 
| 2589 | if test "$CC" = cc -o "$CC" = xlc; then | 
| 2590 | CFLAGS="-O3 -qtune=auto -qansialias -w" | 
| 2591 | echo "*******************************************************" | 
| 2592 | echo "*  You have AIX on an unknown powerpc system.  It is  *" | 
| 2593 | echo "*  recommended that you use                           *" | 
| 2594 | echo "*                                                     *" | 
| 2595 | echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *" | 
| 2596 | echo "*                                 ^^^                 *" | 
| 2597 | echo "*  where xxx is 601, 603, 604, or whatever kind of    *" | 
| 2598 | echo "*  PowerPC CPU you have.   For more info, man cc.     *" | 
| 2599 | echo "*******************************************************" | 
| 2600 | fi;; | 
| 2601 | *darwin*) | 
| 2602 | if test "$CC" = xlc -o "$CC" = cc; then | 
| 2603 | CFLAGS="-O3 -qtune=auto -w" | 
| 2604 | echo "*******************************************************" | 
| 2605 | echo "*  You have Darwin on an unknown powerpc system.      *" | 
| 2606 | echo "*  It is recommended that you use                     *" | 
| 2607 | echo "*                                                     *" | 
| 2608 | echo "*  CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *" | 
| 2609 | echo "*                               ^^^                   *" | 
| 2610 | echo "*  where xxx is 601, 603, 604, or whatever kind of    *" | 
| 2611 | echo "*  PowerPC CPU you have.   For more info, man cc.     *" | 
| 2612 | echo "*******************************************************" | 
| 2613 | fi;; | 
| 2614 | esac | 
| 2615 |  | 
| 2616 | # use default flags for gcc on all systems | 
| 2617 | if test $ac_cv_c_compiler_gnu = yes; then | 
| 2618 | CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" | 
| 2619 | fi | 
| 2620 |  | 
| 2621 | # test for gcc-specific flags: | 
| 2622 | if test $ac_cv_c_compiler_gnu = yes; then | 
| 2623 | # -malign-double for x86 systems | 
| 2624 |  | 
| 2625 |  | 
| 2626 | echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5 | 
| 2627 | echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6 | 
| 2628 | if test "${ac_align_double+set}" = set; then | 
| 2629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 2630 | else | 
| 2631 | echo 'void f(){}' > conftest.c | 
| 2632 | if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then | 
| 2633 | ac_align_double=yes | 
| 2634 | else | 
| 2635 | ac_align_double=no | 
| 2636 | fi | 
| 2637 | rm -f conftest* | 
| 2638 |  | 
| 2639 | fi | 
| 2640 | echo "$as_me:$LINENO: result: $ac_align_double" >&5 | 
| 2641 | echo "${ECHO_T}$ac_align_double" >&6 | 
| 2642 | if test "$ac_align_double" = yes; then | 
| 2643 | : | 
| 2644 | CFLAGS="$CFLAGS -malign-double" | 
| 2645 | else | 
| 2646 | : | 
| 2647 |  | 
| 2648 | fi | 
| 2649 |  | 
| 2650 | # -fstrict-aliasing for gcc-2.95+ | 
| 2651 |  | 
| 2652 |  | 
| 2653 | echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5 | 
| 2654 | echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6 | 
| 2655 | if test "${ac_fstrict_aliasing+set}" = set; then | 
| 2656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 2657 | else | 
| 2658 | echo 'void f(){}' > conftest.c | 
| 2659 | if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then | 
| 2660 | ac_fstrict_aliasing=yes | 
| 2661 | else | 
| 2662 | ac_fstrict_aliasing=no | 
| 2663 | fi | 
| 2664 | rm -f conftest* | 
| 2665 |  | 
| 2666 | fi | 
| 2667 | echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 | 
| 2668 | echo "${ECHO_T}$ac_fstrict_aliasing" >&6 | 
| 2669 | if test "$ac_fstrict_aliasing" = yes; then | 
| 2670 | : | 
| 2671 | CFLAGS="$CFLAGS -fstrict-aliasing" | 
| 2672 | else | 
| 2673 | : | 
| 2674 |  | 
| 2675 | fi | 
| 2676 |  | 
| 2677 | fi | 
| 2678 |  | 
| 2679 | CPU_FLAGS="" | 
| 2680 | if test "$GCC" = "yes"; then | 
| 2681 | case "${host_cpu}" in | 
| 2682 | i586*) | 
| 2683 |  | 
| 2684 | echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5 | 
| 2685 | echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6 | 
| 2686 | if test "${ac_cpu_pentium+set}" = set; then | 
| 2687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 2688 | else | 
| 2689 | echo 'void f(){}' > conftest.c | 
| 2690 | if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then | 
| 2691 | ac_cpu_pentium=yes | 
| 2692 | else | 
| 2693 | ac_cpu_pentium=no | 
| 2694 | fi | 
| 2695 | rm -f conftest* | 
| 2696 |  | 
| 2697 | fi | 
| 2698 | echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 | 
| 2699 | echo "${ECHO_T}$ac_cpu_pentium" >&6 | 
| 2700 | if test "$ac_cpu_pentium" = yes; then | 
| 2701 | : | 
| 2702 | CPU_FLAGS=-mcpu=pentium | 
| 2703 | else | 
| 2704 | : | 
| 2705 |  | 
| 2706 |  | 
| 2707 | echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5 | 
| 2708 | echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6 | 
| 2709 | if test "${ac_pentium+set}" = set; then | 
| 2710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 2711 | else | 
| 2712 | echo 'void f(){}' > conftest.c | 
| 2713 | if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then | 
| 2714 | ac_pentium=yes | 
| 2715 | else | 
| 2716 | ac_pentium=no | 
| 2717 | fi | 
| 2718 | rm -f conftest* | 
| 2719 |  | 
| 2720 | fi | 
| 2721 | echo "$as_me:$LINENO: result: $ac_pentium" >&5 | 
| 2722 | echo "${ECHO_T}$ac_pentium" >&6 | 
| 2723 | if test "$ac_pentium" = yes; then | 
| 2724 | : | 
| 2725 | CPU_FLAGS=-mpentium | 
| 2726 | else | 
| 2727 | : | 
| 2728 |  | 
| 2729 | fi | 
| 2730 |  | 
| 2731 | fi | 
| 2732 |  | 
| 2733 | ;; | 
| 2734 | i686*) | 
| 2735 |  | 
| 2736 | echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5 | 
| 2737 | echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6 | 
| 2738 | if test "${ac_cpu_pentiumpro+set}" = set; then | 
| 2739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 2740 | else | 
| 2741 | echo 'void f(){}' > conftest.c | 
| 2742 | if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then | 
| 2743 | ac_cpu_pentiumpro=yes | 
| 2744 | else | 
| 2745 | ac_cpu_pentiumpro=no | 
| 2746 | fi | 
| 2747 | rm -f conftest* | 
| 2748 |  | 
| 2749 | fi | 
| 2750 | echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 | 
| 2751 | echo "${ECHO_T}$ac_cpu_pentiumpro" >&6 | 
| 2752 | if test "$ac_cpu_pentiumpro" = yes; then | 
| 2753 | : | 
| 2754 | CPU_FLAGS=-mcpu=pentiumpro | 
| 2755 | else | 
| 2756 | : | 
| 2757 |  | 
| 2758 |  | 
| 2759 | echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5 | 
| 2760 | echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6 | 
| 2761 | if test "${ac_pentiumpro+set}" = set; then | 
| 2762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 2763 | else | 
| 2764 | echo 'void f(){}' > conftest.c | 
| 2765 | if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then | 
| 2766 | ac_pentiumpro=yes | 
| 2767 | else | 
| 2768 | ac_pentiumpro=no | 
| 2769 | fi | 
| 2770 | rm -f conftest* | 
| 2771 |  | 
| 2772 | fi | 
| 2773 | echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 | 
| 2774 | echo "${ECHO_T}$ac_pentiumpro" >&6 | 
| 2775 | if test "$ac_pentiumpro" = yes; then | 
| 2776 | : | 
| 2777 | CPU_FLAGS=-mpentiumpro | 
| 2778 | else | 
| 2779 | : | 
| 2780 |  | 
| 2781 | fi | 
| 2782 |  | 
| 2783 | fi | 
| 2784 |  | 
| 2785 | ;; | 
| 2786 | powerpc*) | 
| 2787 | cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` | 
| 2788 | is60x=`echo $cputype | egrep "^600-9e?$"` | 
| 2789 | if test -n "$is60x"; then | 
| 2790 |  | 
| 2791 |  | 
| 2792 | echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5 | 
| 2793 | echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6 | 
| 2794 | if test "${ac_m_cpu_60x+set}" = set; then | 
| 2795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 2796 | else | 
| 2797 | echo 'void f(){}' > conftest.c | 
| 2798 | if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then | 
| 2799 | ac_m_cpu_60x=yes | 
| 2800 | else | 
| 2801 | ac_m_cpu_60x=no | 
| 2802 | fi | 
| 2803 | rm -f conftest* | 
| 2804 |  | 
| 2805 | fi | 
| 2806 | echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 | 
| 2807 | echo "${ECHO_T}$ac_m_cpu_60x" >&6 | 
| 2808 | if test "$ac_m_cpu_60x" = yes; then | 
| 2809 | : | 
| 2810 | CPU_FLAGS=-mcpu=$cputype | 
| 2811 | else | 
| 2812 | : | 
| 2813 |  | 
| 2814 | fi | 
| 2815 |  | 
| 2816 | elif test "$cputype" = 750; then | 
| 2817 |  | 
| 2818 |  | 
| 2819 | echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5 | 
| 2820 | echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6 | 
| 2821 | if test "${ac_cv_prog_gcc_2_95+set}" = set; then | 
| 2822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 2823 | else | 
| 2824 |  | 
| 2825 | cat > conftest.c <<EOF | 
| 2826 | #ifdef __GNUC__ | 
| 2827 | #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) | 
| 2828 | yes; | 
| 2829 | #  endif | 
| 2830 | #endif | 
| 2831 | EOF | 
| 2832 | if { ac_try='${CC-cc} -E conftest.c' | 
| 2833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 2834 | (eval $ac_try) 2>&5 | 
| 2835 | ac_status=$? | 
| 2836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 2837 | (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then | 
| 2838 | ac_cv_prog_gcc_2_95=yes | 
| 2839 | else | 
| 2840 | ac_cv_prog_gcc_2_95=no | 
| 2841 | fi | 
| 2842 |  | 
| 2843 | fi | 
| 2844 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5 | 
| 2845 | echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6 | 
| 2846 | if test "$ac_cv_prog_gcc_2_95" = yes; then | 
| 2847 | : | 
| 2848 |  | 
| 2849 |  | 
| 2850 | echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5 | 
| 2851 | echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6 | 
| 2852 | if test "${ac_m_cpu_750+set}" = set; then | 
| 2853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 2854 | else | 
| 2855 | echo 'void f(){}' > conftest.c | 
| 2856 | if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then | 
| 2857 | ac_m_cpu_750=yes | 
| 2858 | else | 
| 2859 | ac_m_cpu_750=no | 
| 2860 | fi | 
| 2861 | rm -f conftest* | 
| 2862 |  | 
| 2863 | fi | 
| 2864 | echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 | 
| 2865 | echo "${ECHO_T}$ac_m_cpu_750" >&6 | 
| 2866 | if test "$ac_m_cpu_750" = yes; then | 
| 2867 | : | 
| 2868 | CPU_FLAGS=-mcpu=750 | 
| 2869 | else | 
| 2870 | : | 
| 2871 |  | 
| 2872 | fi | 
| 2873 |  | 
| 2874 | else | 
| 2875 | : | 
| 2876 |  | 
| 2877 | fi | 
| 2878 |  | 
| 2879 | fi | 
| 2880 | if test -z "$CPU_FLAGS"; then | 
| 2881 |  | 
| 2882 |  | 
| 2883 | echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5 | 
| 2884 | echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6 | 
| 2885 | if test "${ac_m_cpu_powerpc+set}" = set; then | 
| 2886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 2887 | else | 
| 2888 | echo 'void f(){}' > conftest.c | 
| 2889 | if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then | 
| 2890 | ac_m_cpu_powerpc=yes | 
| 2891 | else | 
| 2892 | ac_m_cpu_powerpc=no | 
| 2893 | fi | 
| 2894 | rm -f conftest* | 
| 2895 |  | 
| 2896 | fi | 
| 2897 | echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 | 
| 2898 | echo "${ECHO_T}$ac_m_cpu_powerpc" >&6 | 
| 2899 | if test "$ac_m_cpu_powerpc" = yes; then | 
| 2900 | : | 
| 2901 | CPU_FLAGS=-mcpu=powerpc | 
| 2902 | else | 
| 2903 | : | 
| 2904 |  | 
| 2905 | fi | 
| 2906 |  | 
| 2907 | fi | 
| 2908 | if test -z "$CPU_FLAGS"; then | 
| 2909 |  | 
| 2910 |  | 
| 2911 | echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5 | 
| 2912 | echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6 | 
| 2913 | if test "${ac_m_powerpc+set}" = set; then | 
| 2914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 2915 | else | 
| 2916 | echo 'void f(){}' > conftest.c | 
| 2917 | if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then | 
| 2918 | ac_m_powerpc=yes | 
| 2919 | else | 
| 2920 | ac_m_powerpc=no | 
| 2921 | fi | 
| 2922 | rm -f conftest* | 
| 2923 |  | 
| 2924 | fi | 
| 2925 | echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 | 
| 2926 | echo "${ECHO_T}$ac_m_powerpc" >&6 | 
| 2927 | if test "$ac_m_powerpc" = yes; then | 
| 2928 | : | 
| 2929 | CPU_FLAGS=-mpowerpc | 
| 2930 | else | 
| 2931 | : | 
| 2932 |  | 
| 2933 | fi | 
| 2934 |  | 
| 2935 | fi | 
| 2936 | esac | 
| 2937 | fi | 
| 2938 |  | 
| 2939 | if test -n "$CPU_FLAGS"; then | 
| 2940 | CFLAGS="$CFLAGS $CPU_FLAGS" | 
| 2941 | fi | 
| 2942 |  | 
| 2943 | if test -z "$CFLAGS"; then | 
| 2944 | echo "" | 
| 2945 | echo "********************************************************" | 
| 2946 | echo "* WARNING: Don't know the best CFLAGS for this system  *" | 
| 2947 | echo "* Use  make CFLAGS=..., or edit the top level Makefile *" | 
| 2948 | echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *" | 
| 2949 | echo "********************************************************" | 
| 2950 | echo "" | 
| 2951 | CFLAGS="-O3" | 
| 2952 | fi | 
| 2953 |  | 
| 2954 |  | 
| 2955 |  | 
| 2956 | echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5 | 
| 2957 | echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6 | 
| 2958 | if test "${ac_guessed_cflags+set}" = set; then | 
| 2959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 2960 | else | 
| 2961 | echo 'void f(){}' > conftest.c | 
| 2962 | if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then | 
| 2963 | ac_guessed_cflags=yes | 
| 2964 | else | 
| 2965 | ac_guessed_cflags=no | 
| 2966 | fi | 
| 2967 | rm -f conftest* | 
| 2968 |  | 
| 2969 | fi | 
| 2970 | echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5 | 
| 2971 | echo "${ECHO_T}$ac_guessed_cflags" >&6 | 
| 2972 | if test "$ac_guessed_cflags" = yes; then | 
| 2973 | : | 
| 2974 |  | 
| 2975 | else | 
| 2976 | : | 
| 2977 |  | 
| 2978 | echo "" | 
| 2979 | echo "********************************************************" | 
| 2980 | echo "* WARNING: The guessed CFLAGS don't seem to work with  *" | 
| 2981 | echo "* your compiler.                                       *" | 
| 2982 | echo "* Use  make CFLAGS=..., or edit the top level Makefile *" | 
| 2983 | echo "********************************************************" | 
| 2984 | echo "" | 
| 2985 | CFLAGS="" | 
| 2986 |  | 
| 2987 | fi | 
| 2988 |  | 
| 2989 |  | 
| 2990 | fi | 
| 2991 |  | 
| 2992 | ac_ext=cc | 
| 2993 | ac_cpp='$CXXCPP $CPPFLAGS' | 
| 2994 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 2995 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 2996 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
| 2997 | if test -n "$ac_tool_prefix"; then | 
| 2998 | for ac_prog in $CCC icpc icc xlC g++ c++ | 
| 2999 | do | 
| 3000 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
| 3001 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| 3002 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
| 3003 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| 3004 | if test "${ac_cv_prog_CXX+set}" = set; then | 
| 3005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3006 | else | 
| 3007 | if test -n "$CXX"; then | 
| 3008 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
| 3009 | else | 
| 3010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| 3011 | for as_dir in $PATH | 
| 3012 | do | 
| 3013 | IFS=$as_save_IFS | 
| 3014 | test -z "$as_dir" && as_dir=. | 
| 3015 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| 3016 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| 3017 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
| 3018 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| 3019 | break 2 | 
| 3020 | fi | 
| 3021 | done | 
| 3022 | done | 
| 3023 |  | 
| 3024 | fi | 
| 3025 | fi | 
| 3026 | CXX=$ac_cv_prog_CXX | 
| 3027 | if test -n "$CXX"; then | 
| 3028 | echo "$as_me:$LINENO: result: $CXX" >&5 | 
| 3029 | echo "${ECHO_T}$CXX" >&6 | 
| 3030 | else | 
| 3031 | echo "$as_me:$LINENO: result: no" >&5 | 
| 3032 | echo "${ECHO_T}no" >&6 | 
| 3033 | fi | 
| 3034 |  | 
| 3035 | test -n "$CXX" && break | 
| 3036 | done | 
| 3037 | fi | 
| 3038 | if test -z "$CXX"; then | 
| 3039 | ac_ct_CXX=$CXX | 
| 3040 | for ac_prog in $CCC icpc icc xlC g++ c++ | 
| 3041 | do | 
| 3042 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
| 3043 | set dummy $ac_prog; ac_word=$2 | 
| 3044 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
| 3045 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| 3046 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | 
| 3047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3048 | else | 
| 3049 | if test -n "$ac_ct_CXX"; then | 
| 3050 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
| 3051 | else | 
| 3052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| 3053 | for as_dir in $PATH | 
| 3054 | do | 
| 3055 | IFS=$as_save_IFS | 
| 3056 | test -z "$as_dir" && as_dir=. | 
| 3057 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| 3058 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| 3059 | ac_cv_prog_ac_ct_CXX="$ac_prog" | 
| 3060 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| 3061 | break 2 | 
| 3062 | fi | 
| 3063 | done | 
| 3064 | done | 
| 3065 |  | 
| 3066 | fi | 
| 3067 | fi | 
| 3068 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
| 3069 | if test -n "$ac_ct_CXX"; then | 
| 3070 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | 
| 3071 | echo "${ECHO_T}$ac_ct_CXX" >&6 | 
| 3072 | else | 
| 3073 | echo "$as_me:$LINENO: result: no" >&5 | 
| 3074 | echo "${ECHO_T}no" >&6 | 
| 3075 | fi | 
| 3076 |  | 
| 3077 | test -n "$ac_ct_CXX" && break | 
| 3078 | done | 
| 3079 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | 
| 3080 |  | 
| 3081 | CXX=$ac_ct_CXX | 
| 3082 | fi | 
| 3083 |  | 
| 3084 |  | 
| 3085 | # Provide some information about the compiler. | 
| 3086 | echo "$as_me:$LINENO:" \ | 
| 3087 | "checking for C++ compiler version" >&5 | 
| 3088 | ac_compiler=`set X $ac_compile; echo $2` | 
| 3089 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 
| 3090 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | 
| 3091 | ac_status=$? | 
| 3092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 3093 | (exit $ac_status); } | 
| 3094 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | 
| 3095 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | 
| 3096 | ac_status=$? | 
| 3097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 3098 | (exit $ac_status); } | 
| 3099 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | 
| 3100 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | 
| 3101 | ac_status=$? | 
| 3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 3103 | (exit $ac_status); } | 
| 3104 |  | 
| 3105 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | 
| 3106 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | 
| 3107 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | 
| 3108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3109 | else | 
| 3110 | cat >conftest.$ac_ext <<_ACEOF | 
| 3111 | #line $LINENO "configure" | 
| 3112 | /* confdefs.h.  */ | 
| 3113 | _ACEOF | 
| 3114 | cat confdefs.h >>conftest.$ac_ext | 
| 3115 | cat >>conftest.$ac_ext <<_ACEOF | 
| 3116 | /* end confdefs.h.  */ | 
| 3117 |  | 
| 3118 | int | 
| 3119 | main () | 
| 3120 | { | 
| 3121 | #ifndef __GNUC__ | 
| 3122 | choke me | 
| 3123 | #endif | 
| 3124 |  | 
| 3125 | ; | 
| 3126 | return 0; | 
| 3127 | } | 
| 3128 | _ACEOF | 
| 3129 | rm -f conftest.$ac_objext | 
| 3130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 3131 | (eval $ac_compile) 2>&5 | 
| 3132 | ac_status=$? | 
| 3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 3134 | (exit $ac_status); } && | 
| 3135 | { ac_try='test -s conftest.$ac_objext' | 
| 3136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 3137 | (eval $ac_try) 2>&5 | 
| 3138 | ac_status=$? | 
| 3139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 3140 | (exit $ac_status); }; }; then | 
| 3141 | ac_compiler_gnu=yes | 
| 3142 | else | 
| 3143 | echo "$as_me: failed program was:" >&5 | 
| 3144 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 3145 |  | 
| 3146 | ac_compiler_gnu=no | 
| 3147 | fi | 
| 3148 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 3149 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 
| 3150 |  | 
| 3151 | fi | 
| 3152 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | 
| 3153 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | 
| 3154 | GXX=`test $ac_compiler_gnu = yes && echo yes` | 
| 3155 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 
| 3156 | ac_save_CXXFLAGS=$CXXFLAGS | 
| 3157 | CXXFLAGS="-g" | 
| 3158 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | 
| 3159 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | 
| 3160 | if test "${ac_cv_prog_cxx_g+set}" = set; then | 
| 3161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3162 | else | 
| 3163 | cat >conftest.$ac_ext <<_ACEOF | 
| 3164 | #line $LINENO "configure" | 
| 3165 | /* confdefs.h.  */ | 
| 3166 | _ACEOF | 
| 3167 | cat confdefs.h >>conftest.$ac_ext | 
| 3168 | cat >>conftest.$ac_ext <<_ACEOF | 
| 3169 | /* end confdefs.h.  */ | 
| 3170 |  | 
| 3171 | int | 
| 3172 | main () | 
| 3173 | { | 
| 3174 |  | 
| 3175 | ; | 
| 3176 | return 0; | 
| 3177 | } | 
| 3178 | _ACEOF | 
| 3179 | rm -f conftest.$ac_objext | 
| 3180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 3181 | (eval $ac_compile) 2>&5 | 
| 3182 | ac_status=$? | 
| 3183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 3184 | (exit $ac_status); } && | 
| 3185 | { ac_try='test -s conftest.$ac_objext' | 
| 3186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 3187 | (eval $ac_try) 2>&5 | 
| 3188 | ac_status=$? | 
| 3189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 3190 | (exit $ac_status); }; }; then | 
| 3191 | ac_cv_prog_cxx_g=yes | 
| 3192 | else | 
| 3193 | echo "$as_me: failed program was:" >&5 | 
| 3194 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 3195 |  | 
| 3196 | ac_cv_prog_cxx_g=no | 
| 3197 | fi | 
| 3198 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 3199 | fi | 
| 3200 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | 
| 3201 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | 
| 3202 | if test "$ac_test_CXXFLAGS" = set; then | 
| 3203 | CXXFLAGS=$ac_save_CXXFLAGS | 
| 3204 | elif test $ac_cv_prog_cxx_g = yes; then | 
| 3205 | if test "$GXX" = yes; then | 
| 3206 | CXXFLAGS="-g -O2" | 
| 3207 | else | 
| 3208 | CXXFLAGS="-g" | 
| 3209 | fi | 
| 3210 | else | 
| 3211 | if test "$GXX" = yes; then | 
| 3212 | CXXFLAGS="-O2" | 
| 3213 | else | 
| 3214 | CXXFLAGS= | 
| 3215 | fi | 
| 3216 | fi | 
| 3217 | for ac_declaration in \ | 
| 3218 | ''\ | 
| 3219 | '#include <stdlib.h>' \ | 
| 3220 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | 
| 3221 | 'extern "C" void std::exit (int); using std::exit;' \ | 
| 3222 | 'extern "C" void exit (int) throw ();' \ | 
| 3223 | 'extern "C" void exit (int);' \ | 
| 3224 | 'void exit (int);' | 
| 3225 | do | 
| 3226 | cat >conftest.$ac_ext <<_ACEOF | 
| 3227 | #line $LINENO "configure" | 
| 3228 | /* confdefs.h.  */ | 
| 3229 | _ACEOF | 
| 3230 | cat confdefs.h >>conftest.$ac_ext | 
| 3231 | cat >>conftest.$ac_ext <<_ACEOF | 
| 3232 | /* end confdefs.h.  */ | 
| 3233 | #include <stdlib.h> | 
| 3234 | $ac_declaration | 
| 3235 | int | 
| 3236 | main () | 
| 3237 | { | 
| 3238 | exit (42); | 
| 3239 | ; | 
| 3240 | return 0; | 
| 3241 | } | 
| 3242 | _ACEOF | 
| 3243 | rm -f conftest.$ac_objext | 
| 3244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 3245 | (eval $ac_compile) 2>&5 | 
| 3246 | ac_status=$? | 
| 3247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 3248 | (exit $ac_status); } && | 
| 3249 | { ac_try='test -s conftest.$ac_objext' | 
| 3250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 3251 | (eval $ac_try) 2>&5 | 
| 3252 | ac_status=$? | 
| 3253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 3254 | (exit $ac_status); }; }; then | 
| 3255 | : | 
| 3256 | else | 
| 3257 | echo "$as_me: failed program was:" >&5 | 
| 3258 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 3259 |  | 
| 3260 | continue | 
| 3261 | fi | 
| 3262 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 3263 | cat >conftest.$ac_ext <<_ACEOF | 
| 3264 | #line $LINENO "configure" | 
| 3265 | /* confdefs.h.  */ | 
| 3266 | _ACEOF | 
| 3267 | cat confdefs.h >>conftest.$ac_ext | 
| 3268 | cat >>conftest.$ac_ext <<_ACEOF | 
| 3269 | /* end confdefs.h.  */ | 
| 3270 | $ac_declaration | 
| 3271 | int | 
| 3272 | main () | 
| 3273 | { | 
| 3274 | exit (42); | 
| 3275 | ; | 
| 3276 | return 0; | 
| 3277 | } | 
| 3278 | _ACEOF | 
| 3279 | rm -f conftest.$ac_objext | 
| 3280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 3281 | (eval $ac_compile) 2>&5 | 
| 3282 | ac_status=$? | 
| 3283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 3284 | (exit $ac_status); } && | 
| 3285 | { ac_try='test -s conftest.$ac_objext' | 
| 3286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 3287 | (eval $ac_try) 2>&5 | 
| 3288 | ac_status=$? | 
| 3289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 3290 | (exit $ac_status); }; }; then | 
| 3291 | break | 
| 3292 | else | 
| 3293 | echo "$as_me: failed program was:" >&5 | 
| 3294 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 3295 |  | 
| 3296 | fi | 
| 3297 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 3298 | done | 
| 3299 | rm -f conftest* | 
| 3300 | if test -n "$ac_declaration"; then | 
| 3301 | echo '#ifdef __cplusplus' >>confdefs.h | 
| 3302 | echo $ac_declaration      >>confdefs.h | 
| 3303 | echo '#endif'             >>confdefs.h | 
| 3304 | fi | 
| 3305 |  | 
| 3306 | ac_ext=c | 
| 3307 | ac_cpp='$CPP $CPPFLAGS' | 
| 3308 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 3309 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 3310 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 3311 |  | 
| 3312 |  | 
| 3313 |  | 
| 3314 |  | 
| 3315 |  | 
| 3316 | # Try to determine "good" native compiler flags if none specified on command | 
| 3317 | # line | 
| 3318 | if test "$ac_test_CXXFLAGS" != "set"; then | 
| 3319 | CXXFLAGS="" | 
| 3320 | case "${host_cpu}-${host_os}" in | 
| 3321 |  | 
| 3322 | *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then | 
| 3323 | CXXFLAGS="-O" | 
| 3324 | fi;; | 
| 3325 | sparc-solaris2*) if test "$CXX" = CC; then | 
| 3326 | CXXFLAGS="-native -fast -xO5 -dalign" | 
| 3327 | fi;; | 
| 3328 | rs6000*-aix*)  if test "$CXX" = xlC; then | 
| 3329 | CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" | 
| 3330 | fi;; | 
| 3331 | powerpc*-aix*) | 
| 3332 | if test "$CXX" = xlC; then | 
| 3333 | CXXFLAGS="-O3 -qarch=ppc -qansialias -w" | 
| 3334 | echo "*******************************************************" | 
| 3335 | echo "*  You have AIX on an unknown powerpc system.  It is  *" | 
| 3336 | echo "*  recommended that you use                           *" | 
| 3337 | echo "*                                                     *" | 
| 3338 | echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *" | 
| 3339 | echo "*                                 ^^^                 *" | 
| 3340 | echo "*  where xxx is 601, 603, 604, or whatever kind of    *" | 
| 3341 | echo "*  PowerPC CPU you have.   For more info, man cc.     *" | 
| 3342 | echo "*******************************************************" | 
| 3343 | fi;; | 
| 3344 | *darwin*) | 
| 3345 | if test "$CXX" = xlC; then | 
| 3346 | CXXFLAGS="-O3 -qtune=auto -qansialias -w" | 
| 3347 | echo "*******************************************************" | 
| 3348 | echo "*  You have AIX on an unknown powerpc system.  It is  *" | 
| 3349 | echo "*  recommended that you use                           *" | 
| 3350 | echo "*                                                     *" | 
| 3351 | echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *" | 
| 3352 | echo "*                                 ^^^                 *" | 
| 3353 | echo "*  where xxx is 601, 603, 604, or whatever kind of    *" | 
| 3354 | echo "*  PowerPC CPU you have.   For more info, man cc.     *" | 
| 3355 | echo "*******************************************************" | 
| 3356 | fi;; | 
| 3357 | esac | 
| 3358 |  | 
| 3359 | # use default flags for gcc on all systems | 
| 3360 | if test $ac_cv_c_compiler_gnu = yes; then | 
| 3361 | CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" | 
| 3362 | fi | 
| 3363 |  | 
| 3364 | # test for gcc-specific flags: | 
| 3365 | if test $ac_cv_c_compiler_gnu = yes; then | 
| 3366 | # -malign-double for x86 systems | 
| 3367 |  | 
| 3368 |  | 
| 3369 | echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5 | 
| 3370 | echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6 | 
| 3371 | if test "${ac_align_double+set}" = set; then | 
| 3372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3373 | else | 
| 3374 | echo 'void f(){}' > conftest.cpp | 
| 3375 | if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then | 
| 3376 | ac_align_double=yes | 
| 3377 | else | 
| 3378 | ac_align_double=no | 
| 3379 | fi | 
| 3380 | rm -f conftest* | 
| 3381 |  | 
| 3382 | fi | 
| 3383 | echo "$as_me:$LINENO: result: $ac_align_double" >&5 | 
| 3384 | echo "${ECHO_T}$ac_align_double" >&6 | 
| 3385 | if test "$ac_align_double" = yes; then | 
| 3386 | : | 
| 3387 | CXXFLAGS="$CXXFLAGS -malign-double" | 
| 3388 | else | 
| 3389 | : | 
| 3390 |  | 
| 3391 | fi | 
| 3392 |  | 
| 3393 | # -fstrict-aliasing for gcc-2.95+ | 
| 3394 |  | 
| 3395 |  | 
| 3396 | echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5 | 
| 3397 | echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6 | 
| 3398 | if test "${ac_fstrict_aliasing+set}" = set; then | 
| 3399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3400 | else | 
| 3401 | echo 'void f(){}' > conftest.cpp | 
| 3402 | if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then | 
| 3403 | ac_fstrict_aliasing=yes | 
| 3404 | else | 
| 3405 | ac_fstrict_aliasing=no | 
| 3406 | fi | 
| 3407 | rm -f conftest* | 
| 3408 |  | 
| 3409 | fi | 
| 3410 | echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 | 
| 3411 | echo "${ECHO_T}$ac_fstrict_aliasing" >&6 | 
| 3412 | if test "$ac_fstrict_aliasing" = yes; then | 
| 3413 | : | 
| 3414 | CXXFLAGS="$CXXFLAGS -fstrict-aliasing" | 
| 3415 | else | 
| 3416 | : | 
| 3417 |  | 
| 3418 | fi | 
| 3419 |  | 
| 3420 | fi | 
| 3421 |  | 
| 3422 | CPU_FLAGS="" | 
| 3423 | if test "$GCC" = "yes"; then | 
| 3424 | case "${host_cpu}" in | 
| 3425 | i586*) | 
| 3426 |  | 
| 3427 | echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5 | 
| 3428 | echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6 | 
| 3429 | if test "${ac_cpu_pentium+set}" = set; then | 
| 3430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3431 | else | 
| 3432 | echo 'void f(){}' > conftest.c | 
| 3433 | if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then | 
| 3434 | ac_cpu_pentium=yes | 
| 3435 | else | 
| 3436 | ac_cpu_pentium=no | 
| 3437 | fi | 
| 3438 | rm -f conftest* | 
| 3439 |  | 
| 3440 | fi | 
| 3441 | echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 | 
| 3442 | echo "${ECHO_T}$ac_cpu_pentium" >&6 | 
| 3443 | if test "$ac_cpu_pentium" = yes; then | 
| 3444 | : | 
| 3445 | CPU_FLAGS=-mcpu=pentium | 
| 3446 | else | 
| 3447 | : | 
| 3448 |  | 
| 3449 |  | 
| 3450 | echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5 | 
| 3451 | echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6 | 
| 3452 | if test "${ac_pentium+set}" = set; then | 
| 3453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3454 | else | 
| 3455 | echo 'void f(){}' > conftest.cpp | 
| 3456 | if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then | 
| 3457 | ac_pentium=yes | 
| 3458 | else | 
| 3459 | ac_pentium=no | 
| 3460 | fi | 
| 3461 | rm -f conftest* | 
| 3462 |  | 
| 3463 | fi | 
| 3464 | echo "$as_me:$LINENO: result: $ac_pentium" >&5 | 
| 3465 | echo "${ECHO_T}$ac_pentium" >&6 | 
| 3466 | if test "$ac_pentium" = yes; then | 
| 3467 | : | 
| 3468 | CPU_FLAGS=-mpentium | 
| 3469 | else | 
| 3470 | : | 
| 3471 |  | 
| 3472 | fi | 
| 3473 |  | 
| 3474 | fi | 
| 3475 |  | 
| 3476 | ;; | 
| 3477 | i686*) | 
| 3478 |  | 
| 3479 | echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5 | 
| 3480 | echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6 | 
| 3481 | if test "${ac_cpu_pentiumpro+set}" = set; then | 
| 3482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3483 | else | 
| 3484 | echo 'void f(){}' > conftest.cpp | 
| 3485 | if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then | 
| 3486 | ac_cpu_pentiumpro=yes | 
| 3487 | else | 
| 3488 | ac_cpu_pentiumpro=no | 
| 3489 | fi | 
| 3490 | rm -f conftest* | 
| 3491 |  | 
| 3492 | fi | 
| 3493 | echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 | 
| 3494 | echo "${ECHO_T}$ac_cpu_pentiumpro" >&6 | 
| 3495 | if test "$ac_cpu_pentiumpro" = yes; then | 
| 3496 | : | 
| 3497 | CPU_FLAGS=-mcpu=pentiumpro | 
| 3498 | else | 
| 3499 | : | 
| 3500 |  | 
| 3501 |  | 
| 3502 | echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5 | 
| 3503 | echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6 | 
| 3504 | if test "${ac_pentiumpro+set}" = set; then | 
| 3505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3506 | else | 
| 3507 | echo 'void f(){}' > conftest.cpp | 
| 3508 | if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then | 
| 3509 | ac_pentiumpro=yes | 
| 3510 | else | 
| 3511 | ac_pentiumpro=no | 
| 3512 | fi | 
| 3513 | rm -f conftest* | 
| 3514 |  | 
| 3515 | fi | 
| 3516 | echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 | 
| 3517 | echo "${ECHO_T}$ac_pentiumpro" >&6 | 
| 3518 | if test "$ac_pentiumpro" = yes; then | 
| 3519 | : | 
| 3520 | CPU_FLAGS=-mpentiumpro | 
| 3521 | else | 
| 3522 | : | 
| 3523 |  | 
| 3524 | fi | 
| 3525 |  | 
| 3526 | fi | 
| 3527 |  | 
| 3528 | ;; | 
| 3529 | powerpc*) | 
| 3530 | cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` | 
| 3531 | is60x=`echo $cputype | egrep "^600-9e?$"` | 
| 3532 | if test -n "$is60x"; then | 
| 3533 |  | 
| 3534 |  | 
| 3535 | echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5 | 
| 3536 | echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6 | 
| 3537 | if test "${ac_m_cpu_60x+set}" = set; then | 
| 3538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3539 | else | 
| 3540 | echo 'void f(){}' > conftest.cpp | 
| 3541 | if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then | 
| 3542 | ac_m_cpu_60x=yes | 
| 3543 | else | 
| 3544 | ac_m_cpu_60x=no | 
| 3545 | fi | 
| 3546 | rm -f conftest* | 
| 3547 |  | 
| 3548 | fi | 
| 3549 | echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 | 
| 3550 | echo "${ECHO_T}$ac_m_cpu_60x" >&6 | 
| 3551 | if test "$ac_m_cpu_60x" = yes; then | 
| 3552 | : | 
| 3553 | CPU_FLAGS=-mcpu=$cputype | 
| 3554 | else | 
| 3555 | : | 
| 3556 |  | 
| 3557 | fi | 
| 3558 |  | 
| 3559 | elif test "$cputype" = 750; then | 
| 3560 |  | 
| 3561 |  | 
| 3562 | echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5 | 
| 3563 | echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6 | 
| 3564 | if test "${ac_cv_prog_gcc_2_95+set}" = set; then | 
| 3565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3566 | else | 
| 3567 |  | 
| 3568 | cat > conftest.c <<EOF | 
| 3569 | #ifdef __GNUC__ | 
| 3570 | #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) | 
| 3571 | yes; | 
| 3572 | #  endif | 
| 3573 | #endif | 
| 3574 | EOF | 
| 3575 | if { ac_try='${CC-cc} -E conftest.c' | 
| 3576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 3577 | (eval $ac_try) 2>&5 | 
| 3578 | ac_status=$? | 
| 3579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 3580 | (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then | 
| 3581 | ac_cv_prog_gcc_2_95=yes | 
| 3582 | else | 
| 3583 | ac_cv_prog_gcc_2_95=no | 
| 3584 | fi | 
| 3585 |  | 
| 3586 | fi | 
| 3587 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5 | 
| 3588 | echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6 | 
| 3589 | if test "$ac_cv_prog_gcc_2_95" = yes; then | 
| 3590 | : | 
| 3591 |  | 
| 3592 |  | 
| 3593 | echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5 | 
| 3594 | echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6 | 
| 3595 | if test "${ac_m_cpu_750+set}" = set; then | 
| 3596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3597 | else | 
| 3598 | echo 'void f(){}' > conftest.cpp | 
| 3599 | if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then | 
| 3600 | ac_m_cpu_750=yes | 
| 3601 | else | 
| 3602 | ac_m_cpu_750=no | 
| 3603 | fi | 
| 3604 | rm -f conftest* | 
| 3605 |  | 
| 3606 | fi | 
| 3607 | echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 | 
| 3608 | echo "${ECHO_T}$ac_m_cpu_750" >&6 | 
| 3609 | if test "$ac_m_cpu_750" = yes; then | 
| 3610 | : | 
| 3611 | CPU_FLAGS=-mcpu=750 | 
| 3612 | else | 
| 3613 | : | 
| 3614 |  | 
| 3615 | fi | 
| 3616 |  | 
| 3617 | else | 
| 3618 | : | 
| 3619 |  | 
| 3620 | fi | 
| 3621 |  | 
| 3622 | fi | 
| 3623 | if test -z "$CPU_FLAGS"; then | 
| 3624 |  | 
| 3625 |  | 
| 3626 | echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5 | 
| 3627 | echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6 | 
| 3628 | if test "${ac_m_cpu_powerpc+set}" = set; then | 
| 3629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3630 | else | 
| 3631 | echo 'void f(){}' > conftest.cpp | 
| 3632 | if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then | 
| 3633 | ac_m_cpu_powerpc=yes | 
| 3634 | else | 
| 3635 | ac_m_cpu_powerpc=no | 
| 3636 | fi | 
| 3637 | rm -f conftest* | 
| 3638 |  | 
| 3639 | fi | 
| 3640 | echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 | 
| 3641 | echo "${ECHO_T}$ac_m_cpu_powerpc" >&6 | 
| 3642 | if test "$ac_m_cpu_powerpc" = yes; then | 
| 3643 | : | 
| 3644 | CPU_FLAGS=-mcpu=powerpc | 
| 3645 | else | 
| 3646 | : | 
| 3647 |  | 
| 3648 | fi | 
| 3649 |  | 
| 3650 | fi | 
| 3651 | if test -z "$CPU_FLAGS"; then | 
| 3652 |  | 
| 3653 |  | 
| 3654 | echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5 | 
| 3655 | echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6 | 
| 3656 | if test "${ac_m_powerpc+set}" = set; then | 
| 3657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3658 | else | 
| 3659 | echo 'void f(){}' > conftest.cpp | 
| 3660 | if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then | 
| 3661 | ac_m_powerpc=yes | 
| 3662 | else | 
| 3663 | ac_m_powerpc=no | 
| 3664 | fi | 
| 3665 | rm -f conftest* | 
| 3666 |  | 
| 3667 | fi | 
| 3668 | echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 | 
| 3669 | echo "${ECHO_T}$ac_m_powerpc" >&6 | 
| 3670 | if test "$ac_m_powerpc" = yes; then | 
| 3671 | : | 
| 3672 | CPU_FLAGS=-mpowerpc | 
| 3673 | else | 
| 3674 | : | 
| 3675 |  | 
| 3676 | fi | 
| 3677 |  | 
| 3678 | fi | 
| 3679 | esac | 
| 3680 | fi | 
| 3681 |  | 
| 3682 | if test -n "$CPU_FLAGS"; then | 
| 3683 | CXXFLAGS="$CXXFLAGS $CPU_FLAGS" | 
| 3684 | fi | 
| 3685 |  | 
| 3686 | if test -z "$CXXFLAGS"; then | 
| 3687 | echo "" | 
| 3688 | echo "**********************************************************" | 
| 3689 | echo "* WARNING: Don't know the best CXXFLAGS for this system  *" | 
| 3690 | echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *" | 
| 3691 | echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *" | 
| 3692 | echo "**********************************************************" | 
| 3693 | echo "" | 
| 3694 | CXXFLAGS="-O3" | 
| 3695 | fi | 
| 3696 |  | 
| 3697 |  | 
| 3698 |  | 
| 3699 | echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5 | 
| 3700 | echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6 | 
| 3701 | if test "${ac_guessed_cxxflags+set}" = set; then | 
| 3702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3703 | else | 
| 3704 | echo 'void f(){}' > conftest.cpp | 
| 3705 | if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then | 
| 3706 | ac_guessed_cxxflags=yes | 
| 3707 | else | 
| 3708 | ac_guessed_cxxflags=no | 
| 3709 | fi | 
| 3710 | rm -f conftest* | 
| 3711 |  | 
| 3712 | fi | 
| 3713 | echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5 | 
| 3714 | echo "${ECHO_T}$ac_guessed_cxxflags" >&6 | 
| 3715 | if test "$ac_guessed_cxxflags" = yes; then | 
| 3716 | : | 
| 3717 |  | 
| 3718 | else | 
| 3719 | : | 
| 3720 |  | 
| 3721 | echo "" | 
| 3722 | echo "**********************************************************" | 
| 3723 | echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *" | 
| 3724 | echo "* your compiler.                                         *" | 
| 3725 | echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *" | 
| 3726 | echo "**********************************************************" | 
| 3727 | echo "" | 
| 3728 | CXXFLAGS="" | 
| 3729 |  | 
| 3730 | fi | 
| 3731 |  | 
| 3732 |  | 
| 3733 | fi | 
| 3734 |  | 
| 3735 | ac_ext=f90 | 
| 3736 | ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' | 
| 3737 | ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 3738 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu | 
| 3739 | if test -n "$ac_tool_prefix"; then | 
| 3740 | for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 | 
| 3741 | do | 
| 3742 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
| 3743 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| 3744 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
| 3745 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| 3746 | if test "${ac_cv_prog_F90+set}" = set; then | 
| 3747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3748 | else | 
| 3749 | if test -n "$F90"; then | 
| 3750 | ac_cv_prog_F90="$F90" # Let the user override the test. | 
| 3751 | else | 
| 3752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| 3753 | for as_dir in $PATH | 
| 3754 | do | 
| 3755 | IFS=$as_save_IFS | 
| 3756 | test -z "$as_dir" && as_dir=. | 
| 3757 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| 3758 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| 3759 | ac_cv_prog_F90="$ac_tool_prefix$ac_prog" | 
| 3760 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| 3761 | break 2 | 
| 3762 | fi | 
| 3763 | done | 
| 3764 | done | 
| 3765 |  | 
| 3766 | fi | 
| 3767 | fi | 
| 3768 | F90=$ac_cv_prog_F90 | 
| 3769 | if test -n "$F90"; then | 
| 3770 | echo "$as_me:$LINENO: result: $F90" >&5 | 
| 3771 | echo "${ECHO_T}$F90" >&6 | 
| 3772 | else | 
| 3773 | echo "$as_me:$LINENO: result: no" >&5 | 
| 3774 | echo "${ECHO_T}no" >&6 | 
| 3775 | fi | 
| 3776 |  | 
| 3777 | test -n "$F90" && break | 
| 3778 | done | 
| 3779 | fi | 
| 3780 | if test -z "$F90"; then | 
| 3781 | ac_ct_F90=$F90 | 
| 3782 | for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 | 
| 3783 | do | 
| 3784 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
| 3785 | set dummy $ac_prog; ac_word=$2 | 
| 3786 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
| 3787 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| 3788 | if test "${ac_cv_prog_ac_ct_F90+set}" = set; then | 
| 3789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3790 | else | 
| 3791 | if test -n "$ac_ct_F90"; then | 
| 3792 | ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test. | 
| 3793 | else | 
| 3794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| 3795 | for as_dir in $PATH | 
| 3796 | do | 
| 3797 | IFS=$as_save_IFS | 
| 3798 | test -z "$as_dir" && as_dir=. | 
| 3799 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| 3800 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| 3801 | ac_cv_prog_ac_ct_F90="$ac_prog" | 
| 3802 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| 3803 | break 2 | 
| 3804 | fi | 
| 3805 | done | 
| 3806 | done | 
| 3807 |  | 
| 3808 | fi | 
| 3809 | fi | 
| 3810 | ac_ct_F90=$ac_cv_prog_ac_ct_F90 | 
| 3811 | if test -n "$ac_ct_F90"; then | 
| 3812 | echo "$as_me:$LINENO: result: $ac_ct_F90" >&5 | 
| 3813 | echo "${ECHO_T}$ac_ct_F90" >&6 | 
| 3814 | else | 
| 3815 | echo "$as_me:$LINENO: result: no" >&5 | 
| 3816 | echo "${ECHO_T}no" >&6 | 
| 3817 | fi | 
| 3818 |  | 
| 3819 | test -n "$ac_ct_F90" && break | 
| 3820 | done | 
| 3821 |  | 
| 3822 | F90=$ac_ct_F90 | 
| 3823 | fi | 
| 3824 |  | 
| 3825 |  | 
| 3826 | # If we don't use `.F90' as extension, the preprocessor is not run on the | 
| 3827 | # input file. | 
| 3828 | ac_save_ext=$ac_ext | 
| 3829 | ac_ext=F90 | 
| 3830 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5 | 
| 3831 | echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6 | 
| 3832 | if test "${ac_cv_f90_compiler_gnu+set}" = set; then | 
| 3833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3834 | else | 
| 3835 | cat >conftest.$ac_ext <<_ACEOF | 
| 3836 |  | 
| 3837 | program main | 
| 3838 |  | 
| 3839 | #ifndef __GNUC__ | 
| 3840 | choke me | 
| 3841 | #endif | 
| 3842 |  | 
| 3843 | end program main | 
| 3844 |  | 
| 3845 | _ACEOF | 
| 3846 | rm -f conftest.$ac_objext | 
| 3847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 3848 | (eval $ac_compile) 2>&5 | 
| 3849 | ac_status=$? | 
| 3850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 3851 | (exit $ac_status); } && | 
| 3852 | { ac_try='test -s conftest.$ac_objext' | 
| 3853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 3854 | (eval $ac_try) 2>&5 | 
| 3855 | ac_status=$? | 
| 3856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 3857 | (exit $ac_status); }; }; then | 
| 3858 | ac_compiler_gnu=yes | 
| 3859 | else | 
| 3860 | echo "$as_me: failed program was:" >&5 | 
| 3861 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 3862 |  | 
| 3863 | ac_compiler_gnu=no | 
| 3864 | fi | 
| 3865 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 3866 | ac_cv_f90_compiler_gnu=$ac_compiler_gnu | 
| 3867 |  | 
| 3868 | fi | 
| 3869 | echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5 | 
| 3870 | echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6 | 
| 3871 | ac_ext=$ac_save_ext | 
| 3872 | G95=`test $ac_compiler_gnu = yes && echo yes` | 
| 3873 | ac_ext=c | 
| 3874 | ac_cpp='$CPP $CPPFLAGS' | 
| 3875 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 3876 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 3877 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 3878 |  | 
| 3879 |  | 
| 3880 |  | 
| 3881 |  | 
| 3882 |  | 
| 3883 | # Try to determine "good" native compiler flags if none specified on command | 
| 3884 | # line | 
| 3885 |  | 
| 3886 | if test "$ac_test_F90FLAGS" != "set"; then | 
| 3887 | F90FLAGS="" | 
| 3888 | case "${host_cpu}-${host_os}" in | 
| 3889 |  | 
| 3890 | *linux*) if test "$F90" = ifc; then | 
| 3891 | F90FLAGS="-O" | 
| 3892 | fi;; | 
| 3893 | rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then | 
| 3894 | F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" | 
| 3895 | fi;; | 
| 3896 | powerpc*-aix*) | 
| 3897 | if test "$F90" = f90 -o "$F90" = xlf90; then | 
| 3898 | F90FLAGS="-O3 -qarch=ppc -qansialias -w" | 
| 3899 | echo "*******************************************************" | 
| 3900 | echo "*  You have AIX on an unknown powerpc system.  It is  *" | 
| 3901 | echo "*  recommended that you use                           *" | 
| 3902 | echo "*                                                     *" | 
| 3903 | echo "*  F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *" | 
| 3904 | echo "*                                 ^^^                 *" | 
| 3905 | echo "*  where xxx is 601, 603, 604, or whatever kind of    *" | 
| 3906 | echo "*  PowerPC CPU you have.   For more info, man xlf.    *" | 
| 3907 | echo "*******************************************************" | 
| 3908 | fi;; | 
| 3909 | *darwin*) | 
| 3910 | if test "$F90" = f90 -o "$F90" = xlf90; then | 
| 3911 | F90FLAGS="-O3 -qtune=auto -w" | 
| 3912 | echo "*********************************************************" | 
| 3913 | echo "*  You have Darwin on an unknown powerpc system.  It is *" | 
| 3914 | echo "*  recommended that you use                             *" | 
| 3915 | echo "*                                                       *" | 
| 3916 | echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *" | 
| 3917 | echo "*                                 ^^^                   *" | 
| 3918 | echo "*  where xxx is 601, 603, 604, or whatever kind of      *" | 
| 3919 | echo "*  PowerPC CPU you have.   For more info, man xlf.      *" | 
| 3920 | echo "*********************************************************" | 
| 3921 | fi;; | 
| 3922 | esac | 
| 3923 |  | 
| 3924 | if test -n "$CPU_FLAGS"; then | 
| 3925 | F90FLAGS="$F90FLAGS $CPU_FLAGS" | 
| 3926 | fi | 
| 3927 |  | 
| 3928 | if test -z "$F90FLAGS"; then | 
| 3929 | echo "" | 
| 3930 | echo "**********************************************************" | 
| 3931 | echo "* WARNING: Don't know the best F90FLAGS for this system  *" | 
| 3932 | echo "* Use  make F90FLAGS=..., or edit the top level Makefile *" | 
| 3933 | echo "* (otherwise, a default of F90FLAGS=-O3 will be used)    *" | 
| 3934 | echo "**********************************************************" | 
| 3935 | echo "" | 
| 3936 | F90FLAGS="-O3" | 
| 3937 | fi | 
| 3938 |  | 
| 3939 |  | 
| 3940 | echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5 | 
| 3941 | echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6 | 
| 3942 | if test "${ac_guessed_f90flags+set}" = set; then | 
| 3943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 3944 | else | 
| 3945 |  | 
| 3946 |  | 
| 3947 |  | 
| 3948 | ac_ext=f90 | 
| 3949 | ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' | 
| 3950 | ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 3951 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu | 
| 3952 |  | 
| 3953 | echo 'program main' > conftest.$ac_ext | 
| 3954 | echo 'end program main' >> conftest.$ac_ext | 
| 3955 | ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5' | 
| 3956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 3957 | (eval $ac_compile) 2>&5 | 
| 3958 | ac_status=$? | 
| 3959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 3960 | (exit $ac_status); }; then | 
| 3961 | ac_guessed_f90flags=yes | 
| 3962 | else | 
| 3963 | ac_guessed_f90flags=no | 
| 3964 | fi | 
| 3965 | rm -f conftest* | 
| 3966 | ac_ext=c | 
| 3967 | ac_cpp='$CPP $CPPFLAGS' | 
| 3968 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 3969 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 3970 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 3971 |  | 
| 3972 |  | 
| 3973 | fi | 
| 3974 | echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5 | 
| 3975 | echo "${ECHO_T}$ac_guessed_f90flags" >&6 | 
| 3976 | if test "$ac_guessed_f90flags" = yes; then | 
| 3977 | : | 
| 3978 |  | 
| 3979 | else | 
| 3980 | : | 
| 3981 |  | 
| 3982 | echo "" | 
| 3983 | echo "**********************************************************" | 
| 3984 | echo "* WARNING: The guessed F90FLAGS don't seem to work with  *" | 
| 3985 | echo "* your compiler.                                         *" | 
| 3986 | echo "* Use  make F90FLAGS=..., or edit the top level Makefile *" | 
| 3987 | echo "**********************************************************" | 
| 3988 | echo "" | 
| 3989 | F90FLAGS="" | 
| 3990 |  | 
| 3991 | fi | 
| 3992 |  | 
| 3993 |  | 
| 3994 | fi | 
| 3995 |  | 
| 3996 |  | 
| 3997 |  | 
| 3998 |  | 
| 3999 |  | 
| 4000 | # Try to determine native compiler flags that allow us to use F90 suffix | 
| 4001 | # for preprocessed f90 source. | 
| 4002 |  | 
| 4003 | if test "$ac_test_PREPFLAG" != "set"; then | 
| 4004 | PREPFLAG="" | 
| 4005 | case "${host_cpu}-${host_os}" in | 
| 4006 |  | 
| 4007 | *linux*) if test "$F90" = ifc; then | 
| 4008 | PREPFLAG="-fpp1 " | 
| 4009 | fi;; | 
| 4010 | *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then | 
| 4011 | PREPFLAG="-qsuffix=cpp=F90 " | 
| 4012 | fi;; | 
| 4013 | *darwin*) | 
| 4014 | if test "$F90" = f90 -o "$F90" = xlf90; then | 
| 4015 | PREPFLAG="-qsuffix=cpp=F90 " | 
| 4016 | fi;; | 
| 4017 | esac | 
| 4018 |  | 
| 4019 | if test -z "$PREPFLAG"; then | 
| 4020 | echo "" | 
| 4021 | echo "**********************************************************" | 
| 4022 | echo "* WARNING: Don't know the best PREPFLAG for this system  *" | 
| 4023 | echo "* Use  make PREPFLAG=..., or edit the top level Makefile *" | 
| 4024 | echo "* (otherwise, an empty PREPFLAG will be used)            *" | 
| 4025 | echo "**********************************************************" | 
| 4026 | echo "" | 
| 4027 | PREPFLAG="" | 
| 4028 | fi | 
| 4029 |  | 
| 4030 | echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5 | 
| 4031 | echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6 | 
| 4032 |  | 
| 4033 |  | 
| 4034 | ac_ext=f90 | 
| 4035 | ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' | 
| 4036 | ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 4037 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu | 
| 4038 |  | 
| 4039 | ac_save_ext=$ac_ext | 
| 4040 | ac_ext=F90 | 
| 4041 | ac_save_F90FLAGS=$F90FLAGS | 
| 4042 |  | 
| 4043 | if test "$PREPFLAG"; then | 
| 4044 | F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST" | 
| 4045 | fi | 
| 4046 |  | 
| 4047 | cat >conftest.$ac_ext <<_ACEOF | 
| 4048 |  | 
| 4049 |  | 
| 4050 | program main | 
| 4051 |  | 
| 4052 | integer :: i | 
| 4053 | i = 1 | 
| 4054 |  | 
| 4055 |  | 
| 4056 | end program main | 
| 4057 |  | 
| 4058 | _ACEOF | 
| 4059 | rm -f conftest.$ac_objext | 
| 4060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 4061 | (eval $ac_compile) 2>&5 | 
| 4062 | ac_status=$? | 
| 4063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 4064 | (exit $ac_status); } && | 
| 4065 | { ac_try='test -s conftest.$ac_objext' | 
| 4066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 4067 | (eval $ac_try) 2>&5 | 
| 4068 | ac_status=$? | 
| 4069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 4070 | (exit $ac_status); }; }; then | 
| 4071 | prepflagworks=1 | 
| 4072 | else | 
| 4073 | echo "$as_me: failed program was:" >&5 | 
| 4074 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 4075 |  | 
| 4076 | prepflagworks=0 | 
| 4077 | fi | 
| 4078 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 4079 |  | 
| 4080 | F90FLAGS=$ac_save_F90FLAGS | 
| 4081 | ac_ext=$ac_save_ext | 
| 4082 | ac_ext=c | 
| 4083 | ac_cpp='$CPP $CPPFLAGS' | 
| 4084 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 4085 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 4086 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 4087 |  | 
| 4088 |  | 
| 4089 |  | 
| 4090 | if test "$prepflagworks" = 1; then | 
| 4091 | echo "$as_me:$LINENO: result: yes" >&5 | 
| 4092 | echo "${ECHO_T}yes" >&6 | 
| 4093 |  | 
| 4094 | else | 
| 4095 | echo "$as_me:$LINENO: result: no" >&5 | 
| 4096 | echo "${ECHO_T}no" >&6 | 
| 4097 | { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5 | 
| 4098 | echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;} | 
| 4099 | { (exit 1); exit 1; }; } | 
| 4100 | fi | 
| 4101 | fi | 
| 4102 |  | 
| 4103 |  | 
| 4104 |  | 
| 4105 |  | 
| 4106 |  | 
| 4107 | # Try to determine native compiler flags that allow us to use F90 suffix | 
| 4108 | # for preprocessed f90 source with -D type defines | 
| 4109 |  | 
| 4110 | if test "$ac_test_PREPDEFFLAG" != "set"; then | 
| 4111 | PREPDEFFLAG="" | 
| 4112 | case "${host_cpu}-${host_os}" in | 
| 4113 |  | 
| 4114 | *linux*) if test "$F90" = ifc; then | 
| 4115 | PREPDEFFLAG=" " | 
| 4116 | fi;; | 
| 4117 | *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then | 
| 4118 | PREPDEFFLAG="-WF," | 
| 4119 | fi;; | 
| 4120 | *darwin*) | 
| 4121 | if test "$F90" = f90 -o "$F90" = xlf90; then | 
| 4122 | PREPDEFFLAG="-WF," | 
| 4123 | fi;; | 
| 4124 | esac | 
| 4125 |  | 
| 4126 | if test -z "$PREPDEFFLAG"; then | 
| 4127 | echo "" | 
| 4128 | echo "*************************************************************" | 
| 4129 | echo "* WARNING: Don't know the best PREPDEFFLAG for this system  *" | 
| 4130 | echo "* Use  make PREPDEFFLAG=..., or edit the top level Makefile *" | 
| 4131 | echo "* (otherwise, an empty PREPDEFFLAG will be used)            *" | 
| 4132 | echo "*************************************************************" | 
| 4133 | echo "" | 
| 4134 | PREPDEFFLAG=" " | 
| 4135 | fi | 
| 4136 |  | 
| 4137 | echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5 | 
| 4138 | echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6 | 
| 4139 |  | 
| 4140 |  | 
| 4141 | ac_ext=f90 | 
| 4142 | ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' | 
| 4143 | ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 4144 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu | 
| 4145 |  | 
| 4146 | ac_save_ext=$ac_ext | 
| 4147 | ac_ext=F90 | 
| 4148 | ac_save_F90FLAGS=$F90FLAGS | 
| 4149 |  | 
| 4150 | if test "$PREPDEFFLAG"; then | 
| 4151 | F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST" | 
| 4152 | fi | 
| 4153 |  | 
| 4154 | cat >conftest.$ac_ext <<_ACEOF | 
| 4155 |  | 
| 4156 |  | 
| 4157 | program main | 
| 4158 |  | 
| 4159 | integer :: i | 
| 4160 | #ifdef TEST | 
| 4161 | i = 1 | 
| 4162 | #else | 
| 4163 | choke me | 
| 4164 | #endif | 
| 4165 |  | 
| 4166 |  | 
| 4167 | end program main | 
| 4168 |  | 
| 4169 | _ACEOF | 
| 4170 | rm -f conftest.$ac_objext | 
| 4171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 4172 | (eval $ac_compile) 2>&5 | 
| 4173 | ac_status=$? | 
| 4174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 4175 | (exit $ac_status); } && | 
| 4176 | { ac_try='test -s conftest.$ac_objext' | 
| 4177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 4178 | (eval $ac_try) 2>&5 | 
| 4179 | ac_status=$? | 
| 4180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 4181 | (exit $ac_status); }; }; then | 
| 4182 | prepdefflagworks=1 | 
| 4183 | else | 
| 4184 | echo "$as_me: failed program was:" >&5 | 
| 4185 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 4186 |  | 
| 4187 | prepdefflagworks=0 | 
| 4188 | fi | 
| 4189 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 4190 |  | 
| 4191 | F90FLAGS=$ac_save_F90FLAGS | 
| 4192 | ac_ext=$ac_save_ext | 
| 4193 | ac_ext=c | 
| 4194 | ac_cpp='$CPP $CPPFLAGS' | 
| 4195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 4196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 4197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 4198 |  | 
| 4199 |  | 
| 4200 |  | 
| 4201 | if test "$prepdefflagworks" = 1; then | 
| 4202 | echo "$as_me:$LINENO: result: yes" >&5 | 
| 4203 | echo "${ECHO_T}yes" >&6 | 
| 4204 |  | 
| 4205 | else | 
| 4206 | echo "$as_me:$LINENO: result: no" >&5 | 
| 4207 | echo "${ECHO_T}no" >&6 | 
| 4208 | { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5 | 
| 4209 | echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;} | 
| 4210 | { (exit 1); exit 1; }; } | 
| 4211 | fi | 
| 4212 | fi | 
| 4213 |  | 
| 4214 | # Find a good install program.  We prefer a C program (faster), | 
| 4215 | # so one script is as good as another.  But avoid the broken or | 
| 4216 | # incompatible versions: | 
| 4217 | # SysV /etc/install, /usr/sbin/install | 
| 4218 | # SunOS /usr/etc/install | 
| 4219 | # IRIX /sbin/install | 
| 4220 | # AIX /bin/install | 
| 4221 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
| 4222 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
| 4223 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
| 4224 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
| 4225 | # ./install, which can be erroneously created by make from ./install.sh. | 
| 4226 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | 
| 4227 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | 
| 4228 | if test -z "$INSTALL"; then | 
| 4229 | if test "${ac_cv_path_install+set}" = set; then | 
| 4230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 4231 | else | 
| 4232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| 4233 | for as_dir in $PATH | 
| 4234 | do | 
| 4235 | IFS=$as_save_IFS | 
| 4236 | test -z "$as_dir" && as_dir=. | 
| 4237 | # Account for people who put trailing slashes in PATH elements. | 
| 4238 | case $as_dir/ in | 
| 4239 | ./ | .// | /cC/* | \ | 
| 4240 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
| 4241 | /usr/ucb/* ) ;; | 
| 4242 | *) | 
| 4243 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
| 4244 | # Don't use installbsd from OSF since it installs stuff as root | 
| 4245 | # by default. | 
| 4246 | for ac_prog in ginstall scoinst install; do | 
| 4247 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| 4248 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | 
| 4249 | if test $ac_prog = install && | 
| 4250 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
| 4251 | # AIX install.  It has an incompatible calling convention. | 
| 4252 | : | 
| 4253 | elif test $ac_prog = install && | 
| 4254 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
| 4255 | # program-specific install script used by HP pwplus--don't use. | 
| 4256 | : | 
| 4257 | else | 
| 4258 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
| 4259 | break 3 | 
| 4260 | fi | 
| 4261 | fi | 
| 4262 | done | 
| 4263 | done | 
| 4264 | ;; | 
| 4265 | esac | 
| 4266 | done | 
| 4267 |  | 
| 4268 |  | 
| 4269 | fi | 
| 4270 | if test "${ac_cv_path_install+set}" = set; then | 
| 4271 | INSTALL=$ac_cv_path_install | 
| 4272 | else | 
| 4273 | # As a last resort, use the slow shell script.  We don't cache a | 
| 4274 | # path for INSTALL within a source directory, because that will | 
| 4275 | # break other packages using the cache if that directory is | 
| 4276 | # removed, or if the path is relative. | 
| 4277 | INSTALL=$ac_install_sh | 
| 4278 | fi | 
| 4279 | fi | 
| 4280 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | 
| 4281 | echo "${ECHO_T}$INSTALL" >&6 | 
| 4282 |  | 
| 4283 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
| 4284 | # It thinks the first close brace ends the variable substitution. | 
| 4285 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
| 4286 |  | 
| 4287 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
| 4288 |  | 
| 4289 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
| 4290 |  | 
| 4291 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | 
| 4292 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | 
| 4293 | LN_S=$as_ln_s | 
| 4294 | if test "$LN_S" = "ln -s"; then | 
| 4295 | echo "$as_me:$LINENO: result: yes" >&5 | 
| 4296 | echo "${ECHO_T}yes" >&6 | 
| 4297 | else | 
| 4298 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | 
| 4299 | echo "${ECHO_T}no, using $LN_S" >&6 | 
| 4300 | fi | 
| 4301 |  | 
| 4302 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | 
| 4303 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | 
| 4304 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | 
| 4305 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | 
| 4306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 4307 | else | 
| 4308 | cat >conftest.make <<\_ACEOF | 
| 4309 | all: | 
| 4310 | @echo 'ac_maketemp="$(MAKE)"' | 
| 4311 | _ACEOF | 
| 4312 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 
| 4313 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | 
| 4314 | if test -n "$ac_maketemp"; then | 
| 4315 | eval ac_cv_prog_make_${ac_make}_set=yes | 
| 4316 | else | 
| 4317 | eval ac_cv_prog_make_${ac_make}_set=no | 
| 4318 | fi | 
| 4319 | rm -f conftest.make | 
| 4320 | fi | 
| 4321 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | 
| 4322 | echo "$as_me:$LINENO: result: yes" >&5 | 
| 4323 | echo "${ECHO_T}yes" >&6 | 
| 4324 | SET_MAKE= | 
| 4325 | else | 
| 4326 | echo "$as_me:$LINENO: result: no" >&5 | 
| 4327 | echo "${ECHO_T}no" >&6 | 
| 4328 | SET_MAKE="MAKE=${MAKE-make}" | 
| 4329 | fi | 
| 4330 |  | 
| 4331 | if test -n "$ac_tool_prefix"; then | 
| 4332 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
| 4333 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
| 4334 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
| 4335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| 4336 | if test "${ac_cv_prog_RANLIB+set}" = set; then | 
| 4337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 4338 | else | 
| 4339 | if test -n "$RANLIB"; then | 
| 4340 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
| 4341 | else | 
| 4342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| 4343 | for as_dir in $PATH | 
| 4344 | do | 
| 4345 | IFS=$as_save_IFS | 
| 4346 | test -z "$as_dir" && as_dir=. | 
| 4347 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| 4348 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| 4349 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
| 4350 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| 4351 | break 2 | 
| 4352 | fi | 
| 4353 | done | 
| 4354 | done | 
| 4355 |  | 
| 4356 | fi | 
| 4357 | fi | 
| 4358 | RANLIB=$ac_cv_prog_RANLIB | 
| 4359 | if test -n "$RANLIB"; then | 
| 4360 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | 
| 4361 | echo "${ECHO_T}$RANLIB" >&6 | 
| 4362 | else | 
| 4363 | echo "$as_me:$LINENO: result: no" >&5 | 
| 4364 | echo "${ECHO_T}no" >&6 | 
| 4365 | fi | 
| 4366 |  | 
| 4367 | fi | 
| 4368 | if test -z "$ac_cv_prog_RANLIB"; then | 
| 4369 | ac_ct_RANLIB=$RANLIB | 
| 4370 | # Extract the first word of "ranlib", so it can be a program name with args. | 
| 4371 | set dummy ranlib; ac_word=$2 | 
| 4372 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
| 4373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| 4374 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | 
| 4375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 4376 | else | 
| 4377 | if test -n "$ac_ct_RANLIB"; then | 
| 4378 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
| 4379 | else | 
| 4380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| 4381 | for as_dir in $PATH | 
| 4382 | do | 
| 4383 | IFS=$as_save_IFS | 
| 4384 | test -z "$as_dir" && as_dir=. | 
| 4385 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| 4386 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| 4387 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
| 4388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| 4389 | break 2 | 
| 4390 | fi | 
| 4391 | done | 
| 4392 | done | 
| 4393 |  | 
| 4394 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | 
| 4395 | fi | 
| 4396 | fi | 
| 4397 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
| 4398 | if test -n "$ac_ct_RANLIB"; then | 
| 4399 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | 
| 4400 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | 
| 4401 | else | 
| 4402 | echo "$as_me:$LINENO: result: no" >&5 | 
| 4403 | echo "${ECHO_T}no" >&6 | 
| 4404 | fi | 
| 4405 |  | 
| 4406 | RANLIB=$ac_ct_RANLIB | 
| 4407 | else | 
| 4408 | RANLIB="$ac_cv_prog_RANLIB" | 
| 4409 | fi | 
| 4410 |  | 
| 4411 | for ac_prog in 'bison -y' byacc | 
| 4412 | do | 
| 4413 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
| 4414 | set dummy $ac_prog; ac_word=$2 | 
| 4415 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
| 4416 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| 4417 | if test "${ac_cv_prog_YACC+set}" = set; then | 
| 4418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 4419 | else | 
| 4420 | if test -n "$YACC"; then | 
| 4421 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | 
| 4422 | else | 
| 4423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| 4424 | for as_dir in $PATH | 
| 4425 | do | 
| 4426 | IFS=$as_save_IFS | 
| 4427 | test -z "$as_dir" && as_dir=. | 
| 4428 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| 4429 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| 4430 | ac_cv_prog_YACC="$ac_prog" | 
| 4431 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| 4432 | break 2 | 
| 4433 | fi | 
| 4434 | done | 
| 4435 | done | 
| 4436 |  | 
| 4437 | fi | 
| 4438 | fi | 
| 4439 | YACC=$ac_cv_prog_YACC | 
| 4440 | if test -n "$YACC"; then | 
| 4441 | echo "$as_me:$LINENO: result: $YACC" >&5 | 
| 4442 | echo "${ECHO_T}$YACC" >&6 | 
| 4443 | else | 
| 4444 | echo "$as_me:$LINENO: result: no" >&5 | 
| 4445 | echo "${ECHO_T}no" >&6 | 
| 4446 | fi | 
| 4447 |  | 
| 4448 | test -n "$YACC" && break | 
| 4449 | done | 
| 4450 | test -n "$YACC" || YACC="yacc" | 
| 4451 |  | 
| 4452 |  | 
| 4453 | for ac_prog in flex lex | 
| 4454 | do | 
| 4455 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
| 4456 | set dummy $ac_prog; ac_word=$2 | 
| 4457 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
| 4458 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| 4459 | if test "${ac_cv_prog_LEX+set}" = set; then | 
| 4460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 4461 | else | 
| 4462 | if test -n "$LEX"; then | 
| 4463 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | 
| 4464 | else | 
| 4465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| 4466 | for as_dir in $PATH | 
| 4467 | do | 
| 4468 | IFS=$as_save_IFS | 
| 4469 | test -z "$as_dir" && as_dir=. | 
| 4470 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| 4471 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| 4472 | ac_cv_prog_LEX="$ac_prog" | 
| 4473 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| 4474 | break 2 | 
| 4475 | fi | 
| 4476 | done | 
| 4477 | done | 
| 4478 |  | 
| 4479 | fi | 
| 4480 | fi | 
| 4481 | LEX=$ac_cv_prog_LEX | 
| 4482 | if test -n "$LEX"; then | 
| 4483 | echo "$as_me:$LINENO: result: $LEX" >&5 | 
| 4484 | echo "${ECHO_T}$LEX" >&6 | 
| 4485 | else | 
| 4486 | echo "$as_me:$LINENO: result: no" >&5 | 
| 4487 | echo "${ECHO_T}no" >&6 | 
| 4488 | fi | 
| 4489 |  | 
| 4490 | test -n "$LEX" && break | 
| 4491 | done | 
| 4492 | test -n "$LEX" || LEX=":" | 
| 4493 |  | 
| 4494 | if test -z "$LEXLIB" | 
| 4495 | then | 
| 4496 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 | 
| 4497 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | 
| 4498 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | 
| 4499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 4500 | else | 
| 4501 | ac_check_lib_save_LIBS=$LIBS | 
| 4502 | LIBS="-lfl  $LIBS" | 
| 4503 | cat >conftest.$ac_ext <<_ACEOF | 
| 4504 | #line $LINENO "configure" | 
| 4505 | /* confdefs.h.  */ | 
| 4506 | _ACEOF | 
| 4507 | cat confdefs.h >>conftest.$ac_ext | 
| 4508 | cat >>conftest.$ac_ext <<_ACEOF | 
| 4509 | /* end confdefs.h.  */ | 
| 4510 |  | 
| 4511 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| 4512 | #ifdef __cplusplus | 
| 4513 | extern "C" | 
| 4514 | #endif | 
| 4515 | /* We use char because int might match the return type of a gcc2 | 
| 4516 | builtin and then its argument prototype would still apply.  */ | 
| 4517 | char yywrap (); | 
| 4518 | int | 
| 4519 | main () | 
| 4520 | { | 
| 4521 | yywrap (); | 
| 4522 | ; | 
| 4523 | return 0; | 
| 4524 | } | 
| 4525 | _ACEOF | 
| 4526 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| 4527 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| 4528 | (eval $ac_link) 2>&5 | 
| 4529 | ac_status=$? | 
| 4530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 4531 | (exit $ac_status); } && | 
| 4532 | { ac_try='test -s conftest$ac_exeext' | 
| 4533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 4534 | (eval $ac_try) 2>&5 | 
| 4535 | ac_status=$? | 
| 4536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 4537 | (exit $ac_status); }; }; then | 
| 4538 | ac_cv_lib_fl_yywrap=yes | 
| 4539 | else | 
| 4540 | echo "$as_me: failed program was:" >&5 | 
| 4541 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 4542 |  | 
| 4543 | ac_cv_lib_fl_yywrap=no | 
| 4544 | fi | 
| 4545 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
| 4546 | LIBS=$ac_check_lib_save_LIBS | 
| 4547 | fi | 
| 4548 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | 
| 4549 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | 
| 4550 | if test $ac_cv_lib_fl_yywrap = yes; then | 
| 4551 | LEXLIB="-lfl" | 
| 4552 | else | 
| 4553 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | 
| 4554 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | 
| 4555 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | 
| 4556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 4557 | else | 
| 4558 | ac_check_lib_save_LIBS=$LIBS | 
| 4559 | LIBS="-ll  $LIBS" | 
| 4560 | cat >conftest.$ac_ext <<_ACEOF | 
| 4561 | #line $LINENO "configure" | 
| 4562 | /* confdefs.h.  */ | 
| 4563 | _ACEOF | 
| 4564 | cat confdefs.h >>conftest.$ac_ext | 
| 4565 | cat >>conftest.$ac_ext <<_ACEOF | 
| 4566 | /* end confdefs.h.  */ | 
| 4567 |  | 
| 4568 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| 4569 | #ifdef __cplusplus | 
| 4570 | extern "C" | 
| 4571 | #endif | 
| 4572 | /* We use char because int might match the return type of a gcc2 | 
| 4573 | builtin and then its argument prototype would still apply.  */ | 
| 4574 | char yywrap (); | 
| 4575 | int | 
| 4576 | main () | 
| 4577 | { | 
| 4578 | yywrap (); | 
| 4579 | ; | 
| 4580 | return 0; | 
| 4581 | } | 
| 4582 | _ACEOF | 
| 4583 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| 4584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| 4585 | (eval $ac_link) 2>&5 | 
| 4586 | ac_status=$? | 
| 4587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 4588 | (exit $ac_status); } && | 
| 4589 | { ac_try='test -s conftest$ac_exeext' | 
| 4590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 4591 | (eval $ac_try) 2>&5 | 
| 4592 | ac_status=$? | 
| 4593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 4594 | (exit $ac_status); }; }; then | 
| 4595 | ac_cv_lib_l_yywrap=yes | 
| 4596 | else | 
| 4597 | echo "$as_me: failed program was:" >&5 | 
| 4598 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 4599 |  | 
| 4600 | ac_cv_lib_l_yywrap=no | 
| 4601 | fi | 
| 4602 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
| 4603 | LIBS=$ac_check_lib_save_LIBS | 
| 4604 | fi | 
| 4605 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | 
| 4606 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | 
| 4607 | if test $ac_cv_lib_l_yywrap = yes; then | 
| 4608 | LEXLIB="-ll" | 
| 4609 | fi | 
| 4610 |  | 
| 4611 | fi | 
| 4612 |  | 
| 4613 | fi | 
| 4614 |  | 
| 4615 | if test "x$LEX" != "x:"; then | 
| 4616 | echo "$as_me:$LINENO: checking lex output file root" >&5 | 
| 4617 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | 
| 4618 | if test "${ac_cv_prog_lex_root+set}" = set; then | 
| 4619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 4620 | else | 
| 4621 | # The minimal lex program is just a single line: %%.  But some broken lexes | 
| 4622 | # (Solaris, I think it was) want two %% lines, so accommodate them. | 
| 4623 | cat >conftest.l <<_ACEOF | 
| 4624 | %% | 
| 4625 | %% | 
| 4626 | _ACEOF | 
| 4627 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | 
| 4628 | (eval $LEX conftest.l) 2>&5 | 
| 4629 | ac_status=$? | 
| 4630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 4631 | (exit $ac_status); } | 
| 4632 | if test -f lex.yy.c; then | 
| 4633 | ac_cv_prog_lex_root=lex.yy | 
| 4634 | elif test -f lexyy.c; then | 
| 4635 | ac_cv_prog_lex_root=lexyy | 
| 4636 | else | 
| 4637 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 | 
| 4638 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | 
| 4639 | { (exit 1); exit 1; }; } | 
| 4640 | fi | 
| 4641 | fi | 
| 4642 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | 
| 4643 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | 
| 4644 | rm -f conftest.l | 
| 4645 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | 
| 4646 |  | 
| 4647 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | 
| 4648 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | 
| 4649 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | 
| 4650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 4651 | else | 
| 4652 | # POSIX says lex can declare yytext either as a pointer or an array; the | 
| 4653 | # default is implementation-dependent. Figure out which it is, since | 
| 4654 | # not all implementations provide the %pointer and %array declarations. | 
| 4655 | ac_cv_prog_lex_yytext_pointer=no | 
| 4656 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | 
| 4657 | ac_save_LIBS=$LIBS | 
| 4658 | LIBS="$LIBS $LEXLIB" | 
| 4659 | cat >conftest.$ac_ext <<_ACEOF | 
| 4660 | `cat $LEX_OUTPUT_ROOT.c` | 
| 4661 | _ACEOF | 
| 4662 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| 4663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| 4664 | (eval $ac_link) 2>&5 | 
| 4665 | ac_status=$? | 
| 4666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 4667 | (exit $ac_status); } && | 
| 4668 | { ac_try='test -s conftest$ac_exeext' | 
| 4669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 4670 | (eval $ac_try) 2>&5 | 
| 4671 | ac_status=$? | 
| 4672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 4673 | (exit $ac_status); }; }; then | 
| 4674 | ac_cv_prog_lex_yytext_pointer=yes | 
| 4675 | else | 
| 4676 | echo "$as_me: failed program was:" >&5 | 
| 4677 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 4678 |  | 
| 4679 | fi | 
| 4680 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
| 4681 | LIBS=$ac_save_LIBS | 
| 4682 | rm -f "${LEX_OUTPUT_ROOT}.c" | 
| 4683 |  | 
| 4684 | fi | 
| 4685 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | 
| 4686 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | 
| 4687 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | 
| 4688 |  | 
| 4689 | cat >>confdefs.h <<\_ACEOF | 
| 4690 | #define YYTEXT_POINTER 1 | 
| 4691 | _ACEOF | 
| 4692 |  | 
| 4693 | fi | 
| 4694 |  | 
| 4695 | fi | 
| 4696 | # Extract the first word of "ar", so it can be a program name with args. | 
| 4697 | set dummy ar; ac_word=$2 | 
| 4698 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
| 4699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| 4700 | if test "${ac_cv_prog_AR+set}" = set; then | 
| 4701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 4702 | else | 
| 4703 | if test -n "$AR"; then | 
| 4704 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
| 4705 | else | 
| 4706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| 4707 | for as_dir in $PATH | 
| 4708 | do | 
| 4709 | IFS=$as_save_IFS | 
| 4710 | test -z "$as_dir" && as_dir=. | 
| 4711 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| 4712 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| 4713 | ac_cv_prog_AR="ar" | 
| 4714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| 4715 | break 2 | 
| 4716 | fi | 
| 4717 | done | 
| 4718 | done | 
| 4719 |  | 
| 4720 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE" | 
| 4721 | fi | 
| 4722 | fi | 
| 4723 | AR=$ac_cv_prog_AR | 
| 4724 | if test -n "$AR"; then | 
| 4725 | echo "$as_me:$LINENO: result: $AR" >&5 | 
| 4726 | echo "${ECHO_T}$AR" >&6 | 
| 4727 | else | 
| 4728 | echo "$as_me:$LINENO: result: no" >&5 | 
| 4729 | echo "${ECHO_T}no" >&6 | 
| 4730 | fi | 
| 4731 |  | 
| 4732 | if test "$AR" = "NONE"; then | 
| 4733 | { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5 | 
| 4734 | echo "$as_me: error: --> Can't find \`ar'!" >&2;} | 
| 4735 | { (exit 1); exit 1; }; } | 
| 4736 | cat >confcache <<\_ACEOF | 
| 4737 | # This file is a shell script that caches the results of configure | 
| 4738 | # tests run on this system so they can be shared between configure | 
| 4739 | # scripts and configure runs, see configure's option --config-cache. | 
| 4740 | # It is not useful on other systems.  If it contains results you don't | 
| 4741 | # want to keep, you may remove or edit it. | 
| 4742 | # | 
| 4743 | # config.status only pays attention to the cache file if you give it | 
| 4744 | # the --recheck option to rerun configure. | 
| 4745 | # | 
| 4746 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
| 4747 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
| 4748 | # following values. | 
| 4749 |  | 
| 4750 | _ACEOF | 
| 4751 |  | 
| 4752 | # The following way of writing the cache mishandles newlines in values, | 
| 4753 | # but we know of no workaround that is simple, portable, and efficient. | 
| 4754 | # So, don't put newlines in cache variables' values. | 
| 4755 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
| 4756 | # and sets the high bit in the cache file unless we assign to the vars. | 
| 4757 | { | 
| 4758 | (set) 2>&1 | | 
| 4759 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
| 4760 | *ac_space=\ *) | 
| 4761 | # `set' does not quote correctly, so add quotes (double-quote | 
| 4762 | # substitution turns \\\\ into \\, and sed turns \\ into \). | 
| 4763 | sed -n \ | 
| 4764 | "s/'/'\\\\''/g; | 
| 4765 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| 4766 | ;; | 
| 4767 | *) | 
| 4768 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| 4769 | sed -n \ | 
| 4770 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | 
| 4771 | ;; | 
| 4772 | esac; | 
| 4773 | } | | 
| 4774 | sed ' | 
| 4775 | t clear | 
| 4776 | : clear | 
| 4777 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
| 4778 | t end | 
| 4779 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
| 4780 | : end' >>confcache | 
| 4781 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | 
| 4782 | if test -w $cache_file; then | 
| 4783 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | 
| 4784 | cat confcache >$cache_file | 
| 4785 | else | 
| 4786 | echo "not updating unwritable cache $cache_file" | 
| 4787 | fi | 
| 4788 | fi | 
| 4789 | rm -f confcache | 
| 4790 | exit 1 | 
| 4791 | fi | 
| 4792 |  | 
| 4793 | ac_ext=f90 | 
| 4794 | ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' | 
| 4795 | ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 4796 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu | 
| 4797 |  | 
| 4798 |  | 
| 4799 |  | 
| 4800 | ac_ext=f90 | 
| 4801 | ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' | 
| 4802 | ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 4803 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu | 
| 4804 | echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5 | 
| 4805 | echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6 | 
| 4806 | if test "${ac_cv_prog_f90_v+set}" = set; then | 
| 4807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 4808 | else | 
| 4809 |  | 
| 4810 | cat >conftest.$ac_ext <<_ACEOF | 
| 4811 |  | 
| 4812 | program main | 
| 4813 |  | 
| 4814 |  | 
| 4815 | end program main | 
| 4816 |  | 
| 4817 | _ACEOF | 
| 4818 | rm -f conftest.$ac_objext | 
| 4819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 4820 | (eval $ac_compile) 2>&5 | 
| 4821 | ac_status=$? | 
| 4822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 4823 | (exit $ac_status); } && | 
| 4824 | { ac_try='test -s conftest.$ac_objext' | 
| 4825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 4826 | (eval $ac_try) 2>&5 | 
| 4827 | ac_status=$? | 
| 4828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 4829 | (exit $ac_status); }; }; then | 
| 4830 | ac_cv_prog_f90_v= | 
| 4831 | # Try some options frequently used verbose output | 
| 4832 | for ac_verb in -v -verbose --verbose -V -\#\#\#; do | 
| 4833 | ac_ext=f90 | 
| 4834 | ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' | 
| 4835 | ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 4836 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu | 
| 4837 |  | 
| 4838 | cat >conftest.$ac_ext <<_ACEOF | 
| 4839 |  | 
| 4840 | program main | 
| 4841 |  | 
| 4842 |  | 
| 4843 | end program main | 
| 4844 |  | 
| 4845 | _ACEOF | 
| 4846 |  | 
| 4847 | # Compile and link our simple test program by passing a flag (argument | 
| 4848 | # 1 to this macro) to the Fortran 90 compiler in order to get | 
| 4849 | # "verbose" output that we can then parse for the Fortran 90 linker | 
| 4850 | # flags. | 
| 4851 | ac_save_F90FLAGS=$F90FLAGS | 
| 4852 | F90FLAGS="$F90FLAGS $ac_verb" | 
| 4853 |  | 
| 4854 | (eval echo $as_me:4854: \"$ac_link\") >&5 | 
| 4855 | ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` | 
| 4856 | echo "$ac_f90_v_output" >&5 | 
| 4857 | F90FLAGS=$ac_save_F90FLAGS | 
| 4858 |  | 
| 4859 | rm -f conftest.* | 
| 4860 | ac_ext=f90 | 
| 4861 | ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' | 
| 4862 | ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 4863 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu | 
| 4864 |  | 
| 4865 | # If we are using xlf then replace all the commas with spaces. | 
| 4866 | if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then | 
| 4867 | ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` | 
| 4868 | fi | 
| 4869 |  | 
| 4870 | # If we are using Cray Fortran then delete quotes. | 
| 4871 | # Use "\"" instead of '"' for font-lock-mode. | 
| 4872 | # FIXME: a more general fix for quoted arguments with spaces? | 
| 4873 | if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then | 
| 4874 | ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` | 
| 4875 | fi | 
| 4876 | # look for -l* and *.a constructs in the output | 
| 4877 | for ac_arg in $ac_f90_v_output; do | 
| 4878 | case $ac_arg in | 
| 4879 | [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) | 
| 4880 | ac_cv_prog_f90_v=$ac_verb | 
| 4881 | break 2 ;; | 
| 4882 | esac | 
| 4883 | done | 
| 4884 | done | 
| 4885 | if test -z "$ac_cv_prog_f90_v"; then | 
| 4886 | { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5 | 
| 4887 | echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;} | 
| 4888 | fi | 
| 4889 | else | 
| 4890 | echo "$as_me: failed program was:" >&5 | 
| 4891 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 4892 |  | 
| 4893 | { echo "$as_me:$LINENO: WARNING: compilation failed" >&5 | 
| 4894 | echo "$as_me: WARNING: compilation failed" >&2;} | 
| 4895 | fi | 
| 4896 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 4897 |  | 
| 4898 | fi | 
| 4899 | echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5 | 
| 4900 | echo "${ECHO_T}$ac_cv_prog_f90_v" >&6 | 
| 4901 | echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5 | 
| 4902 | echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6 | 
| 4903 | if test "${ac_cv_flibs+set}" = set; then | 
| 4904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 4905 | else | 
| 4906 | if test "x$F90LIBS" != "x"; then | 
| 4907 | ac_cv_f90libs="$F90LIBS" # Let the user override the test. | 
| 4908 | else | 
| 4909 |  | 
| 4910 | ac_ext=f90 | 
| 4911 | ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' | 
| 4912 | ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 4913 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu | 
| 4914 |  | 
| 4915 | cat >conftest.$ac_ext <<_ACEOF | 
| 4916 |  | 
| 4917 | program main | 
| 4918 |  | 
| 4919 |  | 
| 4920 | end program main | 
| 4921 |  | 
| 4922 | _ACEOF | 
| 4923 |  | 
| 4924 | # Compile and link our simple test program by passing a flag (argument | 
| 4925 | # 1 to this macro) to the Fortran 90 compiler in order to get | 
| 4926 | # "verbose" output that we can then parse for the Fortran 90 linker | 
| 4927 | # flags. | 
| 4928 | ac_save_F90FLAGS=$F90FLAGS | 
| 4929 | F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v" | 
| 4930 |  | 
| 4931 | (eval echo $as_me:4931: \"$ac_link\") >&5 | 
| 4932 | ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` | 
| 4933 | echo "$ac_f90_v_output" >&5 | 
| 4934 | F90FLAGS=$ac_save_F90FLAGS | 
| 4935 |  | 
| 4936 | rm -f conftest.* | 
| 4937 | ac_ext=f90 | 
| 4938 | ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' | 
| 4939 | ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 4940 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu | 
| 4941 |  | 
| 4942 | # If we are using xlf then replace all the commas with spaces. | 
| 4943 | if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then | 
| 4944 | ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` | 
| 4945 | fi | 
| 4946 |  | 
| 4947 | # If we are using Cray Fortran then delete quotes. | 
| 4948 | # Use "\"" instead of '"' for font-lock-mode. | 
| 4949 | # FIXME: a more general fix for quoted arguments with spaces? | 
| 4950 | if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then | 
| 4951 | ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` | 
| 4952 | fi | 
| 4953 |  | 
| 4954 | ac_cv_f90libs= | 
| 4955 |  | 
| 4956 | # Save positional arguments (if any) | 
| 4957 | ac_save_positional="$@" | 
| 4958 |  | 
| 4959 | set X $ac_f90_v_output | 
| 4960 | while test $# != 1; do | 
| 4961 | shift | 
| 4962 | ac_arg=$1 | 
| 4963 | case $ac_arg in | 
| 4964 | [\\/]*.a | ?:[\\/]*.a) | 
| 4965 | ac_exists=false | 
| 4966 | for ac_i in $ac_cv_f90libs; do | 
| 4967 | if test x"$ac_arg" = x"$ac_i"; then | 
| 4968 | ac_exists=true | 
| 4969 | break | 
| 4970 | fi | 
| 4971 | done | 
| 4972 |  | 
| 4973 | if test x"$ac_exists" = xtrue; then | 
| 4974 | : | 
| 4975 | else | 
| 4976 | ac_cv_f90libs="$ac_cv_f90libs $ac_arg" | 
| 4977 | fi | 
| 4978 |  | 
| 4979 | ;; | 
| 4980 | -bI:*) | 
| 4981 | ac_exists=false | 
| 4982 | for ac_i in $ac_cv_f90libs; do | 
| 4983 | if test x"$ac_arg" = x"$ac_i"; then | 
| 4984 | ac_exists=true | 
| 4985 | break | 
| 4986 | fi | 
| 4987 | done | 
| 4988 |  | 
| 4989 | if test x"$ac_exists" = xtrue; then | 
| 4990 | : | 
| 4991 | else | 
| 4992 | if test "$ac_compiler_gnu" = yes; then | 
| 4993 | for ac_link_opt in $ac_arg; do | 
| 4994 | ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" | 
| 4995 | done | 
| 4996 | else | 
| 4997 | ac_cv_f90libs="$ac_cv_f90libs $ac_arg" | 
| 4998 | fi | 
| 4999 | fi | 
| 5000 |  | 
| 5001 | ;; | 
| 5002 | # Ignore these flags. | 
| 5003 | -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*) | 
| 5004 | ;; | 
| 5005 | -lkernel32) | 
| 5006 | test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg" | 
| 5007 | ;; | 
| 5008 | -[LRuY]) | 
| 5009 | # These flags, when seen by themselves, take an argument. | 
| 5010 | # We remove the space between option and argument and re-iterate | 
| 5011 | # unless we find an empty arg or a new option (starting with -) | 
| 5012 | case $2 in | 
| 5013 | "" | -*);; | 
| 5014 | *) | 
| 5015 | ac_arg="$ac_arg$2" | 
| 5016 |  | 
| 5017 | shift; shift | 
| 5018 | set X $ac_arg "$@" | 
| 5019 | ;; | 
| 5020 | esac | 
| 5021 | ;; | 
| 5022 | -YP,*) | 
| 5023 | for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do | 
| 5024 | ac_exists=false | 
| 5025 | for ac_i in $ac_cv_f90libs; do | 
| 5026 | if test x"$ac_j" = x"$ac_i"; then | 
| 5027 | ac_exists=true | 
| 5028 | break | 
| 5029 | fi | 
| 5030 | done | 
| 5031 |  | 
| 5032 | if test x"$ac_exists" = xtrue; then | 
| 5033 | : | 
| 5034 | else | 
| 5035 | ac_arg="$ac_arg $ac_j" | 
| 5036 | ac_cv_f90libs="$ac_cv_f90libs $ac_j" | 
| 5037 | fi | 
| 5038 |  | 
| 5039 | done | 
| 5040 | ;; | 
| 5041 | -[lLR]*) | 
| 5042 | ac_exists=false | 
| 5043 | for ac_i in $ac_cv_f90libs; do | 
| 5044 | if test x"$ac_arg" = x"$ac_i"; then | 
| 5045 | ac_exists=true | 
| 5046 | break | 
| 5047 | fi | 
| 5048 | done | 
| 5049 |  | 
| 5050 | if test x"$ac_exists" = xtrue; then | 
| 5051 | : | 
| 5052 | else | 
| 5053 | ac_cv_f90libs="$ac_cv_f90libs $ac_arg" | 
| 5054 | fi | 
| 5055 |  | 
| 5056 | ;; | 
| 5057 | # Ignore everything else. | 
| 5058 | esac | 
| 5059 | done | 
| 5060 | # restore positional arguments | 
| 5061 | set X $ac_save_positional; shift | 
| 5062 |  | 
| 5063 | # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen, | 
| 5064 | # then we insist that the "run path" must be an absolute path (i.e. it | 
| 5065 | # must begin with a "/"). | 
| 5066 | case `(uname -sr) 2>/dev/null` in | 
| 5067 | "SunOS 5"*) | 
| 5068 | ac_ld_run_path=`echo $ac_f90_v_output | | 
| 5069 | sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` | 
| 5070 | test "x$ac_ld_run_path" != x && | 
| 5071 |  | 
| 5072 | if test "$ac_compiler_gnu" = yes; then | 
| 5073 | for ac_link_opt in $ac_ld_run_path; do | 
| 5074 | ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" | 
| 5075 | done | 
| 5076 | else | 
| 5077 | ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path" | 
| 5078 | fi | 
| 5079 | ;; | 
| 5080 | esac | 
| 5081 | fi # test "x$F90LIBS" = "x" | 
| 5082 |  | 
| 5083 | fi | 
| 5084 | echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5 | 
| 5085 | echo "${ECHO_T}$ac_cv_flibs" >&6 | 
| 5086 | F90LIBS="$ac_cv_f90libs" | 
| 5087 |  | 
| 5088 | ac_ext=f90 | 
| 5089 | ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' | 
| 5090 | ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 5091 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu | 
| 5092 |  | 
| 5093 | echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5 | 
| 5094 | echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6 | 
| 5095 | if test "${ac_cv_f90_mangling+set}" = set; then | 
| 5096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 5097 | else | 
| 5098 | ac_ext=f90 | 
| 5099 | ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' | 
| 5100 | ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 5101 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu | 
| 5102 | cat >conftest.$ac_ext <<_ACEOF | 
| 5103 | subroutine foobar() | 
| 5104 | return | 
| 5105 | end | 
| 5106 | subroutine foo_bar() | 
| 5107 | return | 
| 5108 | end | 
| 5109 | _ACEOF | 
| 5110 | rm -f conftest.$ac_objext | 
| 5111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 5112 | (eval $ac_compile) 2>&5 | 
| 5113 | ac_status=$? | 
| 5114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 5115 | (exit $ac_status); } && | 
| 5116 | { ac_try='test -s conftest.$ac_objext' | 
| 5117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 5118 | (eval $ac_try) 2>&5 | 
| 5119 | ac_status=$? | 
| 5120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 5121 | (exit $ac_status); }; }; then | 
| 5122 | mv conftest.$ac_objext cf90_test.$ac_objext | 
| 5123 |  | 
| 5124 | ac_ext=c | 
| 5125 | ac_cpp='$CPP $CPPFLAGS' | 
| 5126 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 5127 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 5128 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 5129 |  | 
| 5130 | ac_save_LIBS=$LIBS | 
| 5131 | LIBS="cf90_test.$ac_objext $F90LIBS $LIBS" | 
| 5132 |  | 
| 5133 | ac_success=no | 
| 5134 | for ac_foobar in foobar FOOBAR; do | 
| 5135 | for ac_underscore in "" "_"; do | 
| 5136 | ac_func="$ac_foobar$ac_underscore" | 
| 5137 | cat >conftest.$ac_ext <<_ACEOF | 
| 5138 | #line $LINENO "configure" | 
| 5139 | /* confdefs.h.  */ | 
| 5140 | _ACEOF | 
| 5141 | cat confdefs.h >>conftest.$ac_ext | 
| 5142 | cat >>conftest.$ac_ext <<_ACEOF | 
| 5143 | /* end confdefs.h.  */ | 
| 5144 |  | 
| 5145 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| 5146 | #ifdef __cplusplus | 
| 5147 | extern "C" | 
| 5148 | #endif | 
| 5149 | /* We use char because int might match the return type of a gcc2 | 
| 5150 | builtin and then its argument prototype would still apply.  */ | 
| 5151 | char $ac_func (); | 
| 5152 | int | 
| 5153 | main () | 
| 5154 | { | 
| 5155 | $ac_func (); | 
| 5156 | ; | 
| 5157 | return 0; | 
| 5158 | } | 
| 5159 | _ACEOF | 
| 5160 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| 5161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| 5162 | (eval $ac_link) 2>&5 | 
| 5163 | ac_status=$? | 
| 5164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 5165 | (exit $ac_status); } && | 
| 5166 | { ac_try='test -s conftest$ac_exeext' | 
| 5167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 5168 | (eval $ac_try) 2>&5 | 
| 5169 | ac_status=$? | 
| 5170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 5171 | (exit $ac_status); }; }; then | 
| 5172 | ac_success=yes; break 2 | 
| 5173 | else | 
| 5174 | echo "$as_me: failed program was:" >&5 | 
| 5175 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 5176 |  | 
| 5177 | fi | 
| 5178 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
| 5179 | done | 
| 5180 | done | 
| 5181 |  | 
| 5182 | if test "$ac_success" = "yes"; then | 
| 5183 | case $ac_foobar in | 
| 5184 | foobar) | 
| 5185 | ac_case=lower | 
| 5186 | ac_foo_bar=foo_bar | 
| 5187 | ;; | 
| 5188 | FOOBAR) | 
| 5189 | ac_case=upper | 
| 5190 | ac_foo_bar=FOO_BAR | 
| 5191 | ;; | 
| 5192 | esac | 
| 5193 |  | 
| 5194 | ac_success_extra=no | 
| 5195 | for ac_extra in "" "_"; do | 
| 5196 | ac_func="$ac_foo_bar$ac_underscore$ac_extra" | 
| 5197 |  | 
| 5198 | cat >conftest.$ac_ext <<_ACEOF | 
| 5199 | #line $LINENO "configure" | 
| 5200 | /* confdefs.h.  */ | 
| 5201 | _ACEOF | 
| 5202 | cat confdefs.h >>conftest.$ac_ext | 
| 5203 | cat >>conftest.$ac_ext <<_ACEOF | 
| 5204 | /* end confdefs.h.  */ | 
| 5205 |  | 
| 5206 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| 5207 | #ifdef __cplusplus | 
| 5208 | extern "C" | 
| 5209 | #endif | 
| 5210 | /* We use char because int might match the return type of a gcc2 | 
| 5211 | builtin and then its argument prototype would still apply.  */ | 
| 5212 | char $ac_func (); | 
| 5213 | int | 
| 5214 | main () | 
| 5215 | { | 
| 5216 | $ac_func (); | 
| 5217 | ; | 
| 5218 | return 0; | 
| 5219 | } | 
| 5220 | _ACEOF | 
| 5221 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| 5222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| 5223 | (eval $ac_link) 2>&5 | 
| 5224 | ac_status=$? | 
| 5225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 5226 | (exit $ac_status); } && | 
| 5227 | { ac_try='test -s conftest$ac_exeext' | 
| 5228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 5229 | (eval $ac_try) 2>&5 | 
| 5230 | ac_status=$? | 
| 5231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 5232 | (exit $ac_status); }; }; then | 
| 5233 | ac_success_extra=yes; break | 
| 5234 | else | 
| 5235 | echo "$as_me: failed program was:" >&5 | 
| 5236 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 5237 |  | 
| 5238 | fi | 
| 5239 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
| 5240 | done | 
| 5241 |  | 
| 5242 | if test "$ac_success_extra" = "yes"; then | 
| 5243 | ac_cv_f90_mangling="$ac_case case" | 
| 5244 | if test -z "$ac_underscore"; then | 
| 5245 | ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore" | 
| 5246 | else | 
| 5247 | ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore" | 
| 5248 |  | 
| 5249 | fi | 
| 5250 | if test -z "$ac_extra"; then | 
| 5251 | ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore" | 
| 5252 | else | 
| 5253 | ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore" | 
| 5254 | fi | 
| 5255 | else | 
| 5256 | ac_cv_f90_mangling="unknown" | 
| 5257 | fi | 
| 5258 | else | 
| 5259 | ac_cv_f90_mangling="unknown" | 
| 5260 |  | 
| 5261 | fi | 
| 5262 |  | 
| 5263 | LIBS=$ac_save_LIBS | 
| 5264 | ac_ext=f90 | 
| 5265 | ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' | 
| 5266 | ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 5267 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu | 
| 5268 | rm -f cf90_test* conftest* | 
| 5269 | else | 
| 5270 | echo "$as_me: failed program was:" >&5 | 
| 5271 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 5272 |  | 
| 5273 | fi | 
| 5274 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 5275 | ac_ext=f90 | 
| 5276 | ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' | 
| 5277 | ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 5278 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu | 
| 5279 |  | 
| 5280 | fi | 
| 5281 | echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5 | 
| 5282 | echo "${ECHO_T}$ac_cv_f90_mangling" >&6 | 
| 5283 |  | 
| 5284 |  | 
| 5285 |  | 
| 5286 | case $ac_cv_f90_mangling in | 
| 5287 | "lower case, no underscore, no extra underscore") | 
| 5288 | cat >>confdefs.h <<\_ACEOF | 
| 5289 | #define F90_FUNC(name,NAME) name | 
| 5290 | _ACEOF | 
| 5291 |  | 
| 5292 | cat >>confdefs.h <<\_ACEOF | 
| 5293 | #define F90_FUNC_(name,NAME) name | 
| 5294 | _ACEOF | 
| 5295 | ;; | 
| 5296 | "lower case, no underscore, extra underscore") | 
| 5297 | cat >>confdefs.h <<\_ACEOF | 
| 5298 | #define F90_FUNC(name,NAME) name | 
| 5299 | _ACEOF | 
| 5300 |  | 
| 5301 | cat >>confdefs.h <<\_ACEOF | 
| 5302 | #define F90_FUNC_(name,NAME) name ## _ | 
| 5303 | _ACEOF | 
| 5304 | ;; | 
| 5305 | "lower case, underscore, no extra underscore") | 
| 5306 | cat >>confdefs.h <<\_ACEOF | 
| 5307 | #define F90_FUNC(name,NAME) name ## _ | 
| 5308 | _ACEOF | 
| 5309 |  | 
| 5310 | cat >>confdefs.h <<\_ACEOF | 
| 5311 | #define F90_FUNC_(name,NAME) name ## _ | 
| 5312 | _ACEOF | 
| 5313 | ;; | 
| 5314 | "lower case, underscore, extra underscore") | 
| 5315 | cat >>confdefs.h <<\_ACEOF | 
| 5316 | #define F90_FUNC(name,NAME) name ## _ | 
| 5317 | _ACEOF | 
| 5318 |  | 
| 5319 | cat >>confdefs.h <<\_ACEOF | 
| 5320 | #define F90_FUNC_(name,NAME) name ## __ | 
| 5321 | _ACEOF | 
| 5322 | ;; | 
| 5323 | "upper case, no underscore, no extra underscore") | 
| 5324 | cat >>confdefs.h <<\_ACEOF | 
| 5325 | #define F90_FUNC(name,NAME) NAME | 
| 5326 | _ACEOF | 
| 5327 |  | 
| 5328 | cat >>confdefs.h <<\_ACEOF | 
| 5329 | #define F90_FUNC_(name,NAME) NAME | 
| 5330 | _ACEOF | 
| 5331 | ;; | 
| 5332 | "upper case, no underscore, extra underscore") | 
| 5333 | cat >>confdefs.h <<\_ACEOF | 
| 5334 | #define F90_FUNC(name,NAME) NAME | 
| 5335 | _ACEOF | 
| 5336 |  | 
| 5337 | cat >>confdefs.h <<\_ACEOF | 
| 5338 | #define F90_FUNC_(name,NAME) NAME ## _ | 
| 5339 | _ACEOF | 
| 5340 | ;; | 
| 5341 | "upper case, underscore, no extra underscore") | 
| 5342 | cat >>confdefs.h <<\_ACEOF | 
| 5343 | #define F90_FUNC(name,NAME) NAME ## _ | 
| 5344 | _ACEOF | 
| 5345 |  | 
| 5346 | cat >>confdefs.h <<\_ACEOF | 
| 5347 | #define F90_FUNC_(name,NAME) NAME ## _ | 
| 5348 | _ACEOF | 
| 5349 | ;; | 
| 5350 | "upper case, underscore, extra underscore") | 
| 5351 | cat >>confdefs.h <<\_ACEOF | 
| 5352 | #define F90_FUNC(name,NAME) NAME ## _ | 
| 5353 | _ACEOF | 
| 5354 |  | 
| 5355 | cat >>confdefs.h <<\_ACEOF | 
| 5356 | #define F90_FUNC_(name,NAME) NAME ## __ | 
| 5357 | _ACEOF | 
| 5358 | ;; | 
| 5359 | *) | 
| 5360 | { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5 | 
| 5361 | echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;} | 
| 5362 | ;; | 
| 5363 | esac | 
| 5364 |  | 
| 5365 |  | 
| 5366 |  | 
| 5367 |  | 
| 5368 | echo "$as_me:$LINENO: checking for mpi-directory" >&5 | 
| 5369 | echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6 | 
| 5370 |  | 
| 5371 | # Check whether --with-mpi_dir or --without-mpi_dir was given. | 
| 5372 | if test "${with_mpi_dir+set}" = set; then | 
| 5373 | withval="$with_mpi_dir" | 
| 5374 | MPI_DIR="$withval" | 
| 5375 | else | 
| 5376 | MPI_DIR="/usr/local" | 
| 5377 | fi; | 
| 5378 | echo "$as_me:$LINENO: result: $MPI_DIR" >&5 | 
| 5379 | echo "${ECHO_T}$MPI_DIR" >&6 | 
| 5380 |  | 
| 5381 |  | 
| 5382 | echo "$as_me:$LINENO: checking for mpi-lib-directory" >&5 | 
| 5383 | echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6 | 
| 5384 |  | 
| 5385 | # Check whether --with-mpi_libdir or --without-mpi_libdir was given. | 
| 5386 | if test "${with_mpi_libdir+set}" = set; then | 
| 5387 | withval="$with_mpi_libdir" | 
| 5388 | MPI_LIBDIR="$withval" | 
| 5389 | else | 
| 5390 | MPI_LIBDIR="$MPI_DIR/lib" | 
| 5391 | fi; | 
| 5392 | echo "$as_me:$LINENO: result: $MPI_LIBDIR" >&5 | 
| 5393 | echo "${ECHO_T}$MPI_LIBDIR" >&6 | 
| 5394 |  | 
| 5395 |  | 
| 5396 | echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5 | 
| 5397 | echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6 | 
| 5398 |  | 
| 5399 | # Check whether --with-mpi_inc or --without-mpi_inc was given. | 
| 5400 | if test "${with_mpi_inc+set}" = set; then | 
| 5401 | withval="$with_mpi_inc" | 
| 5402 | MPI_INC="$withval" | 
| 5403 | else | 
| 5404 | MPI_INC="$MPI_DIR/include" | 
| 5405 | fi; | 
| 5406 | echo "$as_me:$LINENO: result: $MPI_INC" >&5 | 
| 5407 | echo "${ECHO_T}$MPI_INC" >&6 | 
| 5408 |  | 
| 5409 |  | 
| 5410 |  | 
| 5411 | echo "$as_me:$LINENO: checking for MPI library" >&5 | 
| 5412 | echo $ECHO_N "checking for MPI library... $ECHO_C" >&6 | 
| 5413 | MPI_LIB="" | 
| 5414 | case "$host" in | 
| 5415 | *-ibm-aix*) | 
| 5416 | echo "$as_me:$LINENO: checking whether to use signal-based MPI library" >&5 | 
| 5417 | echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6 | 
| 5418 | echo "$as_me:$LINENO: result: $PACX_SIGNAL" >&5 | 
| 5419 | echo "${ECHO_T}$PACX_SIGNAL" >&6 | 
| 5420 | if test "x$PACX_SIGNAL" = "xyes" ; then | 
| 5421 | if test -f "$MPI_LIBDIR/libmpi.a" ; then | 
| 5422 | MPI_LIB="-lmpi" | 
| 5423 | elif test -f "$MPI_LIBDIR/libmpi.so" ; then | 
| 5424 | MPI_LIB="-lmpi" | 
| 5425 | elif test -f "$MPI_LIBDIR/libmpich.a" ; then | 
| 5426 | MPI_LIB="-lmpich" | 
| 5427 | else | 
| 5428 | { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5 | 
| 5429 | echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;} | 
| 5430 | { (exit 1); exit 1; }; } | 
| 5431 | fi | 
| 5432 | else | 
| 5433 | if test -f "$MPI_LIBDIR/libmpi_r.a" ; then | 
| 5434 | MPI_LIB="-lmpi_r" | 
| 5435 | else | 
| 5436 | { { echo "$as_me:$LINENO: error: libmpi_r not found; check path for MPI package..." >&5 | 
| 5437 | echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;} | 
| 5438 | { (exit 1); exit 1; }; } | 
| 5439 | fi | 
| 5440 | fi | 
| 5441 | echo "$as_me:$LINENO: result: found $MPI_LIB" >&5 | 
| 5442 | echo "${ECHO_T}found $MPI_LIB" >&6 | 
| 5443 | ;; | 
| 5444 | *)                             if test -f "$MPI_LIBDIR/libmpi.a" ; then | 
| 5445 | MPI_LIB="-lmpi" | 
| 5446 | elif test -f "$MPI_LIBDIR/libmpi.so" ; then | 
| 5447 | MPI_LIB="-lmpi" | 
| 5448 | elif test -f "$MPI_LIBDIR/libmpich.a" ; then | 
| 5449 | MPI_LIB="-lmpich" | 
| 5450 | else | 
| 5451 | { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5 | 
| 5452 | echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;} | 
| 5453 | { (exit 1); exit 1; }; } | 
| 5454 | fi | 
| 5455 | echo "$as_me:$LINENO: result: found $MPI_LIB" >&5 | 
| 5456 | echo "${ECHO_T}found $MPI_LIB" >&6 | 
| 5457 | ;; | 
| 5458 | esac | 
| 5459 |  | 
| 5460 |  | 
| 5461 |  | 
| 5462 |  | 
| 5463 |  | 
| 5464 |  | 
| 5465 |  | 
| 5466 | for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r | 
| 5467 | do | 
| 5468 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
| 5469 | set dummy $ac_prog; ac_word=$2 | 
| 5470 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | 
| 5471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | 
| 5472 | if test "${ac_cv_prog_MPIF90+set}" = set; then | 
| 5473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 5474 | else | 
| 5475 | if test -n "$MPIF90"; then | 
| 5476 | ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test. | 
| 5477 | else | 
| 5478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| 5479 | for as_dir in $PATH | 
| 5480 | do | 
| 5481 | IFS=$as_save_IFS | 
| 5482 | test -z "$as_dir" && as_dir=. | 
| 5483 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| 5484 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 
| 5485 | ac_cv_prog_MPIF90="$ac_prog" | 
| 5486 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
| 5487 | break 2 | 
| 5488 | fi | 
| 5489 | done | 
| 5490 | done | 
| 5491 |  | 
| 5492 | fi | 
| 5493 | fi | 
| 5494 | MPIF90=$ac_cv_prog_MPIF90 | 
| 5495 | if test -n "$MPIF90"; then | 
| 5496 | echo "$as_me:$LINENO: result: $MPIF90" >&5 | 
| 5497 | echo "${ECHO_T}$MPIF90" >&6 | 
| 5498 | else | 
| 5499 | echo "$as_me:$LINENO: result: no" >&5 | 
| 5500 | echo "${ECHO_T}no" >&6 | 
| 5501 | fi | 
| 5502 |  | 
| 5503 | test -n "$MPIF90" && break | 
| 5504 | done | 
| 5505 | test -n "$MPIF90" || MPIF90="$F90" | 
| 5506 |  | 
| 5507 | acx_mpi_save_F90="$F90" | 
| 5508 | F90="$MPIF90" | 
| 5509 |  | 
| 5510 |  | 
| 5511 |  | 
| 5512 | if test x = x"$MPILIBS"; then | 
| 5513 | echo "$as_me:$LINENO: checking for MPI_Init" >&5 | 
| 5514 | echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6 | 
| 5515 | cat >conftest.$ac_ext <<_ACEOF | 
| 5516 |  | 
| 5517 | program main | 
| 5518 |  | 
| 5519 | call MPI_Init | 
| 5520 | end program main | 
| 5521 |  | 
| 5522 | _ACEOF | 
| 5523 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| 5524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| 5525 | (eval $ac_link) 2>&5 | 
| 5526 | ac_status=$? | 
| 5527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 5528 | (exit $ac_status); } && | 
| 5529 | { ac_try='test -s conftest$ac_exeext' | 
| 5530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 5531 | (eval $ac_try) 2>&5 | 
| 5532 | ac_status=$? | 
| 5533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 5534 | (exit $ac_status); }; }; then | 
| 5535 | MPILIBS=" " | 
| 5536 | echo "$as_me:$LINENO: result: yes" >&5 | 
| 5537 | echo "${ECHO_T}yes" >&6 | 
| 5538 | else | 
| 5539 | echo "$as_me: failed program was:" >&5 | 
| 5540 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 5541 |  | 
| 5542 | echo "$as_me:$LINENO: result: no" >&5 | 
| 5543 | echo "${ECHO_T}no" >&6 | 
| 5544 | fi | 
| 5545 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
| 5546 | fi | 
| 5547 | if test x = x"$MPILIBS"; then | 
| 5548 | echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 | 
| 5549 | echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 | 
| 5550 | if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then | 
| 5551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 5552 | else | 
| 5553 | ac_check_lib_save_LIBS=$LIBS | 
| 5554 | LIBS="-lmpi  $LIBS" | 
| 5555 | cat >conftest.$ac_ext <<_ACEOF | 
| 5556 |  | 
| 5557 | program main | 
| 5558 |  | 
| 5559 | call MPI_Init | 
| 5560 | end program main | 
| 5561 |  | 
| 5562 | _ACEOF | 
| 5563 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| 5564 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| 5565 | (eval $ac_link) 2>&5 | 
| 5566 | ac_status=$? | 
| 5567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 5568 | (exit $ac_status); } && | 
| 5569 | { ac_try='test -s conftest$ac_exeext' | 
| 5570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 5571 | (eval $ac_try) 2>&5 | 
| 5572 | ac_status=$? | 
| 5573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 5574 | (exit $ac_status); }; }; then | 
| 5575 | ac_cv_lib_mpi_MPI_Init=yes | 
| 5576 | else | 
| 5577 | echo "$as_me: failed program was:" >&5 | 
| 5578 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 5579 |  | 
| 5580 | ac_cv_lib_mpi_MPI_Init=no | 
| 5581 | fi | 
| 5582 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
| 5583 | LIBS=$ac_check_lib_save_LIBS | 
| 5584 | fi | 
| 5585 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 | 
| 5586 | echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 | 
| 5587 | if test $ac_cv_lib_mpi_MPI_Init = yes; then | 
| 5588 | MPILIBS="-lmpi" | 
| 5589 | fi | 
| 5590 |  | 
| 5591 | fi | 
| 5592 | if test x = x"$MPILIBS"; then | 
| 5593 | echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 | 
| 5594 | echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 | 
| 5595 | if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then | 
| 5596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 5597 | else | 
| 5598 | ac_check_lib_save_LIBS=$LIBS | 
| 5599 | LIBS="-lmpich  $LIBS" | 
| 5600 | cat >conftest.$ac_ext <<_ACEOF | 
| 5601 |  | 
| 5602 | program main | 
| 5603 |  | 
| 5604 | call MPI_Init | 
| 5605 | end program main | 
| 5606 |  | 
| 5607 | _ACEOF | 
| 5608 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| 5609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| 5610 | (eval $ac_link) 2>&5 | 
| 5611 | ac_status=$? | 
| 5612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 5613 | (exit $ac_status); } && | 
| 5614 | { ac_try='test -s conftest$ac_exeext' | 
| 5615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 5616 | (eval $ac_try) 2>&5 | 
| 5617 | ac_status=$? | 
| 5618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 5619 | (exit $ac_status); }; }; then | 
| 5620 | ac_cv_lib_mpich_MPI_Init=yes | 
| 5621 | else | 
| 5622 | echo "$as_me: failed program was:" >&5 | 
| 5623 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 5624 |  | 
| 5625 | ac_cv_lib_mpich_MPI_Init=no | 
| 5626 | fi | 
| 5627 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
| 5628 | LIBS=$ac_check_lib_save_LIBS | 
| 5629 | fi | 
| 5630 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 | 
| 5631 | echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 | 
| 5632 | if test $ac_cv_lib_mpich_MPI_Init = yes; then | 
| 5633 | MPILIBS="-lmpich" | 
| 5634 | fi | 
| 5635 |  | 
| 5636 | fi | 
| 5637 |  | 
| 5638 |  | 
| 5639 |  | 
| 5640 | F90="$acx_mpi_save_F90" | 
| 5641 |  | 
| 5642 |  | 
| 5643 |  | 
| 5644 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | 
| 5645 | if test x = x"$MPILIBS"; then | 
| 5646 |  | 
| 5647 | : | 
| 5648 | else | 
| 5649 |  | 
| 5650 | cat >>confdefs.h <<\_ACEOF | 
| 5651 | #define HAVE_MPI 1 | 
| 5652 | _ACEOF | 
| 5653 |  | 
| 5654 | : | 
| 5655 | fi | 
| 5656 |  | 
| 5657 |  | 
| 5658 | ac_ext=c | 
| 5659 | ac_cpp='$CPP $CPPFLAGS' | 
| 5660 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 5661 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 5662 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 5663 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | 
| 5664 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | 
| 5665 | # On Suns, sometimes $CPP names a directory. | 
| 5666 | if test -n "$CPP" && test -d "$CPP"; then | 
| 5667 | CPP= | 
| 5668 | fi | 
| 5669 | if test -z "$CPP"; then | 
| 5670 | if test "${ac_cv_prog_CPP+set}" = set; then | 
| 5671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 5672 | else | 
| 5673 | # Double quotes because CPP needs to be expanded | 
| 5674 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
| 5675 | do | 
| 5676 | ac_preproc_ok=false | 
| 5677 | for ac_c_preproc_warn_flag in '' yes | 
| 5678 | do | 
| 5679 | # Use a header file that comes with gcc, so configuring glibc | 
| 5680 | # with a fresh cross-compiler works. | 
| 5681 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
| 5682 | # <limits.h> exists even on freestanding compilers. | 
| 5683 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
| 5684 | # not just through cpp. "Syntax error" is here to catch this case. | 
| 5685 | cat >conftest.$ac_ext <<_ACEOF | 
| 5686 | #line $LINENO "configure" | 
| 5687 | /* confdefs.h.  */ | 
| 5688 | _ACEOF | 
| 5689 | cat confdefs.h >>conftest.$ac_ext | 
| 5690 | cat >>conftest.$ac_ext <<_ACEOF | 
| 5691 | /* end confdefs.h.  */ | 
| 5692 | #ifdef __STDC__ | 
| 5693 | # include <limits.h> | 
| 5694 | #else | 
| 5695 | # include <assert.h> | 
| 5696 | #endif | 
| 5697 | Syntax error | 
| 5698 | _ACEOF | 
| 5699 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
| 5700 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
| 5701 | ac_status=$? | 
| 5702 | grep -v '^ *+' conftest.er1 >conftest.err | 
| 5703 | rm -f conftest.er1 | 
| 5704 | cat conftest.err >&5 | 
| 5705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 5706 | (exit $ac_status); } >/dev/null; then | 
| 5707 | if test -s conftest.err; then | 
| 5708 | ac_cpp_err=$ac_c_preproc_warn_flag | 
| 5709 | else | 
| 5710 | ac_cpp_err= | 
| 5711 | fi | 
| 5712 | else | 
| 5713 | ac_cpp_err=yes | 
| 5714 | fi | 
| 5715 | if test -z "$ac_cpp_err"; then | 
| 5716 | : | 
| 5717 | else | 
| 5718 | echo "$as_me: failed program was:" >&5 | 
| 5719 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 5720 |  | 
| 5721 | # Broken: fails on valid input. | 
| 5722 | continue | 
| 5723 | fi | 
| 5724 | rm -f conftest.err conftest.$ac_ext | 
| 5725 |  | 
| 5726 | # OK, works on sane cases.  Now check whether non-existent headers | 
| 5727 | # can be detected and how. | 
| 5728 | cat >conftest.$ac_ext <<_ACEOF | 
| 5729 | #line $LINENO "configure" | 
| 5730 | /* confdefs.h.  */ | 
| 5731 | _ACEOF | 
| 5732 | cat confdefs.h >>conftest.$ac_ext | 
| 5733 | cat >>conftest.$ac_ext <<_ACEOF | 
| 5734 | /* end confdefs.h.  */ | 
| 5735 | #include <ac_nonexistent.h> | 
| 5736 | _ACEOF | 
| 5737 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
| 5738 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
| 5739 | ac_status=$? | 
| 5740 | grep -v '^ *+' conftest.er1 >conftest.err | 
| 5741 | rm -f conftest.er1 | 
| 5742 | cat conftest.err >&5 | 
| 5743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 5744 | (exit $ac_status); } >/dev/null; then | 
| 5745 | if test -s conftest.err; then | 
| 5746 | ac_cpp_err=$ac_c_preproc_warn_flag | 
| 5747 | else | 
| 5748 | ac_cpp_err= | 
| 5749 | fi | 
| 5750 | else | 
| 5751 | ac_cpp_err=yes | 
| 5752 | fi | 
| 5753 | if test -z "$ac_cpp_err"; then | 
| 5754 | # Broken: success on invalid input. | 
| 5755 | continue | 
| 5756 | else | 
| 5757 | echo "$as_me: failed program was:" >&5 | 
| 5758 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 5759 |  | 
| 5760 | # Passes both tests. | 
| 5761 | ac_preproc_ok=: | 
| 5762 | break | 
| 5763 | fi | 
| 5764 | rm -f conftest.err conftest.$ac_ext | 
| 5765 |  | 
| 5766 | done | 
| 5767 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| 5768 | rm -f conftest.err conftest.$ac_ext | 
| 5769 | if $ac_preproc_ok; then | 
| 5770 | break | 
| 5771 | fi | 
| 5772 |  | 
| 5773 | done | 
| 5774 | ac_cv_prog_CPP=$CPP | 
| 5775 |  | 
| 5776 | fi | 
| 5777 | CPP=$ac_cv_prog_CPP | 
| 5778 | else | 
| 5779 | ac_cv_prog_CPP=$CPP | 
| 5780 | fi | 
| 5781 | echo "$as_me:$LINENO: result: $CPP" >&5 | 
| 5782 | echo "${ECHO_T}$CPP" >&6 | 
| 5783 | ac_preproc_ok=false | 
| 5784 | for ac_c_preproc_warn_flag in '' yes | 
| 5785 | do | 
| 5786 | # Use a header file that comes with gcc, so configuring glibc | 
| 5787 | # with a fresh cross-compiler works. | 
| 5788 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
| 5789 | # <limits.h> exists even on freestanding compilers. | 
| 5790 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
| 5791 | # not just through cpp. "Syntax error" is here to catch this case. | 
| 5792 | cat >conftest.$ac_ext <<_ACEOF | 
| 5793 | #line $LINENO "configure" | 
| 5794 | /* confdefs.h.  */ | 
| 5795 | _ACEOF | 
| 5796 | cat confdefs.h >>conftest.$ac_ext | 
| 5797 | cat >>conftest.$ac_ext <<_ACEOF | 
| 5798 | /* end confdefs.h.  */ | 
| 5799 | #ifdef __STDC__ | 
| 5800 | # include <limits.h> | 
| 5801 | #else | 
| 5802 | # include <assert.h> | 
| 5803 | #endif | 
| 5804 | Syntax error | 
| 5805 | _ACEOF | 
| 5806 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
| 5807 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
| 5808 | ac_status=$? | 
| 5809 | grep -v '^ *+' conftest.er1 >conftest.err | 
| 5810 | rm -f conftest.er1 | 
| 5811 | cat conftest.err >&5 | 
| 5812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 5813 | (exit $ac_status); } >/dev/null; then | 
| 5814 | if test -s conftest.err; then | 
| 5815 | ac_cpp_err=$ac_c_preproc_warn_flag | 
| 5816 | else | 
| 5817 | ac_cpp_err= | 
| 5818 | fi | 
| 5819 | else | 
| 5820 | ac_cpp_err=yes | 
| 5821 | fi | 
| 5822 | if test -z "$ac_cpp_err"; then | 
| 5823 | : | 
| 5824 | else | 
| 5825 | echo "$as_me: failed program was:" >&5 | 
| 5826 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 5827 |  | 
| 5828 | # Broken: fails on valid input. | 
| 5829 | continue | 
| 5830 | fi | 
| 5831 | rm -f conftest.err conftest.$ac_ext | 
| 5832 |  | 
| 5833 | # OK, works on sane cases.  Now check whether non-existent headers | 
| 5834 | # can be detected and how. | 
| 5835 | cat >conftest.$ac_ext <<_ACEOF | 
| 5836 | #line $LINENO "configure" | 
| 5837 | /* confdefs.h.  */ | 
| 5838 | _ACEOF | 
| 5839 | cat confdefs.h >>conftest.$ac_ext | 
| 5840 | cat >>conftest.$ac_ext <<_ACEOF | 
| 5841 | /* end confdefs.h.  */ | 
| 5842 | #include <ac_nonexistent.h> | 
| 5843 | _ACEOF | 
| 5844 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
| 5845 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
| 5846 | ac_status=$? | 
| 5847 | grep -v '^ *+' conftest.er1 >conftest.err | 
| 5848 | rm -f conftest.er1 | 
| 5849 | cat conftest.err >&5 | 
| 5850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 5851 | (exit $ac_status); } >/dev/null; then | 
| 5852 | if test -s conftest.err; then | 
| 5853 | ac_cpp_err=$ac_c_preproc_warn_flag | 
| 5854 | else | 
| 5855 | ac_cpp_err= | 
| 5856 | fi | 
| 5857 | else | 
| 5858 | ac_cpp_err=yes | 
| 5859 | fi | 
| 5860 | if test -z "$ac_cpp_err"; then | 
| 5861 | # Broken: success on invalid input. | 
| 5862 | continue | 
| 5863 | else | 
| 5864 | echo "$as_me: failed program was:" >&5 | 
| 5865 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 5866 |  | 
| 5867 | # Passes both tests. | 
| 5868 | ac_preproc_ok=: | 
| 5869 | break | 
| 5870 | fi | 
| 5871 | rm -f conftest.err conftest.$ac_ext | 
| 5872 |  | 
| 5873 | done | 
| 5874 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| 5875 | rm -f conftest.err conftest.$ac_ext | 
| 5876 | if $ac_preproc_ok; then | 
| 5877 | : | 
| 5878 | else | 
| 5879 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | 
| 5880 | See \`config.log' for more details." >&5 | 
| 5881 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | 
| 5882 | See \`config.log' for more details." >&2;} | 
| 5883 | { (exit 1); exit 1; }; } | 
| 5884 | fi | 
| 5885 |  | 
| 5886 | ac_ext=c | 
| 5887 | ac_cpp='$CPP $CPPFLAGS' | 
| 5888 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 5889 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 5890 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 5891 |  | 
| 5892 |  | 
| 5893 | echo "$as_me:$LINENO: checking for egrep" >&5 | 
| 5894 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | 
| 5895 | if test "${ac_cv_prog_egrep+set}" = set; then | 
| 5896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 5897 | else | 
| 5898 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | 
| 5899 | then ac_cv_prog_egrep='grep -E' | 
| 5900 | else ac_cv_prog_egrep='egrep' | 
| 5901 | fi | 
| 5902 | fi | 
| 5903 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | 
| 5904 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | 
| 5905 | EGREP=$ac_cv_prog_egrep | 
| 5906 |  | 
| 5907 |  | 
| 5908 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | 
| 5909 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | 
| 5910 | if test "${ac_cv_header_stdc+set}" = set; then | 
| 5911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 5912 | else | 
| 5913 | cat >conftest.$ac_ext <<_ACEOF | 
| 5914 | #line $LINENO "configure" | 
| 5915 | /* confdefs.h.  */ | 
| 5916 | _ACEOF | 
| 5917 | cat confdefs.h >>conftest.$ac_ext | 
| 5918 | cat >>conftest.$ac_ext <<_ACEOF | 
| 5919 | /* end confdefs.h.  */ | 
| 5920 | #include <stdlib.h> | 
| 5921 | #include <stdarg.h> | 
| 5922 | #include <string.h> | 
| 5923 | #include <float.h> | 
| 5924 |  | 
| 5925 | int | 
| 5926 | main () | 
| 5927 | { | 
| 5928 |  | 
| 5929 | ; | 
| 5930 | return 0; | 
| 5931 | } | 
| 5932 | _ACEOF | 
| 5933 | rm -f conftest.$ac_objext | 
| 5934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 5935 | (eval $ac_compile) 2>&5 | 
| 5936 | ac_status=$? | 
| 5937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 5938 | (exit $ac_status); } && | 
| 5939 | { ac_try='test -s conftest.$ac_objext' | 
| 5940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 5941 | (eval $ac_try) 2>&5 | 
| 5942 | ac_status=$? | 
| 5943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 5944 | (exit $ac_status); }; }; then | 
| 5945 | ac_cv_header_stdc=yes | 
| 5946 | else | 
| 5947 | echo "$as_me: failed program was:" >&5 | 
| 5948 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 5949 |  | 
| 5950 | ac_cv_header_stdc=no | 
| 5951 | fi | 
| 5952 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 5953 |  | 
| 5954 | if test $ac_cv_header_stdc = yes; then | 
| 5955 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| 5956 | cat >conftest.$ac_ext <<_ACEOF | 
| 5957 | #line $LINENO "configure" | 
| 5958 | /* confdefs.h.  */ | 
| 5959 | _ACEOF | 
| 5960 | cat confdefs.h >>conftest.$ac_ext | 
| 5961 | cat >>conftest.$ac_ext <<_ACEOF | 
| 5962 | /* end confdefs.h.  */ | 
| 5963 | #include <string.h> | 
| 5964 |  | 
| 5965 | _ACEOF | 
| 5966 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| 5967 | $EGREP "memchr" >/dev/null 2>&1; then | 
| 5968 | : | 
| 5969 | else | 
| 5970 | ac_cv_header_stdc=no | 
| 5971 | fi | 
| 5972 | rm -f conftest* | 
| 5973 |  | 
| 5974 | fi | 
| 5975 |  | 
| 5976 | if test $ac_cv_header_stdc = yes; then | 
| 5977 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| 5978 | cat >conftest.$ac_ext <<_ACEOF | 
| 5979 | #line $LINENO "configure" | 
| 5980 | /* confdefs.h.  */ | 
| 5981 | _ACEOF | 
| 5982 | cat confdefs.h >>conftest.$ac_ext | 
| 5983 | cat >>conftest.$ac_ext <<_ACEOF | 
| 5984 | /* end confdefs.h.  */ | 
| 5985 | #include <stdlib.h> | 
| 5986 |  | 
| 5987 | _ACEOF | 
| 5988 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| 5989 | $EGREP "free" >/dev/null 2>&1; then | 
| 5990 | : | 
| 5991 | else | 
| 5992 | ac_cv_header_stdc=no | 
| 5993 | fi | 
| 5994 | rm -f conftest* | 
| 5995 |  | 
| 5996 | fi | 
| 5997 |  | 
| 5998 | if test $ac_cv_header_stdc = yes; then | 
| 5999 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
| 6000 | if test "$cross_compiling" = yes; then | 
| 6001 | : | 
| 6002 | else | 
| 6003 | cat >conftest.$ac_ext <<_ACEOF | 
| 6004 | #line $LINENO "configure" | 
| 6005 | /* confdefs.h.  */ | 
| 6006 | _ACEOF | 
| 6007 | cat confdefs.h >>conftest.$ac_ext | 
| 6008 | cat >>conftest.$ac_ext <<_ACEOF | 
| 6009 | /* end confdefs.h.  */ | 
| 6010 | #include <ctype.h> | 
| 6011 | #if ((' ' & 0x0FF) == 0x020) | 
| 6012 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
| 6013 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
| 6014 | #else | 
| 6015 | # define ISLOWER(c) \ | 
| 6016 | (('a' <= (c) && (c) <= 'i') \ | 
| 6017 | || ('j' <= (c) && (c) <= 'r') \ | 
| 6018 | || ('s' <= (c) && (c) <= 'z')) | 
| 6019 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
| 6020 | #endif | 
| 6021 |  | 
| 6022 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
| 6023 | int | 
| 6024 | main () | 
| 6025 | { | 
| 6026 | int i; | 
| 6027 | for (i = 0; i < 256; i++) | 
| 6028 | if (XOR (islower (i), ISLOWER (i)) | 
| 6029 | || toupper (i) != TOUPPER (i)) | 
| 6030 | exit(2); | 
| 6031 | exit (0); | 
| 6032 | } | 
| 6033 | _ACEOF | 
| 6034 | rm -f conftest$ac_exeext | 
| 6035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| 6036 | (eval $ac_link) 2>&5 | 
| 6037 | ac_status=$? | 
| 6038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6039 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | 
| 6040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6041 | (eval $ac_try) 2>&5 | 
| 6042 | ac_status=$? | 
| 6043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6044 | (exit $ac_status); }; }; then | 
| 6045 | : | 
| 6046 | else | 
| 6047 | echo "$as_me: program exited with status $ac_status" >&5 | 
| 6048 | echo "$as_me: failed program was:" >&5 | 
| 6049 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6050 |  | 
| 6051 | ( exit $ac_status ) | 
| 6052 | ac_cv_header_stdc=no | 
| 6053 | fi | 
| 6054 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 
| 6055 | fi | 
| 6056 | fi | 
| 6057 | fi | 
| 6058 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | 
| 6059 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | 
| 6060 | if test $ac_cv_header_stdc = yes; then | 
| 6061 |  | 
| 6062 | cat >>confdefs.h <<\_ACEOF | 
| 6063 | #define STDC_HEADERS 1 | 
| 6064 | _ACEOF | 
| 6065 |  | 
| 6066 | fi | 
| 6067 |  | 
| 6068 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
| 6069 |  | 
| 6070 |  | 
| 6071 |  | 
| 6072 |  | 
| 6073 |  | 
| 6074 |  | 
| 6075 |  | 
| 6076 |  | 
| 6077 |  | 
| 6078 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
| 6079 | inttypes.h stdint.h unistd.h | 
| 6080 | do | 
| 6081 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| 6082 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | 
| 6083 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | 
| 6084 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | 
| 6085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 6086 | else | 
| 6087 | cat >conftest.$ac_ext <<_ACEOF | 
| 6088 | #line $LINENO "configure" | 
| 6089 | /* confdefs.h.  */ | 
| 6090 | _ACEOF | 
| 6091 | cat confdefs.h >>conftest.$ac_ext | 
| 6092 | cat >>conftest.$ac_ext <<_ACEOF | 
| 6093 | /* end confdefs.h.  */ | 
| 6094 | $ac_includes_default | 
| 6095 |  | 
| 6096 | #include <$ac_header> | 
| 6097 | _ACEOF | 
| 6098 | rm -f conftest.$ac_objext | 
| 6099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 6100 | (eval $ac_compile) 2>&5 | 
| 6101 | ac_status=$? | 
| 6102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6103 | (exit $ac_status); } && | 
| 6104 | { ac_try='test -s conftest.$ac_objext' | 
| 6105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6106 | (eval $ac_try) 2>&5 | 
| 6107 | ac_status=$? | 
| 6108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6109 | (exit $ac_status); }; }; then | 
| 6110 | eval "$as_ac_Header=yes" | 
| 6111 | else | 
| 6112 | echo "$as_me: failed program was:" >&5 | 
| 6113 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6114 |  | 
| 6115 | eval "$as_ac_Header=no" | 
| 6116 | fi | 
| 6117 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 6118 | fi | 
| 6119 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | 
| 6120 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | 
| 6121 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | 
| 6122 | cat >>confdefs.h <<_ACEOF | 
| 6123 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
| 6124 | _ACEOF | 
| 6125 |  | 
| 6126 | fi | 
| 6127 |  | 
| 6128 | done | 
| 6129 |  | 
| 6130 |  | 
| 6131 |  | 
| 6132 |  | 
| 6133 |  | 
| 6134 | # Check whether --with-sprng-prefix or --without-sprng-prefix was given. | 
| 6135 | if test "${with_sprng_prefix+set}" = set; then | 
| 6136 | withval="$with_sprng_prefix" | 
| 6137 | sprng_prefix="$withval" | 
| 6138 | else | 
| 6139 | sprng_prefix="/usr/local" | 
| 6140 | fi; | 
| 6141 |  | 
| 6142 | # Check whether --with-sprng-lib-prefix or --without-sprng-lib-prefix was given. | 
| 6143 | if test "${with_sprng_lib_prefix+set}" = set; then | 
| 6144 | withval="$with_sprng_lib_prefix" | 
| 6145 | sprng_lib_prefix="$withval" | 
| 6146 | else | 
| 6147 | sprng_lib_prefix="/usr/local/lib" | 
| 6148 | fi; | 
| 6149 |  | 
| 6150 | # Check whether --with-sprng-include-prefix or --without-sprng-include-prefix was given. | 
| 6151 | if test "${with_sprng_include_prefix+set}" = set; then | 
| 6152 | withval="$with_sprng_include_prefix" | 
| 6153 | sprng_include_prefix="$withval" | 
| 6154 | else | 
| 6155 | sprng_include_prefix="/usr/local/include/sprng" | 
| 6156 | fi; | 
| 6157 |  | 
| 6158 | if test x$sprng_lib_prefix = x ; then | 
| 6159 | sprng_lib_prefix=${sprng_prefix}/lib | 
| 6160 | fi | 
| 6161 |  | 
| 6162 | if test x$sprng_include_prefix = x ; then | 
| 6163 | sprng_include_prefix=${sprng_prefix}/include | 
| 6164 | fi | 
| 6165 |  | 
| 6166 | echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include_prefix" >&5 | 
| 6167 | echo $ECHO_N "checking for SPRNG include files in $sprng_include_prefix... $ECHO_C" >&6 | 
| 6168 | if test -f ${sprng_include_prefix}/sprng.h; then | 
| 6169 | have_sprngincl=yes | 
| 6170 | echo "$as_me:$LINENO: result: yes" >&5 | 
| 6171 | echo "${ECHO_T}yes" >&6 | 
| 6172 | else | 
| 6173 | have_sprngincl=no | 
| 6174 | echo "$as_me:$LINENO: result: no" >&5 | 
| 6175 | echo "${ECHO_T}no" >&6 | 
| 6176 | { { echo "$as_me:$LINENO: error: Could not locate the SPRNG include files" >&5 | 
| 6177 | echo "$as_me: error: Could not locate the SPRNG include files" >&2;} | 
| 6178 | { (exit 1); exit 1; }; } | 
| 6179 | fi | 
| 6180 |  | 
| 6181 | echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_lib_prefix" >&5 | 
| 6182 | echo $ECHO_N "checking for SPRNG libraries in $sprng_lib_prefix... $ECHO_C" >&6 | 
| 6183 | if test -f ${sprng_lib_prefix}/libsprng.a; then | 
| 6184 | have_sprnglib=yes | 
| 6185 | echo "$as_me:$LINENO: result: yes" >&5 | 
| 6186 | echo "${ECHO_T}yes" >&6 | 
| 6187 | else | 
| 6188 | have_sprnglib=no | 
| 6189 | echo "$as_me:$LINENO: result: no" >&5 | 
| 6190 | echo "${ECHO_T}no" >&6 | 
| 6191 | { { echo "$as_me:$LINENO: error: Could not locate the SPRNG libraries" >&5 | 
| 6192 | echo "$as_me: error: Could not locate the SPRNG libraries" >&2;} | 
| 6193 | { (exit 1); exit 1; }; } | 
| 6194 | fi | 
| 6195 |  | 
| 6196 |  | 
| 6197 |  | 
| 6198 | ac_ext=c | 
| 6199 | ac_cpp='$CPP $CPPFLAGS' | 
| 6200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 6201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 6202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 6203 |  | 
| 6204 | ac_save_CPPFLAGS=$CPPFLAGS | 
| 6205 | CPPFLAGS="${CPPFLAGS} -I${sprng_include_prefix}" | 
| 6206 | ac_save_LDFLAGS=$LDFLAGS | 
| 6207 | LDFLAGS="${LDFLAGS} -L${sprng_lib_prefix} -lsprng" | 
| 6208 | if test "${ac_cv_header_sprng_h+set}" = set; then | 
| 6209 | echo "$as_me:$LINENO: checking for sprng.h" >&5 | 
| 6210 | echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6 | 
| 6211 | if test "${ac_cv_header_sprng_h+set}" = set; then | 
| 6212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 6213 | fi | 
| 6214 | echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5 | 
| 6215 | echo "${ECHO_T}$ac_cv_header_sprng_h" >&6 | 
| 6216 | else | 
| 6217 | # Is the header compilable? | 
| 6218 | echo "$as_me:$LINENO: checking sprng.h usability" >&5 | 
| 6219 | echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6 | 
| 6220 | cat >conftest.$ac_ext <<_ACEOF | 
| 6221 | #line $LINENO "configure" | 
| 6222 | /* confdefs.h.  */ | 
| 6223 | _ACEOF | 
| 6224 | cat confdefs.h >>conftest.$ac_ext | 
| 6225 | cat >>conftest.$ac_ext <<_ACEOF | 
| 6226 | /* end confdefs.h.  */ | 
| 6227 | $ac_includes_default | 
| 6228 | #include <sprng.h> | 
| 6229 | _ACEOF | 
| 6230 | rm -f conftest.$ac_objext | 
| 6231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 6232 | (eval $ac_compile) 2>&5 | 
| 6233 | ac_status=$? | 
| 6234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6235 | (exit $ac_status); } && | 
| 6236 | { ac_try='test -s conftest.$ac_objext' | 
| 6237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6238 | (eval $ac_try) 2>&5 | 
| 6239 | ac_status=$? | 
| 6240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6241 | (exit $ac_status); }; }; then | 
| 6242 | ac_header_compiler=yes | 
| 6243 | else | 
| 6244 | echo "$as_me: failed program was:" >&5 | 
| 6245 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6246 |  | 
| 6247 | ac_header_compiler=no | 
| 6248 | fi | 
| 6249 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 6250 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
| 6251 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
| 6252 |  | 
| 6253 | # Is the header present? | 
| 6254 | echo "$as_me:$LINENO: checking sprng.h presence" >&5 | 
| 6255 | echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6 | 
| 6256 | cat >conftest.$ac_ext <<_ACEOF | 
| 6257 | #line $LINENO "configure" | 
| 6258 | /* confdefs.h.  */ | 
| 6259 | _ACEOF | 
| 6260 | cat confdefs.h >>conftest.$ac_ext | 
| 6261 | cat >>conftest.$ac_ext <<_ACEOF | 
| 6262 | /* end confdefs.h.  */ | 
| 6263 | #include <sprng.h> | 
| 6264 | _ACEOF | 
| 6265 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
| 6266 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
| 6267 | ac_status=$? | 
| 6268 | grep -v '^ *+' conftest.er1 >conftest.err | 
| 6269 | rm -f conftest.er1 | 
| 6270 | cat conftest.err >&5 | 
| 6271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6272 | (exit $ac_status); } >/dev/null; then | 
| 6273 | if test -s conftest.err; then | 
| 6274 | ac_cpp_err=$ac_c_preproc_warn_flag | 
| 6275 | else | 
| 6276 | ac_cpp_err= | 
| 6277 | fi | 
| 6278 | else | 
| 6279 | ac_cpp_err=yes | 
| 6280 | fi | 
| 6281 | if test -z "$ac_cpp_err"; then | 
| 6282 | ac_header_preproc=yes | 
| 6283 | else | 
| 6284 | echo "$as_me: failed program was:" >&5 | 
| 6285 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6286 |  | 
| 6287 | ac_header_preproc=no | 
| 6288 | fi | 
| 6289 | rm -f conftest.err conftest.$ac_ext | 
| 6290 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
| 6291 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
| 6292 |  | 
| 6293 | # So?  What about this header? | 
| 6294 | case $ac_header_compiler:$ac_header_preproc in | 
| 6295 | yes:no ) | 
| 6296 | { echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5 | 
| 6297 | echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
| 6298 | { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5 | 
| 6299 | echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;} | 
| 6300 | ( | 
| 6301 | cat <<\_ASBOX | 
| 6302 | ## ------------------------------------ ## | 
| 6303 | ## Report this to bug-autoconf@gnu.org. ## | 
| 6304 | ## ------------------------------------ ## | 
| 6305 | _ASBOX | 
| 6306 | ) | | 
| 6307 | sed "s/^/$as_me: WARNING:     /" >&2 | 
| 6308 | ;; | 
| 6309 | no:yes ) | 
| 6310 | { echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5 | 
| 6311 | echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;} | 
| 6312 | { echo "$as_me:$LINENO: WARNING: sprng.h: check for missing prerequisite headers?" >&5 | 
| 6313 | echo "$as_me: WARNING: sprng.h: check for missing prerequisite headers?" >&2;} | 
| 6314 | { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5 | 
| 6315 | echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;} | 
| 6316 | ( | 
| 6317 | cat <<\_ASBOX | 
| 6318 | ## ------------------------------------ ## | 
| 6319 | ## Report this to bug-autoconf@gnu.org. ## | 
| 6320 | ## ------------------------------------ ## | 
| 6321 | _ASBOX | 
| 6322 | ) | | 
| 6323 | sed "s/^/$as_me: WARNING:     /" >&2 | 
| 6324 | ;; | 
| 6325 | esac | 
| 6326 | echo "$as_me:$LINENO: checking for sprng.h" >&5 | 
| 6327 | echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6 | 
| 6328 | if test "${ac_cv_header_sprng_h+set}" = set; then | 
| 6329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 6330 | else | 
| 6331 | ac_cv_header_sprng_h=$ac_header_preproc | 
| 6332 | fi | 
| 6333 | echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5 | 
| 6334 | echo "${ECHO_T}$ac_cv_header_sprng_h" >&6 | 
| 6335 |  | 
| 6336 | fi | 
| 6337 | if test $ac_cv_header_sprng_h = yes; then | 
| 6338 |  | 
| 6339 | echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5 | 
| 6340 | echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6 | 
| 6341 | if test "${ac_cv_lib_sprng_init_rng+set}" = set; then | 
| 6342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 6343 | else | 
| 6344 | ac_check_lib_save_LIBS=$LIBS | 
| 6345 | LIBS="-lsprng  $LIBS" | 
| 6346 | cat >conftest.$ac_ext <<_ACEOF | 
| 6347 | #line $LINENO "configure" | 
| 6348 | /* confdefs.h.  */ | 
| 6349 | _ACEOF | 
| 6350 | cat confdefs.h >>conftest.$ac_ext | 
| 6351 | cat >>conftest.$ac_ext <<_ACEOF | 
| 6352 | /* end confdefs.h.  */ | 
| 6353 |  | 
| 6354 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| 6355 | #ifdef __cplusplus | 
| 6356 | extern "C" | 
| 6357 | #endif | 
| 6358 | /* We use char because int might match the return type of a gcc2 | 
| 6359 | builtin and then its argument prototype would still apply.  */ | 
| 6360 | char init_rng (); | 
| 6361 | int | 
| 6362 | main () | 
| 6363 | { | 
| 6364 | init_rng (); | 
| 6365 | ; | 
| 6366 | return 0; | 
| 6367 | } | 
| 6368 | _ACEOF | 
| 6369 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| 6370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| 6371 | (eval $ac_link) 2>&5 | 
| 6372 | ac_status=$? | 
| 6373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6374 | (exit $ac_status); } && | 
| 6375 | { ac_try='test -s conftest$ac_exeext' | 
| 6376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6377 | (eval $ac_try) 2>&5 | 
| 6378 | ac_status=$? | 
| 6379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6380 | (exit $ac_status); }; }; then | 
| 6381 | ac_cv_lib_sprng_init_rng=yes | 
| 6382 | else | 
| 6383 | echo "$as_me: failed program was:" >&5 | 
| 6384 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6385 |  | 
| 6386 | ac_cv_lib_sprng_init_rng=no | 
| 6387 | fi | 
| 6388 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
| 6389 | LIBS=$ac_check_lib_save_LIBS | 
| 6390 | fi | 
| 6391 | echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5 | 
| 6392 | echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6 | 
| 6393 | if test $ac_cv_lib_sprng_init_rng = yes; then | 
| 6394 | SPRNG_LIBDIR="${sprng_lib_prefix}" | 
| 6395 | SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include_prefix}" | 
| 6396 | HAVE_SPRNG="yes" | 
| 6397 | fi | 
| 6398 |  | 
| 6399 | fi | 
| 6400 |  | 
| 6401 |  | 
| 6402 | CPPFLAGS=$ac_save_CPPFLAGS | 
| 6403 | LDFLAGS=$ac_save_LDFLAGS | 
| 6404 | ac_ext=f90 | 
| 6405 | ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' | 
| 6406 | ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 6407 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu | 
| 6408 |  | 
| 6409 |  | 
| 6410 | if test x_$HAVE_SPRNG != x_yes; then | 
| 6411 | { { echo "$as_me:$LINENO: error: Can't build with SPRNG" >&5 | 
| 6412 | echo "$as_me: error: Can't build with SPRNG" >&2;} | 
| 6413 | { (exit 1); exit 1; }; } | 
| 6414 | fi | 
| 6415 |  | 
| 6416 |  | 
| 6417 |  | 
| 6418 |  | 
| 6419 |  | 
| 6420 | echo "$as_me:$LINENO: checking if MKL is wanted" >&5 | 
| 6421 | echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6 | 
| 6422 |  | 
| 6423 | # Check whether --with-mkl or --without-mkl was given. | 
| 6424 | if test "${with_mkl+set}" = set; then | 
| 6425 | withval="$with_mkl" | 
| 6426 | echo "$as_me:$LINENO: result: yes" >&5 | 
| 6427 | echo "${ECHO_T}yes" >&6 | 
| 6428 | for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do | 
| 6429 | mkldir="$dir" | 
| 6430 | if test -f "$dir/include/mkl.h"; then | 
| 6431 | found_mkl="yes"; | 
| 6432 | break; | 
| 6433 | fi | 
| 6434 | done | 
| 6435 | if test x_$found_mkl != x_yes; then | 
| 6436 | { { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5 | 
| 6437 | echo "$as_me: error: Cannot find MKL includes" >&2;} | 
| 6438 | { (exit 1); exit 1; }; } | 
| 6439 | else | 
| 6440 | printf "MKL includes found in $mkldir/include\n"; | 
| 6441 | fi | 
| 6442 |  | 
| 6443 |  | 
| 6444 |  | 
| 6445 | ac_ext=c | 
| 6446 | ac_cpp='$CPP $CPPFLAGS' | 
| 6447 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
| 6448 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 6449 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| 6450 |  | 
| 6451 | ac_save_CPPFLAGS=$CPPFLAGS | 
| 6452 | CPPFLAGS="${CPPFLAGS} -I${mkldir}/include" | 
| 6453 | ac_save_LDFLAGS=$LDFLAGS | 
| 6454 | LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide" | 
| 6455 | if test "${ac_cv_header_mkl_h+set}" = set; then | 
| 6456 | echo "$as_me:$LINENO: checking for mkl.h" >&5 | 
| 6457 | echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6 | 
| 6458 | if test "${ac_cv_header_mkl_h+set}" = set; then | 
| 6459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 6460 | fi | 
| 6461 | echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5 | 
| 6462 | echo "${ECHO_T}$ac_cv_header_mkl_h" >&6 | 
| 6463 | else | 
| 6464 | # Is the header compilable? | 
| 6465 | echo "$as_me:$LINENO: checking mkl.h usability" >&5 | 
| 6466 | echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6 | 
| 6467 | cat >conftest.$ac_ext <<_ACEOF | 
| 6468 | #line $LINENO "configure" | 
| 6469 | /* confdefs.h.  */ | 
| 6470 | _ACEOF | 
| 6471 | cat confdefs.h >>conftest.$ac_ext | 
| 6472 | cat >>conftest.$ac_ext <<_ACEOF | 
| 6473 | /* end confdefs.h.  */ | 
| 6474 | $ac_includes_default | 
| 6475 | #include <mkl.h> | 
| 6476 | _ACEOF | 
| 6477 | rm -f conftest.$ac_objext | 
| 6478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 6479 | (eval $ac_compile) 2>&5 | 
| 6480 | ac_status=$? | 
| 6481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6482 | (exit $ac_status); } && | 
| 6483 | { ac_try='test -s conftest.$ac_objext' | 
| 6484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6485 | (eval $ac_try) 2>&5 | 
| 6486 | ac_status=$? | 
| 6487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6488 | (exit $ac_status); }; }; then | 
| 6489 | ac_header_compiler=yes | 
| 6490 | else | 
| 6491 | echo "$as_me: failed program was:" >&5 | 
| 6492 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6493 |  | 
| 6494 | ac_header_compiler=no | 
| 6495 | fi | 
| 6496 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 6497 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | 
| 6498 | echo "${ECHO_T}$ac_header_compiler" >&6 | 
| 6499 |  | 
| 6500 | # Is the header present? | 
| 6501 | echo "$as_me:$LINENO: checking mkl.h presence" >&5 | 
| 6502 | echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6 | 
| 6503 | cat >conftest.$ac_ext <<_ACEOF | 
| 6504 | #line $LINENO "configure" | 
| 6505 | /* confdefs.h.  */ | 
| 6506 | _ACEOF | 
| 6507 | cat confdefs.h >>conftest.$ac_ext | 
| 6508 | cat >>conftest.$ac_ext <<_ACEOF | 
| 6509 | /* end confdefs.h.  */ | 
| 6510 | #include <mkl.h> | 
| 6511 | _ACEOF | 
| 6512 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | 
| 6513 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | 
| 6514 | ac_status=$? | 
| 6515 | grep -v '^ *+' conftest.er1 >conftest.err | 
| 6516 | rm -f conftest.er1 | 
| 6517 | cat conftest.err >&5 | 
| 6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6519 | (exit $ac_status); } >/dev/null; then | 
| 6520 | if test -s conftest.err; then | 
| 6521 | ac_cpp_err=$ac_c_preproc_warn_flag | 
| 6522 | else | 
| 6523 | ac_cpp_err= | 
| 6524 | fi | 
| 6525 | else | 
| 6526 | ac_cpp_err=yes | 
| 6527 | fi | 
| 6528 | if test -z "$ac_cpp_err"; then | 
| 6529 | ac_header_preproc=yes | 
| 6530 | else | 
| 6531 | echo "$as_me: failed program was:" >&5 | 
| 6532 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6533 |  | 
| 6534 | ac_header_preproc=no | 
| 6535 | fi | 
| 6536 | rm -f conftest.err conftest.$ac_ext | 
| 6537 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | 
| 6538 | echo "${ECHO_T}$ac_header_preproc" >&6 | 
| 6539 |  | 
| 6540 | # So?  What about this header? | 
| 6541 | case $ac_header_compiler:$ac_header_preproc in | 
| 6542 | yes:no ) | 
| 6543 | { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | 
| 6544 | echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
| 6545 | { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5 | 
| 6546 | echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;} | 
| 6547 | ( | 
| 6548 | cat <<\_ASBOX | 
| 6549 | ## ------------------------------------ ## | 
| 6550 | ## Report this to bug-autoconf@gnu.org. ## | 
| 6551 | ## ------------------------------------ ## | 
| 6552 | _ASBOX | 
| 6553 | ) | | 
| 6554 | sed "s/^/$as_me: WARNING:     /" >&2 | 
| 6555 | ;; | 
| 6556 | no:yes ) | 
| 6557 | { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5 | 
| 6558 | echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;} | 
| 6559 | { echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5 | 
| 6560 | echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;} | 
| 6561 | { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5 | 
| 6562 | echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;} | 
| 6563 | ( | 
| 6564 | cat <<\_ASBOX | 
| 6565 | ## ------------------------------------ ## | 
| 6566 | ## Report this to bug-autoconf@gnu.org. ## | 
| 6567 | ## ------------------------------------ ## | 
| 6568 | _ASBOX | 
| 6569 | ) | | 
| 6570 | sed "s/^/$as_me: WARNING:     /" >&2 | 
| 6571 | ;; | 
| 6572 | esac | 
| 6573 | echo "$as_me:$LINENO: checking for mkl.h" >&5 | 
| 6574 | echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6 | 
| 6575 | if test "${ac_cv_header_mkl_h+set}" = set; then | 
| 6576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 6577 | else | 
| 6578 | ac_cv_header_mkl_h=$ac_header_preproc | 
| 6579 | fi | 
| 6580 | echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5 | 
| 6581 | echo "${ECHO_T}$ac_cv_header_mkl_h" >&6 | 
| 6582 |  | 
| 6583 | fi | 
| 6584 | if test $ac_cv_header_mkl_h = yes; then | 
| 6585 |  | 
| 6586 | echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5 | 
| 6587 | echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6 | 
| 6588 | if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then | 
| 6589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 6590 | else | 
| 6591 | ac_check_lib_save_LIBS=$LIBS | 
| 6592 | LIBS="-lmkl  $LIBS" | 
| 6593 | cat >conftest.$ac_ext <<_ACEOF | 
| 6594 | #line $LINENO "configure" | 
| 6595 | /* confdefs.h.  */ | 
| 6596 | _ACEOF | 
| 6597 | cat confdefs.h >>conftest.$ac_ext | 
| 6598 | cat >>conftest.$ac_ext <<_ACEOF | 
| 6599 | /* end confdefs.h.  */ | 
| 6600 |  | 
| 6601 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| 6602 | #ifdef __cplusplus | 
| 6603 | extern "C" | 
| 6604 | #endif | 
| 6605 | /* We use char because int might match the return type of a gcc2 | 
| 6606 | builtin and then its argument prototype would still apply.  */ | 
| 6607 | char vslNewStream (); | 
| 6608 | int | 
| 6609 | main () | 
| 6610 | { | 
| 6611 | vslNewStream (); | 
| 6612 | ; | 
| 6613 | return 0; | 
| 6614 | } | 
| 6615 | _ACEOF | 
| 6616 | rm -f conftest.$ac_objext conftest$ac_exeext | 
| 6617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| 6618 | (eval $ac_link) 2>&5 | 
| 6619 | ac_status=$? | 
| 6620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6621 | (exit $ac_status); } && | 
| 6622 | { ac_try='test -s conftest$ac_exeext' | 
| 6623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6624 | (eval $ac_try) 2>&5 | 
| 6625 | ac_status=$? | 
| 6626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6627 | (exit $ac_status); }; }; then | 
| 6628 | ac_cv_lib_mkl_vslNewStream=yes | 
| 6629 | else | 
| 6630 | echo "$as_me: failed program was:" >&5 | 
| 6631 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6632 |  | 
| 6633 | ac_cv_lib_mkl_vslNewStream=no | 
| 6634 | fi | 
| 6635 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 
| 6636 | LIBS=$ac_check_lib_save_LIBS | 
| 6637 | fi | 
| 6638 | echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5 | 
| 6639 | echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6 | 
| 6640 | if test $ac_cv_lib_mkl_vslNewStream = yes; then | 
| 6641 | MKL_LIBDIR="${mkldir}/lib/32", | 
| 6642 | MKL_LIB="-lmkl -lvml -lguide", | 
| 6643 | HAVE_MKL="yes" | 
| 6644 | fi | 
| 6645 |  | 
| 6646 |  | 
| 6647 | else | 
| 6648 | MKL_INC="-I${mkldir}/include" | 
| 6649 | fi | 
| 6650 |  | 
| 6651 |  | 
| 6652 | CPPFLAGS=$ac_save_CPPFLAGS | 
| 6653 | LDFLAGS=$ac_save_LDFLAGS | 
| 6654 | ac_ext=f90 | 
| 6655 | ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' | 
| 6656 | ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 6657 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu | 
| 6658 |  | 
| 6659 |  | 
| 6660 | if test x_$HAVE_MKL != x_yes; then | 
| 6661 | { { echo "$as_me:$LINENO: error: Can't build with MKL" >&5 | 
| 6662 | echo "$as_me: error: Can't build with MKL" >&2;} | 
| 6663 | { (exit 1); exit 1; }; } | 
| 6664 | fi | 
| 6665 |  | 
| 6666 |  | 
| 6667 |  | 
| 6668 |  | 
| 6669 |  | 
| 6670 | else | 
| 6671 |  | 
| 6672 | echo "$as_me:$LINENO: result: no" >&5 | 
| 6673 | echo "${ECHO_T}no" >&6 | 
| 6674 |  | 
| 6675 | fi; | 
| 6676 |  | 
| 6677 |  | 
| 6678 |  | 
| 6679 |  | 
| 6680 | # Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given. | 
| 6681 | if test "${with_mpi_f90_mods+set}" = set; then | 
| 6682 | withval="$with_mpi_f90_mods" | 
| 6683 | mpi_f90_mods="$withval" | 
| 6684 | else | 
| 6685 | mpi_f90_mods="/usr/local/include/f90choice" | 
| 6686 | fi; | 
| 6687 |  | 
| 6688 | echo "$as_me:$LINENO: checking for MPI F90 modules" >&5 | 
| 6689 | echo $ECHO_N "checking for MPI F90 modules... $ECHO_C" >&6 | 
| 6690 |  | 
| 6691 |  | 
| 6692 | ac_ext=f90 | 
| 6693 | ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' | 
| 6694 | ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 6695 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu | 
| 6696 |  | 
| 6697 | ac_save_F90FLAGS=$F90FLAGS | 
| 6698 | if test "$mpi_f90_mods"; then | 
| 6699 | F90FLAGS="${F90FLAGS} -I${mpi_f90_mods}" | 
| 6700 | fi | 
| 6701 |  | 
| 6702 | cat >conftest.$ac_ext <<_ACEOF | 
| 6703 |  | 
| 6704 |  | 
| 6705 | program main | 
| 6706 |  | 
| 6707 | use mpi | 
| 6708 | integer :: ierr | 
| 6709 | call MPI_Init(ierr) | 
| 6710 |  | 
| 6711 |  | 
| 6712 | end program main | 
| 6713 |  | 
| 6714 | _ACEOF | 
| 6715 | rm -f conftest.$ac_objext | 
| 6716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 
| 6717 | (eval $ac_compile) 2>&5 | 
| 6718 | ac_status=$? | 
| 6719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6720 | (exit $ac_status); } && | 
| 6721 | { ac_try='test -s conftest.$ac_objext' | 
| 6722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 6723 | (eval $ac_try) 2>&5 | 
| 6724 | ac_status=$? | 
| 6725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 6726 | (exit $ac_status); }; }; then | 
| 6727 | HAVE_MPI_MOD=1 | 
| 6728 | else | 
| 6729 | echo "$as_me: failed program was:" >&5 | 
| 6730 | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 6731 |  | 
| 6732 | HAVE_MPI_MOD=0 | 
| 6733 | fi | 
| 6734 | rm -f conftest.$ac_objext conftest.$ac_ext | 
| 6735 |  | 
| 6736 | F90FLAGS=$ac_save_F90FLAGS | 
| 6737 | ac_ext=f90 | 
| 6738 | ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' | 
| 6739 | ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
| 6740 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu | 
| 6741 |  | 
| 6742 |  | 
| 6743 | if test "$HAVE_MPI_MOD" = 1; then | 
| 6744 | echo "$as_me:$LINENO: result: yes" >&5 | 
| 6745 | echo "${ECHO_T}yes" >&6 | 
| 6746 |  | 
| 6747 | cat >>confdefs.h <<\_ACEOF | 
| 6748 | #define MPI_MOD 1 | 
| 6749 | _ACEOF | 
| 6750 |  | 
| 6751 | MPI_F90_MODS="-I${mpi_f90_mods}" | 
| 6752 |  | 
| 6753 | # The library name: | 
| 6754 | if test -z "$MPI_LIB" ; then | 
| 6755 | MPI_LIBNAME=-lmpich | 
| 6756 | else | 
| 6757 | MPI_LIBNAME="$MPI_LIB" | 
| 6758 | fi | 
| 6759 | if test -z "$MPIMODLIBNAME" ; then | 
| 6760 | MPIMODLIBNAME="${MPI_LIBNAME}f90" | 
| 6761 | fi | 
| 6762 |  | 
| 6763 | else | 
| 6764 | echo "$as_me:$LINENO: result: no" >&5 | 
| 6765 | echo "${ECHO_T}no" >&6 | 
| 6766 | { { echo "$as_me:$LINENO: error: Couldn't locate MPI F90 Modules" >&5 | 
| 6767 | echo "$as_me: error: Couldn't locate MPI F90 Modules" >&2;} | 
| 6768 | { (exit 1); exit 1; }; } | 
| 6769 | fi | 
| 6770 |  | 
| 6771 |  | 
| 6772 |  | 
| 6773 |  | 
| 6774 |  | 
| 6775 | OBJEXT=".$OBJEXT" | 
| 6776 |  | 
| 6777 | OOPSE=oopse | 
| 6778 |  | 
| 6779 | if test "x${prefix}" = "xNONE" | 
| 6780 | then | 
| 6781 | OOPSE_HOME=${ac_default_prefix}/oopse | 
| 6782 | else | 
| 6783 | OOPSE_HOME=${prefix}/oopse | 
| 6784 | fi | 
| 6785 | # Check whether --enable-oopse-home or --disable-oopse-home was given. | 
| 6786 | if test "${enable_oopse_home+set}" = set; then | 
| 6787 | enableval="$enable_oopse_home" | 
| 6788 | OOPSE_HOME="${enableval}" | 
| 6789 | fi; | 
| 6790 |  | 
| 6791 | case "x$INSTALL" in | 
| 6792 | x/*) ;; | 
| 6793 | *) INSTALL=`pwd`/ac-tools/"shtool install -c" ; | 
| 6794 | esac | 
| 6795 |  | 
| 6796 | MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f" | 
| 6797 |  | 
| 6798 | SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder" | 
| 6799 |  | 
| 6800 | #CFLAGS=${CFLAGS-""} | 
| 6801 | #CXXFLAGS=${CXXFLAGS-""} | 
| 6802 | #CPPFLAGS=${CPPFLAGS-""} | 
| 6803 | #FFLAGS=${FFLAGS-""} | 
| 6804 | #LDFLAGS=${LDFLAGS-""} | 
| 6805 | #OPTIMIZE=${OPTIMIZE-"-O"} | 
| 6806 | #DEBUG=${DEBUG-"-g"} | 
| 6807 |  | 
| 6808 | case $debug in | 
| 6809 | true) | 
| 6810 | CFLAGS="$DEBUG $CFLAGS" | 
| 6811 | CXXFLAGS="$DEBUG $CXXFLAGS" | 
| 6812 | FFLAGS="$DEBUG $FFLAGS" | 
| 6813 | F90FLAGS="$DEBUG $F90FLAGS" | 
| 6814 | ;; | 
| 6815 | *) | 
| 6816 | CFLAGS="$OPTIMIZE $CFLAGS" | 
| 6817 | CXXFLAGS="$OPTIMIZE $CXXFLAGS" | 
| 6818 | FFLAGS="$OPTIMIZE $FFLAGS" | 
| 6819 | F90FLAGS="$OPTIMIZE $F90FLAGS" | 
| 6820 | ;; | 
| 6821 | esac | 
| 6822 |  | 
| 6823 |  | 
| 6824 |  | 
| 6825 |  | 
| 6826 |  | 
| 6827 |  | 
| 6828 |  | 
| 6829 |  | 
| 6830 |  | 
| 6831 |  | 
| 6832 |  | 
| 6833 |  | 
| 6834 |  | 
| 6835 |  | 
| 6836 |  | 
| 6837 |  | 
| 6838 |  | 
| 6839 | ac_config_headers="$ac_config_headers libmdtools/config.h" | 
| 6840 |  | 
| 6841 | ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile" | 
| 6842 |  | 
| 6843 |  | 
| 6844 | cat >confcache <<\_ACEOF | 
| 6845 | # This file is a shell script that caches the results of configure | 
| 6846 | # tests run on this system so they can be shared between configure | 
| 6847 | # scripts and configure runs, see configure's option --config-cache. | 
| 6848 | # It is not useful on other systems.  If it contains results you don't | 
| 6849 | # want to keep, you may remove or edit it. | 
| 6850 | # | 
| 6851 | # config.status only pays attention to the cache file if you give it | 
| 6852 | # the --recheck option to rerun configure. | 
| 6853 | # | 
| 6854 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
| 6855 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
| 6856 | # following values. | 
| 6857 |  | 
| 6858 | _ACEOF | 
| 6859 |  | 
| 6860 | # The following way of writing the cache mishandles newlines in values, | 
| 6861 | # but we know of no workaround that is simple, portable, and efficient. | 
| 6862 | # So, don't put newlines in cache variables' values. | 
| 6863 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
| 6864 | # and sets the high bit in the cache file unless we assign to the vars. | 
| 6865 | { | 
| 6866 | (set) 2>&1 | | 
| 6867 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
| 6868 | *ac_space=\ *) | 
| 6869 | # `set' does not quote correctly, so add quotes (double-quote | 
| 6870 | # substitution turns \\\\ into \\, and sed turns \\ into \). | 
| 6871 | sed -n \ | 
| 6872 | "s/'/'\\\\''/g; | 
| 6873 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
| 6874 | ;; | 
| 6875 | *) | 
| 6876 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
| 6877 | sed -n \ | 
| 6878 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | 
| 6879 | ;; | 
| 6880 | esac; | 
| 6881 | } | | 
| 6882 | sed ' | 
| 6883 | t clear | 
| 6884 | : clear | 
| 6885 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
| 6886 | t end | 
| 6887 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
| 6888 | : end' >>confcache | 
| 6889 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | 
| 6890 | if test -w $cache_file; then | 
| 6891 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | 
| 6892 | cat confcache >$cache_file | 
| 6893 | else | 
| 6894 | echo "not updating unwritable cache $cache_file" | 
| 6895 | fi | 
| 6896 | fi | 
| 6897 | rm -f confcache | 
| 6898 |  | 
| 6899 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
| 6900 | # Let make expand exec_prefix. | 
| 6901 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| 6902 |  | 
| 6903 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | 
| 6904 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | 
| 6905 | # trailing colons and then remove the whole line if VPATH becomes empty | 
| 6906 | # (actually we leave an empty line to preserve line numbers). | 
| 6907 | if test "x$srcdir" = x.; then | 
| 6908 | ac_vpsub='/^[         ]*VPATH[        ]*=/{ | 
| 6909 | s/:*\$(srcdir):*/:/; | 
| 6910 | s/:*\${srcdir}:*/:/; | 
| 6911 | s/:*@srcdir@:*/:/; | 
| 6912 | s/^\([^=]*=[    ]*\):*/\1/; | 
| 6913 | s/:*$//; | 
| 6914 | s/^[^=]*=[      ]*$//; | 
| 6915 | }' | 
| 6916 | fi | 
| 6917 |  | 
| 6918 | DEFS=-DHAVE_CONFIG_H | 
| 6919 |  | 
| 6920 | ac_libobjs= | 
| 6921 | ac_ltlibobjs= | 
| 6922 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
| 6923 | # 1. Remove the extension, and $U if already installed. | 
| 6924 | ac_i=`echo "$ac_i" | | 
| 6925 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | 
| 6926 | # 2. Add them. | 
| 6927 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | 
| 6928 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | 
| 6929 | done | 
| 6930 | LIBOBJS=$ac_libobjs | 
| 6931 |  | 
| 6932 | LTLIBOBJS=$ac_ltlibobjs | 
| 6933 |  | 
| 6934 |  | 
| 6935 |  | 
| 6936 | : ${CONFIG_STATUS=./config.status} | 
| 6937 | ac_clean_files_save=$ac_clean_files | 
| 6938 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| 6939 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | 
| 6940 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
| 6941 | cat >$CONFIG_STATUS <<_ACEOF | 
| 6942 | #! $SHELL | 
| 6943 | # Generated by $as_me. | 
| 6944 | # Run this file to recreate the current configuration. | 
| 6945 | # Compiler output produced by configure, useful for debugging | 
| 6946 | # configure, is in config.log if it exists. | 
| 6947 |  | 
| 6948 | debug=false | 
| 6949 | ac_cs_recheck=false | 
| 6950 | ac_cs_silent=false | 
| 6951 | SHELL=\${CONFIG_SHELL-$SHELL} | 
| 6952 | _ACEOF | 
| 6953 |  | 
| 6954 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| 6955 | ## --------------------- ## | 
| 6956 | ## M4sh Initialization.  ## | 
| 6957 | ## --------------------- ## | 
| 6958 |  | 
| 6959 | # Be Bourne compatible | 
| 6960 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | 
| 6961 | emulate sh | 
| 6962 | NULLCMD=: | 
| 6963 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | 
| 6964 | # is contrary to our usage.  Disable this feature. | 
| 6965 | alias -g '${1+"$@"}'='"$@"' | 
| 6966 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | 
| 6967 | set -o posix | 
| 6968 | fi | 
| 6969 |  | 
| 6970 | # Support unset when possible. | 
| 6971 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | 
| 6972 | as_unset=unset | 
| 6973 | else | 
| 6974 | as_unset=false | 
| 6975 | fi | 
| 6976 |  | 
| 6977 |  | 
| 6978 | # Work around bugs in pre-3.0 UWIN ksh. | 
| 6979 | $as_unset ENV MAIL MAILPATH | 
| 6980 | PS1='$ ' | 
| 6981 | PS2='> ' | 
| 6982 | PS4='+ ' | 
| 6983 |  | 
| 6984 | # NLS nuisances. | 
| 6985 | for as_var in \ | 
| 6986 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | 
| 6987 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | 
| 6988 | LC_TELEPHONE LC_TIME | 
| 6989 | do | 
| 6990 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | 
| 6991 | eval $as_var=C; export $as_var | 
| 6992 | else | 
| 6993 | $as_unset $as_var | 
| 6994 | fi | 
| 6995 | done | 
| 6996 |  | 
| 6997 | # Required to use basename. | 
| 6998 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
| 6999 | as_expr=expr | 
| 7000 | else | 
| 7001 | as_expr=false | 
| 7002 | fi | 
| 7003 |  | 
| 7004 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | 
| 7005 | as_basename=basename | 
| 7006 | else | 
| 7007 | as_basename=false | 
| 7008 | fi | 
| 7009 |  | 
| 7010 |  | 
| 7011 | # Name of the executable. | 
| 7012 | as_me=`$as_basename "$0" || | 
| 7013 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
| 7014 | X"$0" : 'X\(//\)$' \| \ | 
| 7015 | X"$0" : 'X\(/\)$' \| \ | 
| 7016 | .     : '\(.\)' 2>/dev/null || | 
| 7017 | echo X/"$0" | | 
| 7018 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | 
| 7019 | /^X\/\(\/\/\)$/{ s//\1/; q; } | 
| 7020 | /^X\/\(\/\).*/{ s//\1/; q; } | 
| 7021 | s/.*/./; q'` | 
| 7022 |  | 
| 7023 |  | 
| 7024 | # PATH needs CR, and LINENO needs CR and PATH. | 
| 7025 | # Avoid depending upon Character Ranges. | 
| 7026 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
| 7027 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
| 7028 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
| 7029 | as_cr_digits='0123456789' | 
| 7030 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| 7031 |  | 
| 7032 | # The user is always right. | 
| 7033 | if test "${PATH_SEPARATOR+set}" != set; then | 
| 7034 | echo "#! /bin/sh" >conf$$.sh | 
| 7035 | echo  "exit 0"   >>conf$$.sh | 
| 7036 | chmod +x conf$$.sh | 
| 7037 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | 
| 7038 | PATH_SEPARATOR=';' | 
| 7039 | else | 
| 7040 | PATH_SEPARATOR=: | 
| 7041 | fi | 
| 7042 | rm -f conf$$.sh | 
| 7043 | fi | 
| 7044 |  | 
| 7045 |  | 
| 7046 | as_lineno_1=$LINENO | 
| 7047 | as_lineno_2=$LINENO | 
| 7048 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
| 7049 | test "x$as_lineno_1" != "x$as_lineno_2" && | 
| 7050 | test "x$as_lineno_3"  = "x$as_lineno_2"  || { | 
| 7051 | # Find who we are.  Look in the path if we contain no path at all | 
| 7052 | # relative or not. | 
| 7053 | case $0 in | 
| 7054 | *[\\/]* ) as_myself=$0 ;; | 
| 7055 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| 7056 | for as_dir in $PATH | 
| 7057 | do | 
| 7058 | IFS=$as_save_IFS | 
| 7059 | test -z "$as_dir" && as_dir=. | 
| 7060 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
| 7061 | done | 
| 7062 |  | 
| 7063 | ;; | 
| 7064 | esac | 
| 7065 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
| 7066 | # in which case we are not to be found in the path. | 
| 7067 | if test "x$as_myself" = x; then | 
| 7068 | as_myself=$0 | 
| 7069 | fi | 
| 7070 | if test ! -f "$as_myself"; then | 
| 7071 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | 
| 7072 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | 
| 7073 | { (exit 1); exit 1; }; } | 
| 7074 | fi | 
| 7075 | case $CONFIG_SHELL in | 
| 7076 | '') | 
| 7077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
| 7078 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
| 7079 | do | 
| 7080 | IFS=$as_save_IFS | 
| 7081 | test -z "$as_dir" && as_dir=. | 
| 7082 | for as_base in sh bash ksh sh5; do | 
| 7083 | case $as_dir in | 
| 7084 | /*) | 
| 7085 | if ("$as_dir/$as_base" -c ' | 
| 7086 | as_lineno_1=$LINENO | 
| 7087 | as_lineno_2=$LINENO | 
| 7088 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | 
| 7089 | test "x$as_lineno_1" != "x$as_lineno_2" && | 
| 7090 | test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then | 
| 7091 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | 
| 7092 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | 
| 7093 | CONFIG_SHELL=$as_dir/$as_base | 
| 7094 | export CONFIG_SHELL | 
| 7095 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | 
| 7096 | fi;; | 
| 7097 | esac | 
| 7098 | done | 
| 7099 | done | 
| 7100 | ;; | 
| 7101 | esac | 
| 7102 |  | 
| 7103 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | 
| 7104 | # uniformly replaced by the line number.  The first 'sed' inserts a | 
| 7105 | # line-number line before each line; the second 'sed' does the real | 
| 7106 | # work.  The second script uses 'N' to pair each line-number line | 
| 7107 | # with the numbered line, and appends trailing '-' during | 
| 7108 | # substitution so that $LINENO is not a special case at line end. | 
| 7109 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | 
| 7110 | # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-) | 
| 7111 | sed '=' <$as_myself | | 
| 7112 | sed ' | 
| 7113 | N | 
| 7114 | s,$,-, | 
| 7115 | : loop | 
| 7116 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | 
| 7117 | t loop | 
| 7118 | s,-$,, | 
| 7119 | s,^['$as_cr_digits']*\n,, | 
| 7120 | ' >$as_me.lineno && | 
| 7121 | chmod +x $as_me.lineno || | 
| 7122 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | 
| 7123 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | 
| 7124 | { (exit 1); exit 1; }; } | 
| 7125 |  | 
| 7126 | # Don't try to exec as it changes $[0], causing all sort of problems | 
| 7127 | # (the dirname of $[0] is not the place where we might find the | 
| 7128 | # original and so on.  Autoconf is especially sensible to this). | 
| 7129 | . ./$as_me.lineno | 
| 7130 | # Exit status is that of the last command. | 
| 7131 | exit | 
| 7132 | } | 
| 7133 |  | 
| 7134 |  | 
| 7135 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | 
| 7136 | *c*,-n*) ECHO_N= ECHO_C=' | 
| 7137 | ' ECHO_T='      ' ;; | 
| 7138 | *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;; | 
| 7139 | *)       ECHO_N= ECHO_C='\c' ECHO_T= ;; | 
| 7140 | esac | 
| 7141 |  | 
| 7142 | if expr a : '\(a\)' >/dev/null 2>&1; then | 
| 7143 | as_expr=expr | 
| 7144 | else | 
| 7145 | as_expr=false | 
| 7146 | fi | 
| 7147 |  | 
| 7148 | rm -f conf$$ conf$$.exe conf$$.file | 
| 7149 | echo >conf$$.file | 
| 7150 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
| 7151 | # We could just check for DJGPP; but this test a) works b) is more generic | 
| 7152 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | 
| 7153 | if test -f conf$$.exe; then | 
| 7154 | # Don't use ln at all; we don't have any links | 
| 7155 | as_ln_s='cp -p' | 
| 7156 | else | 
| 7157 | as_ln_s='ln -s' | 
| 7158 | fi | 
| 7159 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
| 7160 | as_ln_s=ln | 
| 7161 | else | 
| 7162 | as_ln_s='cp -p' | 
| 7163 | fi | 
| 7164 | rm -f conf$$ conf$$.exe conf$$.file | 
| 7165 |  | 
| 7166 | if mkdir -p . 2>/dev/null; then | 
| 7167 | as_mkdir_p=: | 
| 7168 | else | 
| 7169 | as_mkdir_p=false | 
| 7170 | fi | 
| 7171 |  | 
| 7172 | as_executable_p="test -f" | 
| 7173 |  | 
| 7174 | # Sed expression to map a string onto a valid CPP name. | 
| 7175 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | 
| 7176 |  | 
| 7177 | # Sed expression to map a string onto a valid variable name. | 
| 7178 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | 
| 7179 |  | 
| 7180 |  | 
| 7181 | # IFS | 
| 7182 | # We need space, tab and new line, in precisely that order. | 
| 7183 | as_nl=' | 
| 7184 | ' | 
| 7185 | IFS="   $as_nl" | 
| 7186 |  | 
| 7187 | # CDPATH. | 
| 7188 | $as_unset CDPATH | 
| 7189 |  | 
| 7190 | exec 6>&1 | 
| 7191 |  | 
| 7192 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | 
| 7193 | # report actual input values of CONFIG_FILES etc. instead of their | 
| 7194 | # values after options handling.  Logging --version etc. is OK. | 
| 7195 | exec 5>>config.log | 
| 7196 | { | 
| 7197 | echo | 
| 7198 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
| 7199 | ## Running $as_me. ## | 
| 7200 | _ASBOX | 
| 7201 | } >&5 | 
| 7202 | cat >&5 <<_CSEOF | 
| 7203 |  | 
| 7204 | This file was extended by OOPSE $as_me 1.0, which was | 
| 7205 | generated by GNU Autoconf 2.57.  Invocation command line was | 
| 7206 |  | 
| 7207 | CONFIG_FILES    = $CONFIG_FILES | 
| 7208 | CONFIG_HEADERS  = $CONFIG_HEADERS | 
| 7209 | CONFIG_LINKS    = $CONFIG_LINKS | 
| 7210 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 
| 7211 | $ $0 $@ | 
| 7212 |  | 
| 7213 | _CSEOF | 
| 7214 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | 
| 7215 | echo >&5 | 
| 7216 | _ACEOF | 
| 7217 |  | 
| 7218 | # Files that config.status was made for. | 
| 7219 | if test -n "$ac_config_files"; then | 
| 7220 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | 
| 7221 | fi | 
| 7222 |  | 
| 7223 | if test -n "$ac_config_headers"; then | 
| 7224 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | 
| 7225 | fi | 
| 7226 |  | 
| 7227 | if test -n "$ac_config_links"; then | 
| 7228 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | 
| 7229 | fi | 
| 7230 |  | 
| 7231 | if test -n "$ac_config_commands"; then | 
| 7232 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | 
| 7233 | fi | 
| 7234 |  | 
| 7235 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| 7236 |  | 
| 7237 | ac_cs_usage="\ | 
| 7238 | \`$as_me' instantiates files from templates according to the | 
| 7239 | current configuration. | 
| 7240 |  | 
| 7241 | Usage: $0 [OPTIONS] [FILE]... | 
| 7242 |  | 
| 7243 | -h, --help       print this help, then exit | 
| 7244 | -V, --version    print version number, then exit | 
| 7245 | -q, --quiet      do not print progress messages | 
| 7246 | -d, --debug      don't remove temporary files | 
| 7247 | --recheck    update $as_me by reconfiguring in the same conditions | 
| 7248 | --file=FILE[:TEMPLATE] | 
| 7249 | instantiate the configuration file FILE | 
| 7250 | --header=FILE[:TEMPLATE] | 
| 7251 | instantiate the configuration header FILE | 
| 7252 |  | 
| 7253 | Configuration files: | 
| 7254 | $config_files | 
| 7255 |  | 
| 7256 | Configuration headers: | 
| 7257 | $config_headers | 
| 7258 |  | 
| 7259 | Report bugs to <bug-autoconf@gnu.org>." | 
| 7260 | _ACEOF | 
| 7261 |  | 
| 7262 | cat >>$CONFIG_STATUS <<_ACEOF | 
| 7263 | ac_cs_version="\\ | 
| 7264 | OOPSE config.status 1.0 | 
| 7265 | configured by $0, generated by GNU Autoconf 2.57, | 
| 7266 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | 
| 7267 |  | 
| 7268 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | 
| 7269 | Free Software Foundation, Inc. | 
| 7270 | This config.status script is free software; the Free Software Foundation | 
| 7271 | gives unlimited permission to copy, distribute and modify it." | 
| 7272 | srcdir=$srcdir | 
| 7273 | INSTALL="$INSTALL" | 
| 7274 | _ACEOF | 
| 7275 |  | 
| 7276 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| 7277 | # If no file are specified by the user, then we need to provide default | 
| 7278 | # value.  By we need to know if files were specified by the user. | 
| 7279 | ac_need_defaults=: | 
| 7280 | while test $# != 0 | 
| 7281 | do | 
| 7282 | case $1 in | 
| 7283 | --*=*) | 
| 7284 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | 
| 7285 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | 
| 7286 | ac_shift=: | 
| 7287 | ;; | 
| 7288 | -*) | 
| 7289 | ac_option=$1 | 
| 7290 | ac_optarg=$2 | 
| 7291 | ac_shift=shift | 
| 7292 | ;; | 
| 7293 | *) # This is not an option, so the user has probably given explicit | 
| 7294 | # arguments. | 
| 7295 | ac_option=$1 | 
| 7296 | ac_need_defaults=false;; | 
| 7297 | esac | 
| 7298 |  | 
| 7299 | case $ac_option in | 
| 7300 | # Handling of the options. | 
| 7301 | _ACEOF | 
| 7302 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| 7303 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
| 7304 | ac_cs_recheck=: ;; | 
| 7305 | --version | --vers* | -V ) | 
| 7306 | echo "$ac_cs_version"; exit 0 ;; | 
| 7307 | --he | --h) | 
| 7308 | # Conflict between --help and --header | 
| 7309 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | 
| 7310 | Try \`$0 --help' for more information." >&5 | 
| 7311 | echo "$as_me: error: ambiguous option: $1 | 
| 7312 | Try \`$0 --help' for more information." >&2;} | 
| 7313 | { (exit 1); exit 1; }; };; | 
| 7314 | --help | --hel | -h ) | 
| 7315 | echo "$ac_cs_usage"; exit 0 ;; | 
| 7316 | --debug | --d* | -d ) | 
| 7317 | debug=: ;; | 
| 7318 | --file | --fil | --fi | --f ) | 
| 7319 | $ac_shift | 
| 7320 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | 
| 7321 | ac_need_defaults=false;; | 
| 7322 | --header | --heade | --head | --hea ) | 
| 7323 | $ac_shift | 
| 7324 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | 
| 7325 | ac_need_defaults=false;; | 
| 7326 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
| 7327 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
| 7328 | ac_cs_silent=: ;; | 
| 7329 |  | 
| 7330 | # This is an error. | 
| 7331 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | 
| 7332 | Try \`$0 --help' for more information." >&5 | 
| 7333 | echo "$as_me: error: unrecognized option: $1 | 
| 7334 | Try \`$0 --help' for more information." >&2;} | 
| 7335 | { (exit 1); exit 1; }; } ;; | 
| 7336 |  | 
| 7337 | *) ac_config_targets="$ac_config_targets $1" ;; | 
| 7338 |  | 
| 7339 | esac | 
| 7340 | shift | 
| 7341 | done | 
| 7342 |  | 
| 7343 | ac_configure_extra_args= | 
| 7344 |  | 
| 7345 | if $ac_cs_silent; then | 
| 7346 | exec 6>/dev/null | 
| 7347 | ac_configure_extra_args="$ac_configure_extra_args --silent" | 
| 7348 | fi | 
| 7349 |  | 
| 7350 | _ACEOF | 
| 7351 | cat >>$CONFIG_STATUS <<_ACEOF | 
| 7352 | if \$ac_cs_recheck; then | 
| 7353 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | 
| 7354 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
| 7355 | fi | 
| 7356 |  | 
| 7357 | _ACEOF | 
| 7358 |  | 
| 7359 |  | 
| 7360 |  | 
| 7361 |  | 
| 7362 |  | 
| 7363 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| 7364 | for ac_config_target in $ac_config_targets | 
| 7365 | do | 
| 7366 | case "$ac_config_target" in | 
| 7367 | # Handling of arguments. | 
| 7368 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | 
| 7369 | "libBASS/Makefile" ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;; | 
| 7370 | "libmdtools/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;; | 
| 7371 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | 
| 7372 | "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; | 
| 7373 | "utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;; | 
| 7374 | "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;; | 
| 7375 | "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; | 
| 7376 | "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;; | 
| 7377 | "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;; | 
| 7378 | "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;; | 
| 7379 | "samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;; | 
| 7380 | "samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;; | 
| 7381 | "samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;; | 
| 7382 | "libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;; | 
| 7383 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | 
| 7384 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | 
| 7385 | { (exit 1); exit 1; }; };; | 
| 7386 | esac | 
| 7387 | done | 
| 7388 |  | 
| 7389 | # If the user did not use the arguments to specify the items to instantiate, | 
| 7390 | # then the envvar interface is used.  Set only those that are not. | 
| 7391 | # We use the long form for the default assignment because of an extremely | 
| 7392 | # bizarre bug on SunOS 4.1.3. | 
| 7393 | if $ac_need_defaults; then | 
| 7394 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
| 7395 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
| 7396 | fi | 
| 7397 |  | 
| 7398 | # Have a temporary directory for convenience.  Make it in the build tree | 
| 7399 | # simply because there is no reason to put it here, and in addition, | 
| 7400 | # creating and moving files from /tmp can sometimes cause problems. | 
| 7401 | # Create a temporary directory, and hook for its removal unless debugging. | 
| 7402 | $debug || | 
| 7403 | { | 
| 7404 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | 
| 7405 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | 
| 7406 | } | 
| 7407 |  | 
| 7408 | # Create a (secure) tmp directory for tmp files. | 
| 7409 |  | 
| 7410 | { | 
| 7411 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | 
| 7412 | test -n "$tmp" && test -d "$tmp" | 
| 7413 | }  || | 
| 7414 | { | 
| 7415 | tmp=./confstat$$-$RANDOM | 
| 7416 | (umask 077 && mkdir $tmp) | 
| 7417 | } || | 
| 7418 | { | 
| 7419 | echo "$me: cannot create a temporary directory in ." >&2 | 
| 7420 | { (exit 1); exit 1; } | 
| 7421 | } | 
| 7422 |  | 
| 7423 | _ACEOF | 
| 7424 |  | 
| 7425 | cat >>$CONFIG_STATUS <<_ACEOF | 
| 7426 |  | 
| 7427 | # | 
| 7428 | # CONFIG_FILES section. | 
| 7429 | # | 
| 7430 |  | 
| 7431 | # No need to generate the scripts if there are no CONFIG_FILES. | 
| 7432 | # This happens for instance when ./config.status config.h | 
| 7433 | if test -n "\$CONFIG_FILES"; then | 
| 7434 | # Protect against being on the right side of a sed subst in config.status. | 
| 7435 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | 
| 7436 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | 
| 7437 | s,@SHELL@,$SHELL,;t t | 
| 7438 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | 
| 7439 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | 
| 7440 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | 
| 7441 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | 
| 7442 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | 
| 7443 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | 
| 7444 | s,@exec_prefix@,$exec_prefix,;t t | 
| 7445 | s,@prefix@,$prefix,;t t | 
| 7446 | s,@program_transform_name@,$program_transform_name,;t t | 
| 7447 | s,@bindir@,$bindir,;t t | 
| 7448 | s,@sbindir@,$sbindir,;t t | 
| 7449 | s,@libexecdir@,$libexecdir,;t t | 
| 7450 | s,@datadir@,$datadir,;t t | 
| 7451 | s,@sysconfdir@,$sysconfdir,;t t | 
| 7452 | s,@sharedstatedir@,$sharedstatedir,;t t | 
| 7453 | s,@localstatedir@,$localstatedir,;t t | 
| 7454 | s,@libdir@,$libdir,;t t | 
| 7455 | s,@includedir@,$includedir,;t t | 
| 7456 | s,@oldincludedir@,$oldincludedir,;t t | 
| 7457 | s,@infodir@,$infodir,;t t | 
| 7458 | s,@mandir@,$mandir,;t t | 
| 7459 | s,@build_alias@,$build_alias,;t t | 
| 7460 | s,@host_alias@,$host_alias,;t t | 
| 7461 | s,@target_alias@,$target_alias,;t t | 
| 7462 | s,@DEFS@,$DEFS,;t t | 
| 7463 | s,@ECHO_C@,$ECHO_C,;t t | 
| 7464 | s,@ECHO_N@,$ECHO_N,;t t | 
| 7465 | s,@ECHO_T@,$ECHO_T,;t t | 
| 7466 | s,@LIBS@,$LIBS,;t t | 
| 7467 | s,@PROGNAME@,$PROGNAME,;t t | 
| 7468 | s,@DEBUG@,$DEBUG,;t t | 
| 7469 | s,@build@,$build,;t t | 
| 7470 | s,@build_cpu@,$build_cpu,;t t | 
| 7471 | s,@build_vendor@,$build_vendor,;t t | 
| 7472 | s,@build_os@,$build_os,;t t | 
| 7473 | s,@host@,$host,;t t | 
| 7474 | s,@host_cpu@,$host_cpu,;t t | 
| 7475 | s,@host_vendor@,$host_vendor,;t t | 
| 7476 | s,@host_os@,$host_os,;t t | 
| 7477 | s,@CC@,$CC,;t t | 
| 7478 | s,@CFLAGS@,$CFLAGS,;t t | 
| 7479 | s,@LDFLAGS@,$LDFLAGS,;t t | 
| 7480 | s,@CPPFLAGS@,$CPPFLAGS,;t t | 
| 7481 | s,@ac_ct_CC@,$ac_ct_CC,;t t | 
| 7482 | s,@EXEEXT@,$EXEEXT,;t t | 
| 7483 | s,@OBJEXT@,$OBJEXT,;t t | 
| 7484 | s,@CXX@,$CXX,;t t | 
| 7485 | s,@CXXFLAGS@,$CXXFLAGS,;t t | 
| 7486 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | 
| 7487 | s,@F90@,$F90,;t t | 
| 7488 | s,@F90FLAGS@,$F90FLAGS,;t t | 
| 7489 | s,@ac_ct_F90@,$ac_ct_F90,;t t | 
| 7490 | s,@PREPFLAG@,$PREPFLAG,;t t | 
| 7491 | s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t | 
| 7492 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | 
| 7493 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | 
| 7494 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | 
| 7495 | s,@LN_S@,$LN_S,;t t | 
| 7496 | s,@SET_MAKE@,$SET_MAKE,;t t | 
| 7497 | s,@RANLIB@,$RANLIB,;t t | 
| 7498 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | 
| 7499 | s,@YACC@,$YACC,;t t | 
| 7500 | s,@LEX@,$LEX,;t t | 
| 7501 | s,@LEXLIB@,$LEXLIB,;t t | 
| 7502 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | 
| 7503 | s,@AR@,$AR,;t t | 
| 7504 | s,@F90LIBS@,$F90LIBS,;t t | 
| 7505 | s,@F90_FUNC@,$F90_FUNC,;t t | 
| 7506 | s,@F90_FUNC_@,$F90_FUNC_,;t t | 
| 7507 | s,@mpi_dir@,$mpi_dir,;t t | 
| 7508 | s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t | 
| 7509 | s,@MPI_INC@,$MPI_INC,;t t | 
| 7510 | s,@MPI_LIB@,$MPI_LIB,;t t | 
| 7511 | s,@MPIF77@,$MPIF77,;t t | 
| 7512 | s,@MPIF90@,$MPIF90,;t t | 
| 7513 | s,@MPILIBS@,$MPILIBS,;t t | 
| 7514 | s,@CPP@,$CPP,;t t | 
| 7515 | s,@EGREP@,$EGREP,;t t | 
| 7516 | s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t | 
| 7517 | s,@SPRNG_LIB@,$SPRNG_LIB,;t t | 
| 7518 | s,@SPRNG_INC@,$SPRNG_INC,;t t | 
| 7519 | s,@HAVE_SPRNG@,$HAVE_SPRNG,;t t | 
| 7520 | s,@MKL_LIBDIR@,$MKL_LIBDIR,;t t | 
| 7521 | s,@MKL_LIB@,$MKL_LIB,;t t | 
| 7522 | s,@MKL_INC@,$MKL_INC,;t t | 
| 7523 | s,@HAVE_MKL@,$HAVE_MKL,;t t | 
| 7524 | s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t | 
| 7525 | s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t | 
| 7526 | s,@BATEXT@,$BATEXT,;t t | 
| 7527 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | 
| 7528 | s,@OOPSE@,$OOPSE,;t t | 
| 7529 | s,@OOPSE_HOME@,$OOPSE_HOME,;t t | 
| 7530 | s,@SUBDIRS@,$SUBDIRS,;t t | 
| 7531 | s,@FFLAGS@,$FFLAGS,;t t | 
| 7532 | s,@LIBOBJS@,$LIBOBJS,;t t | 
| 7533 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | 
| 7534 | CEOF | 
| 7535 |  | 
| 7536 | _ACEOF | 
| 7537 |  | 
| 7538 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| 7539 | # Split the substitutions into bite-sized pieces for seds with | 
| 7540 | # small command number limits, like on Digital OSF/1 and HP-UX. | 
| 7541 | ac_max_sed_lines=48 | 
| 7542 | ac_sed_frag=1 # Number of current file. | 
| 7543 | ac_beg=1 # First line for current file. | 
| 7544 | ac_end=$ac_max_sed_lines # Line after last line for current file. | 
| 7545 | ac_more_lines=: | 
| 7546 | ac_sed_cmds= | 
| 7547 | while $ac_more_lines; do | 
| 7548 | if test $ac_beg -gt 1; then | 
| 7549 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 
| 7550 | else | 
| 7551 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | 
| 7552 | fi | 
| 7553 | if test ! -s $tmp/subs.frag; then | 
| 7554 | ac_more_lines=false | 
| 7555 | else | 
| 7556 | # The purpose of the label and of the branching condition is to | 
| 7557 | # speed up the sed processing (if there are no `@' at all, there | 
| 7558 | # is no need to browse any of the substitutions). | 
| 7559 | # These are the two extra sed commands mentioned above. | 
| 7560 | (echo ':t | 
| 7561 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | 
| 7562 | if test -z "$ac_sed_cmds"; then | 
| 7563 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | 
| 7564 | else | 
| 7565 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | 
| 7566 | fi | 
| 7567 | ac_sed_frag=`expr $ac_sed_frag + 1` | 
| 7568 | ac_beg=$ac_end | 
| 7569 | ac_end=`expr $ac_end + $ac_max_sed_lines` | 
| 7570 | fi | 
| 7571 | done | 
| 7572 | if test -z "$ac_sed_cmds"; then | 
| 7573 | ac_sed_cmds=cat | 
| 7574 | fi | 
| 7575 | fi # test -n "$CONFIG_FILES" | 
| 7576 |  | 
| 7577 | _ACEOF | 
| 7578 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| 7579 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | 
| 7580 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
| 7581 | case $ac_file in | 
| 7582 | - | *:- | *:-:* ) # input from stdin | 
| 7583 | cat >$tmp/stdin | 
| 7584 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
| 7585 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| 7586 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
| 7587 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| 7588 | * )   ac_file_in=$ac_file.in ;; | 
| 7589 | esac | 
| 7590 |  | 
| 7591 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | 
| 7592 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | 
| 7593 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| 7594 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
| 7595 | X"$ac_file" : 'X\(//\)$' \| \ | 
| 7596 | X"$ac_file" : 'X\(/\)' \| \ | 
| 7597 | .     : '\(.\)' 2>/dev/null || | 
| 7598 | echo X"$ac_file" | | 
| 7599 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
| 7600 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
| 7601 | /^X\(\/\/\)$/{ s//\1/; q; } | 
| 7602 | /^X\(\/\).*/{ s//\1/; q; } | 
| 7603 | s/.*/./; q'` | 
| 7604 | { if $as_mkdir_p; then | 
| 7605 | mkdir -p "$ac_dir" | 
| 7606 | else | 
| 7607 | as_dir="$ac_dir" | 
| 7608 | as_dirs= | 
| 7609 | while test ! -d "$as_dir"; do | 
| 7610 | as_dirs="$as_dir $as_dirs" | 
| 7611 | as_dir=`(dirname "$as_dir") 2>/dev/null || | 
| 7612 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| 7613 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
| 7614 | X"$as_dir" : 'X\(//\)$' \| \ | 
| 7615 | X"$as_dir" : 'X\(/\)' \| \ | 
| 7616 | .     : '\(.\)' 2>/dev/null || | 
| 7617 | echo X"$as_dir" | | 
| 7618 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
| 7619 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
| 7620 | /^X\(\/\/\)$/{ s//\1/; q; } | 
| 7621 | /^X\(\/\).*/{ s//\1/; q; } | 
| 7622 | s/.*/./; q'` | 
| 7623 | done | 
| 7624 | test ! -n "$as_dirs" || mkdir $as_dirs | 
| 7625 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
| 7626 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
| 7627 | { (exit 1); exit 1; }; }; } | 
| 7628 |  | 
| 7629 | ac_builddir=. | 
| 7630 |  | 
| 7631 | if test "$ac_dir" != .; then | 
| 7632 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | 
| 7633 | # A "../" for each directory in $ac_dir_suffix. | 
| 7634 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | 
| 7635 | else | 
| 7636 | ac_dir_suffix= ac_top_builddir= | 
| 7637 | fi | 
| 7638 |  | 
| 7639 | case $srcdir in | 
| 7640 | .)  # No --srcdir option.  We are building in place. | 
| 7641 | ac_srcdir=. | 
| 7642 | if test -z "$ac_top_builddir"; then | 
| 7643 | ac_top_srcdir=. | 
| 7644 | else | 
| 7645 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | 
| 7646 | fi ;; | 
| 7647 | [\\/]* | ?:[\\/]* )  # Absolute path. | 
| 7648 | ac_srcdir=$srcdir$ac_dir_suffix; | 
| 7649 | ac_top_srcdir=$srcdir ;; | 
| 7650 | *) # Relative path. | 
| 7651 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | 
| 7652 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | 
| 7653 | esac | 
| 7654 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | 
| 7655 | # absolute. | 
| 7656 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | 
| 7657 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | 
| 7658 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | 
| 7659 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | 
| 7660 |  | 
| 7661 |  | 
| 7662 | case $INSTALL in | 
| 7663 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
| 7664 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | 
| 7665 | esac | 
| 7666 |  | 
| 7667 | if test x"$ac_file" != x-; then | 
| 7668 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
| 7669 | echo "$as_me: creating $ac_file" >&6;} | 
| 7670 | rm -f "$ac_file" | 
| 7671 | fi | 
| 7672 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
| 7673 | # use $as_me), people would be surprised to read: | 
| 7674 | #    /* config.h.  Generated by config.status.  */ | 
| 7675 | if test x"$ac_file" = x-; then | 
| 7676 | configure_input= | 
| 7677 | else | 
| 7678 | configure_input="$ac_file.  " | 
| 7679 | fi | 
| 7680 | configure_input=$configure_input"Generated from `echo $ac_file_in | | 
| 7681 | sed 's,.*/,,'` by configure." | 
| 7682 |  | 
| 7683 | # First look for the input files in the build tree, otherwise in the | 
| 7684 | # src tree. | 
| 7685 | ac_file_inputs=`IFS=: | 
| 7686 | for f in $ac_file_in; do | 
| 7687 | case $f in | 
| 7688 | -) echo $tmp/stdin ;; | 
| 7689 | [\\/$]*) | 
| 7690 | # Absolute (can't be DOS-style, as IFS=:) | 
| 7691 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| 7692 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
| 7693 | { (exit 1); exit 1; }; } | 
| 7694 | echo $f;; | 
| 7695 | *) # Relative | 
| 7696 | if test -f "$f"; then | 
| 7697 | # Build tree | 
| 7698 | echo $f | 
| 7699 | elif test -f "$srcdir/$f"; then | 
| 7700 | # Source tree | 
| 7701 | echo $srcdir/$f | 
| 7702 | else | 
| 7703 | # /dev/null tree | 
| 7704 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| 7705 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
| 7706 | { (exit 1); exit 1; }; } | 
| 7707 | fi;; | 
| 7708 | esac | 
| 7709 | done` || { (exit 1); exit 1; } | 
| 7710 | _ACEOF | 
| 7711 | cat >>$CONFIG_STATUS <<_ACEOF | 
| 7712 | sed "$ac_vpsub | 
| 7713 | $extrasub | 
| 7714 | _ACEOF | 
| 7715 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| 7716 | :t | 
| 7717 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
| 7718 | s,@configure_input@,$configure_input,;t t | 
| 7719 | s,@srcdir@,$ac_srcdir,;t t | 
| 7720 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | 
| 7721 | s,@top_srcdir@,$ac_top_srcdir,;t t | 
| 7722 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | 
| 7723 | s,@builddir@,$ac_builddir,;t t | 
| 7724 | s,@abs_builddir@,$ac_abs_builddir,;t t | 
| 7725 | s,@top_builddir@,$ac_top_builddir,;t t | 
| 7726 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | 
| 7727 | s,@INSTALL@,$ac_INSTALL,;t t | 
| 7728 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | 
| 7729 | rm -f $tmp/stdin | 
| 7730 | if test x"$ac_file" != x-; then | 
| 7731 | mv $tmp/out $ac_file | 
| 7732 | else | 
| 7733 | cat $tmp/out | 
| 7734 | rm -f $tmp/out | 
| 7735 | fi | 
| 7736 |  | 
| 7737 | done | 
| 7738 | _ACEOF | 
| 7739 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| 7740 |  | 
| 7741 | # | 
| 7742 | # CONFIG_HEADER section. | 
| 7743 | # | 
| 7744 |  | 
| 7745 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | 
| 7746 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | 
| 7747 | # | 
| 7748 | # ac_d sets the value in "#define NAME VALUE" lines. | 
| 7749 | ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)' | 
| 7750 | ac_dB='[        ].*$,\1#\2' | 
| 7751 | ac_dC=' ' | 
| 7752 | ac_dD=',;t' | 
| 7753 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | 
| 7754 | ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)' | 
| 7755 | ac_uB='$,\1#\2define\3' | 
| 7756 | ac_uC=' ' | 
| 7757 | ac_uD=',;t' | 
| 7758 |  | 
| 7759 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | 
| 7760 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
| 7761 | case $ac_file in | 
| 7762 | - | *:- | *:-:* ) # input from stdin | 
| 7763 | cat >$tmp/stdin | 
| 7764 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
| 7765 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| 7766 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | 
| 7767 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | 
| 7768 | * )   ac_file_in=$ac_file.in ;; | 
| 7769 | esac | 
| 7770 |  | 
| 7771 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | 
| 7772 | echo "$as_me: creating $ac_file" >&6;} | 
| 7773 |  | 
| 7774 | # First look for the input files in the build tree, otherwise in the | 
| 7775 | # src tree. | 
| 7776 | ac_file_inputs=`IFS=: | 
| 7777 | for f in $ac_file_in; do | 
| 7778 | case $f in | 
| 7779 | -) echo $tmp/stdin ;; | 
| 7780 | [\\/$]*) | 
| 7781 | # Absolute (can't be DOS-style, as IFS=:) | 
| 7782 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| 7783 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
| 7784 | { (exit 1); exit 1; }; } | 
| 7785 | echo $f;; | 
| 7786 | *) # Relative | 
| 7787 | if test -f "$f"; then | 
| 7788 | # Build tree | 
| 7789 | echo $f | 
| 7790 | elif test -f "$srcdir/$f"; then | 
| 7791 | # Source tree | 
| 7792 | echo $srcdir/$f | 
| 7793 | else | 
| 7794 | # /dev/null tree | 
| 7795 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | 
| 7796 | echo "$as_me: error: cannot find input file: $f" >&2;} | 
| 7797 | { (exit 1); exit 1; }; } | 
| 7798 | fi;; | 
| 7799 | esac | 
| 7800 | done` || { (exit 1); exit 1; } | 
| 7801 | # Remove the trailing spaces. | 
| 7802 | sed 's/[      ]*$//' $ac_file_inputs >$tmp/in | 
| 7803 |  | 
| 7804 | _ACEOF | 
| 7805 |  | 
| 7806 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | 
| 7807 | # `conftest.undefs', that substitutes the proper values into | 
| 7808 | # config.h.in to produce config.h.  The first handles `#define' | 
| 7809 | # templates, and the second `#undef' templates. | 
| 7810 | # And first: Protect against being on the right side of a sed subst in | 
| 7811 | # config.status.  Protect against being in an unquoted here document | 
| 7812 | # in config.status. | 
| 7813 | rm -f conftest.defines conftest.undefs | 
| 7814 | # Using a here document instead of a string reduces the quoting nightmare. | 
| 7815 | # Putting comments in sed scripts is not portable. | 
| 7816 | # | 
| 7817 | # `end' is used to avoid that the second main sed command (meant for | 
| 7818 | # 0-ary CPP macros) applies to n-ary macro definitions. | 
| 7819 | # See the Autoconf documentation for `clear'. | 
| 7820 | cat >confdef2sed.sed <<\_ACEOF | 
| 7821 | s/[\\&,]/\\&/g | 
| 7822 | s,[\\$`],\\&,g | 
| 7823 | t clear | 
| 7824 | : clear | 
| 7825 | s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | 
| 7826 | t end | 
| 7827 | s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | 
| 7828 | : end | 
| 7829 | _ACEOF | 
| 7830 | # If some macros were called several times there might be several times | 
| 7831 | # the same #defines, which is useless.  Nevertheless, we may not want to | 
| 7832 | # sort them, since we want the *last* AC-DEFINE to be honored. | 
| 7833 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | 
| 7834 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | 
| 7835 | rm -f confdef2sed.sed | 
| 7836 |  | 
| 7837 | # This sed command replaces #undef with comments.  This is necessary, for | 
| 7838 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
| 7839 | # on some systems where configure will not decide to define it. | 
| 7840 | cat >>conftest.undefs <<\_ACEOF | 
| 7841 | s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | 
| 7842 | _ACEOF | 
| 7843 |  | 
| 7844 | # Break up conftest.defines because some shells have a limit on the size | 
| 7845 | # of here documents, and old seds have small limits too (100 cmds). | 
| 7846 | echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | 
| 7847 | echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | 
| 7848 | echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | 
| 7849 | echo '  :' >>$CONFIG_STATUS | 
| 7850 | rm -f conftest.tail | 
| 7851 | while grep . conftest.defines >/dev/null | 
| 7852 | do | 
| 7853 | # Write a limited-size here document to $tmp/defines.sed. | 
| 7854 | echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | 
| 7855 | # Speed up: don't consider the non `#define' lines. | 
| 7856 | echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS | 
| 7857 | # Work around the forget-to-reset-the-flag bug. | 
| 7858 | echo 't clr' >>$CONFIG_STATUS | 
| 7859 | echo ': clr' >>$CONFIG_STATUS | 
| 7860 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | 
| 7861 | echo 'CEOF | 
| 7862 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | 
| 7863 | rm -f $tmp/in | 
| 7864 | mv $tmp/out $tmp/in | 
| 7865 | ' >>$CONFIG_STATUS | 
| 7866 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | 
| 7867 | rm -f conftest.defines | 
| 7868 | mv conftest.tail conftest.defines | 
| 7869 | done | 
| 7870 | rm -f conftest.defines | 
| 7871 | echo '  fi # grep' >>$CONFIG_STATUS | 
| 7872 | echo >>$CONFIG_STATUS | 
| 7873 |  | 
| 7874 | # Break up conftest.undefs because some shells have a limit on the size | 
| 7875 | # of here documents, and old seds have small limits too (100 cmds). | 
| 7876 | echo '  # Handle all the #undef templates' >>$CONFIG_STATUS | 
| 7877 | rm -f conftest.tail | 
| 7878 | while grep . conftest.undefs >/dev/null | 
| 7879 | do | 
| 7880 | # Write a limited-size here document to $tmp/undefs.sed. | 
| 7881 | echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | 
| 7882 | # Speed up: don't consider the non `#undef' | 
| 7883 | echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS | 
| 7884 | # Work around the forget-to-reset-the-flag bug. | 
| 7885 | echo 't clr' >>$CONFIG_STATUS | 
| 7886 | echo ': clr' >>$CONFIG_STATUS | 
| 7887 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | 
| 7888 | echo 'CEOF | 
| 7889 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | 
| 7890 | rm -f $tmp/in | 
| 7891 | mv $tmp/out $tmp/in | 
| 7892 | ' >>$CONFIG_STATUS | 
| 7893 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | 
| 7894 | rm -f conftest.undefs | 
| 7895 | mv conftest.tail conftest.undefs | 
| 7896 | done | 
| 7897 | rm -f conftest.undefs | 
| 7898 |  | 
| 7899 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| 7900 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
| 7901 | # use $as_me), people would be surprised to read: | 
| 7902 | #    /* config.h.  Generated by config.status.  */ | 
| 7903 | if test x"$ac_file" = x-; then | 
| 7904 | echo "/* Generated by configure.  */" >$tmp/config.h | 
| 7905 | else | 
| 7906 | echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h | 
| 7907 | fi | 
| 7908 | cat $tmp/in >>$tmp/config.h | 
| 7909 | rm -f $tmp/in | 
| 7910 | if test x"$ac_file" != x-; then | 
| 7911 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | 
| 7912 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | 
| 7913 | echo "$as_me: $ac_file is unchanged" >&6;} | 
| 7914 | else | 
| 7915 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | 
| 7916 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| 7917 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
| 7918 | X"$ac_file" : 'X\(//\)$' \| \ | 
| 7919 | X"$ac_file" : 'X\(/\)' \| \ | 
| 7920 | .     : '\(.\)' 2>/dev/null || | 
| 7921 | echo X"$ac_file" | | 
| 7922 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
| 7923 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
| 7924 | /^X\(\/\/\)$/{ s//\1/; q; } | 
| 7925 | /^X\(\/\).*/{ s//\1/; q; } | 
| 7926 | s/.*/./; q'` | 
| 7927 | { if $as_mkdir_p; then | 
| 7928 | mkdir -p "$ac_dir" | 
| 7929 | else | 
| 7930 | as_dir="$ac_dir" | 
| 7931 | as_dirs= | 
| 7932 | while test ! -d "$as_dir"; do | 
| 7933 | as_dirs="$as_dir $as_dirs" | 
| 7934 | as_dir=`(dirname "$as_dir") 2>/dev/null || | 
| 7935 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
| 7936 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
| 7937 | X"$as_dir" : 'X\(//\)$' \| \ | 
| 7938 | X"$as_dir" : 'X\(/\)' \| \ | 
| 7939 | .     : '\(.\)' 2>/dev/null || | 
| 7940 | echo X"$as_dir" | | 
| 7941 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | 
| 7942 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | 
| 7943 | /^X\(\/\/\)$/{ s//\1/; q; } | 
| 7944 | /^X\(\/\).*/{ s//\1/; q; } | 
| 7945 | s/.*/./; q'` | 
| 7946 | done | 
| 7947 | test ! -n "$as_dirs" || mkdir $as_dirs | 
| 7948 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | 
| 7949 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | 
| 7950 | { (exit 1); exit 1; }; }; } | 
| 7951 |  | 
| 7952 | rm -f $ac_file | 
| 7953 | mv $tmp/config.h $ac_file | 
| 7954 | fi | 
| 7955 | else | 
| 7956 | cat $tmp/config.h | 
| 7957 | rm -f $tmp/config.h | 
| 7958 | fi | 
| 7959 | done | 
| 7960 | _ACEOF | 
| 7961 |  | 
| 7962 | cat >>$CONFIG_STATUS <<\_ACEOF | 
| 7963 |  | 
| 7964 | { (exit 0); exit 0; } | 
| 7965 | _ACEOF | 
| 7966 | chmod +x $CONFIG_STATUS | 
| 7967 | ac_clean_files=$ac_clean_files_save | 
| 7968 |  | 
| 7969 |  | 
| 7970 | # configure is writing to config.log, and then calls config.status. | 
| 7971 | # config.status does its own redirection, appending to config.log. | 
| 7972 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
| 7973 | # by configure, so config.status won't be able to write to it; its | 
| 7974 | # output is simply discarded.  So we exec the FD to /dev/null, | 
| 7975 | # effectively closing config.log, so it can be properly (re)opened and | 
| 7976 | # appended to by config.status.  When coming back to configure, we | 
| 7977 | # need to make the FD available again. | 
| 7978 | if test "$no_create" != yes; then | 
| 7979 | ac_cs_success=: | 
| 7980 | ac_config_status_args= | 
| 7981 | test "$silent" = yes && | 
| 7982 | ac_config_status_args="$ac_config_status_args --quiet" | 
| 7983 | exec 5>/dev/null | 
| 7984 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
| 7985 | exec 5>>config.log | 
| 7986 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
| 7987 | # would make configure fail if this is the last instruction. | 
| 7988 | $ac_cs_success || { (exit 1); exit 1; } | 
| 7989 | fi | 
| 7990 |  |