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-html-doc build HTML documentation [default=yes]"
17 --enable-ps-doc build PostScript documentation [default=yes]"
19 --enable-maintainer-mode enable make rules and dependencies not useful
20 (and sometimes confusing) to the casual installer"
22 --enable-shared[=PKGS] build shared libraries [default=yes]"
24 --enable-static[=PKGS] build static libraries [default=yes]"
26 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
28 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
30 --disable-libtool-lock avoid locking (might break parallel builds)"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file=./config.cache
45 program_transform_name=s,x,x,
53 bindir='${exec_prefix}/bin'
54 sbindir='${exec_prefix}/sbin'
55 libexecdir='${exec_prefix}/libexec'
56 datadir='${prefix}/share'
57 sysconfdir='${prefix}/etc'
58 sharedstatedir='${prefix}/com'
59 localstatedir='${prefix}/var'
60 libdir='${exec_prefix}/lib'
61 includedir='${prefix}/include'
62 oldincludedir='/usr/include'
63 infodir='${prefix}/info'
64 mandir='${prefix}/man'
66 # Initialize some other variables.
69 SHELL=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
98 -build | --build | --buil | --bui | --bu)
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114 datadir="$ac_optarg" ;;
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host | --host | --hos | --ho)
208 -host=* | --host=* | --hos=* | --ho=*)
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
329 -site=* | --site=* | --sit=*)
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
344 -target | --target | --targe | --targ | --tar | --ta | --t)
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.13"
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=ginac/basic.cpp
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
528 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
537 ac_n= ac_c='\c' ac_t=
543 # Check whether --enable-html-doc or --disable-html-doc was given.
544 if test "${enable_html_doc+set}" = set; then
545 enableval="$enable_html_doc"
551 # Check whether --enable-ps-doc or --disable-ps-doc was given.
552 if test "${enable_ps_doc+set}" = set; then
553 enableval="$enable_ps_doc"
561 GINACLIB_MAJOR_VERSION=0
562 GINACLIB_MINOR_VERSION=4
563 GINACLIB_MICRO_VERSION=1
564 GINACLIB_INTERFACE_AGE=0
565 GINACLIB_BINARY_AGE=1
566 GINACLIB_VERSION=$GINACLIB_MAJOR_VERSION.$GINACLIB_MINOR_VERSION.$GINACLIB_MICRO_VERSION
581 cat >> confdefs.h <<EOF
582 #define ARCHIVE_VERSION $ARCHIVE_VERSION
585 cat >> confdefs.h <<EOF
586 #define ARCHIVE_AGE $ARCHIVE_AGE
590 LT_RELEASE=$GINACLIB_MAJOR_VERSION.$GINACLIB_MINOR_VERSION
591 LT_CURRENT=`expr $GINACLIB_MICRO_VERSION - $GINACLIB_INTERFACE_AGE`
592 LT_REVISION=$GINACLIB_INTERFACE_AGE
593 LT_AGE=`expr $GINACLIB_BINARY_AGE - $GINACLIB_INTERFACE_AGE`
604 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
605 if test -f $ac_dir/install-sh; then
607 ac_install_sh="$ac_aux_dir/install-sh -c"
609 elif test -f $ac_dir/install.sh; then
611 ac_install_sh="$ac_aux_dir/install.sh -c"
615 if test -z "$ac_aux_dir"; then
616 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
618 ac_config_guess=$ac_aux_dir/config.guess
619 ac_config_sub=$ac_aux_dir/config.sub
620 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
622 # Find a good install program. We prefer a C program (faster),
623 # so one script is as good as another. But avoid the broken or
624 # incompatible versions:
625 # SysV /etc/install, /usr/sbin/install
626 # SunOS /usr/etc/install
629 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
630 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
631 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
632 # ./install, which can be erroneously created by make from ./install.sh.
633 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
634 echo "configure:635: checking for a BSD compatible install" >&5
635 if test -z "$INSTALL"; then
636 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
637 echo $ac_n "(cached) $ac_c" 1>&6
639 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
640 for ac_dir in $PATH; do
641 # Account for people who put trailing slashes in PATH elements.
643 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
645 # OSF1 and SCO ODT 3.0 have their own names for install.
646 # Don't use installbsd from OSF since it installs stuff as root
648 for ac_prog in ginstall scoinst install; do
649 if test -f $ac_dir/$ac_prog; then
650 if test $ac_prog = install &&
651 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
652 # AIX install. It has an incompatible calling convention.
655 ac_cv_path_install="$ac_dir/$ac_prog -c"
666 if test "${ac_cv_path_install+set}" = set; then
667 INSTALL="$ac_cv_path_install"
669 # As a last resort, use the slow shell script. We don't cache a
670 # path for INSTALL within a source directory, because that will
671 # break other packages using the cache if that directory is
672 # removed, or if the path is relative.
673 INSTALL="$ac_install_sh"
676 echo "$ac_t""$INSTALL" 1>&6
678 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
679 # It thinks the first close brace ends the variable substitution.
680 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
682 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
684 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
686 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
687 echo "configure:688: checking whether build environment is sane" >&5
690 echo timestamp > conftestfile
691 # Do `set' in a subshell so we don't clobber the current shell's
692 # arguments. Must try -L first in case configure is actually a
693 # symlink; some systems play weird games with the mod time of symlinks
694 # (eg FreeBSD returns the mod time of the symlink's containing
697 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
698 if test "$*" = "X"; then
700 set X `ls -t $srcdir/configure conftestfile`
702 if test "$*" != "X $srcdir/configure conftestfile" \
703 && test "$*" != "X conftestfile $srcdir/configure"; then
705 # If neither matched, then we have a broken ls. This can happen
706 # if, for instance, CONFIG_SHELL is bash and it inherits a
707 # broken ls alias from the environment. This has actually
708 # happened. Such a system could not be considered "sane".
709 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
710 alias in your environment" 1>&2; exit 1; }
713 test "$2" = conftestfile
719 { echo "configure: error: newly created file is older than distributed files!
720 Check your system clock" 1>&2; exit 1; }
723 echo "$ac_t""yes" 1>&6
724 if test "$program_transform_name" = s,x,x,; then
725 program_transform_name=
727 # Double any \ or $. echo might interpret backslashes.
728 cat <<\EOF_SED > conftestsed
729 s,\\,\\\\,g; s,\$,$$,g
731 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
734 test "$program_prefix" != NONE &&
735 program_transform_name="s,^,${program_prefix},; $program_transform_name"
736 # Use a double $ so make ignores it.
737 test "$program_suffix" != NONE &&
738 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
740 # sed with no file args requires a program.
741 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
743 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
744 echo "configure:745: checking whether ${MAKE-make} sets \${MAKE}" >&5
745 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
746 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
747 echo $ac_n "(cached) $ac_c" 1>&6
749 cat > conftestmake <<\EOF
751 @echo 'ac_maketemp="${MAKE}"'
753 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
754 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
755 if test -n "$ac_maketemp"; then
756 eval ac_cv_prog_make_${ac_make}_set=yes
758 eval ac_cv_prog_make_${ac_make}_set=no
762 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
763 echo "$ac_t""yes" 1>&6
766 echo "$ac_t""no" 1>&6
767 SET_MAKE="MAKE=${MAKE-make}"
773 VERSION=$GINACLIB_VERSION
775 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
776 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
778 cat >> confdefs.h <<EOF
779 #define PACKAGE "$PACKAGE"
782 cat >> confdefs.h <<EOF
783 #define VERSION "$VERSION"
788 missing_dir=`cd $ac_aux_dir && pwd`
789 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
790 echo "configure:791: checking for working aclocal" >&5
791 # Run test in a subshell; some versions of sh will print an error if
792 # an executable is not found, even if stderr is redirected.
793 # Redirect stdin to placate older versions of autoconf. Sigh.
794 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
796 echo "$ac_t""found" 1>&6
798 ACLOCAL="$missing_dir/missing aclocal"
799 echo "$ac_t""missing" 1>&6
802 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
803 echo "configure:804: checking for working autoconf" >&5
804 # Run test in a subshell; some versions of sh will print an error if
805 # an executable is not found, even if stderr is redirected.
806 # Redirect stdin to placate older versions of autoconf. Sigh.
807 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
809 echo "$ac_t""found" 1>&6
811 AUTOCONF="$missing_dir/missing autoconf"
812 echo "$ac_t""missing" 1>&6
815 echo $ac_n "checking for working automake""... $ac_c" 1>&6
816 echo "configure:817: checking for working automake" >&5
817 # Run test in a subshell; some versions of sh will print an error if
818 # an executable is not found, even if stderr is redirected.
819 # Redirect stdin to placate older versions of autoconf. Sigh.
820 if (automake --version) < /dev/null > /dev/null 2>&1; then
822 echo "$ac_t""found" 1>&6
824 AUTOMAKE="$missing_dir/missing automake"
825 echo "$ac_t""missing" 1>&6
828 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
829 echo "configure:830: checking for working autoheader" >&5
830 # Run test in a subshell; some versions of sh will print an error if
831 # an executable is not found, even if stderr is redirected.
832 # Redirect stdin to placate older versions of autoconf. Sigh.
833 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
834 AUTOHEADER=autoheader
835 echo "$ac_t""found" 1>&6
837 AUTOHEADER="$missing_dir/missing autoheader"
838 echo "$ac_t""missing" 1>&6
841 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
842 echo "configure:843: checking for working makeinfo" >&5
843 # Run test in a subshell; some versions of sh will print an error if
844 # an executable is not found, even if stderr is redirected.
845 # Redirect stdin to placate older versions of autoconf. Sigh.
846 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
848 echo "$ac_t""found" 1>&6
850 MAKEINFO="$missing_dir/missing makeinfo"
851 echo "$ac_t""missing" 1>&6
855 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
856 echo "configure:857: checking whether to enable maintainer-specific portions of Makefiles" >&5
857 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
858 if test "${enable_maintainer_mode+set}" = set; then
859 enableval="$enable_maintainer_mode"
860 USE_MAINTAINER_MODE=$enableval
862 USE_MAINTAINER_MODE=no
865 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
868 if test $USE_MAINTAINER_MODE = yes; then
869 MAINTAINER_MODE_TRUE=
870 MAINTAINER_MODE_FALSE='#'
872 MAINTAINER_MODE_TRUE='#'
873 MAINTAINER_MODE_FALSE=
875 MAINT=$MAINTAINER_MODE_TRUE
879 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
881 # Extract the first word of "$ac_prog", so it can be a program name with args.
882 set dummy $ac_prog; ac_word=$2
883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
884 echo "configure:885: checking for $ac_word" >&5
885 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
886 echo $ac_n "(cached) $ac_c" 1>&6
888 if test -n "$CXX"; then
889 ac_cv_prog_CXX="$CXX" # Let the user override the test.
891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
893 for ac_dir in $ac_dummy; do
894 test -z "$ac_dir" && ac_dir=.
895 if test -f $ac_dir/$ac_word; then
896 ac_cv_prog_CXX="$ac_prog"
903 CXX="$ac_cv_prog_CXX"
904 if test -n "$CXX"; then
905 echo "$ac_t""$CXX" 1>&6
907 echo "$ac_t""no" 1>&6
910 test -n "$CXX" && break
912 test -n "$CXX" || CXX="gcc"
915 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
916 echo "configure:917: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
919 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
920 ac_cpp='$CXXCPP $CPPFLAGS'
921 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
922 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
923 cross_compiling=$ac_cv_prog_cxx_cross
925 cat > conftest.$ac_ext << EOF
927 #line 928 "configure"
928 #include "confdefs.h"
930 int main(){return(0);}
932 if { (eval echo configure:933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
933 ac_cv_prog_cxx_works=yes
934 # If we can't run a trivial program, we are probably using a cross compiler.
935 if (./conftest; exit) 2>/dev/null; then
936 ac_cv_prog_cxx_cross=no
938 ac_cv_prog_cxx_cross=yes
941 echo "configure: failed program was:" >&5
942 cat conftest.$ac_ext >&5
943 ac_cv_prog_cxx_works=no
947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
948 ac_cpp='$CPP $CPPFLAGS'
949 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
950 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
951 cross_compiling=$ac_cv_prog_cc_cross
953 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
954 if test $ac_cv_prog_cxx_works = no; then
955 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
957 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
958 echo "configure:959: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
959 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
960 cross_compiling=$ac_cv_prog_cxx_cross
962 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
963 echo "configure:964: checking whether we are using GNU C++" >&5
964 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 cat > conftest.C <<EOF
972 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
979 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
981 if test $ac_cv_prog_gxx = yes; then
987 ac_test_CXXFLAGS="${CXXFLAGS+set}"
988 ac_save_CXXFLAGS="$CXXFLAGS"
990 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
991 echo "configure:992: checking whether ${CXX-g++} accepts -g" >&5
992 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 echo 'void f(){}' > conftest.cc
996 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1005 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1006 if test "$ac_test_CXXFLAGS" = set; then
1007 CXXFLAGS="$ac_save_CXXFLAGS"
1008 elif test $ac_cv_prog_cxx_g = yes; then
1009 if test "$GXX" = yes; then
1015 if test "$GXX" = yes; then
1022 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1023 echo "configure:1024: checking how to run the C++ preprocessor" >&5
1024 if test -z "$CXXCPP"; then
1025 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1029 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1030 ac_cpp='$CXXCPP $CPPFLAGS'
1031 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1032 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1033 cross_compiling=$ac_cv_prog_cxx_cross
1034 CXXCPP="${CXX-g++} -E"
1035 cat > conftest.$ac_ext <<EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1041 { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1043 if test -z "$ac_err"; then
1047 echo "configure: failed program was:" >&5
1048 cat conftest.$ac_ext >&5
1053 ac_cv_prog_CXXCPP="$CXXCPP"
1055 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1056 ac_cpp='$CPP $CPPFLAGS'
1057 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1058 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1059 cross_compiling=$ac_cv_prog_cc_cross
1062 CXXCPP="$ac_cv_prog_CXXCPP"
1063 echo "$ac_t""$CXXCPP" 1>&6
1065 # Find a good install program. We prefer a C program (faster),
1066 # so one script is as good as another. But avoid the broken or
1067 # incompatible versions:
1068 # SysV /etc/install, /usr/sbin/install
1069 # SunOS /usr/etc/install
1070 # IRIX /sbin/install
1072 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1073 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1074 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1075 # ./install, which can be erroneously created by make from ./install.sh.
1076 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1077 echo "configure:1078: checking for a BSD compatible install" >&5
1078 if test -z "$INSTALL"; then
1079 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1082 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1083 for ac_dir in $PATH; do
1084 # Account for people who put trailing slashes in PATH elements.
1086 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1088 # OSF1 and SCO ODT 3.0 have their own names for install.
1089 # Don't use installbsd from OSF since it installs stuff as root
1091 for ac_prog in ginstall scoinst install; do
1092 if test -f $ac_dir/$ac_prog; then
1093 if test $ac_prog = install &&
1094 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1095 # AIX install. It has an incompatible calling convention.
1098 ac_cv_path_install="$ac_dir/$ac_prog -c"
1109 if test "${ac_cv_path_install+set}" = set; then
1110 INSTALL="$ac_cv_path_install"
1112 # As a last resort, use the slow shell script. We don't cache a
1113 # path for INSTALL within a source directory, because that will
1114 # break other packages using the cache if that directory is
1115 # removed, or if the path is relative.
1116 INSTALL="$ac_install_sh"
1119 echo "$ac_t""$INSTALL" 1>&6
1121 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1122 # It thinks the first close brace ends the variable substitution.
1123 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1125 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1127 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1129 # Check whether --enable-shared or --disable-shared was given.
1130 if test "${enable_shared+set}" = set; then
1131 enableval="$enable_shared"
1132 p=${PACKAGE-default}
1133 case "$enableval" in
1134 yes) enable_shared=yes ;;
1135 no) enable_shared=no ;;
1138 # Look at the argument we got. We use all the common list separators.
1139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1140 for pkg in $enableval; do
1141 if test "X$pkg" = "X$p"; then
1152 # Check whether --enable-static or --disable-static was given.
1153 if test "${enable_static+set}" = set; then
1154 enableval="$enable_static"
1155 p=${PACKAGE-default}
1156 case "$enableval" in
1157 yes) enable_static=yes ;;
1158 no) enable_static=no ;;
1161 # Look at the argument we got. We use all the common list separators.
1162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1163 for pkg in $enableval; do
1164 if test "X$pkg" = "X$p"; then
1175 # Check whether --enable-fast-install or --disable-fast-install was given.
1176 if test "${enable_fast_install+set}" = set; then
1177 enableval="$enable_fast_install"
1178 p=${PACKAGE-default}
1179 case "$enableval" in
1180 yes) enable_fast_install=yes ;;
1181 no) enable_fast_install=no ;;
1183 enable_fast_install=no
1184 # Look at the argument we got. We use all the common list separators.
1185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1186 for pkg in $enableval; do
1187 if test "X$pkg" = "X$p"; then
1188 enable_fast_install=yes
1195 enable_fast_install=yes
1199 # Make sure we can run config.sub.
1200 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1201 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1204 echo $ac_n "checking host system type""... $ac_c" 1>&6
1205 echo "configure:1206: checking host system type" >&5
1208 case "$host_alias" in
1212 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1213 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1215 *) host_alias=$nonopt ;;
1219 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1220 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1221 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1222 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1223 echo "$ac_t""$host" 1>&6
1225 echo $ac_n "checking build system type""... $ac_c" 1>&6
1226 echo "configure:1227: checking build system type" >&5
1229 case "$build_alias" in
1232 NONE) build_alias=$host_alias ;;
1233 *) build_alias=$nonopt ;;
1237 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1238 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1239 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1240 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1241 echo "$ac_t""$build" 1>&6
1243 # Extract the first word of "ranlib", so it can be a program name with args.
1244 set dummy ranlib; ac_word=$2
1245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1246 echo "configure:1247: checking for $ac_word" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 if test -n "$RANLIB"; then
1251 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1255 for ac_dir in $ac_dummy; do
1256 test -z "$ac_dir" && ac_dir=.
1257 if test -f $ac_dir/$ac_word; then
1258 ac_cv_prog_RANLIB="ranlib"
1263 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1266 RANLIB="$ac_cv_prog_RANLIB"
1267 if test -n "$RANLIB"; then
1268 echo "$ac_t""$RANLIB" 1>&6
1270 echo "$ac_t""no" 1>&6
1273 # Extract the first word of "gcc", so it can be a program name with args.
1274 set dummy gcc; ac_word=$2
1275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1276 echo "configure:1277: checking for $ac_word" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1280 if test -n "$CC"; then
1281 ac_cv_prog_CC="$CC" # Let the user override the test.
1283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1285 for ac_dir in $ac_dummy; do
1286 test -z "$ac_dir" && ac_dir=.
1287 if test -f $ac_dir/$ac_word; then
1296 if test -n "$CC"; then
1297 echo "$ac_t""$CC" 1>&6
1299 echo "$ac_t""no" 1>&6
1302 if test -z "$CC"; then
1303 # Extract the first word of "cc", so it can be a program name with args.
1304 set dummy cc; ac_word=$2
1305 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1306 echo "configure:1307: checking for $ac_word" >&5
1307 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 if test -n "$CC"; then
1311 ac_cv_prog_CC="$CC" # Let the user override the test.
1313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1316 for ac_dir in $ac_dummy; do
1317 test -z "$ac_dir" && ac_dir=.
1318 if test -f $ac_dir/$ac_word; then
1319 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1320 ac_prog_rejected=yes
1328 if test $ac_prog_rejected = yes; then
1329 # We found a bogon in the path, so make sure we never use it.
1330 set dummy $ac_cv_prog_CC
1332 if test $# -gt 0; then
1333 # We chose a different compiler from the bogus one.
1334 # However, it has the same basename, so the bogon will be chosen
1335 # first if we set CC to just the basename; use the full file name.
1337 set dummy "$ac_dir/$ac_word" "$@"
1345 if test -n "$CC"; then
1346 echo "$ac_t""$CC" 1>&6
1348 echo "$ac_t""no" 1>&6
1351 if test -z "$CC"; then
1352 case "`uname -s`" in
1354 # Extract the first word of "cl", so it can be a program name with args.
1355 set dummy cl; ac_word=$2
1356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1357 echo "configure:1358: checking for $ac_word" >&5
1358 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1361 if test -n "$CC"; then
1362 ac_cv_prog_CC="$CC" # Let the user override the test.
1364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1366 for ac_dir in $ac_dummy; do
1367 test -z "$ac_dir" && ac_dir=.
1368 if test -f $ac_dir/$ac_word; then
1377 if test -n "$CC"; then
1378 echo "$ac_t""$CC" 1>&6
1380 echo "$ac_t""no" 1>&6
1385 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1388 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1389 echo "configure:1390: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1392 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1393 ac_cpp='$CPP $CPPFLAGS'
1394 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1395 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1396 cross_compiling=$ac_cv_prog_cc_cross
1398 cat > conftest.$ac_ext << EOF
1400 #line 1401 "configure"
1401 #include "confdefs.h"
1405 if { (eval echo configure:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1406 ac_cv_prog_cc_works=yes
1407 # If we can't run a trivial program, we are probably using a cross compiler.
1408 if (./conftest; exit) 2>/dev/null; then
1409 ac_cv_prog_cc_cross=no
1411 ac_cv_prog_cc_cross=yes
1414 echo "configure: failed program was:" >&5
1415 cat conftest.$ac_ext >&5
1416 ac_cv_prog_cc_works=no
1420 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1421 ac_cpp='$CPP $CPPFLAGS'
1422 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1423 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1424 cross_compiling=$ac_cv_prog_cc_cross
1426 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1427 if test $ac_cv_prog_cc_works = no; then
1428 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1430 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1431 echo "configure:1432: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1432 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1433 cross_compiling=$ac_cv_prog_cc_cross
1435 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1436 echo "configure:1437: checking whether we are using GNU C" >&5
1437 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1440 cat > conftest.c <<EOF
1445 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1452 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1454 if test $ac_cv_prog_gcc = yes; then
1460 ac_test_CFLAGS="${CFLAGS+set}"
1461 ac_save_CFLAGS="$CFLAGS"
1463 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1464 echo "configure:1465: checking whether ${CC-cc} accepts -g" >&5
1465 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1466 echo $ac_n "(cached) $ac_c" 1>&6
1468 echo 'void f(){}' > conftest.c
1469 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1478 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1479 if test "$ac_test_CFLAGS" = set; then
1480 CFLAGS="$ac_save_CFLAGS"
1481 elif test $ac_cv_prog_cc_g = yes; then
1482 if test "$GCC" = yes; then
1488 if test "$GCC" = yes; then
1495 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1496 if test "${with_gnu_ld+set}" = set; then
1497 withval="$with_gnu_ld"
1498 test "$withval" = no || with_gnu_ld=yes
1504 if test "$ac_cv_prog_gcc" = yes; then
1505 # Check if gcc -print-prog-name=ld gives a path.
1506 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1507 echo "configure:1508: checking for ld used by GCC" >&5
1508 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1510 # Accept absolute paths.
1511 [\\/]* | [A-Za-z]:[\\/]*)
1512 re_direlt='/[^/][^/]*/\.\./'
1513 # Canonicalize the path of ld
1514 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1515 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1516 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1518 test -z "$LD" && LD="$ac_prog"
1521 # If it fails, then pretend we aren't using GCC.
1525 # If it is relative, then search for the first ld in PATH.
1529 elif test "$with_gnu_ld" = yes; then
1530 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1531 echo "configure:1532: checking for GNU ld" >&5
1533 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1534 echo "configure:1535: checking for non-GNU ld" >&5
1536 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1539 if test -z "$LD"; then
1540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1541 for ac_dir in $PATH; do
1542 test -z "$ac_dir" && ac_dir=.
1543 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1544 ac_cv_path_LD="$ac_dir/$ac_prog"
1545 # Check to see if the program is GNU ld. I'd rather use --version,
1546 # but apparently some GNU ld's only accept -v.
1547 # Break only if it was the GNU/non-GNU ld that we prefer.
1548 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1549 test "$with_gnu_ld" != no && break
1551 test "$with_gnu_ld" != yes && break
1557 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1562 if test -n "$LD"; then
1563 echo "$ac_t""$LD" 1>&6
1565 echo "$ac_t""no" 1>&6
1567 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1569 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1570 echo "configure:1571: checking if the linker ($LD) is GNU ld" >&5
1571 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1574 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1575 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1576 ac_cv_prog_gnu_ld=yes
1578 ac_cv_prog_gnu_ld=no
1582 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1585 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1586 echo "configure:1587: checking for BSD-compatible nm" >&5
1587 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1590 if test -n "$NM"; then
1591 # Let the user override the test.
1594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1595 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1596 test -z "$ac_dir" && ac_dir=.
1597 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1598 # Check to see if the nm accepts a BSD-compat flag.
1599 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1600 # nm: unknown option "B" ignored
1601 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1602 ac_cv_path_NM="$ac_dir/nm -B"
1604 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1605 ac_cv_path_NM="$ac_dir/nm -p"
1608 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1609 continue # so that we can try to find one that supports BSD flags
1614 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1619 echo "$ac_t""$NM" 1>&6
1622 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1623 echo "configure:1624: checking whether ln -s works" >&5
1624 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1628 if ln -s X conftestdata 2>/dev/null
1631 ac_cv_prog_LN_S="ln -s"
1636 LN_S="$ac_cv_prog_LN_S"
1637 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1638 echo "$ac_t""yes" 1>&6
1640 echo "$ac_t""no" 1>&6
1644 # Check for any special flags to pass to ltconfig.
1645 libtool_flags="--cache-file=$cache_file"
1646 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1647 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1648 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1649 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1650 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1653 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1654 if test "${enable_libtool_lock+set}" = set; then
1655 enableval="$enable_libtool_lock"
1659 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1660 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1662 # Some flags need to be propagated to the compiler or linker for good
1666 # Find out which ABI we are using.
1667 echo '#line 1668 "configure"' > conftest.$ac_ext
1668 if { (eval echo configure:1669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1669 case "`/usr/bin/file conftest.o`" in
1685 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1686 SAVE_CFLAGS="$CFLAGS"
1687 CFLAGS="$CFLAGS -belf"
1688 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1689 echo "configure:1690: checking whether the C compiler needs -belf" >&5
1690 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1691 echo $ac_n "(cached) $ac_c" 1>&6
1693 cat > conftest.$ac_ext <<EOF
1694 #line 1695 "configure"
1695 #include "confdefs.h"
1701 if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1703 lt_cv_cc_needs_belf=yes
1705 echo "configure: failed program was:" >&5
1706 cat conftest.$ac_ext >&5
1708 lt_cv_cc_needs_belf=no
1713 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1714 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1715 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1716 CFLAGS="$SAVE_CFLAGS"
1724 # Save cache, so that ltconfig can load it
1725 cat > confcache <<\EOF
1726 # This file is a shell script that caches the results of configure
1727 # tests run on this system so they can be shared between configure
1728 # scripts and configure runs. It is not useful on other systems.
1729 # If it contains results you don't want to keep, you may remove or edit it.
1731 # By default, configure uses ./config.cache as the cache file,
1732 # creating it if it does not exist already. You can give configure
1733 # the --cache-file=FILE option to use a different cache file; that is
1734 # what configure does when it calls configure scripts in
1735 # subdirectories, so they share the cache.
1736 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1737 # config.status only pays attention to the cache file if you give it the
1738 # --recheck option to rerun configure.
1741 # The following way of writing the cache mishandles newlines in values,
1742 # but we know of no workaround that is simple, portable, and efficient.
1743 # So, don't put newlines in cache variables' values.
1744 # Ultrix sh set writes to stderr and can't be redirected directly,
1745 # and sets the high bit in the cache file unless we assign to the vars.
1747 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1749 # `set' does not quote correctly, so add quotes (double-quote substitution
1750 # turns \\\\ into \\, and sed turns \\ into \).
1752 -e "s/'/'\\\\''/g" \
1753 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1756 # `set' quotes correctly as required by POSIX, so do not add quotes.
1757 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1760 if cmp -s $cache_file confcache; then
1763 if test -w $cache_file; then
1764 echo "updating cache $cache_file"
1765 cat confcache > $cache_file
1767 echo "not updating unwritable cache $cache_file"
1773 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1774 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1775 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1776 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1777 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1778 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1779 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1780 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1782 # Reload cache, that may have been modified by ltconfig
1783 if test -r "$cache_file"; then
1784 echo "loading cache $cache_file"
1787 echo "creating cache $cache_file"
1792 # This can be used to rebuild libtool when needed
1793 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1795 # Always use our own libtool.
1796 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1798 # Redirect the config.log output again, so that the ltconfig log is not
1799 # clobbered by the next message.
1800 exec 5>>./config.log
1802 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1803 echo "configure:1804: checking how to run the C preprocessor" >&5
1804 # On Suns, sometimes $CPP names a directory.
1805 if test -n "$CPP" && test -d "$CPP"; then
1808 if test -z "$CPP"; then
1809 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 # This must be in double quotes, not single quotes, because CPP may get
1813 # substituted into the Makefile and "${CC-cc}" will confuse make.
1815 # On the NeXT, cc -E runs the code through the compiler's parser,
1816 # not just through cpp.
1817 cat > conftest.$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1824 { (eval echo configure:1825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1826 if test -z "$ac_err"; then
1830 echo "configure: failed program was:" >&5
1831 cat conftest.$ac_ext >&5
1833 CPP="${CC-cc} -E -traditional-cpp"
1834 cat > conftest.$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1841 { (eval echo configure:1842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1843 if test -z "$ac_err"; then
1847 echo "configure: failed program was:" >&5
1848 cat conftest.$ac_ext >&5
1850 CPP="${CC-cc} -nologo -E"
1851 cat > conftest.$ac_ext <<EOF
1852 #line 1853 "configure"
1853 #include "confdefs.h"
1857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1858 { (eval echo configure:1859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1860 if test -z "$ac_err"; then
1864 echo "configure: failed program was:" >&5
1865 cat conftest.$ac_ext >&5
1874 ac_cv_prog_CPP="$CPP"
1876 CPP="$ac_cv_prog_CPP"
1878 ac_cv_prog_CPP="$CPP"
1880 echo "$ac_t""$CPP" 1>&6
1882 missing_dir=`cd $ac_aux_dir && pwd`
1883 for ac_prog in flex lex
1885 # Extract the first word of "$ac_prog", so it can be a program name with args.
1886 set dummy $ac_prog; ac_word=$2
1887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1888 echo "configure:1889: checking for $ac_word" >&5
1889 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1892 if test -n "$LEX"; then
1893 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1897 for ac_dir in $ac_dummy; do
1898 test -z "$ac_dir" && ac_dir=.
1899 if test -f $ac_dir/$ac_word; then
1900 ac_cv_prog_LEX="$ac_prog"
1907 LEX="$ac_cv_prog_LEX"
1908 if test -n "$LEX"; then
1909 echo "$ac_t""$LEX" 1>&6
1911 echo "$ac_t""no" 1>&6
1914 test -n "$LEX" && break
1916 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1918 # Extract the first word of "flex", so it can be a program name with args.
1919 set dummy flex; ac_word=$2
1920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1921 echo "configure:1922: checking for $ac_word" >&5
1922 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 if test -n "$LEX"; then
1926 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1930 for ac_dir in $ac_dummy; do
1931 test -z "$ac_dir" && ac_dir=.
1932 if test -f $ac_dir/$ac_word; then
1933 ac_cv_prog_LEX="flex"
1938 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1941 LEX="$ac_cv_prog_LEX"
1942 if test -n "$LEX"; then
1943 echo "$ac_t""$LEX" 1>&6
1945 echo "$ac_t""no" 1>&6
1948 if test -z "$LEXLIB"
1954 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1955 echo "configure:1956: checking for yywrap in -l$ac_lib" >&5
1956 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1960 ac_save_LIBS="$LIBS"
1961 LIBS="-l$ac_lib $LIBS"
1962 cat > conftest.$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1965 /* Override any gcc2 internal prototype to avoid an error. */
1966 /* We use char because int might match the return type of a gcc2
1967 builtin and then its argument prototype would still apply. */
1974 if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1976 eval "ac_cv_lib_$ac_lib_var=yes"
1978 echo "configure: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1981 eval "ac_cv_lib_$ac_lib_var=no"
1984 LIBS="$ac_save_LIBS"
1987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1988 echo "$ac_t""yes" 1>&6
1991 echo "$ac_t""no" 1>&6
1996 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1997 echo "configure:1998: checking lex output file root" >&5
1998 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 # The minimal lex program is just a single line: %%. But some broken lexes
2002 # (Solaris, I think it was) want two %% lines, so accommodate them.
2005 if test -f lex.yy.c; then
2006 ac_cv_prog_lex_root=lex.yy
2007 elif test -f lexyy.c; then
2008 ac_cv_prog_lex_root=lexyy
2010 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2014 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2015 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2017 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2018 echo "configure:2019: checking whether yytext is a pointer" >&5
2019 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 # POSIX says lex can declare yytext either as a pointer or an array; the
2023 # default is implementation-dependent. Figure out which it is, since
2024 # not all implementations provide the %pointer and %array declarations.
2025 ac_cv_prog_lex_yytext_pointer=no
2026 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2027 ac_save_LIBS="$LIBS"
2028 LIBS="$LIBS $LEXLIB"
2029 cat > conftest.$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2032 `cat $LEX_OUTPUT_ROOT.c`
2037 if { (eval echo configure:2038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2039 ac_cv_prog_lex_yytext_pointer=yes
2041 echo "configure: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2045 LIBS="$ac_save_LIBS"
2046 rm -f "${LEX_OUTPUT_ROOT}.c"
2050 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2051 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2052 cat >> confdefs.h <<\EOF
2053 #define YYTEXT_POINTER 1
2058 for ac_prog in 'bison -y' byacc
2060 # Extract the first word of "$ac_prog", so it can be a program name with args.
2061 set dummy $ac_prog; ac_word=$2
2062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2063 echo "configure:2064: checking for $ac_word" >&5
2064 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2067 if test -n "$YACC"; then
2068 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2072 for ac_dir in $ac_dummy; do
2073 test -z "$ac_dir" && ac_dir=.
2074 if test -f $ac_dir/$ac_word; then
2075 ac_cv_prog_YACC="$ac_prog"
2082 YACC="$ac_cv_prog_YACC"
2083 if test -n "$YACC"; then
2084 echo "$ac_t""$YACC" 1>&6
2086 echo "$ac_t""no" 1>&6
2089 test -n "$YACC" && break
2091 test -n "$YACC" || YACC="yacc"
2094 echo $ac_n "checking size of long""... $ac_c" 1>&6
2095 echo "configure:2096: checking size of long" >&5
2096 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2099 if test "$cross_compiling" = yes; then
2102 cat > conftest.$ac_ext <<EOF
2103 #line 2104 "configure"
2104 #include "confdefs.h"
2108 FILE *f=fopen("conftestval", "w");
2110 fprintf(f, "%d\n", sizeof(long));
2114 if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2116 ac_cv_sizeof_long=`cat conftestval`
2118 echo "configure: failed program was:" >&5
2119 cat conftest.$ac_ext >&5
2127 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2128 cat >> confdefs.h <<EOF
2129 #define SIZEOF_LONG $ac_cv_sizeof_long
2133 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2134 echo "configure:2135: checking size of long long" >&5
2135 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2138 if test "$cross_compiling" = yes; then
2139 ac_cv_sizeof_long_long=8
2141 cat > conftest.$ac_ext <<EOF
2142 #line 2143 "configure"
2143 #include "confdefs.h"
2147 FILE *f=fopen("conftestval", "w");
2149 fprintf(f, "%d\n", sizeof(long long));
2153 if { (eval echo configure:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2155 ac_cv_sizeof_long_long=`cat conftestval`
2157 echo "configure: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2160 ac_cv_sizeof_long_long=0
2166 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2167 cat >> confdefs.h <<EOF
2168 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2172 echo $ac_n "checking size of long double""... $ac_c" 1>&6
2173 echo "configure:2174: checking size of long double" >&5
2174 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
2175 echo $ac_n "(cached) $ac_c" 1>&6
2177 if test "$cross_compiling" = yes; then
2178 ac_cv_sizeof_long_double=12
2180 cat > conftest.$ac_ext <<EOF
2181 #line 2182 "configure"
2182 #include "confdefs.h"
2186 FILE *f=fopen("conftestval", "w");
2188 fprintf(f, "%d\n", sizeof(long double));
2192 if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2194 ac_cv_sizeof_long_double=`cat conftestval`
2196 echo "configure: failed program was:" >&5
2197 cat conftest.$ac_ext >&5
2199 ac_cv_sizeof_long_double=0
2205 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
2206 cat >> confdefs.h <<EOF
2207 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
2213 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2214 ac_cpp='$CXXCPP $CPPFLAGS'
2215 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2216 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2217 cross_compiling=$ac_cv_prog_cxx_cross
2220 for ac_hdr in unistd.h
2222 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2223 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2224 echo "configure:2225: checking for $ac_hdr" >&5
2225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2228 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2234 { (eval echo configure:2235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2236 if test -z "$ac_err"; then
2238 eval "ac_cv_header_$ac_safe=yes"
2241 echo "configure: failed program was:" >&5
2242 cat conftest.$ac_ext >&5
2244 eval "ac_cv_header_$ac_safe=no"
2248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2249 echo "$ac_t""yes" 1>&6
2250 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2251 cat >> confdefs.h <<EOF
2252 #define $ac_tr_hdr 1
2256 echo "$ac_t""no" 1>&6
2260 for ac_hdr in readline/readline.h readline/history.h
2262 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2263 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2264 echo "configure:2265: checking for $ac_hdr" >&5
2265 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2274 { (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2276 if test -z "$ac_err"; then
2278 eval "ac_cv_header_$ac_safe=yes"
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2284 eval "ac_cv_header_$ac_safe=no"
2288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2289 echo "$ac_t""yes" 1>&6
2290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2291 cat >> confdefs.h <<EOF
2292 #define $ac_tr_hdr 1
2296 echo "$ac_t""no" 1>&6
2301 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2302 echo "configure:2303: checking for readline in -lreadline" >&5
2303 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2307 ac_save_LIBS="$LIBS"
2308 LIBS="-lreadline $LIBS"
2309 cat > conftest.$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2312 /* Override any gcc2 internal prototype to avoid an error. */
2316 /* We use char because int might match the return type of a gcc2
2317 builtin and then its argument prototype would still apply. */
2324 if { (eval echo configure:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2326 eval "ac_cv_lib_$ac_lib_var=yes"
2328 echo "configure: failed program was:" >&5
2329 cat conftest.$ac_ext >&5
2331 eval "ac_cv_lib_$ac_lib_var=no"
2334 LIBS="$ac_save_LIBS"
2337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2338 echo "$ac_t""yes" 1>&6
2339 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2340 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2341 cat >> confdefs.h <<EOF
2342 #define $ac_tr_lib 1
2345 LIBS="-lreadline $LIBS"
2348 echo "$ac_t""no" 1>&6
2355 echo $ac_n "checking for cout in -lstdc++""... $ac_c" 1>&6
2356 echo "configure:2357: checking for cout in -lstdc++" >&5
2357 ac_lib_var=`echo stdc++'_'cout | sed 'y%./+-%__p_%'`
2358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2361 ac_save_LIBS="$LIBS"
2362 LIBS="-lstdc++ $LIBS"
2363 cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2366 /* Override any gcc2 internal prototype to avoid an error. */
2370 /* We use char because int might match the return type of a gcc2
2371 builtin and then its argument prototype would still apply. */
2378 if { (eval echo configure:2379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2380 eval "ac_cv_lib_$ac_lib_var=yes"
2382 echo "configure: failed program was:" >&5
2383 cat conftest.$ac_ext >&5
2385 eval "ac_cv_lib_$ac_lib_var=no"
2388 LIBS="$ac_save_LIBS"
2391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2392 echo "$ac_t""yes" 1>&6
2393 ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2394 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2395 cat >> confdefs.h <<EOF
2396 #define $ac_tr_lib 1
2399 LIBS="-lstdc++ $LIBS"
2402 echo "$ac_t""no" 1>&6
2406 for ac_hdr in iostream vector map string list typeinfo iterator strstream stdexcept algorithm
2408 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2409 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2410 echo "configure:2411: checking for $ac_hdr" >&5
2411 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2414 cat > conftest.$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2420 { (eval echo configure:2421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2422 if test -z "$ac_err"; then
2424 eval "ac_cv_header_$ac_safe=yes"
2427 echo "configure: failed program was:" >&5
2428 cat conftest.$ac_ext >&5
2430 eval "ac_cv_header_$ac_safe=no"
2434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2435 echo "$ac_t""yes" 1>&6
2436 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2437 cat >> confdefs.h <<EOF
2438 #define $ac_tr_hdr 1
2442 echo "$ac_t""no" 1>&6
2443 { echo "configure: error: need to have ANSI compliant headers" 1>&2; exit 1; }
2449 for ac_hdr in CLN/cln.h
2451 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2452 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2453 echo "configure:2454: checking for $ac_hdr" >&5
2454 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2457 cat > conftest.$ac_ext <<EOF
2458 #line 2459 "configure"
2459 #include "confdefs.h"
2462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2463 { (eval echo configure:2464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2465 if test -z "$ac_err"; then
2467 eval "ac_cv_header_$ac_safe=yes"
2470 echo "configure: failed program was:" >&5
2471 cat conftest.$ac_ext >&5
2473 eval "ac_cv_header_$ac_safe=no"
2477 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2478 echo "$ac_t""yes" 1>&6
2479 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2480 cat >> confdefs.h <<EOF
2481 #define $ac_tr_hdr 1
2485 echo "$ac_t""no" 1>&6
2488 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2489 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2490 echo "configure:2491: checking for $ac_hdr" >&5
2491 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2494 cat > conftest.$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2500 { (eval echo configure:2501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2502 if test -z "$ac_err"; then
2504 eval "ac_cv_header_$ac_safe=yes"
2507 echo "configure: failed program was:" >&5
2508 cat conftest.$ac_ext >&5
2510 eval "ac_cv_header_$ac_safe=no"
2514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2515 echo "$ac_t""yes" 1>&6
2516 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2517 cat >> confdefs.h <<EOF
2518 #define $ac_tr_hdr 1
2522 echo "$ac_t""no" 1>&6
2523 { echo "configure: error: cannot find header for Bruno Haible's CLN" 1>&2; exit 1; };
2534 echo $ac_n "checking how to link with libcln""... $ac_c" 1>&6
2535 echo "configure:2536: checking how to link with libcln" >&5
2536 saved_LIBS="${LIBS}"
2537 if eval "test \"`echo '$''{'ginac_cv_lib_cln_link'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2541 case "${ac_cv_header_CLN_cln_h}" in
2543 cat > conftest.$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2546 #include <CLN/cln.h>
2551 if { (eval echo configure:2552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2553 ginac_cv_lib_cln_link="-lcln"
2555 echo "configure: failed program was:" >&5
2556 cat conftest.$ac_ext >&5
2558 ginac_cv_lib_cln_link="fail"
2563 cat > conftest.$ac_ext <<EOF
2564 #line 2565 "configure"
2565 #include "confdefs.h"
2571 if { (eval echo configure:2572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2573 ginac_cv_lib_cln_link="-lcln"
2575 echo "configure: failed program was:" >&5
2576 cat conftest.$ac_ext >&5
2578 ginac_cv_lib_cln_link="fail"
2586 case "${ginac_cv_lib_cln_link}" in
2588 LIBS="-lcln ${saved_LIBS}"
2589 echo "$ac_t""-lcln" 1>&6
2591 echo $ac_n "checking whether libcln behaves sane""... $ac_c" 1>&6
2592 echo "configure:2593: checking whether libcln behaves sane" >&5
2593 if eval "test \"`echo '$''{'ginac_cv_lib_cln_integrity'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2597 case "${ac_cv_header_CLN_cln_h}" in
2599 if test "$cross_compiling" = yes; then
2600 ginac_cv_lib_cln_integrity="guessing sane"
2602 cat > conftest.$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2606 extern "C" void exit(int);
2608 #include <CLN/cln.h>
2610 cl_RA q(3); q = q/2; cl_RA p(3); p = p/2;
2611 if (q+p != 3) return 1; else return 0;
2614 if { (eval echo configure:2615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2616 ginac_cv_lib_cln_integrity="sane"
2618 echo "configure: failed program was:" >&5
2619 cat conftest.$ac_ext >&5
2621 ginac_cv_lib_cln_integrity="insane"
2628 if test "$cross_compiling" = yes; then
2629 ginac_cv_lib_cln_integrity="guessing sane"
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2635 extern "C" void exit(int);
2639 cl_RA q(3); q = q/2; cl_RA p(3); p = p/2;
2640 if (q+p != 3) return 1; else return 0;
2643 if { (eval echo configure:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2645 ginac_cv_lib_cln_integrity="sane"
2647 echo "configure: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2650 ginac_cv_lib_cln_integrity="insane"
2660 case "${ginac_cv_lib_cln_integrity}" in
2662 echo "$ac_t""yes" 1>&6
2665 echo "$ac_t""no" 1>&6
2666 echo "configure: warning: maybe version of libcln is older than 1.0.2?" 1>&2
2669 echo "$ac_t""hopefully" 1>&6
2672 echo "configure: warning: you found a bug in the configure script!" 1>&2
2678 LIBS="${saved_LIBS}"
2680 { echo "configure: error: linking with libcln failed, maybe need to set \$LDFLAGS?" 1>&2; exit 1; }
2683 LIBS="${saved_LIBS}"
2688 GINACLIB_CPPFLAGS=$CPPFLAGS
2693 # Extract the first word of "doxygen", so it can be a program name with args.
2694 set dummy doxygen; ac_word=$2
2695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2696 echo "configure:2697: checking for $ac_word" >&5
2697 if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2702 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
2705 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a dos path.
2708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2710 for ac_dir in $ac_dummy; do
2711 test -z "$ac_dir" && ac_dir=.
2712 if test -f $ac_dir/$ac_word; then
2713 ac_cv_path_DOXYGEN="$ac_dir/$ac_word"
2718 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN=""""
2722 DOXYGEN="$ac_cv_path_DOXYGEN"
2723 if test -n "$DOXYGEN"; then
2724 echo "$ac_t""$DOXYGEN" 1>&6
2726 echo "$ac_t""no" 1>&6
2729 # Extract the first word of "latex", so it can be a program name with args.
2730 set dummy latex; ac_word=$2
2731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2732 echo "configure:2733: checking for $ac_word" >&5
2733 if eval "test \"`echo '$''{'ac_cv_path_LATEX'+set}'`\" = set"; then
2734 echo $ac_n "(cached) $ac_c" 1>&6
2738 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
2741 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a dos path.
2744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2746 for ac_dir in $ac_dummy; do
2747 test -z "$ac_dir" && ac_dir=.
2748 if test -f $ac_dir/$ac_word; then
2749 ac_cv_path_LATEX="$ac_dir/$ac_word"
2754 test -z "$ac_cv_path_LATEX" && ac_cv_path_LATEX=""""
2758 LATEX="$ac_cv_path_LATEX"
2759 if test -n "$LATEX"; then
2760 echo "$ac_t""$LATEX" 1>&6
2762 echo "$ac_t""no" 1>&6
2765 # Extract the first word of "makeindex", so it can be a program name with args.
2766 set dummy makeindex; ac_word=$2
2767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2768 echo "configure:2769: checking for $ac_word" >&5
2769 if eval "test \"`echo '$''{'ac_cv_path_MAKEINDEX'+set}'`\" = set"; then
2770 echo $ac_n "(cached) $ac_c" 1>&6
2772 case "$MAKEINDEX" in
2774 ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a path.
2777 ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a dos path.
2780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2782 for ac_dir in $ac_dummy; do
2783 test -z "$ac_dir" && ac_dir=.
2784 if test -f $ac_dir/$ac_word; then
2785 ac_cv_path_MAKEINDEX="$ac_dir/$ac_word"
2790 test -z "$ac_cv_path_MAKEINDEX" && ac_cv_path_MAKEINDEX=""""
2794 MAKEINDEX="$ac_cv_path_MAKEINDEX"
2795 if test -n "$MAKEINDEX"; then
2796 echo "$ac_t""$MAKEINDEX" 1>&6
2798 echo "$ac_t""no" 1>&6
2801 # Extract the first word of "dvips", so it can be a program name with args.
2802 set dummy dvips; ac_word=$2
2803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2804 echo "configure:2805: checking for $ac_word" >&5
2805 if eval "test \"`echo '$''{'ac_cv_path_DVIPS'+set}'`\" = set"; then
2806 echo $ac_n "(cached) $ac_c" 1>&6
2810 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
2813 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a dos path.
2816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2818 for ac_dir in $ac_dummy; do
2819 test -z "$ac_dir" && ac_dir=.
2820 if test -f $ac_dir/$ac_word; then
2821 ac_cv_path_DVIPS="$ac_dir/$ac_word"
2826 test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS=""""
2830 DVIPS="$ac_cv_path_DVIPS"
2831 if test -n "$DVIPS"; then
2832 echo "$ac_t""$DVIPS" 1>&6
2834 echo "$ac_t""no" 1>&6
2837 # Extract the first word of "fig2dev", so it can be a program name with args.
2838 set dummy fig2dev; ac_word=$2
2839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2840 echo "configure:2841: checking for $ac_word" >&5
2841 if eval "test \"`echo '$''{'ac_cv_path_FIG2DEV'+set}'`\" = set"; then
2842 echo $ac_n "(cached) $ac_c" 1>&6
2846 ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a path.
2849 ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a dos path.
2852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2854 for ac_dir in $ac_dummy; do
2855 test -z "$ac_dir" && ac_dir=.
2856 if test -f $ac_dir/$ac_word; then
2857 ac_cv_path_FIG2DEV="$ac_dir/$ac_word"
2862 test -z "$ac_cv_path_FIG2DEV" && ac_cv_path_FIG2DEV=""""
2866 FIG2DEV="$ac_cv_path_FIG2DEV"
2867 if test -n "$FIG2DEV"; then
2868 echo "$ac_t""$FIG2DEV" 1>&6
2870 echo "$ac_t""no" 1>&6
2876 if [ "x$enable_html_doc" = "xyes" ]; then
2877 TUTORIAL_TARGETS="$TUTORIAL_TARGETS ginac.html"
2878 if [ "$DOXYGEN" ]; then
2879 REFERENCE_TARGETS="$REFERENCE_TARGETS index.html"
2882 if [ "x$enable_ps_doc" = "xyes" ]; then
2883 TUTORIAL_TARGETS="$TUTORIAL_TARGETS ginac.ps"
2884 if [ "$DOXYGEN" ]; then
2885 REFERENCE_TARGETS="$REFERENCE_TARGETS reference.ps"
2892 cat > confcache <<\EOF
2893 # This file is a shell script that caches the results of configure
2894 # tests run on this system so they can be shared between configure
2895 # scripts and configure runs. It is not useful on other systems.
2896 # If it contains results you don't want to keep, you may remove or edit it.
2898 # By default, configure uses ./config.cache as the cache file,
2899 # creating it if it does not exist already. You can give configure
2900 # the --cache-file=FILE option to use a different cache file; that is
2901 # what configure does when it calls configure scripts in
2902 # subdirectories, so they share the cache.
2903 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2904 # config.status only pays attention to the cache file if you give it the
2905 # --recheck option to rerun configure.
2908 # The following way of writing the cache mishandles newlines in values,
2909 # but we know of no workaround that is simple, portable, and efficient.
2910 # So, don't put newlines in cache variables' values.
2911 # Ultrix sh set writes to stderr and can't be redirected directly,
2912 # and sets the high bit in the cache file unless we assign to the vars.
2914 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2916 # `set' does not quote correctly, so add quotes (double-quote substitution
2917 # turns \\\\ into \\, and sed turns \\ into \).
2919 -e "s/'/'\\\\''/g" \
2920 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2923 # `set' quotes correctly as required by POSIX, so do not add quotes.
2924 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2927 if cmp -s $cache_file confcache; then
2930 if test -w $cache_file; then
2931 echo "updating cache $cache_file"
2932 cat confcache > $cache_file
2934 echo "not updating unwritable cache $cache_file"
2939 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2941 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2942 # Let make expand exec_prefix.
2943 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2945 # Any assignment to VPATH causes Sun make to only execute
2946 # the first set of double-colon rules, so remove it if not needed.
2947 # If there is a colon in the path, we need to keep it.
2948 if test "x$srcdir" = x.; then
2949 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2952 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2954 DEFS=-DHAVE_CONFIG_H
2956 # Without the "./", some shells look in PATH for config.status.
2957 : ${CONFIG_STATUS=./config.status}
2959 echo creating $CONFIG_STATUS
2960 rm -f $CONFIG_STATUS
2961 cat > $CONFIG_STATUS <<EOF
2963 # Generated automatically by configure.
2964 # Run this file to recreate the current configuration.
2965 # This directory was configured as follows,
2966 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2968 # $0 $ac_configure_args
2970 # Compiler output produced by configure, useful for debugging
2971 # configure, is in ./config.log if it exists.
2973 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2976 case "\$ac_option" in
2977 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2978 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2979 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2980 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2981 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2983 -help | --help | --hel | --he | --h)
2984 echo "\$ac_cs_usage"; exit 0 ;;
2985 *) echo "\$ac_cs_usage"; exit 1 ;;
2989 ac_given_srcdir=$srcdir
2990 ac_given_INSTALL="$INSTALL"
2992 trap 'rm -fr `echo "
3001 doc/tutorial/Makefile
3002 doc/reference/Makefile
3003 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3005 cat >> $CONFIG_STATUS <<EOF
3007 # Protect against being on the right side of a sed subst in config.status.
3008 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3009 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3013 s%@CFLAGS@%$CFLAGS%g
3014 s%@CPPFLAGS@%$CPPFLAGS%g
3015 s%@CXXFLAGS@%$CXXFLAGS%g
3016 s%@FFLAGS@%$FFLAGS%g
3018 s%@LDFLAGS@%$LDFLAGS%g
3020 s%@exec_prefix@%$exec_prefix%g
3021 s%@prefix@%$prefix%g
3022 s%@program_transform_name@%$program_transform_name%g
3023 s%@bindir@%$bindir%g
3024 s%@sbindir@%$sbindir%g
3025 s%@libexecdir@%$libexecdir%g
3026 s%@datadir@%$datadir%g
3027 s%@sysconfdir@%$sysconfdir%g
3028 s%@sharedstatedir@%$sharedstatedir%g
3029 s%@localstatedir@%$localstatedir%g
3030 s%@libdir@%$libdir%g
3031 s%@includedir@%$includedir%g
3032 s%@oldincludedir@%$oldincludedir%g
3033 s%@infodir@%$infodir%g
3034 s%@mandir@%$mandir%g
3035 s%@GINACLIB_MAJOR_VERSION@%$GINACLIB_MAJOR_VERSION%g
3036 s%@GINACLIB_MINOR_VERSION@%$GINACLIB_MINOR_VERSION%g
3037 s%@GINACLIB_MICRO_VERSION@%$GINACLIB_MICRO_VERSION%g
3038 s%@GINACLIB_INTERFACE_AGE@%$GINACLIB_INTERFACE_AGE%g
3039 s%@GINACLIB_BINARY_AGE@%$GINACLIB_BINARY_AGE%g
3040 s%@GINACLIB_VERSION@%$GINACLIB_VERSION%g
3041 s%@ARCHIVE_VERSION@%$ARCHIVE_VERSION%g
3042 s%@ARCHIVE_AGE@%$ARCHIVE_AGE%g
3043 s%@LT_RELEASE@%$LT_RELEASE%g
3044 s%@LT_CURRENT@%$LT_CURRENT%g
3045 s%@LT_REVISION@%$LT_REVISION%g
3046 s%@LT_AGE@%$LT_AGE%g
3047 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3048 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3049 s%@INSTALL_DATA@%$INSTALL_DATA%g
3050 s%@PACKAGE@%$PACKAGE%g
3051 s%@VERSION@%$VERSION%g
3052 s%@ACLOCAL@%$ACLOCAL%g
3053 s%@AUTOCONF@%$AUTOCONF%g
3054 s%@AUTOMAKE@%$AUTOMAKE%g
3055 s%@AUTOHEADER@%$AUTOHEADER%g
3056 s%@MAKEINFO@%$MAKEINFO%g
3057 s%@SET_MAKE@%$SET_MAKE%g
3058 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3059 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3062 s%@CXXCPP@%$CXXCPP%g
3064 s%@host_alias@%$host_alias%g
3065 s%@host_cpu@%$host_cpu%g
3066 s%@host_vendor@%$host_vendor%g
3067 s%@host_os@%$host_os%g
3069 s%@build_alias@%$build_alias%g
3070 s%@build_cpu@%$build_cpu%g
3071 s%@build_vendor@%$build_vendor%g
3072 s%@build_os@%$build_os%g
3073 s%@RANLIB@%$RANLIB%g
3078 s%@LIBTOOL@%$LIBTOOL%g
3080 s%@LEXLIB@%$LEXLIB%g
3082 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
3084 s%@GINSH_LIBS@%$GINSH_LIBS%g
3085 s%@GINACLIB_CPPFLAGS@%$GINACLIB_CPPFLAGS%g
3086 s%@GINACLIB_LIBS@%$GINACLIB_LIBS%g
3087 s%@DOXYGEN@%$DOXYGEN%g
3089 s%@MAKEINDEX@%$MAKEINDEX%g
3091 s%@FIG2DEV@%$FIG2DEV%g
3092 s%@TUTORIAL_TARGETS@%$TUTORIAL_TARGETS%g
3093 s%@REFERENCE_TARGETS@%$REFERENCE_TARGETS%g
3098 cat >> $CONFIG_STATUS <<\EOF
3100 # Split the substitutions into bite-sized pieces for seds with
3101 # small command number limits, like on Digital OSF/1 and HP-UX.
3102 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3103 ac_file=1 # Number of current file.
3104 ac_beg=1 # First line for current file.
3105 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3108 while $ac_more_lines; do
3109 if test $ac_beg -gt 1; then
3110 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3112 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3114 if test ! -s conftest.s$ac_file; then
3116 rm -f conftest.s$ac_file
3118 if test -z "$ac_sed_cmds"; then
3119 ac_sed_cmds="sed -f conftest.s$ac_file"
3121 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3123 ac_file=`expr $ac_file + 1`
3125 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3128 if test -z "$ac_sed_cmds"; then
3133 cat >> $CONFIG_STATUS <<EOF
3135 CONFIG_FILES=\${CONFIG_FILES-"Makefile
3143 doc/tutorial/Makefile
3144 doc/reference/Makefile
3147 cat >> $CONFIG_STATUS <<\EOF
3148 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3149 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3151 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3152 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3153 *) ac_file_in="${ac_file}.in" ;;
3156 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3158 # Remove last slash and all that follows it. Not all systems have dirname.
3159 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3160 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3161 # The file is in a subdirectory.
3162 test ! -d "$ac_dir" && mkdir "$ac_dir"
3163 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3164 # A "../" for each directory in $ac_dir_suffix.
3165 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3167 ac_dir_suffix= ac_dots=
3170 case "$ac_given_srcdir" in
3172 if test -z "$ac_dots"; then top_srcdir=.
3173 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3174 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3176 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3177 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3180 case "$ac_given_INSTALL" in
3181 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3182 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3185 echo creating "$ac_file"
3187 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3189 *Makefile*) ac_comsub="1i\\
3190 # $configure_input" ;;
3194 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3196 s%@configure_input@%$configure_input%g
3197 s%@srcdir@%$srcdir%g
3198 s%@top_srcdir@%$top_srcdir%g
3199 s%@INSTALL@%$INSTALL%g
3200 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3204 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3205 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3207 # ac_d sets the value in "#define NAME VALUE" lines.
3208 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3209 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3212 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3213 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3214 ac_uB='\([ ]\)%\1#\2define\3'
3217 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3218 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3219 ac_eB='$%\1#\2define\3'
3223 if test "${CONFIG_HEADERS+set}" != set; then
3225 cat >> $CONFIG_STATUS <<EOF
3226 CONFIG_HEADERS="config.h"
3228 cat >> $CONFIG_STATUS <<\EOF
3230 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3231 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3233 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3234 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3235 *) ac_file_in="${ac_file}.in" ;;
3238 echo creating $ac_file
3240 rm -f conftest.frag conftest.in conftest.out
3241 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3242 cat $ac_file_inputs > conftest.in
3246 # Transform confdefs.h into a sed script conftest.vals that substitutes
3247 # the proper values into config.h.in to produce config.h. And first:
3248 # Protect against being on the right side of a sed subst in config.status.
3249 # Protect against being in an unquoted here document in config.status.
3251 cat > conftest.hdr <<\EOF
3254 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3258 sed -n -f conftest.hdr confdefs.h > conftest.vals
3261 # This sed command replaces #undef with comments. This is necessary, for
3262 # example, in the case of _POSIX_SOURCE, which is predefined and required
3263 # on some systems where configure will not decide to define it.
3264 cat >> conftest.vals <<\EOF
3265 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3268 # Break up conftest.vals because some shells have a limit on
3269 # the size of here documents, and old seds have small limits too.
3274 ac_lines=`grep -c . conftest.vals`
3275 # grep -c gives empty output for an empty file on some AIX systems.
3276 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3277 # Write a limited-size here document to conftest.frag.
3278 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3279 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3281 sed -f conftest.frag conftest.in > conftest.out
3283 mv conftest.out conftest.in
3285 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3287 mv conftest.tail conftest.vals
3291 cat >> $CONFIG_STATUS <<\EOF
3292 rm -f conftest.frag conftest.h
3293 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3294 cat conftest.in >> conftest.h
3296 if cmp -s $ac_file conftest.h 2>/dev/null; then
3297 echo "$ac_file is unchanged"
3300 # Remove last slash and all that follows it. Not all systems have dirname.
3301 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3302 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3303 # The file is in a subdirectory.
3304 test ! -d "$ac_dir" && mkdir "$ac_dir"
3307 mv conftest.h $ac_file
3312 cat >> $CONFIG_STATUS <<EOF
3316 cat >> $CONFIG_STATUS <<\EOF
3317 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3318 chmod +x ginac-config
3321 chmod +x $CONFIG_STATUS
3322 rm -fr confdefs* $ac_clean_files
3323 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3325 echo "Configuration done. Now type \"make\"."