1#! /bin/sh 2# From configure.in Revision: 1.40 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.57. 5# 6# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 7# Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be Bourne compatible 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24 25# Support unset when possible. 26if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 27 as_unset=unset 28else 29 as_unset=false 30fi 31 32 33# Work around bugs in pre-3.0 UWIN ksh. 34$as_unset ENV MAIL MAILPATH 35PS1='$ ' 36PS2='> ' 37PS4='+ ' 38 39# NLS nuisances. 40for as_var in \ 41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 43 LC_TELEPHONE LC_TIME 44do 45 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 46 eval $as_var=C; export $as_var 47 else 48 $as_unset $as_var 49 fi 50done 51 52# Required to use basename. 53if expr a : '\(a\)' >/dev/null 2>&1; then 54 as_expr=expr 55else 56 as_expr=false 57fi 58 59if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 60 as_basename=basename 61else 62 as_basename=false 63fi 64 65 66# Name of the executable. 67as_me=`$as_basename "$0" || 68$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 69 X"$0" : 'X\(//\)$' \| \ 70 X"$0" : 'X\(/\)$' \| \ 71 . : '\(.\)' 2>/dev/null || 72echo X/"$0" | 73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 74 /^X\/\(\/\/\)$/{ s//\1/; q; } 75 /^X\/\(\/\).*/{ s//\1/; q; } 76 s/.*/./; q'` 77 78 79# PATH needs CR, and LINENO needs CR and PATH. 80# Avoid depending upon Character Ranges. 81as_cr_letters='abcdefghijklmnopqrstuvwxyz' 82as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 83as_cr_Letters=$as_cr_letters$as_cr_LETTERS 84as_cr_digits='0123456789' 85as_cr_alnum=$as_cr_Letters$as_cr_digits 86 87# The user is always right. 88if test "${PATH_SEPARATOR+set}" != set; then 89 echo "#! /bin/sh" >conf$$.sh 90 echo "exit 0" >>conf$$.sh 91 chmod +x conf$$.sh 92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 93 PATH_SEPARATOR=';' 94 else 95 PATH_SEPARATOR=: 96 fi 97 rm -f conf$$.sh 98fi 99 100 101 as_lineno_1=$LINENO 102 as_lineno_2=$LINENO 103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 104 test "x$as_lineno_1" != "x$as_lineno_2" && 105 test "x$as_lineno_3" = "x$as_lineno_2" || { 106 # Find who we are. Look in the path if we contain no path at all 107 # relative or not. 108 case $0 in 109 *[\\/]* ) as_myself=$0 ;; 110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 111for as_dir in $PATH 112do 113 IFS=$as_save_IFS 114 test -z "$as_dir" && as_dir=. 115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 116done 117 118 ;; 119 esac 120 # We did not find ourselves, most probably we were run as `sh COMMAND' 121 # in which case we are not to be found in the path. 122 if test "x$as_myself" = x; then 123 as_myself=$0 124 fi 125 if test ! -f "$as_myself"; then 126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 127 { (exit 1); exit 1; }; } 128 fi 129 case $CONFIG_SHELL in 130 '') 131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 132for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 133do 134 IFS=$as_save_IFS 135 test -z "$as_dir" && as_dir=. 136 for as_base in sh bash ksh sh5; do 137 case $as_dir in 138 /*) 139 if ("$as_dir/$as_base" -c ' 140 as_lineno_1=$LINENO 141 as_lineno_2=$LINENO 142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 143 test "x$as_lineno_1" != "x$as_lineno_2" && 144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 147 CONFIG_SHELL=$as_dir/$as_base 148 export CONFIG_SHELL 149 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 150 fi;; 151 esac 152 done 153done 154;; 155 esac 156 157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 158 # uniformly replaced by the line number. The first 'sed' inserts a 159 # line-number line before each line; the second 'sed' does the real 160 # work. The second script uses 'N' to pair each line-number line 161 # with the numbered line, and appends trailing '-' during 162 # substitution so that $LINENO is not a special case at line end. 163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 165 sed '=' <$as_myself | 166 sed ' 167 N 168 s,$,-, 169 : loop 170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 171 t loop 172 s,-$,, 173 s,^['$as_cr_digits']*\n,, 174 ' >$as_me.lineno && 175 chmod +x $as_me.lineno || 176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 177 { (exit 1); exit 1; }; } 178 179 # Don't try to exec as it changes $[0], causing all sort of problems 180 # (the dirname of $[0] is not the place where we might find the 181 # original and so on. Autoconf is especially sensible to this). 182 . ./$as_me.lineno 183 # Exit status is that of the last command. 184 exit 185} 186 187 188case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 189 *c*,-n*) ECHO_N= ECHO_C=' 190' ECHO_T=' ' ;; 191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 193esac 194 195if expr a : '\(a\)' >/dev/null 2>&1; then 196 as_expr=expr 197else 198 as_expr=false 199fi 200 201rm -f conf$$ conf$$.exe conf$$.file 202echo >conf$$.file 203if ln -s conf$$.file conf$$ 2>/dev/null; then 204 # We could just check for DJGPP; but this test a) works b) is more generic 205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 206 if test -f conf$$.exe; then 207 # Don't use ln at all; we don't have any links 208 as_ln_s='cp -p' 209 else 210 as_ln_s='ln -s' 211 fi 212elif ln conf$$.file conf$$ 2>/dev/null; then 213 as_ln_s=ln 214else 215 as_ln_s='cp -p' 216fi 217rm -f conf$$ conf$$.exe conf$$.file 218 219if mkdir -p . 2>/dev/null; then 220 as_mkdir_p=: 221else 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244# Name of the host. 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246# so uname gets run too. 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249exec 6>&1 250 251# 252# Initializations. 253# 254ac_default_prefix=/usr/local 255ac_config_libobj_dir=. 256cross_compiling=no 257subdirs= 258MFLAGS= 259MAKEFLAGS= 260SHELL=${CONFIG_SHELL-/bin/sh} 261 262# Maximum number of lines to put in a shell here document. 263# This variable seems obsolete. It should probably be removed, and 264# only ac_max_sed_lines should be used. 265: ${ac_max_here_lines=38} 266 267# Identity of this package. 268PACKAGE_NAME= 269PACKAGE_TARNAME= 270PACKAGE_VERSION= 271PACKAGE_STRING= 272PACKAGE_BUGREPORT= 273 274ac_unique_file="tools/magic.A" 275# Factoring default headers for most tests. 276ac_includes_default="\ 277#include <stdio.h> 278#if HAVE_SYS_TYPES_H 279# include <sys/types.h> 280#endif 281#if HAVE_SYS_STAT_H 282# include <sys/stat.h> 283#endif 284#if STDC_HEADERS 285# include <stdlib.h> 286# include <stddef.h> 287#else 288# if HAVE_STDLIB_H 289# include <stdlib.h> 290# endif 291#endif 292#if HAVE_STRING_H 293# if !STDC_HEADERS && HAVE_MEMORY_H 294# include <memory.h> 295# endif 296# include <string.h> 297#endif 298#if HAVE_STRINGS_H 299# include <strings.h> 300#endif 301#if HAVE_INTTYPES_H 302# include <inttypes.h> 303#else 304# if HAVE_STDINT_H 305# include <stdint.h> 306# endif 307#endif 308#if HAVE_UNISTD_H 309# include <unistd.h> 310#endif" 311 312ac_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 DEBUG_INCLUDE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT F77 FFLAGS ac_ct_F77 SET_MAKE AWK YACC LEX LEXLIB LEX_OUTPUT_ROOT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB M4 F2C EFL RATFOR LS TR SED INFO HTML XHTML GNUPLOT XTERM ARFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP FFLAGS_NOOPT F77_RULE FTN_SUFFIX CDEFS BLAS LAPACK LOCAL_LIBS OPTOBJS LD_RUN_PATH LIBOBJS LTLIBOBJS' 313ac_subst_files='' 314 315# Initialize some variables set by options. 316ac_init_help= 317ac_init_version=false 318# The variables have the same names as the options, with 319# dashes changed to underlines. 320cache_file=/dev/null 321exec_prefix=NONE 322no_create= 323no_recursion= 324prefix=NONE 325program_prefix=NONE 326program_suffix=NONE 327program_transform_name=s,x,x, 328silent= 329site= 330srcdir= 331verbose= 332x_includes=NONE 333x_libraries=NONE 334 335# Installation directory options. 336# These are left unexpanded so users can "make install exec_prefix=/foo" 337# and all the variables that are supposed to be based on exec_prefix 338# by default will actually change. 339# Use braces instead of parens because sh, perl, etc. also accept them. 340bindir='${exec_prefix}/bin' 341sbindir='${exec_prefix}/sbin' 342libexecdir='${exec_prefix}/libexec' 343datadir='${prefix}/share' 344sysconfdir='${prefix}/etc' 345sharedstatedir='${prefix}/com' 346localstatedir='${prefix}/var' 347libdir='${exec_prefix}/lib' 348includedir='${prefix}/include' 349oldincludedir='/usr/include' 350infodir='${prefix}/info' 351mandir='${prefix}/man' 352 353ac_prev= 354for ac_option 355do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650done 651 652if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656fi 657 658# Be sure to have absolute paths. 659for ac_var in exec_prefix prefix 660do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667done 668 669# Be sure to have absolute paths. 670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679done 680 681# There might be people who depend on the old broken behavior: `$host' 682# used to hold the argument of --host etc. 683# FIXME: To remove some day. 684build=$build_alias 685host=$host_alias 686target=$target_alias 687 688# FIXME: To remove some day. 689if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697fi 698 699ac_tool_prefix= 700test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702test "$silent" = yes && exec 6>/dev/null 703 704 705# Find the source files, if location was not specified. 706if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725else 726 ac_srcdir_defaulted=no 727fi 728if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736fi 737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741ac_env_build_alias_set=${build_alias+set} 742ac_env_build_alias_value=$build_alias 743ac_cv_env_build_alias_set=${build_alias+set} 744ac_cv_env_build_alias_value=$build_alias 745ac_env_host_alias_set=${host_alias+set} 746ac_env_host_alias_value=$host_alias 747ac_cv_env_host_alias_set=${host_alias+set} 748ac_cv_env_host_alias_value=$host_alias 749ac_env_target_alias_set=${target_alias+set} 750ac_env_target_alias_value=$target_alias 751ac_cv_env_target_alias_set=${target_alias+set} 752ac_cv_env_target_alias_value=$target_alias 753ac_env_CC_set=${CC+set} 754ac_env_CC_value=$CC 755ac_cv_env_CC_set=${CC+set} 756ac_cv_env_CC_value=$CC 757ac_env_CFLAGS_set=${CFLAGS+set} 758ac_env_CFLAGS_value=$CFLAGS 759ac_cv_env_CFLAGS_set=${CFLAGS+set} 760ac_cv_env_CFLAGS_value=$CFLAGS 761ac_env_LDFLAGS_set=${LDFLAGS+set} 762ac_env_LDFLAGS_value=$LDFLAGS 763ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764ac_cv_env_LDFLAGS_value=$LDFLAGS 765ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766ac_env_CPPFLAGS_value=$CPPFLAGS 767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769ac_env_F77_set=${F77+set} 770ac_env_F77_value=$F77 771ac_cv_env_F77_set=${F77+set} 772ac_cv_env_F77_value=$F77 773ac_env_FFLAGS_set=${FFLAGS+set} 774ac_env_FFLAGS_value=$FFLAGS 775ac_cv_env_FFLAGS_set=${FFLAGS+set} 776ac_cv_env_FFLAGS_value=$FFLAGS 777ac_env_CPP_set=${CPP+set} 778ac_env_CPP_value=$CPP 779ac_cv_env_CPP_set=${CPP+set} 780ac_cv_env_CPP_value=$CPP 781 782# 783# Report the --help message. 784# 785if test "$ac_init_help" = "long"; then 786 # Omit some internal or obsolete options to make the list less imposing. 787 # This message is too long to be a string in the A/UX 3.1 sh. 788 cat <<_ACEOF 789\`configure' configures this package to adapt to many kinds of systems. 790 791Usage: $0 [OPTION]... [VAR=VALUE]... 792 793To assign environment variables (e.g., CC, CFLAGS...), specify them as 794VAR=VALUE. See below for descriptions of some of the useful variables. 795 796Defaults for the options are specified in brackets. 797 798Configuration: 799 -h, --help display this help and exit 800 --help=short display options specific to this package 801 --help=recursive display the short help of all the included packages 802 -V, --version display version information and exit 803 -q, --quiet, --silent do not print \`checking...' messages 804 --cache-file=FILE cache test results in FILE [disabled] 805 -C, --config-cache alias for \`--cache-file=config.cache' 806 -n, --no-create do not create output files 807 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 808 809_ACEOF 810 811 cat <<_ACEOF 812Installation directories: 813 --prefix=PREFIX install architecture-independent files in PREFIX 814 [$ac_default_prefix] 815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 816 [PREFIX] 817 818By default, \`make install' will install all the files in 819\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 820an installation prefix other than \`$ac_default_prefix' using \`--prefix', 821for instance \`--prefix=\$HOME'. 822 823For better control, use the options below. 824 825Fine tuning of the installation directories: 826 --bindir=DIR user executables [EPREFIX/bin] 827 --sbindir=DIR system admin executables [EPREFIX/sbin] 828 --libexecdir=DIR program executables [EPREFIX/libexec] 829 --datadir=DIR read-only architecture-independent data [PREFIX/share] 830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 832 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 833 --libdir=DIR object code libraries [EPREFIX/lib] 834 --includedir=DIR C header files [PREFIX/include] 835 --oldincludedir=DIR C header files for non-gcc [/usr/include] 836 --infodir=DIR info documentation [PREFIX/info] 837 --mandir=DIR man documentation [PREFIX/man] 838_ACEOF 839 840 cat <<\_ACEOF 841 842System types: 843 --build=BUILD configure for building on BUILD [guessed] 844 --host=HOST cross-compile to build programs to run on HOST [BUILD] 845_ACEOF 846fi 847 848if test -n "$ac_init_help"; then 849 850 cat <<\_ACEOF 851 852Optional Features: 853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 855 --enable-debug enable debugging (and significantly decrease 856 execution speed). 857 --enable-superludebug enable SuperLU debugging (and significant 858 decrease in execution speed and lots of output). 859 --disable-dlmalloc disable the dlmalloc package, and use the 860 system's malloc instead. 861 --enable-both-fft enable both legacy FFT code and fftw. This is 862 intended only for debugging and performance 863 comparisons. 864 865Optional Packages: 866 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 867 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 868 --with-local=DIR search for libraries (readline, BLAS, LAPACK, 869 f2c, etc.) in directory (absolute path) DIR. The 870 directory /usr/local/lib is searched by default. 871 --with-dbmalloc use Conor Cahill's dbmalloc package to debug 872 memory allocation. The "malloc.h" is expected 873 to be in /usr/local/debug_include. 874 --with-dmalloc use Gray Watson's dmalloc package to debug 875 memory allocation. 876 --with-f2c=DIR search for f2c headers in DIR/include and 877 libraries in DIR/lib. 878 --with-fortran-libs=DIR use Fortran libraries in directory (absolute 879 path) DIR. 880 --with-readline=DIR use Readline for fancy command line editing. 881 If (absolute path) DIR is not specified, search in 882 the directory specified by the --with-local 883 option. 884 --with-fftw=DIR use fftw for fast Fourier transforms, instead 885 of the routines supplied by Algae. This is highly 886 recommended -- see http://www.fftw.org/ for details. 887 If (absolute path) DIR is given, look in DIR/lib. 888 --with-blas=DIR use BLAS library in directory (absolute path) 889 DIR. If DIR is not specified, search where 890 directed by the --with-local option. 891 --with-lapack=DIR use LAPACK library in directory (absolute path) 892 DIR. If DIR is not specified, search where 893 directed by the --with-local option. 894 --with-bcslib=DIR use BCSLIB library in directory (absolute path) 895 DIR. If DIR is not specified, search where 896 directed by the --with-local option. 897 --with-npsol=DIR use the NPSOL optimization package in libnpsol.a. 898 If (absolute path) DIR is not specified, search in 899 the directory specified by the --with-local 900 option. 901 902Some influential environment variables: 903 CC C compiler command 904 CFLAGS C compiler flags 905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 906 nonstandard directory <lib dir> 907 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 908 headers in a nonstandard directory <include dir> 909 F77 Fortran 77 compiler command 910 FFLAGS Fortran 77 compiler flags 911 CPP C preprocessor 912 913Use these variables to override the choices made by `configure' or to help 914it to find libraries and programs with nonstandard names/locations. 915 916_ACEOF 917fi 918 919if test "$ac_init_help" = "recursive"; then 920 # If there are subdirs, report their specific --help. 921 ac_popdir=`pwd` 922 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 923 test -d $ac_dir || continue 924 ac_builddir=. 925 926if test "$ac_dir" != .; then 927 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 928 # A "../" for each directory in $ac_dir_suffix. 929 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 930else 931 ac_dir_suffix= ac_top_builddir= 932fi 933 934case $srcdir in 935 .) # No --srcdir option. We are building in place. 936 ac_srcdir=. 937 if test -z "$ac_top_builddir"; then 938 ac_top_srcdir=. 939 else 940 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 941 fi ;; 942 [\\/]* | ?:[\\/]* ) # Absolute path. 943 ac_srcdir=$srcdir$ac_dir_suffix; 944 ac_top_srcdir=$srcdir ;; 945 *) # Relative path. 946 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 947 ac_top_srcdir=$ac_top_builddir$srcdir ;; 948esac 949# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 950# absolute. 951ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 952ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 953ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 954ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 955 956 cd $ac_dir 957 # Check for guested configure; otherwise get Cygnus style configure. 958 if test -f $ac_srcdir/configure.gnu; then 959 echo 960 $SHELL $ac_srcdir/configure.gnu --help=recursive 961 elif test -f $ac_srcdir/configure; then 962 echo 963 $SHELL $ac_srcdir/configure --help=recursive 964 elif test -f $ac_srcdir/configure.ac || 965 test -f $ac_srcdir/configure.in; then 966 echo 967 $ac_configure --help 968 else 969 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 970 fi 971 cd $ac_popdir 972 done 973fi 974 975test -n "$ac_init_help" && exit 0 976if $ac_init_version; then 977 cat <<\_ACEOF 978 979Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 980Free Software Foundation, Inc. 981This configure script is free software; the Free Software Foundation 982gives unlimited permission to copy, distribute and modify it. 983_ACEOF 984 exit 0 985fi 986exec 5>config.log 987cat >&5 <<_ACEOF 988This file contains any messages produced by compilers while 989running configure, to aid debugging if configure makes a mistake. 990 991It was created by $as_me, which was 992generated by GNU Autoconf 2.57. Invocation command line was 993 994 $ $0 $@ 995 996_ACEOF 997{ 998cat <<_ASUNAME 999## --------- ## 1000## Platform. ## 1001## --------- ## 1002 1003hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1004uname -m = `(uname -m) 2>/dev/null || echo unknown` 1005uname -r = `(uname -r) 2>/dev/null || echo unknown` 1006uname -s = `(uname -s) 2>/dev/null || echo unknown` 1007uname -v = `(uname -v) 2>/dev/null || echo unknown` 1008 1009/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1010/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1011 1012/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1013/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1014/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1015hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1016/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1017/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1018/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1019 1020_ASUNAME 1021 1022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1023for as_dir in $PATH 1024do 1025 IFS=$as_save_IFS 1026 test -z "$as_dir" && as_dir=. 1027 echo "PATH: $as_dir" 1028done 1029 1030} >&5 1031 1032cat >&5 <<_ACEOF 1033 1034 1035## ----------- ## 1036## Core tests. ## 1037## ----------- ## 1038 1039_ACEOF 1040 1041 1042# Keep a trace of the command line. 1043# Strip out --no-create and --no-recursion so they do not pile up. 1044# Strip out --silent because we don't want to record it for future runs. 1045# Also quote any args containing shell meta-characters. 1046# Make two passes to allow for proper duplicate-argument suppression. 1047ac_configure_args= 1048ac_configure_args0= 1049ac_configure_args1= 1050ac_sep= 1051ac_must_keep_next=false 1052for ac_pass in 1 2 1053do 1054 for ac_arg 1055 do 1056 case $ac_arg in 1057 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1059 | -silent | --silent | --silen | --sile | --sil) 1060 continue ;; 1061 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1062 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1063 esac 1064 case $ac_pass in 1065 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1066 2) 1067 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1068 if test $ac_must_keep_next = true; then 1069 ac_must_keep_next=false # Got value, back to normal. 1070 else 1071 case $ac_arg in 1072 *=* | --config-cache | -C | -disable-* | --disable-* \ 1073 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1074 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1075 | -with-* | --with-* | -without-* | --without-* | --x) 1076 case "$ac_configure_args0 " in 1077 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1078 esac 1079 ;; 1080 -* ) ac_must_keep_next=true ;; 1081 esac 1082 fi 1083 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1084 # Get rid of the leading space. 1085 ac_sep=" " 1086 ;; 1087 esac 1088 done 1089done 1090$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1091$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1092 1093# When interrupted or exit'd, cleanup temporary files, and complete 1094# config.log. We remove comments because anyway the quotes in there 1095# would cause problems or look ugly. 1096# WARNING: Be sure not to use single quotes in there, as some shells, 1097# such as our DU 5.0 friend, will then `close' the trap. 1098trap 'exit_status=$? 1099 # Save into config.log some information that might help in debugging. 1100 { 1101 echo 1102 1103 cat <<\_ASBOX 1104## ---------------- ## 1105## Cache variables. ## 1106## ---------------- ## 1107_ASBOX 1108 echo 1109 # The following way of writing the cache mishandles newlines in values, 1110{ 1111 (set) 2>&1 | 1112 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1113 *ac_space=\ *) 1114 sed -n \ 1115 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1117 ;; 1118 *) 1119 sed -n \ 1120 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1121 ;; 1122 esac; 1123} 1124 echo 1125 1126 cat <<\_ASBOX 1127## ----------------- ## 1128## Output variables. ## 1129## ----------------- ## 1130_ASBOX 1131 echo 1132 for ac_var in $ac_subst_vars 1133 do 1134 eval ac_val=$`echo $ac_var` 1135 echo "$ac_var='"'"'$ac_val'"'"'" 1136 done | sort 1137 echo 1138 1139 if test -n "$ac_subst_files"; then 1140 cat <<\_ASBOX 1141## ------------- ## 1142## Output files. ## 1143## ------------- ## 1144_ASBOX 1145 echo 1146 for ac_var in $ac_subst_files 1147 do 1148 eval ac_val=$`echo $ac_var` 1149 echo "$ac_var='"'"'$ac_val'"'"'" 1150 done | sort 1151 echo 1152 fi 1153 1154 if test -s confdefs.h; then 1155 cat <<\_ASBOX 1156## ----------- ## 1157## confdefs.h. ## 1158## ----------- ## 1159_ASBOX 1160 echo 1161 sed "/^$/d" confdefs.h | sort 1162 echo 1163 fi 1164 test "$ac_signal" != 0 && 1165 echo "$as_me: caught signal $ac_signal" 1166 echo "$as_me: exit $exit_status" 1167 } >&5 1168 rm -f core core.* *.core && 1169 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1170 exit $exit_status 1171 ' 0 1172for ac_signal in 1 2 13 15; do 1173 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1174done 1175ac_signal=0 1176 1177# confdefs.h avoids OS command line length limits that DEFS can exceed. 1178rm -rf conftest* confdefs.h 1179# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1180echo >confdefs.h 1181 1182# Predefined preprocessor variables. 1183 1184cat >>confdefs.h <<_ACEOF 1185#define PACKAGE_NAME "$PACKAGE_NAME" 1186_ACEOF 1187 1188 1189cat >>confdefs.h <<_ACEOF 1190#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1191_ACEOF 1192 1193 1194cat >>confdefs.h <<_ACEOF 1195#define PACKAGE_VERSION "$PACKAGE_VERSION" 1196_ACEOF 1197 1198 1199cat >>confdefs.h <<_ACEOF 1200#define PACKAGE_STRING "$PACKAGE_STRING" 1201_ACEOF 1202 1203 1204cat >>confdefs.h <<_ACEOF 1205#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1206_ACEOF 1207 1208 1209# Let the site file select an alternate cache file if it wants to. 1210# Prefer explicitly selected file to automatically selected ones. 1211if test -z "$CONFIG_SITE"; then 1212 if test "x$prefix" != xNONE; then 1213 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1214 else 1215 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1216 fi 1217fi 1218for ac_site_file in $CONFIG_SITE; do 1219 if test -r "$ac_site_file"; then 1220 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1221echo "$as_me: loading site script $ac_site_file" >&6;} 1222 sed 's/^/| /' "$ac_site_file" >&5 1223 . "$ac_site_file" 1224 fi 1225done 1226 1227if test -r "$cache_file"; then 1228 # Some versions of bash will fail to source /dev/null (special 1229 # files actually), so we avoid doing that. 1230 if test -f "$cache_file"; then 1231 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1232echo "$as_me: loading cache $cache_file" >&6;} 1233 case $cache_file in 1234 [\\/]* | ?:[\\/]* ) . $cache_file;; 1235 *) . ./$cache_file;; 1236 esac 1237 fi 1238else 1239 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1240echo "$as_me: creating cache $cache_file" >&6;} 1241 >$cache_file 1242fi 1243 1244# Check that the precious variables saved in the cache have kept the same 1245# value. 1246ac_cache_corrupted=false 1247for ac_var in `(set) 2>&1 | 1248 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1249 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1250 eval ac_new_set=\$ac_env_${ac_var}_set 1251 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1252 eval ac_new_val="\$ac_env_${ac_var}_value" 1253 case $ac_old_set,$ac_new_set in 1254 set,) 1255 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1256echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1257 ac_cache_corrupted=: ;; 1258 ,set) 1259 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1260echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1261 ac_cache_corrupted=: ;; 1262 ,);; 1263 *) 1264 if test "x$ac_old_val" != "x$ac_new_val"; then 1265 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1266echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1267 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1268echo "$as_me: former value: $ac_old_val" >&2;} 1269 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1270echo "$as_me: current value: $ac_new_val" >&2;} 1271 ac_cache_corrupted=: 1272 fi;; 1273 esac 1274 # Pass precious variables to config.status. 1275 if test "$ac_new_set" = set; then 1276 case $ac_new_val in 1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1278 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1279 *) ac_arg=$ac_var=$ac_new_val ;; 1280 esac 1281 case " $ac_configure_args " in 1282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1283 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1284 esac 1285 fi 1286done 1287if $ac_cache_corrupted; then 1288 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1289echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1290 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1291echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1292 { (exit 1); exit 1; }; } 1293fi 1294 1295ac_ext=c 1296ac_cpp='$CPP $CPPFLAGS' 1297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1299ac_compiler_gnu=$ac_cv_c_compiler_gnu 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320#--------------------------------------------------------------------- 1321# Set up the "config.h" file. 1322#--------------------------------------------------------------------- 1323 1324 ac_config_headers="$ac_config_headers config.h" 1325 1326 1327#--------------------------------------------------------------------- 1328# Various commands for compiling and linking Fortran. 1329#--------------------------------------------------------------------- 1330 1331LIBS="$LIBS -lm" 1332f77_compile='${F77-f77} $FFLAGS -c conftest.f 1>&5 2>&5' 1333f77_make='make F77="${F77-f77}" FFLAGS="$FFLAGS" -f conftest.mak conftest.o 1>&5 2>&5' 1334c_f77_link='(${F77-f77} $FFLAGS -c conftestf.f && ${CC-cc} $CFLAGS $CPPFLAGS conftest.c conftestf.o -o conftest $LDFLAGS $LIBS) 1>&5 2>&5' 1335 1336# The next two don't include LDFLAGS, because some loser f77 compilers 1337# (like on hp) do their own thing with the -L option. 1338 1339f77_link='${F77-f77} $FFLAGS conftest.f -o conftest $LIBS 1>&5 2>&5' 1340f77_c_link='(${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c && ${F77-f77} $FFLAGS conftestf.f conftest.o -o conftest $LIBS) 1>&5 2>&5' 1341 1342#--------------------------------------------------------------------- 1343# Specify location of "local" libraries like readline, BLAS, etc. 1344#--------------------------------------------------------------------- 1345 1346if test "${LDFLAGS+set}" != set; then 1347 LDFLAGS_not_set=yes 1348fi 1349 1350 1351# Check whether --with-local or --without-local was given. 1352if test "${with_local+set}" = set; then 1353 withval="$with_local" 1354 case "${withval}" in 1355 y | yes ) local_dir="/usr/local/lib" ;; 1356 n | no ) local_dir="" ;; 1357 * ) local_dir="${withval}" ;; 1358 esac 1359else 1360 local_dir="/usr/local/lib" 1361fi; 1362if test -n "$local_dir"; then 1363 LDFLAGS="$LDFLAGS -L$local_dir" 1364 runtime_libs="$local_dir" 1365fi 1366 1367#--------------------------------------------------------------------- 1368# Provide debugging support. 1369#--------------------------------------------------------------------- 1370 1371# Check whether --enable-debug or --disable-debug was given. 1372if test "${enable_debug+set}" = set; then 1373 enableval="$enable_debug" 1374 case "${enableval}" in 1375 y | yes ) cat >>confdefs.h <<\_ACEOF 1376#define DEBUG 1 1377_ACEOF 1378 ;; 1379 * ) cat >>confdefs.h <<\_ACEOF 1380#define DEBUG 0 1381_ACEOF 1382 ;; 1383 esac 1384else 1385 cat >>confdefs.h <<\_ACEOF 1386#define DEBUG 0 1387_ACEOF 1388 1389fi; 1390 1391# Check whether --enable-superludebug or --disable-superludebug was given. 1392if test "${enable_superludebug+set}" = set; then 1393 enableval="$enable_superludebug" 1394 case "${enableval}" in 1395 y | yes ) cat >>confdefs.h <<\_ACEOF 1396#define SUPERLU_DEBUG 1 1397_ACEOF 1398 ;; 1399 * ) cat >>confdefs.h <<\_ACEOF 1400#define SUPERLU_DEBUG 0 1401_ACEOF 1402 ;; 1403 esac 1404else 1405 cat >>confdefs.h <<\_ACEOF 1406#define SUPERLU_DEBUG 0 1407_ACEOF 1408 1409fi; 1410 1411 1412# Check whether --with-dbmalloc or --without-dbmalloc was given. 1413if test "${with_dbmalloc+set}" = set; then 1414 withval="$with_dbmalloc" 1415 DEBUG_INCLUDE="-I/usr/local/debug_include" 1416 LIBS="$LIBS -ldbmalloc" 1417 1418fi; 1419 1420 1421# Check whether --with-dmalloc or --without-dmalloc was given. 1422if test "${with_dmalloc+set}" = set; then 1423 withval="$with_dmalloc" 1424 LIBS="$LIBS -ldmalloc" 1425 cat >>confdefs.h <<\_ACEOF 1426#define DMALLOC 1 1427_ACEOF 1428 1429fi; 1430 1431#--------------------------------------------------------------------- 1432# Use Doug Lea's dlmalloc package by default. 1433#--------------------------------------------------------------------- 1434 1435# Check whether --enable-dlmalloc or --disable-dlmalloc was given. 1436if test "${enable_dlmalloc+set}" = set; then 1437 enableval="$enable_dlmalloc" 1438 case "${enableval}" in 1439 n | no ) cat >>confdefs.h <<\_ACEOF 1440#define USE_DLMALLOC 0 1441_ACEOF 1442 ;; 1443 * ) cat >>confdefs.h <<\_ACEOF 1444#define USE_DLMALLOC 1 1445_ACEOF 1446 ;; 1447 esac 1448else 1449 cat >>confdefs.h <<\_ACEOF 1450#define USE_DLMALLOC 1 1451_ACEOF 1452 1453fi; 1454 1455#--------------------------------------------------------------------- 1456# Determine which C compiler to use. If CFLAGS isn't set, then we'll 1457# give it a value later, after we figure out what machine we're on. 1458#--------------------------------------------------------------------- 1459 1460if test "${CFLAGS+set}" != set; then 1461 CFLAGS_not_set=yes 1462fi 1463ac_ext=c 1464ac_cpp='$CPP $CPPFLAGS' 1465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1467ac_compiler_gnu=$ac_cv_c_compiler_gnu 1468if test -n "$ac_tool_prefix"; then 1469 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1470set dummy ${ac_tool_prefix}gcc; ac_word=$2 1471echo "$as_me:$LINENO: checking for $ac_word" >&5 1472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1473if test "${ac_cv_prog_CC+set}" = set; then 1474 echo $ECHO_N "(cached) $ECHO_C" >&6 1475else 1476 if test -n "$CC"; then 1477 ac_cv_prog_CC="$CC" # Let the user override the test. 1478else 1479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1480for as_dir in $PATH 1481do 1482 IFS=$as_save_IFS 1483 test -z "$as_dir" && as_dir=. 1484 for ac_exec_ext in '' $ac_executable_extensions; do 1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1486 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1488 break 2 1489 fi 1490done 1491done 1492 1493fi 1494fi 1495CC=$ac_cv_prog_CC 1496if test -n "$CC"; then 1497 echo "$as_me:$LINENO: result: $CC" >&5 1498echo "${ECHO_T}$CC" >&6 1499else 1500 echo "$as_me:$LINENO: result: no" >&5 1501echo "${ECHO_T}no" >&6 1502fi 1503 1504fi 1505if test -z "$ac_cv_prog_CC"; then 1506 ac_ct_CC=$CC 1507 # Extract the first word of "gcc", so it can be a program name with args. 1508set dummy gcc; ac_word=$2 1509echo "$as_me:$LINENO: checking for $ac_word" >&5 1510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1511if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1512 echo $ECHO_N "(cached) $ECHO_C" >&6 1513else 1514 if test -n "$ac_ct_CC"; then 1515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1516else 1517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1518for as_dir in $PATH 1519do 1520 IFS=$as_save_IFS 1521 test -z "$as_dir" && as_dir=. 1522 for ac_exec_ext in '' $ac_executable_extensions; do 1523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1524 ac_cv_prog_ac_ct_CC="gcc" 1525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1526 break 2 1527 fi 1528done 1529done 1530 1531fi 1532fi 1533ac_ct_CC=$ac_cv_prog_ac_ct_CC 1534if test -n "$ac_ct_CC"; then 1535 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1536echo "${ECHO_T}$ac_ct_CC" >&6 1537else 1538 echo "$as_me:$LINENO: result: no" >&5 1539echo "${ECHO_T}no" >&6 1540fi 1541 1542 CC=$ac_ct_CC 1543else 1544 CC="$ac_cv_prog_CC" 1545fi 1546 1547if test -z "$CC"; then 1548 if test -n "$ac_tool_prefix"; then 1549 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1550set dummy ${ac_tool_prefix}cc; ac_word=$2 1551echo "$as_me:$LINENO: checking for $ac_word" >&5 1552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1553if test "${ac_cv_prog_CC+set}" = set; then 1554 echo $ECHO_N "(cached) $ECHO_C" >&6 1555else 1556 if test -n "$CC"; then 1557 ac_cv_prog_CC="$CC" # Let the user override the test. 1558else 1559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1560for as_dir in $PATH 1561do 1562 IFS=$as_save_IFS 1563 test -z "$as_dir" && as_dir=. 1564 for ac_exec_ext in '' $ac_executable_extensions; do 1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1566 ac_cv_prog_CC="${ac_tool_prefix}cc" 1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1568 break 2 1569 fi 1570done 1571done 1572 1573fi 1574fi 1575CC=$ac_cv_prog_CC 1576if test -n "$CC"; then 1577 echo "$as_me:$LINENO: result: $CC" >&5 1578echo "${ECHO_T}$CC" >&6 1579else 1580 echo "$as_me:$LINENO: result: no" >&5 1581echo "${ECHO_T}no" >&6 1582fi 1583 1584fi 1585if test -z "$ac_cv_prog_CC"; then 1586 ac_ct_CC=$CC 1587 # Extract the first word of "cc", so it can be a program name with args. 1588set dummy cc; ac_word=$2 1589echo "$as_me:$LINENO: checking for $ac_word" >&5 1590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1591if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1592 echo $ECHO_N "(cached) $ECHO_C" >&6 1593else 1594 if test -n "$ac_ct_CC"; then 1595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1596else 1597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1598for as_dir in $PATH 1599do 1600 IFS=$as_save_IFS 1601 test -z "$as_dir" && as_dir=. 1602 for ac_exec_ext in '' $ac_executable_extensions; do 1603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1604 ac_cv_prog_ac_ct_CC="cc" 1605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1606 break 2 1607 fi 1608done 1609done 1610 1611fi 1612fi 1613ac_ct_CC=$ac_cv_prog_ac_ct_CC 1614if test -n "$ac_ct_CC"; then 1615 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1616echo "${ECHO_T}$ac_ct_CC" >&6 1617else 1618 echo "$as_me:$LINENO: result: no" >&5 1619echo "${ECHO_T}no" >&6 1620fi 1621 1622 CC=$ac_ct_CC 1623else 1624 CC="$ac_cv_prog_CC" 1625fi 1626 1627fi 1628if test -z "$CC"; then 1629 # Extract the first word of "cc", so it can be a program name with args. 1630set dummy cc; ac_word=$2 1631echo "$as_me:$LINENO: checking for $ac_word" >&5 1632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1633if test "${ac_cv_prog_CC+set}" = set; then 1634 echo $ECHO_N "(cached) $ECHO_C" >&6 1635else 1636 if test -n "$CC"; then 1637 ac_cv_prog_CC="$CC" # Let the user override the test. 1638else 1639 ac_prog_rejected=no 1640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1641for as_dir in $PATH 1642do 1643 IFS=$as_save_IFS 1644 test -z "$as_dir" && as_dir=. 1645 for ac_exec_ext in '' $ac_executable_extensions; do 1646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1647 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1648 ac_prog_rejected=yes 1649 continue 1650 fi 1651 ac_cv_prog_CC="cc" 1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1653 break 2 1654 fi 1655done 1656done 1657 1658if test $ac_prog_rejected = yes; then 1659 # We found a bogon in the path, so make sure we never use it. 1660 set dummy $ac_cv_prog_CC 1661 shift 1662 if test $# != 0; then 1663 # We chose a different compiler from the bogus one. 1664 # However, it has the same basename, so the bogon will be chosen 1665 # first if we set CC to just the basename; use the full file name. 1666 shift 1667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1668 fi 1669fi 1670fi 1671fi 1672CC=$ac_cv_prog_CC 1673if test -n "$CC"; then 1674 echo "$as_me:$LINENO: result: $CC" >&5 1675echo "${ECHO_T}$CC" >&6 1676else 1677 echo "$as_me:$LINENO: result: no" >&5 1678echo "${ECHO_T}no" >&6 1679fi 1680 1681fi 1682if test -z "$CC"; then 1683 if test -n "$ac_tool_prefix"; then 1684 for ac_prog in cl 1685 do 1686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1687set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1688echo "$as_me:$LINENO: checking for $ac_word" >&5 1689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1690if test "${ac_cv_prog_CC+set}" = set; then 1691 echo $ECHO_N "(cached) $ECHO_C" >&6 1692else 1693 if test -n "$CC"; then 1694 ac_cv_prog_CC="$CC" # Let the user override the test. 1695else 1696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1697for as_dir in $PATH 1698do 1699 IFS=$as_save_IFS 1700 test -z "$as_dir" && as_dir=. 1701 for ac_exec_ext in '' $ac_executable_extensions; do 1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1703 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1705 break 2 1706 fi 1707done 1708done 1709 1710fi 1711fi 1712CC=$ac_cv_prog_CC 1713if test -n "$CC"; then 1714 echo "$as_me:$LINENO: result: $CC" >&5 1715echo "${ECHO_T}$CC" >&6 1716else 1717 echo "$as_me:$LINENO: result: no" >&5 1718echo "${ECHO_T}no" >&6 1719fi 1720 1721 test -n "$CC" && break 1722 done 1723fi 1724if test -z "$CC"; then 1725 ac_ct_CC=$CC 1726 for ac_prog in cl 1727do 1728 # Extract the first word of "$ac_prog", so it can be a program name with args. 1729set dummy $ac_prog; ac_word=$2 1730echo "$as_me:$LINENO: checking for $ac_word" >&5 1731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1732if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1733 echo $ECHO_N "(cached) $ECHO_C" >&6 1734else 1735 if test -n "$ac_ct_CC"; then 1736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1737else 1738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1739for as_dir in $PATH 1740do 1741 IFS=$as_save_IFS 1742 test -z "$as_dir" && as_dir=. 1743 for ac_exec_ext in '' $ac_executable_extensions; do 1744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1745 ac_cv_prog_ac_ct_CC="$ac_prog" 1746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1747 break 2 1748 fi 1749done 1750done 1751 1752fi 1753fi 1754ac_ct_CC=$ac_cv_prog_ac_ct_CC 1755if test -n "$ac_ct_CC"; then 1756 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1757echo "${ECHO_T}$ac_ct_CC" >&6 1758else 1759 echo "$as_me:$LINENO: result: no" >&5 1760echo "${ECHO_T}no" >&6 1761fi 1762 1763 test -n "$ac_ct_CC" && break 1764done 1765 1766 CC=$ac_ct_CC 1767fi 1768 1769fi 1770 1771 1772test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1773See \`config.log' for more details." >&5 1774echo "$as_me: error: no acceptable C compiler found in \$PATH 1775See \`config.log' for more details." >&2;} 1776 { (exit 1); exit 1; }; } 1777 1778# Provide some information about the compiler. 1779echo "$as_me:$LINENO:" \ 1780 "checking for C compiler version" >&5 1781ac_compiler=`set X $ac_compile; echo $2` 1782{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1783 (eval $ac_compiler --version </dev/null >&5) 2>&5 1784 ac_status=$? 1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1786 (exit $ac_status); } 1787{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1788 (eval $ac_compiler -v </dev/null >&5) 2>&5 1789 ac_status=$? 1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1791 (exit $ac_status); } 1792{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1793 (eval $ac_compiler -V </dev/null >&5) 2>&5 1794 ac_status=$? 1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1796 (exit $ac_status); } 1797 1798cat >conftest.$ac_ext <<_ACEOF 1799#line $LINENO "configure" 1800/* confdefs.h. */ 1801_ACEOF 1802cat confdefs.h >>conftest.$ac_ext 1803cat >>conftest.$ac_ext <<_ACEOF 1804/* end confdefs.h. */ 1805 1806int 1807main () 1808{ 1809 1810 ; 1811 return 0; 1812} 1813_ACEOF 1814ac_clean_files_save=$ac_clean_files 1815ac_clean_files="$ac_clean_files a.out a.exe b.out" 1816# Try to create an executable without -o first, disregard a.out. 1817# It will help us diagnose broken compilers, and finding out an intuition 1818# of exeext. 1819echo "$as_me:$LINENO: checking for C compiler default output" >&5 1820echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1821ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1822if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1823 (eval $ac_link_default) 2>&5 1824 ac_status=$? 1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1826 (exit $ac_status); }; then 1827 # Find the output, starting from the most likely. This scheme is 1828# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1829# resort. 1830 1831# Be careful to initialize this variable, since it used to be cached. 1832# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1833ac_cv_exeext= 1834# b.out is created by i960 compilers. 1835for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1836do 1837 test -f "$ac_file" || continue 1838 case $ac_file in 1839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1840 ;; 1841 conftest.$ac_ext ) 1842 # This is the source file. 1843 ;; 1844 [ab].out ) 1845 # We found the default executable, but exeext='' is most 1846 # certainly right. 1847 break;; 1848 *.* ) 1849 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1850 # FIXME: I believe we export ac_cv_exeext for Libtool, 1851 # but it would be cool to find out if it's true. Does anybody 1852 # maintain Libtool? --akim. 1853 export ac_cv_exeext 1854 break;; 1855 * ) 1856 break;; 1857 esac 1858done 1859else 1860 echo "$as_me: failed program was:" >&5 1861sed 's/^/| /' conftest.$ac_ext >&5 1862 1863{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1864See \`config.log' for more details." >&5 1865echo "$as_me: error: C compiler cannot create executables 1866See \`config.log' for more details." >&2;} 1867 { (exit 77); exit 77; }; } 1868fi 1869 1870ac_exeext=$ac_cv_exeext 1871echo "$as_me:$LINENO: result: $ac_file" >&5 1872echo "${ECHO_T}$ac_file" >&6 1873 1874# Check the compiler produces executables we can run. If not, either 1875# the compiler is broken, or we cross compile. 1876echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1877echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1878# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1879# If not cross compiling, check that we can run a simple program. 1880if test "$cross_compiling" != yes; then 1881 if { ac_try='./$ac_file' 1882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1883 (eval $ac_try) 2>&5 1884 ac_status=$? 1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1886 (exit $ac_status); }; }; then 1887 cross_compiling=no 1888 else 1889 if test "$cross_compiling" = maybe; then 1890 cross_compiling=yes 1891 else 1892 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1893If you meant to cross compile, use \`--host'. 1894See \`config.log' for more details." >&5 1895echo "$as_me: error: cannot run C compiled programs. 1896If you meant to cross compile, use \`--host'. 1897See \`config.log' for more details." >&2;} 1898 { (exit 1); exit 1; }; } 1899 fi 1900 fi 1901fi 1902echo "$as_me:$LINENO: result: yes" >&5 1903echo "${ECHO_T}yes" >&6 1904 1905rm -f a.out a.exe conftest$ac_cv_exeext b.out 1906ac_clean_files=$ac_clean_files_save 1907# Check the compiler produces executables we can run. If not, either 1908# the compiler is broken, or we cross compile. 1909echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1910echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1911echo "$as_me:$LINENO: result: $cross_compiling" >&5 1912echo "${ECHO_T}$cross_compiling" >&6 1913 1914echo "$as_me:$LINENO: checking for suffix of executables" >&5 1915echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1917 (eval $ac_link) 2>&5 1918 ac_status=$? 1919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1920 (exit $ac_status); }; then 1921 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1922# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1923# work properly (i.e., refer to `conftest.exe'), while it won't with 1924# `rm'. 1925for ac_file in conftest.exe conftest conftest.*; do 1926 test -f "$ac_file" || continue 1927 case $ac_file in 1928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1929 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1930 export ac_cv_exeext 1931 break;; 1932 * ) break;; 1933 esac 1934done 1935else 1936 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1937See \`config.log' for more details." >&5 1938echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1939See \`config.log' for more details." >&2;} 1940 { (exit 1); exit 1; }; } 1941fi 1942 1943rm -f conftest$ac_cv_exeext 1944echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1945echo "${ECHO_T}$ac_cv_exeext" >&6 1946 1947rm -f conftest.$ac_ext 1948EXEEXT=$ac_cv_exeext 1949ac_exeext=$EXEEXT 1950echo "$as_me:$LINENO: checking for suffix of object files" >&5 1951echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1952if test "${ac_cv_objext+set}" = set; then 1953 echo $ECHO_N "(cached) $ECHO_C" >&6 1954else 1955 cat >conftest.$ac_ext <<_ACEOF 1956#line $LINENO "configure" 1957/* confdefs.h. */ 1958_ACEOF 1959cat confdefs.h >>conftest.$ac_ext 1960cat >>conftest.$ac_ext <<_ACEOF 1961/* end confdefs.h. */ 1962 1963int 1964main () 1965{ 1966 1967 ; 1968 return 0; 1969} 1970_ACEOF 1971rm -f conftest.o conftest.obj 1972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1973 (eval $ac_compile) 2>&5 1974 ac_status=$? 1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1976 (exit $ac_status); }; then 1977 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1978 case $ac_file in 1979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1981 break;; 1982 esac 1983done 1984else 1985 echo "$as_me: failed program was:" >&5 1986sed 's/^/| /' conftest.$ac_ext >&5 1987 1988{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1989See \`config.log' for more details." >&5 1990echo "$as_me: error: cannot compute suffix of object files: cannot compile 1991See \`config.log' for more details." >&2;} 1992 { (exit 1); exit 1; }; } 1993fi 1994 1995rm -f conftest.$ac_cv_objext conftest.$ac_ext 1996fi 1997echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1998echo "${ECHO_T}$ac_cv_objext" >&6 1999OBJEXT=$ac_cv_objext 2000ac_objext=$OBJEXT 2001echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2002echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2003if test "${ac_cv_c_compiler_gnu+set}" = set; then 2004 echo $ECHO_N "(cached) $ECHO_C" >&6 2005else 2006 cat >conftest.$ac_ext <<_ACEOF 2007#line $LINENO "configure" 2008/* confdefs.h. */ 2009_ACEOF 2010cat confdefs.h >>conftest.$ac_ext 2011cat >>conftest.$ac_ext <<_ACEOF 2012/* end confdefs.h. */ 2013 2014int 2015main () 2016{ 2017#ifndef __GNUC__ 2018 choke me 2019#endif 2020 2021 ; 2022 return 0; 2023} 2024_ACEOF 2025rm -f conftest.$ac_objext 2026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2027 (eval $ac_compile) 2>&5 2028 ac_status=$? 2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2030 (exit $ac_status); } && 2031 { ac_try='test -s conftest.$ac_objext' 2032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2033 (eval $ac_try) 2>&5 2034 ac_status=$? 2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2036 (exit $ac_status); }; }; then 2037 ac_compiler_gnu=yes 2038else 2039 echo "$as_me: failed program was:" >&5 2040sed 's/^/| /' conftest.$ac_ext >&5 2041 2042ac_compiler_gnu=no 2043fi 2044rm -f conftest.$ac_objext conftest.$ac_ext 2045ac_cv_c_compiler_gnu=$ac_compiler_gnu 2046 2047fi 2048echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2049echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2050GCC=`test $ac_compiler_gnu = yes && echo yes` 2051ac_test_CFLAGS=${CFLAGS+set} 2052ac_save_CFLAGS=$CFLAGS 2053CFLAGS="-g" 2054echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2055echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2056if test "${ac_cv_prog_cc_g+set}" = set; then 2057 echo $ECHO_N "(cached) $ECHO_C" >&6 2058else 2059 cat >conftest.$ac_ext <<_ACEOF 2060#line $LINENO "configure" 2061/* confdefs.h. */ 2062_ACEOF 2063cat confdefs.h >>conftest.$ac_ext 2064cat >>conftest.$ac_ext <<_ACEOF 2065/* end confdefs.h. */ 2066 2067int 2068main () 2069{ 2070 2071 ; 2072 return 0; 2073} 2074_ACEOF 2075rm -f conftest.$ac_objext 2076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2077 (eval $ac_compile) 2>&5 2078 ac_status=$? 2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2080 (exit $ac_status); } && 2081 { ac_try='test -s conftest.$ac_objext' 2082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2083 (eval $ac_try) 2>&5 2084 ac_status=$? 2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2086 (exit $ac_status); }; }; then 2087 ac_cv_prog_cc_g=yes 2088else 2089 echo "$as_me: failed program was:" >&5 2090sed 's/^/| /' conftest.$ac_ext >&5 2091 2092ac_cv_prog_cc_g=no 2093fi 2094rm -f conftest.$ac_objext conftest.$ac_ext 2095fi 2096echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2097echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2098if test "$ac_test_CFLAGS" = set; then 2099 CFLAGS=$ac_save_CFLAGS 2100elif test $ac_cv_prog_cc_g = yes; then 2101 if test "$GCC" = yes; then 2102 CFLAGS="-g -O2" 2103 else 2104 CFLAGS="-g" 2105 fi 2106else 2107 if test "$GCC" = yes; then 2108 CFLAGS="-O2" 2109 else 2110 CFLAGS= 2111 fi 2112fi 2113echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2114echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2115if test "${ac_cv_prog_cc_stdc+set}" = set; then 2116 echo $ECHO_N "(cached) $ECHO_C" >&6 2117else 2118 ac_cv_prog_cc_stdc=no 2119ac_save_CC=$CC 2120cat >conftest.$ac_ext <<_ACEOF 2121#line $LINENO "configure" 2122/* confdefs.h. */ 2123_ACEOF 2124cat confdefs.h >>conftest.$ac_ext 2125cat >>conftest.$ac_ext <<_ACEOF 2126/* end confdefs.h. */ 2127#include <stdarg.h> 2128#include <stdio.h> 2129#include <sys/types.h> 2130#include <sys/stat.h> 2131/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2132struct buf { int x; }; 2133FILE * (*rcsopen) (struct buf *, struct stat *, int); 2134static char *e (p, i) 2135 char **p; 2136 int i; 2137{ 2138 return p[i]; 2139} 2140static char *f (char * (*g) (char **, int), char **p, ...) 2141{ 2142 char *s; 2143 va_list v; 2144 va_start (v,p); 2145 s = g (p, va_arg (v,int)); 2146 va_end (v); 2147 return s; 2148} 2149int test (int i, double x); 2150struct s1 {int (*f) (int a);}; 2151struct s2 {int (*f) (double a);}; 2152int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2153int argc; 2154char **argv; 2155int 2156main () 2157{ 2158return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2159 ; 2160 return 0; 2161} 2162_ACEOF 2163# Don't try gcc -ansi; that turns off useful extensions and 2164# breaks some systems' header files. 2165# AIX -qlanglvl=ansi 2166# Ultrix and OSF/1 -std1 2167# HP-UX 10.20 and later -Ae 2168# HP-UX older versions -Aa -D_HPUX_SOURCE 2169# SVR4 -Xc -D__EXTENSIONS__ 2170for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2171do 2172 CC="$ac_save_CC $ac_arg" 2173 rm -f conftest.$ac_objext 2174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2175 (eval $ac_compile) 2>&5 2176 ac_status=$? 2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2178 (exit $ac_status); } && 2179 { ac_try='test -s conftest.$ac_objext' 2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2181 (eval $ac_try) 2>&5 2182 ac_status=$? 2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2184 (exit $ac_status); }; }; then 2185 ac_cv_prog_cc_stdc=$ac_arg 2186break 2187else 2188 echo "$as_me: failed program was:" >&5 2189sed 's/^/| /' conftest.$ac_ext >&5 2190 2191fi 2192rm -f conftest.$ac_objext 2193done 2194rm -f conftest.$ac_ext conftest.$ac_objext 2195CC=$ac_save_CC 2196 2197fi 2198 2199case "x$ac_cv_prog_cc_stdc" in 2200 x|xno) 2201 echo "$as_me:$LINENO: result: none needed" >&5 2202echo "${ECHO_T}none needed" >&6 ;; 2203 *) 2204 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2205echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2206 CC="$CC $ac_cv_prog_cc_stdc" ;; 2207esac 2208 2209# Some people use a C++ compiler to compile C. Since we use `exit', 2210# in C++ we need to declare it. In case someone uses the same compiler 2211# for both compiling C and C++ we need to have the C++ compiler decide 2212# the declaration of exit, since it's the most demanding environment. 2213cat >conftest.$ac_ext <<_ACEOF 2214#ifndef __cplusplus 2215 choke me 2216#endif 2217_ACEOF 2218rm -f conftest.$ac_objext 2219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2220 (eval $ac_compile) 2>&5 2221 ac_status=$? 2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2223 (exit $ac_status); } && 2224 { ac_try='test -s conftest.$ac_objext' 2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2226 (eval $ac_try) 2>&5 2227 ac_status=$? 2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2229 (exit $ac_status); }; }; then 2230 for ac_declaration in \ 2231 ''\ 2232 '#include <stdlib.h>' \ 2233 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2234 'extern "C" void std::exit (int); using std::exit;' \ 2235 'extern "C" void exit (int) throw ();' \ 2236 'extern "C" void exit (int);' \ 2237 'void exit (int);' 2238do 2239 cat >conftest.$ac_ext <<_ACEOF 2240#line $LINENO "configure" 2241/* confdefs.h. */ 2242_ACEOF 2243cat confdefs.h >>conftest.$ac_ext 2244cat >>conftest.$ac_ext <<_ACEOF 2245/* end confdefs.h. */ 2246#include <stdlib.h> 2247$ac_declaration 2248int 2249main () 2250{ 2251exit (42); 2252 ; 2253 return 0; 2254} 2255_ACEOF 2256rm -f conftest.$ac_objext 2257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2258 (eval $ac_compile) 2>&5 2259 ac_status=$? 2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2261 (exit $ac_status); } && 2262 { ac_try='test -s conftest.$ac_objext' 2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2264 (eval $ac_try) 2>&5 2265 ac_status=$? 2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2267 (exit $ac_status); }; }; then 2268 : 2269else 2270 echo "$as_me: failed program was:" >&5 2271sed 's/^/| /' conftest.$ac_ext >&5 2272 2273continue 2274fi 2275rm -f conftest.$ac_objext conftest.$ac_ext 2276 cat >conftest.$ac_ext <<_ACEOF 2277#line $LINENO "configure" 2278/* confdefs.h. */ 2279_ACEOF 2280cat confdefs.h >>conftest.$ac_ext 2281cat >>conftest.$ac_ext <<_ACEOF 2282/* end confdefs.h. */ 2283$ac_declaration 2284int 2285main () 2286{ 2287exit (42); 2288 ; 2289 return 0; 2290} 2291_ACEOF 2292rm -f conftest.$ac_objext 2293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2294 (eval $ac_compile) 2>&5 2295 ac_status=$? 2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2297 (exit $ac_status); } && 2298 { ac_try='test -s conftest.$ac_objext' 2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2300 (eval $ac_try) 2>&5 2301 ac_status=$? 2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2303 (exit $ac_status); }; }; then 2304 break 2305else 2306 echo "$as_me: failed program was:" >&5 2307sed 's/^/| /' conftest.$ac_ext >&5 2308 2309fi 2310rm -f conftest.$ac_objext conftest.$ac_ext 2311done 2312rm -f conftest* 2313if test -n "$ac_declaration"; then 2314 echo '#ifdef __cplusplus' >>confdefs.h 2315 echo $ac_declaration >>confdefs.h 2316 echo '#endif' >>confdefs.h 2317fi 2318 2319else 2320 echo "$as_me: failed program was:" >&5 2321sed 's/^/| /' conftest.$ac_ext >&5 2322 2323fi 2324rm -f conftest.$ac_objext conftest.$ac_ext 2325ac_ext=c 2326ac_cpp='$CPP $CPPFLAGS' 2327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2329ac_compiler_gnu=$ac_cv_c_compiler_gnu 2330 2331 2332#--------------------------------------------------------------------- 2333# Determine which Fortran compiler to use. Unfortunately, the test 2334# sets FFLAGS -- we have our own ideas later on. 2335#--------------------------------------------------------------------- 2336 2337if test "${FFLAGS+set}" != set; then 2338 FFLAGS_not_set=yes 2339fi 2340ac_ext=f 2341ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 2342ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2343ac_compiler_gnu=$ac_cv_f77_compiler_gnu 2344if test -n "$ac_tool_prefix"; then 2345 for ac_prog in g77 f77 cf77 fort77 2346 do 2347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2348set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2349echo "$as_me:$LINENO: checking for $ac_word" >&5 2350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2351if test "${ac_cv_prog_F77+set}" = set; then 2352 echo $ECHO_N "(cached) $ECHO_C" >&6 2353else 2354 if test -n "$F77"; then 2355 ac_cv_prog_F77="$F77" # Let the user override the test. 2356else 2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2358for as_dir in $PATH 2359do 2360 IFS=$as_save_IFS 2361 test -z "$as_dir" && as_dir=. 2362 for ac_exec_ext in '' $ac_executable_extensions; do 2363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2364 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2366 break 2 2367 fi 2368done 2369done 2370 2371fi 2372fi 2373F77=$ac_cv_prog_F77 2374if test -n "$F77"; then 2375 echo "$as_me:$LINENO: result: $F77" >&5 2376echo "${ECHO_T}$F77" >&6 2377else 2378 echo "$as_me:$LINENO: result: no" >&5 2379echo "${ECHO_T}no" >&6 2380fi 2381 2382 test -n "$F77" && break 2383 done 2384fi 2385if test -z "$F77"; then 2386 ac_ct_F77=$F77 2387 for ac_prog in g77 f77 cf77 fort77 2388do 2389 # Extract the first word of "$ac_prog", so it can be a program name with args. 2390set dummy $ac_prog; ac_word=$2 2391echo "$as_me:$LINENO: checking for $ac_word" >&5 2392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2393if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 2394 echo $ECHO_N "(cached) $ECHO_C" >&6 2395else 2396 if test -n "$ac_ct_F77"; then 2397 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 2398else 2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2400for as_dir in $PATH 2401do 2402 IFS=$as_save_IFS 2403 test -z "$as_dir" && as_dir=. 2404 for ac_exec_ext in '' $ac_executable_extensions; do 2405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2406 ac_cv_prog_ac_ct_F77="$ac_prog" 2407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2408 break 2 2409 fi 2410done 2411done 2412 2413fi 2414fi 2415ac_ct_F77=$ac_cv_prog_ac_ct_F77 2416if test -n "$ac_ct_F77"; then 2417 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 2418echo "${ECHO_T}$ac_ct_F77" >&6 2419else 2420 echo "$as_me:$LINENO: result: no" >&5 2421echo "${ECHO_T}no" >&6 2422fi 2423 2424 test -n "$ac_ct_F77" && break 2425done 2426 2427 F77=$ac_ct_F77 2428fi 2429 2430 2431# Provide some information about the compiler. 2432echo "$as_me:2432:" \ 2433 "checking for Fortran 77 compiler version" >&5 2434ac_compiler=`set X $ac_compile; echo $2` 2435{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2436 (eval $ac_compiler --version </dev/null >&5) 2>&5 2437 ac_status=$? 2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2439 (exit $ac_status); } 2440{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2441 (eval $ac_compiler -v </dev/null >&5) 2>&5 2442 ac_status=$? 2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2444 (exit $ac_status); } 2445{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2446 (eval $ac_compiler -V </dev/null >&5) 2>&5 2447 ac_status=$? 2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2449 (exit $ac_status); } 2450 2451# If we don't use `.F' as extension, the preprocessor is not run on the 2452# input file. 2453ac_save_ext=$ac_ext 2454ac_ext=F 2455echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 2456echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 2457if test "${ac_cv_f77_compiler_gnu+set}" = set; then 2458 echo $ECHO_N "(cached) $ECHO_C" >&6 2459else 2460 cat >conftest.$ac_ext <<_ACEOF 2461 program main 2462#ifndef __GNUC__ 2463 choke me 2464#endif 2465 2466 end 2467_ACEOF 2468rm -f conftest.$ac_objext 2469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2470 (eval $ac_compile) 2>&5 2471 ac_status=$? 2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2473 (exit $ac_status); } && 2474 { ac_try='test -s conftest.$ac_objext' 2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2476 (eval $ac_try) 2>&5 2477 ac_status=$? 2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2479 (exit $ac_status); }; }; then 2480 ac_compiler_gnu=yes 2481else 2482 echo "$as_me: failed program was:" >&5 2483sed 's/^/| /' conftest.$ac_ext >&5 2484 2485ac_compiler_gnu=no 2486fi 2487rm -f conftest.$ac_objext conftest.$ac_ext 2488ac_cv_f77_compiler_gnu=$ac_compiler_gnu 2489 2490fi 2491echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 2492echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 2493ac_ext=$ac_save_ext 2494G77=`test $ac_compiler_gnu = yes && echo yes` 2495ac_test_FFLAGS=${FFLAGS+set} 2496ac_save_FFLAGS=$FFLAGS 2497FFLAGS= 2498echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 2499echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 2500if test "${ac_cv_prog_f77_g+set}" = set; then 2501 echo $ECHO_N "(cached) $ECHO_C" >&6 2502else 2503 FFLAGS=-g 2504cat >conftest.$ac_ext <<_ACEOF 2505 program main 2506 2507 end 2508_ACEOF 2509rm -f conftest.$ac_objext 2510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2511 (eval $ac_compile) 2>&5 2512 ac_status=$? 2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2514 (exit $ac_status); } && 2515 { ac_try='test -s conftest.$ac_objext' 2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2517 (eval $ac_try) 2>&5 2518 ac_status=$? 2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2520 (exit $ac_status); }; }; then 2521 ac_cv_prog_f77_g=yes 2522else 2523 echo "$as_me: failed program was:" >&5 2524sed 's/^/| /' conftest.$ac_ext >&5 2525 2526ac_cv_prog_f77_g=no 2527fi 2528rm -f conftest.$ac_objext conftest.$ac_ext 2529 2530fi 2531echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 2532echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 2533if test "$ac_test_FFLAGS" = set; then 2534 FFLAGS=$ac_save_FFLAGS 2535elif test $ac_cv_prog_f77_g = yes; then 2536 if test "$G77" = yes; then 2537 FFLAGS="-g -O2" 2538 else 2539 FFLAGS="-g" 2540 fi 2541else 2542 if test "$G77" = yes; then 2543 FFLAGS="-O2" 2544 else 2545 FFLAGS= 2546 fi 2547fi 2548ac_ext=c 2549ac_cpp='$CPP $CPPFLAGS' 2550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2552ac_compiler_gnu=$ac_cv_c_compiler_gnu 2553 2554 2555#--------------------------------------------------------------------- 2556# Check C compiler for support of ANSI prototypes. 2557#--------------------------------------------------------------------- 2558 2559echo "$as_me:$LINENO: checking for support of ANSI prototypes" >&5 2560echo $ECHO_N "checking for support of ANSI prototypes... $ECHO_C" >&6 2561cat > conftest.$ac_ext <<EOF 2562#line 2562 "configure" 2563#include "confdefs.h" 2564int main(int argc, char **argv); 2565int t(void); 2566int main(int argc, char **argv) { return t(); } 2567int t(void) { return 0; } 2568EOF 2569if eval $ac_compile; then 2570 rm -rf conftest* 2571 echo "$as_me:$LINENO: result: yes" >&5 2572echo "${ECHO_T}yes" >&6 2573 cat >>confdefs.h <<\_ACEOF 2574#define NO_PROTOS 0 2575_ACEOF 2576 2577else 2578 rm -rf conftest* 2579 echo "$as_me:$LINENO: result: no" >&5 2580echo "${ECHO_T}no" >&6 2581 cat >>confdefs.h <<\_ACEOF 2582#define NO_PROTOS 1 2583_ACEOF 2584 2585fi 2586rm -f conftest* 2587 2588 2589#--------------------------------------------------------------------- 2590# Look for some specific programs. 2591#--------------------------------------------------------------------- 2592 2593echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2594echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2595set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2596if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2597 echo $ECHO_N "(cached) $ECHO_C" >&6 2598else 2599 cat >conftest.make <<\_ACEOF 2600all: 2601 @echo 'ac_maketemp="$(MAKE)"' 2602_ACEOF 2603# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2604eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2605if test -n "$ac_maketemp"; then 2606 eval ac_cv_prog_make_${ac_make}_set=yes 2607else 2608 eval ac_cv_prog_make_${ac_make}_set=no 2609fi 2610rm -f conftest.make 2611fi 2612if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2613 echo "$as_me:$LINENO: result: yes" >&5 2614echo "${ECHO_T}yes" >&6 2615 SET_MAKE= 2616else 2617 echo "$as_me:$LINENO: result: no" >&5 2618echo "${ECHO_T}no" >&6 2619 SET_MAKE="MAKE=${MAKE-make}" 2620fi 2621 2622for ac_prog in gawk mawk nawk awk 2623do 2624 # Extract the first word of "$ac_prog", so it can be a program name with args. 2625set dummy $ac_prog; ac_word=$2 2626echo "$as_me:$LINENO: checking for $ac_word" >&5 2627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2628if test "${ac_cv_prog_AWK+set}" = set; then 2629 echo $ECHO_N "(cached) $ECHO_C" >&6 2630else 2631 if test -n "$AWK"; then 2632 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2633else 2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2635for as_dir in $PATH 2636do 2637 IFS=$as_save_IFS 2638 test -z "$as_dir" && as_dir=. 2639 for ac_exec_ext in '' $ac_executable_extensions; do 2640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2641 ac_cv_prog_AWK="$ac_prog" 2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2643 break 2 2644 fi 2645done 2646done 2647 2648fi 2649fi 2650AWK=$ac_cv_prog_AWK 2651if test -n "$AWK"; then 2652 echo "$as_me:$LINENO: result: $AWK" >&5 2653echo "${ECHO_T}$AWK" >&6 2654else 2655 echo "$as_me:$LINENO: result: no" >&5 2656echo "${ECHO_T}no" >&6 2657fi 2658 2659 test -n "$AWK" && break 2660done 2661 2662for ac_prog in 'bison -y' byacc 2663do 2664 # Extract the first word of "$ac_prog", so it can be a program name with args. 2665set dummy $ac_prog; ac_word=$2 2666echo "$as_me:$LINENO: checking for $ac_word" >&5 2667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2668if test "${ac_cv_prog_YACC+set}" = set; then 2669 echo $ECHO_N "(cached) $ECHO_C" >&6 2670else 2671 if test -n "$YACC"; then 2672 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2673else 2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2675for as_dir in $PATH 2676do 2677 IFS=$as_save_IFS 2678 test -z "$as_dir" && as_dir=. 2679 for ac_exec_ext in '' $ac_executable_extensions; do 2680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2681 ac_cv_prog_YACC="$ac_prog" 2682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2683 break 2 2684 fi 2685done 2686done 2687 2688fi 2689fi 2690YACC=$ac_cv_prog_YACC 2691if test -n "$YACC"; then 2692 echo "$as_me:$LINENO: result: $YACC" >&5 2693echo "${ECHO_T}$YACC" >&6 2694else 2695 echo "$as_me:$LINENO: result: no" >&5 2696echo "${ECHO_T}no" >&6 2697fi 2698 2699 test -n "$YACC" && break 2700done 2701test -n "$YACC" || YACC="yacc" 2702 2703 2704for ac_prog in flex lex 2705do 2706 # Extract the first word of "$ac_prog", so it can be a program name with args. 2707set dummy $ac_prog; ac_word=$2 2708echo "$as_me:$LINENO: checking for $ac_word" >&5 2709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2710if test "${ac_cv_prog_LEX+set}" = set; then 2711 echo $ECHO_N "(cached) $ECHO_C" >&6 2712else 2713 if test -n "$LEX"; then 2714 ac_cv_prog_LEX="$LEX" # Let the user override the test. 2715else 2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2717for as_dir in $PATH 2718do 2719 IFS=$as_save_IFS 2720 test -z "$as_dir" && as_dir=. 2721 for ac_exec_ext in '' $ac_executable_extensions; do 2722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2723 ac_cv_prog_LEX="$ac_prog" 2724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2725 break 2 2726 fi 2727done 2728done 2729 2730fi 2731fi 2732LEX=$ac_cv_prog_LEX 2733if test -n "$LEX"; then 2734 echo "$as_me:$LINENO: result: $LEX" >&5 2735echo "${ECHO_T}$LEX" >&6 2736else 2737 echo "$as_me:$LINENO: result: no" >&5 2738echo "${ECHO_T}no" >&6 2739fi 2740 2741 test -n "$LEX" && break 2742done 2743test -n "$LEX" || LEX=":" 2744 2745if test -z "$LEXLIB" 2746then 2747 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 2748echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 2749if test "${ac_cv_lib_fl_yywrap+set}" = set; then 2750 echo $ECHO_N "(cached) $ECHO_C" >&6 2751else 2752 ac_check_lib_save_LIBS=$LIBS 2753LIBS="-lfl $LIBS" 2754cat >conftest.$ac_ext <<_ACEOF 2755#line $LINENO "configure" 2756/* confdefs.h. */ 2757_ACEOF 2758cat confdefs.h >>conftest.$ac_ext 2759cat >>conftest.$ac_ext <<_ACEOF 2760/* end confdefs.h. */ 2761 2762/* Override any gcc2 internal prototype to avoid an error. */ 2763#ifdef __cplusplus 2764extern "C" 2765#endif 2766/* We use char because int might match the return type of a gcc2 2767 builtin and then its argument prototype would still apply. */ 2768char yywrap (); 2769int 2770main () 2771{ 2772yywrap (); 2773 ; 2774 return 0; 2775} 2776_ACEOF 2777rm -f conftest.$ac_objext conftest$ac_exeext 2778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2779 (eval $ac_link) 2>&5 2780 ac_status=$? 2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2782 (exit $ac_status); } && 2783 { ac_try='test -s conftest$ac_exeext' 2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2785 (eval $ac_try) 2>&5 2786 ac_status=$? 2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2788 (exit $ac_status); }; }; then 2789 ac_cv_lib_fl_yywrap=yes 2790else 2791 echo "$as_me: failed program was:" >&5 2792sed 's/^/| /' conftest.$ac_ext >&5 2793 2794ac_cv_lib_fl_yywrap=no 2795fi 2796rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2797LIBS=$ac_check_lib_save_LIBS 2798fi 2799echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 2800echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 2801if test $ac_cv_lib_fl_yywrap = yes; then 2802 LEXLIB="-lfl" 2803else 2804 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 2805echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 2806if test "${ac_cv_lib_l_yywrap+set}" = set; then 2807 echo $ECHO_N "(cached) $ECHO_C" >&6 2808else 2809 ac_check_lib_save_LIBS=$LIBS 2810LIBS="-ll $LIBS" 2811cat >conftest.$ac_ext <<_ACEOF 2812#line $LINENO "configure" 2813/* confdefs.h. */ 2814_ACEOF 2815cat confdefs.h >>conftest.$ac_ext 2816cat >>conftest.$ac_ext <<_ACEOF 2817/* end confdefs.h. */ 2818 2819/* Override any gcc2 internal prototype to avoid an error. */ 2820#ifdef __cplusplus 2821extern "C" 2822#endif 2823/* We use char because int might match the return type of a gcc2 2824 builtin and then its argument prototype would still apply. */ 2825char yywrap (); 2826int 2827main () 2828{ 2829yywrap (); 2830 ; 2831 return 0; 2832} 2833_ACEOF 2834rm -f conftest.$ac_objext conftest$ac_exeext 2835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2836 (eval $ac_link) 2>&5 2837 ac_status=$? 2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2839 (exit $ac_status); } && 2840 { ac_try='test -s conftest$ac_exeext' 2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2842 (eval $ac_try) 2>&5 2843 ac_status=$? 2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2845 (exit $ac_status); }; }; then 2846 ac_cv_lib_l_yywrap=yes 2847else 2848 echo "$as_me: failed program was:" >&5 2849sed 's/^/| /' conftest.$ac_ext >&5 2850 2851ac_cv_lib_l_yywrap=no 2852fi 2853rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2854LIBS=$ac_check_lib_save_LIBS 2855fi 2856echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 2857echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 2858if test $ac_cv_lib_l_yywrap = yes; then 2859 LEXLIB="-ll" 2860fi 2861 2862fi 2863 2864fi 2865 2866if test "x$LEX" != "x:"; then 2867 echo "$as_me:$LINENO: checking lex output file root" >&5 2868echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 2869if test "${ac_cv_prog_lex_root+set}" = set; then 2870 echo $ECHO_N "(cached) $ECHO_C" >&6 2871else 2872 # The minimal lex program is just a single line: %%. But some broken lexes 2873# (Solaris, I think it was) want two %% lines, so accommodate them. 2874cat >conftest.l <<_ACEOF 2875%% 2876%% 2877_ACEOF 2878{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 2879 (eval $LEX conftest.l) 2>&5 2880 ac_status=$? 2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2882 (exit $ac_status); } 2883if test -f lex.yy.c; then 2884 ac_cv_prog_lex_root=lex.yy 2885elif test -f lexyy.c; then 2886 ac_cv_prog_lex_root=lexyy 2887else 2888 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 2889echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 2890 { (exit 1); exit 1; }; } 2891fi 2892fi 2893echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 2894echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 2895rm -f conftest.l 2896LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 2897 2898echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 2899echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 2900if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 2901 echo $ECHO_N "(cached) $ECHO_C" >&6 2902else 2903 # POSIX says lex can declare yytext either as a pointer or an array; the 2904# default is implementation-dependent. Figure out which it is, since 2905# not all implementations provide the %pointer and %array declarations. 2906ac_cv_prog_lex_yytext_pointer=no 2907echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 2908ac_save_LIBS=$LIBS 2909LIBS="$LIBS $LEXLIB" 2910cat >conftest.$ac_ext <<_ACEOF 2911`cat $LEX_OUTPUT_ROOT.c` 2912_ACEOF 2913rm -f conftest.$ac_objext conftest$ac_exeext 2914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2915 (eval $ac_link) 2>&5 2916 ac_status=$? 2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2918 (exit $ac_status); } && 2919 { ac_try='test -s conftest$ac_exeext' 2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2921 (eval $ac_try) 2>&5 2922 ac_status=$? 2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2924 (exit $ac_status); }; }; then 2925 ac_cv_prog_lex_yytext_pointer=yes 2926else 2927 echo "$as_me: failed program was:" >&5 2928sed 's/^/| /' conftest.$ac_ext >&5 2929 2930fi 2931rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2932LIBS=$ac_save_LIBS 2933rm -f "${LEX_OUTPUT_ROOT}.c" 2934 2935fi 2936echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 2937echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 2938if test $ac_cv_prog_lex_yytext_pointer = yes; then 2939 2940cat >>confdefs.h <<\_ACEOF 2941#define YYTEXT_POINTER 1 2942_ACEOF 2943 2944fi 2945 2946fi 2947ac_aux_dir= 2948for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2949 if test -f $ac_dir/install-sh; then 2950 ac_aux_dir=$ac_dir 2951 ac_install_sh="$ac_aux_dir/install-sh -c" 2952 break 2953 elif test -f $ac_dir/install.sh; then 2954 ac_aux_dir=$ac_dir 2955 ac_install_sh="$ac_aux_dir/install.sh -c" 2956 break 2957 elif test -f $ac_dir/shtool; then 2958 ac_aux_dir=$ac_dir 2959 ac_install_sh="$ac_aux_dir/shtool install -c" 2960 break 2961 fi 2962done 2963if test -z "$ac_aux_dir"; then 2964 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2965echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2966 { (exit 1); exit 1; }; } 2967fi 2968ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2969ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2970ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2971 2972# Find a good install program. We prefer a C program (faster), 2973# so one script is as good as another. But avoid the broken or 2974# incompatible versions: 2975# SysV /etc/install, /usr/sbin/install 2976# SunOS /usr/etc/install 2977# IRIX /sbin/install 2978# AIX /bin/install 2979# AmigaOS /C/install, which installs bootblocks on floppy discs 2980# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2981# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2982# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2983# ./install, which can be erroneously created by make from ./install.sh. 2984echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2985echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2986if test -z "$INSTALL"; then 2987if test "${ac_cv_path_install+set}" = set; then 2988 echo $ECHO_N "(cached) $ECHO_C" >&6 2989else 2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2991for as_dir in $PATH 2992do 2993 IFS=$as_save_IFS 2994 test -z "$as_dir" && as_dir=. 2995 # Account for people who put trailing slashes in PATH elements. 2996case $as_dir/ in 2997 ./ | .// | /cC/* | \ 2998 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2999 /usr/ucb/* ) ;; 3000 *) 3001 # OSF1 and SCO ODT 3.0 have their own names for install. 3002 # Don't use installbsd from OSF since it installs stuff as root 3003 # by default. 3004 for ac_prog in ginstall scoinst install; do 3005 for ac_exec_ext in '' $ac_executable_extensions; do 3006 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3007 if test $ac_prog = install && 3008 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3009 # AIX install. It has an incompatible calling convention. 3010 : 3011 elif test $ac_prog = install && 3012 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3013 # program-specific install script used by HP pwplus--don't use. 3014 : 3015 else 3016 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3017 break 3 3018 fi 3019 fi 3020 done 3021 done 3022 ;; 3023esac 3024done 3025 3026 3027fi 3028 if test "${ac_cv_path_install+set}" = set; then 3029 INSTALL=$ac_cv_path_install 3030 else 3031 # As a last resort, use the slow shell script. We don't cache a 3032 # path for INSTALL within a source directory, because that will 3033 # break other packages using the cache if that directory is 3034 # removed, or if the path is relative. 3035 INSTALL=$ac_install_sh 3036 fi 3037fi 3038echo "$as_me:$LINENO: result: $INSTALL" >&5 3039echo "${ECHO_T}$INSTALL" >&6 3040 3041# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3042# It thinks the first close brace ends the variable substitution. 3043test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3044 3045test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3046 3047test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3048 3049if test -n "$ac_tool_prefix"; then 3050 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3051set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3052echo "$as_me:$LINENO: checking for $ac_word" >&5 3053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3054if test "${ac_cv_prog_RANLIB+set}" = set; then 3055 echo $ECHO_N "(cached) $ECHO_C" >&6 3056else 3057 if test -n "$RANLIB"; then 3058 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3059else 3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3061for as_dir in $PATH 3062do 3063 IFS=$as_save_IFS 3064 test -z "$as_dir" && as_dir=. 3065 for ac_exec_ext in '' $ac_executable_extensions; do 3066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3067 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3069 break 2 3070 fi 3071done 3072done 3073 3074fi 3075fi 3076RANLIB=$ac_cv_prog_RANLIB 3077if test -n "$RANLIB"; then 3078 echo "$as_me:$LINENO: result: $RANLIB" >&5 3079echo "${ECHO_T}$RANLIB" >&6 3080else 3081 echo "$as_me:$LINENO: result: no" >&5 3082echo "${ECHO_T}no" >&6 3083fi 3084 3085fi 3086if test -z "$ac_cv_prog_RANLIB"; then 3087 ac_ct_RANLIB=$RANLIB 3088 # Extract the first word of "ranlib", so it can be a program name with args. 3089set dummy ranlib; ac_word=$2 3090echo "$as_me:$LINENO: checking for $ac_word" >&5 3091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3092if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3093 echo $ECHO_N "(cached) $ECHO_C" >&6 3094else 3095 if test -n "$ac_ct_RANLIB"; then 3096 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3097else 3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3099for as_dir in $PATH 3100do 3101 IFS=$as_save_IFS 3102 test -z "$as_dir" && as_dir=. 3103 for ac_exec_ext in '' $ac_executable_extensions; do 3104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3105 ac_cv_prog_ac_ct_RANLIB="ranlib" 3106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3107 break 2 3108 fi 3109done 3110done 3111 3112 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3113fi 3114fi 3115ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3116if test -n "$ac_ct_RANLIB"; then 3117 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3118echo "${ECHO_T}$ac_ct_RANLIB" >&6 3119else 3120 echo "$as_me:$LINENO: result: no" >&5 3121echo "${ECHO_T}no" >&6 3122fi 3123 3124 RANLIB=$ac_ct_RANLIB 3125else 3126 RANLIB="$ac_cv_prog_RANLIB" 3127fi 3128 3129# Extract the first word of "m4", so it can be a program name with args. 3130set dummy m4; ac_word=$2 3131echo "$as_me:$LINENO: checking for $ac_word" >&5 3132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3133if test "${ac_cv_prog_M4+set}" = set; then 3134 echo $ECHO_N "(cached) $ECHO_C" >&6 3135else 3136 if test -n "$M4"; then 3137 ac_cv_prog_M4="$M4" # Let the user override the test. 3138else 3139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3140for as_dir in $PATH 3141do 3142 IFS=$as_save_IFS 3143 test -z "$as_dir" && as_dir=. 3144 for ac_exec_ext in '' $ac_executable_extensions; do 3145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3146 ac_cv_prog_M4="m4" 3147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3148 break 2 3149 fi 3150done 3151done 3152 3153fi 3154fi 3155M4=$ac_cv_prog_M4 3156if test -n "$M4"; then 3157 echo "$as_me:$LINENO: result: $M4" >&5 3158echo "${ECHO_T}$M4" >&6 3159else 3160 echo "$as_me:$LINENO: result: no" >&5 3161echo "${ECHO_T}no" >&6 3162fi 3163 3164# Extract the first word of "f2c", so it can be a program name with args. 3165set dummy f2c; ac_word=$2 3166echo "$as_me:$LINENO: checking for $ac_word" >&5 3167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3168if test "${ac_cv_prog_F2C+set}" = set; then 3169 echo $ECHO_N "(cached) $ECHO_C" >&6 3170else 3171 if test -n "$F2C"; then 3172 ac_cv_prog_F2C="$F2C" # Let the user override the test. 3173else 3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3175for as_dir in $PATH 3176do 3177 IFS=$as_save_IFS 3178 test -z "$as_dir" && as_dir=. 3179 for ac_exec_ext in '' $ac_executable_extensions; do 3180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3181 ac_cv_prog_F2C="f2c" 3182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3183 break 2 3184 fi 3185done 3186done 3187 3188fi 3189fi 3190F2C=$ac_cv_prog_F2C 3191if test -n "$F2C"; then 3192 echo "$as_me:$LINENO: result: $F2C" >&5 3193echo "${ECHO_T}$F2C" >&6 3194else 3195 echo "$as_me:$LINENO: result: no" >&5 3196echo "${ECHO_T}no" >&6 3197fi 3198 3199# Extract the first word of "efl", so it can be a program name with args. 3200set dummy efl; ac_word=$2 3201echo "$as_me:$LINENO: checking for $ac_word" >&5 3202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3203if test "${ac_cv_prog_EFL+set}" = set; then 3204 echo $ECHO_N "(cached) $ECHO_C" >&6 3205else 3206 if test -n "$EFL"; then 3207 ac_cv_prog_EFL="$EFL" # Let the user override the test. 3208else 3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3210for as_dir in $PATH 3211do 3212 IFS=$as_save_IFS 3213 test -z "$as_dir" && as_dir=. 3214 for ac_exec_ext in '' $ac_executable_extensions; do 3215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3216 ac_cv_prog_EFL="efl" 3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3218 break 2 3219 fi 3220done 3221done 3222 3223fi 3224fi 3225EFL=$ac_cv_prog_EFL 3226if test -n "$EFL"; then 3227 echo "$as_me:$LINENO: result: $EFL" >&5 3228echo "${ECHO_T}$EFL" >&6 3229else 3230 echo "$as_me:$LINENO: result: no" >&5 3231echo "${ECHO_T}no" >&6 3232fi 3233 3234# Extract the first word of "ratfor", so it can be a program name with args. 3235set dummy ratfor; ac_word=$2 3236echo "$as_me:$LINENO: checking for $ac_word" >&5 3237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3238if test "${ac_cv_prog_RATFOR+set}" = set; then 3239 echo $ECHO_N "(cached) $ECHO_C" >&6 3240else 3241 if test -n "$RATFOR"; then 3242 ac_cv_prog_RATFOR="$RATFOR" # Let the user override the test. 3243else 3244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3245for as_dir in $PATH 3246do 3247 IFS=$as_save_IFS 3248 test -z "$as_dir" && as_dir=. 3249 for ac_exec_ext in '' $ac_executable_extensions; do 3250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3251 ac_cv_prog_RATFOR="ratfor" 3252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3253 break 2 3254 fi 3255done 3256done 3257 3258fi 3259fi 3260RATFOR=$ac_cv_prog_RATFOR 3261if test -n "$RATFOR"; then 3262 echo "$as_me:$LINENO: result: $RATFOR" >&5 3263echo "${ECHO_T}$RATFOR" >&6 3264else 3265 echo "$as_me:$LINENO: result: no" >&5 3266echo "${ECHO_T}no" >&6 3267fi 3268 3269 3270# Extract the first word of "ls", so it can be a program name with args. 3271set dummy ls; ac_word=$2 3272echo "$as_me:$LINENO: checking for $ac_word" >&5 3273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3274if test "${ac_cv_path_LS+set}" = set; then 3275 echo $ECHO_N "(cached) $ECHO_C" >&6 3276else 3277 case $LS in 3278 [\\/]* | ?:[\\/]*) 3279 ac_cv_path_LS="$LS" # Let the user override the test with a path. 3280 ;; 3281 *) 3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3283for as_dir in $PATH 3284do 3285 IFS=$as_save_IFS 3286 test -z "$as_dir" && as_dir=. 3287 for ac_exec_ext in '' $ac_executable_extensions; do 3288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3289 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 3290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3291 break 2 3292 fi 3293done 3294done 3295 3296 ;; 3297esac 3298fi 3299LS=$ac_cv_path_LS 3300 3301if test -n "$LS"; then 3302 echo "$as_me:$LINENO: result: $LS" >&5 3303echo "${ECHO_T}$LS" >&6 3304else 3305 echo "$as_me:$LINENO: result: no" >&5 3306echo "${ECHO_T}no" >&6 3307fi 3308 3309# Extract the first word of "tr", so it can be a program name with args. 3310set dummy tr; ac_word=$2 3311echo "$as_me:$LINENO: checking for $ac_word" >&5 3312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3313if test "${ac_cv_path_TR+set}" = set; then 3314 echo $ECHO_N "(cached) $ECHO_C" >&6 3315else 3316 case $TR in 3317 [\\/]* | ?:[\\/]*) 3318 ac_cv_path_TR="$TR" # Let the user override the test with a path. 3319 ;; 3320 *) 3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3322for as_dir in $PATH 3323do 3324 IFS=$as_save_IFS 3325 test -z "$as_dir" && as_dir=. 3326 for ac_exec_ext in '' $ac_executable_extensions; do 3327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3328 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 3329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3330 break 2 3331 fi 3332done 3333done 3334 3335 ;; 3336esac 3337fi 3338TR=$ac_cv_path_TR 3339 3340if test -n "$TR"; then 3341 echo "$as_me:$LINENO: result: $TR" >&5 3342echo "${ECHO_T}$TR" >&6 3343else 3344 echo "$as_me:$LINENO: result: no" >&5 3345echo "${ECHO_T}no" >&6 3346fi 3347 3348# Extract the first word of "sed", so it can be a program name with args. 3349set dummy sed; ac_word=$2 3350echo "$as_me:$LINENO: checking for $ac_word" >&5 3351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3352if test "${ac_cv_path_SED+set}" = set; then 3353 echo $ECHO_N "(cached) $ECHO_C" >&6 3354else 3355 case $SED in 3356 [\\/]* | ?:[\\/]*) 3357 ac_cv_path_SED="$SED" # Let the user override the test with a path. 3358 ;; 3359 *) 3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3361for as_dir in $PATH 3362do 3363 IFS=$as_save_IFS 3364 test -z "$as_dir" && as_dir=. 3365 for ac_exec_ext in '' $ac_executable_extensions; do 3366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3367 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 3368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3369 break 2 3370 fi 3371done 3372done 3373 3374 ;; 3375esac 3376fi 3377SED=$ac_cv_path_SED 3378 3379if test -n "$SED"; then 3380 echo "$as_me:$LINENO: result: $SED" >&5 3381echo "${ECHO_T}$SED" >&6 3382else 3383 echo "$as_me:$LINENO: result: no" >&5 3384echo "${ECHO_T}no" >&6 3385fi 3386 3387# Extract the first word of "info", so it can be a program name with args. 3388set dummy info; ac_word=$2 3389echo "$as_me:$LINENO: checking for $ac_word" >&5 3390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3391if test "${ac_cv_path_INFO+set}" = set; then 3392 echo $ECHO_N "(cached) $ECHO_C" >&6 3393else 3394 case $INFO in 3395 [\\/]* | ?:[\\/]*) 3396 ac_cv_path_INFO="$INFO" # Let the user override the test with a path. 3397 ;; 3398 *) 3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3400for as_dir in $PATH 3401do 3402 IFS=$as_save_IFS 3403 test -z "$as_dir" && as_dir=. 3404 for ac_exec_ext in '' $ac_executable_extensions; do 3405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3406 ac_cv_path_INFO="$as_dir/$ac_word$ac_exec_ext" 3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3408 break 2 3409 fi 3410done 3411done 3412 3413 ;; 3414esac 3415fi 3416INFO=$ac_cv_path_INFO 3417 3418if test -n "$INFO"; then 3419 echo "$as_me:$LINENO: result: $INFO" >&5 3420echo "${ECHO_T}$INFO" >&6 3421else 3422 echo "$as_me:$LINENO: result: no" >&5 3423echo "${ECHO_T}no" >&6 3424fi 3425 3426# Extract the first word of "lynx", so it can be a program name with args. 3427set dummy lynx; ac_word=$2 3428echo "$as_me:$LINENO: checking for $ac_word" >&5 3429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3430if test "${ac_cv_path_HTML+set}" = set; then 3431 echo $ECHO_N "(cached) $ECHO_C" >&6 3432else 3433 case $HTML in 3434 [\\/]* | ?:[\\/]*) 3435 ac_cv_path_HTML="$HTML" # Let the user override the test with a path. 3436 ;; 3437 *) 3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3439for as_dir in $PATH 3440do 3441 IFS=$as_save_IFS 3442 test -z "$as_dir" && as_dir=. 3443 for ac_exec_ext in '' $ac_executable_extensions; do 3444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3445 ac_cv_path_HTML="$as_dir/$ac_word$ac_exec_ext" 3446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3447 break 2 3448 fi 3449done 3450done 3451 3452 ;; 3453esac 3454fi 3455HTML=$ac_cv_path_HTML 3456 3457if test -n "$HTML"; then 3458 echo "$as_me:$LINENO: result: $HTML" >&5 3459echo "${ECHO_T}$HTML" >&6 3460else 3461 echo "$as_me:$LINENO: result: no" >&5 3462echo "${ECHO_T}no" >&6 3463fi 3464 3465for ac_prog in mozilla netscape mosaic 3466do 3467 # Extract the first word of "$ac_prog", so it can be a program name with args. 3468set dummy $ac_prog; ac_word=$2 3469echo "$as_me:$LINENO: checking for $ac_word" >&5 3470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3471if test "${ac_cv_path_XHTML+set}" = set; then 3472 echo $ECHO_N "(cached) $ECHO_C" >&6 3473else 3474 case $XHTML in 3475 [\\/]* | ?:[\\/]*) 3476 ac_cv_path_XHTML="$XHTML" # Let the user override the test with a path. 3477 ;; 3478 *) 3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3480for as_dir in $PATH 3481do 3482 IFS=$as_save_IFS 3483 test -z "$as_dir" && as_dir=. 3484 for ac_exec_ext in '' $ac_executable_extensions; do 3485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3486 ac_cv_path_XHTML="$as_dir/$ac_word$ac_exec_ext" 3487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3488 break 2 3489 fi 3490done 3491done 3492 3493 ;; 3494esac 3495fi 3496XHTML=$ac_cv_path_XHTML 3497 3498if test -n "$XHTML"; then 3499 echo "$as_me:$LINENO: result: $XHTML" >&5 3500echo "${ECHO_T}$XHTML" >&6 3501else 3502 echo "$as_me:$LINENO: result: no" >&5 3503echo "${ECHO_T}no" >&6 3504fi 3505 3506 test -n "$XHTML" && break 3507done 3508 3509# Extract the first word of "gnuplot", so it can be a program name with args. 3510set dummy gnuplot; ac_word=$2 3511echo "$as_me:$LINENO: checking for $ac_word" >&5 3512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3513if test "${ac_cv_path_GNUPLOT+set}" = set; then 3514 echo $ECHO_N "(cached) $ECHO_C" >&6 3515else 3516 case $GNUPLOT in 3517 [\\/]* | ?:[\\/]*) 3518 ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path. 3519 ;; 3520 *) 3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3522for as_dir in $PATH 3523do 3524 IFS=$as_save_IFS 3525 test -z "$as_dir" && as_dir=. 3526 for ac_exec_ext in '' $ac_executable_extensions; do 3527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3528 ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext" 3529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3530 break 2 3531 fi 3532done 3533done 3534 3535 ;; 3536esac 3537fi 3538GNUPLOT=$ac_cv_path_GNUPLOT 3539 3540if test -n "$GNUPLOT"; then 3541 echo "$as_me:$LINENO: result: $GNUPLOT" >&5 3542echo "${ECHO_T}$GNUPLOT" >&6 3543else 3544 echo "$as_me:$LINENO: result: no" >&5 3545echo "${ECHO_T}no" >&6 3546fi 3547 3548# Extract the first word of "xterm", so it can be a program name with args. 3549set dummy xterm; ac_word=$2 3550echo "$as_me:$LINENO: checking for $ac_word" >&5 3551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3552if test "${ac_cv_path_XTERM+set}" = set; then 3553 echo $ECHO_N "(cached) $ECHO_C" >&6 3554else 3555 case $XTERM in 3556 [\\/]* | ?:[\\/]*) 3557 ac_cv_path_XTERM="$XTERM" # Let the user override the test with a path. 3558 ;; 3559 *) 3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3561for as_dir in $PATH 3562do 3563 IFS=$as_save_IFS 3564 test -z "$as_dir" && as_dir=. 3565 for ac_exec_ext in '' $ac_executable_extensions; do 3566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3567 ac_cv_path_XTERM="$as_dir/$ac_word$ac_exec_ext" 3568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3569 break 2 3570 fi 3571done 3572done 3573 3574 ;; 3575esac 3576fi 3577XTERM=$ac_cv_path_XTERM 3578 3579if test -n "$XTERM"; then 3580 echo "$as_me:$LINENO: result: $XTERM" >&5 3581echo "${ECHO_T}$XTERM" >&6 3582else 3583 echo "$as_me:$LINENO: result: no" >&5 3584echo "${ECHO_T}no" >&6 3585fi 3586 3587 3588 3589 3590#--------------------------------------------------------------------- 3591# Prepare f2c script, if necessary. We can't wait and let OUTPUT 3592# do it, because we need it for our tests. 3593#--------------------------------------------------------------------- 3594 3595 3596# Check whether --with-f2c or --without-f2c was given. 3597if test "${with_f2c+set}" = set; then 3598 withval="$with_f2c" 3599 case "${withval}" in 3600 y | yes ) f2c_dir="${local_dir}" ;; 3601 n | no ) f2c_dir="" ;; 3602 * ) f2c_dir="${withval}" ;; 3603 esac 3604else 3605 f2c_dir="${local_dir}" 3606fi; 3607 3608if test -z "$F77"; then 3609 F77=`pwd`/f77-sh 3610 sed "s%@CC@%${CC}%g; s%@CPP@%${CPP}%g; s%@EFL@%${EFL}%g; 3611 s%@RATFOR@%${RATFOR}%g; s%@F2C@%${F2C}%g; 3612 s%@F2CDIR@%${f2c_dir}%g" f77-sh.in > f77-sh 3613 chmod +x f77-sh 3614fi 3615 3616#--------------------------------------------------------------------- 3617# Check for broken linkers. 3618#--------------------------------------------------------------------- 3619 3620echo "$as_me:$LINENO: checking for broken linker" >&5 3621echo $ECHO_N "checking for broken linker... $ECHO_C" >&6 3622tmp_LIBS="$LIBS" 3623LIBS="$LIBS -lbogus_bogus_bogus" 3624cat >conftest.$ac_ext <<_ACEOF 3625#line $LINENO "configure" 3626/* confdefs.h. */ 3627_ACEOF 3628cat confdefs.h >>conftest.$ac_ext 3629cat >>conftest.$ac_ext <<_ACEOF 3630/* end confdefs.h. */ 3631 3632int 3633main () 3634{ 3635main(); 3636 ; 3637 return 0; 3638} 3639_ACEOF 3640rm -f conftest.$ac_objext conftest$ac_exeext 3641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3642 (eval $ac_link) 2>&5 3643 ac_status=$? 3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3645 (exit $ac_status); } && 3646 { ac_try='test -s conftest$ac_exeext' 3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3648 (eval $ac_try) 2>&5 3649 ac_status=$? 3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3651 (exit $ac_status); }; }; then 3652 echo "$as_me:$LINENO: result: broken" >&5 3653echo "${ECHO_T}broken" >&6 3654 CHKERR=./compile-sh 3655else 3656 echo "$as_me: failed program was:" >&5 3657sed 's/^/| /' conftest.$ac_ext >&5 3658 3659echo "$as_me:$LINENO: result: ok" >&5 3660echo "${ECHO_T}ok" >&6 3661 CHKERR= 3662fi 3663rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3664LIBS="$tmp_LIBS" 3665 3666basic_CC="$CC" 3667basic_F77="$F77" 3668CC="$CHKERR $CC" 3669F77="$CHKERR $F77" 3670 3671#--------------------------------------------------------------------- 3672# Get the canonical system type. It's too bad that we need it, but 3673# there are some things that we just can't test for. 3674#--------------------------------------------------------------------- 3675 3676# Make sure we can run config.sub. 3677$ac_config_sub sun4 >/dev/null 2>&1 || 3678 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3679echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3680 { (exit 1); exit 1; }; } 3681 3682echo "$as_me:$LINENO: checking build system type" >&5 3683echo $ECHO_N "checking build system type... $ECHO_C" >&6 3684if test "${ac_cv_build+set}" = set; then 3685 echo $ECHO_N "(cached) $ECHO_C" >&6 3686else 3687 ac_cv_build_alias=$build_alias 3688test -z "$ac_cv_build_alias" && 3689 ac_cv_build_alias=`$ac_config_guess` 3690test -z "$ac_cv_build_alias" && 3691 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3692echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3693 { (exit 1); exit 1; }; } 3694ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3695 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3696echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3697 { (exit 1); exit 1; }; } 3698 3699fi 3700echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3701echo "${ECHO_T}$ac_cv_build" >&6 3702build=$ac_cv_build 3703build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3704build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3705build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3706 3707 3708echo "$as_me:$LINENO: checking host system type" >&5 3709echo $ECHO_N "checking host system type... $ECHO_C" >&6 3710if test "${ac_cv_host+set}" = set; then 3711 echo $ECHO_N "(cached) $ECHO_C" >&6 3712else 3713 ac_cv_host_alias=$host_alias 3714test -z "$ac_cv_host_alias" && 3715 ac_cv_host_alias=$ac_cv_build_alias 3716ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3717 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3718echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3719 { (exit 1); exit 1; }; } 3720 3721fi 3722echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3723echo "${ECHO_T}$ac_cv_host" >&6 3724host=$ac_cv_host 3725host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3726host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3727host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3728 3729 3730 3731#--------------------------------------------------------------------- 3732# Set CFLAGS based on the host system type. Leave it alone if it's 3733# already set; otherwise, strive for run-time performance. This is 3734# just my best guess at the appropriate options, based on what little 3735# I know about the most commonly used non-gcc compiler on this 3736# host. Please mail suggestions for improvements to ksh@eskimo.com. 3737#--------------------------------------------------------------------- 3738 3739if test "${CFLAGS_not_set}" = yes; then 3740 if test "$GCC" = yes; then 3741 if test "${enable_debug+set}" = set; then 3742 CFLAGS="-g" 3743 fi 3744 else 3745 if test "${enable_debug+set}" = set; then 3746 # The patterns are not necessarily exclusive, so order is important. 3747 case "$host" in 3748 alpha* ) CFLAGS="-g -Olimit 1500" ;; 3749 *-aix* ) CFLAGS="-g" ;; 3750 *-hpux1*) CFLAGS="-g +DAportable -Ae" ;; 3751 *-hpux9*) CFLAGS="-g " ;; 3752 *-hpux* ) CFLAGS="-g +Obb1000" ;; 3753 mips-* ) CFLAGS="-g -Olimit 1500" ;; 3754 titan-* ) CFLAGS="-g" ;; 3755 *-unicos*) CFLAGS="-g -h matherror=errno" ;; 3756 *) CFLAGS="-g" ;; 3757 esac 3758 else 3759 # The patterns are not necessarily exclusive, so order is important. 3760 case "$host" in 3761 alpha* ) CFLAGS="-O -Olimit 1500" ;; 3762 *-aix[123]* ) CFLAGS="-O" ;; 3763 *-aix* ) CFLAGS="-O -qmaxmem=8192" ;; 3764 *-hpux9.01) CFLAGS="-O +Obb1000" ;; 3765 *-hpux1*) CFLAGS="-O +Onolimit +DAportable -Ae" ;; 3766 *-hpux9*) CFLAGS="-O +Onolimit" ;; 3767 *-hpux* ) CFLAGS="-O +Obb1000" ;; 3768 mips-sgi-irix2345*) CFLAGS="-O -Olimit 1500" ;; 3769 mips-* ) CFLAGS="-O2" ;; 3770 titan-* ) CFLAGS="-O2" ;; 3771 *-unicos*) CFLAGS="-O2 -h matherror=errno" ;; 3772 *) CFLAGS="-O" ;; 3773 esac 3774 fi 3775 fi 3776fi 3777 3778#--------------------------------------------------------------------- 3779# Check for standard header files. 3780#--------------------------------------------------------------------- 3781 3782ac_ext=c 3783ac_cpp='$CPP $CPPFLAGS' 3784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3786ac_compiler_gnu=$ac_cv_c_compiler_gnu 3787echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3788echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3789# On Suns, sometimes $CPP names a directory. 3790if test -n "$CPP" && test -d "$CPP"; then 3791 CPP= 3792fi 3793if test -z "$CPP"; then 3794 if test "${ac_cv_prog_CPP+set}" = set; then 3795 echo $ECHO_N "(cached) $ECHO_C" >&6 3796else 3797 # Double quotes because CPP needs to be expanded 3798 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3799 do 3800 ac_preproc_ok=false 3801for ac_c_preproc_warn_flag in '' yes 3802do 3803 # Use a header file that comes with gcc, so configuring glibc 3804 # with a fresh cross-compiler works. 3805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3806 # <limits.h> exists even on freestanding compilers. 3807 # On the NeXT, cc -E runs the code through the compiler's parser, 3808 # not just through cpp. "Syntax error" is here to catch this case. 3809 cat >conftest.$ac_ext <<_ACEOF 3810#line $LINENO "configure" 3811/* confdefs.h. */ 3812_ACEOF 3813cat confdefs.h >>conftest.$ac_ext 3814cat >>conftest.$ac_ext <<_ACEOF 3815/* end confdefs.h. */ 3816#ifdef __STDC__ 3817# include <limits.h> 3818#else 3819# include <assert.h> 3820#endif 3821 Syntax error 3822_ACEOF 3823if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3825 ac_status=$? 3826 grep -v '^ *+' conftest.er1 >conftest.err 3827 rm -f conftest.er1 3828 cat conftest.err >&5 3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3830 (exit $ac_status); } >/dev/null; then 3831 if test -s conftest.err; then 3832 ac_cpp_err=$ac_c_preproc_warn_flag 3833 else 3834 ac_cpp_err= 3835 fi 3836else 3837 ac_cpp_err=yes 3838fi 3839if test -z "$ac_cpp_err"; then 3840 : 3841else 3842 echo "$as_me: failed program was:" >&5 3843sed 's/^/| /' conftest.$ac_ext >&5 3844 3845 # Broken: fails on valid input. 3846continue 3847fi 3848rm -f conftest.err conftest.$ac_ext 3849 3850 # OK, works on sane cases. Now check whether non-existent headers 3851 # can be detected and how. 3852 cat >conftest.$ac_ext <<_ACEOF 3853#line $LINENO "configure" 3854/* confdefs.h. */ 3855_ACEOF 3856cat confdefs.h >>conftest.$ac_ext 3857cat >>conftest.$ac_ext <<_ACEOF 3858/* end confdefs.h. */ 3859#include <ac_nonexistent.h> 3860_ACEOF 3861if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3863 ac_status=$? 3864 grep -v '^ *+' conftest.er1 >conftest.err 3865 rm -f conftest.er1 3866 cat conftest.err >&5 3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3868 (exit $ac_status); } >/dev/null; then 3869 if test -s conftest.err; then 3870 ac_cpp_err=$ac_c_preproc_warn_flag 3871 else 3872 ac_cpp_err= 3873 fi 3874else 3875 ac_cpp_err=yes 3876fi 3877if test -z "$ac_cpp_err"; then 3878 # Broken: success on invalid input. 3879continue 3880else 3881 echo "$as_me: failed program was:" >&5 3882sed 's/^/| /' conftest.$ac_ext >&5 3883 3884 # Passes both tests. 3885ac_preproc_ok=: 3886break 3887fi 3888rm -f conftest.err conftest.$ac_ext 3889 3890done 3891# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3892rm -f conftest.err conftest.$ac_ext 3893if $ac_preproc_ok; then 3894 break 3895fi 3896 3897 done 3898 ac_cv_prog_CPP=$CPP 3899 3900fi 3901 CPP=$ac_cv_prog_CPP 3902else 3903 ac_cv_prog_CPP=$CPP 3904fi 3905echo "$as_me:$LINENO: result: $CPP" >&5 3906echo "${ECHO_T}$CPP" >&6 3907ac_preproc_ok=false 3908for ac_c_preproc_warn_flag in '' yes 3909do 3910 # Use a header file that comes with gcc, so configuring glibc 3911 # with a fresh cross-compiler works. 3912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3913 # <limits.h> exists even on freestanding compilers. 3914 # On the NeXT, cc -E runs the code through the compiler's parser, 3915 # not just through cpp. "Syntax error" is here to catch this case. 3916 cat >conftest.$ac_ext <<_ACEOF 3917#line $LINENO "configure" 3918/* confdefs.h. */ 3919_ACEOF 3920cat confdefs.h >>conftest.$ac_ext 3921cat >>conftest.$ac_ext <<_ACEOF 3922/* end confdefs.h. */ 3923#ifdef __STDC__ 3924# include <limits.h> 3925#else 3926# include <assert.h> 3927#endif 3928 Syntax error 3929_ACEOF 3930if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3932 ac_status=$? 3933 grep -v '^ *+' conftest.er1 >conftest.err 3934 rm -f conftest.er1 3935 cat conftest.err >&5 3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3937 (exit $ac_status); } >/dev/null; then 3938 if test -s conftest.err; then 3939 ac_cpp_err=$ac_c_preproc_warn_flag 3940 else 3941 ac_cpp_err= 3942 fi 3943else 3944 ac_cpp_err=yes 3945fi 3946if test -z "$ac_cpp_err"; then 3947 : 3948else 3949 echo "$as_me: failed program was:" >&5 3950sed 's/^/| /' conftest.$ac_ext >&5 3951 3952 # Broken: fails on valid input. 3953continue 3954fi 3955rm -f conftest.err conftest.$ac_ext 3956 3957 # OK, works on sane cases. Now check whether non-existent headers 3958 # can be detected and how. 3959 cat >conftest.$ac_ext <<_ACEOF 3960#line $LINENO "configure" 3961/* confdefs.h. */ 3962_ACEOF 3963cat confdefs.h >>conftest.$ac_ext 3964cat >>conftest.$ac_ext <<_ACEOF 3965/* end confdefs.h. */ 3966#include <ac_nonexistent.h> 3967_ACEOF 3968if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3970 ac_status=$? 3971 grep -v '^ *+' conftest.er1 >conftest.err 3972 rm -f conftest.er1 3973 cat conftest.err >&5 3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3975 (exit $ac_status); } >/dev/null; then 3976 if test -s conftest.err; then 3977 ac_cpp_err=$ac_c_preproc_warn_flag 3978 else 3979 ac_cpp_err= 3980 fi 3981else 3982 ac_cpp_err=yes 3983fi 3984if test -z "$ac_cpp_err"; then 3985 # Broken: success on invalid input. 3986continue 3987else 3988 echo "$as_me: failed program was:" >&5 3989sed 's/^/| /' conftest.$ac_ext >&5 3990 3991 # Passes both tests. 3992ac_preproc_ok=: 3993break 3994fi 3995rm -f conftest.err conftest.$ac_ext 3996 3997done 3998# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3999rm -f conftest.err conftest.$ac_ext 4000if $ac_preproc_ok; then 4001 : 4002else 4003 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4004See \`config.log' for more details." >&5 4005echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4006See \`config.log' for more details." >&2;} 4007 { (exit 1); exit 1; }; } 4008fi 4009 4010ac_ext=c 4011ac_cpp='$CPP $CPPFLAGS' 4012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4014ac_compiler_gnu=$ac_cv_c_compiler_gnu 4015 4016 4017echo "$as_me:$LINENO: checking for egrep" >&5 4018echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4019if test "${ac_cv_prog_egrep+set}" = set; then 4020 echo $ECHO_N "(cached) $ECHO_C" >&6 4021else 4022 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4023 then ac_cv_prog_egrep='grep -E' 4024 else ac_cv_prog_egrep='egrep' 4025 fi 4026fi 4027echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4028echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4029 EGREP=$ac_cv_prog_egrep 4030 4031 4032echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4033echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4034if test "${ac_cv_header_stdc+set}" = set; then 4035 echo $ECHO_N "(cached) $ECHO_C" >&6 4036else 4037 cat >conftest.$ac_ext <<_ACEOF 4038#line $LINENO "configure" 4039/* confdefs.h. */ 4040_ACEOF 4041cat confdefs.h >>conftest.$ac_ext 4042cat >>conftest.$ac_ext <<_ACEOF 4043/* end confdefs.h. */ 4044#include <stdlib.h> 4045#include <stdarg.h> 4046#include <string.h> 4047#include <float.h> 4048 4049int 4050main () 4051{ 4052 4053 ; 4054 return 0; 4055} 4056_ACEOF 4057rm -f conftest.$ac_objext 4058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4059 (eval $ac_compile) 2>&5 4060 ac_status=$? 4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4062 (exit $ac_status); } && 4063 { ac_try='test -s conftest.$ac_objext' 4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4065 (eval $ac_try) 2>&5 4066 ac_status=$? 4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4068 (exit $ac_status); }; }; then 4069 ac_cv_header_stdc=yes 4070else 4071 echo "$as_me: failed program was:" >&5 4072sed 's/^/| /' conftest.$ac_ext >&5 4073 4074ac_cv_header_stdc=no 4075fi 4076rm -f conftest.$ac_objext conftest.$ac_ext 4077 4078if test $ac_cv_header_stdc = yes; then 4079 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4080 cat >conftest.$ac_ext <<_ACEOF 4081#line $LINENO "configure" 4082/* confdefs.h. */ 4083_ACEOF 4084cat confdefs.h >>conftest.$ac_ext 4085cat >>conftest.$ac_ext <<_ACEOF 4086/* end confdefs.h. */ 4087#include <string.h> 4088 4089_ACEOF 4090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4091 $EGREP "memchr" >/dev/null 2>&1; then 4092 : 4093else 4094 ac_cv_header_stdc=no 4095fi 4096rm -f conftest* 4097 4098fi 4099 4100if test $ac_cv_header_stdc = yes; then 4101 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4102 cat >conftest.$ac_ext <<_ACEOF 4103#line $LINENO "configure" 4104/* confdefs.h. */ 4105_ACEOF 4106cat confdefs.h >>conftest.$ac_ext 4107cat >>conftest.$ac_ext <<_ACEOF 4108/* end confdefs.h. */ 4109#include <stdlib.h> 4110 4111_ACEOF 4112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4113 $EGREP "free" >/dev/null 2>&1; then 4114 : 4115else 4116 ac_cv_header_stdc=no 4117fi 4118rm -f conftest* 4119 4120fi 4121 4122if test $ac_cv_header_stdc = yes; then 4123 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4124 if test "$cross_compiling" = yes; then 4125 : 4126else 4127 cat >conftest.$ac_ext <<_ACEOF 4128#line $LINENO "configure" 4129/* confdefs.h. */ 4130_ACEOF 4131cat confdefs.h >>conftest.$ac_ext 4132cat >>conftest.$ac_ext <<_ACEOF 4133/* end confdefs.h. */ 4134#include <ctype.h> 4135#if ((' ' & 0x0FF) == 0x020) 4136# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4137# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4138#else 4139# define ISLOWER(c) \ 4140 (('a' <= (c) && (c) <= 'i') \ 4141 || ('j' <= (c) && (c) <= 'r') \ 4142 || ('s' <= (c) && (c) <= 'z')) 4143# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4144#endif 4145 4146#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4147int 4148main () 4149{ 4150 int i; 4151 for (i = 0; i < 256; i++) 4152 if (XOR (islower (i), ISLOWER (i)) 4153 || toupper (i) != TOUPPER (i)) 4154 exit(2); 4155 exit (0); 4156} 4157_ACEOF 4158rm -f conftest$ac_exeext 4159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4160 (eval $ac_link) 2>&5 4161 ac_status=$? 4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4165 (eval $ac_try) 2>&5 4166 ac_status=$? 4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4168 (exit $ac_status); }; }; then 4169 : 4170else 4171 echo "$as_me: program exited with status $ac_status" >&5 4172echo "$as_me: failed program was:" >&5 4173sed 's/^/| /' conftest.$ac_ext >&5 4174 4175( exit $ac_status ) 4176ac_cv_header_stdc=no 4177fi 4178rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4179fi 4180fi 4181fi 4182echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4183echo "${ECHO_T}$ac_cv_header_stdc" >&6 4184if test $ac_cv_header_stdc = yes; then 4185 4186cat >>confdefs.h <<\_ACEOF 4187#define STDC_HEADERS 1 4188_ACEOF 4189 4190fi 4191 4192 4193#--------------------------------------------------------------------- 4194# Try to set FFLAGS based on the host system type. Unfortunately, 4195# there's no easy way to determine whether f77 is the native 4196# compiler, a front end for f2c, or something else. 4197#--------------------------------------------------------------------- 4198 4199if test -z "$G77" -a "${FFLAGS_not_set}" = yes; then 4200 # The patterns are not necessarily exclusive, so their order is important. 4201 if test "${enable_debug+set}" = set; then 4202 case "$host" in 4203 titan-* ) FFLAGS="-cpp -g" ;; 4204 *-unicos*) FFLAGS="-Zp -dp" ;; 4205 *-hpux1*) FFLAGS="-g +DAportable" ;; 4206 *) FFLAGS="-g" ;; 4207 esac 4208 else 4209 case "$host" in 4210 titan-* ) FFLAGS="-cpp -O2 -inline" ;; 4211 *-unicos*) FFLAGS="-Zp -dp" ;; 4212 *-hpux1*) FFLAGS="-O +DAportable" ;; 4213 *-aix[123]*) FFLAGS="-O" ;; 4214 *-aix*) FFLAGS="-O -qmaxmem=8192" ;; 4215 *) FFLAGS="-O" ;; 4216 esac 4217 fi 4218else 4219 FFLAGS_already_set=yes 4220 if test "$G77" = yes; then 4221 if test "${enable_debug+set}" = set; then 4222 FFLAGS="-g" 4223 fi 4224 fi 4225fi 4226 4227#--------------------------------------------------------------------- 4228# Can we compile Fortran? If not, maybe FFLAGS is set wrong. (This 4229# is likely if f77 is really a front end for f2c.) 4230#--------------------------------------------------------------------- 4231 4232echo "$as_me:$LINENO: checking for working Fortran compiler" >&5 4233echo $ECHO_N "checking for working Fortran compiler... $ECHO_C" >&6 4234cat > conftest.f <<EOF 4235 SUBROUTINE T(I) 4236 INTEGER I 4237 I=I**I 4238 RETURN 4239 END 4240EOF 4241if eval $f77_compile; then 4242 rm -rf conftest* 4243 echo "$as_me:$LINENO: result: yes" >&5 4244echo "${ECHO_T}yes" >&6 4245else 4246 rm -rf conftest* 4247 if test "$FFLAGS_already_set" != yes; then 4248FFLAGS="-O" 4249cat > conftest.f <<EOF 4250 SUBROUTINE T(I) 4251 INTEGER I 4252 I=I**I 4253 RETURN 4254 END 4255EOF 4256if eval $f77_compile; then 4257 rm -rf conftest* 4258 echo "$as_me:$LINENO: result: yes" >&5 4259echo "${ECHO_T}yes" >&6 4260else 4261 rm -rf conftest* 4262 echo "$as_me:$LINENO: result: no" >&5 4263echo "${ECHO_T}no" >&6 4264{ { echo "$as_me:$LINENO: error: unable to compile Fortran" >&5 4265echo "$as_me: error: unable to compile Fortran" >&2;} 4266 { (exit 1); exit 1; }; } 4267fi 4268rm -f conftest* 4269 4270else 4271echo "$as_me:$LINENO: result: no" >&5 4272echo "${ECHO_T}no" >&6 4273{ { echo "$as_me:$LINENO: error: unable to compile Fortran" >&5 4274echo "$as_me: error: unable to compile Fortran" >&2;} 4275 { (exit 1); exit 1; }; } 4276fi 4277fi 4278rm -f conftest* 4279 4280 4281#--------------------------------------------------------------------- 4282# The LAPACK routine DLAMCH must be compiled without optimization. 4283#--------------------------------------------------------------------- 4284 4285if test "${FFLAGS_NOOPT+set}" != set; then 4286 FFLAGS_NOOPT=`echo $FFLAGS | $AWK '{gsub("-O[0-9]*( |$)","");print}'` 4287fi 4288 4289 4290#--------------------------------------------------------------------- 4291# Some bozos hardwire f77 options in their builtin make rules. If 4292# we're using a different Fortran compiler than they expected, this 4293# might fail. 4294#--------------------------------------------------------------------- 4295 4296F77_RULE="#" 4297echo "$as_me:$LINENO: checking for cooperative make and Fortran" >&5 4298echo $ECHO_N "checking for cooperative make and Fortran... $ECHO_C" >&6 4299cat > conftest.f <<EOF 4300 SUBROUTINE T(I) 4301 INTEGER I 4302 I=I**I 4303 RETURN 4304 END 4305EOF 4306cat > conftest.mak <<EOF 4307FC = \$(F77) 4308conftest.o: conftest.f 4309EOF 4310if eval $f77_make; then 4311 rm -rf conftest* 4312 echo "$as_me:$LINENO: result: yes" >&5 4313echo "${ECHO_T}yes" >&6 4314else 4315 rm -rf conftest* 4316 F77_RULE="" 4317cat > conftest.f <<EOF 4318 SUBROUTINE T(I) 4319 INTEGER I 4320 I=I**I 4321 RETURN 4322 END 4323EOF 4324cat > conftest.mak <<EOF 4325FC = \$(F77) 4326conftest.o: conftest.f 4327EOF 4328if eval $f77_make; then 4329 rm -rf conftest* 4330 echo "$as_me:$LINENO: result: yes" >&5 4331echo "${ECHO_T}yes" >&6 4332else 4333 rm -rf conftest* 4334 echo "$as_me:$LINENO: result: no" >&5 4335echo "${ECHO_T}no" >&6 4336{ { echo "$as_me:$LINENO: error: unable to make Fortran" >&5 4337echo "$as_me: error: unable to make Fortran" >&2;} 4338 { (exit 1); exit 1; }; } 4339fi 4340rm -f conftest* 4341 4342fi 4343rm -f conftest* 4344 4345 4346 4347#--------------------------------------------------------------------- 4348# Can we link Fortran? Not much we can do about it, but a failure 4349# here would be less confusing than one below. 4350#--------------------------------------------------------------------- 4351 4352echo "$as_me:$LINENO: checking whether we can link Fortran" >&5 4353echo $ECHO_N "checking whether we can link Fortran... $ECHO_C" >&6 4354cat > conftest.f <<EOF 4355 DOUBLE PRECISION X 4356 X=ERF(2.0) 4357 WRITE(*,*) X 4358 STOP 4359 END 4360EOF 4361if eval $f77_link; then 4362 rm -rf conftest* 4363 echo "$as_me:$LINENO: result: yes" >&5 4364echo "${ECHO_T}yes" >&6 4365else 4366 rm -rf conftest* 4367 echo "$as_me:$LINENO: result: no" >&5 4368echo "${ECHO_T}no" >&6 4369{ { echo "$as_me:$LINENO: error: unable to link Fortran" >&5 4370echo "$as_me: error: unable to link Fortran" >&2;} 4371 { (exit 1); exit 1; }; } 4372fi 4373rm -f conftest* 4374 4375 4376#--------------------------------------------------------------------- 4377# How does the Fortran compiler mangle its symbols? Isn't working 4378# with Fortran fun? 4379#--------------------------------------------------------------------- 4380 4381echo "$as_me:$LINENO: checking how the Fortran compiler mangles its symbols" >&5 4382echo $ECHO_N "checking how the Fortran compiler mangles its symbols... $ECHO_C" >&6 4383f77_sym="" 4384for f in t_ t T; do 4385 cat > conftest.c <<EOF 4386#line 4386 "configure" 4387#include "confdefs.h" 4388int $f() { return 0; } 4389EOF 4390cat > conftestf.f <<EOF 4391 INTEGER I 4392 I=T() 4393 WRITE(*,*) I 4394 STOP 4395 END 4396EOF 4397if eval $f77_c_link; then 4398 rm -rf conftest* 4399 f77_sym="$f"; break 4400fi 4401rm -f conftest* 4402 4403done 4404case "$f77_sym" in 4405 t_ ) cat >>confdefs.h <<\_ACEOF 4406#define NO_FORTRAN_DEFS 0 4407_ACEOF 4408 4409 FTN_SUFFIX="_" 4410 CDEFS="-DAdd_" 4411 4412 ;; 4413 t ) cat >>confdefs.h <<\_ACEOF 4414#define NO_FORTRAN_DEFS 0 4415_ACEOF 4416 4417 FTN_SUFFIX="" 4418 CDEFS="-DNoChange" 4419 4420 ;; 4421 T ) cat >>confdefs.h <<\_ACEOF 4422#define NO_FORTRAN_DEFS 1 4423_ACEOF 4424 4425 FTN_SUFFIX="_" 4426 CDEFS="-DUpCase" 4427 4428 ;; 4429 * ) { { echo "$as_me:$LINENO: error: unable to combine C and Fortran" >&5 4430echo "$as_me: error: unable to combine C and Fortran" >&2;} 4431 { (exit 1); exit 1; }; } 4432esac 4433echo "$as_me:$LINENO: result: \"T\" becomes \"$f77_sym\"" >&5 4434echo "${ECHO_T}\"T\" becomes \"$f77_sym\"" >&6 4435 4436 4437#--------------------------------------------------------------------- 4438# Where would we expect to find the Fortran libraries? 4439#--------------------------------------------------------------------- 4440 4441 4442# Check whether --with-fortran-libs or --without-fortran-libs was given. 4443if test "${with_fortran_libs+set}" = set; then 4444 withval="$with_fortran_libs" 4445 fortran_libs="${withval}" 4446else 4447 # The patterns are not necessarily exclusive, so their order is important. 4448 case "$host" in 4449 sparc-sun-sunos4* ) 4450 fortran_libs="/usr/lang/SC1.0" ;; 4451 sparc-sun-solaris2* ) 4452 fortran_libs=`/bin/ls -d /opt/SUNWspro/SC* | head -1`/lib ;; 4453 alpha*-*-osf* ) 4454 fortran_libs="/usr/lib" ;; 4455 *-hp-hpux1* ) 4456 fortran_libs="/opt/fortran/lib" ;; 4457 * ) 4458 fortran_libs="" ;; 4459 esac 4460fi; 4461 4462#--------------------------------------------------------------------- 4463# What are the names of the native Fortran libraries? The patterns 4464# are not necessarily exclusive, so their order is important. 4465#--------------------------------------------------------------------- 4466 4467case "$host" in 4468 alpha* ) f77_lib_names="Futil ots for Ufor" ;; 4469 *-aix* ) f77_lib_names="xlf xlf90" ;; 4470 *-hpux1* ) f77_lib_names="cl U77" ;; 4471 *-hpux9* ) f77_lib_names="f U77" ;; 4472 *-hpux* ) f77_lib_names="F77 I77 IO77" ;; 4473 *-dec-ultrix* ) f77_lib_names="for i util ots I77 U77 F77" ;; 4474 mips-sgi-irix*) f77_lib_names="F77 I77 U77 isam fpe ftn" ;; 4475 mips-* ) f77_lib_names="F77 I77 U77 isam" ;; 4476 *-solaris2* ) f77_lib_names="F77 M77 sunmath" ;; 4477 *-sunos4* ) f77_lib_names="F77 V77" ;; 4478 titan-* ) f77_lib_names="iF77 uF77 mF77" ;; 4479 *-unicos* ) f77_lib_names="F77 I77 sci f" ;; 4480 * ) f77_lib_names="F77 I77" ;; 4481esac 4482f77_lib_names=gfortran 4483for f in $f77_lib_names; do reversed_names="$f $reversed_names"; done 4484 4485#--------------------------------------------------------------------- 4486# On linux (and perhaps other GNU systems), the linker has trouble 4487# with dynamically linked Fortran. 4488#--------------------------------------------------------------------- 4489 4490cat >> confdefs.h <<\EOF 4491#if linux 4492void MAIN__ (void) {abort();} 4493#endif 4494EOF 4495 4496#--------------------------------------------------------------------- 4497# Check for native Fortran libraries. 4498#--------------------------------------------------------------------- 4499 4500local_LIBS="$LIBS" 4501local_LDFLAGS="$LDFLAGS" 4502echo "$as_me:$LINENO: checking for native Fortran libraries" >&5 4503echo $ECHO_N "checking for native Fortran libraries... $ECHO_C" >&6 4504if test -n "$fortran_libs"; then 4505 runtime_libs="${fortran_libs}:${runtime_libs}" 4506 LDFLAGS="$LDFLAGS -L$fortran_libs" 4507fi 4508echo "$as_me:$LINENO: result: using \"$LDFLAGS $LIBS\"" >&5 4509echo "${ECHO_T}using \"$LDFLAGS $LIBS\"" >&6 4510f77_libs="" 4511save_libs="$LIBS" 4512for f in $reversed_names; do 4513LIBS="$save_libs" 4514 as_ac_Lib=`echo "ac_cv_lib_${f}''_main" | $as_tr_sh` 4515echo "$as_me:$LINENO: checking for main in -l${f}" >&5 4516echo $ECHO_N "checking for main in -l${f}... $ECHO_C" >&6 4517if eval "test \"\${$as_ac_Lib+set}\" = set"; then 4518 echo $ECHO_N "(cached) $ECHO_C" >&6 4519else 4520 ac_check_lib_save_LIBS=$LIBS 4521LIBS="-l${f} $LIBS" 4522cat >conftest.$ac_ext <<_ACEOF 4523#line $LINENO "configure" 4524/* confdefs.h. */ 4525_ACEOF 4526cat confdefs.h >>conftest.$ac_ext 4527cat >>conftest.$ac_ext <<_ACEOF 4528/* end confdefs.h. */ 4529 4530 4531int 4532main () 4533{ 4534main (); 4535 ; 4536 return 0; 4537} 4538_ACEOF 4539rm -f conftest.$ac_objext conftest$ac_exeext 4540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4541 (eval $ac_link) 2>&5 4542 ac_status=$? 4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4544 (exit $ac_status); } && 4545 { ac_try='test -s conftest$ac_exeext' 4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4547 (eval $ac_try) 2>&5 4548 ac_status=$? 4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4550 (exit $ac_status); }; }; then 4551 eval "$as_ac_Lib=yes" 4552else 4553 echo "$as_me: failed program was:" >&5 4554sed 's/^/| /' conftest.$ac_ext >&5 4555 4556eval "$as_ac_Lib=no" 4557fi 4558rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4559LIBS=$ac_check_lib_save_LIBS 4560fi 4561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 4562echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 4563if test `eval echo '${'$as_ac_Lib'}'` = yes; then 4564 f77_libs="-l$f $f77_libs" 4565fi 4566 4567done 4568LIBS="$save_libs" 4569LIBS="$f77_libs $LIBS" 4570 4571#--------------------------------------------------------------------- 4572# Now, can we link a C main routine to a Fortran subroutine? 4573#--------------------------------------------------------------------- 4574 4575echo "$as_me:$LINENO: checking whether we can link C and native Fortran" >&5 4576echo $ECHO_N "checking whether we can link C and native Fortran... $ECHO_C" >&6 4577cat > conftest.c <<EOF 4578#line 4578 "configure" 4579#include "confdefs.h" 4580int main() 4581{ 4582 int i = 2; 4583 $f77_sym(&i); 4584 return i; 4585} 4586EOF 4587cat > conftestf.f <<EOF 4588 SUBROUTINE T(I) 4589 INTEGER I 4590 I=I**CMPLX(I,I) 4591 RETURN 4592 END 4593EOF 4594if eval $c_f77_link; then 4595 rm -rf conftest* 4596 echo "$as_me:$LINENO: result: yes" >&5 4597echo "${ECHO_T}yes" >&6 4598else 4599 rm -rf conftest* 4600 echo "$as_me:$LINENO: result: no" >&5 4601echo "${ECHO_T}no" >&6 4602 { { echo "$as_me:$LINENO: error: Unable to call Fortran from C. Perhaps the value of the 4603--with-fortran-libs option is incorrect." >&5 4604echo "$as_me: error: Unable to call Fortran from C. Perhaps the value of the 4605--with-fortran-libs option is incorrect." >&2;} 4606 { (exit 1); exit 1; }; } 4607fi 4608rm -f conftest* 4609 4610 4611#--------------------------------------------------------------------- 4612# Checks for libraries. Must account for Fortran name mangling. 4613#--------------------------------------------------------------------- 4614 4615case "$f77_sym" in 4616 t_ ) blas_func="daxpy_" 4617 lapack_func="dgeevx_" 4618 bcslib_func="hdslin_" 4619 npsol_func="dgeap_" 4620 etime_func="etime_" 4621 ;; 4622 t ) blas_func="daxpy" 4623 lapack_func="dgeevx" 4624 bcslib_func="hdslin" 4625 npsol_func="dgeap" 4626 etime_func="etime" 4627 ;; 4628 T ) blas_func="DAXPY" 4629 lapack_func="DGEEVX" 4630 bcslib_func="HDSLIN" 4631 npsol_func="DGEAP" 4632 etime_func="ETIME" 4633 ;; 4634 * ) { { echo "$as_me:$LINENO: error: Fortran mangling mistake in configure" >&5 4635echo "$as_me: error: Fortran mangling mistake in configure" >&2;} 4636 { (exit 1); exit 1; }; } 4637esac 4638 4639#--------------------------------------------------------------------- 4640# The readline library provides command line history and editing. 4641#--------------------------------------------------------------------- 4642 4643 4644# Check whether --with-readline or --without-readline was given. 4645if test "${with_readline+set}" = set; then 4646 withval="$with_readline" 4647 case "${withval}" in 4648 n | no ) with_readline=no ;; 4649 y | yes ) with_readline=yes ;; 4650 * ) with_readline=yes 4651 runtime_libs="${withval}:${runtime_libs}" 4652 LDFLAGS="$LDFLAGS -L${withval}" ;; 4653 esac 4654else 4655 with_readline=maybe 4656fi; 4657if test "$with_readline" != no; then 4658 4659if test "X$algae_cv_termcap_lib" = "X"; then 4660_algae_needmsg=yes 4661else 4662echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 4663echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6 4664_algae_needmsg= 4665fi 4666if test "${algae_cv_termcap_lib+set}" = set; then 4667 echo $ECHO_N "(cached) $ECHO_C" >&6 4668else 4669 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 4670echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6 4671if test "${ac_cv_lib_termcap_tgetent+set}" = set; then 4672 echo $ECHO_N "(cached) $ECHO_C" >&6 4673else 4674 ac_check_lib_save_LIBS=$LIBS 4675LIBS="-ltermcap $LIBS" 4676cat >conftest.$ac_ext <<_ACEOF 4677#line $LINENO "configure" 4678/* confdefs.h. */ 4679_ACEOF 4680cat confdefs.h >>conftest.$ac_ext 4681cat >>conftest.$ac_ext <<_ACEOF 4682/* end confdefs.h. */ 4683 4684/* Override any gcc2 internal prototype to avoid an error. */ 4685#ifdef __cplusplus 4686extern "C" 4687#endif 4688/* We use char because int might match the return type of a gcc2 4689 builtin and then its argument prototype would still apply. */ 4690char tgetent (); 4691int 4692main () 4693{ 4694tgetent (); 4695 ; 4696 return 0; 4697} 4698_ACEOF 4699rm -f conftest.$ac_objext conftest$ac_exeext 4700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4701 (eval $ac_link) 2>&5 4702 ac_status=$? 4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4704 (exit $ac_status); } && 4705 { ac_try='test -s conftest$ac_exeext' 4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4707 (eval $ac_try) 2>&5 4708 ac_status=$? 4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4710 (exit $ac_status); }; }; then 4711 ac_cv_lib_termcap_tgetent=yes 4712else 4713 echo "$as_me: failed program was:" >&5 4714sed 's/^/| /' conftest.$ac_ext >&5 4715 4716ac_cv_lib_termcap_tgetent=no 4717fi 4718rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4719LIBS=$ac_check_lib_save_LIBS 4720fi 4721echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 4722echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6 4723if test $ac_cv_lib_termcap_tgetent = yes; then 4724 algae_cv_termcap_lib=termcap 4725else 4726 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5 4727echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6 4728if test "${ac_cv_lib_curses_tgetent+set}" = set; then 4729 echo $ECHO_N "(cached) $ECHO_C" >&6 4730else 4731 ac_check_lib_save_LIBS=$LIBS 4732LIBS="-lcurses $LIBS" 4733cat >conftest.$ac_ext <<_ACEOF 4734#line $LINENO "configure" 4735/* confdefs.h. */ 4736_ACEOF 4737cat confdefs.h >>conftest.$ac_ext 4738cat >>conftest.$ac_ext <<_ACEOF 4739/* end confdefs.h. */ 4740 4741/* Override any gcc2 internal prototype to avoid an error. */ 4742#ifdef __cplusplus 4743extern "C" 4744#endif 4745/* We use char because int might match the return type of a gcc2 4746 builtin and then its argument prototype would still apply. */ 4747char tgetent (); 4748int 4749main () 4750{ 4751tgetent (); 4752 ; 4753 return 0; 4754} 4755_ACEOF 4756rm -f conftest.$ac_objext conftest$ac_exeext 4757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4758 (eval $ac_link) 2>&5 4759 ac_status=$? 4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4761 (exit $ac_status); } && 4762 { ac_try='test -s conftest$ac_exeext' 4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4764 (eval $ac_try) 2>&5 4765 ac_status=$? 4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4767 (exit $ac_status); }; }; then 4768 ac_cv_lib_curses_tgetent=yes 4769else 4770 echo "$as_me: failed program was:" >&5 4771sed 's/^/| /' conftest.$ac_ext >&5 4772 4773ac_cv_lib_curses_tgetent=no 4774fi 4775rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4776LIBS=$ac_check_lib_save_LIBS 4777fi 4778echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5 4779echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6 4780if test $ac_cv_lib_curses_tgetent = yes; then 4781 algae_cv_termcap_lib=curses 4782else 4783 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 4784echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6 4785if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then 4786 echo $ECHO_N "(cached) $ECHO_C" >&6 4787else 4788 ac_check_lib_save_LIBS=$LIBS 4789LIBS="-lncurses $LIBS" 4790cat >conftest.$ac_ext <<_ACEOF 4791#line $LINENO "configure" 4792/* confdefs.h. */ 4793_ACEOF 4794cat confdefs.h >>conftest.$ac_ext 4795cat >>conftest.$ac_ext <<_ACEOF 4796/* end confdefs.h. */ 4797 4798/* Override any gcc2 internal prototype to avoid an error. */ 4799#ifdef __cplusplus 4800extern "C" 4801#endif 4802/* We use char because int might match the return type of a gcc2 4803 builtin and then its argument prototype would still apply. */ 4804char tgetent (); 4805int 4806main () 4807{ 4808tgetent (); 4809 ; 4810 return 0; 4811} 4812_ACEOF 4813rm -f conftest.$ac_objext conftest$ac_exeext 4814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4815 (eval $ac_link) 2>&5 4816 ac_status=$? 4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4818 (exit $ac_status); } && 4819 { ac_try='test -s conftest$ac_exeext' 4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4821 (eval $ac_try) 2>&5 4822 ac_status=$? 4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4824 (exit $ac_status); }; }; then 4825 ac_cv_lib_ncurses_tgetent=yes 4826else 4827 echo "$as_me: failed program was:" >&5 4828sed 's/^/| /' conftest.$ac_ext >&5 4829 4830ac_cv_lib_ncurses_tgetent=no 4831fi 4832rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4833LIBS=$ac_check_lib_save_LIBS 4834fi 4835echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 4836echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6 4837if test $ac_cv_lib_ncurses_tgetent = yes; then 4838 algae_cv_termcap_lib=ncurses 4839else 4840 algae_cv_termcap_lib=no 4841fi 4842 4843fi 4844 4845fi 4846 4847fi 4848 4849if test "X$_algae_needmsg" = "Xyes"; then 4850 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 4851echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6 4852fi 4853if test $algae_cv_termcap_lib = no; then 4854 echo "$as_me:$LINENO: result: none" >&5 4855echo "${ECHO_T}none" >&6 4856else 4857 echo "$as_me:$LINENO: result: using $algae_cv_termcap_lib" >&5 4858echo "${ECHO_T}using $algae_cv_termcap_lib" >&6 4859 LIBS="-l$algae_cv_termcap_lib $LIBS" 4860fi 4861 4862 if test $algae_cv_termcap_lib = no -a $with_readline = yes; then 4863 { { echo "$as_me:$LINENO: error: unable to find termcap library" >&5 4864echo "$as_me: error: unable to find termcap library" >&2;} 4865 { (exit 1); exit 1; }; } 4866 fi 4867 echo "$as_me:$LINENO: checking for rl_yank in -lreadline" >&5 4868echo $ECHO_N "checking for rl_yank in -lreadline... $ECHO_C" >&6 4869if test "${ac_cv_lib_readline_rl_yank+set}" = set; then 4870 echo $ECHO_N "(cached) $ECHO_C" >&6 4871else 4872 ac_check_lib_save_LIBS=$LIBS 4873LIBS="-lreadline $LIBS" 4874cat >conftest.$ac_ext <<_ACEOF 4875#line $LINENO "configure" 4876/* confdefs.h. */ 4877_ACEOF 4878cat confdefs.h >>conftest.$ac_ext 4879cat >>conftest.$ac_ext <<_ACEOF 4880/* end confdefs.h. */ 4881 4882/* Override any gcc2 internal prototype to avoid an error. */ 4883#ifdef __cplusplus 4884extern "C" 4885#endif 4886/* We use char because int might match the return type of a gcc2 4887 builtin and then its argument prototype would still apply. */ 4888char rl_yank (); 4889int 4890main () 4891{ 4892rl_yank (); 4893 ; 4894 return 0; 4895} 4896_ACEOF 4897rm -f conftest.$ac_objext conftest$ac_exeext 4898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4899 (eval $ac_link) 2>&5 4900 ac_status=$? 4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4902 (exit $ac_status); } && 4903 { ac_try='test -s conftest$ac_exeext' 4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4905 (eval $ac_try) 2>&5 4906 ac_status=$? 4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4908 (exit $ac_status); }; }; then 4909 ac_cv_lib_readline_rl_yank=yes 4910else 4911 echo "$as_me: failed program was:" >&5 4912sed 's/^/| /' conftest.$ac_ext >&5 4913 4914ac_cv_lib_readline_rl_yank=no 4915fi 4916rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4917LIBS=$ac_check_lib_save_LIBS 4918fi 4919echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_yank" >&5 4920echo "${ECHO_T}$ac_cv_lib_readline_rl_yank" >&6 4921if test $ac_cv_lib_readline_rl_yank = yes; then 4922 LIBS="-lreadline $LIBS" 4923 cat >>confdefs.h <<\_ACEOF 4924#define HAVE_LIBREADLINE 1 4925_ACEOF 4926 4927else 4928 cat >>confdefs.h <<\_ACEOF 4929#define HAVE_LIBREADLINE 0 4930_ACEOF 4931 4932 if test $with_readline = yes; then 4933 { { echo "$as_me:$LINENO: error: unable to use the readline library" >&5 4934echo "$as_me: error: unable to use the readline library" >&2;} 4935 { (exit 1); exit 1; }; } 4936 fi 4937fi 4938 4939fi 4940 4941#--------------------------------------------------------------------- 4942# "Fastest Fourier Transform in the West" 4943# The fftw library provides high-performance FFTs. Algae provides 4944# its own less-sophisticated routines if fftw isn't available. 4945#--------------------------------------------------------------------- 4946 4947 4948# Check whether --with-fftw or --without-fftw was given. 4949if test "${with_fftw+set}" = set; then 4950 withval="$with_fftw" 4951 case "${withval}" in 4952 n | no ) with_fftw=no ;; 4953 y | yes ) with_fftw=yes ;; 4954 * ) with_fftw=yes 4955 CFLAGS="$CFLAGS -I${withval}/include" 4956 LDFLAGS="$LDFLAGS -L${withval}/lib" ;; 4957 esac 4958else 4959 with_fftw=maybe 4960fi; 4961if test "$with_fftw" != no; then 4962 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4973 inttypes.h stdint.h unistd.h 4974do 4975as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4976echo "$as_me:$LINENO: checking for $ac_header" >&5 4977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4978if eval "test \"\${$as_ac_Header+set}\" = set"; then 4979 echo $ECHO_N "(cached) $ECHO_C" >&6 4980else 4981 cat >conftest.$ac_ext <<_ACEOF 4982#line $LINENO "configure" 4983/* confdefs.h. */ 4984_ACEOF 4985cat confdefs.h >>conftest.$ac_ext 4986cat >>conftest.$ac_ext <<_ACEOF 4987/* end confdefs.h. */ 4988$ac_includes_default 4989 4990#include <$ac_header> 4991_ACEOF 4992rm -f conftest.$ac_objext 4993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4994 (eval $ac_compile) 2>&5 4995 ac_status=$? 4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4997 (exit $ac_status); } && 4998 { ac_try='test -s conftest.$ac_objext' 4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5000 (eval $ac_try) 2>&5 5001 ac_status=$? 5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5003 (exit $ac_status); }; }; then 5004 eval "$as_ac_Header=yes" 5005else 5006 echo "$as_me: failed program was:" >&5 5007sed 's/^/| /' conftest.$ac_ext >&5 5008 5009eval "$as_ac_Header=no" 5010fi 5011rm -f conftest.$ac_objext conftest.$ac_ext 5012fi 5013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5014echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5015if test `eval echo '${'$as_ac_Header'}'` = yes; then 5016 cat >>confdefs.h <<_ACEOF 5017#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5018_ACEOF 5019 5020fi 5021 5022done 5023 5024 5025 5026for ac_header in fftw3.h 5027do 5028as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5029if eval "test \"\${$as_ac_Header+set}\" = set"; then 5030 echo "$as_me:$LINENO: checking for $ac_header" >&5 5031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5032if eval "test \"\${$as_ac_Header+set}\" = set"; then 5033 echo $ECHO_N "(cached) $ECHO_C" >&6 5034fi 5035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5036echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5037else 5038 # Is the header compilable? 5039echo "$as_me:$LINENO: checking $ac_header usability" >&5 5040echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5041cat >conftest.$ac_ext <<_ACEOF 5042#line $LINENO "configure" 5043/* confdefs.h. */ 5044_ACEOF 5045cat confdefs.h >>conftest.$ac_ext 5046cat >>conftest.$ac_ext <<_ACEOF 5047/* end confdefs.h. */ 5048$ac_includes_default 5049#include <$ac_header> 5050_ACEOF 5051rm -f conftest.$ac_objext 5052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5053 (eval $ac_compile) 2>&5 5054 ac_status=$? 5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5056 (exit $ac_status); } && 5057 { ac_try='test -s conftest.$ac_objext' 5058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5059 (eval $ac_try) 2>&5 5060 ac_status=$? 5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5062 (exit $ac_status); }; }; then 5063 ac_header_compiler=yes 5064else 5065 echo "$as_me: failed program was:" >&5 5066sed 's/^/| /' conftest.$ac_ext >&5 5067 5068ac_header_compiler=no 5069fi 5070rm -f conftest.$ac_objext conftest.$ac_ext 5071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5072echo "${ECHO_T}$ac_header_compiler" >&6 5073 5074# Is the header present? 5075echo "$as_me:$LINENO: checking $ac_header presence" >&5 5076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5077cat >conftest.$ac_ext <<_ACEOF 5078#line $LINENO "configure" 5079/* confdefs.h. */ 5080_ACEOF 5081cat confdefs.h >>conftest.$ac_ext 5082cat >>conftest.$ac_ext <<_ACEOF 5083/* end confdefs.h. */ 5084#include <$ac_header> 5085_ACEOF 5086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5088 ac_status=$? 5089 grep -v '^ *+' conftest.er1 >conftest.err 5090 rm -f conftest.er1 5091 cat conftest.err >&5 5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5093 (exit $ac_status); } >/dev/null; then 5094 if test -s conftest.err; then 5095 ac_cpp_err=$ac_c_preproc_warn_flag 5096 else 5097 ac_cpp_err= 5098 fi 5099else 5100 ac_cpp_err=yes 5101fi 5102if test -z "$ac_cpp_err"; then 5103 ac_header_preproc=yes 5104else 5105 echo "$as_me: failed program was:" >&5 5106sed 's/^/| /' conftest.$ac_ext >&5 5107 5108 ac_header_preproc=no 5109fi 5110rm -f conftest.err conftest.$ac_ext 5111echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5112echo "${ECHO_T}$ac_header_preproc" >&6 5113 5114# So? What about this header? 5115case $ac_header_compiler:$ac_header_preproc in 5116 yes:no ) 5117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5120echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5121 ( 5122 cat <<\_ASBOX 5123## ------------------------------------ ## 5124## Report this to bug-autoconf@gnu.org. ## 5125## ------------------------------------ ## 5126_ASBOX 5127 ) | 5128 sed "s/^/$as_me: WARNING: /" >&2 5129 ;; 5130 no:yes ) 5131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5132echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5134echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5136echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5137 ( 5138 cat <<\_ASBOX 5139## ------------------------------------ ## 5140## Report this to bug-autoconf@gnu.org. ## 5141## ------------------------------------ ## 5142_ASBOX 5143 ) | 5144 sed "s/^/$as_me: WARNING: /" >&2 5145 ;; 5146esac 5147echo "$as_me:$LINENO: checking for $ac_header" >&5 5148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5149if eval "test \"\${$as_ac_Header+set}\" = set"; then 5150 echo $ECHO_N "(cached) $ECHO_C" >&6 5151else 5152 eval "$as_ac_Header=$ac_header_preproc" 5153fi 5154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5155echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5156 5157fi 5158if test `eval echo '${'$as_ac_Header'}'` = yes; then 5159 cat >>confdefs.h <<_ACEOF 5160#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5161_ACEOF 5162 5163fi 5164 5165done 5166 5167 if test "$ac_cv_header_fftw3_h" = yes; then 5168 echo "$as_me:$LINENO: checking for fftw_malloc in -lfftw3" >&5 5169echo $ECHO_N "checking for fftw_malloc in -lfftw3... $ECHO_C" >&6 5170if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then 5171 echo $ECHO_N "(cached) $ECHO_C" >&6 5172else 5173 ac_check_lib_save_LIBS=$LIBS 5174LIBS="-lfftw3 $LIBS" 5175cat >conftest.$ac_ext <<_ACEOF 5176#line $LINENO "configure" 5177/* confdefs.h. */ 5178_ACEOF 5179cat confdefs.h >>conftest.$ac_ext 5180cat >>conftest.$ac_ext <<_ACEOF 5181/* end confdefs.h. */ 5182 5183/* Override any gcc2 internal prototype to avoid an error. */ 5184#ifdef __cplusplus 5185extern "C" 5186#endif 5187/* We use char because int might match the return type of a gcc2 5188 builtin and then its argument prototype would still apply. */ 5189char fftw_malloc (); 5190int 5191main () 5192{ 5193fftw_malloc (); 5194 ; 5195 return 0; 5196} 5197_ACEOF 5198rm -f conftest.$ac_objext conftest$ac_exeext 5199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5200 (eval $ac_link) 2>&5 5201 ac_status=$? 5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5203 (exit $ac_status); } && 5204 { ac_try='test -s conftest$ac_exeext' 5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5206 (eval $ac_try) 2>&5 5207 ac_status=$? 5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5209 (exit $ac_status); }; }; then 5210 ac_cv_lib_fftw3_fftw_malloc=yes 5211else 5212 echo "$as_me: failed program was:" >&5 5213sed 's/^/| /' conftest.$ac_ext >&5 5214 5215ac_cv_lib_fftw3_fftw_malloc=no 5216fi 5217rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5218LIBS=$ac_check_lib_save_LIBS 5219fi 5220echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_malloc" >&5 5221echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_malloc" >&6 5222if test $ac_cv_lib_fftw3_fftw_malloc = yes; then 5223 LIBS="-lfftw3 $LIBS" 5224 cat >>confdefs.h <<\_ACEOF 5225#define HAVE_FFTW 1 5226_ACEOF 5227 5228else 5229 cat >>confdefs.h <<\_ACEOF 5230#define HAVE_FFTW 0 5231_ACEOF 5232 5233 if test $with_fftw = yes; then 5234 { { echo "$as_me:$LINENO: error: unable to use the fftw library" >&5 5235echo "$as_me: error: unable to use the fftw library" >&2;} 5236 { (exit 1); exit 1; }; } 5237 fi 5238fi 5239 5240 else 5241 if test "$with_fftw" = yes; then 5242 { { echo "$as_me:$LINENO: error: unable to use the fftw library" >&5 5243echo "$as_me: error: unable to use the fftw library" >&2;} 5244 { (exit 1); exit 1; }; } 5245 fi 5246 fi 5247fi 5248 5249# Check whether --enable-both-fft or --disable-both-fft was given. 5250if test "${enable_both_fft+set}" = set; then 5251 enableval="$enable_both_fft" 5252 case "${enableval}" in 5253 y | yes ) cat >>confdefs.h <<\_ACEOF 5254#define USE_BOTH_FFT 1 5255_ACEOF 5256 ;; 5257 * ) cat >>confdefs.h <<\_ACEOF 5258#define USE_BOTH_FFT 0 5259_ACEOF 5260 ;; 5261 esac 5262else 5263 cat >>confdefs.h <<\_ACEOF 5264#define USE_BOTH_FFT 0 5265_ACEOF 5266 5267fi; 5268 5269#--------------------------------------------------------------------- 5270# The BLAS (Basic Linear Algebra Subprograms) library is required. 5271# We look for an existing one first, but use the generic version 5272# distributed with Algae if we must. 5273#--------------------------------------------------------------------- 5274 5275 5276# Check whether --with-blas or --without-blas was given. 5277if test "${with_blas+set}" = set; then 5278 withval="$with_blas" 5279 case "${withval}" in 5280 y|yes ) ;; 5281 n|no ) BLAS=xblas ;; 5282 * ) LDFLAGS="$LDFLAGS -L${withval}" ;; 5283 esac 5284fi; 5285case $BLAS in 5286 xblas ) ;; 5287 * ) 5288as_ac_Lib=`echo "ac_cv_lib_blas_$blas_func" | $as_tr_sh` 5289echo "$as_me:$LINENO: checking for $blas_func in -lblas" >&5 5290echo $ECHO_N "checking for $blas_func in -lblas... $ECHO_C" >&6 5291if eval "test \"\${$as_ac_Lib+set}\" = set"; then 5292 echo $ECHO_N "(cached) $ECHO_C" >&6 5293else 5294 ac_check_lib_save_LIBS=$LIBS 5295LIBS="-lblas $LIBS" 5296cat >conftest.$ac_ext <<_ACEOF 5297#line $LINENO "configure" 5298/* confdefs.h. */ 5299_ACEOF 5300cat confdefs.h >>conftest.$ac_ext 5301cat >>conftest.$ac_ext <<_ACEOF 5302/* end confdefs.h. */ 5303 5304/* Override any gcc2 internal prototype to avoid an error. */ 5305#ifdef __cplusplus 5306extern "C" 5307#endif 5308/* We use char because int might match the return type of a gcc2 5309 builtin and then its argument prototype would still apply. */ 5310char $blas_func (); 5311int 5312main () 5313{ 5314$blas_func (); 5315 ; 5316 return 0; 5317} 5318_ACEOF 5319rm -f conftest.$ac_objext conftest$ac_exeext 5320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5321 (eval $ac_link) 2>&5 5322 ac_status=$? 5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5324 (exit $ac_status); } && 5325 { ac_try='test -s conftest$ac_exeext' 5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5327 (eval $ac_try) 2>&5 5328 ac_status=$? 5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5330 (exit $ac_status); }; }; then 5331 eval "$as_ac_Lib=yes" 5332else 5333 echo "$as_me: failed program was:" >&5 5334sed 's/^/| /' conftest.$ac_ext >&5 5335 5336eval "$as_ac_Lib=no" 5337fi 5338rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5339LIBS=$ac_check_lib_save_LIBS 5340fi 5341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 5342echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 5343if test `eval echo '${'$as_ac_Lib'}'` = yes; then 5344 cat >>confdefs.h <<_ACEOF 5345#define HAVE_LIBBLAS 1 5346_ACEOF 5347 5348 LIBS="-lblas $LIBS" 5349 5350else 5351 case "$host" in 5352 alpha* ) 5353as_ac_Lib=`echo "ac_cv_lib_dxml_$blas_func" | $as_tr_sh` 5354echo "$as_me:$LINENO: checking for $blas_func in -ldxml" >&5 5355echo $ECHO_N "checking for $blas_func in -ldxml... $ECHO_C" >&6 5356if eval "test \"\${$as_ac_Lib+set}\" = set"; then 5357 echo $ECHO_N "(cached) $ECHO_C" >&6 5358else 5359 ac_check_lib_save_LIBS=$LIBS 5360LIBS="-ldxml $LIBS" 5361cat >conftest.$ac_ext <<_ACEOF 5362#line $LINENO "configure" 5363/* confdefs.h. */ 5364_ACEOF 5365cat confdefs.h >>conftest.$ac_ext 5366cat >>conftest.$ac_ext <<_ACEOF 5367/* end confdefs.h. */ 5368 5369/* Override any gcc2 internal prototype to avoid an error. */ 5370#ifdef __cplusplus 5371extern "C" 5372#endif 5373/* We use char because int might match the return type of a gcc2 5374 builtin and then its argument prototype would still apply. */ 5375char $blas_func (); 5376int 5377main () 5378{ 5379$blas_func (); 5380 ; 5381 return 0; 5382} 5383_ACEOF 5384rm -f conftest.$ac_objext conftest$ac_exeext 5385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5386 (eval $ac_link) 2>&5 5387 ac_status=$? 5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5389 (exit $ac_status); } && 5390 { ac_try='test -s conftest$ac_exeext' 5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5392 (eval $ac_try) 2>&5 5393 ac_status=$? 5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5395 (exit $ac_status); }; }; then 5396 eval "$as_ac_Lib=yes" 5397else 5398 echo "$as_me: failed program was:" >&5 5399sed 's/^/| /' conftest.$ac_ext >&5 5400 5401eval "$as_ac_Lib=no" 5402fi 5403rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5404LIBS=$ac_check_lib_save_LIBS 5405fi 5406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 5407echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 5408if test `eval echo '${'$as_ac_Lib'}'` = yes; then 5409 cat >>confdefs.h <<_ACEOF 5410#define HAVE_LIBDXML 1 5411_ACEOF 5412 5413 LIBS="-ldxml $LIBS" 5414 5415else 5416 BLAS=xblas 5417fi 5418 ;; 5419 *-aix* ) 5420as_ac_Lib=`echo "ac_cv_lib_essl_$blas_func" | $as_tr_sh` 5421echo "$as_me:$LINENO: checking for $blas_func in -lessl" >&5 5422echo $ECHO_N "checking for $blas_func in -lessl... $ECHO_C" >&6 5423if eval "test \"\${$as_ac_Lib+set}\" = set"; then 5424 echo $ECHO_N "(cached) $ECHO_C" >&6 5425else 5426 ac_check_lib_save_LIBS=$LIBS 5427LIBS="-lessl $LIBS" 5428cat >conftest.$ac_ext <<_ACEOF 5429#line $LINENO "configure" 5430/* confdefs.h. */ 5431_ACEOF 5432cat confdefs.h >>conftest.$ac_ext 5433cat >>conftest.$ac_ext <<_ACEOF 5434/* end confdefs.h. */ 5435 5436/* Override any gcc2 internal prototype to avoid an error. */ 5437#ifdef __cplusplus 5438extern "C" 5439#endif 5440/* We use char because int might match the return type of a gcc2 5441 builtin and then its argument prototype would still apply. */ 5442char $blas_func (); 5443int 5444main () 5445{ 5446$blas_func (); 5447 ; 5448 return 0; 5449} 5450_ACEOF 5451rm -f conftest.$ac_objext conftest$ac_exeext 5452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5453 (eval $ac_link) 2>&5 5454 ac_status=$? 5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5456 (exit $ac_status); } && 5457 { ac_try='test -s conftest$ac_exeext' 5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5459 (eval $ac_try) 2>&5 5460 ac_status=$? 5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5462 (exit $ac_status); }; }; then 5463 eval "$as_ac_Lib=yes" 5464else 5465 echo "$as_me: failed program was:" >&5 5466sed 's/^/| /' conftest.$ac_ext >&5 5467 5468eval "$as_ac_Lib=no" 5469fi 5470rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5471LIBS=$ac_check_lib_save_LIBS 5472fi 5473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 5474echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 5475if test `eval echo '${'$as_ac_Lib'}'` = yes; then 5476 cat >>confdefs.h <<_ACEOF 5477#define HAVE_LIBESSL 1 5478_ACEOF 5479 5480 LIBS="-lessl $LIBS" 5481 5482else 5483 BLAS=xblas 5484fi 5485 ;; 5486 * ) BLAS=xblas ;; 5487 esac 5488fi 5489 ;; 5490esac 5491 5492# If we're using our own version, we need to make sure that ld can 5493# find it. We don't put it in LIBS, though, because the other config 5494# checks (except for LAPACK) don't need it and won't find it. 5495 5496if test "$BLAS" = xblas; then 5497 LOCAL_LIBS="../blas/libblas.a $LOCAL_LIBS" 5498fi 5499 5500 5501#--------------------------------------------------------------------- 5502# The LAPACK library is required. We look for an existing one first, 5503# but use the generic version distributed with Algae if we must. 5504#--------------------------------------------------------------------- 5505 5506 5507# Check whether --with-lapack or --without-lapack was given. 5508if test "${with_lapack+set}" = set; then 5509 withval="$with_lapack" 5510 case "${withval}" in 5511 y|yes ) ;; 5512 n|no ) LAPACK=xlapack ;; 5513 * ) LDFLAGS="$LDFLAGS -L${withval}" ;; 5514 esac 5515fi; 5516case $LAPACK in 5517 xlapack ) ;; 5518 * ) 5519as_ac_Lib=`echo "ac_cv_lib_lapack_$lapack_func" | $as_tr_sh` 5520echo "$as_me:$LINENO: checking for $lapack_func in -llapack" >&5 5521echo $ECHO_N "checking for $lapack_func in -llapack... $ECHO_C" >&6 5522if eval "test \"\${$as_ac_Lib+set}\" = set"; then 5523 echo $ECHO_N "(cached) $ECHO_C" >&6 5524else 5525 ac_check_lib_save_LIBS=$LIBS 5526LIBS="-llapack ${BLAS:+'-lblas'} $LIBS" 5527cat >conftest.$ac_ext <<_ACEOF 5528#line $LINENO "configure" 5529/* confdefs.h. */ 5530_ACEOF 5531cat confdefs.h >>conftest.$ac_ext 5532cat >>conftest.$ac_ext <<_ACEOF 5533/* end confdefs.h. */ 5534 5535/* Override any gcc2 internal prototype to avoid an error. */ 5536#ifdef __cplusplus 5537extern "C" 5538#endif 5539/* We use char because int might match the return type of a gcc2 5540 builtin and then its argument prototype would still apply. */ 5541char $lapack_func (); 5542int 5543main () 5544{ 5545$lapack_func (); 5546 ; 5547 return 0; 5548} 5549_ACEOF 5550rm -f conftest.$ac_objext conftest$ac_exeext 5551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5552 (eval $ac_link) 2>&5 5553 ac_status=$? 5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5555 (exit $ac_status); } && 5556 { ac_try='test -s conftest$ac_exeext' 5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5558 (eval $ac_try) 2>&5 5559 ac_status=$? 5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5561 (exit $ac_status); }; }; then 5562 eval "$as_ac_Lib=yes" 5563else 5564 echo "$as_me: failed program was:" >&5 5565sed 's/^/| /' conftest.$ac_ext >&5 5566 5567eval "$as_ac_Lib=no" 5568fi 5569rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5570LIBS=$ac_check_lib_save_LIBS 5571fi 5572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 5573echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 5574if test `eval echo '${'$as_ac_Lib'}'` = yes; then 5575 cat >>confdefs.h <<_ACEOF 5576#define HAVE_LIBLAPACK 1 5577_ACEOF 5578 5579 LIBS="-llapack $LIBS" 5580 5581else 5582 LAPACK=xlapack 5583fi 5584 ;; 5585esac 5586 5587# If we're using our own version, we need to make sure that ld can 5588# find it. We don't put it in LIBS, though, because the other config 5589# checks don't need it and won't find it. 5590 5591if test "$LAPACK" = xlapack; then 5592 LOCAL_LIBS="../lapack/liblapack.a $LOCAL_LIBS" 5593fi 5594 5595 5596 5597#--------------------------------------------------------------------- 5598# BCSLIB-EXT is a Boeing package that provides high-quality sparse 5599# matrix solvers. Algae can use it if it's available. 5600#--------------------------------------------------------------------- 5601 5602 5603# Check whether --with-bcslib or --without-bcslib was given. 5604if test "${with_bcslib+set}" = set; then 5605 withval="$with_bcslib" 5606 case "${withval}" in 5607 n | no ) with_bcslib=no ;; 5608 y | yes ) with_bcslib=yes ;; 5609 * ) with_bcslib=yes 5610 runtime_libs="${withval}:${runtime_libs}" 5611 LDFLAGS="$LDFLAGS -L${withval}" ;; 5612 esac 5613else 5614 with_bcslib=maybe 5615fi; 5616 5617## On Crays, C doubles are the same size as Fortran single precision, 5618## unless you tell the Fortran compiler to treat double precision as 5619## single (the -dp option). That's what we do for LAPACK, but can't 5620## for BCSLIB. 5621 5622case "$host" in 5623 *-unicos* ) bcslib_func=HSSLIN 5624 bcsobj="bcs_sp.o" 5625 cat >>confdefs.h <<\_ACEOF 5626#define SINGLE_BCSLIB 1 5627_ACEOF 5628 ;; 5629 * ) bcsobj="bcs.o" ;; 5630esac 5631 5632if test $with_bcslib != no; then 5633 5634echo "$as_me:$LINENO: checking for main in -lbcslib" >&5 5635echo $ECHO_N "checking for main in -lbcslib... $ECHO_C" >&6 5636if test "${ac_cv_lib_bcslib_main+set}" = set; then 5637 echo $ECHO_N "(cached) $ECHO_C" >&6 5638else 5639 ac_check_lib_save_LIBS=$LIBS 5640LIBS="-lbcslib $LIBS" 5641cat >conftest.$ac_ext <<_ACEOF 5642#line $LINENO "configure" 5643/* confdefs.h. */ 5644_ACEOF 5645cat confdefs.h >>conftest.$ac_ext 5646cat >>conftest.$ac_ext <<_ACEOF 5647/* end confdefs.h. */ 5648 5649 5650int 5651main () 5652{ 5653main (); 5654 ; 5655 return 0; 5656} 5657_ACEOF 5658rm -f conftest.$ac_objext conftest$ac_exeext 5659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5660 (eval $ac_link) 2>&5 5661 ac_status=$? 5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5663 (exit $ac_status); } && 5664 { ac_try='test -s conftest$ac_exeext' 5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5666 (eval $ac_try) 2>&5 5667 ac_status=$? 5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5669 (exit $ac_status); }; }; then 5670 ac_cv_lib_bcslib_main=yes 5671else 5672 echo "$as_me: failed program was:" >&5 5673sed 's/^/| /' conftest.$ac_ext >&5 5674 5675ac_cv_lib_bcslib_main=no 5676fi 5677rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5678LIBS=$ac_check_lib_save_LIBS 5679fi 5680echo "$as_me:$LINENO: result: $ac_cv_lib_bcslib_main" >&5 5681echo "${ECHO_T}$ac_cv_lib_bcslib_main" >&6 5682if test $ac_cv_lib_bcslib_main = yes; then 5683 cat >>confdefs.h <<_ACEOF 5684#define HAVE_LIBBCSLIB 1 5685_ACEOF 5686 5687 LIBS="-lbcslib $LIBS" 5688 5689fi 5690 5691 as_ac_Lib=`echo "ac_cv_lib_bcsext_$bcslib_func" | $as_tr_sh` 5692echo "$as_me:$LINENO: checking for $bcslib_func in -lbcsext" >&5 5693echo $ECHO_N "checking for $bcslib_func in -lbcsext... $ECHO_C" >&6 5694if eval "test \"\${$as_ac_Lib+set}\" = set"; then 5695 echo $ECHO_N "(cached) $ECHO_C" >&6 5696else 5697 ac_check_lib_save_LIBS=$LIBS 5698LIBS="-lbcsext $LIBS" 5699cat >conftest.$ac_ext <<_ACEOF 5700#line $LINENO "configure" 5701/* confdefs.h. */ 5702_ACEOF 5703cat confdefs.h >>conftest.$ac_ext 5704cat >>conftest.$ac_ext <<_ACEOF 5705/* end confdefs.h. */ 5706 5707/* Override any gcc2 internal prototype to avoid an error. */ 5708#ifdef __cplusplus 5709extern "C" 5710#endif 5711/* We use char because int might match the return type of a gcc2 5712 builtin and then its argument prototype would still apply. */ 5713char $bcslib_func (); 5714int 5715main () 5716{ 5717$bcslib_func (); 5718 ; 5719 return 0; 5720} 5721_ACEOF 5722rm -f conftest.$ac_objext conftest$ac_exeext 5723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5724 (eval $ac_link) 2>&5 5725 ac_status=$? 5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5727 (exit $ac_status); } && 5728 { ac_try='test -s conftest$ac_exeext' 5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5730 (eval $ac_try) 2>&5 5731 ac_status=$? 5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5733 (exit $ac_status); }; }; then 5734 eval "$as_ac_Lib=yes" 5735else 5736 echo "$as_me: failed program was:" >&5 5737sed 's/^/| /' conftest.$ac_ext >&5 5738 5739eval "$as_ac_Lib=no" 5740fi 5741rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5742LIBS=$ac_check_lib_save_LIBS 5743fi 5744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 5745echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 5746if test `eval echo '${'$as_ac_Lib'}'` = yes; then 5747 cat >>confdefs.h <<\_ACEOF 5748#define HAVE_LIBBCSEXT 1 5749_ACEOF 5750 5751 LIBS="-lbcsext $LIBS" 5752 OPTOBJS="$OPTOBJS $bcsobj" 5753else 5754 cat >>confdefs.h <<\_ACEOF 5755#define HAVE_LIBBCSEXT 0 5756_ACEOF 5757 5758 if test $with_bcslib = yes; then 5759 { { echo "$as_me:$LINENO: error: The BCSLIB package was requested but not found." >&5 5760echo "$as_me: error: The BCSLIB package was requested but not found." >&2;} 5761 { (exit 1); exit 1; }; } 5762 fi 5763fi 5764 5765fi 5766 5767 5768#--------------------------------------------------------------------- 5769# The npsol library provides an optimization capability. 5770#--------------------------------------------------------------------- 5771 5772 5773# Check whether --with-npsol or --without-npsol was given. 5774if test "${with_npsol+set}" = set; then 5775 withval="$with_npsol" 5776 case "${withval}" in 5777 n | no ) with_npsol=no ;; 5778 y | yes ) with_npsol=yes ;; 5779 * ) with_npsol=yes 5780 runtime_libs="${withval}:${runtime_libs}" 5781 LDFLAGS="$LDFLAGS -L${withval}" ;; 5782 esac 5783else 5784 with_npsol=maybe 5785fi; 5786if test "$with_npsol" != no; then 5787 as_ac_Lib=`echo "ac_cv_lib_npsol_$npsol_func" | $as_tr_sh` 5788echo "$as_me:$LINENO: checking for $npsol_func in -lnpsol" >&5 5789echo $ECHO_N "checking for $npsol_func in -lnpsol... $ECHO_C" >&6 5790if eval "test \"\${$as_ac_Lib+set}\" = set"; then 5791 echo $ECHO_N "(cached) $ECHO_C" >&6 5792else 5793 ac_check_lib_save_LIBS=$LIBS 5794LIBS="-lnpsol -lblas $LIBS" 5795cat >conftest.$ac_ext <<_ACEOF 5796#line $LINENO "configure" 5797/* confdefs.h. */ 5798_ACEOF 5799cat confdefs.h >>conftest.$ac_ext 5800cat >>conftest.$ac_ext <<_ACEOF 5801/* end confdefs.h. */ 5802 5803/* Override any gcc2 internal prototype to avoid an error. */ 5804#ifdef __cplusplus 5805extern "C" 5806#endif 5807/* We use char because int might match the return type of a gcc2 5808 builtin and then its argument prototype would still apply. */ 5809char $npsol_func (); 5810int 5811main () 5812{ 5813$npsol_func (); 5814 ; 5815 return 0; 5816} 5817_ACEOF 5818rm -f conftest.$ac_objext conftest$ac_exeext 5819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5820 (eval $ac_link) 2>&5 5821 ac_status=$? 5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5823 (exit $ac_status); } && 5824 { ac_try='test -s conftest$ac_exeext' 5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5826 (eval $ac_try) 2>&5 5827 ac_status=$? 5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5829 (exit $ac_status); }; }; then 5830 eval "$as_ac_Lib=yes" 5831else 5832 echo "$as_me: failed program was:" >&5 5833sed 's/^/| /' conftest.$ac_ext >&5 5834 5835eval "$as_ac_Lib=no" 5836fi 5837rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5838LIBS=$ac_check_lib_save_LIBS 5839fi 5840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 5841echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 5842if test `eval echo '${'$as_ac_Lib'}'` = yes; then 5843 LIBS="-lnpsol $LIBS" 5844 cat >>confdefs.h <<\_ACEOF 5845#define HAVE_NPSOL 1 5846_ACEOF 5847 5848else 5849 cat >>confdefs.h <<\_ACEOF 5850#define HAVE_NPSOL 0 5851_ACEOF 5852 5853 if test $with_npsol = yes; then 5854 { { echo "$as_me:$LINENO: error: unable to use the npsol library" >&5 5855echo "$as_me: error: unable to use the npsol library" >&2;} 5856 { (exit 1); exit 1; }; } 5857 fi 5858fi 5859 5860fi 5861 5862#--------------------------------------------------------------------- 5863# If the system supports shared objects, we may need to point the 5864# run-time linker to our local libraries. 5865#--------------------------------------------------------------------- 5866 5867if test "$GCC" = yes; then XLINKER="-Xlinker"; fi 5868case "$host" in 5869# a cc() bug prevents this from working on the alpha 5870# alpha* ) LDFLAGS="$LDFLAGS $XLINKER -rpath $XLINKER $runtime_libs" ;; 5871 *-hpux1* ) LDFLAGS="$LDFLAGS -Wl,+b:" ;; 5872 *-hpux9* ) LDFLAGS="$LDFLAGS -Wl,+b:" ;; 5873 *-linux* ) LDFLAGS="$LDFLAGS -Wl,-export-dynamic" 5874 for r in `echo $runtime_libs | tr ':' ' '`; do 5875 LDFLAGS="$LDFLAGS -Wl,-rpath $r" 5876 done ;; 5877 *-solaris2* ) LDFLAGS="$LDFLAGS $XLINKER -R $XLINKER $runtime_libs" ;; 5878 *-sysv4.2* ) LD_RUN_PATH="$runtime_libs" 5879 ;; 5880esac 5881 5882#--------------------------------------------------------------------- 5883# By default, AIX has a severe memory limitation. 5884#--------------------------------------------------------------------- 5885 5886if test "$LDFLAGS_not_set" = yes; then 5887 case "$host" in 5888 *-aix* ) LDFLAGS="$XLINKER -bmaxdata:0x80000000 $LDFLAGS" ;; 5889 esac 5890fi 5891 5892#--------------------------------------------------------------------- 5893# Checks for header files. 5894#--------------------------------------------------------------------- 5895 5896 5897 5898 5899 5900 5901 5902for ac_header in fcntl.h float.h sys/time.h memory.h stdlib.h standards.h 5903do 5904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5905if eval "test \"\${$as_ac_Header+set}\" = set"; then 5906 echo "$as_me:$LINENO: checking for $ac_header" >&5 5907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5908if eval "test \"\${$as_ac_Header+set}\" = set"; then 5909 echo $ECHO_N "(cached) $ECHO_C" >&6 5910fi 5911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5913else 5914 # Is the header compilable? 5915echo "$as_me:$LINENO: checking $ac_header usability" >&5 5916echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5917cat >conftest.$ac_ext <<_ACEOF 5918#line $LINENO "configure" 5919/* confdefs.h. */ 5920_ACEOF 5921cat confdefs.h >>conftest.$ac_ext 5922cat >>conftest.$ac_ext <<_ACEOF 5923/* end confdefs.h. */ 5924$ac_includes_default 5925#include <$ac_header> 5926_ACEOF 5927rm -f conftest.$ac_objext 5928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5929 (eval $ac_compile) 2>&5 5930 ac_status=$? 5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5932 (exit $ac_status); } && 5933 { ac_try='test -s conftest.$ac_objext' 5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5935 (eval $ac_try) 2>&5 5936 ac_status=$? 5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5938 (exit $ac_status); }; }; then 5939 ac_header_compiler=yes 5940else 5941 echo "$as_me: failed program was:" >&5 5942sed 's/^/| /' conftest.$ac_ext >&5 5943 5944ac_header_compiler=no 5945fi 5946rm -f conftest.$ac_objext conftest.$ac_ext 5947echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5948echo "${ECHO_T}$ac_header_compiler" >&6 5949 5950# Is the header present? 5951echo "$as_me:$LINENO: checking $ac_header presence" >&5 5952echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5953cat >conftest.$ac_ext <<_ACEOF 5954#line $LINENO "configure" 5955/* confdefs.h. */ 5956_ACEOF 5957cat confdefs.h >>conftest.$ac_ext 5958cat >>conftest.$ac_ext <<_ACEOF 5959/* end confdefs.h. */ 5960#include <$ac_header> 5961_ACEOF 5962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5964 ac_status=$? 5965 grep -v '^ *+' conftest.er1 >conftest.err 5966 rm -f conftest.er1 5967 cat conftest.err >&5 5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5969 (exit $ac_status); } >/dev/null; then 5970 if test -s conftest.err; then 5971 ac_cpp_err=$ac_c_preproc_warn_flag 5972 else 5973 ac_cpp_err= 5974 fi 5975else 5976 ac_cpp_err=yes 5977fi 5978if test -z "$ac_cpp_err"; then 5979 ac_header_preproc=yes 5980else 5981 echo "$as_me: failed program was:" >&5 5982sed 's/^/| /' conftest.$ac_ext >&5 5983 5984 ac_header_preproc=no 5985fi 5986rm -f conftest.err conftest.$ac_ext 5987echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5988echo "${ECHO_T}$ac_header_preproc" >&6 5989 5990# So? What about this header? 5991case $ac_header_compiler:$ac_header_preproc in 5992 yes:no ) 5993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5994echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5997 ( 5998 cat <<\_ASBOX 5999## ------------------------------------ ## 6000## Report this to bug-autoconf@gnu.org. ## 6001## ------------------------------------ ## 6002_ASBOX 6003 ) | 6004 sed "s/^/$as_me: WARNING: /" >&2 6005 ;; 6006 no:yes ) 6007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6008echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6010echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6013 ( 6014 cat <<\_ASBOX 6015## ------------------------------------ ## 6016## Report this to bug-autoconf@gnu.org. ## 6017## ------------------------------------ ## 6018_ASBOX 6019 ) | 6020 sed "s/^/$as_me: WARNING: /" >&2 6021 ;; 6022esac 6023echo "$as_me:$LINENO: checking for $ac_header" >&5 6024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6025if eval "test \"\${$as_ac_Header+set}\" = set"; then 6026 echo $ECHO_N "(cached) $ECHO_C" >&6 6027else 6028 eval "$as_ac_Header=$ac_header_preproc" 6029fi 6030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6032 6033fi 6034if test `eval echo '${'$as_ac_Header'}'` = yes; then 6035 cat >>confdefs.h <<_ACEOF 6036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6037_ACEOF 6038 6039fi 6040 6041done 6042 6043 6044 6045 6046 6047 6048 6049for ac_header in stdarg.h unistd.h sys/ioctl.h sys/wait.h mcheck.h malloc.h 6050do 6051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6052if eval "test \"\${$as_ac_Header+set}\" = set"; then 6053 echo "$as_me:$LINENO: checking for $ac_header" >&5 6054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6055if eval "test \"\${$as_ac_Header+set}\" = set"; then 6056 echo $ECHO_N "(cached) $ECHO_C" >&6 6057fi 6058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6059echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6060else 6061 # Is the header compilable? 6062echo "$as_me:$LINENO: checking $ac_header usability" >&5 6063echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6064cat >conftest.$ac_ext <<_ACEOF 6065#line $LINENO "configure" 6066/* confdefs.h. */ 6067_ACEOF 6068cat confdefs.h >>conftest.$ac_ext 6069cat >>conftest.$ac_ext <<_ACEOF 6070/* end confdefs.h. */ 6071$ac_includes_default 6072#include <$ac_header> 6073_ACEOF 6074rm -f conftest.$ac_objext 6075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6076 (eval $ac_compile) 2>&5 6077 ac_status=$? 6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6079 (exit $ac_status); } && 6080 { ac_try='test -s conftest.$ac_objext' 6081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6082 (eval $ac_try) 2>&5 6083 ac_status=$? 6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6085 (exit $ac_status); }; }; then 6086 ac_header_compiler=yes 6087else 6088 echo "$as_me: failed program was:" >&5 6089sed 's/^/| /' conftest.$ac_ext >&5 6090 6091ac_header_compiler=no 6092fi 6093rm -f conftest.$ac_objext conftest.$ac_ext 6094echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6095echo "${ECHO_T}$ac_header_compiler" >&6 6096 6097# Is the header present? 6098echo "$as_me:$LINENO: checking $ac_header presence" >&5 6099echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6100cat >conftest.$ac_ext <<_ACEOF 6101#line $LINENO "configure" 6102/* confdefs.h. */ 6103_ACEOF 6104cat confdefs.h >>conftest.$ac_ext 6105cat >>conftest.$ac_ext <<_ACEOF 6106/* end confdefs.h. */ 6107#include <$ac_header> 6108_ACEOF 6109if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6111 ac_status=$? 6112 grep -v '^ *+' conftest.er1 >conftest.err 6113 rm -f conftest.er1 6114 cat conftest.err >&5 6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6116 (exit $ac_status); } >/dev/null; then 6117 if test -s conftest.err; then 6118 ac_cpp_err=$ac_c_preproc_warn_flag 6119 else 6120 ac_cpp_err= 6121 fi 6122else 6123 ac_cpp_err=yes 6124fi 6125if test -z "$ac_cpp_err"; then 6126 ac_header_preproc=yes 6127else 6128 echo "$as_me: failed program was:" >&5 6129sed 's/^/| /' conftest.$ac_ext >&5 6130 6131 ac_header_preproc=no 6132fi 6133rm -f conftest.err conftest.$ac_ext 6134echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6135echo "${ECHO_T}$ac_header_preproc" >&6 6136 6137# So? What about this header? 6138case $ac_header_compiler:$ac_header_preproc in 6139 yes:no ) 6140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6141echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6143echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6144 ( 6145 cat <<\_ASBOX 6146## ------------------------------------ ## 6147## Report this to bug-autoconf@gnu.org. ## 6148## ------------------------------------ ## 6149_ASBOX 6150 ) | 6151 sed "s/^/$as_me: WARNING: /" >&2 6152 ;; 6153 no:yes ) 6154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6155echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6157echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6159echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6160 ( 6161 cat <<\_ASBOX 6162## ------------------------------------ ## 6163## Report this to bug-autoconf@gnu.org. ## 6164## ------------------------------------ ## 6165_ASBOX 6166 ) | 6167 sed "s/^/$as_me: WARNING: /" >&2 6168 ;; 6169esac 6170echo "$as_me:$LINENO: checking for $ac_header" >&5 6171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6172if eval "test \"\${$as_ac_Header+set}\" = set"; then 6173 echo $ECHO_N "(cached) $ECHO_C" >&6 6174else 6175 eval "$as_ac_Header=$ac_header_preproc" 6176fi 6177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6178echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6179 6180fi 6181if test `eval echo '${'$as_ac_Header'}'` = yes; then 6182 cat >>confdefs.h <<_ACEOF 6183#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6184_ACEOF 6185 6186fi 6187 6188done 6189 6190 6191 6192 6193 6194 6195for ac_header in fenv.h machine/fpu.h ieeefp.h siginfo.h ucontext.h 6196do 6197as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6198if eval "test \"\${$as_ac_Header+set}\" = set"; then 6199 echo "$as_me:$LINENO: checking for $ac_header" >&5 6200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6201if eval "test \"\${$as_ac_Header+set}\" = set"; then 6202 echo $ECHO_N "(cached) $ECHO_C" >&6 6203fi 6204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6205echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6206else 6207 # Is the header compilable? 6208echo "$as_me:$LINENO: checking $ac_header usability" >&5 6209echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6210cat >conftest.$ac_ext <<_ACEOF 6211#line $LINENO "configure" 6212/* confdefs.h. */ 6213_ACEOF 6214cat confdefs.h >>conftest.$ac_ext 6215cat >>conftest.$ac_ext <<_ACEOF 6216/* end confdefs.h. */ 6217$ac_includes_default 6218#include <$ac_header> 6219_ACEOF 6220rm -f conftest.$ac_objext 6221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6222 (eval $ac_compile) 2>&5 6223 ac_status=$? 6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6225 (exit $ac_status); } && 6226 { ac_try='test -s conftest.$ac_objext' 6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6228 (eval $ac_try) 2>&5 6229 ac_status=$? 6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6231 (exit $ac_status); }; }; then 6232 ac_header_compiler=yes 6233else 6234 echo "$as_me: failed program was:" >&5 6235sed 's/^/| /' conftest.$ac_ext >&5 6236 6237ac_header_compiler=no 6238fi 6239rm -f conftest.$ac_objext conftest.$ac_ext 6240echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6241echo "${ECHO_T}$ac_header_compiler" >&6 6242 6243# Is the header present? 6244echo "$as_me:$LINENO: checking $ac_header presence" >&5 6245echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6246cat >conftest.$ac_ext <<_ACEOF 6247#line $LINENO "configure" 6248/* confdefs.h. */ 6249_ACEOF 6250cat confdefs.h >>conftest.$ac_ext 6251cat >>conftest.$ac_ext <<_ACEOF 6252/* end confdefs.h. */ 6253#include <$ac_header> 6254_ACEOF 6255if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6257 ac_status=$? 6258 grep -v '^ *+' conftest.er1 >conftest.err 6259 rm -f conftest.er1 6260 cat conftest.err >&5 6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6262 (exit $ac_status); } >/dev/null; then 6263 if test -s conftest.err; then 6264 ac_cpp_err=$ac_c_preproc_warn_flag 6265 else 6266 ac_cpp_err= 6267 fi 6268else 6269 ac_cpp_err=yes 6270fi 6271if test -z "$ac_cpp_err"; then 6272 ac_header_preproc=yes 6273else 6274 echo "$as_me: failed program was:" >&5 6275sed 's/^/| /' conftest.$ac_ext >&5 6276 6277 ac_header_preproc=no 6278fi 6279rm -f conftest.err conftest.$ac_ext 6280echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6281echo "${ECHO_T}$ac_header_preproc" >&6 6282 6283# So? What about this header? 6284case $ac_header_compiler:$ac_header_preproc in 6285 yes:no ) 6286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6287echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6289echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6290 ( 6291 cat <<\_ASBOX 6292## ------------------------------------ ## 6293## Report this to bug-autoconf@gnu.org. ## 6294## ------------------------------------ ## 6295_ASBOX 6296 ) | 6297 sed "s/^/$as_me: WARNING: /" >&2 6298 ;; 6299 no:yes ) 6300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6301echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6303echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6305echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6306 ( 6307 cat <<\_ASBOX 6308## ------------------------------------ ## 6309## Report this to bug-autoconf@gnu.org. ## 6310## ------------------------------------ ## 6311_ASBOX 6312 ) | 6313 sed "s/^/$as_me: WARNING: /" >&2 6314 ;; 6315esac 6316echo "$as_me:$LINENO: checking for $ac_header" >&5 6317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6318if eval "test \"\${$as_ac_Header+set}\" = set"; then 6319 echo $ECHO_N "(cached) $ECHO_C" >&6 6320else 6321 eval "$as_ac_Header=$ac_header_preproc" 6322fi 6323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6325 6326fi 6327if test `eval echo '${'$as_ac_Header'}'` = yes; then 6328 cat >>confdefs.h <<_ACEOF 6329#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6330_ACEOF 6331 6332fi 6333 6334done 6335 6336 6337#--------------------------------------------------------------------- 6338# Checks for declarations. 6339#--------------------------------------------------------------------- 6340 6341echo "$as_me:$LINENO: checking for a declaration of rint(3) in <math.h>" >&5 6342echo $ECHO_N "checking for a declaration of rint(3) in <math.h>... $ECHO_C" >&6 6343cat >conftest.$ac_ext <<_ACEOF 6344#line $LINENO "configure" 6345/* confdefs.h. */ 6346_ACEOF 6347cat confdefs.h >>conftest.$ac_ext 6348cat >>conftest.$ac_ext <<_ACEOF 6349/* end confdefs.h. */ 6350#include <math.h> 6351 6352_ACEOF 6353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6354 $EGREP "\<rint\>" >/dev/null 2>&1; then 6355 cat >>confdefs.h <<\_ACEOF 6356#define HAVE_RINT_DECL 1 6357_ACEOF 6358 6359 echo "$as_me:$LINENO: result: yes" >&5 6360echo "${ECHO_T}yes" >&6 6361else 6362 echo "$as_me:$LINENO: result: no" >&5 6363echo "${ECHO_T}no" >&6 6364fi 6365rm -f conftest* 6366 6367 6368echo "$as_me:$LINENO: checking for a declaration of drand48(3) in <stdlib.h>" >&5 6369echo $ECHO_N "checking for a declaration of drand48(3) in <stdlib.h>... $ECHO_C" >&6 6370cat >conftest.$ac_ext <<_ACEOF 6371#line $LINENO "configure" 6372/* confdefs.h. */ 6373_ACEOF 6374cat confdefs.h >>conftest.$ac_ext 6375cat >>conftest.$ac_ext <<_ACEOF 6376/* end confdefs.h. */ 6377#include <stdlib.h> 6378 6379_ACEOF 6380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6381 $EGREP "\<drand48\>" >/dev/null 2>&1; then 6382 cat >>confdefs.h <<\_ACEOF 6383#define HAVE_DRAND48_DECL 1 6384_ACEOF 6385 6386 echo "$as_me:$LINENO: result: yes" >&5 6387echo "${ECHO_T}yes" >&6 6388else 6389 echo "$as_me:$LINENO: result: no" >&5 6390echo "${ECHO_T}no" >&6 6391fi 6392rm -f conftest* 6393 6394 6395#--------------------------------------------------------------------- 6396# Checks for typedefs, structures, and compiler characteristics. 6397#--------------------------------------------------------------------- 6398 6399echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 6400echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 6401if test "${ac_cv_c_const+set}" = set; then 6402 echo $ECHO_N "(cached) $ECHO_C" >&6 6403else 6404 cat >conftest.$ac_ext <<_ACEOF 6405#line $LINENO "configure" 6406/* confdefs.h. */ 6407_ACEOF 6408cat confdefs.h >>conftest.$ac_ext 6409cat >>conftest.$ac_ext <<_ACEOF 6410/* end confdefs.h. */ 6411 6412int 6413main () 6414{ 6415/* FIXME: Include the comments suggested by Paul. */ 6416#ifndef __cplusplus 6417 /* Ultrix mips cc rejects this. */ 6418 typedef int charset[2]; 6419 const charset x; 6420 /* SunOS 4.1.1 cc rejects this. */ 6421 char const *const *ccp; 6422 char **p; 6423 /* NEC SVR4.0.2 mips cc rejects this. */ 6424 struct point {int x, y;}; 6425 static struct point const zero = {0,0}; 6426 /* AIX XL C 1.02.0.0 rejects this. 6427 It does not let you subtract one const X* pointer from another in 6428 an arm of an if-expression whose if-part is not a constant 6429 expression */ 6430 const char *g = "string"; 6431 ccp = &g + (g ? g-g : 0); 6432 /* HPUX 7.0 cc rejects these. */ 6433 ++ccp; 6434 p = (char**) ccp; 6435 ccp = (char const *const *) p; 6436 { /* SCO 3.2v4 cc rejects this. */ 6437 char *t; 6438 char const *s = 0 ? (char *) 0 : (char const *) 0; 6439 6440 *t++ = 0; 6441 } 6442 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6443 int x[] = {25, 17}; 6444 const int *foo = &x[0]; 6445 ++foo; 6446 } 6447 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6448 typedef const int *iptr; 6449 iptr p = 0; 6450 ++p; 6451 } 6452 { /* AIX XL C 1.02.0.0 rejects this saying 6453 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6454 struct s { int j; const int *ap[3]; }; 6455 struct s *b; b->j = 5; 6456 } 6457 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 6458 const int foo = 10; 6459 } 6460#endif 6461 6462 ; 6463 return 0; 6464} 6465_ACEOF 6466rm -f conftest.$ac_objext 6467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6468 (eval $ac_compile) 2>&5 6469 ac_status=$? 6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6471 (exit $ac_status); } && 6472 { ac_try='test -s conftest.$ac_objext' 6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6474 (eval $ac_try) 2>&5 6475 ac_status=$? 6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6477 (exit $ac_status); }; }; then 6478 ac_cv_c_const=yes 6479else 6480 echo "$as_me: failed program was:" >&5 6481sed 's/^/| /' conftest.$ac_ext >&5 6482 6483ac_cv_c_const=no 6484fi 6485rm -f conftest.$ac_objext conftest.$ac_ext 6486fi 6487echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 6488echo "${ECHO_T}$ac_cv_c_const" >&6 6489if test $ac_cv_c_const = no; then 6490 6491cat >>confdefs.h <<\_ACEOF 6492#define const 6493_ACEOF 6494 6495fi 6496 6497echo "$as_me:$LINENO: checking for working signed" >&5 6498echo $ECHO_N "checking for working signed... $ECHO_C" >&6 6499if test "${ac_cv_c_signed+set}" = set; then 6500 echo $ECHO_N "(cached) $ECHO_C" >&6 6501else 6502 cat >conftest.$ac_ext <<_ACEOF 6503#line $LINENO "configure" 6504/* confdefs.h. */ 6505_ACEOF 6506cat confdefs.h >>conftest.$ac_ext 6507cat >>conftest.$ac_ext <<_ACEOF 6508/* end confdefs.h. */ 6509 6510int 6511main () 6512{ 6513signed char *x; 6514 ; 6515 return 0; 6516} 6517_ACEOF 6518rm -f conftest.$ac_objext 6519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6520 (eval $ac_compile) 2>&5 6521 ac_status=$? 6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6523 (exit $ac_status); } && 6524 { ac_try='test -s conftest.$ac_objext' 6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6526 (eval $ac_try) 2>&5 6527 ac_status=$? 6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6529 (exit $ac_status); }; }; then 6530 ac_cv_c_signed=yes 6531else 6532 echo "$as_me: failed program was:" >&5 6533sed 's/^/| /' conftest.$ac_ext >&5 6534 6535ac_cv_c_signed=no 6536fi 6537rm -f conftest.$ac_objext conftest.$ac_ext 6538fi 6539echo "$as_me:$LINENO: result: $ac_cv_c_signed" >&5 6540echo "${ECHO_T}$ac_cv_c_signed" >&6 6541if test $ac_cv_c_signed = no; then 6542 cat >>confdefs.h <<\_ACEOF 6543#define signed 6544_ACEOF 6545 6546fi 6547 6548echo "$as_me:$LINENO: checking for size_t" >&5 6549echo $ECHO_N "checking for size_t... $ECHO_C" >&6 6550if test "${ac_cv_type_size_t+set}" = set; then 6551 echo $ECHO_N "(cached) $ECHO_C" >&6 6552else 6553 cat >conftest.$ac_ext <<_ACEOF 6554#line $LINENO "configure" 6555/* confdefs.h. */ 6556_ACEOF 6557cat confdefs.h >>conftest.$ac_ext 6558cat >>conftest.$ac_ext <<_ACEOF 6559/* end confdefs.h. */ 6560$ac_includes_default 6561int 6562main () 6563{ 6564if ((size_t *) 0) 6565 return 0; 6566if (sizeof (size_t)) 6567 return 0; 6568 ; 6569 return 0; 6570} 6571_ACEOF 6572rm -f conftest.$ac_objext 6573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6574 (eval $ac_compile) 2>&5 6575 ac_status=$? 6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6577 (exit $ac_status); } && 6578 { ac_try='test -s conftest.$ac_objext' 6579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6580 (eval $ac_try) 2>&5 6581 ac_status=$? 6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6583 (exit $ac_status); }; }; then 6584 ac_cv_type_size_t=yes 6585else 6586 echo "$as_me: failed program was:" >&5 6587sed 's/^/| /' conftest.$ac_ext >&5 6588 6589ac_cv_type_size_t=no 6590fi 6591rm -f conftest.$ac_objext conftest.$ac_ext 6592fi 6593echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 6594echo "${ECHO_T}$ac_cv_type_size_t" >&6 6595if test $ac_cv_type_size_t = yes; then 6596 : 6597else 6598 6599cat >>confdefs.h <<_ACEOF 6600#define size_t unsigned 6601_ACEOF 6602 6603fi 6604 6605echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 6606echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 6607if test "${ac_cv_c_bigendian+set}" = set; then 6608 echo $ECHO_N "(cached) $ECHO_C" >&6 6609else 6610 # See if sys/param.h defines the BYTE_ORDER macro. 6611cat >conftest.$ac_ext <<_ACEOF 6612#line $LINENO "configure" 6613/* confdefs.h. */ 6614_ACEOF 6615cat confdefs.h >>conftest.$ac_ext 6616cat >>conftest.$ac_ext <<_ACEOF 6617/* end confdefs.h. */ 6618#include <sys/types.h> 6619#include <sys/param.h> 6620 6621int 6622main () 6623{ 6624#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 6625 bogus endian macros 6626#endif 6627 6628 ; 6629 return 0; 6630} 6631_ACEOF 6632rm -f conftest.$ac_objext 6633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6634 (eval $ac_compile) 2>&5 6635 ac_status=$? 6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6637 (exit $ac_status); } && 6638 { ac_try='test -s conftest.$ac_objext' 6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6640 (eval $ac_try) 2>&5 6641 ac_status=$? 6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6643 (exit $ac_status); }; }; then 6644 # It does; now see whether it defined to BIG_ENDIAN or not. 6645cat >conftest.$ac_ext <<_ACEOF 6646#line $LINENO "configure" 6647/* confdefs.h. */ 6648_ACEOF 6649cat confdefs.h >>conftest.$ac_ext 6650cat >>conftest.$ac_ext <<_ACEOF 6651/* end confdefs.h. */ 6652#include <sys/types.h> 6653#include <sys/param.h> 6654 6655int 6656main () 6657{ 6658#if BYTE_ORDER != BIG_ENDIAN 6659 not big endian 6660#endif 6661 6662 ; 6663 return 0; 6664} 6665_ACEOF 6666rm -f conftest.$ac_objext 6667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6668 (eval $ac_compile) 2>&5 6669 ac_status=$? 6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6671 (exit $ac_status); } && 6672 { ac_try='test -s conftest.$ac_objext' 6673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6674 (eval $ac_try) 2>&5 6675 ac_status=$? 6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6677 (exit $ac_status); }; }; then 6678 ac_cv_c_bigendian=yes 6679else 6680 echo "$as_me: failed program was:" >&5 6681sed 's/^/| /' conftest.$ac_ext >&5 6682 6683ac_cv_c_bigendian=no 6684fi 6685rm -f conftest.$ac_objext conftest.$ac_ext 6686else 6687 echo "$as_me: failed program was:" >&5 6688sed 's/^/| /' conftest.$ac_ext >&5 6689 6690# It does not; compile a test program. 6691if test "$cross_compiling" = yes; then 6692 # try to guess the endianness by grepping values into an object file 6693 ac_cv_c_bigendian=unknown 6694 cat >conftest.$ac_ext <<_ACEOF 6695#line $LINENO "configure" 6696/* confdefs.h. */ 6697_ACEOF 6698cat confdefs.h >>conftest.$ac_ext 6699cat >>conftest.$ac_ext <<_ACEOF 6700/* end confdefs.h. */ 6701short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 6702short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 6703void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 6704short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 6705short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 6706void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 6707int 6708main () 6709{ 6710 _ascii (); _ebcdic (); 6711 ; 6712 return 0; 6713} 6714_ACEOF 6715rm -f conftest.$ac_objext 6716if { (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 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 6728 ac_cv_c_bigendian=yes 6729fi 6730if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 6731 if test "$ac_cv_c_bigendian" = unknown; then 6732 ac_cv_c_bigendian=no 6733 else 6734 # finding both strings is unlikely to happen, but who knows? 6735 ac_cv_c_bigendian=unknown 6736 fi 6737fi 6738else 6739 echo "$as_me: failed program was:" >&5 6740sed 's/^/| /' conftest.$ac_ext >&5 6741 6742fi 6743rm -f conftest.$ac_objext conftest.$ac_ext 6744else 6745 cat >conftest.$ac_ext <<_ACEOF 6746#line $LINENO "configure" 6747/* confdefs.h. */ 6748_ACEOF 6749cat confdefs.h >>conftest.$ac_ext 6750cat >>conftest.$ac_ext <<_ACEOF 6751/* end confdefs.h. */ 6752int 6753main () 6754{ 6755 /* Are we little or big endian? From Harbison&Steele. */ 6756 union 6757 { 6758 long l; 6759 char c[sizeof (long)]; 6760 } u; 6761 u.l = 1; 6762 exit (u.c[sizeof (long) - 1] == 1); 6763} 6764_ACEOF 6765rm -f conftest$ac_exeext 6766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6767 (eval $ac_link) 2>&5 6768 ac_status=$? 6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6772 (eval $ac_try) 2>&5 6773 ac_status=$? 6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6775 (exit $ac_status); }; }; then 6776 ac_cv_c_bigendian=no 6777else 6778 echo "$as_me: program exited with status $ac_status" >&5 6779echo "$as_me: failed program was:" >&5 6780sed 's/^/| /' conftest.$ac_ext >&5 6781 6782( exit $ac_status ) 6783ac_cv_c_bigendian=yes 6784fi 6785rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6786fi 6787fi 6788rm -f conftest.$ac_objext conftest.$ac_ext 6789fi 6790echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 6791echo "${ECHO_T}$ac_cv_c_bigendian" >&6 6792case $ac_cv_c_bigendian in 6793 yes) 6794 6795cat >>confdefs.h <<\_ACEOF 6796#define WORDS_BIGENDIAN 1 6797_ACEOF 6798 ;; 6799 no) 6800 ;; 6801 *) 6802 { { echo "$as_me:$LINENO: error: unknown endianness 6803presetting ac_cv_c_bigendian=no (or yes) will help" >&5 6804echo "$as_me: error: unknown endianness 6805presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 6806 { (exit 1); exit 1; }; } ;; 6807esac 6808 6809echo "$as_me:$LINENO: checking for div_t" >&5 6810echo $ECHO_N "checking for div_t... $ECHO_C" >&6 6811if test "${ac_cv_type_div_t+set}" = set; then 6812 echo $ECHO_N "(cached) $ECHO_C" >&6 6813else 6814 cat >conftest.$ac_ext <<_ACEOF 6815#line $LINENO "configure" 6816/* confdefs.h. */ 6817_ACEOF 6818cat confdefs.h >>conftest.$ac_ext 6819cat >>conftest.$ac_ext <<_ACEOF 6820/* end confdefs.h. */ 6821$ac_includes_default 6822int 6823main () 6824{ 6825if ((div_t *) 0) 6826 return 0; 6827if (sizeof (div_t)) 6828 return 0; 6829 ; 6830 return 0; 6831} 6832_ACEOF 6833rm -f conftest.$ac_objext 6834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6835 (eval $ac_compile) 2>&5 6836 ac_status=$? 6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6838 (exit $ac_status); } && 6839 { ac_try='test -s conftest.$ac_objext' 6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6841 (eval $ac_try) 2>&5 6842 ac_status=$? 6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6844 (exit $ac_status); }; }; then 6845 ac_cv_type_div_t=yes 6846else 6847 echo "$as_me: failed program was:" >&5 6848sed 's/^/| /' conftest.$ac_ext >&5 6849 6850ac_cv_type_div_t=no 6851fi 6852rm -f conftest.$ac_objext conftest.$ac_ext 6853fi 6854echo "$as_me:$LINENO: result: $ac_cv_type_div_t" >&5 6855echo "${ECHO_T}$ac_cv_type_div_t" >&6 6856if test $ac_cv_type_div_t = yes; then 6857 : 6858else 6859 6860cat >>confdefs.h <<_ACEOF 6861#define div_t Div_t 6862_ACEOF 6863 6864fi 6865 6866 6867#--------------------------------------------------------------------- 6868# Checks for library functions. 6869#--------------------------------------------------------------------- 6870 6871as_ac_var=`echo "ac_cv_func_$etime_func" | $as_tr_sh` 6872echo "$as_me:$LINENO: checking for $etime_func" >&5 6873echo $ECHO_N "checking for $etime_func... $ECHO_C" >&6 6874if eval "test \"\${$as_ac_var+set}\" = set"; then 6875 echo $ECHO_N "(cached) $ECHO_C" >&6 6876else 6877 cat >conftest.$ac_ext <<_ACEOF 6878#line $LINENO "configure" 6879/* confdefs.h. */ 6880_ACEOF 6881cat confdefs.h >>conftest.$ac_ext 6882cat >>conftest.$ac_ext <<_ACEOF 6883/* end confdefs.h. */ 6884/* System header to define __stub macros and hopefully few prototypes, 6885 which can conflict with char $etime_func (); below. 6886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6887 <limits.h> exists even on freestanding compilers. */ 6888#ifdef __STDC__ 6889# include <limits.h> 6890#else 6891# include <assert.h> 6892#endif 6893/* Override any gcc2 internal prototype to avoid an error. */ 6894#ifdef __cplusplus 6895extern "C" 6896{ 6897#endif 6898/* We use char because int might match the return type of a gcc2 6899 builtin and then its argument prototype would still apply. */ 6900char $etime_func (); 6901/* The GNU C library defines this for functions which it implements 6902 to always fail with ENOSYS. Some functions are actually named 6903 something starting with __ and the normal name is an alias. */ 6904#if defined (__stub_$etime_func) || defined (__stub___$etime_func) 6905choke me 6906#else 6907char (*f) () = $etime_func; 6908#endif 6909#ifdef __cplusplus 6910} 6911#endif 6912 6913int 6914main () 6915{ 6916return f != $etime_func; 6917 ; 6918 return 0; 6919} 6920_ACEOF 6921rm -f conftest.$ac_objext conftest$ac_exeext 6922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6923 (eval $ac_link) 2>&5 6924 ac_status=$? 6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6926 (exit $ac_status); } && 6927 { ac_try='test -s conftest$ac_exeext' 6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6929 (eval $ac_try) 2>&5 6930 ac_status=$? 6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6932 (exit $ac_status); }; }; then 6933 eval "$as_ac_var=yes" 6934else 6935 echo "$as_me: failed program was:" >&5 6936sed 's/^/| /' conftest.$ac_ext >&5 6937 6938eval "$as_ac_var=no" 6939fi 6940rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6941fi 6942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6943echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6944if test `eval echo '${'$as_ac_var'}'` = yes; then 6945 cat >>confdefs.h <<\_ACEOF 6946#define HAVE_ETIME 1 6947_ACEOF 6948 6949fi 6950 6951 6952 6953 6954 6955 6956 6957 6958for ac_func in strchr memcpy strerror strtod div setitimer mtrace 6959do 6960as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6961echo "$as_me:$LINENO: checking for $ac_func" >&5 6962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6963if eval "test \"\${$as_ac_var+set}\" = set"; then 6964 echo $ECHO_N "(cached) $ECHO_C" >&6 6965else 6966 cat >conftest.$ac_ext <<_ACEOF 6967#line $LINENO "configure" 6968/* confdefs.h. */ 6969_ACEOF 6970cat confdefs.h >>conftest.$ac_ext 6971cat >>conftest.$ac_ext <<_ACEOF 6972/* end confdefs.h. */ 6973/* System header to define __stub macros and hopefully few prototypes, 6974 which can conflict with char $ac_func (); below. 6975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6976 <limits.h> exists even on freestanding compilers. */ 6977#ifdef __STDC__ 6978# include <limits.h> 6979#else 6980# include <assert.h> 6981#endif 6982/* Override any gcc2 internal prototype to avoid an error. */ 6983#ifdef __cplusplus 6984extern "C" 6985{ 6986#endif 6987/* We use char because int might match the return type of a gcc2 6988 builtin and then its argument prototype would still apply. */ 6989char $ac_func (); 6990/* The GNU C library defines this for functions which it implements 6991 to always fail with ENOSYS. Some functions are actually named 6992 something starting with __ and the normal name is an alias. */ 6993#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6994choke me 6995#else 6996char (*f) () = $ac_func; 6997#endif 6998#ifdef __cplusplus 6999} 7000#endif 7001 7002int 7003main () 7004{ 7005return f != $ac_func; 7006 ; 7007 return 0; 7008} 7009_ACEOF 7010rm -f conftest.$ac_objext conftest$ac_exeext 7011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7012 (eval $ac_link) 2>&5 7013 ac_status=$? 7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7015 (exit $ac_status); } && 7016 { ac_try='test -s conftest$ac_exeext' 7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7018 (eval $ac_try) 2>&5 7019 ac_status=$? 7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7021 (exit $ac_status); }; }; then 7022 eval "$as_ac_var=yes" 7023else 7024 echo "$as_me: failed program was:" >&5 7025sed 's/^/| /' conftest.$ac_ext >&5 7026 7027eval "$as_ac_var=no" 7028fi 7029rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7030fi 7031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7032echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7033if test `eval echo '${'$as_ac_var'}'` = yes; then 7034 cat >>confdefs.h <<_ACEOF 7035#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7036_ACEOF 7037 7038fi 7039done 7040 7041 7042 7043 7044 7045 7046 7047 7048for ac_func in abs rint random drand48 sigset sigaction finite 7049do 7050as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7051echo "$as_me:$LINENO: checking for $ac_func" >&5 7052echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7053if eval "test \"\${$as_ac_var+set}\" = set"; then 7054 echo $ECHO_N "(cached) $ECHO_C" >&6 7055else 7056 cat >conftest.$ac_ext <<_ACEOF 7057#line $LINENO "configure" 7058/* confdefs.h. */ 7059_ACEOF 7060cat confdefs.h >>conftest.$ac_ext 7061cat >>conftest.$ac_ext <<_ACEOF 7062/* end confdefs.h. */ 7063/* System header to define __stub macros and hopefully few prototypes, 7064 which can conflict with char $ac_func (); below. 7065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7066 <limits.h> exists even on freestanding compilers. */ 7067#ifdef __STDC__ 7068# include <limits.h> 7069#else 7070# include <assert.h> 7071#endif 7072/* Override any gcc2 internal prototype to avoid an error. */ 7073#ifdef __cplusplus 7074extern "C" 7075{ 7076#endif 7077/* We use char because int might match the return type of a gcc2 7078 builtin and then its argument prototype would still apply. */ 7079char $ac_func (); 7080/* The GNU C library defines this for functions which it implements 7081 to always fail with ENOSYS. Some functions are actually named 7082 something starting with __ and the normal name is an alias. */ 7083#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7084choke me 7085#else 7086char (*f) () = $ac_func; 7087#endif 7088#ifdef __cplusplus 7089} 7090#endif 7091 7092int 7093main () 7094{ 7095return f != $ac_func; 7096 ; 7097 return 0; 7098} 7099_ACEOF 7100rm -f conftest.$ac_objext conftest$ac_exeext 7101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7102 (eval $ac_link) 2>&5 7103 ac_status=$? 7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7105 (exit $ac_status); } && 7106 { ac_try='test -s conftest$ac_exeext' 7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7108 (eval $ac_try) 2>&5 7109 ac_status=$? 7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7111 (exit $ac_status); }; }; then 7112 eval "$as_ac_var=yes" 7113else 7114 echo "$as_me: failed program was:" >&5 7115sed 's/^/| /' conftest.$ac_ext >&5 7116 7117eval "$as_ac_var=no" 7118fi 7119rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7120fi 7121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7122echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7123if test `eval echo '${'$as_ac_var'}'` = yes; then 7124 cat >>confdefs.h <<_ACEOF 7125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7126_ACEOF 7127 7128fi 7129done 7130 7131 7132 7133 7134 7135 7136for ac_func in acosh asinh atanh snprintf vsnprintf 7137do 7138as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7139echo "$as_me:$LINENO: checking for $ac_func" >&5 7140echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7141if eval "test \"\${$as_ac_var+set}\" = set"; then 7142 echo $ECHO_N "(cached) $ECHO_C" >&6 7143else 7144 cat >conftest.$ac_ext <<_ACEOF 7145#line $LINENO "configure" 7146/* confdefs.h. */ 7147_ACEOF 7148cat confdefs.h >>conftest.$ac_ext 7149cat >>conftest.$ac_ext <<_ACEOF 7150/* end confdefs.h. */ 7151/* System header to define __stub macros and hopefully few prototypes, 7152 which can conflict with char $ac_func (); below. 7153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7154 <limits.h> exists even on freestanding compilers. */ 7155#ifdef __STDC__ 7156# include <limits.h> 7157#else 7158# include <assert.h> 7159#endif 7160/* Override any gcc2 internal prototype to avoid an error. */ 7161#ifdef __cplusplus 7162extern "C" 7163{ 7164#endif 7165/* We use char because int might match the return type of a gcc2 7166 builtin and then its argument prototype would still apply. */ 7167char $ac_func (); 7168/* The GNU C library defines this for functions which it implements 7169 to always fail with ENOSYS. Some functions are actually named 7170 something starting with __ and the normal name is an alias. */ 7171#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7172choke me 7173#else 7174char (*f) () = $ac_func; 7175#endif 7176#ifdef __cplusplus 7177} 7178#endif 7179 7180int 7181main () 7182{ 7183return f != $ac_func; 7184 ; 7185 return 0; 7186} 7187_ACEOF 7188rm -f conftest.$ac_objext conftest$ac_exeext 7189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7190 (eval $ac_link) 2>&5 7191 ac_status=$? 7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7193 (exit $ac_status); } && 7194 { ac_try='test -s conftest$ac_exeext' 7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7196 (eval $ac_try) 2>&5 7197 ac_status=$? 7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7199 (exit $ac_status); }; }; then 7200 eval "$as_ac_var=yes" 7201else 7202 echo "$as_me: failed program was:" >&5 7203sed 's/^/| /' conftest.$ac_ext >&5 7204 7205eval "$as_ac_var=no" 7206fi 7207rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7208fi 7209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7210echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7211if test `eval echo '${'$as_ac_var'}'` = yes; then 7212 cat >>confdefs.h <<_ACEOF 7213#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7214_ACEOF 7215 7216fi 7217done 7218 7219 7220 7221 7222for ac_func in feenableexcept fpsetmask fpsetdefaults 7223do 7224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7225echo "$as_me:$LINENO: checking for $ac_func" >&5 7226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7227if eval "test \"\${$as_ac_var+set}\" = set"; then 7228 echo $ECHO_N "(cached) $ECHO_C" >&6 7229else 7230 cat >conftest.$ac_ext <<_ACEOF 7231#line $LINENO "configure" 7232/* confdefs.h. */ 7233_ACEOF 7234cat confdefs.h >>conftest.$ac_ext 7235cat >>conftest.$ac_ext <<_ACEOF 7236/* end confdefs.h. */ 7237/* System header to define __stub macros and hopefully few prototypes, 7238 which can conflict with char $ac_func (); below. 7239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7240 <limits.h> exists even on freestanding compilers. */ 7241#ifdef __STDC__ 7242# include <limits.h> 7243#else 7244# include <assert.h> 7245#endif 7246/* Override any gcc2 internal prototype to avoid an error. */ 7247#ifdef __cplusplus 7248extern "C" 7249{ 7250#endif 7251/* We use char because int might match the return type of a gcc2 7252 builtin and then its argument prototype would still apply. */ 7253char $ac_func (); 7254/* The GNU C library defines this for functions which it implements 7255 to always fail with ENOSYS. Some functions are actually named 7256 something starting with __ and the normal name is an alias. */ 7257#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7258choke me 7259#else 7260char (*f) () = $ac_func; 7261#endif 7262#ifdef __cplusplus 7263} 7264#endif 7265 7266int 7267main () 7268{ 7269return f != $ac_func; 7270 ; 7271 return 0; 7272} 7273_ACEOF 7274rm -f conftest.$ac_objext conftest$ac_exeext 7275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7276 (eval $ac_link) 2>&5 7277 ac_status=$? 7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7279 (exit $ac_status); } && 7280 { ac_try='test -s conftest$ac_exeext' 7281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7282 (eval $ac_try) 2>&5 7283 ac_status=$? 7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7285 (exit $ac_status); }; }; then 7286 eval "$as_ac_var=yes" 7287else 7288 echo "$as_me: failed program was:" >&5 7289sed 's/^/| /' conftest.$ac_ext >&5 7290 7291eval "$as_ac_var=no" 7292fi 7293rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7294fi 7295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7296echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7297if test `eval echo '${'$as_ac_var'}'` = yes; then 7298 cat >>confdefs.h <<_ACEOF 7299#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7300_ACEOF 7301 7302fi 7303done 7304 7305 7306# We have to work around a bug in Unixware compilers version 1.1.2 and 7307# earlier. The tests incorrectly conclude that abs(3c) and memcpy(3c) 7308# are missing. 7309 7310if test "$GCC" != yes; then 7311 case "$host" in 7312 i386-*-sysv4.2 ) 7313 cc -V 2>&1 | egrep 'Optimizing C Compilation.*uw1\.' >/dev/null && 7314 ( cat >>confdefs.h <<\_ACEOF 7315#define HAVE_MEMCPY 1 7316_ACEOF 7317 7318 cat >>confdefs.h <<\_ACEOF 7319#define HAVE_ABS 1 7320_ACEOF 7321 ) ;; 7322 i386-univel-sysv4.2* ) 7323 cc -V 2>&1 | egrep 'Optimizing C Compilation.*\(CCS\) 3\.0' >/dev/null && 7324 ( cat >>confdefs.h <<\_ACEOF 7325#define HAVE_MEMCPY 1 7326_ACEOF 7327 7328 cat >>confdefs.h <<\_ACEOF 7329#define HAVE_ABS 1 7330_ACEOF 7331 ) ;; 7332 esac 7333fi 7334 7335# Check for broken rint. If cross compiling, assume it's OK. 7336 7337if test "$ac_cv_func_rint" = yes; then 7338 echo "$as_me:$LINENO: checking for broken rint" >&5 7339echo $ECHO_N "checking for broken rint... $ECHO_C" >&6 7340 if test "$cross_compiling" = yes; then 7341 echo "$as_me:$LINENO: result: assume ok" >&5 7342echo "${ECHO_T}assume ok" >&6 7343else 7344 cat >conftest.$ac_ext <<_ACEOF 7345#line $LINENO "configure" 7346/* confdefs.h. */ 7347_ACEOF 7348cat confdefs.h >>conftest.$ac_ext 7349cat >>conftest.$ac_ext <<_ACEOF 7350/* end confdefs.h. */ 7351 7352#include <math.h> 7353main(){exit((int)rint(1.234)!=1);} 7354_ACEOF 7355rm -f conftest$ac_exeext 7356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7357 (eval $ac_link) 2>&5 7358 ac_status=$? 7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7362 (eval $ac_try) 2>&5 7363 ac_status=$? 7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7365 (exit $ac_status); }; }; then 7366 echo "$as_me:$LINENO: result: ok" >&5 7367echo "${ECHO_T}ok" >&6 7368else 7369 echo "$as_me: program exited with status $ac_status" >&5 7370echo "$as_me: failed program was:" >&5 7371sed 's/^/| /' conftest.$ac_ext >&5 7372 7373( exit $ac_status ) 7374cat >> confdefs.h <<\EOF 7375#undef HAVE_RINT 7376EOF 7377 7378 cat >>confdefs.h <<\_ACEOF 7379#define HAVE_RINT 0 7380_ACEOF 7381 7382 echo "$as_me:$LINENO: result: broken" >&5 7383echo "${ECHO_T}broken" >&6 7384fi 7385rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7386fi 7387fi 7388 7389# Check for "lax" log. It should return ERANGE for log(0), but some 7390# systems silently return INF. If cross compiling, assume it's lax. 7391 7392echo "$as_me:$LINENO: checking for lax logarithms" >&5 7393echo $ECHO_N "checking for lax logarithms... $ECHO_C" >&6 7394if test "$cross_compiling" = yes; then 7395 cat >>confdefs.h <<\_ACEOF 7396#define LAX_LOG 1 7397_ACEOF 7398 7399 echo "$as_me:$LINENO: result: lax" >&5 7400echo "${ECHO_T}lax" >&6 7401else 7402 cat >conftest.$ac_ext <<_ACEOF 7403#line $LINENO "configure" 7404/* confdefs.h. */ 7405_ACEOF 7406cat confdefs.h >>conftest.$ac_ext 7407cat >>conftest.$ac_ext <<_ACEOF 7408/* end confdefs.h. */ 7409 7410#include <math.h> 7411#include <errno.h> 7412main(){(void)log(0.0);exit(!errno);} 7413_ACEOF 7414rm -f conftest$ac_exeext 7415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7416 (eval $ac_link) 2>&5 7417 ac_status=$? 7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7421 (eval $ac_try) 2>&5 7422 ac_status=$? 7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7424 (exit $ac_status); }; }; then 7425 echo "$as_me:$LINENO: result: ok" >&5 7426echo "${ECHO_T}ok" >&6 7427else 7428 echo "$as_me: program exited with status $ac_status" >&5 7429echo "$as_me: failed program was:" >&5 7430sed 's/^/| /' conftest.$ac_ext >&5 7431 7432( exit $ac_status ) 7433cat >>confdefs.h <<\_ACEOF 7434#define LAX_LOG 1 7435_ACEOF 7436 7437 echo "$as_me:$LINENO: result: lax" >&5 7438echo "${ECHO_T}lax" >&6 7439fi 7440rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7441fi 7442 7443# Check for working matherr(3). This is preferred over checking errno 7444# after every math call. It isn't always available, though, and even 7445# when it is available it may take a special compiler option to enable 7446# it. If cross-compiling, assume it isn't there. 7447 7448echo "$as_me:$LINENO: checking for working matherr" >&5 7449echo $ECHO_N "checking for working matherr... $ECHO_C" >&6 7450if test "$cross_compiling" = yes; then 7451 echo "$as_me:$LINENO: result: no" >&5 7452echo "${ECHO_T}no" >&6 7453 cat >>confdefs.h <<\_ACEOF 7454#define HAVE_MATHERR 0 7455_ACEOF 7456 7457else 7458 cat >conftest.$ac_ext <<_ACEOF 7459#line $LINENO "configure" 7460/* confdefs.h. */ 7461_ACEOF 7462cat confdefs.h >>conftest.$ac_ext 7463cat >>conftest.$ac_ext <<_ACEOF 7464/* end confdefs.h. */ 7465 7466/* exit 0 if matherr is called, 1 otherwise */ 7467#include <math.h> 7468matherr(x) struct exception *x; {exit (0);} 7469main() {exp (-99999);exit (1);} 7470_ACEOF 7471rm -f conftest$ac_exeext 7472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7473 (eval $ac_link) 2>&5 7474 ac_status=$? 7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7478 (eval $ac_try) 2>&5 7479 ac_status=$? 7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7481 (exit $ac_status); }; }; then 7482 echo "$as_me:$LINENO: result: yes" >&5 7483echo "${ECHO_T}yes" >&6 7484 cat >>confdefs.h <<\_ACEOF 7485#define HAVE_MATHERR 1 7486_ACEOF 7487 7488else 7489 echo "$as_me: program exited with status $ac_status" >&5 7490echo "$as_me: failed program was:" >&5 7491sed 's/^/| /' conftest.$ac_ext >&5 7492 7493( exit $ac_status ) 7494echo "$as_me:$LINENO: result: no" >&5 7495echo "${ECHO_T}no" >&6 7496 cat >>confdefs.h <<\_ACEOF 7497#define HAVE_MATHERR 0 7498_ACEOF 7499 7500fi 7501rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7502fi 7503 7504# Check for dynamic linking. 7505 7506echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 7507echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 7508if test "${ac_cv_lib_dl_dlopen+set}" = set; then 7509 echo $ECHO_N "(cached) $ECHO_C" >&6 7510else 7511 ac_check_lib_save_LIBS=$LIBS 7512LIBS="-ldl $LIBS" 7513cat >conftest.$ac_ext <<_ACEOF 7514#line $LINENO "configure" 7515/* confdefs.h. */ 7516_ACEOF 7517cat confdefs.h >>conftest.$ac_ext 7518cat >>conftest.$ac_ext <<_ACEOF 7519/* end confdefs.h. */ 7520 7521/* Override any gcc2 internal prototype to avoid an error. */ 7522#ifdef __cplusplus 7523extern "C" 7524#endif 7525/* We use char because int might match the return type of a gcc2 7526 builtin and then its argument prototype would still apply. */ 7527char dlopen (); 7528int 7529main () 7530{ 7531dlopen (); 7532 ; 7533 return 0; 7534} 7535_ACEOF 7536rm -f conftest.$ac_objext conftest$ac_exeext 7537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7538 (eval $ac_link) 2>&5 7539 ac_status=$? 7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7541 (exit $ac_status); } && 7542 { ac_try='test -s conftest$ac_exeext' 7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7544 (eval $ac_try) 2>&5 7545 ac_status=$? 7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7547 (exit $ac_status); }; }; then 7548 ac_cv_lib_dl_dlopen=yes 7549else 7550 echo "$as_me: failed program was:" >&5 7551sed 's/^/| /' conftest.$ac_ext >&5 7552 7553ac_cv_lib_dl_dlopen=no 7554fi 7555rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7556LIBS=$ac_check_lib_save_LIBS 7557fi 7558echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 7559echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 7560if test $ac_cv_lib_dl_dlopen = yes; then 7561 LIBS="$LIBS -ldl" 7562 cat >>confdefs.h <<\_ACEOF 7563#define HAVE_DLOPEN 1 7564_ACEOF 7565 7566fi 7567 7568 7569#--------------------------------------------------------------------- 7570# Signals 7571#--------------------------------------------------------------------- 7572 7573echo "$as_me:$LINENO: checking return type of signal handlers" >&5 7574echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 7575if test "${ac_cv_type_signal+set}" = set; then 7576 echo $ECHO_N "(cached) $ECHO_C" >&6 7577else 7578 cat >conftest.$ac_ext <<_ACEOF 7579#line $LINENO "configure" 7580/* confdefs.h. */ 7581_ACEOF 7582cat confdefs.h >>conftest.$ac_ext 7583cat >>conftest.$ac_ext <<_ACEOF 7584/* end confdefs.h. */ 7585#include <sys/types.h> 7586#include <signal.h> 7587#ifdef signal 7588# undef signal 7589#endif 7590#ifdef __cplusplus 7591extern "C" void (*signal (int, void (*)(int)))(int); 7592#else 7593void (*signal ()) (); 7594#endif 7595 7596int 7597main () 7598{ 7599int i; 7600 ; 7601 return 0; 7602} 7603_ACEOF 7604rm -f conftest.$ac_objext 7605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7606 (eval $ac_compile) 2>&5 7607 ac_status=$? 7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7609 (exit $ac_status); } && 7610 { ac_try='test -s conftest.$ac_objext' 7611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7612 (eval $ac_try) 2>&5 7613 ac_status=$? 7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7615 (exit $ac_status); }; }; then 7616 ac_cv_type_signal=void 7617else 7618 echo "$as_me: failed program was:" >&5 7619sed 's/^/| /' conftest.$ac_ext >&5 7620 7621ac_cv_type_signal=int 7622fi 7623rm -f conftest.$ac_objext conftest.$ac_ext 7624fi 7625echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 7626echo "${ECHO_T}$ac_cv_type_signal" >&6 7627 7628cat >>confdefs.h <<_ACEOF 7629#define RETSIGTYPE $ac_cv_type_signal 7630_ACEOF 7631 7632 7633 7634# Does sigaction(2) have the SA_RESTART flag? 7635 7636if test "$ac_cv_func_sigaction" = yes; then 7637 echo "$as_me:$LINENO: checking for SA_RESTART flag with sigaction" >&5 7638echo $ECHO_N "checking for SA_RESTART flag with sigaction... $ECHO_C" >&6 7639 cat >conftest.$ac_ext <<_ACEOF 7640#line $LINENO "configure" 7641/* confdefs.h. */ 7642_ACEOF 7643cat confdefs.h >>conftest.$ac_ext 7644cat >>conftest.$ac_ext <<_ACEOF 7645/* end confdefs.h. */ 7646 7647#if HAVE_STANDARDS_H 7648#include <standards.h> 7649#endif 7650#include <signal.h> 7651#ifdef SA_RESTART 7652yes_on_SA_RESTART; 7653#endif 7654 7655_ACEOF 7656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7657 $EGREP "yes_on_SA_RESTART" >/dev/null 2>&1; then 7658 echo "$as_me:$LINENO: result: yes" >&5 7659echo "${ECHO_T}yes" >&6 7660 cat >>confdefs.h <<\_ACEOF 7661#define HAVE_SA_RESTART 1 7662_ACEOF 7663 7664else 7665 echo "$as_me:$LINENO: result: no" >&5 7666echo "${ECHO_T}no" >&6 7667 cat >>confdefs.h <<\_ACEOF 7668#define HAVE_SA_RESTART 0 7669_ACEOF 7670 7671fi 7672rm -f conftest* 7673 7674fi 7675 7676# There are at least three portability issues to worry about: 7677# 7678# 1. Do system calls get restarted automatically? 7679# 2. Is the signal handler reset after a signal is caught? First 7680# of all, what do you mean by "reset"? Some folks use the 7681# word "reset" as a synonym for "clear". I think a more 7682# precise use is as "set again". On some systems, a signal's 7683# disposition is changed to SIG_DFL after it is once caught. 7684# If true, our macro RESET_SIGNAL_HANDLER indicates that this 7685# disposition must be reset to the desired handler each time 7686# the signal is caught. 7687# 3. What happens if we catch two identical signals, the second 7688# while we're still handling the first? 7689 7690echo "$as_me:$LINENO: checking for restartable system calls" >&5 7691echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6 7692if test "${ac_cv_sys_restartable_syscalls+set}" = set; then 7693 echo $ECHO_N "(cached) $ECHO_C" >&6 7694else 7695 if test "$cross_compiling" = yes; then 7696 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 7697See \`config.log' for more details." >&5 7698echo "$as_me: error: cannot run test program while cross compiling 7699See \`config.log' for more details." >&2;} 7700 { (exit 1); exit 1; }; } 7701else 7702 cat >conftest.$ac_ext <<_ACEOF 7703#line $LINENO "configure" 7704/* confdefs.h. */ 7705_ACEOF 7706cat confdefs.h >>conftest.$ac_ext 7707cat >>conftest.$ac_ext <<_ACEOF 7708/* end confdefs.h. */ 7709/* Exit 0 (true) if wait returns something other than -1, 7710 i.e. the pid of the child, which means that wait was restarted 7711 after getting the signal. */ 7712#include <sys/types.h> 7713#include <signal.h> 7714#if HAVE_SIGACTION 7715#define SIGNAL(sig, handler) { \ 7716 struct sigaction act; \ 7717 act.sa_handler = handler; \ 7718 sigemptyset (&act.sa_mask); \ 7719 act.sa_flags = SA_RESTART; \ 7720 sigaction (sig, &act, NULL); \ 7721 } 7722#else 7723#if HAVE_SIGSET 7724#define SIGNAL(sig, handler) sigset (sig, handler) 7725#else 7726#define SIGNAL(sig, handler) signal (sig, handler) 7727#endif 7728#endif 7729ucatch (isig) { } 7730main () { 7731 int i = fork (), status; 7732 if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); } 7733 SIGNAL (SIGINT, ucatch); 7734 status = wait(&i); 7735 if (status == -1) wait(&i); 7736 exit (status == -1); 7737} 7738 7739_ACEOF 7740rm -f conftest$ac_exeext 7741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7742 (eval $ac_link) 2>&5 7743 ac_status=$? 7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7747 (eval $ac_try) 2>&5 7748 ac_status=$? 7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7750 (exit $ac_status); }; }; then 7751 ac_cv_sys_restartable_syscalls=yes 7752else 7753 echo "$as_me: program exited with status $ac_status" >&5 7754echo "$as_me: failed program was:" >&5 7755sed 's/^/| /' conftest.$ac_ext >&5 7756 7757( exit $ac_status ) 7758ac_cv_sys_restartable_syscalls=no 7759fi 7760rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7761fi 7762fi 7763echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5 7764echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6 7765if test $ac_cv_sys_restartable_syscalls = yes; then 7766 cat >>confdefs.h <<\_ACEOF 7767#define HAVE_RESTARTABLE_SYSCALLS 1 7768_ACEOF 7769 7770fi 7771 7772echo "$as_me:$LINENO: checking for persistent signal disposition" >&5 7773echo $ECHO_N "checking for persistent signal disposition... $ECHO_C" >&6 7774if test "${ac_cv_persistent_sig_disp+set}" = set; then 7775 echo $ECHO_N "(cached) $ECHO_C" >&6 7776else 7777 if test "$cross_compiling" = yes; then 7778 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 7779See \`config.log' for more details." >&5 7780echo "$as_me: error: cannot run test program while cross compiling 7781See \`config.log' for more details." >&2;} 7782 { (exit 1); exit 1; }; } 7783else 7784 cat >conftest.$ac_ext <<_ACEOF 7785#line $LINENO "configure" 7786/* confdefs.h. */ 7787_ACEOF 7788cat confdefs.h >>conftest.$ac_ext 7789cat >>conftest.$ac_ext <<_ACEOF 7790/* end confdefs.h. */ 7791 7792#include <sys/types.h> 7793#include <signal.h> 7794#if HAVE_SIGACTION 7795#define SIGNAL(sig, handler) { \ 7796 struct sigaction act; \ 7797 act.sa_handler = handler; \ 7798 sigemptyset (&act.sa_mask); \ 7799 act.sa_flags = SA_RESTART; \ 7800 sigaction (sig, &act, NULL); \ 7801 } 7802#else 7803#if HAVE_SIGSET 7804#define SIGNAL(sig, handler) sigset (sig, handler) 7805#else 7806#define SIGNAL(sig, handler) signal (sig, handler) 7807#endif 7808#endif 7809int count; 7810ucatch (isig) {count++;} 7811main () 7812{ 7813 int i = fork (); 7814 if (!i) 7815 { 7816 sleep (3); 7817 kill (getppid (), SIGINT); 7818 sleep (1); 7819 kill (getppid (), SIGINT); 7820 sleep (3); 7821 exit (0); 7822 } 7823 else 7824 { 7825 SIGNAL (SIGINT, ucatch); 7826 while (wait(&i) == -1) ; 7827 exit (count != 2); 7828 } 7829} 7830 7831_ACEOF 7832rm -f conftest$ac_exeext 7833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7834 (eval $ac_link) 2>&5 7835 ac_status=$? 7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7839 (eval $ac_try) 2>&5 7840 ac_status=$? 7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7842 (exit $ac_status); }; }; then 7843 ac_cv_persistent_sig_disp=yes 7844else 7845 echo "$as_me: program exited with status $ac_status" >&5 7846echo "$as_me: failed program was:" >&5 7847sed 's/^/| /' conftest.$ac_ext >&5 7848 7849( exit $ac_status ) 7850ac_cv_persistent_sig_disp=no 7851case "$host" in *-hpux* ) sleep 4 ;; esac 7852fi 7853rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7854fi 7855fi 7856echo "$as_me:$LINENO: result: $ac_cv_persistent_sig_disp" >&5 7857echo "${ECHO_T}$ac_cv_persistent_sig_disp" >&6 7858if test $ac_cv_persistent_sig_disp = yes; then 7859 cat >>confdefs.h <<\_ACEOF 7860#define HAVE_RESTARTABLE_SYSCALLS 1 7861_ACEOF 7862 7863fi 7864 7865 7866#--------------------------------------------------------------------- 7867# How to do floating point exceptions? 7868#--------------------------------------------------------------------- 7869 7870 7871echo "$as_me:$LINENO: checking for fpe in -lhandle_sigfpes" >&5 7872echo $ECHO_N "checking for fpe in -lhandle_sigfpes... $ECHO_C" >&6 7873if test "${ac_cv_lib_handle_sigfpes_fpe+set}" = set; then 7874 echo $ECHO_N "(cached) $ECHO_C" >&6 7875else 7876 ac_check_lib_save_LIBS=$LIBS 7877LIBS="-lhandle_sigfpes $LIBS" 7878cat >conftest.$ac_ext <<_ACEOF 7879#line $LINENO "configure" 7880/* confdefs.h. */ 7881_ACEOF 7882cat confdefs.h >>conftest.$ac_ext 7883cat >>conftest.$ac_ext <<_ACEOF 7884/* end confdefs.h. */ 7885 7886/* Override any gcc2 internal prototype to avoid an error. */ 7887#ifdef __cplusplus 7888extern "C" 7889#endif 7890/* We use char because int might match the return type of a gcc2 7891 builtin and then its argument prototype would still apply. */ 7892char fpe (); 7893int 7894main () 7895{ 7896fpe (); 7897 ; 7898 return 0; 7899} 7900_ACEOF 7901rm -f conftest.$ac_objext conftest$ac_exeext 7902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7903 (eval $ac_link) 2>&5 7904 ac_status=$? 7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7906 (exit $ac_status); } && 7907 { ac_try='test -s conftest$ac_exeext' 7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7909 (eval $ac_try) 2>&5 7910 ac_status=$? 7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7912 (exit $ac_status); }; }; then 7913 ac_cv_lib_handle_sigfpes_fpe=yes 7914else 7915 echo "$as_me: failed program was:" >&5 7916sed 's/^/| /' conftest.$ac_ext >&5 7917 7918ac_cv_lib_handle_sigfpes_fpe=no 7919fi 7920rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7921LIBS=$ac_check_lib_save_LIBS 7922fi 7923echo "$as_me:$LINENO: result: $ac_cv_lib_handle_sigfpes_fpe" >&5 7924echo "${ECHO_T}$ac_cv_lib_handle_sigfpes_fpe" >&6 7925if test $ac_cv_lib_handle_sigfpes_fpe = yes; then 7926 cat >>confdefs.h <<_ACEOF 7927#define HAVE_LIBHANDLE_SIGFPES 1 7928_ACEOF 7929 7930 LIBS="-lhandle_sigfpes $LIBS" 7931 7932fi 7933 7934 7935# On HP pa1.1 machines, we must explicitly link to the libm that 7936# supports fpe handling. 7937 7938case "$host" in hppa1.1* ) 7939 LDFLAGS="$LDFLAGS -L /lib/pa1.1" 7940esac 7941 7942echo "$as_me:$LINENO: checking for proper floating point exception handling" >&5 7943echo $ECHO_N "checking for proper floating point exception handling... $ECHO_C" >&6 7944fpe_success=no 7945for f in fpe/fpe.c fpe/*.c; do 7946 if test "$cross_compiling" = yes; then 7947 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 7948See \`config.log' for more details." >&5 7949echo "$as_me: error: cannot run test program while cross compiling 7950See \`config.log' for more details." >&2;} 7951 { (exit 1); exit 1; }; } 7952else 7953 cat >conftest.$ac_ext <<_ACEOF 7954#line $LINENO "configure" 7955/* confdefs.h. */ 7956_ACEOF 7957cat confdefs.h >>conftest.$ac_ext 7958cat >>conftest.$ac_ext <<_ACEOF 7959/* end confdefs.h. */ 7960 7961#define SKIP_LOCAL_INCLUDES 1 7962#include "$f" 7963double z=0.0; 7964fail(s) char *s; { exit(0); } 7965double r(x) double x; { return 1.0/x; } 7966raise_exception() { exit(1); } 7967wipeout(s) char *s; { exit(1); } 7968warn(s) char *s; { exit(1); } 7969main() { enable_fpe_traps(); fprintf(stderr,"%g\n",r(z)); exit(1); } 7970_ACEOF 7971rm -f conftest$ac_exeext 7972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7973 (eval $ac_link) 2>&5 7974 ac_status=$? 7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7978 (eval $ac_try) 2>&5 7979 ac_status=$? 7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7981 (exit $ac_status); }; }; then 7982 fpe_success=yes;break 7983else 7984 echo "$as_me: program exited with status $ac_status" >&5 7985echo "$as_me: failed program was:" >&5 7986sed 's/^/| /' conftest.$ac_ext >&5 7987 7988fi 7989rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7990fi 7991done 7992if test $fpe_success = no; then 7993 echo "$as_me:$LINENO: result: no" >&5 7994echo "${ECHO_T}no" >&6 7995 rm -f conftest* 7996 { { echo "$as_me:$LINENO: error: Cannot handle floating point exceptions." >&5 7997echo "$as_me: error: Cannot handle floating point exceptions." >&2;} 7998 { (exit 1); exit 1; }; } 7999fi 8000rm -f conftest* 8001echo "$as_me:$LINENO: result: yes" >&5 8002echo "${ECHO_T}yes" >&6 8003ac_sources="$f" 8004ac_dests="src/fpe.c" 8005while test -n "$ac_sources"; do 8006 set $ac_dests; ac_dest=$1; shift; ac_dests=$* 8007 set $ac_sources; ac_source=$1; shift; ac_sources=$* 8008 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" 8009done 8010 ac_config_links="$ac_config_links $ac_config_links_1" 8011 8012 8013#--------------------------------------------------------------------- 8014# Go back to original (possibly with broken ld) compilers. 8015#--------------------------------------------------------------------- 8016 8017CC="$basic_CC" 8018F77="$basic_F77" 8019 8020#--------------------------------------------------------------------- 8021# Write the output files. 8022#--------------------------------------------------------------------- 8023 8024 ac_config_files="$ac_config_files rc0 Makefile doc/Makefile etc/Makefile examples/Makefile fpe/Makefile src/Makefile test/Makefile timing/Makefile tools/Makefile src/bcs.h src/blas.h src/fortran.h src/lapack.h src/thin.h src/arpack.h blas/Makefile lapack/Makefile superlu/Makefile arpack/Makefile" 8025cat >confcache <<\_ACEOF 8026# This file is a shell script that caches the results of configure 8027# tests run on this system so they can be shared between configure 8028# scripts and configure runs, see configure's option --config-cache. 8029# It is not useful on other systems. If it contains results you don't 8030# want to keep, you may remove or edit it. 8031# 8032# config.status only pays attention to the cache file if you give it 8033# the --recheck option to rerun configure. 8034# 8035# `ac_cv_env_foo' variables (set or unset) will be overridden when 8036# loading this file, other *unset* `ac_cv_foo' will be assigned the 8037# following values. 8038 8039_ACEOF 8040 8041# The following way of writing the cache mishandles newlines in values, 8042# but we know of no workaround that is simple, portable, and efficient. 8043# So, don't put newlines in cache variables' values. 8044# Ultrix sh set writes to stderr and can't be redirected directly, 8045# and sets the high bit in the cache file unless we assign to the vars. 8046{ 8047 (set) 2>&1 | 8048 case `(ac_space=' '; set | grep ac_space) 2>&1` in 8049 *ac_space=\ *) 8050 # `set' does not quote correctly, so add quotes (double-quote 8051 # substitution turns \\\\ into \\, and sed turns \\ into \). 8052 sed -n \ 8053 "s/'/'\\\\''/g; 8054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8055 ;; 8056 *) 8057 # `set' quotes correctly as required by POSIX, so do not add quotes. 8058 sed -n \ 8059 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 8060 ;; 8061 esac; 8062} | 8063 sed ' 8064 t clear 8065 : clear 8066 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8067 t end 8068 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8069 : end' >>confcache 8070if diff $cache_file confcache >/dev/null 2>&1; then :; else 8071 if test -w $cache_file; then 8072 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 8073 cat confcache >$cache_file 8074 else 8075 echo "not updating unwritable cache $cache_file" 8076 fi 8077fi 8078rm -f confcache 8079 8080test "x$prefix" = xNONE && prefix=$ac_default_prefix 8081# Let make expand exec_prefix. 8082test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8083 8084# VPATH may cause trouble with some makes, so we remove $(srcdir), 8085# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 8086# trailing colons and then remove the whole line if VPATH becomes empty 8087# (actually we leave an empty line to preserve line numbers). 8088if test "x$srcdir" = x.; then 8089 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 8090s/:*\$(srcdir):*/:/; 8091s/:*\${srcdir}:*/:/; 8092s/:*@srcdir@:*/:/; 8093s/^\([^=]*=[ ]*\):*/\1/; 8094s/:*$//; 8095s/^[^=]*=[ ]*$//; 8096}' 8097fi 8098 8099DEFS=-DHAVE_CONFIG_H 8100 8101ac_libobjs= 8102ac_ltlibobjs= 8103for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8104 # 1. Remove the extension, and $U if already installed. 8105 ac_i=`echo "$ac_i" | 8106 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 8107 # 2. Add them. 8108 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 8109 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 8110done 8111LIBOBJS=$ac_libobjs 8112 8113LTLIBOBJS=$ac_ltlibobjs 8114 8115 8116 8117: ${CONFIG_STATUS=./config.status} 8118ac_clean_files_save=$ac_clean_files 8119ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8120{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8121echo "$as_me: creating $CONFIG_STATUS" >&6;} 8122cat >$CONFIG_STATUS <<_ACEOF 8123#! $SHELL 8124# Generated by $as_me. 8125# Run this file to recreate the current configuration. 8126# Compiler output produced by configure, useful for debugging 8127# configure, is in config.log if it exists. 8128 8129debug=false 8130ac_cs_recheck=false 8131ac_cs_silent=false 8132SHELL=\${CONFIG_SHELL-$SHELL} 8133_ACEOF 8134 8135cat >>$CONFIG_STATUS <<\_ACEOF 8136## --------------------- ## 8137## M4sh Initialization. ## 8138## --------------------- ## 8139 8140# Be Bourne compatible 8141if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8142 emulate sh 8143 NULLCMD=: 8144 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 8145 # is contrary to our usage. Disable this feature. 8146 alias -g '${1+"$@"}'='"$@"' 8147elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 8148 set -o posix 8149fi 8150 8151# Support unset when possible. 8152if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 8153 as_unset=unset 8154else 8155 as_unset=false 8156fi 8157 8158 8159# Work around bugs in pre-3.0 UWIN ksh. 8160$as_unset ENV MAIL MAILPATH 8161PS1='$ ' 8162PS2='> ' 8163PS4='+ ' 8164 8165# NLS nuisances. 8166for as_var in \ 8167 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 8168 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 8169 LC_TELEPHONE LC_TIME 8170do 8171 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 8172 eval $as_var=C; export $as_var 8173 else 8174 $as_unset $as_var 8175 fi 8176done 8177 8178# Required to use basename. 8179if expr a : '\(a\)' >/dev/null 2>&1; then 8180 as_expr=expr 8181else 8182 as_expr=false 8183fi 8184 8185if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 8186 as_basename=basename 8187else 8188 as_basename=false 8189fi 8190 8191 8192# Name of the executable. 8193as_me=`$as_basename "$0" || 8194$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8195 X"$0" : 'X\(//\)$' \| \ 8196 X"$0" : 'X\(/\)$' \| \ 8197 . : '\(.\)' 2>/dev/null || 8198echo X/"$0" | 8199 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 8200 /^X\/\(\/\/\)$/{ s//\1/; q; } 8201 /^X\/\(\/\).*/{ s//\1/; q; } 8202 s/.*/./; q'` 8203 8204 8205# PATH needs CR, and LINENO needs CR and PATH. 8206# Avoid depending upon Character Ranges. 8207as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8208as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8209as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8210as_cr_digits='0123456789' 8211as_cr_alnum=$as_cr_Letters$as_cr_digits 8212 8213# The user is always right. 8214if test "${PATH_SEPARATOR+set}" != set; then 8215 echo "#! /bin/sh" >conf$$.sh 8216 echo "exit 0" >>conf$$.sh 8217 chmod +x conf$$.sh 8218 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8219 PATH_SEPARATOR=';' 8220 else 8221 PATH_SEPARATOR=: 8222 fi 8223 rm -f conf$$.sh 8224fi 8225 8226 8227 as_lineno_1=$LINENO 8228 as_lineno_2=$LINENO 8229 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 8230 test "x$as_lineno_1" != "x$as_lineno_2" && 8231 test "x$as_lineno_3" = "x$as_lineno_2" || { 8232 # Find who we are. Look in the path if we contain no path at all 8233 # relative or not. 8234 case $0 in 8235 *[\\/]* ) as_myself=$0 ;; 8236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8237for as_dir in $PATH 8238do 8239 IFS=$as_save_IFS 8240 test -z "$as_dir" && as_dir=. 8241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8242done 8243 8244 ;; 8245 esac 8246 # We did not find ourselves, most probably we were run as `sh COMMAND' 8247 # in which case we are not to be found in the path. 8248 if test "x$as_myself" = x; then 8249 as_myself=$0 8250 fi 8251 if test ! -f "$as_myself"; then 8252 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 8253echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 8254 { (exit 1); exit 1; }; } 8255 fi 8256 case $CONFIG_SHELL in 8257 '') 8258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8259for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 8260do 8261 IFS=$as_save_IFS 8262 test -z "$as_dir" && as_dir=. 8263 for as_base in sh bash ksh sh5; do 8264 case $as_dir in 8265 /*) 8266 if ("$as_dir/$as_base" -c ' 8267 as_lineno_1=$LINENO 8268 as_lineno_2=$LINENO 8269 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 8270 test "x$as_lineno_1" != "x$as_lineno_2" && 8271 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 8272 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 8273 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 8274 CONFIG_SHELL=$as_dir/$as_base 8275 export CONFIG_SHELL 8276 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 8277 fi;; 8278 esac 8279 done 8280done 8281;; 8282 esac 8283 8284 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 8285 # uniformly replaced by the line number. The first 'sed' inserts a 8286 # line-number line before each line; the second 'sed' does the real 8287 # work. The second script uses 'N' to pair each line-number line 8288 # with the numbered line, and appends trailing '-' during 8289 # substitution so that $LINENO is not a special case at line end. 8290 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 8291 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 8292 sed '=' <$as_myself | 8293 sed ' 8294 N 8295 s,$,-, 8296 : loop 8297 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 8298 t loop 8299 s,-$,, 8300 s,^['$as_cr_digits']*\n,, 8301 ' >$as_me.lineno && 8302 chmod +x $as_me.lineno || 8303 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 8304echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 8305 { (exit 1); exit 1; }; } 8306 8307 # Don't try to exec as it changes $[0], causing all sort of problems 8308 # (the dirname of $[0] is not the place where we might find the 8309 # original and so on. Autoconf is especially sensible to this). 8310 . ./$as_me.lineno 8311 # Exit status is that of the last command. 8312 exit 8313} 8314 8315 8316case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 8317 *c*,-n*) ECHO_N= ECHO_C=' 8318' ECHO_T=' ' ;; 8319 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 8320 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 8321esac 8322 8323if expr a : '\(a\)' >/dev/null 2>&1; then 8324 as_expr=expr 8325else 8326 as_expr=false 8327fi 8328 8329rm -f conf$$ conf$$.exe conf$$.file 8330echo >conf$$.file 8331if ln -s conf$$.file conf$$ 2>/dev/null; then 8332 # We could just check for DJGPP; but this test a) works b) is more generic 8333 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 8334 if test -f conf$$.exe; then 8335 # Don't use ln at all; we don't have any links 8336 as_ln_s='cp -p' 8337 else 8338 as_ln_s='ln -s' 8339 fi 8340elif ln conf$$.file conf$$ 2>/dev/null; then 8341 as_ln_s=ln 8342else 8343 as_ln_s='cp -p' 8344fi 8345rm -f conf$$ conf$$.exe conf$$.file 8346 8347if mkdir -p . 2>/dev/null; then 8348 as_mkdir_p=: 8349else 8350 as_mkdir_p=false 8351fi 8352 8353as_executable_p="test -f" 8354 8355# Sed expression to map a string onto a valid CPP name. 8356as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 8357 8358# Sed expression to map a string onto a valid variable name. 8359as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 8360 8361 8362# IFS 8363# We need space, tab and new line, in precisely that order. 8364as_nl=' 8365' 8366IFS=" $as_nl" 8367 8368# CDPATH. 8369$as_unset CDPATH 8370 8371exec 6>&1 8372 8373# Open the log real soon, to keep \$[0] and so on meaningful, and to 8374# report actual input values of CONFIG_FILES etc. instead of their 8375# values after options handling. Logging --version etc. is OK. 8376exec 5>>config.log 8377{ 8378 echo 8379 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8380## Running $as_me. ## 8381_ASBOX 8382} >&5 8383cat >&5 <<_CSEOF 8384 8385This file was extended by $as_me, which was 8386generated by GNU Autoconf 2.57. Invocation command line was 8387 8388 CONFIG_FILES = $CONFIG_FILES 8389 CONFIG_HEADERS = $CONFIG_HEADERS 8390 CONFIG_LINKS = $CONFIG_LINKS 8391 CONFIG_COMMANDS = $CONFIG_COMMANDS 8392 $ $0 $@ 8393 8394_CSEOF 8395echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 8396echo >&5 8397_ACEOF 8398 8399# Files that config.status was made for. 8400if test -n "$ac_config_files"; then 8401 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 8402fi 8403 8404if test -n "$ac_config_headers"; then 8405 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 8406fi 8407 8408if test -n "$ac_config_links"; then 8409 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 8410fi 8411 8412if test -n "$ac_config_commands"; then 8413 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 8414fi 8415 8416cat >>$CONFIG_STATUS <<\_ACEOF 8417 8418ac_cs_usage="\ 8419\`$as_me' instantiates files from templates according to the 8420current configuration. 8421 8422Usage: $0 [OPTIONS] [FILE]... 8423 8424 -h, --help print this help, then exit 8425 -V, --version print version number, then exit 8426 -q, --quiet do not print progress messages 8427 -d, --debug don't remove temporary files 8428 --recheck update $as_me by reconfiguring in the same conditions 8429 --file=FILE[:TEMPLATE] 8430 instantiate the configuration file FILE 8431 --header=FILE[:TEMPLATE] 8432 instantiate the configuration header FILE 8433 8434Configuration files: 8435$config_files 8436 8437Configuration headers: 8438$config_headers 8439 8440Configuration links: 8441$config_links 8442 8443Report bugs to <bug-autoconf@gnu.org>." 8444_ACEOF 8445 8446cat >>$CONFIG_STATUS <<_ACEOF 8447ac_cs_version="\\ 8448config.status 8449configured by $0, generated by GNU Autoconf 2.57, 8450 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 8451 8452Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 8453Free Software Foundation, Inc. 8454This config.status script is free software; the Free Software Foundation 8455gives unlimited permission to copy, distribute and modify it." 8456srcdir=$srcdir 8457INSTALL="$INSTALL" 8458_ACEOF 8459 8460cat >>$CONFIG_STATUS <<\_ACEOF 8461# If no file are specified by the user, then we need to provide default 8462# value. By we need to know if files were specified by the user. 8463ac_need_defaults=: 8464while test $# != 0 8465do 8466 case $1 in 8467 --*=*) 8468 ac_option=`expr "x$1" : 'x\([^=]*\)='` 8469 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 8470 ac_shift=: 8471 ;; 8472 -*) 8473 ac_option=$1 8474 ac_optarg=$2 8475 ac_shift=shift 8476 ;; 8477 *) # This is not an option, so the user has probably given explicit 8478 # arguments. 8479 ac_option=$1 8480 ac_need_defaults=false;; 8481 esac 8482 8483 case $ac_option in 8484 # Handling of the options. 8485_ACEOF 8486cat >>$CONFIG_STATUS <<\_ACEOF 8487 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8488 ac_cs_recheck=: ;; 8489 --version | --vers* | -V ) 8490 echo "$ac_cs_version"; exit 0 ;; 8491 --he | --h) 8492 # Conflict between --help and --header 8493 { { echo "$as_me:$LINENO: error: ambiguous option: $1 8494Try \`$0 --help' for more information." >&5 8495echo "$as_me: error: ambiguous option: $1 8496Try \`$0 --help' for more information." >&2;} 8497 { (exit 1); exit 1; }; };; 8498 --help | --hel | -h ) 8499 echo "$ac_cs_usage"; exit 0 ;; 8500 --debug | --d* | -d ) 8501 debug=: ;; 8502 --file | --fil | --fi | --f ) 8503 $ac_shift 8504 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 8505 ac_need_defaults=false;; 8506 --header | --heade | --head | --hea ) 8507 $ac_shift 8508 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 8509 ac_need_defaults=false;; 8510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8511 | -silent | --silent | --silen | --sile | --sil | --si | --s) 8512 ac_cs_silent=: ;; 8513 8514 # This is an error. 8515 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 8516Try \`$0 --help' for more information." >&5 8517echo "$as_me: error: unrecognized option: $1 8518Try \`$0 --help' for more information." >&2;} 8519 { (exit 1); exit 1; }; } ;; 8520 8521 *) ac_config_targets="$ac_config_targets $1" ;; 8522 8523 esac 8524 shift 8525done 8526 8527ac_configure_extra_args= 8528 8529if $ac_cs_silent; then 8530 exec 6>/dev/null 8531 ac_configure_extra_args="$ac_configure_extra_args --silent" 8532fi 8533 8534_ACEOF 8535cat >>$CONFIG_STATUS <<_ACEOF 8536if \$ac_cs_recheck; then 8537 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 8538 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8539fi 8540 8541_ACEOF 8542 8543 8544 8545 8546 8547cat >>$CONFIG_STATUS <<\_ACEOF 8548for ac_config_target in $ac_config_targets 8549do 8550 case "$ac_config_target" in 8551 # Handling of arguments. 8552 "rc0" ) CONFIG_FILES="$CONFIG_FILES rc0" ;; 8553 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8554 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 8555 "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; 8556 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 8557 "fpe/Makefile" ) CONFIG_FILES="$CONFIG_FILES fpe/Makefile" ;; 8558 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 8559 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 8560 "timing/Makefile" ) CONFIG_FILES="$CONFIG_FILES timing/Makefile" ;; 8561 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 8562 "src/bcs.h" ) CONFIG_FILES="$CONFIG_FILES src/bcs.h" ;; 8563 "src/blas.h" ) CONFIG_FILES="$CONFIG_FILES src/blas.h" ;; 8564 "src/fortran.h" ) CONFIG_FILES="$CONFIG_FILES src/fortran.h" ;; 8565 "src/lapack.h" ) CONFIG_FILES="$CONFIG_FILES src/lapack.h" ;; 8566 "src/thin.h" ) CONFIG_FILES="$CONFIG_FILES src/thin.h" ;; 8567 "src/arpack.h" ) CONFIG_FILES="$CONFIG_FILES src/arpack.h" ;; 8568 "blas/Makefile" ) CONFIG_FILES="$CONFIG_FILES blas/Makefile" ;; 8569 "lapack/Makefile" ) CONFIG_FILES="$CONFIG_FILES lapack/Makefile" ;; 8570 "superlu/Makefile" ) CONFIG_FILES="$CONFIG_FILES superlu/Makefile" ;; 8571 "arpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES arpack/Makefile" ;; 8572 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; 8573 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 8574 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 8575echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 8576 { (exit 1); exit 1; }; };; 8577 esac 8578done 8579 8580# If the user did not use the arguments to specify the items to instantiate, 8581# then the envvar interface is used. Set only those that are not. 8582# We use the long form for the default assignment because of an extremely 8583# bizarre bug on SunOS 4.1.3. 8584if $ac_need_defaults; then 8585 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8586 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8587 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 8588fi 8589 8590# Have a temporary directory for convenience. Make it in the build tree 8591# simply because there is no reason to put it here, and in addition, 8592# creating and moving files from /tmp can sometimes cause problems. 8593# Create a temporary directory, and hook for its removal unless debugging. 8594$debug || 8595{ 8596 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 8597 trap '{ (exit 1); exit 1; }' 1 2 13 15 8598} 8599 8600# Create a (secure) tmp directory for tmp files. 8601 8602{ 8603 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 8604 test -n "$tmp" && test -d "$tmp" 8605} || 8606{ 8607 tmp=./confstat$$-$RANDOM 8608 (umask 077 && mkdir $tmp) 8609} || 8610{ 8611 echo "$me: cannot create a temporary directory in ." >&2 8612 { (exit 1); exit 1; } 8613} 8614 8615_ACEOF 8616 8617cat >>$CONFIG_STATUS <<_ACEOF 8618 8619# 8620# CONFIG_FILES section. 8621# 8622 8623# No need to generate the scripts if there are no CONFIG_FILES. 8624# This happens for instance when ./config.status config.h 8625if test -n "\$CONFIG_FILES"; then 8626 # Protect against being on the right side of a sed subst in config.status. 8627 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 8628 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 8629s,@SHELL@,$SHELL,;t t 8630s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 8631s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 8632s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 8633s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 8634s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 8635s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 8636s,@exec_prefix@,$exec_prefix,;t t 8637s,@prefix@,$prefix,;t t 8638s,@program_transform_name@,$program_transform_name,;t t 8639s,@bindir@,$bindir,;t t 8640s,@sbindir@,$sbindir,;t t 8641s,@libexecdir@,$libexecdir,;t t 8642s,@datadir@,$datadir,;t t 8643s,@sysconfdir@,$sysconfdir,;t t 8644s,@sharedstatedir@,$sharedstatedir,;t t 8645s,@localstatedir@,$localstatedir,;t t 8646s,@libdir@,$libdir,;t t 8647s,@includedir@,$includedir,;t t 8648s,@oldincludedir@,$oldincludedir,;t t 8649s,@infodir@,$infodir,;t t 8650s,@mandir@,$mandir,;t t 8651s,@build_alias@,$build_alias,;t t 8652s,@host_alias@,$host_alias,;t t 8653s,@target_alias@,$target_alias,;t t 8654s,@DEFS@,$DEFS,;t t 8655s,@ECHO_C@,$ECHO_C,;t t 8656s,@ECHO_N@,$ECHO_N,;t t 8657s,@ECHO_T@,$ECHO_T,;t t 8658s,@LIBS@,$LIBS,;t t 8659s,@DEBUG_INCLUDE@,$DEBUG_INCLUDE,;t t 8660s,@CC@,$CC,;t t 8661s,@CFLAGS@,$CFLAGS,;t t 8662s,@LDFLAGS@,$LDFLAGS,;t t 8663s,@CPPFLAGS@,$CPPFLAGS,;t t 8664s,@ac_ct_CC@,$ac_ct_CC,;t t 8665s,@EXEEXT@,$EXEEXT,;t t 8666s,@OBJEXT@,$OBJEXT,;t t 8667s,@F77@,$F77,;t t 8668s,@FFLAGS@,$FFLAGS,;t t 8669s,@ac_ct_F77@,$ac_ct_F77,;t t 8670s,@SET_MAKE@,$SET_MAKE,;t t 8671s,@AWK@,$AWK,;t t 8672s,@YACC@,$YACC,;t t 8673s,@LEX@,$LEX,;t t 8674s,@LEXLIB@,$LEXLIB,;t t 8675s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 8676s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 8677s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 8678s,@INSTALL_DATA@,$INSTALL_DATA,;t t 8679s,@RANLIB@,$RANLIB,;t t 8680s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 8681s,@M4@,$M4,;t t 8682s,@F2C@,$F2C,;t t 8683s,@EFL@,$EFL,;t t 8684s,@RATFOR@,$RATFOR,;t t 8685s,@LS@,$LS,;t t 8686s,@TR@,$TR,;t t 8687s,@SED@,$SED,;t t 8688s,@INFO@,$INFO,;t t 8689s,@HTML@,$HTML,;t t 8690s,@XHTML@,$XHTML,;t t 8691s,@GNUPLOT@,$GNUPLOT,;t t 8692s,@XTERM@,$XTERM,;t t 8693s,@ARFLAGS@,$ARFLAGS,;t t 8694s,@build@,$build,;t t 8695s,@build_cpu@,$build_cpu,;t t 8696s,@build_vendor@,$build_vendor,;t t 8697s,@build_os@,$build_os,;t t 8698s,@host@,$host,;t t 8699s,@host_cpu@,$host_cpu,;t t 8700s,@host_vendor@,$host_vendor,;t t 8701s,@host_os@,$host_os,;t t 8702s,@CPP@,$CPP,;t t 8703s,@EGREP@,$EGREP,;t t 8704s,@FFLAGS_NOOPT@,$FFLAGS_NOOPT,;t t 8705s,@F77_RULE@,$F77_RULE,;t t 8706s,@FTN_SUFFIX@,$FTN_SUFFIX,;t t 8707s,@CDEFS@,$CDEFS,;t t 8708s,@BLAS@,$BLAS,;t t 8709s,@LAPACK@,$LAPACK,;t t 8710s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t 8711s,@OPTOBJS@,$OPTOBJS,;t t 8712s,@LD_RUN_PATH@,$LD_RUN_PATH,;t t 8713s,@LIBOBJS@,$LIBOBJS,;t t 8714s,@LTLIBOBJS@,$LTLIBOBJS,;t t 8715CEOF 8716 8717_ACEOF 8718 8719 cat >>$CONFIG_STATUS <<\_ACEOF 8720 # Split the substitutions into bite-sized pieces for seds with 8721 # small command number limits, like on Digital OSF/1 and HP-UX. 8722 ac_max_sed_lines=48 8723 ac_sed_frag=1 # Number of current file. 8724 ac_beg=1 # First line for current file. 8725 ac_end=$ac_max_sed_lines # Line after last line for current file. 8726 ac_more_lines=: 8727 ac_sed_cmds= 8728 while $ac_more_lines; do 8729 if test $ac_beg -gt 1; then 8730 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 8731 else 8732 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 8733 fi 8734 if test ! -s $tmp/subs.frag; then 8735 ac_more_lines=false 8736 else 8737 # The purpose of the label and of the branching condition is to 8738 # speed up the sed processing (if there are no `@' at all, there 8739 # is no need to browse any of the substitutions). 8740 # These are the two extra sed commands mentioned above. 8741 (echo ':t 8742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 8743 if test -z "$ac_sed_cmds"; then 8744 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 8745 else 8746 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 8747 fi 8748 ac_sed_frag=`expr $ac_sed_frag + 1` 8749 ac_beg=$ac_end 8750 ac_end=`expr $ac_end + $ac_max_sed_lines` 8751 fi 8752 done 8753 if test -z "$ac_sed_cmds"; then 8754 ac_sed_cmds=cat 8755 fi 8756fi # test -n "$CONFIG_FILES" 8757 8758_ACEOF 8759cat >>$CONFIG_STATUS <<\_ACEOF 8760for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 8761 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 8762 case $ac_file in 8763 - | *:- | *:-:* ) # input from stdin 8764 cat >$tmp/stdin 8765 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 8766 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 8767 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 8768 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 8769 * ) ac_file_in=$ac_file.in ;; 8770 esac 8771 8772 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 8773 ac_dir=`(dirname "$ac_file") 2>/dev/null || 8774$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8775 X"$ac_file" : 'X\(//\)[^/]' \| \ 8776 X"$ac_file" : 'X\(//\)$' \| \ 8777 X"$ac_file" : 'X\(/\)' \| \ 8778 . : '\(.\)' 2>/dev/null || 8779echo X"$ac_file" | 8780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 8781 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 8782 /^X\(\/\/\)$/{ s//\1/; q; } 8783 /^X\(\/\).*/{ s//\1/; q; } 8784 s/.*/./; q'` 8785 { if $as_mkdir_p; then 8786 mkdir -p "$ac_dir" 8787 else 8788 as_dir="$ac_dir" 8789 as_dirs= 8790 while test ! -d "$as_dir"; do 8791 as_dirs="$as_dir $as_dirs" 8792 as_dir=`(dirname "$as_dir") 2>/dev/null || 8793$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8794 X"$as_dir" : 'X\(//\)[^/]' \| \ 8795 X"$as_dir" : 'X\(//\)$' \| \ 8796 X"$as_dir" : 'X\(/\)' \| \ 8797 . : '\(.\)' 2>/dev/null || 8798echo X"$as_dir" | 8799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 8800 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 8801 /^X\(\/\/\)$/{ s//\1/; q; } 8802 /^X\(\/\).*/{ s//\1/; q; } 8803 s/.*/./; q'` 8804 done 8805 test ! -n "$as_dirs" || mkdir $as_dirs 8806 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 8807echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 8808 { (exit 1); exit 1; }; }; } 8809 8810 ac_builddir=. 8811 8812if test "$ac_dir" != .; then 8813 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 8814 # A "../" for each directory in $ac_dir_suffix. 8815 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 8816else 8817 ac_dir_suffix= ac_top_builddir= 8818fi 8819 8820case $srcdir in 8821 .) # No --srcdir option. We are building in place. 8822 ac_srcdir=. 8823 if test -z "$ac_top_builddir"; then 8824 ac_top_srcdir=. 8825 else 8826 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 8827 fi ;; 8828 [\\/]* | ?:[\\/]* ) # Absolute path. 8829 ac_srcdir=$srcdir$ac_dir_suffix; 8830 ac_top_srcdir=$srcdir ;; 8831 *) # Relative path. 8832 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 8833 ac_top_srcdir=$ac_top_builddir$srcdir ;; 8834esac 8835# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 8836# absolute. 8837ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 8838ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 8839ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 8840ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 8841 8842 8843 case $INSTALL in 8844 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 8845 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 8846 esac 8847 8848 if test x"$ac_file" != x-; then 8849 { echo "$as_me:$LINENO: creating $ac_file" >&5 8850echo "$as_me: creating $ac_file" >&6;} 8851 rm -f "$ac_file" 8852 fi 8853 # Let's still pretend it is `configure' which instantiates (i.e., don't 8854 # use $as_me), people would be surprised to read: 8855 # /* config.h. Generated by config.status. */ 8856 if test x"$ac_file" = x-; then 8857 configure_input= 8858 else 8859 configure_input="$ac_file. " 8860 fi 8861 configure_input=$configure_input"Generated from `echo $ac_file_in | 8862 sed 's,.*/,,'` by configure." 8863 8864 # First look for the input files in the build tree, otherwise in the 8865 # src tree. 8866 ac_file_inputs=`IFS=: 8867 for f in $ac_file_in; do 8868 case $f in 8869 -) echo $tmp/stdin ;; 8870 [\\/$]*) 8871 # Absolute (can't be DOS-style, as IFS=:) 8872 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 8873echo "$as_me: error: cannot find input file: $f" >&2;} 8874 { (exit 1); exit 1; }; } 8875 echo $f;; 8876 *) # Relative 8877 if test -f "$f"; then 8878 # Build tree 8879 echo $f 8880 elif test -f "$srcdir/$f"; then 8881 # Source tree 8882 echo $srcdir/$f 8883 else 8884 # /dev/null tree 8885 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 8886echo "$as_me: error: cannot find input file: $f" >&2;} 8887 { (exit 1); exit 1; }; } 8888 fi;; 8889 esac 8890 done` || { (exit 1); exit 1; } 8891_ACEOF 8892cat >>$CONFIG_STATUS <<_ACEOF 8893 sed "$ac_vpsub 8894$extrasub 8895_ACEOF 8896cat >>$CONFIG_STATUS <<\_ACEOF 8897:t 8898/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8899s,@configure_input@,$configure_input,;t t 8900s,@srcdir@,$ac_srcdir,;t t 8901s,@abs_srcdir@,$ac_abs_srcdir,;t t 8902s,@top_srcdir@,$ac_top_srcdir,;t t 8903s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 8904s,@builddir@,$ac_builddir,;t t 8905s,@abs_builddir@,$ac_abs_builddir,;t t 8906s,@top_builddir@,$ac_top_builddir,;t t 8907s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 8908s,@INSTALL@,$ac_INSTALL,;t t 8909" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 8910 rm -f $tmp/stdin 8911 if test x"$ac_file" != x-; then 8912 mv $tmp/out $ac_file 8913 else 8914 cat $tmp/out 8915 rm -f $tmp/out 8916 fi 8917 8918done 8919_ACEOF 8920cat >>$CONFIG_STATUS <<\_ACEOF 8921 8922# 8923# CONFIG_HEADER section. 8924# 8925 8926# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 8927# NAME is the cpp macro being defined and VALUE is the value it is being given. 8928# 8929# ac_d sets the value in "#define NAME VALUE" lines. 8930ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 8931ac_dB='[ ].*$,\1#\2' 8932ac_dC=' ' 8933ac_dD=',;t' 8934# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 8935ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 8936ac_uB='$,\1#\2define\3' 8937ac_uC=' ' 8938ac_uD=',;t' 8939 8940for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 8941 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 8942 case $ac_file in 8943 - | *:- | *:-:* ) # input from stdin 8944 cat >$tmp/stdin 8945 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 8946 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 8947 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 8948 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 8949 * ) ac_file_in=$ac_file.in ;; 8950 esac 8951 8952 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 8953echo "$as_me: creating $ac_file" >&6;} 8954 8955 # First look for the input files in the build tree, otherwise in the 8956 # src tree. 8957 ac_file_inputs=`IFS=: 8958 for f in $ac_file_in; do 8959 case $f in 8960 -) echo $tmp/stdin ;; 8961 [\\/$]*) 8962 # Absolute (can't be DOS-style, as IFS=:) 8963 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 8964echo "$as_me: error: cannot find input file: $f" >&2;} 8965 { (exit 1); exit 1; }; } 8966 echo $f;; 8967 *) # Relative 8968 if test -f "$f"; then 8969 # Build tree 8970 echo $f 8971 elif test -f "$srcdir/$f"; then 8972 # Source tree 8973 echo $srcdir/$f 8974 else 8975 # /dev/null tree 8976 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 8977echo "$as_me: error: cannot find input file: $f" >&2;} 8978 { (exit 1); exit 1; }; } 8979 fi;; 8980 esac 8981 done` || { (exit 1); exit 1; } 8982 # Remove the trailing spaces. 8983 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 8984 8985_ACEOF 8986 8987# Transform confdefs.h into two sed scripts, `conftest.defines' and 8988# `conftest.undefs', that substitutes the proper values into 8989# config.h.in to produce config.h. The first handles `#define' 8990# templates, and the second `#undef' templates. 8991# And first: Protect against being on the right side of a sed subst in 8992# config.status. Protect against being in an unquoted here document 8993# in config.status. 8994rm -f conftest.defines conftest.undefs 8995# Using a here document instead of a string reduces the quoting nightmare. 8996# Putting comments in sed scripts is not portable. 8997# 8998# `end' is used to avoid that the second main sed command (meant for 8999# 0-ary CPP macros) applies to n-ary macro definitions. 9000# See the Autoconf documentation for `clear'. 9001cat >confdef2sed.sed <<\_ACEOF 9002s/[\\&,]/\\&/g 9003s,[\\$`],\\&,g 9004t clear 9005: clear 9006s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 9007t end 9008s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 9009: end 9010_ACEOF 9011# If some macros were called several times there might be several times 9012# the same #defines, which is useless. Nevertheless, we may not want to 9013# sort them, since we want the *last* AC-DEFINE to be honored. 9014uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 9015sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 9016rm -f confdef2sed.sed 9017 9018# This sed command replaces #undef with comments. This is necessary, for 9019# example, in the case of _POSIX_SOURCE, which is predefined and required 9020# on some systems where configure will not decide to define it. 9021cat >>conftest.undefs <<\_ACEOF 9022s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 9023_ACEOF 9024 9025# Break up conftest.defines because some shells have a limit on the size 9026# of here documents, and old seds have small limits too (100 cmds). 9027echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 9028echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 9029echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 9030echo ' :' >>$CONFIG_STATUS 9031rm -f conftest.tail 9032while grep . conftest.defines >/dev/null 9033do 9034 # Write a limited-size here document to $tmp/defines.sed. 9035 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 9036 # Speed up: don't consider the non `#define' lines. 9037 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 9038 # Work around the forget-to-reset-the-flag bug. 9039 echo 't clr' >>$CONFIG_STATUS 9040 echo ': clr' >>$CONFIG_STATUS 9041 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 9042 echo 'CEOF 9043 sed -f $tmp/defines.sed $tmp/in >$tmp/out 9044 rm -f $tmp/in 9045 mv $tmp/out $tmp/in 9046' >>$CONFIG_STATUS 9047 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 9048 rm -f conftest.defines 9049 mv conftest.tail conftest.defines 9050done 9051rm -f conftest.defines 9052echo ' fi # grep' >>$CONFIG_STATUS 9053echo >>$CONFIG_STATUS 9054 9055# Break up conftest.undefs because some shells have a limit on the size 9056# of here documents, and old seds have small limits too (100 cmds). 9057echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 9058rm -f conftest.tail 9059while grep . conftest.undefs >/dev/null 9060do 9061 # Write a limited-size here document to $tmp/undefs.sed. 9062 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 9063 # Speed up: don't consider the non `#undef' 9064 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 9065 # Work around the forget-to-reset-the-flag bug. 9066 echo 't clr' >>$CONFIG_STATUS 9067 echo ': clr' >>$CONFIG_STATUS 9068 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 9069 echo 'CEOF 9070 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 9071 rm -f $tmp/in 9072 mv $tmp/out $tmp/in 9073' >>$CONFIG_STATUS 9074 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 9075 rm -f conftest.undefs 9076 mv conftest.tail conftest.undefs 9077done 9078rm -f conftest.undefs 9079 9080cat >>$CONFIG_STATUS <<\_ACEOF 9081 # Let's still pretend it is `configure' which instantiates (i.e., don't 9082 # use $as_me), people would be surprised to read: 9083 # /* config.h. Generated by config.status. */ 9084 if test x"$ac_file" = x-; then 9085 echo "/* Generated by configure. */" >$tmp/config.h 9086 else 9087 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 9088 fi 9089 cat $tmp/in >>$tmp/config.h 9090 rm -f $tmp/in 9091 if test x"$ac_file" != x-; then 9092 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 9093 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9094echo "$as_me: $ac_file is unchanged" >&6;} 9095 else 9096 ac_dir=`(dirname "$ac_file") 2>/dev/null || 9097$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9098 X"$ac_file" : 'X\(//\)[^/]' \| \ 9099 X"$ac_file" : 'X\(//\)$' \| \ 9100 X"$ac_file" : 'X\(/\)' \| \ 9101 . : '\(.\)' 2>/dev/null || 9102echo X"$ac_file" | 9103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9104 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9105 /^X\(\/\/\)$/{ s//\1/; q; } 9106 /^X\(\/\).*/{ s//\1/; q; } 9107 s/.*/./; q'` 9108 { if $as_mkdir_p; then 9109 mkdir -p "$ac_dir" 9110 else 9111 as_dir="$ac_dir" 9112 as_dirs= 9113 while test ! -d "$as_dir"; do 9114 as_dirs="$as_dir $as_dirs" 9115 as_dir=`(dirname "$as_dir") 2>/dev/null || 9116$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9117 X"$as_dir" : 'X\(//\)[^/]' \| \ 9118 X"$as_dir" : 'X\(//\)$' \| \ 9119 X"$as_dir" : 'X\(/\)' \| \ 9120 . : '\(.\)' 2>/dev/null || 9121echo X"$as_dir" | 9122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9123 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9124 /^X\(\/\/\)$/{ s//\1/; q; } 9125 /^X\(\/\).*/{ s//\1/; q; } 9126 s/.*/./; q'` 9127 done 9128 test ! -n "$as_dirs" || mkdir $as_dirs 9129 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 9130echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 9131 { (exit 1); exit 1; }; }; } 9132 9133 rm -f $ac_file 9134 mv $tmp/config.h $ac_file 9135 fi 9136 else 9137 cat $tmp/config.h 9138 rm -f $tmp/config.h 9139 fi 9140done 9141_ACEOF 9142cat >>$CONFIG_STATUS <<\_ACEOF 9143 9144# 9145# CONFIG_LINKS section. 9146# 9147 9148for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue 9149 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 9150 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 9151 9152 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 9153echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} 9154 9155 if test ! -r $srcdir/$ac_source; then 9156 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 9157echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} 9158 { (exit 1); exit 1; }; } 9159 fi 9160 rm -f $ac_dest 9161 9162 # Make relative symlinks. 9163 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || 9164$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9165 X"$ac_dest" : 'X\(//\)[^/]' \| \ 9166 X"$ac_dest" : 'X\(//\)$' \| \ 9167 X"$ac_dest" : 'X\(/\)' \| \ 9168 . : '\(.\)' 2>/dev/null || 9169echo X"$ac_dest" | 9170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9171 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9172 /^X\(\/\/\)$/{ s//\1/; q; } 9173 /^X\(\/\).*/{ s//\1/; q; } 9174 s/.*/./; q'` 9175 { if $as_mkdir_p; then 9176 mkdir -p "$ac_dest_dir" 9177 else 9178 as_dir="$ac_dest_dir" 9179 as_dirs= 9180 while test ! -d "$as_dir"; do 9181 as_dirs="$as_dir $as_dirs" 9182 as_dir=`(dirname "$as_dir") 2>/dev/null || 9183$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9184 X"$as_dir" : 'X\(//\)[^/]' \| \ 9185 X"$as_dir" : 'X\(//\)$' \| \ 9186 X"$as_dir" : 'X\(/\)' \| \ 9187 . : '\(.\)' 2>/dev/null || 9188echo X"$as_dir" | 9189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9190 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9191 /^X\(\/\/\)$/{ s//\1/; q; } 9192 /^X\(\/\).*/{ s//\1/; q; } 9193 s/.*/./; q'` 9194 done 9195 test ! -n "$as_dirs" || mkdir $as_dirs 9196 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 9197echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} 9198 { (exit 1); exit 1; }; }; } 9199 9200 ac_builddir=. 9201 9202if test "$ac_dest_dir" != .; then 9203 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` 9204 # A "../" for each directory in $ac_dir_suffix. 9205 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 9206else 9207 ac_dir_suffix= ac_top_builddir= 9208fi 9209 9210case $srcdir in 9211 .) # No --srcdir option. We are building in place. 9212 ac_srcdir=. 9213 if test -z "$ac_top_builddir"; then 9214 ac_top_srcdir=. 9215 else 9216 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 9217 fi ;; 9218 [\\/]* | ?:[\\/]* ) # Absolute path. 9219 ac_srcdir=$srcdir$ac_dir_suffix; 9220 ac_top_srcdir=$srcdir ;; 9221 *) # Relative path. 9222 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 9223 ac_top_srcdir=$ac_top_builddir$srcdir ;; 9224esac 9225# Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be 9226# absolute. 9227ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd` 9228ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd` 9229ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd` 9230ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd` 9231 9232 9233 case $srcdir in 9234 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; 9235 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; 9236 esac 9237 9238 # Try a symlink, then a hard link, then a copy. 9239 ln -s $ac_rel_source $ac_dest 2>/dev/null || 9240 ln $srcdir/$ac_source $ac_dest 2>/dev/null || 9241 cp -p $srcdir/$ac_source $ac_dest || 9242 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 9243echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} 9244 { (exit 1); exit 1; }; } 9245done 9246_ACEOF 9247 9248cat >>$CONFIG_STATUS <<\_ACEOF 9249 9250{ (exit 0); exit 0; } 9251_ACEOF 9252chmod +x $CONFIG_STATUS 9253ac_clean_files=$ac_clean_files_save 9254 9255 9256# configure is writing to config.log, and then calls config.status. 9257# config.status does its own redirection, appending to config.log. 9258# Unfortunately, on DOS this fails, as config.log is still kept open 9259# by configure, so config.status won't be able to write to it; its 9260# output is simply discarded. So we exec the FD to /dev/null, 9261# effectively closing config.log, so it can be properly (re)opened and 9262# appended to by config.status. When coming back to configure, we 9263# need to make the FD available again. 9264if test "$no_create" != yes; then 9265 ac_cs_success=: 9266 ac_config_status_args= 9267 test "$silent" = yes && 9268 ac_config_status_args="$ac_config_status_args --quiet" 9269 exec 5>/dev/null 9270 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9271 exec 5>>config.log 9272 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9273 # would make configure fail if this is the last instruction. 9274 $ac_cs_success || { (exit 1); exit 1; } 9275fi 9276 9277