3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
19 cache_file
=.
/config.cache
28 program_transform_name
=s
,x
,x
,
36 bindir
='${exec_prefix}/bin'
37 sbindir
='${exec_prefix}/sbin'
38 libexecdir
='${exec_prefix}/libexec'
39 datadir
='${prefix}/share'
40 sysconfdir
='${prefix}/etc'
41 sharedstatedir
='${prefix}/com'
42 localstatedir
='${prefix}/var'
43 libdir
='${exec_prefix}/lib'
44 includedir
='${prefix}/include'
45 oldincludedir
='/usr/include'
46 infodir
='${prefix}/info'
47 mandir
='${prefix}/man'
49 # Initialize some other variables.
52 # Maximum number of lines to put in a shell here document.
59 # If the previous option needs an argument, assign it.
60 if test -n "$ac_prev"; then
61 eval "$ac_prev=\$ac_option"
67 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71 # Accept the important Cygnus configure options, so we can diagnose typos.
75 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
77 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
78 bindir
="$ac_optarg" ;;
80 -build |
--build |
--buil |
--bui |
--bu)
82 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
85 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
86 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
88 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
89 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
90 cache_file
="$ac_optarg" ;;
92 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
94 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
96 datadir
="$ac_optarg" ;;
98 -disable-* |
--disable-*)
99 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
100 # Reject names that are not valid shell variable names.
101 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
102 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
104 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
105 eval "enable_${ac_feature}=no" ;;
107 -enable-* |
--enable-*)
108 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}='$ac_optarg'" ;;
120 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
121 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
122 |
--exec |
--exe |
--ex)
123 ac_prev
=exec_prefix
;;
124 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
125 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
126 |
--exec=* |
--exe=* |
--ex=*)
127 exec_prefix
="$ac_optarg" ;;
129 -gas |
--gas |
--ga |
--g)
130 # Obsolete; use --with-gas.
133 -help |
--help |
--hel |
--he)
134 # Omit some internal or obsolete options to make the list less imposing.
135 # This message is too long to be a string in the A/UX 3.1 sh.
137 Usage: configure [options] [host]
138 Options: [defaults in brackets after descriptions]
140 --cache-file=FILE cache test results in FILE
141 --help print this message
142 --no-create do not create output files
143 --quiet, --silent do not print \`checking...' messages
144 --version print the version of autoconf that created configure
145 Directory and file names:
146 --prefix=PREFIX install architecture-independent files in PREFIX
148 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
150 --bindir=DIR user executables in DIR [EPREFIX/bin]
151 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
152 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
153 --datadir=DIR read-only architecture-independent data in DIR
155 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
156 --sharedstatedir=DIR modifiable architecture-independent data in DIR
158 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
159 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
160 --includedir=DIR C header files in DIR [PREFIX/include]
161 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
162 --infodir=DIR info documentation in DIR [PREFIX/info]
163 --mandir=DIR man documentation in DIR [PREFIX/man]
164 --srcdir=DIR find the sources in DIR [configure dir or ..]
165 --program-prefix=PREFIX prepend PREFIX to installed program names
166 --program-suffix=SUFFIX append SUFFIX to installed program names
167 --program-transform-name=PROGRAM
168 run sed PROGRAM on installed program names
172 --build=BUILD configure for building on BUILD [BUILD=HOST]
173 --host=HOST configure for HOST [guessed]
174 --target=TARGET configure for TARGET [TARGET=HOST]
175 Features and packages:
176 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
177 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
178 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
179 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
180 --x-includes=DIR X include files are in DIR
181 --x-libraries=DIR X library files are in DIR
183 if test -n "$ac_help"; then
184 echo "--enable and --with options recognized:$ac_help"
188 -host |
--host |
--hos |
--ho)
190 -host=* |
--host=* |
--hos=* |
--ho=*)
193 -includedir |
--includedir |
--includedi |
--included |
--include \
194 |
--includ |
--inclu |
--incl |
--inc)
195 ac_prev
=includedir
;;
196 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
197 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
198 includedir
="$ac_optarg" ;;
200 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
202 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
203 infodir
="$ac_optarg" ;;
205 -libdir |
--libdir |
--libdi |
--libd)
207 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
208 libdir
="$ac_optarg" ;;
210 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
211 |
--libexe |
--libex |
--libe)
212 ac_prev
=libexecdir
;;
213 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
214 |
--libexe=* |
--libex=* |
--libe=*)
215 libexecdir
="$ac_optarg" ;;
217 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
218 |
--localstate |
--localstat |
--localsta |
--localst \
219 |
--locals |
--local |
--loca |
--loc |
--lo)
220 ac_prev
=localstatedir
;;
221 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
222 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
223 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
224 localstatedir
="$ac_optarg" ;;
226 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
228 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
229 mandir
="$ac_optarg" ;;
232 # Obsolete; use --without-fp.
235 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
239 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
240 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
243 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
244 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
245 |
--oldin |
--oldi |
--old |
--ol |
--o)
246 ac_prev
=oldincludedir
;;
247 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
248 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
249 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
250 oldincludedir
="$ac_optarg" ;;
252 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
254 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
255 prefix
="$ac_optarg" ;;
257 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
258 |
--program-pre |
--program-pr |
--program-p)
259 ac_prev
=program_prefix
;;
260 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
261 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
262 program_prefix
="$ac_optarg" ;;
264 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
265 |
--program-suf |
--program-su |
--program-s)
266 ac_prev
=program_suffix
;;
267 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
268 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
269 program_suffix
="$ac_optarg" ;;
271 -program-transform-name |
--program-transform-name \
272 |
--program-transform-nam |
--program-transform-na \
273 |
--program-transform-n |
--program-transform- \
274 |
--program-transform |
--program-transfor \
275 |
--program-transfo |
--program-transf \
276 |
--program-trans |
--program-tran \
277 |
--progr-tra |
--program-tr |
--program-t)
278 ac_prev
=program_transform_name
;;
279 -program-transform-name=* |
--program-transform-name=* \
280 |
--program-transform-nam=* |
--program-transform-na=* \
281 |
--program-transform-n=* |
--program-transform-=* \
282 |
--program-transform=* |
--program-transfor=* \
283 |
--program-transfo=* |
--program-transf=* \
284 |
--program-trans=* |
--program-tran=* \
285 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
286 program_transform_name
="$ac_optarg" ;;
288 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
289 |
-silent |
--silent |
--silen |
--sile |
--sil)
292 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
294 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
296 sbindir
="$ac_optarg" ;;
298 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
299 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
300 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
302 ac_prev
=sharedstatedir
;;
303 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
304 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
305 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
307 sharedstatedir
="$ac_optarg" ;;
309 -site |
--site |
--sit)
311 -site=* |
--site=* |
--sit=*)
314 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
316 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
317 srcdir
="$ac_optarg" ;;
319 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
320 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
321 ac_prev
=sysconfdir
;;
322 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
323 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
324 sysconfdir
="$ac_optarg" ;;
326 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
328 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
329 target
="$ac_optarg" ;;
331 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
334 -version |
--version |
--versio |
--versi |
--vers)
335 echo "configure generated by autoconf version 2.12"
339 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
340 # Reject names that are not valid shell variable names.
341 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
342 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
344 ac_package
=`echo $ac_package| sed 's/-/_/g'`
349 eval "with_${ac_package}='$ac_optarg'" ;;
351 -without-* |
--without-*)
352 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 ac_package
=`echo $ac_package| sed 's/-/_/g'`
358 eval "with_${ac_package}=no" ;;
361 # Obsolete; use --with-x.
364 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
365 |
--x-incl |
--x-inc |
--x-in |
--x-i)
366 ac_prev
=x_includes
;;
367 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
368 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
369 x_includes
="$ac_optarg" ;;
371 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
372 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
373 ac_prev
=x_libraries
;;
374 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
375 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
376 x_libraries
="$ac_optarg" ;;
378 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
383 echo "configure: warning: $ac_option: invalid host type" 1>&2
385 if test "x$nonopt" != xNONE
; then
386 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
394 if test -n "$ac_prev"; then
395 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
398 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
400 # File descriptor usage:
403 # 2 errors and warnings
404 # 3 some systems may open it to /dev/tty
405 # 4 used on the Kubota Titan
406 # 6 checking for... messages and results
407 # 5 compiler messages saved in config.log
408 if test "$silent" = yes; then
416 This file contains any messages produced by compilers while
417 running configure, to aid debugging if configure makes a mistake.
420 # Strip out --no-create and --no-recursion so they do not pile up.
421 # Also quote any args containing shell metacharacters.
426 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
427 |
--no-cr |
--no-c) ;;
428 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
429 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
430 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
431 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
432 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
437 # Only set these to C if already set. These must not be set unconditionally
438 # because not all systems understand e.g. LANG=C (notably SCO).
439 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
440 # Non-C LC_CTYPE values break the ctype check.
441 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
442 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
443 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
444 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
446 # confdefs.h avoids OS command line length limits that DEFS can exceed.
447 rm -rf conftest
* confdefs.h
448 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
451 # A filename unique to this package, relative to the directory that
452 # configure is in, which we can look for to find out if srcdir is correct.
453 ac_unique_file
=libF77
/Version.c
455 # Find the source files, if location was not specified.
456 if test -z "$srcdir"; then
457 ac_srcdir_defaulted
=yes
458 # Try the directory containing this script, then its parent.
460 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
461 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
463 if test ! -r $srcdir/$ac_unique_file; then
467 ac_srcdir_defaulted
=no
469 if test ! -r $srcdir/$ac_unique_file; then
470 if test "$ac_srcdir_defaulted" = yes; then
471 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
473 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
476 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
478 # Prefer explicitly selected file to automatically selected ones.
479 if test -z "$CONFIG_SITE"; then
480 if test "x$prefix" != xNONE
; then
481 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
483 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
486 for ac_site_file
in $CONFIG_SITE; do
487 if test -r "$ac_site_file"; then
488 echo "loading site script $ac_site_file"
493 if test -r "$cache_file"; then
494 echo "loading cache $cache_file"
497 echo "creating cache $cache_file"
502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
503 ac_cpp
='$CPP $CPPFLAGS'
504 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
505 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
506 cross_compiling
=$ac_cv_prog_cc_cross
508 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
509 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
510 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
517 ac_n
= ac_c
='\c' ac_t
=
522 # From configure.in 1.10
524 # For g77 we'll set CC to point at the built gcc, but this will get it into
526 # Extract the first word of "gcc", so it can be a program name with args.
527 set dummy gcc
; ac_word
=$2
528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
529 echo "configure:530: checking for $ac_word" >&5
530 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
531 echo $ac_n "(cached) $ac_c" 1>&6
533 if test -n "$CC"; then
534 ac_cv_prog_CC
="$CC" # Let the user override the test.
536 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
537 for ac_dir
in $PATH; do
538 test -z "$ac_dir" && ac_dir
=.
539 if test -f $ac_dir/$ac_word; then
548 if test -n "$CC"; then
549 echo "$ac_t""$CC" 1>&6
551 echo "$ac_t""no" 1>&6
554 if test -z "$CC"; then
555 # Extract the first word of "cc", so it can be a program name with args.
556 set dummy cc
; ac_word
=$2
557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
558 echo "configure:559: checking for $ac_word" >&5
559 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
560 echo $ac_n "(cached) $ac_c" 1>&6
562 if test -n "$CC"; then
563 ac_cv_prog_CC
="$CC" # Let the user override the test.
565 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
567 for ac_dir
in $PATH; do
568 test -z "$ac_dir" && ac_dir
=.
569 if test -f $ac_dir/$ac_word; then
570 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
579 if test $ac_prog_rejected = yes; then
580 # We found a bogon in the path, so make sure we never use it.
581 set dummy
$ac_cv_prog_CC
583 if test $# -gt 0; then
584 # We chose a different compiler from the bogus one.
585 # However, it has the same basename, so the bogon will be chosen
586 # first if we set CC to just the basename; use the full file name.
588 set dummy
"$ac_dir/$ac_word" "$@"
596 if test -n "$CC"; then
597 echo "$ac_t""$CC" 1>&6
599 echo "$ac_t""no" 1>&6
602 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
605 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
606 echo "configure:607: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
609 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
610 ac_cpp
='$CPP $CPPFLAGS'
611 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
612 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
613 cross_compiling
=$ac_cv_prog_cc_cross
615 cat > conftest.
$ac_ext <<EOF
616 #line 617 "configure"
617 #include "confdefs.h"
620 if { (eval echo configure
:621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
621 ac_cv_prog_cc_works
=yes
622 # If we can't run a trivial program, we are probably using a cross compiler.
623 if (.
/conftest
; exit) 2>/dev
/null
; then
624 ac_cv_prog_cc_cross
=no
626 ac_cv_prog_cc_cross
=yes
629 echo "configure: failed program was:" >&5
630 cat conftest.
$ac_ext >&5
631 ac_cv_prog_cc_works
=no
635 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
636 if test $ac_cv_prog_cc_works = no
; then
637 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
639 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
640 echo "configure:641: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
641 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
642 cross_compiling
=$ac_cv_prog_cc_cross
644 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
645 echo "configure:646: checking whether we are using GNU C" >&5
646 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
647 echo $ac_n "(cached) $ac_c" 1>&6
649 cat > conftest.c
<<EOF
654 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
661 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
663 if test $ac_cv_prog_gcc = yes; then
665 ac_test_CFLAGS
="${CFLAGS+set}"
666 ac_save_CFLAGS
="$CFLAGS"
668 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
669 echo "configure:670: checking whether ${CC-cc} accepts -g" >&5
670 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
673 echo 'void f(){}' > conftest.c
674 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
683 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
684 if test "$ac_test_CFLAGS" = set; then
685 CFLAGS
="$ac_save_CFLAGS"
686 elif test $ac_cv_prog_cc_g = yes; then
693 test "${CFLAGS+set}" = set || CFLAGS
="-g"
696 if test "$CROSS";then
704 if test "$RANLIB"; then :
708 # Extract the first word of "ranlib", so it can be a program name with args.
709 set dummy ranlib
; ac_word
=$2
710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
711 echo "configure:712: checking for $ac_word" >&5
712 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
713 echo $ac_n "(cached) $ac_c" 1>&6
715 if test -n "$RANLIB"; then
716 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
718 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
719 for ac_dir
in $PATH; do
720 test -z "$ac_dir" && ac_dir
=.
721 if test -f $ac_dir/$ac_word; then
722 ac_cv_prog_RANLIB
="ranlib"
727 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
730 RANLIB
="$ac_cv_prog_RANLIB"
731 if test -n "$RANLIB"; then
732 echo "$ac_t""$RANLIB" 1>&6
734 echo "$ac_t""no" 1>&6
742 # Sanity check for the cross-compilation case:
743 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
744 echo "configure:745: checking how to run the C preprocessor" >&5
745 # On Suns, sometimes $CPP names a directory.
746 if test -n "$CPP" && test -d "$CPP"; then
749 if test -z "$CPP"; then
750 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
753 # This must be in double quotes, not single quotes, because CPP may get
754 # substituted into the Makefile and "${CC-cc}" will confuse make.
756 # On the NeXT, cc -E runs the code through the compiler's parser,
757 # not just through cpp.
758 cat > conftest.
$ac_ext <<EOF
759 #line 760 "configure"
760 #include "confdefs.h"
764 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
765 { (eval echo configure
:766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
766 ac_err
=`grep -v '^ *+' conftest.out`
767 if test -z "$ac_err"; then
771 echo "configure: failed program was:" >&5
772 cat conftest.
$ac_ext >&5
774 CPP
="${CC-cc} -E -traditional-cpp"
775 cat > conftest.
$ac_ext <<EOF
776 #line 777 "configure"
777 #include "confdefs.h"
781 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
782 { (eval echo configure
:783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
783 ac_err
=`grep -v '^ *+' conftest.out`
784 if test -z "$ac_err"; then
788 echo "configure: failed program was:" >&5
789 cat conftest.
$ac_ext >&5
796 ac_cv_prog_CPP
="$CPP"
798 CPP
="$ac_cv_prog_CPP"
800 ac_cv_prog_CPP
="$CPP"
802 echo "$ac_t""$CPP" 1>&6
804 ac_safe
=`echo "stdio.h" | sed 'y%./+-%__p_%'`
805 echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
806 echo "configure:807: checking for stdio.h" >&5
807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
810 cat > conftest.
$ac_ext <<EOF
811 #line 812 "configure"
812 #include "confdefs.h"
815 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
816 { (eval echo configure
:817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
817 ac_err
=`grep -v '^ *+' conftest.out`
818 if test -z "$ac_err"; then
820 eval "ac_cv_header_$ac_safe=yes"
823 echo "configure: failed program was:" >&5
824 cat conftest.
$ac_ext >&5
826 eval "ac_cv_header_$ac_safe=no"
830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
831 echo "$ac_t""yes" 1>&6
834 echo "$ac_t""no" 1>&6
835 { echo "configure: error: Can't find stdio.h.
836 You must have a usable C system for the target already installed, at least
837 including headers and, preferably, the library, before you can configure
838 the G77 runtime system. If necessary, install gcc now with \`LANGUAGES=c',
839 then the target library, then build with \`LANGUAGES=f77'." 1>&2; exit 1; }
843 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
844 echo "configure:845: checking for ANSI C header files" >&5
845 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 cat > conftest.
$ac_ext <<EOF
849 #line 850 "configure"
850 #include "confdefs.h"
856 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
857 { (eval echo configure
:858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
858 ac_err
=`grep -v '^ *+' conftest.out`
859 if test -z "$ac_err"; then
861 ac_cv_header_stdc
=yes
864 echo "configure: failed program was:" >&5
865 cat conftest.
$ac_ext >&5
871 if test $ac_cv_header_stdc = yes; then
872 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
873 cat > conftest.
$ac_ext <<EOF
874 #line 875 "configure"
875 #include "confdefs.h"
878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
879 egrep "memchr" >/dev
/null
2>&1; then
889 if test $ac_cv_header_stdc = yes; then
890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
891 cat > conftest.
$ac_ext <<EOF
892 #line 893 "configure"
893 #include "confdefs.h"
896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
897 egrep "free" >/dev
/null
2>&1; then
907 if test $ac_cv_header_stdc = yes; then
908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
909 if test "$cross_compiling" = yes; then
912 cat > conftest.
$ac_ext <<EOF
913 #line 914 "configure"
914 #include "confdefs.h"
916 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
917 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
918 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
919 int main () { int i; for (i = 0; i < 256; i++)
920 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
924 if { (eval echo configure
:925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
928 echo "configure: failed program was:" >&5
929 cat conftest.
$ac_ext >&5
939 echo "$ac_t""$ac_cv_header_stdc" 1>&6
940 if test $ac_cv_header_stdc = yes; then
941 cat >> confdefs.h
<<\EOF
942 #define STDC_HEADERS 1
949 echo $ac_n "checking for posix""... $ac_c" 1>&6
950 echo "configure:951: checking for posix" >&5
951 if eval "test \"`echo '$''{'g77_cv_header_posix'+set}'`\" = set"; then
952 echo $ac_n "(cached) $ac_c" 1>&6
954 cat > conftest.
$ac_ext <<EOF
955 #line 956 "configure"
956 #include "confdefs.h"
957 #include <sys/types.h>
959 #ifdef _POSIX_VERSION
964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
965 egrep "yes" >/dev
/null
2>&1; then
967 g77_cv_header_posix
=yes
970 g77_cv_header_posix
=no
976 echo "$ac_t""$g77_cv_header_posix" 1>&6
978 # We can rely on the GNU library being posix-ish. I guess checking the
979 # header isn't actually like checking the functions, though...
980 echo $ac_n "checking for GNU library""... $ac_c" 1>&6
981 echo "configure:982: checking for GNU library" >&5
982 if eval "test \"`echo '$''{'g77_cv_lib_gnu'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 cat > conftest.
$ac_ext <<EOF
986 #line 987 "configure"
987 #include "confdefs.h"
989 #ifdef __GNU_LIBRARY__
994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
995 egrep "yes" >/dev
/null
2>&1; then
1006 echo "$ac_t""$g77_cv_lib_gnu" 1>&6
1008 # Apparently cygwin needs to be special-cased.
1009 echo $ac_n "checking for cyg\`win'32""... $ac_c" 1>&6
1010 echo "configure:1011: checking for cyg\`win'32" >&5
1011 if eval "test \"`echo '$''{'g77_cv_sys_cygwin32'+set}'`\" = set"; then
1012 echo $ac_n "(cached) $ac_c" 1>&6
1014 cat > conftest.
$ac_ext <<EOF
1015 #line 1016 "configure"
1016 #include "confdefs.h"
1022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1023 egrep "yes" >/dev
/null
2>&1; then
1025 g77_cv_sys_cygwin32
=yes
1028 g77_cv_sys_cygwin32
=no
1034 echo "$ac_t""$g77_cv_sys_cygwin32" 1>&6
1036 ac_safe
=`echo "fcntl.h" | sed 'y%./+-%__p_%'`
1037 echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6
1038 echo "configure:1039: checking for fcntl.h" >&5
1039 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1042 cat > conftest.
$ac_ext <<EOF
1043 #line 1044 "configure"
1044 #include "confdefs.h"
1047 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048 { (eval echo configure
:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049 ac_err
=`grep -v '^ *+' conftest.out`
1050 if test -z "$ac_err"; then
1052 eval "ac_cv_header_$ac_safe=yes"
1055 echo "configure: failed program was:" >&5
1056 cat conftest.
$ac_ext >&5
1058 eval "ac_cv_header_$ac_safe=no"
1062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1063 echo "$ac_t""yes" 1>&6
1064 test $g77_cv_header_posix = yes && cat >> confdefs.h
<<\EOF
1065 #define _POSIX_SOURCE 1
1069 echo "$ac_t""no" 1>&6
1070 cat >> confdefs.h
<<\EOF
1073 cat >> confdefs.h
<<\EOF
1080 echo $ac_n "checking for working const""... $ac_c" 1>&6
1081 echo "configure:1082: checking for working const" >&5
1082 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1083 echo $ac_n "(cached) $ac_c" 1>&6
1085 cat > conftest.
$ac_ext <<EOF
1086 #line 1087 "configure"
1087 #include "confdefs.h"
1091 /* Ultrix mips cc rejects this. */
1092 typedef int charset[2]; const charset x;
1093 /* SunOS 4.1.1 cc rejects this. */
1094 char const *const *ccp;
1096 /* NEC SVR4.0.2 mips cc rejects this. */
1097 struct point {int x, y;};
1098 static struct point const zero = {0,0};
1099 /* AIX XL C 1.02.0.0 rejects this.
1100 It does not let you subtract one const X* pointer from another in an arm
1101 of an if-expression whose if-part is not a constant expression */
1102 const char *g = "string";
1103 ccp = &g + (g ? g-g : 0);
1104 /* HPUX 7.0 cc rejects these. */
1107 ccp = (char const *const *) p;
1108 { /* SCO 3.2v4 cc rejects this. */
1110 char const *s = 0 ? (char *) 0 : (char const *) 0;
1114 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1116 const int *foo = &x[0];
1119 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1120 typedef const int *iptr;
1124 { /* AIX XL C 1.02.0.0 rejects this saying
1125 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1126 struct s { int j; const int *ap[3]; };
1127 struct s *b; b->j = 5;
1129 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1135 if { (eval echo configure
:1136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1139 echo "configure: failed program was:" >&5
1140 cat conftest.
$ac_ext >&5
1147 echo "$ac_t""$ac_cv_c_const" 1>&6
1148 if test $ac_cv_c_const = no
; then
1149 cat >> confdefs.h
<<\EOF
1155 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1156 echo "configure:1157: checking for size_t" >&5
1157 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1160 cat > conftest.
$ac_ext <<EOF
1161 #line 1162 "configure"
1162 #include "confdefs.h"
1163 #include <sys/types.h>
1169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1170 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1172 ac_cv_type_size_t
=yes
1175 ac_cv_type_size_t
=no
1180 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1181 if test $ac_cv_type_size_t = no
; then
1182 cat >> confdefs.h
<<\EOF
1183 #define size_t unsigned
1189 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1190 echo "configure:1191: checking return type of signal handlers" >&5
1191 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 cat > conftest.
$ac_ext <<EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1197 #include <sys/types.h>
1203 extern "C" void (*signal (int, void (*)(int)))(int);
1205 void (*signal ()) ();
1212 if { (eval echo configure
:1213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1214 ac_cv_type_signal
=void
1216 echo "configure: failed program was:" >&5
1217 cat conftest.
$ac_ext >&5
1219 ac_cv_type_signal
=int
1224 echo "$ac_t""$ac_cv_type_signal" 1>&6
1225 cat >> confdefs.h
<<EOF
1226 #define RETSIGTYPE $ac_cv_type_signal
1230 # we'll get atexit by default
1231 if test $ac_cv_header_stdc != yes; then
1232 echo $ac_n "checking for atexit""... $ac_c" 1>&6
1233 echo "configure:1234: checking for atexit" >&5
1234 if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1237 cat > conftest.
$ac_ext <<EOF
1238 #line 1239 "configure"
1239 #include "confdefs.h"
1240 /* System header to define __stub macros and hopefully few prototypes,
1241 which can conflict with char atexit(); below. */
1243 /* Override any gcc2 internal prototype to avoid an error. */
1244 /* We use char because int might match the return type of a gcc2
1245 builtin and then its argument prototype would still apply. */
1250 /* The GNU C library defines this for functions which it implements
1251 to always fail with ENOSYS. Some functions are actually named
1252 something starting with __ and the normal name is an alias. */
1253 #if defined (__stub_atexit) || defined (__stub___atexit)
1261 if { (eval echo configure
:1262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1263 eval "ac_cv_func_atexit=yes"
1265 echo "configure: failed program was:" >&5
1266 cat conftest.
$ac_ext >&5
1268 eval "ac_cv_func_atexit=no"
1273 if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
1274 echo "$ac_t""yes" 1>&6
1275 cat >> confdefs.h
<<\EOF
1276 #define onexit atexit
1280 echo "$ac_t""no" 1>&6
1281 cat >> confdefs.h
<<\EOF
1285 echo $ac_n "checking for onexit""... $ac_c" 1>&6
1286 echo "configure:1287: checking for onexit" >&5
1287 if eval "test \"`echo '$''{'ac_cv_func_onexit'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1290 cat > conftest.
$ac_ext <<EOF
1291 #line 1292 "configure"
1292 #include "confdefs.h"
1293 /* System header to define __stub macros and hopefully few prototypes,
1294 which can conflict with char onexit(); below. */
1296 /* Override any gcc2 internal prototype to avoid an error. */
1297 /* We use char because int might match the return type of a gcc2
1298 builtin and then its argument prototype would still apply. */
1303 /* The GNU C library defines this for functions which it implements
1304 to always fail with ENOSYS. Some functions are actually named
1305 something starting with __ and the normal name is an alias. */
1306 #if defined (__stub_onexit) || defined (__stub___onexit)
1314 if { (eval echo configure
:1315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1316 eval "ac_cv_func_onexit=yes"
1318 echo "configure: failed program was:" >&5
1319 cat conftest.
$ac_ext >&5
1321 eval "ac_cv_func_onexit=no"
1326 if eval "test \"`echo '$ac_cv_func_'onexit`\" = yes"; then
1327 echo "$ac_t""yes" 1>&6
1330 echo "$ac_t""no" 1>&6
1331 echo $ac_n "checking for on_exit""... $ac_c" 1>&6
1332 echo "configure:1333: checking for on_exit" >&5
1333 if eval "test \"`echo '$''{'ac_cv_func_on_exit'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 cat > conftest.
$ac_ext <<EOF
1337 #line 1338 "configure"
1338 #include "confdefs.h"
1339 /* System header to define __stub macros and hopefully few prototypes,
1340 which can conflict with char on_exit(); below. */
1342 /* Override any gcc2 internal prototype to avoid an error. */
1343 /* We use char because int might match the return type of a gcc2
1344 builtin and then its argument prototype would still apply. */
1349 /* The GNU C library defines this for functions which it implements
1350 to always fail with ENOSYS. Some functions are actually named
1351 something starting with __ and the normal name is an alias. */
1352 #if defined (__stub_on_exit) || defined (__stub___on_exit)
1360 if { (eval echo configure
:1361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1362 eval "ac_cv_func_on_exit=yes"
1364 echo "configure: failed program was:" >&5
1365 cat conftest.
$ac_ext >&5
1367 eval "ac_cv_func_on_exit=no"
1372 if eval "test \"`echo '$ac_cv_func_'on_exit`\" = yes"; then
1373 echo "$ac_t""yes" 1>&6
1374 cat >> confdefs.h
<<\EOF
1375 #define onexit on_exit
1379 echo "$ac_t""no" 1>&6
1389 # This should always succeed on unix.
1390 # Apparently positive result on cygwin loses re. NON_UNIX_STDIO
1391 # (as of cygwin b18).
1392 echo $ac_n "checking for fstat""... $ac_c" 1>&6
1393 echo "configure:1394: checking for fstat" >&5
1394 if eval "test \"`echo '$''{'ac_cv_func_fstat'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1397 cat > conftest.
$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1400 /* System header to define __stub macros and hopefully few prototypes,
1401 which can conflict with char fstat(); below. */
1403 /* Override any gcc2 internal prototype to avoid an error. */
1404 /* We use char because int might match the return type of a gcc2
1405 builtin and then its argument prototype would still apply. */
1410 /* The GNU C library defines this for functions which it implements
1411 to always fail with ENOSYS. Some functions are actually named
1412 something starting with __ and the normal name is an alias. */
1413 #if defined (__stub_fstat) || defined (__stub___fstat)
1421 if { (eval echo configure
:1422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1423 eval "ac_cv_func_fstat=yes"
1425 echo "configure: failed program was:" >&5
1426 cat conftest.
$ac_ext >&5
1428 eval "ac_cv_func_fstat=no"
1433 if eval "test \"`echo '$ac_cv_func_'fstat`\" = yes"; then
1434 echo "$ac_t""yes" 1>&6
1437 echo "$ac_t""no" 1>&6
1440 echo $ac_n "checking need for NON_UNIX_STDIO""... $ac_c" 1>&6
1441 echo "configure:1442: checking need for NON_UNIX_STDIO" >&5
1442 if test $g77_cv_sys_cygwin32 = yes ||
test $ac_cv_func_fstat = no
; then
1443 echo "$ac_t""yes" 1>&6
1444 cat >> confdefs.h
<<\EOF
1445 #define NON_UNIX_STDIO 1
1449 echo "$ac_t""no" 1>&6
1452 # This is necessary for e.g. Linux:
1453 echo $ac_n "checking for necessary members of struct FILE""... $ac_c" 1>&6
1454 echo "configure:1455: checking for necessary members of struct FILE" >&5
1455 if eval "test \"`echo '$''{'g77_cv_struct_FILE'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1458 cat > conftest.
$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1463 FILE s; s._ptr; s._base; s._flag;
1466 if { (eval echo configure
:1467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1468 g77_cv_struct_FILE
=yes
1470 echo "configure: failed program was:" >&5
1471 cat conftest.
$ac_ext >&5
1473 g77_cv_struct_FILE
=no
1477 echo "$ac_t""$g77_cv_struct_FILE" 1>&6
1478 if test $g77_cv_struct_FILE = no
; then
1479 cat >> confdefs.h
<<\EOF
1480 #define MISSING_FILE_ELEMS 1
1485 echo $ac_n "checking for drem in -lm""... $ac_c" 1>&6
1486 echo "configure:1487: checking for drem in -lm" >&5
1487 ac_lib_var
=`echo m'_'drem | sed 'y%./+-%__p_%'`
1488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1489 echo $ac_n "(cached) $ac_c" 1>&6
1491 ac_save_LIBS
="$LIBS"
1493 cat > conftest.
$ac_ext <<EOF
1494 #line 1495 "configure"
1495 #include "confdefs.h"
1496 /* Override any gcc2 internal prototype to avoid an error. */
1497 /* We use char because int might match the return type of a gcc2
1498 builtin and then its argument prototype would still apply. */
1505 if { (eval echo configure
:1506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1507 eval "ac_cv_lib_$ac_lib_var=yes"
1509 echo "configure: failed program was:" >&5
1510 cat conftest.
$ac_ext >&5
1512 eval "ac_cv_lib_$ac_lib_var=no"
1515 LIBS
="$ac_save_LIBS"
1518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1519 echo "$ac_t""yes" 1>&6
1520 cat >> confdefs.h
<<\EOF
1525 echo "$ac_t""no" 1>&6
1530 # posix will guarantee the right behaviour for sprintf, else we can't be
1531 # sure; HEADER_STDC wouldn't be the right check in sunos4, for instance.
1532 # However, on my sunos4/gcc setup unistd.h leads us wrongly to believe
1533 # we're posix-conformant, so always do the test.
1534 echo $ac_n "checking for ansi/posix sprintf result""... $ac_c" 1>&6
1535 echo "configure:1536: checking for ansi/posix sprintf result" >&5
1536 if test "$cross_compiling" = yes; then
1537 g77_cv_sys_sprintf_ansi
=no
1539 cat > conftest.
$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1543 /* does sprintf return the number of chars transferred? */
1544 main () {char foo[2]; (sprintf(foo, "1") == 1) ? exit(0) : exit(1);}
1547 if { (eval echo configure
:1548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1549 g77_cv_sys_sprintf_ansi
=yes
1551 echo "configure: failed program was:" >&5
1552 cat conftest.
$ac_ext >&5
1554 g77_cv_sys_sprintf_ansi
=no
1559 if eval "test \"`echo '$''{'g77_cv_sys_sprintf_ansi'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1562 g77_cv_sys_sprintf_ansi
=$g77_cv_sys_sprintf_ansi
1565 if test $ac_cv_c_cross = no
; then
1566 echo "$ac_t""$g77_cv_sys_sprintf_ansi" 1>&6
1568 echo "$ac_t""can't tell -- assuming no" 1>&6
1570 # The cygwin patch takes steps to avoid defining USE_STRLEN here -- I don't
1572 if test $g77_cv_sys_sprintf_ansi != yes; then
1573 cat >> confdefs.h
<<\EOF
1574 #define USE_STRLEN 1
1579 # define NON_ANSI_RW_MODES on unix (can't hurt)
1580 echo $ac_n "checking NON_ANSI_RW_MODES""... $ac_c" 1>&6
1581 echo "configure:1582: checking NON_ANSI_RW_MODES" >&5
1582 cat > conftest.
$ac_ext <<EOF
1583 #line 1584 "configure"
1584 #include "confdefs.h"
1596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1597 egrep "yes" >/dev
/null
2>&1; then
1606 if test $g77_cv_sys_cygwin32 = yes; then
1607 echo "$ac_t""no" 1>&6
1609 if test $is_unix = yes; then
1610 cat >> confdefs.h
<<\EOF
1611 #define NON_ANSI_RW_MODES 1
1614 echo "$ac_t""yes" 1>&6
1616 echo "$ac_t""no" 1>&6
1620 # We have to firkle with the info in hconfig.h to figure out suitable types
1621 # (via com.h). proj.h and com.h are in $srcdir/.., config.h which they need
1622 # is in ../.. and the config files are in $srcdir/../../config.
1623 echo $ac_n "checking f2c integer type""... $ac_c" 1>&6
1624 echo "configure:1625: checking f2c integer type" >&5
1626 ac_cpp
="$late_ac_cpp -I$srcdir/.. -I../.. -I$srcdir/../.. -I$srcdir/../../config"
1627 if eval "test \"`echo '$''{'g77_cv_sys_f2cinteger'+set}'`\" = set"; then
1628 echo $ac_n "(cached) $ac_c" 1>&6
1630 cat > conftest.
$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1634 #define FFECOM_DETERMINE_TYPES 1
1636 #if FFECOM_f2cINTEGER == FFECOM_f2ccodeLONG
1637 F2C_INTEGER=long int
1638 #elif FFECOM_f2cINTEGER == FFECOM_f2ccodeINT
1641 # error "Cannot find a suitable type for F2C_INTEGER"
1645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1646 egrep "F2C_INTEGER=long int" >/dev
/null
2>&1; then
1648 g77_cv_sys_f2cinteger
="long int"
1652 if test "$g77_cv_sys_f2cinteger" = ""; then
1653 cat > conftest.
$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1657 #define FFECOM_DETERMINE_TYPES 1
1659 #if FFECOM_f2cINTEGER == FFECOM_f2ccodeLONG
1660 F2C_INTEGER=long int
1661 #elif FFECOM_f2cINTEGER == FFECOM_f2ccodeINT
1664 # error "Cannot find a suitable type for F2C_INTEGER"
1668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1669 egrep "F2C_INTEGER=int" >/dev
/null
2>&1; then
1671 g77_cv_sys_f2cinteger
=int
1676 if test "$g77_cv_sys_f2cinteger" = ""; then
1677 echo "$ac_t""""" 1>&6
1678 { echo "configure: error: Can't determine type for f2c integer; config.log may help." 1>&2; exit 1; }
1683 echo "$ac_t""$g77_cv_sys_f2cinteger" 1>&6
1684 F2C_INTEGER
=$g77_cv_sys_f2cinteger
1688 echo $ac_n "checking f2c long int type""... $ac_c" 1>&6
1689 echo "configure:1690: checking f2c long int type" >&5
1691 ac_cpp
="$late_ac_cpp -I$srcdir/.. -I../.. -I$srcdir/../.. -I$srcdir/../../config"
1692 if eval "test \"`echo '$''{'g77_cv_sys_f2clongint'+set}'`\" = set"; then
1693 echo $ac_n "(cached) $ac_c" 1>&6
1695 cat > conftest.
$ac_ext <<EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1699 #define FFECOM_DETERMINE_TYPES 1
1701 #if FFECOM_f2cLONGINT == FFECOM_f2ccodeLONG
1702 F2C_LONGINT=long int
1703 #elif FFECOM_f2cLONGINT == FFECOM_f2ccodeLONGLONG
1704 F2C_LONGINT=long long int
1706 # error "Cannot find a suitable type for F2C_LONGINT"
1710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1711 egrep "F2C_LONGINT=long int" >/dev
/null
2>&1; then
1713 g77_cv_sys_f2clongint
="long int"
1717 if test "$g77_cv_sys_f2clongint" = ""; then
1718 cat > conftest.
$ac_ext <<EOF
1719 #line 1720 "configure"
1720 #include "confdefs.h"
1722 #define FFECOM_DETERMINE_TYPES 1
1724 #if FFECOM_f2cLONGINT == FFECOM_f2ccodeLONG
1725 F2C_LONGINT=long int
1726 #elif FFECOM_f2cLONGINT == FFECOM_f2ccodeLONGLONG
1727 F2C_LONGINT=long long int
1729 # error "Cannot find a suitable type for F2C_LONGINT"
1733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1734 egrep "F2C_LONGINT=long long int" >/dev
/null
2>&1; then
1736 g77_cv_sys_f2clongint
="long long int"
1741 if test "$g77_cv_sys_f2clongint" = ""; then
1742 echo "$ac_t""""" 1>&6
1743 { echo "configure: error: Can't determine type for f2c long int; config.log may help." 1>&2; exit 1; }
1748 echo "$ac_t""$g77_cv_sys_f2clongint" 1>&6
1749 F2C_LONGINT
=$g77_cv_sys_f2clongint
1757 # This EOF_CHAR is a misfeature on unix.
1758 cat >> confdefs.h
<<\EOF
1759 #define NO_EOF_CHAR_CHECK 1
1763 cat >> confdefs.h
<<\EOF
1764 #define Skip_f2c_Undefs 1
1771 cat >> confdefs.h
<<\EOF
1772 #define Pad_UDread 1
1779 cat >> confdefs.h
<<\EOF
1780 #define WANT_LEAD_0 1
1784 # avoid confusion in case the `makefile's from the f2c distribution have
1786 test -f libF77
/makefile
&& mv libF77
/makefile libF77
/makefile.ori
1787 test -f libI77
/makefile
&& mv libI77
/makefile libI77
/makefile.ori
1788 test -f libU77
/makefile
&& mv libU77
/makefile libU77
/makefile.ori
1791 cat > confcache
<<\EOF
1792 # This file is a shell script that caches the results of configure
1793 # tests run on this system so they can be shared between configure
1794 # scripts and configure runs. It is not useful on other systems.
1795 # If it contains results you don't want to keep, you may remove or edit it.
1797 # By default, configure uses ./config.cache as the cache file,
1798 # creating it if it does not exist already. You can give configure
1799 # the --cache-file=FILE option to use a different cache file; that is
1800 # what configure does when it calls configure scripts in
1801 # subdirectories, so they share the cache.
1802 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1803 # config.status only pays attention to the cache file if you give it the
1804 # --recheck option to rerun configure.
1807 # The following way of writing the cache mishandles newlines in values,
1808 # but we know of no workaround that is simple, portable, and efficient.
1809 # So, don't put newlines in cache variables' values.
1810 # Ultrix sh set writes to stderr and can't be redirected directly,
1811 # and sets the high bit in the cache file unless we assign to the vars.
1813 case `(ac_space=' '; set) 2>&1` in
1815 # `set' does not quote correctly, so add quotes (double-quote substitution
1816 # turns \\\\ into \\, and sed turns \\ into \).
1818 -e "s/'/'\\\\''/g" \
1819 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1822 # `set' quotes correctly as required by POSIX, so do not add quotes.
1823 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1826 if cmp -s $cache_file confcache
; then
1829 if test -w $cache_file; then
1830 echo "updating cache $cache_file"
1831 cat confcache
> $cache_file
1833 echo "not updating unwritable cache $cache_file"
1838 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1840 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1841 # Let make expand exec_prefix.
1842 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1844 # Any assignment to VPATH causes Sun make to only execute
1845 # the first set of double-colon rules, so remove it if not needed.
1846 # If there is a colon in the path, we need to keep it.
1847 if test "x$srcdir" = x.
; then
1848 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1851 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1853 # Transform confdefs.h into DEFS.
1854 # Protect against shell expansion while executing Makefile rules.
1855 # Protect against Makefile macro expansion.
1856 cat > conftest.defs
<<\EOF
1857 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1858 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1863 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
1867 # Without the "./", some shells look in PATH for config.status.
1868 : ${CONFIG_STATUS=./config.status}
1870 echo creating $CONFIG_STATUS
1871 rm -f $CONFIG_STATUS
1872 cat > $CONFIG_STATUS <<EOF
1874 # Generated automatically by configure.
1875 # Run this file to recreate the current configuration.
1876 # This directory was configured as follows,
1877 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
1879 # $0 $ac_configure_args
1881 # Compiler output produced by configure, useful for debugging
1882 # configure, is in ./config.log if it exists.
1884 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1887 case "\$ac_option" in
1888 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1889 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1890 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1891 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1892 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1894 -help | --help | --hel | --he | --h)
1895 echo "\$ac_cs_usage"; exit 0 ;;
1896 *) echo "\$ac_cs_usage"; exit 1 ;;
1900 ac_given_srcdir=$srcdir
1902 trap 'rm -fr `echo "Makefile ../../include/f2c.h:f2c.h.in libI77/Makefile libF77/Makefile libU77/Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1904 cat >> $CONFIG_STATUS <<EOF
1906 # Protect against being on the right side of a sed subst in config.status.
1907 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1908 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1911 s%@CFLAGS@%$CFLAGS%g
1912 s%@CPPFLAGS@%$CPPFLAGS%g
1913 s%@CXXFLAGS@%$CXXFLAGS%g
1915 s%@LDFLAGS@%$LDFLAGS%g
1917 s%@exec_prefix@%$exec_prefix%g
1918 s%@prefix@%$prefix%g
1919 s%@program_transform_name@%$program_transform_name%g
1920 s%@bindir@%$bindir%g
1921 s%@sbindir@%$sbindir%g
1922 s%@libexecdir@%$libexecdir%g
1923 s%@datadir@%$datadir%g
1924 s%@sysconfdir@%$sysconfdir%g
1925 s%@sharedstatedir@%$sharedstatedir%g
1926 s%@localstatedir@%$localstatedir%g
1927 s%@libdir@%$libdir%g
1928 s%@includedir@%$includedir%g
1929 s%@oldincludedir@%$oldincludedir%g
1930 s%@infodir@%$infodir%g
1931 s%@mandir@%$mandir%g
1934 s%@RANLIB@%$RANLIB%g
1935 s%@RANLIB_TEST@%$RANLIB_TEST%g
1937 s%@F2C_INTEGER@%$F2C_INTEGER%g
1938 s%@F2C_LONGINT@%$F2C_LONGINT%g
1944 cat >> $CONFIG_STATUS <<\EOF
1946 # Split the substitutions into bite-sized pieces for seds with
1947 # small command number limits, like on Digital OSF/1 and HP-UX.
1948 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1949 ac_file=1 # Number of current file.
1950 ac_beg=1 # First line for current file.
1951 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1954 while $ac_more_lines; do
1955 if test $ac_beg -gt 1; then
1956 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1958 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1960 if test ! -s conftest.s$ac_file; then
1962 rm -f conftest.s$ac_file
1964 if test -z "$ac_sed_cmds"; then
1965 ac_sed_cmds="sed -f conftest.s$ac_file"
1967 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1969 ac_file=`expr $ac_file + 1`
1971 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1974 if test -z "$ac_sed_cmds"; then
1979 cat >> $CONFIG_STATUS <<EOF
1981 CONFIG_FILES=\${CONFIG_FILES-"Makefile ../../include/f2c.h:f2c.h.in libI77/Makefile libF77/Makefile libU77/Makefile"}
1983 cat >> $CONFIG_STATUS <<\EOF
1984 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1985 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1987 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
1988 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
1989 *) ac_file_in="${ac_file}.in" ;;
1992 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1994 # Remove last slash and all that follows it. Not all systems have dirname.
1995 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1996 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1997 # The file is in a subdirectory.
1998 test ! -d "$ac_dir" && mkdir "$ac_dir"
1999 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
2000 # A "../" for each directory in $ac_dir_suffix.
2001 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
2003 ac_dir_suffix= ac_dots=
2006 case "$ac_given_srcdir" in
2008 if test -z "$ac_dots"; then top_srcdir=.
2009 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
2010 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2012 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2013 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2017 echo creating "$ac_file"
2019 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2021 *Makefile*) ac_comsub="1i\\
2022 # $configure_input" ;;
2026 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2028 s%@configure_input@%$configure_input%g
2029 s%@srcdir@%$srcdir%g
2030 s%@top_srcdir@%$top_srcdir%g
2031 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2036 cat >> $CONFIG_STATUS <<EOF
2039 cat >> $CONFIG_STATUS <<\EOF
2043 chmod +x $CONFIG_STATUS
2044 rm -fr confdefs* $ac_clean_files
2045 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1