3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
31 cache_file=./config.cache
40 program_transform_name=s,x,x,
48 bindir='${exec_prefix}/bin'
49 sbindir='${exec_prefix}/sbin'
50 libexecdir='${exec_prefix}/libexec'
51 datadir='${prefix}/share'
52 sysconfdir='${prefix}/etc'
53 sharedstatedir='${prefix}/com'
54 localstatedir='${prefix}/var'
55 libdir='${exec_prefix}/lib'
56 includedir='${prefix}/include'
57 oldincludedir='/usr/include'
58 infodir='${prefix}/info'
59 mandir='${prefix}/man'
61 # Initialize some other variables.
64 SHELL=${CONFIG_SHELL-/bin/sh}
65 # Maximum number of lines to put in a shell here document.
72 # If the previous option needs an argument, assign it.
73 if test -n "$ac_prev"; then
74 eval "$ac_prev=\$ac_option"
80 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 # Accept the important Cygnus configure options, so we can diagnose typos.
88 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91 bindir="$ac_optarg" ;;
93 -build | --build | --buil | --bui | --bu)
95 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
98 -cache-file | --cache-file | --cache-fil | --cache-fi \
99 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100 ac_prev=cache_file ;;
101 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103 cache_file="$ac_optarg" ;;
105 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 datadir="$ac_optarg" ;;
111 -disable-* | --disable-*)
112 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}=no" ;;
120 -enable-* | --enable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}='$ac_optarg'" ;;
133 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
135 | --exec | --exe | --ex)
136 ac_prev=exec_prefix ;;
137 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139 | --exec=* | --exe=* | --ex=*)
140 exec_prefix="$ac_optarg" ;;
142 -gas | --gas | --ga | --g)
143 # Obsolete; use --with-gas.
146 -help | --help | --hel | --he)
147 # Omit some internal or obsolete options to make the list less imposing.
148 # This message is too long to be a string in the A/UX 3.1 sh.
150 Usage: configure [options] [host]
151 Options: [defaults in brackets after descriptions]
153 --cache-file=FILE cache test results in FILE
154 --help print this message
155 --no-create do not create output files
156 --quiet, --silent do not print \`checking...' messages
157 --version print the version of autoconf that created configure
158 Directory and file names:
159 --prefix=PREFIX install architecture-independent files in PREFIX
161 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
163 --bindir=DIR user executables in DIR [EPREFIX/bin]
164 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
165 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
166 --datadir=DIR read-only architecture-independent data in DIR
168 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
169 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
172 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
173 --includedir=DIR C header files in DIR [PREFIX/include]
174 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
175 --infodir=DIR info documentation in DIR [PREFIX/info]
176 --mandir=DIR man documentation in DIR [PREFIX/man]
177 --srcdir=DIR find the sources in DIR [configure dir or ..]
178 --program-prefix=PREFIX prepend PREFIX to installed program names
179 --program-suffix=SUFFIX append SUFFIX to installed program names
180 --program-transform-name=PROGRAM
181 run sed PROGRAM on installed program names
185 --build=BUILD configure for building on BUILD [BUILD=HOST]
186 --host=HOST configure for HOST [guessed]
187 --target=TARGET configure for TARGET [TARGET=HOST]
188 Features and packages:
189 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
190 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
191 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
192 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
193 --x-includes=DIR X include files are in DIR
194 --x-libraries=DIR X library files are in DIR
196 if test -n "$ac_help"; then
197 echo "--enable and --with options recognized:$ac_help"
201 -host | --host | --hos | --ho)
203 -host=* | --host=* | --hos=* | --ho=*)
206 -includedir | --includedir | --includedi | --included | --include \
207 | --includ | --inclu | --incl | --inc)
208 ac_prev=includedir ;;
209 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210 | --includ=* | --inclu=* | --incl=* | --inc=*)
211 includedir="$ac_optarg" ;;
213 -infodir | --infodir | --infodi | --infod | --info | --inf)
215 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216 infodir="$ac_optarg" ;;
218 -libdir | --libdir | --libdi | --libd)
220 -libdir=* | --libdir=* | --libdi=* | --libd=*)
221 libdir="$ac_optarg" ;;
223 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224 | --libexe | --libex | --libe)
225 ac_prev=libexecdir ;;
226 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227 | --libexe=* | --libex=* | --libe=*)
228 libexecdir="$ac_optarg" ;;
230 -localstatedir | --localstatedir | --localstatedi | --localstated \
231 | --localstate | --localstat | --localsta | --localst \
232 | --locals | --local | --loca | --loc | --lo)
233 ac_prev=localstatedir ;;
234 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
236 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237 localstatedir="$ac_optarg" ;;
239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242 mandir="$ac_optarg" ;;
245 # Obsolete; use --without-fp.
248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
253 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
257 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
258 | --oldin | --oldi | --old | --ol | --o)
259 ac_prev=oldincludedir ;;
260 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263 oldincludedir="$ac_optarg" ;;
265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268 prefix="$ac_optarg" ;;
270 -program-prefix | --program-prefix | --program-prefi | --program-pref \
271 | --program-pre | --program-pr | --program-p)
272 ac_prev=program_prefix ;;
273 -program-prefix=* | --program-prefix=* | --program-prefi=* \
274 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275 program_prefix="$ac_optarg" ;;
277 -program-suffix | --program-suffix | --program-suffi | --program-suff \
278 | --program-suf | --program-su | --program-s)
279 ac_prev=program_suffix ;;
280 -program-suffix=* | --program-suffix=* | --program-suffi=* \
281 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282 program_suffix="$ac_optarg" ;;
284 -program-transform-name | --program-transform-name \
285 | --program-transform-nam | --program-transform-na \
286 | --program-transform-n | --program-transform- \
287 | --program-transform | --program-transfor \
288 | --program-transfo | --program-transf \
289 | --program-trans | --program-tran \
290 | --progr-tra | --program-tr | --program-t)
291 ac_prev=program_transform_name ;;
292 -program-transform-name=* | --program-transform-name=* \
293 | --program-transform-nam=* | --program-transform-na=* \
294 | --program-transform-n=* | --program-transform-=* \
295 | --program-transform=* | --program-transfor=* \
296 | --program-transfo=* | --program-transf=* \
297 | --program-trans=* | --program-tran=* \
298 | --progr-tra=* | --program-tr=* | --program-t=*)
299 program_transform_name="$ac_optarg" ;;
301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302 | -silent | --silent | --silen | --sile | --sil)
305 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 sbindir="$ac_optarg" ;;
311 -sharedstatedir | --sharedstatedir | --sharedstatedi \
312 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313 | --sharedst | --shareds | --shared | --share | --shar \
315 ac_prev=sharedstatedir ;;
316 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320 sharedstatedir="$ac_optarg" ;;
322 -site | --site | --sit)
324 -site=* | --site=* | --sit=*)
327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330 srcdir="$ac_optarg" ;;
332 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333 | --syscon | --sysco | --sysc | --sys | --sy)
334 ac_prev=sysconfdir ;;
335 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337 sysconfdir="$ac_optarg" ;;
339 -target | --target | --targe | --targ | --tar | --ta | --t)
341 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342 target="$ac_optarg" ;;
344 -v | -verbose | --verbose | --verbos | --verbo | --verb)
347 -version | --version | --versio | --versi | --vers)
348 echo "configure generated by autoconf version 2.13"
352 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
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'`
362 eval "with_${ac_package}='$ac_optarg'" ;;
364 -without-* | --without-*)
365 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}=no" ;;
374 # Obsolete; use --with-x.
377 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
378 | --x-incl | --x-inc | --x-in | --x-i)
379 ac_prev=x_includes ;;
380 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382 x_includes="$ac_optarg" ;;
384 -x-libraries | --x-libraries | --x-librarie | --x-librari \
385 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386 ac_prev=x_libraries ;;
387 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389 x_libraries="$ac_optarg" ;;
391 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 if test "x$nonopt" != xNONE; then
399 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407 if test -n "$ac_prev"; then
408 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413 # File descriptor usage:
416 # 2 errors and warnings
417 # 3 some systems may open it to /dev/tty
418 # 4 used on the Kubota Titan
419 # 6 checking for... messages and results
420 # 5 compiler messages saved in config.log
421 if test "$silent" = yes; then
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
439 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
440 | --no-cr | --no-c) ;;
441 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
442 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
450 # Only set these to C if already set. These must not be set unconditionally
451 # because not all systems understand e.g. LANG=C (notably SCO).
452 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453 # Non-C LC_CTYPE values break the ctype check.
454 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
455 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
460 rm -rf conftest* confdefs.h
461 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464 # A filename unique to this package, relative to the directory that
465 # configure is in, which we can look for to find out if srcdir is correct.
466 ac_unique_file=libF77/Version.c
468 # Find the source files, if location was not specified.
469 if test -z "$srcdir"; then
470 ac_srcdir_defaulted=yes
471 # Try the directory containing this script, then its parent.
473 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 if test ! -r $srcdir/$ac_unique_file; then
480 ac_srcdir_defaulted=no
482 if test ! -r $srcdir/$ac_unique_file; then
483 if test "$ac_srcdir_defaulted" = yes; then
484 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491 # Prefer explicitly selected file to automatically selected ones.
492 if test -z "$CONFIG_SITE"; then
493 if test "x$prefix" != xNONE; then
494 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499 for ac_site_file in $CONFIG_SITE; do
500 if test -r "$ac_site_file"; then
501 echo "loading site script $ac_site_file"
506 if test -r "$cache_file"; then
507 echo "loading cache $cache_file"
510 echo "creating cache $cache_file"
515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516 ac_cpp='$CPP $CPPFLAGS'
517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519 cross_compiling=$ac_cv_prog_cc_cross
523 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
532 ac_n= ac_c='\c' ac_t=
535 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
536 echo "configure:537: checking for Cygwin environment" >&5
537 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
538 echo $ac_n "(cached) $ac_c" 1>&6
540 cat > conftest.$ac_ext <<EOF
541 #line 542 "configure"
542 #include "confdefs.h"
547 #define __CYGWIN__ __CYGWIN32__
552 if { (eval echo configure:553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
556 echo "configure: failed program was:" >&5
557 cat conftest.$ac_ext >&5
565 echo "$ac_t""$ac_cv_cygwin" 1>&6
567 test "$ac_cv_cygwin" = yes && CYGWIN=yes
568 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
569 echo "configure:570: checking for mingw32 environment" >&5
570 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
571 echo $ac_n "(cached) $ac_c" 1>&6
573 cat > conftest.$ac_ext <<EOF
574 #line 575 "configure"
575 #include "confdefs.h"
581 if { (eval echo configure:582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
585 echo "configure: failed program was:" >&5
586 cat conftest.$ac_ext >&5
594 echo "$ac_t""$ac_cv_mingw32" 1>&6
596 test "$ac_cv_mingw32" = yes && MINGW32=yes
599 if test "${srcdir}" = "." ; then
600 if test "${with_target_subdir}" != "." ; then
601 topsrcdir=${with_multisrctop}../..
603 topsrcdir=${with_multisrctop}..
606 topsrcdir=${srcdir}/..
609 for ac_dir in $topsrcdir $srcdir/$topsrcdir; do
610 if test -f $ac_dir/install-sh; then
612 ac_install_sh="$ac_aux_dir/install-sh -c"
614 elif test -f $ac_dir/install.sh; then
616 ac_install_sh="$ac_aux_dir/install.sh -c"
620 if test -z "$ac_aux_dir"; then
621 { echo "configure: error: can not find install-sh or install.sh in $topsrcdir $srcdir/$topsrcdir" 1>&2; exit 1; }
623 ac_config_guess=$ac_aux_dir/config.guess
624 ac_config_sub=$ac_aux_dir/config.sub
625 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
628 # If the language specific compiler does not exist, but the "gcc" directory
629 # does, we do not build anything. Note, $r is set by the top-level Makefile.
630 # Note that when we look for the compiler, we search both with and without
631 # extension to handle cross and canadian cross builds.
634 echo $ac_n "checking if compiler $compiler_name has been built""... $ac_c" 1>&6
635 echo "configure:636: checking if compiler $compiler_name has been built" >&5
636 if eval "test \"`echo '$''{'g77_cv_compiler_exists'+set}'`\" = set"; then
637 echo $ac_n "(cached) $ac_c" 1>&6
639 g77_cv_compiler_exists=yes
640 if test -n "$r"; then
641 if test -d "$r"/gcc; then
642 if test -f "$r"/gcc/$compiler_name \
643 || test -f "$r"/gcc/$compiler_name.exe; then
646 g77_cv_compiler_exists=no
647 echo "rm -f config.cache config.log multilib.out" > skip-this-dir
654 echo "$ac_t""$g77_cv_compiler_exists" 1>&6
655 if test x$g77_cv_compiler_exists = xno
657 rm -f Makefile conftest* confdefs* core
664 # For g77 we'll set CC to point at the built gcc, but this will get it into
667 # Extract the first word of "gcc", so it can be a program name with args.
668 set dummy gcc; ac_word=$2
669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
670 echo "configure:671: checking for $ac_word" >&5
671 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
672 echo $ac_n "(cached) $ac_c" 1>&6
674 if test -n "$CC"; then
675 ac_cv_prog_CC="$CC" # Let the user override the test.
677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
679 for ac_dir in $ac_dummy; do
680 test -z "$ac_dir" && ac_dir=.
681 if test -f $ac_dir/$ac_word; then
690 if test -n "$CC"; then
691 echo "$ac_t""$CC" 1>&6
693 echo "$ac_t""no" 1>&6
696 if test -z "$CC"; then
697 # Extract the first word of "cc", so it can be a program name with args.
698 set dummy cc; ac_word=$2
699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
700 echo "configure:701: checking for $ac_word" >&5
701 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
702 echo $ac_n "(cached) $ac_c" 1>&6
704 if test -n "$CC"; then
705 ac_cv_prog_CC="$CC" # Let the user override the test.
707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
710 for ac_dir in $ac_dummy; do
711 test -z "$ac_dir" && ac_dir=.
712 if test -f $ac_dir/$ac_word; then
713 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
722 if test $ac_prog_rejected = yes; then
723 # We found a bogon in the path, so make sure we never use it.
724 set dummy $ac_cv_prog_CC
726 if test $# -gt 0; then
727 # We chose a different compiler from the bogus one.
728 # However, it has the same basename, so the bogon will be chosen
729 # first if we set CC to just the basename; use the full file name.
731 set dummy "$ac_dir/$ac_word" "$@"
739 if test -n "$CC"; then
740 echo "$ac_t""$CC" 1>&6
742 echo "$ac_t""no" 1>&6
745 if test -z "$CC"; then
748 # Extract the first word of "cl", so it can be a program name with args.
749 set dummy cl; ac_word=$2
750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
751 echo "configure:752: checking for $ac_word" >&5
752 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
755 if test -n "$CC"; then
756 ac_cv_prog_CC="$CC" # Let the user override the test.
758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
760 for ac_dir in $ac_dummy; do
761 test -z "$ac_dir" && ac_dir=.
762 if test -f $ac_dir/$ac_word; then
771 if test -n "$CC"; then
772 echo "$ac_t""$CC" 1>&6
774 echo "$ac_t""no" 1>&6
779 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
783 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
784 echo "configure:785: checking whether we are using GNU C" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
788 cat > conftest.c <<EOF
793 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
800 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
802 if test $ac_cv_prog_gcc = yes; then
808 ac_test_CFLAGS="${CFLAGS+set}"
809 ac_save_CFLAGS="$CFLAGS"
811 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
812 echo "configure:813: checking whether ${CC-cc} accepts -g" >&5
813 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
814 echo $ac_n "(cached) $ac_c" 1>&6
816 echo 'void f(){}' > conftest.c
817 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
826 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
827 if test "$ac_test_CFLAGS" = set; then
828 CFLAGS="$ac_save_CFLAGS"
829 elif test $ac_cv_prog_cc_g = yes; then
830 if test "$GCC" = yes; then
836 if test "$GCC" = yes; then
843 # Check whether --enable-shared or --disable-shared was given.
844 if test "${enable_shared+set}" = set; then
845 enableval="$enable_shared"
848 yes) enable_shared=yes ;;
849 no) enable_shared=no ;;
852 # Look at the argument we got. We use all the common list separators.
853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
854 for pkg in $enableval; do
855 if test "X$pkg" = "X$p"; then
866 # Check whether --enable-static or --disable-static was given.
867 if test "${enable_static+set}" = set; then
868 enableval="$enable_static"
871 yes) enable_static=yes ;;
872 no) enable_static=no ;;
875 # Look at the argument we got. We use all the common list separators.
876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
877 for pkg in $enableval; do
878 if test "X$pkg" = "X$p"; then
889 # Check whether --enable-fast-install or --disable-fast-install was given.
890 if test "${enable_fast_install+set}" = set; then
891 enableval="$enable_fast_install"
894 yes) enable_fast_install=yes ;;
895 no) enable_fast_install=no ;;
897 enable_fast_install=no
898 # Look at the argument we got. We use all the common list separators.
899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
900 for pkg in $enableval; do
901 if test "X$pkg" = "X$p"; then
902 enable_fast_install=yes
909 enable_fast_install=yes
913 # Make sure we can run config.sub.
914 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
915 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
918 echo $ac_n "checking host system type""... $ac_c" 1>&6
919 echo "configure:920: checking host system type" >&5
922 case "$host_alias" in
926 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
927 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
929 *) host_alias=$nonopt ;;
933 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
934 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
935 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
936 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
937 echo "$ac_t""$host" 1>&6
939 echo $ac_n "checking build system type""... $ac_c" 1>&6
940 echo "configure:941: checking build system type" >&5
943 case "$build_alias" in
946 NONE) build_alias=$host_alias ;;
947 *) build_alias=$nonopt ;;
951 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
952 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
953 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
954 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
955 echo "$ac_t""$build" 1>&6
957 # Check whether --with-gnu-ld or --without-gnu-ld was given.
958 if test "${with_gnu_ld+set}" = set; then
959 withval="$with_gnu_ld"
960 test "$withval" = no || with_gnu_ld=yes
966 if test "$GCC" = yes; then
967 # Check if gcc -print-prog-name=ld gives a path.
968 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
969 echo "configure:970: checking for ld used by GCC" >&5
972 # gcc leaves a trailing carriage return which upsets mingw
973 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
975 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
978 # Accept absolute paths.
979 [\\/]* | [A-Za-z]:[\\/]*)
980 re_direlt='/[^/][^/]*/\.\./'
981 # Canonicalize the path of ld
982 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
983 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
984 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
986 test -z "$LD" && LD="$ac_prog"
989 # If it fails, then pretend we aren't using GCC.
993 # If it is relative, then search for the first ld in PATH.
997 elif test "$with_gnu_ld" = yes; then
998 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
999 echo "configure:1000: checking for GNU ld" >&5
1001 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1002 echo "configure:1003: checking for non-GNU ld" >&5
1004 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1005 echo $ac_n "(cached) $ac_c" 1>&6
1007 if test -z "$LD"; then
1008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1009 for ac_dir in $PATH; do
1010 test -z "$ac_dir" && ac_dir=.
1011 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1012 lt_cv_path_LD="$ac_dir/$ac_prog"
1013 # Check to see if the program is GNU ld. I'd rather use --version,
1014 # but apparently some GNU ld's only accept -v.
1015 # Break only if it was the GNU/non-GNU ld that we prefer.
1016 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1017 test "$with_gnu_ld" != no && break
1019 test "$with_gnu_ld" != yes && break
1025 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1030 if test -n "$LD"; then
1031 echo "$ac_t""$LD" 1>&6
1033 echo "$ac_t""no" 1>&6
1035 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1036 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1037 echo "configure:1038: checking if the linker ($LD) is GNU ld" >&5
1038 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1042 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1043 lt_cv_prog_gnu_ld=yes
1045 lt_cv_prog_gnu_ld=no
1049 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1050 with_gnu_ld=$lt_cv_prog_gnu_ld
1053 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1054 echo "configure:1055: checking for $LD option to reload object files" >&5
1055 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1056 echo $ac_n "(cached) $ac_c" 1>&6
1058 lt_cv_ld_reload_flag='-r'
1061 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1062 reload_flag=$lt_cv_ld_reload_flag
1063 test -n "$reload_flag" && reload_flag=" $reload_flag"
1065 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1066 echo "configure:1067: checking for BSD-compatible nm" >&5
1067 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6
1070 if test -n "$NM"; then
1071 # Let the user override the test.
1074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1075 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1076 test -z "$ac_dir" && ac_dir=.
1077 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1078 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1079 # Check to see if the nm accepts a BSD-compat flag.
1080 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1081 # nm: unknown option "B" ignored
1082 # Tru64's nm complains that /dev/null is an invalid object file
1083 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1084 lt_cv_path_NM="$tmp_nm -B"
1086 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1087 lt_cv_path_NM="$tmp_nm -p"
1090 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1091 continue # so that we can try to find one that supports BSD flags
1096 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1101 echo "$ac_t""$NM" 1>&6
1103 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1104 echo "configure:1105: checking whether ln -s works" >&5
1105 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6
1109 if ln -s X conftestdata 2>/dev/null
1112 ac_cv_prog_LN_S="ln -s"
1117 LN_S="$ac_cv_prog_LN_S"
1118 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1119 echo "$ac_t""yes" 1>&6
1121 echo "$ac_t""no" 1>&6
1124 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1125 echo "configure:1126: checking how to recognise dependant libraries" >&5
1126 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1129 lt_cv_file_magic_cmd='$MAGIC_CMD'
1130 lt_cv_file_magic_test_file=
1131 lt_cv_deplibs_check_method='unknown'
1132 # Need to set the preceding variable on all platforms that support
1133 # interlibrary dependencies.
1134 # 'none' -- dependencies not supported.
1135 # `unknown' -- same as none, but documents that we really don't know.
1136 # 'pass_all' -- all dependencies passed with no checks.
1137 # 'test_compile' -- check by making test program.
1138 # 'file_magic [regex]' -- check by looking for files in library path
1139 # which responds to the $file_magic_cmd with a given egrep regex.
1140 # If you have `file' or equivalent on your system and you're not sure
1141 # whether `pass_all' will *always* work, you probably want this one.
1145 lt_cv_deplibs_check_method=pass_all
1149 lt_cv_deplibs_check_method=pass_all
1153 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1154 lt_cv_file_magic_cmd='/usr/bin/file -L'
1155 lt_cv_file_magic_test_file=/shlib/libc.so
1158 cygwin* | mingw* |pw32*)
1159 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1160 lt_cv_file_magic_cmd='$OBJDUMP -f'
1163 darwin* | rhapsody*)
1164 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1165 lt_cv_file_magic_cmd='/usr/bin/file -L'
1167 rhapsody* | darwin1.012)
1168 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1171 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1177 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1180 # Not sure whether the presence of OpenBSD here was a mistake.
1181 # Let's accept both of them until this is cleared up.
1182 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1183 lt_cv_file_magic_cmd=/usr/bin/file
1184 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1188 lt_cv_deplibs_check_method=pass_all
1193 lt_cv_deplibs_check_method=pass_all
1197 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1198 lt_cv_file_magic_cmd=/usr/bin/file
1199 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1205 # this will be overridden with pass_all, but let us keep it just in case
1206 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1210 *-32|*"-32 ") libmagic=32-bit;;
1211 *-n32|*"-n32 ") libmagic=N32;;
1212 *-64|*"-64 ") libmagic=64-bit;;
1213 *) libmagic=never-match;;
1215 # this will be overridden with pass_all, but let us keep it just in case
1216 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1219 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1220 lt_cv_deplibs_check_method=pass_all
1223 # This must be Linux ELF.
1226 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1227 lt_cv_deplibs_check_method=pass_all ;;
1229 # glibc up to 2.1.1 does not perform some relocations on ARM
1230 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1232 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1236 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1237 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1239 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1245 lt_cv_file_magic_cmd=/usr/bin/file
1246 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1249 osf3* | osf4* | osf5*)
1250 # this will be overridden with pass_all, but let us keep it just in case
1251 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1252 lt_cv_file_magic_test_file=/shlib/libc.so
1253 lt_cv_deplibs_check_method=pass_all
1257 lt_cv_deplibs_check_method=pass_all
1261 lt_cv_deplibs_check_method=pass_all
1262 lt_cv_file_magic_test_file=/lib/libc.so
1265 sysv5uw[78]* | sysv4*uw2*)
1266 lt_cv_deplibs_check_method=pass_all
1269 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1270 case $host_vendor in
1272 lt_cv_deplibs_check_method=pass_all
1275 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1276 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1284 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1285 file_magic_cmd=$lt_cv_file_magic_cmd
1286 deplibs_check_method=$lt_cv_deplibs_check_method
1288 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1289 echo "configure:1290: checking for object suffix" >&5
1290 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1294 echo 'int i = 1;' > conftest.$ac_ext
1295 if { (eval echo configure:1296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1296 for ac_file in conftest.*; do
1299 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1303 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1308 echo "$ac_t""$ac_cv_objext" 1>&6
1309 OBJEXT=$ac_cv_objext
1310 ac_objext=$ac_cv_objext
1314 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1315 echo "configure:1316: checking for executable suffix" >&5
1316 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1323 echo 'int main () { return 0; }' > conftest.$ac_ext
1325 if { (eval echo configure:1326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1326 for file in conftest.*; do
1328 *.c | *.o | *.obj) ;;
1329 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1333 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1336 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1341 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1342 echo "$ac_t""${ac_cv_exeext}" 1>&6
1345 if test $host != $build; then
1346 ac_tool_prefix=${host_alias}-
1351 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1353 # Only perform the check for file, if the check method requires it
1354 case $deplibs_check_method in
1356 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1357 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1358 echo "configure:1359: checking for ${ac_tool_prefix}file" >&5
1359 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1364 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1367 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1370 ac_save_MAGIC_CMD="$MAGIC_CMD"
1371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1372 ac_dummy="/usr/bin:$PATH"
1373 for ac_dir in $ac_dummy; do
1374 test -z "$ac_dir" && ac_dir=.
1375 if test -f $ac_dir/${ac_tool_prefix}file; then
1376 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1377 if test -n "$file_magic_test_file"; then
1378 case $deplibs_check_method in
1380 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1382 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1383 egrep "$file_magic_regex" > /dev/null; then
1388 *** Warning: the command libtool uses to detect shared libraries,
1389 *** $file_magic_cmd, produces output that libtool cannot recognize.
1390 *** The result is that libtool may fail to recognize shared libraries
1391 *** as such. This will affect the creation of libtool libraries that
1392 *** depend on shared libraries, but programs linked with such libtool
1393 *** libraries will work regardless of this problem. Nevertheless, you
1394 *** may want to report the problem to your system manager and/or to
1395 *** bug-libtool@gnu.org
1405 MAGIC_CMD="$ac_save_MAGIC_CMD"
1410 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1411 if test -n "$MAGIC_CMD"; then
1412 echo "$ac_t""$MAGIC_CMD" 1>&6
1414 echo "$ac_t""no" 1>&6
1417 if test -z "$lt_cv_path_MAGIC_CMD"; then
1418 if test -n "$ac_tool_prefix"; then
1419 echo $ac_n "checking for file""... $ac_c" 1>&6
1420 echo "configure:1421: checking for file" >&5
1421 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1426 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1429 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1432 ac_save_MAGIC_CMD="$MAGIC_CMD"
1433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1434 ac_dummy="/usr/bin:$PATH"
1435 for ac_dir in $ac_dummy; do
1436 test -z "$ac_dir" && ac_dir=.
1437 if test -f $ac_dir/file; then
1438 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1439 if test -n "$file_magic_test_file"; then
1440 case $deplibs_check_method in
1442 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1444 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1445 egrep "$file_magic_regex" > /dev/null; then
1450 *** Warning: the command libtool uses to detect shared libraries,
1451 *** $file_magic_cmd, produces output that libtool cannot recognize.
1452 *** The result is that libtool may fail to recognize shared libraries
1453 *** as such. This will affect the creation of libtool libraries that
1454 *** depend on shared libraries, but programs linked with such libtool
1455 *** libraries will work regardless of this problem. Nevertheless, you
1456 *** may want to report the problem to your system manager and/or to
1457 *** bug-libtool@gnu.org
1467 MAGIC_CMD="$ac_save_MAGIC_CMD"
1472 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1473 if test -n "$MAGIC_CMD"; then
1474 echo "$ac_t""$MAGIC_CMD" 1>&6
1476 echo "$ac_t""no" 1>&6
1488 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1489 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1490 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1491 echo "configure:1492: checking for $ac_word" >&5
1492 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1495 if test -n "$RANLIB"; then
1496 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1500 for ac_dir in $ac_dummy; do
1501 test -z "$ac_dir" && ac_dir=.
1502 if test -f $ac_dir/$ac_word; then
1503 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1510 RANLIB="$ac_cv_prog_RANLIB"
1511 if test -n "$RANLIB"; then
1512 echo "$ac_t""$RANLIB" 1>&6
1514 echo "$ac_t""no" 1>&6
1518 if test -z "$ac_cv_prog_RANLIB"; then
1519 if test -n "$ac_tool_prefix"; then
1520 # Extract the first word of "ranlib", so it can be a program name with args.
1521 set dummy ranlib; ac_word=$2
1522 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1523 echo "configure:1524: checking for $ac_word" >&5
1524 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 if test -n "$RANLIB"; then
1528 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1532 for ac_dir in $ac_dummy; do
1533 test -z "$ac_dir" && ac_dir=.
1534 if test -f $ac_dir/$ac_word; then
1535 ac_cv_prog_RANLIB="ranlib"
1540 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1543 RANLIB="$ac_cv_prog_RANLIB"
1544 if test -n "$RANLIB"; then
1545 echo "$ac_t""$RANLIB" 1>&6
1547 echo "$ac_t""no" 1>&6
1555 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1556 set dummy ${ac_tool_prefix}strip; ac_word=$2
1557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1558 echo "configure:1559: checking for $ac_word" >&5
1559 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1562 if test -n "$STRIP"; then
1563 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1567 for ac_dir in $ac_dummy; do
1568 test -z "$ac_dir" && ac_dir=.
1569 if test -f $ac_dir/$ac_word; then
1570 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1577 STRIP="$ac_cv_prog_STRIP"
1578 if test -n "$STRIP"; then
1579 echo "$ac_t""$STRIP" 1>&6
1581 echo "$ac_t""no" 1>&6
1585 if test -z "$ac_cv_prog_STRIP"; then
1586 if test -n "$ac_tool_prefix"; then
1587 # Extract the first word of "strip", so it can be a program name with args.
1588 set dummy strip; ac_word=$2
1589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1590 echo "configure:1591: checking for $ac_word" >&5
1591 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1594 if test -n "$STRIP"; then
1595 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1599 for ac_dir in $ac_dummy; do
1600 test -z "$ac_dir" && ac_dir=.
1601 if test -f $ac_dir/$ac_word; then
1602 ac_cv_prog_STRIP="strip"
1607 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1610 STRIP="$ac_cv_prog_STRIP"
1611 if test -n "$STRIP"; then
1612 echo "$ac_t""$STRIP" 1>&6
1614 echo "$ac_t""no" 1>&6
1623 # Check for any special flags to pass to ltconfig.
1624 libtool_flags="--cache-file=$cache_file"
1625 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1626 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1627 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1628 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1629 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1632 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1633 if test "${enable_libtool_lock+set}" = set; then
1634 enableval="$enable_libtool_lock"
1638 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1639 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1641 # Check whether --with-pic or --without-pic was given.
1642 if test "${with_pic+set}" = set; then
1649 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1650 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1652 # Some flags need to be propagated to the compiler or linker for good
1656 # Find out which ABI we are using.
1657 echo '#line 1658 "configure"' > conftest.$ac_ext
1658 if { (eval echo configure:1659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1659 case `/usr/bin/file conftest.$ac_objext` in
1675 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1676 SAVE_CFLAGS="$CFLAGS"
1677 CFLAGS="$CFLAGS -belf"
1678 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1679 echo "configure:1680: checking whether the C compiler needs -belf" >&5
1680 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1685 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1686 ac_cpp='$CPP $CPPFLAGS'
1687 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1688 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1689 cross_compiling=$ac_cv_prog_cc_cross
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1699 if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1701 lt_cv_cc_needs_belf=yes
1703 echo "configure: failed program was:" >&5
1704 cat conftest.$ac_ext >&5
1706 lt_cv_cc_needs_belf=no
1710 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1711 ac_cpp='$CPP $CPPFLAGS'
1712 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1713 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1714 cross_compiling=$ac_cv_prog_cc_cross
1718 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1719 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1720 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1721 CFLAGS="$SAVE_CFLAGS"
1729 # Save cache, so that ltconfig can load it
1730 cat > confcache <<\EOF
1731 # This file is a shell script that caches the results of configure
1732 # tests run on this system so they can be shared between configure
1733 # scripts and configure runs. It is not useful on other systems.
1734 # If it contains results you don't want to keep, you may remove or edit it.
1736 # By default, configure uses ./config.cache as the cache file,
1737 # creating it if it does not exist already. You can give configure
1738 # the --cache-file=FILE option to use a different cache file; that is
1739 # what configure does when it calls configure scripts in
1740 # subdirectories, so they share the cache.
1741 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1742 # config.status only pays attention to the cache file if you give it the
1743 # --recheck option to rerun configure.
1746 # The following way of writing the cache mishandles newlines in values,
1747 # but we know of no workaround that is simple, portable, and efficient.
1748 # So, don't put newlines in cache variables' values.
1749 # Ultrix sh set writes to stderr and can't be redirected directly,
1750 # and sets the high bit in the cache file unless we assign to the vars.
1752 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1754 # `set' does not quote correctly, so add quotes (double-quote substitution
1755 # turns \\\\ into \\, and sed turns \\ into \).
1757 -e "s/'/'\\\\''/g" \
1758 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1761 # `set' quotes correctly as required by POSIX, so do not add quotes.
1762 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1765 if cmp -s $cache_file confcache; then
1768 if test -w $cache_file; then
1769 echo "updating cache $cache_file"
1770 cat confcache > $cache_file
1772 echo "not updating unwritable cache $cache_file"
1778 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1779 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1780 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1781 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
1782 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
1783 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
1784 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
1785 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1786 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
1787 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1789 # Reload cache, that may have been modified by ltconfig
1790 if test -r "$cache_file"; then
1791 echo "loading cache $cache_file"
1794 echo "creating cache $cache_file"
1799 # This can be used to rebuild libtool when needed
1800 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
1802 # Always use our own libtool.
1803 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1805 # Redirect the config.log output again, so that the ltconfig log is not
1806 # clobbered by the next message.
1807 exec 5>>./config.log
1817 if test "$RANLIB"; then :
1820 # Extract the first word of "ranlib", so it can be a program name with args.
1821 set dummy ranlib; ac_word=$2
1822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1823 echo "configure:1824: checking for $ac_word" >&5
1824 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1827 if test -n "$RANLIB"; then
1828 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1832 for ac_dir in $ac_dummy; do
1833 test -z "$ac_dir" && ac_dir=.
1834 if test -f $ac_dir/$ac_word; then
1835 ac_cv_prog_RANLIB="ranlib"
1840 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1843 RANLIB="$ac_cv_prog_RANLIB"
1844 if test -n "$RANLIB"; then
1845 echo "$ac_t""$RANLIB" 1>&6
1847 echo "$ac_t""no" 1>&6
1851 # Find a good install program. We prefer a C program (faster),
1852 # so one script is as good as another. But avoid the broken or
1853 # incompatible versions:
1854 # SysV /etc/install, /usr/sbin/install
1855 # SunOS /usr/etc/install
1856 # IRIX /sbin/install
1858 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1859 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1860 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1861 # ./install, which can be erroneously created by make from ./install.sh.
1862 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1863 echo "configure:1864: checking for a BSD compatible install" >&5
1864 if test -z "$INSTALL"; then
1865 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1866 echo $ac_n "(cached) $ac_c" 1>&6
1868 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1869 for ac_dir in $PATH; do
1870 # Account for people who put trailing slashes in PATH elements.
1872 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1874 # OSF1 and SCO ODT 3.0 have their own names for install.
1875 # Don't use installbsd from OSF since it installs stuff as root
1877 for ac_prog in ginstall scoinst install; do
1878 if test -f $ac_dir/$ac_prog; then
1879 if test $ac_prog = install &&
1880 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1881 # AIX install. It has an incompatible calling convention.
1884 ac_cv_path_install="$ac_dir/$ac_prog -c"
1895 if test "${ac_cv_path_install+set}" = set; then
1896 INSTALL="$ac_cv_path_install"
1898 # As a last resort, use the slow shell script. We don't cache a
1899 # path for INSTALL within a source directory, because that will
1900 # break other packages using the cache if that directory is
1901 # removed, or if the path is relative.
1902 INSTALL="$ac_install_sh"
1905 echo "$ac_t""$INSTALL" 1>&6
1907 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1908 # It thinks the first close brace ends the variable substitution.
1909 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1911 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1913 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1915 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1916 echo "configure:1917: checking whether ${MAKE-make} sets \${MAKE}" >&5
1917 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1918 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1921 cat > conftestmake <<\EOF
1923 @echo 'ac_maketemp="${MAKE}"'
1925 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1926 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1927 if test -n "$ac_maketemp"; then
1928 eval ac_cv_prog_make_${ac_make}_set=yes
1930 eval ac_cv_prog_make_${ac_make}_set=no
1934 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1935 echo "$ac_t""yes" 1>&6
1938 echo "$ac_t""no" 1>&6
1939 SET_MAKE="MAKE=${MAKE-make}"
1943 # Sanity check for the cross-compilation case:
1944 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1945 echo "configure:1946: checking how to run the C preprocessor" >&5
1946 # On Suns, sometimes $CPP names a directory.
1947 if test -n "$CPP" && test -d "$CPP"; then
1950 if test -z "$CPP"; then
1951 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1954 # This must be in double quotes, not single quotes, because CPP may get
1955 # substituted into the Makefile and "${CC-cc}" will confuse make.
1957 # On the NeXT, cc -E runs the code through the compiler's parser,
1958 # not just through cpp.
1959 cat > conftest.$ac_ext <<EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1966 { (eval echo configure:1967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1967 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1968 if test -z "$ac_err"; then
1972 echo "configure: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1975 CPP="${CC-cc} -E -traditional-cpp"
1976 cat > conftest.$ac_ext <<EOF
1977 #line 1978 "configure"
1978 #include "confdefs.h"
1982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1983 { (eval echo configure:1984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1985 if test -z "$ac_err"; then
1989 echo "configure: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1992 CPP="${CC-cc} -nologo -E"
1993 cat > conftest.$ac_ext <<EOF
1994 #line 1995 "configure"
1995 #include "confdefs.h"
1999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2000 { (eval echo configure:2001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2002 if test -z "$ac_err"; then
2006 echo "configure: failed program was:" >&5
2007 cat conftest.$ac_ext >&5
2016 ac_cv_prog_CPP="$CPP"
2018 CPP="$ac_cv_prog_CPP"
2020 ac_cv_prog_CPP="$CPP"
2022 echo "$ac_t""$CPP" 1>&6
2024 ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'`
2025 echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
2026 echo "configure:2027: checking for stdio.h" >&5
2027 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2030 cat > conftest.$ac_ext <<EOF
2031 #line 2032 "configure"
2032 #include "confdefs.h"
2035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2036 { (eval echo configure:2037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2038 if test -z "$ac_err"; then
2040 eval "ac_cv_header_$ac_safe=yes"
2043 echo "configure: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2046 eval "ac_cv_header_$ac_safe=no"
2050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2051 echo "$ac_t""yes" 1>&6
2054 echo "$ac_t""no" 1>&6
2055 { echo "configure: error: Can't find stdio.h.
2056 You must have a usable C system for the target already installed, at least
2057 including headers and, preferably, the library, before you can configure
2058 the G77 runtime system. If necessary, install gcc now with \`LANGUAGES=c',
2059 then the target library, then build with \`LANGUAGES=f77'." 1>&2; exit 1; }
2063 echo $ac_n "checking for built-in g77 integer types""... $ac_c" 1>&6
2064 echo "configure:2065: checking for built-in g77 integer types" >&5
2065 if eval "test \"`echo '$''{'libf2c_cv_has_g77_builtin_types'+set}'`\" = set"; then
2066 echo $ac_n "(cached) $ac_c" 1>&6
2068 cat > conftest.$ac_ext <<EOF
2069 #line 2070 "configure"
2070 #include "confdefs.h"
2074 __g77_uinteger g77ui;
2076 __g77_ulongint g77ul;
2079 if { (eval echo configure:2080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2081 libf2c_cv_has_g77_builtin_types=yes
2083 echo "configure: failed program was:" >&5
2084 cat conftest.$ac_ext >&5
2086 libf2c_cv_has_g77_builtin_types=no
2091 echo "$ac_t""$libf2c_cv_has_g77_builtin_types" 1>&6
2092 if test $libf2c_cv_has_g77_builtin_types = no; then
2093 { echo "configure: error: gcc doesn't define all of the built in types __g77_integer,
2094 __g77_uinteger, __g77_longint, and __g77_ulongint. You may not be using
2095 a new enough version of gcc, or your target may not have type sizes which
2096 accommodate those types." 1>&2; exit 1; }
2099 # avoid confusion in case the `makefile's from the f2c distribution have
2101 test -f libF77/makefile && mv libF77/makefile libF77/makefile.ori
2102 test -f libI77/makefile && mv libI77/makefile libI77/makefile.ori
2103 test -f libU77/makefile && mv libU77/makefile libU77/makefile.ori
2105 # Get the version trigger filename from the toplevel
2106 if [ "${with_gcc_version_trigger+set}" = set ]; then
2107 gcc_version_trigger=$with_gcc_version_trigger
2108 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
2110 gcc_version_trigger=
2117 # Do some error checking and defaulting for the host and target type.
2119 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
2122 # 1. You are not allowed to specify --host, --target, and nonopt at the
2124 # 2. Host defaults to nonopt.
2125 # 3. If nonopt is not specified, then host defaults to the current host,
2126 # as determined by config.guess.
2127 # 4. Target and build default to nonopt.
2128 # 5. If nonopt is not specified, then target and build default to host.
2130 # The aliases save the names the user supplied, while $host etc.
2131 # will get canonicalized.
2132 case $host---$target---$nonopt in
2133 NONE---*---* | *---NONE---* | *---*---NONE) ;;
2134 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
2138 # Make sure we can run config.sub.
2139 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
2140 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
2143 echo $ac_n "checking host system type""... $ac_c" 1>&6
2144 echo "configure:2145: checking host system type" >&5
2147 case "$host_alias" in
2151 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
2152 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
2154 *) host_alias=$nonopt ;;
2158 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
2159 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2160 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2161 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2162 echo "$ac_t""$host" 1>&6
2164 echo $ac_n "checking target system type""... $ac_c" 1>&6
2165 echo "configure:2166: checking target system type" >&5
2167 target_alias=$target
2168 case "$target_alias" in
2171 NONE) target_alias=$host_alias ;;
2172 *) target_alias=$nonopt ;;
2176 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
2177 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2178 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2179 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2180 echo "$ac_t""$target" 1>&6
2182 echo $ac_n "checking build system type""... $ac_c" 1>&6
2183 echo "configure:2184: checking build system type" >&5
2186 case "$build_alias" in
2189 NONE) build_alias=$host_alias ;;
2190 *) build_alias=$nonopt ;;
2194 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
2195 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2196 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2197 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2198 echo "$ac_t""$build" 1>&6
2200 test "$host_alias" != "$target_alias" &&
2201 test "$program_prefix$program_suffix$program_transform_name" = \
2203 program_prefix=${target_alias}-
2206 subdirs="libU77 libI77 libF77"
2208 # Do Makefile first since g2c.h depends on it and shouldn't get an
2209 # earlier timestamp. Of course, it does when the multilib gunk below
2210 # edits Makefile, sigh; see additional touch below.
2212 cat > confcache <<\EOF
2213 # This file is a shell script that caches the results of configure
2214 # tests run on this system so they can be shared between configure
2215 # scripts and configure runs. It is not useful on other systems.
2216 # If it contains results you don't want to keep, you may remove or edit it.
2218 # By default, configure uses ./config.cache as the cache file,
2219 # creating it if it does not exist already. You can give configure
2220 # the --cache-file=FILE option to use a different cache file; that is
2221 # what configure does when it calls configure scripts in
2222 # subdirectories, so they share the cache.
2223 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2224 # config.status only pays attention to the cache file if you give it the
2225 # --recheck option to rerun configure.
2228 # The following way of writing the cache mishandles newlines in values,
2229 # but we know of no workaround that is simple, portable, and efficient.
2230 # So, don't put newlines in cache variables' values.
2231 # Ultrix sh set writes to stderr and can't be redirected directly,
2232 # and sets the high bit in the cache file unless we assign to the vars.
2234 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2236 # `set' does not quote correctly, so add quotes (double-quote substitution
2237 # turns \\\\ into \\, and sed turns \\ into \).
2239 -e "s/'/'\\\\''/g" \
2240 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2243 # `set' quotes correctly as required by POSIX, so do not add quotes.
2244 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2247 if cmp -s $cache_file confcache; then
2250 if test -w $cache_file; then
2251 echo "updating cache $cache_file"
2252 cat confcache > $cache_file
2254 echo "not updating unwritable cache $cache_file"
2259 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2261 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2262 # Let make expand exec_prefix.
2263 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2265 # Any assignment to VPATH causes Sun make to only execute
2266 # the first set of double-colon rules, so remove it if not needed.
2267 # If there is a colon in the path, we need to keep it.
2268 if test "x$srcdir" = x.; then
2269 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2272 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2274 # Transform confdefs.h into DEFS.
2275 # Protect against shell expansion while executing Makefile rules.
2276 # Protect against Makefile macro expansion.
2277 cat > conftest.defs <<\EOF
2278 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2279 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2284 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2288 # Without the "./", some shells look in PATH for config.status.
2289 : ${CONFIG_STATUS=./config.status}
2291 echo creating $CONFIG_STATUS
2292 rm -f $CONFIG_STATUS
2293 cat > $CONFIG_STATUS <<EOF
2295 # Generated automatically by configure.
2296 # Run this file to recreate the current configuration.
2297 # This directory was configured as follows,
2298 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2300 # $0 $ac_configure_args
2302 # Compiler output produced by configure, useful for debugging
2303 # configure, is in ./config.log if it exists.
2305 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2308 case "\$ac_option" in
2309 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2310 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2311 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2312 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2313 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2315 -help | --help | --hel | --he | --h)
2316 echo "\$ac_cs_usage"; exit 0 ;;
2317 *) echo "\$ac_cs_usage"; exit 1 ;;
2321 ac_given_srcdir=$srcdir
2322 ac_given_INSTALL="$INSTALL"
2324 trap 'rm -fr `echo "Makefile g2c.h:g2c.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2326 cat >> $CONFIG_STATUS <<EOF
2328 # Protect against being on the right side of a sed subst in config.status.
2329 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2330 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2334 s%@CFLAGS@%$CFLAGS%g
2335 s%@CPPFLAGS@%$CPPFLAGS%g
2336 s%@CXXFLAGS@%$CXXFLAGS%g
2337 s%@FFLAGS@%$FFLAGS%g
2339 s%@LDFLAGS@%$LDFLAGS%g
2341 s%@exec_prefix@%$exec_prefix%g
2342 s%@prefix@%$prefix%g
2343 s%@program_transform_name@%$program_transform_name%g
2344 s%@bindir@%$bindir%g
2345 s%@sbindir@%$sbindir%g
2346 s%@libexecdir@%$libexecdir%g
2347 s%@datadir@%$datadir%g
2348 s%@sysconfdir@%$sysconfdir%g
2349 s%@sharedstatedir@%$sharedstatedir%g
2350 s%@localstatedir@%$localstatedir%g
2351 s%@libdir@%$libdir%g
2352 s%@includedir@%$includedir%g
2353 s%@oldincludedir@%$oldincludedir%g
2354 s%@infodir@%$infodir%g
2355 s%@mandir@%$mandir%g
2358 s%@host_alias@%$host_alias%g
2359 s%@host_cpu@%$host_cpu%g
2360 s%@host_vendor@%$host_vendor%g
2361 s%@host_os@%$host_os%g
2363 s%@build_alias@%$build_alias%g
2364 s%@build_cpu@%$build_cpu%g
2365 s%@build_vendor@%$build_vendor%g
2366 s%@build_os@%$build_os%g
2368 s%@OBJEXT@%$OBJEXT%g
2369 s%@EXEEXT@%$EXEEXT%g
2370 s%@RANLIB@%$RANLIB%g
2372 s%@LIBTOOL@%$LIBTOOL%g
2374 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2375 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2376 s%@INSTALL_DATA@%$INSTALL_DATA%g
2377 s%@SET_MAKE@%$SET_MAKE%g
2379 s%@gcc_version@%$gcc_version%g
2380 s%@gcc_version_trigger@%$gcc_version_trigger%g
2381 s%@target@%$target%g
2382 s%@target_alias@%$target_alias%g
2383 s%@target_cpu@%$target_cpu%g
2384 s%@target_vendor@%$target_vendor%g
2385 s%@target_os@%$target_os%g
2386 s%@subdirs@%$subdirs%g
2391 cat >> $CONFIG_STATUS <<\EOF
2393 # Split the substitutions into bite-sized pieces for seds with
2394 # small command number limits, like on Digital OSF/1 and HP-UX.
2395 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2396 ac_file=1 # Number of current file.
2397 ac_beg=1 # First line for current file.
2398 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2401 while $ac_more_lines; do
2402 if test $ac_beg -gt 1; then
2403 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2405 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2407 if test ! -s conftest.s$ac_file; then
2409 rm -f conftest.s$ac_file
2411 if test -z "$ac_sed_cmds"; then
2412 ac_sed_cmds="sed -f conftest.s$ac_file"
2414 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2416 ac_file=`expr $ac_file + 1`
2418 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2421 if test -z "$ac_sed_cmds"; then
2426 cat >> $CONFIG_STATUS <<EOF
2428 CONFIG_FILES=\${CONFIG_FILES-"Makefile g2c.h:g2c.hin"}
2430 cat >> $CONFIG_STATUS <<\EOF
2431 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2432 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2434 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2435 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2436 *) ac_file_in="${ac_file}.in" ;;
2439 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2441 # Remove last slash and all that follows it. Not all systems have dirname.
2442 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2443 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2444 # The file is in a subdirectory.
2445 test ! -d "$ac_dir" && mkdir "$ac_dir"
2446 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2447 # A "../" for each directory in $ac_dir_suffix.
2448 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2450 ac_dir_suffix= ac_dots=
2453 case "$ac_given_srcdir" in
2455 if test -z "$ac_dots"; then top_srcdir=.
2456 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2457 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2459 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2460 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2463 case "$ac_given_INSTALL" in
2464 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2465 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2468 echo creating "$ac_file"
2470 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2472 *Makefile*) ac_comsub="1i\\
2473 # $configure_input" ;;
2477 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2479 s%@configure_input@%$configure_input%g
2480 s%@srcdir@%$srcdir%g
2481 s%@top_srcdir@%$top_srcdir%g
2482 s%@INSTALL@%$INSTALL%g
2483 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2488 cat >> $CONFIG_STATUS <<EOF
2492 with_target_subdir=${with_target_subdir}
2493 with_multisubdir=${with_multisubdir}
2494 ac_configure_args="--enable-multilib ${ac_configure_args}"
2495 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2496 topsrcdir=${topsrcdir}
2499 cat >> $CONFIG_STATUS <<\EOF
2500 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2501 if test -n "$CONFIG_FILES"; then
2502 if test -n "${with_target_subdir}"; then
2503 # FIXME: We shouldn't need to set ac_file
2505 . ${topsrcdir}/config-ml.in
2506 touch g2c.h # to keep it more recent than Makefile
2511 chmod +x $CONFIG_STATUS
2512 rm -fr confdefs* $ac_clean_files
2513 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2515 if test "$no_recursion" != yes; then
2517 # Remove --cache-file and --srcdir arguments so they do not pile up.
2518 ac_sub_configure_args=
2520 for ac_arg in $ac_configure_args; do
2521 if test -n "$ac_prev"; then
2526 -cache-file | --cache-file | --cache-fil | --cache-fi \
2527 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2528 ac_prev=cache_file ;;
2529 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2530 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2532 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2534 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2536 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2540 for ac_config_dir in libU77 libI77 libF77; do
2542 # Do not complain, so a configure script can configure whichever
2543 # parts of a large source tree are present.
2544 if test ! -d $srcdir/$ac_config_dir; then
2548 echo configuring in $ac_config_dir
2553 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2555 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2563 # A "../" for each directory in /$ac_config_dir.
2564 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2567 .) # No --srcdir option. We are building in place.
2568 ac_sub_srcdir=$srcdir ;;
2569 /*) # Absolute path.
2570 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2572 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2575 # Check for guested configure; otherwise get Cygnus style configure.
2576 if test -f $ac_sub_srcdir/configure; then
2577 ac_sub_configure=$ac_sub_srcdir/configure
2578 elif test -f $ac_sub_srcdir/configure.in; then
2579 ac_sub_configure=$ac_configure
2581 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2585 # The recursion is here.
2586 if test -n "$ac_sub_configure"; then
2588 # Make the cache file name correct relative to the subdirectory.
2589 case "$cache_file" in
2590 /*) ac_sub_cache_file=$cache_file ;;
2592 ac_sub_cache_file="$ac_dots$cache_file" ;;
2594 case "$ac_given_INSTALL" in
2595 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2596 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2599 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2600 # The eval makes quoting arguments work.
2601 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2604 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }