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 :
706 if test -z "$RANLIB_TEST"; then
711 # Extract the first word of "ranlib", so it can be a program name with args.
712 set dummy ranlib
; ac_word
=$2
713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
714 echo "configure:715: checking for $ac_word" >&5
715 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
716 echo $ac_n "(cached) $ac_c" 1>&6
718 if test -n "$RANLIB"; then
719 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
721 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
722 for ac_dir
in $PATH; do
723 test -z "$ac_dir" && ac_dir
=.
724 if test -f $ac_dir/$ac_word; then
725 ac_cv_prog_RANLIB
="ranlib"
730 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
733 RANLIB
="$ac_cv_prog_RANLIB"
734 if test -n "$RANLIB"; then
735 echo "$ac_t""$RANLIB" 1>&6
737 echo "$ac_t""no" 1>&6
745 # Sanity check for the cross-compilation case:
746 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
747 echo "configure:748: checking how to run the C preprocessor" >&5
748 # On Suns, sometimes $CPP names a directory.
749 if test -n "$CPP" && test -d "$CPP"; then
752 if test -z "$CPP"; then
753 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
754 echo $ac_n "(cached) $ac_c" 1>&6
756 # This must be in double quotes, not single quotes, because CPP may get
757 # substituted into the Makefile and "${CC-cc}" will confuse make.
759 # On the NeXT, cc -E runs the code through the compiler's parser,
760 # not just through cpp.
761 cat > conftest.
$ac_ext <<EOF
762 #line 763 "configure"
763 #include "confdefs.h"
767 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
768 { (eval echo configure
:769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
769 ac_err
=`grep -v '^ *+' conftest.out`
770 if test -z "$ac_err"; then
774 echo "configure: failed program was:" >&5
775 cat conftest.
$ac_ext >&5
777 CPP
="${CC-cc} -E -traditional-cpp"
778 cat > conftest.
$ac_ext <<EOF
779 #line 780 "configure"
780 #include "confdefs.h"
784 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
785 { (eval echo configure
:786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
786 ac_err
=`grep -v '^ *+' conftest.out`
787 if test -z "$ac_err"; then
791 echo "configure: failed program was:" >&5
792 cat conftest.
$ac_ext >&5
799 ac_cv_prog_CPP
="$CPP"
801 CPP
="$ac_cv_prog_CPP"
803 ac_cv_prog_CPP
="$CPP"
805 echo "$ac_t""$CPP" 1>&6
807 ac_safe
=`echo "stdio.h" | sed 'y%./+-%__p_%'`
808 echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
809 echo "configure:810: checking for stdio.h" >&5
810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 cat > conftest.
$ac_ext <<EOF
814 #line 815 "configure"
815 #include "confdefs.h"
818 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
819 { (eval echo configure
:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
820 ac_err
=`grep -v '^ *+' conftest.out`
821 if test -z "$ac_err"; then
823 eval "ac_cv_header_$ac_safe=yes"
826 echo "configure: failed program was:" >&5
827 cat conftest.
$ac_ext >&5
829 eval "ac_cv_header_$ac_safe=no"
833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
834 echo "$ac_t""yes" 1>&6
837 echo "$ac_t""no" 1>&6
838 { echo "configure: error: Can't find stdio.h.
839 You must have a usable C system for the target already installed, at least
840 including headers and, preferably, the library, before you can configure
841 the G77 runtime system. If necessary, install gcc now with \`LANGUAGES=c',
842 then the target library, then build with \`LANGUAGES=f77'." 1>&2; exit 1; }
846 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
847 echo "configure:848: checking for ANSI C header files" >&5
848 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
851 cat > conftest.
$ac_ext <<EOF
852 #line 853 "configure"
853 #include "confdefs.h"
859 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
860 { (eval echo configure
:861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
861 ac_err
=`grep -v '^ *+' conftest.out`
862 if test -z "$ac_err"; then
864 ac_cv_header_stdc
=yes
867 echo "configure: failed program was:" >&5
868 cat conftest.
$ac_ext >&5
874 if test $ac_cv_header_stdc = yes; then
875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
876 cat > conftest.
$ac_ext <<EOF
877 #line 878 "configure"
878 #include "confdefs.h"
881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
882 egrep "memchr" >/dev
/null
2>&1; then
892 if test $ac_cv_header_stdc = yes; then
893 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
894 cat > conftest.
$ac_ext <<EOF
895 #line 896 "configure"
896 #include "confdefs.h"
899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
900 egrep "free" >/dev
/null
2>&1; then
910 if test $ac_cv_header_stdc = yes; then
911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
912 if test "$cross_compiling" = yes; then
915 cat > conftest.
$ac_ext <<EOF
916 #line 917 "configure"
917 #include "confdefs.h"
919 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
920 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
921 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
922 int main () { int i; for (i = 0; i < 256; i++)
923 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
927 if { (eval echo configure
:928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
931 echo "configure: failed program was:" >&5
932 cat conftest.
$ac_ext >&5
942 echo "$ac_t""$ac_cv_header_stdc" 1>&6
943 if test $ac_cv_header_stdc = yes; then
944 cat >> confdefs.h
<<\EOF
945 #define STDC_HEADERS 1
952 echo $ac_n "checking for posix""... $ac_c" 1>&6
953 echo "configure:954: checking for posix" >&5
954 if eval "test \"`echo '$''{'g77_cv_header_posix'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
957 cat > conftest.
$ac_ext <<EOF
958 #line 959 "configure"
959 #include "confdefs.h"
960 #include <sys/types.h>
962 #ifdef _POSIX_VERSION
967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
968 egrep "yes" >/dev
/null
2>&1; then
970 g77_cv_header_posix
=yes
973 g77_cv_header_posix
=no
979 echo "$ac_t""$g77_cv_header_posix" 1>&6
981 # We can rely on the GNU library being posix-ish. I guess checking the
982 # header isn't actually like checking the functions, though...
983 echo $ac_n "checking for GNU library""... $ac_c" 1>&6
984 echo "configure:985: checking for GNU library" >&5
985 if eval "test \"`echo '$''{'g77_cv_lib_gnu'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
988 cat > conftest.
$ac_ext <<EOF
989 #line 990 "configure"
990 #include "confdefs.h"
992 #ifdef __GNU_LIBRARY__
997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
998 egrep "yes" >/dev
/null
2>&1; then
1009 echo "$ac_t""$g77_cv_lib_gnu" 1>&6
1011 # Apparently cygwin needs to be special-cased.
1012 echo $ac_n "checking for cyg\`win'32""... $ac_c" 1>&6
1013 echo "configure:1014: checking for cyg\`win'32" >&5
1014 if eval "test \"`echo '$''{'g77_cv_sys_cygwin32'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1017 cat > conftest.
$ac_ext <<EOF
1018 #line 1019 "configure"
1019 #include "confdefs.h"
1025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1026 egrep "yes" >/dev
/null
2>&1; then
1028 g77_cv_sys_cygwin32
=yes
1031 g77_cv_sys_cygwin32
=no
1037 echo "$ac_t""$g77_cv_sys_cygwin32" 1>&6
1039 # ditto for mingw32.
1040 echo $ac_n "checking for mingw32""... $ac_c" 1>&6
1041 echo "configure:1042: checking for mingw32" >&5
1042 if eval "test \"`echo '$''{'g77_cv_sys_mingw32'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1045 cat > conftest.
$ac_ext <<EOF
1046 #line 1047 "configure"
1047 #include "confdefs.h"
1053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1054 egrep "yes" >/dev
/null
2>&1; then
1056 g77_cv_sys_mingw32
=yes
1059 g77_cv_sys_mingw32
=no
1065 echo "$ac_t""$g77_cv_sys_mingw32" 1>&6
1068 ac_safe
=`echo "fcntl.h" | sed 'y%./+-%__p_%'`
1069 echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6
1070 echo "configure:1071: checking for fcntl.h" >&5
1071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 cat > conftest.
$ac_ext <<EOF
1075 #line 1076 "configure"
1076 #include "confdefs.h"
1079 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1080 { (eval echo configure
:1081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1081 ac_err
=`grep -v '^ *+' conftest.out`
1082 if test -z "$ac_err"; then
1084 eval "ac_cv_header_$ac_safe=yes"
1087 echo "configure: failed program was:" >&5
1088 cat conftest.
$ac_ext >&5
1090 eval "ac_cv_header_$ac_safe=no"
1094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1095 echo "$ac_t""yes" 1>&6
1096 test $g77_cv_header_posix = yes && cat >> confdefs.h
<<\EOF
1097 #define _POSIX_SOURCE 1
1101 echo "$ac_t""no" 1>&6
1102 cat >> confdefs.h
<<\EOF
1105 cat >> confdefs.h
<<\EOF
1112 echo $ac_n "checking for working const""... $ac_c" 1>&6
1113 echo "configure:1114: checking for working const" >&5
1114 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1117 cat > conftest.
$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1123 /* Ultrix mips cc rejects this. */
1124 typedef int charset[2]; const charset x;
1125 /* SunOS 4.1.1 cc rejects this. */
1126 char const *const *ccp;
1128 /* NEC SVR4.0.2 mips cc rejects this. */
1129 struct point {int x, y;};
1130 static struct point const zero = {0,0};
1131 /* AIX XL C 1.02.0.0 rejects this.
1132 It does not let you subtract one const X* pointer from another in an arm
1133 of an if-expression whose if-part is not a constant expression */
1134 const char *g = "string";
1135 ccp = &g + (g ? g-g : 0);
1136 /* HPUX 7.0 cc rejects these. */
1139 ccp = (char const *const *) p;
1140 { /* SCO 3.2v4 cc rejects this. */
1142 char const *s = 0 ? (char *) 0 : (char const *) 0;
1146 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1148 const int *foo = &x[0];
1151 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1152 typedef const int *iptr;
1156 { /* AIX XL C 1.02.0.0 rejects this saying
1157 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1158 struct s { int j; const int *ap[3]; };
1159 struct s *b; b->j = 5;
1161 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1167 if { (eval echo configure
:1168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1171 echo "configure: failed program was:" >&5
1172 cat conftest.
$ac_ext >&5
1179 echo "$ac_t""$ac_cv_c_const" 1>&6
1180 if test $ac_cv_c_const = no
; then
1181 cat >> confdefs.h
<<\EOF
1187 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1188 echo "configure:1189: checking for size_t" >&5
1189 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1192 cat > conftest.
$ac_ext <<EOF
1193 #line 1194 "configure"
1194 #include "confdefs.h"
1195 #include <sys/types.h>
1201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1202 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1204 ac_cv_type_size_t
=yes
1207 ac_cv_type_size_t
=no
1212 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1213 if test $ac_cv_type_size_t = no
; then
1214 cat >> confdefs.h
<<\EOF
1215 #define size_t unsigned
1221 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1222 echo "configure:1223: checking return type of signal handlers" >&5
1223 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 cat > conftest.
$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1229 #include <sys/types.h>
1235 extern "C" void (*signal (int, void (*)(int)))(int);
1237 void (*signal ()) ();
1244 if { (eval echo configure
:1245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1246 ac_cv_type_signal
=void
1248 echo "configure: failed program was:" >&5
1249 cat conftest.
$ac_ext >&5
1251 ac_cv_type_signal
=int
1256 echo "$ac_t""$ac_cv_type_signal" 1>&6
1257 cat >> confdefs.h
<<EOF
1258 #define RETSIGTYPE $ac_cv_type_signal
1262 # we'll get atexit by default
1263 if test $ac_cv_header_stdc != yes; then
1264 echo $ac_n "checking for atexit""... $ac_c" 1>&6
1265 echo "configure:1266: checking for atexit" >&5
1266 if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 cat > conftest.
$ac_ext <<EOF
1270 #line 1271 "configure"
1271 #include "confdefs.h"
1272 /* System header to define __stub macros and hopefully few prototypes,
1273 which can conflict with char atexit(); below. */
1275 /* Override any gcc2 internal prototype to avoid an error. */
1276 /* We use char because int might match the return type of a gcc2
1277 builtin and then its argument prototype would still apply. */
1282 /* The GNU C library defines this for functions which it implements
1283 to always fail with ENOSYS. Some functions are actually named
1284 something starting with __ and the normal name is an alias. */
1285 #if defined (__stub_atexit) || defined (__stub___atexit)
1293 if { (eval echo configure
:1294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1295 eval "ac_cv_func_atexit=yes"
1297 echo "configure: failed program was:" >&5
1298 cat conftest.
$ac_ext >&5
1300 eval "ac_cv_func_atexit=no"
1305 if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
1306 echo "$ac_t""yes" 1>&6
1307 cat >> confdefs.h
<<\EOF
1308 #define onexit atexit
1312 echo "$ac_t""no" 1>&6
1313 cat >> confdefs.h
<<\EOF
1317 echo $ac_n "checking for onexit""... $ac_c" 1>&6
1318 echo "configure:1319: checking for onexit" >&5
1319 if eval "test \"`echo '$''{'ac_cv_func_onexit'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 cat > conftest.
$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1325 /* System header to define __stub macros and hopefully few prototypes,
1326 which can conflict with char onexit(); below. */
1328 /* Override any gcc2 internal prototype to avoid an error. */
1329 /* We use char because int might match the return type of a gcc2
1330 builtin and then its argument prototype would still apply. */
1335 /* The GNU C library defines this for functions which it implements
1336 to always fail with ENOSYS. Some functions are actually named
1337 something starting with __ and the normal name is an alias. */
1338 #if defined (__stub_onexit) || defined (__stub___onexit)
1346 if { (eval echo configure
:1347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1348 eval "ac_cv_func_onexit=yes"
1350 echo "configure: failed program was:" >&5
1351 cat conftest.
$ac_ext >&5
1353 eval "ac_cv_func_onexit=no"
1358 if eval "test \"`echo '$ac_cv_func_'onexit`\" = yes"; then
1359 echo "$ac_t""yes" 1>&6
1362 echo "$ac_t""no" 1>&6
1363 echo $ac_n "checking for on_exit""... $ac_c" 1>&6
1364 echo "configure:1365: checking for on_exit" >&5
1365 if eval "test \"`echo '$''{'ac_cv_func_on_exit'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1368 cat > conftest.
$ac_ext <<EOF
1369 #line 1370 "configure"
1370 #include "confdefs.h"
1371 /* System header to define __stub macros and hopefully few prototypes,
1372 which can conflict with char on_exit(); below. */
1374 /* Override any gcc2 internal prototype to avoid an error. */
1375 /* We use char because int might match the return type of a gcc2
1376 builtin and then its argument prototype would still apply. */
1381 /* The GNU C library defines this for functions which it implements
1382 to always fail with ENOSYS. Some functions are actually named
1383 something starting with __ and the normal name is an alias. */
1384 #if defined (__stub_on_exit) || defined (__stub___on_exit)
1392 if { (eval echo configure
:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1394 eval "ac_cv_func_on_exit=yes"
1396 echo "configure: failed program was:" >&5
1397 cat conftest.
$ac_ext >&5
1399 eval "ac_cv_func_on_exit=no"
1404 if eval "test \"`echo '$ac_cv_func_'on_exit`\" = yes"; then
1405 echo "$ac_t""yes" 1>&6
1406 cat >> confdefs.h
<<\EOF
1407 #define onexit on_exit
1411 echo "$ac_t""no" 1>&6
1421 # This should always succeed on unix.
1422 # Apparently positive result on cygwin loses re. NON_UNIX_STDIO
1423 # (as of cygwin b18). Likewise on mingw.
1424 echo $ac_n "checking for fstat""... $ac_c" 1>&6
1425 echo "configure:1426: checking for fstat" >&5
1426 if eval "test \"`echo '$''{'ac_cv_func_fstat'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 cat > conftest.
$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1432 /* System header to define __stub macros and hopefully few prototypes,
1433 which can conflict with char fstat(); below. */
1435 /* Override any gcc2 internal prototype to avoid an error. */
1436 /* We use char because int might match the return type of a gcc2
1437 builtin and then its argument prototype would still apply. */
1442 /* The GNU C library defines this for functions which it implements
1443 to always fail with ENOSYS. Some functions are actually named
1444 something starting with __ and the normal name is an alias. */
1445 #if defined (__stub_fstat) || defined (__stub___fstat)
1453 if { (eval echo configure
:1454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1455 eval "ac_cv_func_fstat=yes"
1457 echo "configure: failed program was:" >&5
1458 cat conftest.
$ac_ext >&5
1460 eval "ac_cv_func_fstat=no"
1465 if eval "test \"`echo '$ac_cv_func_'fstat`\" = yes"; then
1466 echo "$ac_t""yes" 1>&6
1469 echo "$ac_t""no" 1>&6
1472 echo $ac_n "checking need for NON_UNIX_STDIO""... $ac_c" 1>&6
1473 echo "configure:1474: checking need for NON_UNIX_STDIO" >&5
1474 if test $g77_cv_sys_cygwin32 = yes \
1475 ||
test $g77_cv_sys_mingw32 = yes \
1476 ||
test $ac_cv_func_fstat = no
; then
1477 echo "$ac_t""yes" 1>&6
1478 cat >> confdefs.h
<<\EOF
1479 #define NON_UNIX_STDIO 1
1483 echo "$ac_t""no" 1>&6
1486 # This is necessary for e.g. Linux:
1487 echo $ac_n "checking for necessary members of struct FILE""... $ac_c" 1>&6
1488 echo "configure:1489: checking for necessary members of struct FILE" >&5
1489 if eval "test \"`echo '$''{'g77_cv_struct_FILE'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1492 cat > conftest.
$ac_ext <<EOF
1493 #line 1494 "configure"
1494 #include "confdefs.h"
1497 FILE s; s._ptr; s._base; s._flag;
1500 if { (eval echo configure
:1501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1502 g77_cv_struct_FILE
=yes
1504 echo "configure: failed program was:" >&5
1505 cat conftest.
$ac_ext >&5
1507 g77_cv_struct_FILE
=no
1511 echo "$ac_t""$g77_cv_struct_FILE" 1>&6
1512 if test $g77_cv_struct_FILE = no
; then
1513 cat >> confdefs.h
<<\EOF
1514 #define MISSING_FILE_ELEMS 1
1519 echo $ac_n "checking for drem in -lm""... $ac_c" 1>&6
1520 echo "configure:1521: checking for drem in -lm" >&5
1521 ac_lib_var
=`echo m'_'drem | sed 'y%./+-%__p_%'`
1522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1525 ac_save_LIBS
="$LIBS"
1527 cat > conftest.
$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1530 /* Override any gcc2 internal prototype to avoid an error. */
1531 /* We use char because int might match the return type of a gcc2
1532 builtin and then its argument prototype would still apply. */
1539 if { (eval echo configure
:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1541 eval "ac_cv_lib_$ac_lib_var=yes"
1543 echo "configure: failed program was:" >&5
1544 cat conftest.
$ac_ext >&5
1546 eval "ac_cv_lib_$ac_lib_var=no"
1549 LIBS
="$ac_save_LIBS"
1552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1553 echo "$ac_t""yes" 1>&6
1554 cat >> confdefs.h
<<\EOF
1559 echo "$ac_t""no" 1>&6
1564 # posix will guarantee the right behaviour for sprintf, else we can't be
1565 # sure; HEADER_STDC wouldn't be the right check in sunos4, for instance.
1566 # However, on my sunos4/gcc setup unistd.h leads us wrongly to believe
1567 # we're posix-conformant, so always do the test.
1568 echo $ac_n "checking for ansi/posix sprintf result""... $ac_c" 1>&6
1569 echo "configure:1570: checking for ansi/posix sprintf result" >&5
1570 if test "$cross_compiling" = yes; then
1571 g77_cv_sys_sprintf_ansi
=no
1573 cat > conftest.
$ac_ext <<EOF
1574 #line 1575 "configure"
1575 #include "confdefs.h"
1577 /* does sprintf return the number of chars transferred? */
1578 main () {char foo[2]; (sprintf(foo, "1") == 1) ? exit(0) : exit(1);}
1581 if { (eval echo configure
:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1583 g77_cv_sys_sprintf_ansi
=yes
1585 echo "configure: failed program was:" >&5
1586 cat conftest.
$ac_ext >&5
1588 g77_cv_sys_sprintf_ansi
=no
1593 if eval "test \"`echo '$''{'g77_cv_sys_sprintf_ansi'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1596 g77_cv_sys_sprintf_ansi
=$g77_cv_sys_sprintf_ansi
1599 if test $ac_cv_c_cross = no
; then
1600 echo "$ac_t""$g77_cv_sys_sprintf_ansi" 1>&6
1602 echo "$ac_t""can't tell -- assuming no" 1>&6
1604 # The cygwin patch takes steps to avoid defining USE_STRLEN here -- I don't
1606 if test $g77_cv_sys_sprintf_ansi != yes; then
1607 cat >> confdefs.h
<<\EOF
1608 #define USE_STRLEN 1
1613 # define NON_ANSI_RW_MODES on unix (can't hurt)
1614 echo $ac_n "checking NON_ANSI_RW_MODES""... $ac_c" 1>&6
1615 echo "configure:1616: checking NON_ANSI_RW_MODES" >&5
1616 cat > conftest.
$ac_ext <<EOF
1617 #line 1618 "configure"
1618 #include "confdefs.h"
1630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1631 egrep "yes" >/dev
/null
2>&1; then
1640 if test $g77_cv_sys_cygwin32 = yes ||
test $g77_cv_sys_mingw32 = yes; then
1641 echo "$ac_t""no" 1>&6
1643 if test $is_unix = yes; then
1644 cat >> confdefs.h
<<\EOF
1645 #define NON_ANSI_RW_MODES 1
1648 echo "$ac_t""yes" 1>&6
1650 echo "$ac_t""no" 1>&6
1654 # We have to firkle with the info in hconfig.h to figure out suitable types
1655 # (via com.h). proj.h and com.h are in $srcdir/.., config.h which they need
1656 # is in ../.. and the config files are in $srcdir/../../config.
1657 echo $ac_n "checking f2c integer type""... $ac_c" 1>&6
1658 echo "configure:1659: checking f2c integer type" >&5
1660 ac_cpp
="$late_ac_cpp -I$srcdir/../gcc/f -I../../gcc -I$srcdir/../gcc -I$srcdir/../gcc/config"
1661 if eval "test \"`echo '$''{'g77_cv_sys_f2cinteger'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1664 cat > conftest.
$ac_ext <<EOF
1665 #line 1666 "configure"
1666 #include "confdefs.h"
1668 #define FFECOM_DETERMINE_TYPES 1
1670 #if FFECOM_f2cINTEGER == FFECOM_f2ccodeLONG
1671 F2C_INTEGER=long int
1672 #elif FFECOM_f2cINTEGER == FFECOM_f2ccodeINT
1675 # error "Cannot find a suitable type for F2C_INTEGER"
1679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1680 egrep "F2C_INTEGER=long int" >/dev
/null
2>&1; then
1682 g77_cv_sys_f2cinteger
="long int"
1686 if test "$g77_cv_sys_f2cinteger" = ""; then
1687 cat > conftest.
$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1691 #define FFECOM_DETERMINE_TYPES 1
1693 #if FFECOM_f2cINTEGER == FFECOM_f2ccodeLONG
1694 F2C_INTEGER=long int
1695 #elif FFECOM_f2cINTEGER == FFECOM_f2ccodeINT
1698 # error "Cannot find a suitable type for F2C_INTEGER"
1702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1703 egrep "F2C_INTEGER=int" >/dev
/null
2>&1; then
1705 g77_cv_sys_f2cinteger
=int
1710 if test "$g77_cv_sys_f2cinteger" = ""; then
1711 echo "$ac_t""""" 1>&6
1712 { echo "configure: error: Can't determine type for f2c integer; config.log may help." 1>&2; exit 1; }
1717 echo "$ac_t""$g77_cv_sys_f2cinteger" 1>&6
1718 F2C_INTEGER
=$g77_cv_sys_f2cinteger
1722 echo $ac_n "checking f2c long int type""... $ac_c" 1>&6
1723 echo "configure:1724: checking f2c long int type" >&5
1725 ac_cpp
="$late_ac_cpp -I$srcdir/../gcc/f -I../../gcc -I$srcdir/../gcc -I$srcdir/../gcc/config"
1726 if eval "test \"`echo '$''{'g77_cv_sys_f2clongint'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1729 cat > conftest.
$ac_ext <<EOF
1730 #line 1731 "configure"
1731 #include "confdefs.h"
1733 #define FFECOM_DETERMINE_TYPES 1
1735 #if FFECOM_f2cLONGINT == FFECOM_f2ccodeLONG
1736 F2C_LONGINT=long int
1737 #elif FFECOM_f2cLONGINT == FFECOM_f2ccodeLONGLONG
1738 F2C_LONGINT=long long int
1740 # error "Cannot find a suitable type for F2C_LONGINT"
1744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1745 egrep "F2C_LONGINT=long int" >/dev
/null
2>&1; then
1747 g77_cv_sys_f2clongint
="long int"
1751 if test "$g77_cv_sys_f2clongint" = ""; then
1752 cat > conftest.
$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1756 #define FFECOM_DETERMINE_TYPES 1
1758 #if FFECOM_f2cLONGINT == FFECOM_f2ccodeLONG
1759 F2C_LONGINT=long int
1760 #elif FFECOM_f2cLONGINT == FFECOM_f2ccodeLONGLONG
1761 F2C_LONGINT=long long int
1763 # error "Cannot find a suitable type for F2C_LONGINT"
1767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1768 egrep "F2C_LONGINT=long long int" >/dev
/null
2>&1; then
1770 g77_cv_sys_f2clongint
="long long int"
1775 if test "$g77_cv_sys_f2clongint" = ""; then
1776 echo "$ac_t""""" 1>&6
1777 { echo "configure: error: Can't determine type for f2c long int; config.log may help." 1>&2; exit 1; }
1782 echo "$ac_t""$g77_cv_sys_f2clongint" 1>&6
1783 F2C_LONGINT
=$g77_cv_sys_f2clongint
1791 # This EOF_CHAR is a misfeature on unix.
1792 cat >> confdefs.h
<<\EOF
1793 #define NO_EOF_CHAR_CHECK 1
1797 cat >> confdefs.h
<<\EOF
1798 #define Skip_f2c_Undefs 1
1805 cat >> confdefs.h
<<\EOF
1806 #define Pad_UDread 1
1813 cat >> confdefs.h
<<\EOF
1814 #define WANT_LEAD_0 1
1818 # avoid confusion in case the `makefile's from the f2c distribution have
1820 test -f libF77
/makefile
&& mv libF77
/makefile libF77
/makefile.ori
1821 test -f libI77
/makefile
&& mv libI77
/makefile libI77
/makefile.ori
1822 test -f libU77
/makefile
&& mv libU77
/makefile libU77
/makefile.ori
1825 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1826 if test -f $ac_dir/install-sh
; then
1828 ac_install_sh
="$ac_aux_dir/install-sh -c"
1830 elif test -f $ac_dir/install.sh
; then
1832 ac_install_sh
="$ac_aux_dir/install.sh -c"
1836 if test -z "$ac_aux_dir"; then
1837 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1839 ac_config_guess
=$ac_aux_dir/config.guess
1840 ac_config_sub
=$ac_aux_dir/config.sub
1841 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1846 cat > confcache
<<\EOF
1847 # This file is a shell script that caches the results of configure
1848 # tests run on this system so they can be shared between configure
1849 # scripts and configure runs. It is not useful on other systems.
1850 # If it contains results you don't want to keep, you may remove or edit it.
1852 # By default, configure uses ./config.cache as the cache file,
1853 # creating it if it does not exist already. You can give configure
1854 # the --cache-file=FILE option to use a different cache file; that is
1855 # what configure does when it calls configure scripts in
1856 # subdirectories, so they share the cache.
1857 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1858 # config.status only pays attention to the cache file if you give it the
1859 # --recheck option to rerun configure.
1862 # The following way of writing the cache mishandles newlines in values,
1863 # but we know of no workaround that is simple, portable, and efficient.
1864 # So, don't put newlines in cache variables' values.
1865 # Ultrix sh set writes to stderr and can't be redirected directly,
1866 # and sets the high bit in the cache file unless we assign to the vars.
1868 case `(ac_space=' '; set) 2>&1` in
1870 # `set' does not quote correctly, so add quotes (double-quote substitution
1871 # turns \\\\ into \\, and sed turns \\ into \).
1873 -e "s/'/'\\\\''/g" \
1874 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1877 # `set' quotes correctly as required by POSIX, so do not add quotes.
1878 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1881 if cmp -s $cache_file confcache
; then
1884 if test -w $cache_file; then
1885 echo "updating cache $cache_file"
1886 cat confcache
> $cache_file
1888 echo "not updating unwritable cache $cache_file"
1893 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1895 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1896 # Let make expand exec_prefix.
1897 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1899 # Any assignment to VPATH causes Sun make to only execute
1900 # the first set of double-colon rules, so remove it if not needed.
1901 # If there is a colon in the path, we need to keep it.
1902 if test "x$srcdir" = x.
; then
1903 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1906 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1908 # Transform confdefs.h into DEFS.
1909 # Protect against shell expansion while executing Makefile rules.
1910 # Protect against Makefile macro expansion.
1911 cat > conftest.defs
<<\EOF
1912 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1913 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1918 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
1922 # Without the "./", some shells look in PATH for config.status.
1923 : ${CONFIG_STATUS=./config.status}
1925 echo creating $CONFIG_STATUS
1926 rm -f $CONFIG_STATUS
1927 cat > $CONFIG_STATUS <<EOF
1929 # Generated automatically by configure.
1930 # Run this file to recreate the current configuration.
1931 # This directory was configured as follows,
1932 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
1934 # $0 $ac_configure_args
1936 # Compiler output produced by configure, useful for debugging
1937 # configure, is in ./config.log if it exists.
1939 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1942 case "\$ac_option" in
1943 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1944 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1945 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1946 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1947 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1949 -help | --help | --hel | --he | --h)
1950 echo "\$ac_cs_usage"; exit 0 ;;
1951 *) echo "\$ac_cs_usage"; exit 1 ;;
1955 ac_given_srcdir=$srcdir
1957 trap 'rm -fr `echo "Makefile f2c.h libI77/Makefile libF77/Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1959 cat >> $CONFIG_STATUS <<EOF
1961 # Protect against being on the right side of a sed subst in config.status.
1962 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1963 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1966 s%@CFLAGS@%$CFLAGS%g
1967 s%@CPPFLAGS@%$CPPFLAGS%g
1968 s%@CXXFLAGS@%$CXXFLAGS%g
1970 s%@LDFLAGS@%$LDFLAGS%g
1972 s%@exec_prefix@%$exec_prefix%g
1973 s%@prefix@%$prefix%g
1974 s%@program_transform_name@%$program_transform_name%g
1975 s%@bindir@%$bindir%g
1976 s%@sbindir@%$sbindir%g
1977 s%@libexecdir@%$libexecdir%g
1978 s%@datadir@%$datadir%g
1979 s%@sysconfdir@%$sysconfdir%g
1980 s%@sharedstatedir@%$sharedstatedir%g
1981 s%@localstatedir@%$localstatedir%g
1982 s%@libdir@%$libdir%g
1983 s%@includedir@%$includedir%g
1984 s%@oldincludedir@%$oldincludedir%g
1985 s%@infodir@%$infodir%g
1986 s%@mandir@%$mandir%g
1989 s%@RANLIB@%$RANLIB%g
1990 s%@RANLIB_TEST@%$RANLIB_TEST%g
1992 s%@F2C_INTEGER@%$F2C_INTEGER%g
1993 s%@F2C_LONGINT@%$F2C_LONGINT%g
1995 s%@subdirs@%$subdirs%g
2000 cat >> $CONFIG_STATUS <<\EOF
2002 # Split the substitutions into bite-sized pieces for seds with
2003 # small command number limits, like on Digital OSF/1 and HP-UX.
2004 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2005 ac_file=1 # Number of current file.
2006 ac_beg=1 # First line for current file.
2007 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2010 while $ac_more_lines; do
2011 if test $ac_beg -gt 1; then
2012 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2014 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2016 if test ! -s conftest.s$ac_file; then
2018 rm -f conftest.s$ac_file
2020 if test -z "$ac_sed_cmds"; then
2021 ac_sed_cmds="sed -f conftest.s$ac_file"
2023 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2025 ac_file=`expr $ac_file + 1`
2027 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2030 if test -z "$ac_sed_cmds"; then
2035 cat >> $CONFIG_STATUS <<EOF
2037 CONFIG_FILES=\${CONFIG_FILES-"Makefile f2c.h libI77/Makefile libF77/Makefile"}
2039 cat >> $CONFIG_STATUS <<\EOF
2040 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2043 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
2044 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
2045 *) ac_file_in="${ac_file}.in" ;;
2048 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2050 # Remove last slash and all that follows it. Not all systems have dirname.
2051 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2052 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2053 # The file is in a subdirectory.
2054 test ! -d "$ac_dir" && mkdir "$ac_dir"
2055 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
2056 # A "../" for each directory in $ac_dir_suffix.
2057 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
2059 ac_dir_suffix= ac_dots=
2062 case "$ac_given_srcdir" in
2064 if test -z "$ac_dots"; then top_srcdir=.
2065 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
2066 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2068 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2069 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2073 echo creating "$ac_file"
2075 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2077 *Makefile*) ac_comsub="1i\\
2078 # $configure_input" ;;
2082 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2084 s%@configure_input@%$configure_input%g
2085 s%@srcdir@%$srcdir%g
2086 s%@top_srcdir@%$top_srcdir%g
2087 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2092 cat >> $CONFIG_STATUS <<EOF
2095 cat >> $CONFIG_STATUS <<\EOF
2099 chmod +x $CONFIG_STATUS
2100 rm -fr confdefs* $ac_clean_files
2101 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2103 if test "$no_recursion" != yes; then
2105 # Remove --cache-file and --srcdir arguments so they do not pile up.
2106 ac_sub_configure_args=
2108 for ac_arg in $ac_configure_args; do
2109 if test -n "$ac_prev"; then
2114 -cache-file | --cache-file | --cache-fil | --cache-fi \
2115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2116 ac_prev=cache_file ;;
2117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2124 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2128 for ac_config_dir in libU77; do
2130 # Do not complain, so a configure script can configure whichever
2131 # parts of a large source tree are present.
2132 if test ! -d $srcdir/$ac_config_dir; then
2136 echo configuring in $ac_config_dir
2141 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2143 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2151 # A "../" for each directory in /$ac_config_dir.
2152 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2155 .) # No --srcdir option. We are building in place.
2156 ac_sub_srcdir=$srcdir ;;
2157 /*) # Absolute path.
2158 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2160 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2163 # Check for guested configure; otherwise get Cygnus style configure.
2164 if test -f $ac_sub_srcdir/configure; then
2165 ac_sub_configure=$ac_sub_srcdir/configure
2166 elif test -f $ac_sub_srcdir/configure.in; then
2167 ac_sub_configure=$ac_configure
2169 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2173 # The recursion is here.
2174 if test -n "$ac_sub_configure"; then
2176 # Make the cache file name correct relative to the subdirectory.
2177 case "$cache_file" in
2178 /*) ac_sub_cache_file=$cache_file ;;
2180 ac_sub_cache_file="$ac_dots$cache_file" ;;
2183 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2184 # The eval makes quoting arguments work.
2185 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2188 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }