]> www.ginac.de Git - ginac.git/blob - configure
- Changed the name of cache-value ac_cv_header_CLN_cln_h to
[ginac.git] / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-html-doc       build HTML documentation [default=yes]"
16 ac_help="$ac_help
17   --enable-ps-doc         build PostScript documentation [default=yes]"
18 ac_help="$ac_help
19   --with-cint=CINTSYSDIR  build GiNaC-cint C++ interpreter [default=no]"
20 ac_help="$ac_help
21   --enable-maintainer-mode enable make rules and dependencies not useful
22                           (and sometimes confusing) to the casual installer"
23 ac_help="$ac_help
24   --enable-shared[=PKGS]  build shared libraries [default=yes]"
25 ac_help="$ac_help
26   --enable-static[=PKGS]  build static libraries [default=yes]"
27 ac_help="$ac_help
28   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
29 ac_help="$ac_help
30   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
31 ac_help="$ac_help
32   --disable-libtool-lock  avoid locking (might break parallel builds)"
33
34 # Initialize some variables set by options.
35 # The variables have the same names as the options, with
36 # dashes changed to underlines.
37 build=NONE
38 cache_file=./config.cache
39 exec_prefix=NONE
40 host=NONE
41 no_create=
42 nonopt=NONE
43 no_recursion=
44 prefix=NONE
45 program_prefix=NONE
46 program_suffix=NONE
47 program_transform_name=s,x,x,
48 silent=
49 site=
50 srcdir=
51 target=NONE
52 verbose=
53 x_includes=NONE
54 x_libraries=NONE
55 bindir='${exec_prefix}/bin'
56 sbindir='${exec_prefix}/sbin'
57 libexecdir='${exec_prefix}/libexec'
58 datadir='${prefix}/share'
59 sysconfdir='${prefix}/etc'
60 sharedstatedir='${prefix}/com'
61 localstatedir='${prefix}/var'
62 libdir='${exec_prefix}/lib'
63 includedir='${prefix}/include'
64 oldincludedir='/usr/include'
65 infodir='${prefix}/info'
66 mandir='${prefix}/man'
67
68 # Initialize some other variables.
69 subdirs=
70 MFLAGS= MAKEFLAGS=
71 SHELL=${CONFIG_SHELL-/bin/sh}
72 # Maximum number of lines to put in a shell here document.
73 ac_max_here_lines=12
74
75 ac_prev=
76 for ac_option
77 do
78
79   # If the previous option needs an argument, assign it.
80   if test -n "$ac_prev"; then
81     eval "$ac_prev=\$ac_option"
82     ac_prev=
83     continue
84   fi
85
86   case "$ac_option" in
87   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88   *) ac_optarg= ;;
89   esac
90
91   # Accept the important Cygnus configure options, so we can diagnose typos.
92
93   case "$ac_option" in
94
95   -bindir | --bindir | --bindi | --bind | --bin | --bi)
96     ac_prev=bindir ;;
97   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
98     bindir="$ac_optarg" ;;
99
100   -build | --build | --buil | --bui | --bu)
101     ac_prev=build ;;
102   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
103     build="$ac_optarg" ;;
104
105   -cache-file | --cache-file | --cache-fil | --cache-fi \
106   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
107     ac_prev=cache_file ;;
108   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
109   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
110     cache_file="$ac_optarg" ;;
111
112   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113     ac_prev=datadir ;;
114   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115   | --da=*)
116     datadir="$ac_optarg" ;;
117
118   -disable-* | --disable-*)
119     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
120     # Reject names that are not valid shell variable names.
121     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123     fi
124     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125     eval "enable_${ac_feature}=no" ;;
126
127   -enable-* | --enable-*)
128     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129     # Reject names that are not valid shell variable names.
130     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132     fi
133     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134     case "$ac_option" in
135       *=*) ;;
136       *) ac_optarg=yes ;;
137     esac
138     eval "enable_${ac_feature}='$ac_optarg'" ;;
139
140   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
141   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
142   | --exec | --exe | --ex)
143     ac_prev=exec_prefix ;;
144   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
145   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
146   | --exec=* | --exe=* | --ex=*)
147     exec_prefix="$ac_optarg" ;;
148
149   -gas | --gas | --ga | --g)
150     # Obsolete; use --with-gas.
151     with_gas=yes ;;
152
153   -help | --help | --hel | --he)
154     # Omit some internal or obsolete options to make the list less imposing.
155     # This message is too long to be a string in the A/UX 3.1 sh.
156     cat << EOF
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
159 Configuration:
160   --cache-file=FILE       cache test results in FILE
161   --help                  print this message
162   --no-create             do not create output files
163   --quiet, --silent       do not print \`checking...' messages
164   --version               print the version of autoconf that created configure
165 Directory and file names:
166   --prefix=PREFIX         install architecture-independent files in PREFIX
167                           [$ac_default_prefix]
168   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
169                           [same as prefix]
170   --bindir=DIR            user executables in DIR [EPREFIX/bin]
171   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
172   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
173   --datadir=DIR           read-only architecture-independent data in DIR
174                           [PREFIX/share]
175   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
176   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
177                           [PREFIX/com]
178   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
179   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
180   --includedir=DIR        C header files in DIR [PREFIX/include]
181   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
182   --infodir=DIR           info documentation in DIR [PREFIX/info]
183   --mandir=DIR            man documentation in DIR [PREFIX/man]
184   --srcdir=DIR            find the sources in DIR [configure dir or ..]
185   --program-prefix=PREFIX prepend PREFIX to installed program names
186   --program-suffix=SUFFIX append SUFFIX to installed program names
187   --program-transform-name=PROGRAM
188                           run sed PROGRAM on installed program names
189 EOF
190     cat << EOF
191 Host type:
192   --build=BUILD           configure for building on BUILD [BUILD=HOST]
193   --host=HOST             configure for HOST [guessed]
194   --target=TARGET         configure for TARGET [TARGET=HOST]
195 Features and packages:
196   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
197   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
198   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
199   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
200   --x-includes=DIR        X include files are in DIR
201   --x-libraries=DIR       X library files are in DIR
202 EOF
203     if test -n "$ac_help"; then
204       echo "--enable and --with options recognized:$ac_help"
205     fi
206     exit 0 ;;
207
208   -host | --host | --hos | --ho)
209     ac_prev=host ;;
210   -host=* | --host=* | --hos=* | --ho=*)
211     host="$ac_optarg" ;;
212
213   -includedir | --includedir | --includedi | --included | --include \
214   | --includ | --inclu | --incl | --inc)
215     ac_prev=includedir ;;
216   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
217   | --includ=* | --inclu=* | --incl=* | --inc=*)
218     includedir="$ac_optarg" ;;
219
220   -infodir | --infodir | --infodi | --infod | --info | --inf)
221     ac_prev=infodir ;;
222   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223     infodir="$ac_optarg" ;;
224
225   -libdir | --libdir | --libdi | --libd)
226     ac_prev=libdir ;;
227   -libdir=* | --libdir=* | --libdi=* | --libd=*)
228     libdir="$ac_optarg" ;;
229
230   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
231   | --libexe | --libex | --libe)
232     ac_prev=libexecdir ;;
233   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
234   | --libexe=* | --libex=* | --libe=*)
235     libexecdir="$ac_optarg" ;;
236
237   -localstatedir | --localstatedir | --localstatedi | --localstated \
238   | --localstate | --localstat | --localsta | --localst \
239   | --locals | --local | --loca | --loc | --lo)
240     ac_prev=localstatedir ;;
241   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
242   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
243   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
244     localstatedir="$ac_optarg" ;;
245
246   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247     ac_prev=mandir ;;
248   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249     mandir="$ac_optarg" ;;
250
251   -nfp | --nfp | --nf)
252     # Obsolete; use --without-fp.
253     with_fp=no ;;
254
255   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256   | --no-cr | --no-c)
257     no_create=yes ;;
258
259   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261     no_recursion=yes ;;
262
263   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
264   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
265   | --oldin | --oldi | --old | --ol | --o)
266     ac_prev=oldincludedir ;;
267   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
268   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
269   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
270     oldincludedir="$ac_optarg" ;;
271
272   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273     ac_prev=prefix ;;
274   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275     prefix="$ac_optarg" ;;
276
277   -program-prefix | --program-prefix | --program-prefi | --program-pref \
278   | --program-pre | --program-pr | --program-p)
279     ac_prev=program_prefix ;;
280   -program-prefix=* | --program-prefix=* | --program-prefi=* \
281   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
282     program_prefix="$ac_optarg" ;;
283
284   -program-suffix | --program-suffix | --program-suffi | --program-suff \
285   | --program-suf | --program-su | --program-s)
286     ac_prev=program_suffix ;;
287   -program-suffix=* | --program-suffix=* | --program-suffi=* \
288   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
289     program_suffix="$ac_optarg" ;;
290
291   -program-transform-name | --program-transform-name \
292   | --program-transform-nam | --program-transform-na \
293   | --program-transform-n | --program-transform- \
294   | --program-transform | --program-transfor \
295   | --program-transfo | --program-transf \
296   | --program-trans | --program-tran \
297   | --progr-tra | --program-tr | --program-t)
298     ac_prev=program_transform_name ;;
299   -program-transform-name=* | --program-transform-name=* \
300   | --program-transform-nam=* | --program-transform-na=* \
301   | --program-transform-n=* | --program-transform-=* \
302   | --program-transform=* | --program-transfor=* \
303   | --program-transfo=* | --program-transf=* \
304   | --program-trans=* | --program-tran=* \
305   | --progr-tra=* | --program-tr=* | --program-t=*)
306     program_transform_name="$ac_optarg" ;;
307
308   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309   | -silent | --silent | --silen | --sile | --sil)
310     silent=yes ;;
311
312   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313     ac_prev=sbindir ;;
314   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315   | --sbi=* | --sb=*)
316     sbindir="$ac_optarg" ;;
317
318   -sharedstatedir | --sharedstatedir | --sharedstatedi \
319   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320   | --sharedst | --shareds | --shared | --share | --shar \
321   | --sha | --sh)
322     ac_prev=sharedstatedir ;;
323   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326   | --sha=* | --sh=*)
327     sharedstatedir="$ac_optarg" ;;
328
329   -site | --site | --sit)
330     ac_prev=site ;;
331   -site=* | --site=* | --sit=*)
332     site="$ac_optarg" ;;
333
334   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
335     ac_prev=srcdir ;;
336   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
337     srcdir="$ac_optarg" ;;
338
339   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
340   | --syscon | --sysco | --sysc | --sys | --sy)
341     ac_prev=sysconfdir ;;
342   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
343   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
344     sysconfdir="$ac_optarg" ;;
345
346   -target | --target | --targe | --targ | --tar | --ta | --t)
347     ac_prev=target ;;
348   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
349     target="$ac_optarg" ;;
350
351   -v | -verbose | --verbose | --verbos | --verbo | --verb)
352     verbose=yes ;;
353
354   -version | --version | --versio | --versi | --vers)
355     echo "configure generated by autoconf version 2.13"
356     exit 0 ;;
357
358   -with-* | --with-*)
359     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360     # Reject names that are not valid shell variable names.
361     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363     fi
364     ac_package=`echo $ac_package| sed 's/-/_/g'`
365     case "$ac_option" in
366       *=*) ;;
367       *) ac_optarg=yes ;;
368     esac
369     eval "with_${ac_package}='$ac_optarg'" ;;
370
371   -without-* | --without-*)
372     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
373     # Reject names that are not valid shell variable names.
374     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376     fi
377     ac_package=`echo $ac_package| sed 's/-/_/g'`
378     eval "with_${ac_package}=no" ;;
379
380   --x)
381     # Obsolete; use --with-x.
382     with_x=yes ;;
383
384   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
385   | --x-incl | --x-inc | --x-in | --x-i)
386     ac_prev=x_includes ;;
387   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
388   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
389     x_includes="$ac_optarg" ;;
390
391   -x-libraries | --x-libraries | --x-librarie | --x-librari \
392   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
393     ac_prev=x_libraries ;;
394   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
395   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
396     x_libraries="$ac_optarg" ;;
397
398   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399     ;;
400
401   *)
402     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403       echo "configure: warning: $ac_option: invalid host type" 1>&2
404     fi
405     if test "x$nonopt" != xNONE; then
406       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407     fi
408     nonopt="$ac_option"
409     ;;
410
411   esac
412 done
413
414 if test -n "$ac_prev"; then
415   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 fi
417
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419
420 # File descriptor usage:
421 # 0 standard input
422 # 1 file creation
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
429   exec 6>/dev/null
430 else
431   exec 6>&1
432 fi
433 exec 5>./config.log
434
435 echo "\
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
438 " 1>&5
439
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
442 ac_configure_args=
443 for ac_arg
444 do
445   case "$ac_arg" in
446   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447   | --no-cr | --no-c) ;;
448   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
449   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
450   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
452   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
453   esac
454 done
455
456 # NLS nuisances.
457 # Only set these to C if already set.  These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
462 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
464 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
465
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 echo > confdefs.h
470
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file=ginac/basic.cpp
474
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477   ac_srcdir_defaulted=yes
478   # Try the directory containing this script, then its parent.
479   ac_prog=$0
480   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482   srcdir=$ac_confdir
483   if test ! -r $srcdir/$ac_unique_file; then
484     srcdir=..
485   fi
486 else
487   ac_srcdir_defaulted=no
488 fi
489 if test ! -r $srcdir/$ac_unique_file; then
490   if test "$ac_srcdir_defaulted" = yes; then
491     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492   else
493     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494   fi
495 fi
496 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500   if test "x$prefix" != xNONE; then
501     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502   else
503     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504   fi
505 fi
506 for ac_site_file in $CONFIG_SITE; do
507   if test -r "$ac_site_file"; then
508     echo "loading site script $ac_site_file"
509     . "$ac_site_file"
510   fi
511 done
512
513 if test -r "$cache_file"; then
514   echo "loading cache $cache_file"
515   . $cache_file
516 else
517   echo "creating cache $cache_file"
518   > $cache_file
519 fi
520
521 ac_ext=c
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp='$CPP $CPPFLAGS'
524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling=$ac_cv_prog_cc_cross
527
528 ac_exeext=
529 ac_objext=o
530 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
531   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
533     ac_n= ac_c='
534 ' ac_t='        '
535   else
536     ac_n=-n ac_c= ac_t=
537   fi
538 else
539   ac_n= ac_c='\c' ac_t=
540 fi
541
542
543
544
545 # Check whether --enable-html-doc or --disable-html-doc was given.
546 if test "${enable_html_doc+set}" = set; then
547   enableval="$enable_html_doc"
548   :
549 else
550   enable_html_doc=yes
551 fi
552
553 # Check whether --enable-ps-doc or --disable-ps-doc was given.
554 if test "${enable_ps_doc+set}" = set; then
555   enableval="$enable_ps_doc"
556   :
557 else
558   enable_ps_doc=yes
559 fi
560
561 # Check whether --with-cint or --without-cint was given.
562 if test "${with_cint+set}" = set; then
563   withval="$with_cint"
564   :
565 else
566   with_cint=no
567 fi
568
569
570
571 GINACLIB_MAJOR_VERSION=0
572 GINACLIB_MINOR_VERSION=4
573 GINACLIB_MICRO_VERSION=1
574 GINACLIB_INTERFACE_AGE=0
575 GINACLIB_BINARY_AGE=1
576 GINACLIB_VERSION=$GINACLIB_MAJOR_VERSION.$GINACLIB_MINOR_VERSION.$GINACLIB_MICRO_VERSION
577
578
579
580
581
582
583
584
585
586 ARCHIVE_VERSION=0
587 ARCHIVE_AGE=0
588
589
590
591 cat >> confdefs.h <<EOF
592 #define ARCHIVE_VERSION $ARCHIVE_VERSION
593 EOF
594
595 cat >> confdefs.h <<EOF
596 #define ARCHIVE_AGE $ARCHIVE_AGE
597 EOF
598
599
600 LT_RELEASE=$GINACLIB_MAJOR_VERSION.$GINACLIB_MINOR_VERSION
601 LT_CURRENT=`expr $GINACLIB_MICRO_VERSION - $GINACLIB_INTERFACE_AGE`
602 LT_REVISION=$GINACLIB_INTERFACE_AGE
603 LT_AGE=`expr $GINACLIB_BINARY_AGE - $GINACLIB_INTERFACE_AGE`
604
605
606
607
608
609
610
611
612
613 ac_aux_dir=
614 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
615   if test -f $ac_dir/install-sh; then
616     ac_aux_dir=$ac_dir
617     ac_install_sh="$ac_aux_dir/install-sh -c"
618     break
619   elif test -f $ac_dir/install.sh; then
620     ac_aux_dir=$ac_dir
621     ac_install_sh="$ac_aux_dir/install.sh -c"
622     break
623   fi
624 done
625 if test -z "$ac_aux_dir"; then
626   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
627 fi
628 ac_config_guess=$ac_aux_dir/config.guess
629 ac_config_sub=$ac_aux_dir/config.sub
630 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
631
632 # Find a good install program.  We prefer a C program (faster),
633 # so one script is as good as another.  But avoid the broken or
634 # incompatible versions:
635 # SysV /etc/install, /usr/sbin/install
636 # SunOS /usr/etc/install
637 # IRIX /sbin/install
638 # AIX /bin/install
639 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
640 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
641 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
642 # ./install, which can be erroneously created by make from ./install.sh.
643 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
644 echo "configure:645: checking for a BSD compatible install" >&5
645 if test -z "$INSTALL"; then
646 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
647   echo $ac_n "(cached) $ac_c" 1>&6
648 else
649     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
650   for ac_dir in $PATH; do
651     # Account for people who put trailing slashes in PATH elements.
652     case "$ac_dir/" in
653     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
654     *)
655       # OSF1 and SCO ODT 3.0 have their own names for install.
656       # Don't use installbsd from OSF since it installs stuff as root
657       # by default.
658       for ac_prog in ginstall scoinst install; do
659         if test -f $ac_dir/$ac_prog; then
660           if test $ac_prog = install &&
661             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
662             # AIX install.  It has an incompatible calling convention.
663             :
664           else
665             ac_cv_path_install="$ac_dir/$ac_prog -c"
666             break 2
667           fi
668         fi
669       done
670       ;;
671     esac
672   done
673   IFS="$ac_save_IFS"
674
675 fi
676   if test "${ac_cv_path_install+set}" = set; then
677     INSTALL="$ac_cv_path_install"
678   else
679     # As a last resort, use the slow shell script.  We don't cache a
680     # path for INSTALL within a source directory, because that will
681     # break other packages using the cache if that directory is
682     # removed, or if the path is relative.
683     INSTALL="$ac_install_sh"
684   fi
685 fi
686 echo "$ac_t""$INSTALL" 1>&6
687
688 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
689 # It thinks the first close brace ends the variable substitution.
690 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
691
692 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
693
694 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
695
696 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
697 echo "configure:698: checking whether build environment is sane" >&5
698 # Just in case
699 sleep 1
700 echo timestamp > conftestfile
701 # Do `set' in a subshell so we don't clobber the current shell's
702 # arguments.  Must try -L first in case configure is actually a
703 # symlink; some systems play weird games with the mod time of symlinks
704 # (eg FreeBSD returns the mod time of the symlink's containing
705 # directory).
706 if (
707    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
708    if test "$*" = "X"; then
709       # -L didn't work.
710       set X `ls -t $srcdir/configure conftestfile`
711    fi
712    if test "$*" != "X $srcdir/configure conftestfile" \
713       && test "$*" != "X conftestfile $srcdir/configure"; then
714
715       # If neither matched, then we have a broken ls.  This can happen
716       # if, for instance, CONFIG_SHELL is bash and it inherits a
717       # broken ls alias from the environment.  This has actually
718       # happened.  Such a system could not be considered "sane".
719       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
720 alias in your environment" 1>&2; exit 1; }
721    fi
722
723    test "$2" = conftestfile
724    )
725 then
726    # Ok.
727    :
728 else
729    { echo "configure: error: newly created file is older than distributed files!
730 Check your system clock" 1>&2; exit 1; }
731 fi
732 rm -f conftest*
733 echo "$ac_t""yes" 1>&6
734 if test "$program_transform_name" = s,x,x,; then
735   program_transform_name=
736 else
737   # Double any \ or $.  echo might interpret backslashes.
738   cat <<\EOF_SED > conftestsed
739 s,\\,\\\\,g; s,\$,$$,g
740 EOF_SED
741   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
742   rm -f conftestsed
743 fi
744 test "$program_prefix" != NONE &&
745   program_transform_name="s,^,${program_prefix},; $program_transform_name"
746 # Use a double $ so make ignores it.
747 test "$program_suffix" != NONE &&
748   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
749
750 # sed with no file args requires a program.
751 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
752
753 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
754 echo "configure:755: checking whether ${MAKE-make} sets \${MAKE}" >&5
755 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
756 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
757   echo $ac_n "(cached) $ac_c" 1>&6
758 else
759   cat > conftestmake <<\EOF
760 all:
761         @echo 'ac_maketemp="${MAKE}"'
762 EOF
763 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
764 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
765 if test -n "$ac_maketemp"; then
766   eval ac_cv_prog_make_${ac_make}_set=yes
767 else
768   eval ac_cv_prog_make_${ac_make}_set=no
769 fi
770 rm -f conftestmake
771 fi
772 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
773   echo "$ac_t""yes" 1>&6
774   SET_MAKE=
775 else
776   echo "$ac_t""no" 1>&6
777   SET_MAKE="MAKE=${MAKE-make}"
778 fi
779
780
781 PACKAGE=GiNaC
782
783 VERSION=$GINACLIB_VERSION
784
785 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
786   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
787 fi
788 cat >> confdefs.h <<EOF
789 #define PACKAGE "$PACKAGE"
790 EOF
791
792 cat >> confdefs.h <<EOF
793 #define VERSION "$VERSION"
794 EOF
795
796
797
798 missing_dir=`cd $ac_aux_dir && pwd`
799 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
800 echo "configure:801: checking for working aclocal" >&5
801 # Run test in a subshell; some versions of sh will print an error if
802 # an executable is not found, even if stderr is redirected.
803 # Redirect stdin to placate older versions of autoconf.  Sigh.
804 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
805    ACLOCAL=aclocal
806    echo "$ac_t""found" 1>&6
807 else
808    ACLOCAL="$missing_dir/missing aclocal"
809    echo "$ac_t""missing" 1>&6
810 fi
811
812 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
813 echo "configure:814: checking for working autoconf" >&5
814 # Run test in a subshell; some versions of sh will print an error if
815 # an executable is not found, even if stderr is redirected.
816 # Redirect stdin to placate older versions of autoconf.  Sigh.
817 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
818    AUTOCONF=autoconf
819    echo "$ac_t""found" 1>&6
820 else
821    AUTOCONF="$missing_dir/missing autoconf"
822    echo "$ac_t""missing" 1>&6
823 fi
824
825 echo $ac_n "checking for working automake""... $ac_c" 1>&6
826 echo "configure:827: checking for working automake" >&5
827 # Run test in a subshell; some versions of sh will print an error if
828 # an executable is not found, even if stderr is redirected.
829 # Redirect stdin to placate older versions of autoconf.  Sigh.
830 if (automake --version) < /dev/null > /dev/null 2>&1; then
831    AUTOMAKE=automake
832    echo "$ac_t""found" 1>&6
833 else
834    AUTOMAKE="$missing_dir/missing automake"
835    echo "$ac_t""missing" 1>&6
836 fi
837
838 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
839 echo "configure:840: checking for working autoheader" >&5
840 # Run test in a subshell; some versions of sh will print an error if
841 # an executable is not found, even if stderr is redirected.
842 # Redirect stdin to placate older versions of autoconf.  Sigh.
843 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
844    AUTOHEADER=autoheader
845    echo "$ac_t""found" 1>&6
846 else
847    AUTOHEADER="$missing_dir/missing autoheader"
848    echo "$ac_t""missing" 1>&6
849 fi
850
851 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
852 echo "configure:853: checking for working makeinfo" >&5
853 # Run test in a subshell; some versions of sh will print an error if
854 # an executable is not found, even if stderr is redirected.
855 # Redirect stdin to placate older versions of autoconf.  Sigh.
856 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
857    MAKEINFO=makeinfo
858    echo "$ac_t""found" 1>&6
859 else
860    MAKEINFO="$missing_dir/missing makeinfo"
861    echo "$ac_t""missing" 1>&6
862 fi
863
864
865 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
866 echo "configure:867: checking whether to enable maintainer-specific portions of Makefiles" >&5
867     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
868 if test "${enable_maintainer_mode+set}" = set; then
869   enableval="$enable_maintainer_mode"
870   USE_MAINTAINER_MODE=$enableval
871 else
872   USE_MAINTAINER_MODE=no
873 fi
874
875   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
876   
877
878 if test $USE_MAINTAINER_MODE = yes; then
879   MAINTAINER_MODE_TRUE=
880   MAINTAINER_MODE_FALSE='#'
881 else
882   MAINTAINER_MODE_TRUE='#'
883   MAINTAINER_MODE_FALSE=
884 fi
885   MAINT=$MAINTAINER_MODE_TRUE
886   
887
888
889 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
890 do
891 # Extract the first word of "$ac_prog", so it can be a program name with args.
892 set dummy $ac_prog; ac_word=$2
893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
894 echo "configure:895: checking for $ac_word" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
896   echo $ac_n "(cached) $ac_c" 1>&6
897 else
898   if test -n "$CXX"; then
899   ac_cv_prog_CXX="$CXX" # Let the user override the test.
900 else
901   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
902   ac_dummy="$PATH"
903   for ac_dir in $ac_dummy; do
904     test -z "$ac_dir" && ac_dir=.
905     if test -f $ac_dir/$ac_word; then
906       ac_cv_prog_CXX="$ac_prog"
907       break
908     fi
909   done
910   IFS="$ac_save_ifs"
911 fi
912 fi
913 CXX="$ac_cv_prog_CXX"
914 if test -n "$CXX"; then
915   echo "$ac_t""$CXX" 1>&6
916 else
917   echo "$ac_t""no" 1>&6
918 fi
919
920 test -n "$CXX" && break
921 done
922 test -n "$CXX" || CXX="gcc"
923
924
925 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
926 echo "configure:927: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
927
928 ac_ext=C
929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp='$CXXCPP $CPPFLAGS'
931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling=$ac_cv_prog_cxx_cross
934
935 cat > conftest.$ac_ext << EOF
936
937 #line 938 "configure"
938 #include "confdefs.h"
939
940 int main(){return(0);}
941 EOF
942 if { (eval echo configure:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
943   ac_cv_prog_cxx_works=yes
944   # If we can't run a trivial program, we are probably using a cross compiler.
945   if (./conftest; exit) 2>/dev/null; then
946     ac_cv_prog_cxx_cross=no
947   else
948     ac_cv_prog_cxx_cross=yes
949   fi
950 else
951   echo "configure: failed program was:" >&5
952   cat conftest.$ac_ext >&5
953   ac_cv_prog_cxx_works=no
954 fi
955 rm -fr conftest*
956 ac_ext=c
957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
958 ac_cpp='$CPP $CPPFLAGS'
959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
961 cross_compiling=$ac_cv_prog_cc_cross
962
963 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
964 if test $ac_cv_prog_cxx_works = no; then
965   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
966 fi
967 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
968 echo "configure:969: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
969 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
970 cross_compiling=$ac_cv_prog_cxx_cross
971
972 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
973 echo "configure:974: checking whether we are using GNU C++" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
975   echo $ac_n "(cached) $ac_c" 1>&6
976 else
977   cat > conftest.C <<EOF
978 #ifdef __GNUC__
979   yes;
980 #endif
981 EOF
982 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
983   ac_cv_prog_gxx=yes
984 else
985   ac_cv_prog_gxx=no
986 fi
987 fi
988
989 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
990
991 if test $ac_cv_prog_gxx = yes; then
992   GXX=yes
993 else
994   GXX=
995 fi
996
997 ac_test_CXXFLAGS="${CXXFLAGS+set}"
998 ac_save_CXXFLAGS="$CXXFLAGS"
999 CXXFLAGS=
1000 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1001 echo "configure:1002: checking whether ${CXX-g++} accepts -g" >&5
1002 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1003   echo $ac_n "(cached) $ac_c" 1>&6
1004 else
1005   echo 'void f(){}' > conftest.cc
1006 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1007   ac_cv_prog_cxx_g=yes
1008 else
1009   ac_cv_prog_cxx_g=no
1010 fi
1011 rm -f conftest*
1012
1013 fi
1014
1015 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1016 if test "$ac_test_CXXFLAGS" = set; then
1017   CXXFLAGS="$ac_save_CXXFLAGS"
1018 elif test $ac_cv_prog_cxx_g = yes; then
1019   if test "$GXX" = yes; then
1020     CXXFLAGS="-g -O2"
1021   else
1022     CXXFLAGS="-g"
1023   fi
1024 else
1025   if test "$GXX" = yes; then
1026     CXXFLAGS="-O2"
1027   else
1028     CXXFLAGS=
1029   fi
1030 fi
1031
1032 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1033 echo "configure:1034: checking how to run the C++ preprocessor" >&5
1034 if test -z "$CXXCPP"; then
1035 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1036   echo $ac_n "(cached) $ac_c" 1>&6
1037 else
1038   ac_ext=C
1039 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1040 ac_cpp='$CXXCPP $CPPFLAGS'
1041 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1042 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1043 cross_compiling=$ac_cv_prog_cxx_cross
1044   CXXCPP="${CXX-g++} -E"
1045   cat > conftest.$ac_ext <<EOF
1046 #line 1047 "configure"
1047 #include "confdefs.h"
1048 #include <stdlib.h>
1049 EOF
1050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1051 { (eval echo configure:1052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1053 if test -z "$ac_err"; then
1054   :
1055 else
1056   echo "$ac_err" >&5
1057   echo "configure: failed program was:" >&5
1058   cat conftest.$ac_ext >&5
1059   rm -rf conftest*
1060   CXXCPP=/lib/cpp
1061 fi
1062 rm -f conftest*
1063   ac_cv_prog_CXXCPP="$CXXCPP"
1064 ac_ext=c
1065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1066 ac_cpp='$CPP $CPPFLAGS'
1067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1069 cross_compiling=$ac_cv_prog_cc_cross
1070 fi
1071 fi
1072 CXXCPP="$ac_cv_prog_CXXCPP"
1073 echo "$ac_t""$CXXCPP" 1>&6
1074
1075 # Find a good install program.  We prefer a C program (faster),
1076 # so one script is as good as another.  But avoid the broken or
1077 # incompatible versions:
1078 # SysV /etc/install, /usr/sbin/install
1079 # SunOS /usr/etc/install
1080 # IRIX /sbin/install
1081 # AIX /bin/install
1082 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1083 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1084 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1085 # ./install, which can be erroneously created by make from ./install.sh.
1086 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1087 echo "configure:1088: checking for a BSD compatible install" >&5
1088 if test -z "$INSTALL"; then
1089 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1090   echo $ac_n "(cached) $ac_c" 1>&6
1091 else
1092     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1093   for ac_dir in $PATH; do
1094     # Account for people who put trailing slashes in PATH elements.
1095     case "$ac_dir/" in
1096     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1097     *)
1098       # OSF1 and SCO ODT 3.0 have their own names for install.
1099       # Don't use installbsd from OSF since it installs stuff as root
1100       # by default.
1101       for ac_prog in ginstall scoinst install; do
1102         if test -f $ac_dir/$ac_prog; then
1103           if test $ac_prog = install &&
1104             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1105             # AIX install.  It has an incompatible calling convention.
1106             :
1107           else
1108             ac_cv_path_install="$ac_dir/$ac_prog -c"
1109             break 2
1110           fi
1111         fi
1112       done
1113       ;;
1114     esac
1115   done
1116   IFS="$ac_save_IFS"
1117
1118 fi
1119   if test "${ac_cv_path_install+set}" = set; then
1120     INSTALL="$ac_cv_path_install"
1121   else
1122     # As a last resort, use the slow shell script.  We don't cache a
1123     # path for INSTALL within a source directory, because that will
1124     # break other packages using the cache if that directory is
1125     # removed, or if the path is relative.
1126     INSTALL="$ac_install_sh"
1127   fi
1128 fi
1129 echo "$ac_t""$INSTALL" 1>&6
1130
1131 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1132 # It thinks the first close brace ends the variable substitution.
1133 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1134
1135 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1136
1137 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1138
1139 # Check whether --enable-shared or --disable-shared was given.
1140 if test "${enable_shared+set}" = set; then
1141   enableval="$enable_shared"
1142   p=${PACKAGE-default}
1143 case "$enableval" in
1144 yes) enable_shared=yes ;;
1145 no) enable_shared=no ;;
1146 *)
1147   enable_shared=no
1148   # Look at the argument we got.  We use all the common list separators.
1149   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1150   for pkg in $enableval; do
1151     if test "X$pkg" = "X$p"; then
1152       enable_shared=yes
1153     fi
1154   done
1155   IFS="$ac_save_ifs"
1156   ;;
1157 esac
1158 else
1159   enable_shared=yes
1160 fi
1161
1162 # Check whether --enable-static or --disable-static was given.
1163 if test "${enable_static+set}" = set; then
1164   enableval="$enable_static"
1165   p=${PACKAGE-default}
1166 case "$enableval" in
1167 yes) enable_static=yes ;;
1168 no) enable_static=no ;;
1169 *)
1170   enable_static=no
1171   # Look at the argument we got.  We use all the common list separators.
1172   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1173   for pkg in $enableval; do
1174     if test "X$pkg" = "X$p"; then
1175       enable_static=yes
1176     fi
1177   done
1178   IFS="$ac_save_ifs"
1179   ;;
1180 esac
1181 else
1182   enable_static=yes
1183 fi
1184
1185 # Check whether --enable-fast-install or --disable-fast-install was given.
1186 if test "${enable_fast_install+set}" = set; then
1187   enableval="$enable_fast_install"
1188   p=${PACKAGE-default}
1189 case "$enableval" in
1190 yes) enable_fast_install=yes ;;
1191 no) enable_fast_install=no ;;
1192 *)
1193   enable_fast_install=no
1194   # Look at the argument we got.  We use all the common list separators.
1195   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1196   for pkg in $enableval; do
1197     if test "X$pkg" = "X$p"; then
1198       enable_fast_install=yes
1199     fi
1200   done
1201   IFS="$ac_save_ifs"
1202   ;;
1203 esac
1204 else
1205   enable_fast_install=yes
1206 fi
1207
1208
1209 # Make sure we can run config.sub.
1210 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1211 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1212 fi
1213
1214 echo $ac_n "checking host system type""... $ac_c" 1>&6
1215 echo "configure:1216: checking host system type" >&5
1216
1217 host_alias=$host
1218 case "$host_alias" in
1219 NONE)
1220   case $nonopt in
1221   NONE)
1222     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1223     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1224     fi ;;
1225   *) host_alias=$nonopt ;;
1226   esac ;;
1227 esac
1228
1229 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1230 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1231 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1232 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1233 echo "$ac_t""$host" 1>&6
1234
1235 echo $ac_n "checking build system type""... $ac_c" 1>&6
1236 echo "configure:1237: checking build system type" >&5
1237
1238 build_alias=$build
1239 case "$build_alias" in
1240 NONE)
1241   case $nonopt in
1242   NONE) build_alias=$host_alias ;;
1243   *) build_alias=$nonopt ;;
1244   esac ;;
1245 esac
1246
1247 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1248 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1249 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1250 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1251 echo "$ac_t""$build" 1>&6
1252
1253 # Extract the first word of "ranlib", so it can be a program name with args.
1254 set dummy ranlib; ac_word=$2
1255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1256 echo "configure:1257: checking for $ac_word" >&5
1257 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1258   echo $ac_n "(cached) $ac_c" 1>&6
1259 else
1260   if test -n "$RANLIB"; then
1261   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1262 else
1263   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1264   ac_dummy="$PATH"
1265   for ac_dir in $ac_dummy; do
1266     test -z "$ac_dir" && ac_dir=.
1267     if test -f $ac_dir/$ac_word; then
1268       ac_cv_prog_RANLIB="ranlib"
1269       break
1270     fi
1271   done
1272   IFS="$ac_save_ifs"
1273   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1274 fi
1275 fi
1276 RANLIB="$ac_cv_prog_RANLIB"
1277 if test -n "$RANLIB"; then
1278   echo "$ac_t""$RANLIB" 1>&6
1279 else
1280   echo "$ac_t""no" 1>&6
1281 fi
1282
1283 # Extract the first word of "gcc", so it can be a program name with args.
1284 set dummy gcc; ac_word=$2
1285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1286 echo "configure:1287: checking for $ac_word" >&5
1287 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1288   echo $ac_n "(cached) $ac_c" 1>&6
1289 else
1290   if test -n "$CC"; then
1291   ac_cv_prog_CC="$CC" # Let the user override the test.
1292 else
1293   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1294   ac_dummy="$PATH"
1295   for ac_dir in $ac_dummy; do
1296     test -z "$ac_dir" && ac_dir=.
1297     if test -f $ac_dir/$ac_word; then
1298       ac_cv_prog_CC="gcc"
1299       break
1300     fi
1301   done
1302   IFS="$ac_save_ifs"
1303 fi
1304 fi
1305 CC="$ac_cv_prog_CC"
1306 if test -n "$CC"; then
1307   echo "$ac_t""$CC" 1>&6
1308 else
1309   echo "$ac_t""no" 1>&6
1310 fi
1311
1312 if test -z "$CC"; then
1313   # Extract the first word of "cc", so it can be a program name with args.
1314 set dummy cc; ac_word=$2
1315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1316 echo "configure:1317: checking for $ac_word" >&5
1317 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1318   echo $ac_n "(cached) $ac_c" 1>&6
1319 else
1320   if test -n "$CC"; then
1321   ac_cv_prog_CC="$CC" # Let the user override the test.
1322 else
1323   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1324   ac_prog_rejected=no
1325   ac_dummy="$PATH"
1326   for ac_dir in $ac_dummy; do
1327     test -z "$ac_dir" && ac_dir=.
1328     if test -f $ac_dir/$ac_word; then
1329       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1330         ac_prog_rejected=yes
1331         continue
1332       fi
1333       ac_cv_prog_CC="cc"
1334       break
1335     fi
1336   done
1337   IFS="$ac_save_ifs"
1338 if test $ac_prog_rejected = yes; then
1339   # We found a bogon in the path, so make sure we never use it.
1340   set dummy $ac_cv_prog_CC
1341   shift
1342   if test $# -gt 0; then
1343     # We chose a different compiler from the bogus one.
1344     # However, it has the same basename, so the bogon will be chosen
1345     # first if we set CC to just the basename; use the full file name.
1346     shift
1347     set dummy "$ac_dir/$ac_word" "$@"
1348     shift
1349     ac_cv_prog_CC="$@"
1350   fi
1351 fi
1352 fi
1353 fi
1354 CC="$ac_cv_prog_CC"
1355 if test -n "$CC"; then
1356   echo "$ac_t""$CC" 1>&6
1357 else
1358   echo "$ac_t""no" 1>&6
1359 fi
1360
1361   if test -z "$CC"; then
1362     case "`uname -s`" in
1363     *win32* | *WIN32*)
1364       # Extract the first word of "cl", so it can be a program name with args.
1365 set dummy cl; ac_word=$2
1366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1367 echo "configure:1368: checking for $ac_word" >&5
1368 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1369   echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371   if test -n "$CC"; then
1372   ac_cv_prog_CC="$CC" # Let the user override the test.
1373 else
1374   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1375   ac_dummy="$PATH"
1376   for ac_dir in $ac_dummy; do
1377     test -z "$ac_dir" && ac_dir=.
1378     if test -f $ac_dir/$ac_word; then
1379       ac_cv_prog_CC="cl"
1380       break
1381     fi
1382   done
1383   IFS="$ac_save_ifs"
1384 fi
1385 fi
1386 CC="$ac_cv_prog_CC"
1387 if test -n "$CC"; then
1388   echo "$ac_t""$CC" 1>&6
1389 else
1390   echo "$ac_t""no" 1>&6
1391 fi
1392  ;;
1393     esac
1394   fi
1395   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1396 fi
1397
1398 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1399 echo "configure:1400: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1400
1401 ac_ext=c
1402 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1403 ac_cpp='$CPP $CPPFLAGS'
1404 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1405 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1406 cross_compiling=$ac_cv_prog_cc_cross
1407
1408 cat > conftest.$ac_ext << EOF
1409
1410 #line 1411 "configure"
1411 #include "confdefs.h"
1412
1413 main(){return(0);}
1414 EOF
1415 if { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1416   ac_cv_prog_cc_works=yes
1417   # If we can't run a trivial program, we are probably using a cross compiler.
1418   if (./conftest; exit) 2>/dev/null; then
1419     ac_cv_prog_cc_cross=no
1420   else
1421     ac_cv_prog_cc_cross=yes
1422   fi
1423 else
1424   echo "configure: failed program was:" >&5
1425   cat conftest.$ac_ext >&5
1426   ac_cv_prog_cc_works=no
1427 fi
1428 rm -fr conftest*
1429 ac_ext=c
1430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1431 ac_cpp='$CPP $CPPFLAGS'
1432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1434 cross_compiling=$ac_cv_prog_cc_cross
1435
1436 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1437 if test $ac_cv_prog_cc_works = no; then
1438   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1439 fi
1440 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1441 echo "configure:1442: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1442 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1443 cross_compiling=$ac_cv_prog_cc_cross
1444
1445 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1446 echo "configure:1447: checking whether we are using GNU C" >&5
1447 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1448   echo $ac_n "(cached) $ac_c" 1>&6
1449 else
1450   cat > conftest.c <<EOF
1451 #ifdef __GNUC__
1452   yes;
1453 #endif
1454 EOF
1455 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1456   ac_cv_prog_gcc=yes
1457 else
1458   ac_cv_prog_gcc=no
1459 fi
1460 fi
1461
1462 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1463
1464 if test $ac_cv_prog_gcc = yes; then
1465   GCC=yes
1466 else
1467   GCC=
1468 fi
1469
1470 ac_test_CFLAGS="${CFLAGS+set}"
1471 ac_save_CFLAGS="$CFLAGS"
1472 CFLAGS=
1473 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1474 echo "configure:1475: checking whether ${CC-cc} accepts -g" >&5
1475 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1476   echo $ac_n "(cached) $ac_c" 1>&6
1477 else
1478   echo 'void f(){}' > conftest.c
1479 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1480   ac_cv_prog_cc_g=yes
1481 else
1482   ac_cv_prog_cc_g=no
1483 fi
1484 rm -f conftest*
1485
1486 fi
1487
1488 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1489 if test "$ac_test_CFLAGS" = set; then
1490   CFLAGS="$ac_save_CFLAGS"
1491 elif test $ac_cv_prog_cc_g = yes; then
1492   if test "$GCC" = yes; then
1493     CFLAGS="-g -O2"
1494   else
1495     CFLAGS="-g"
1496   fi
1497 else
1498   if test "$GCC" = yes; then
1499     CFLAGS="-O2"
1500   else
1501     CFLAGS=
1502   fi
1503 fi
1504
1505 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1506 if test "${with_gnu_ld+set}" = set; then
1507   withval="$with_gnu_ld"
1508   test "$withval" = no || with_gnu_ld=yes
1509 else
1510   with_gnu_ld=no
1511 fi
1512
1513 ac_prog=ld
1514 if test "$ac_cv_prog_gcc" = yes; then
1515   # Check if gcc -print-prog-name=ld gives a path.
1516   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1517 echo "configure:1518: checking for ld used by GCC" >&5
1518   ac_prog=`($CC -print-prog-name=ld) 2>&5`
1519   case "$ac_prog" in
1520     # Accept absolute paths.
1521     [\\/]* | [A-Za-z]:[\\/]*)
1522       re_direlt='/[^/][^/]*/\.\./'
1523       # Canonicalize the path of ld
1524       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1525       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1526         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1527       done
1528       test -z "$LD" && LD="$ac_prog"
1529       ;;
1530   "")
1531     # If it fails, then pretend we aren't using GCC.
1532     ac_prog=ld
1533     ;;
1534   *)
1535     # If it is relative, then search for the first ld in PATH.
1536     with_gnu_ld=unknown
1537     ;;
1538   esac
1539 elif test "$with_gnu_ld" = yes; then
1540   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1541 echo "configure:1542: checking for GNU ld" >&5
1542 else
1543   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1544 echo "configure:1545: checking for non-GNU ld" >&5
1545 fi
1546 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1547   echo $ac_n "(cached) $ac_c" 1>&6
1548 else
1549   if test -z "$LD"; then
1550   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1551   for ac_dir in $PATH; do
1552     test -z "$ac_dir" && ac_dir=.
1553     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1554       ac_cv_path_LD="$ac_dir/$ac_prog"
1555       # Check to see if the program is GNU ld.  I'd rather use --version,
1556       # but apparently some GNU ld's only accept -v.
1557       # Break only if it was the GNU/non-GNU ld that we prefer.
1558       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1559         test "$with_gnu_ld" != no && break
1560       else
1561         test "$with_gnu_ld" != yes && break
1562       fi
1563     fi
1564   done
1565   IFS="$ac_save_ifs"
1566 else
1567   ac_cv_path_LD="$LD" # Let the user override the test with a path.
1568 fi
1569 fi
1570
1571 LD="$ac_cv_path_LD"
1572 if test -n "$LD"; then
1573   echo "$ac_t""$LD" 1>&6
1574 else
1575   echo "$ac_t""no" 1>&6
1576 fi
1577 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1578
1579 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1580 echo "configure:1581: checking if the linker ($LD) is GNU ld" >&5
1581 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1582   echo $ac_n "(cached) $ac_c" 1>&6
1583 else
1584   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1585 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1586   ac_cv_prog_gnu_ld=yes
1587 else
1588   ac_cv_prog_gnu_ld=no
1589 fi
1590 fi
1591
1592 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1593
1594
1595 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1596 echo "configure:1597: checking for BSD-compatible nm" >&5
1597 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1598   echo $ac_n "(cached) $ac_c" 1>&6
1599 else
1600   if test -n "$NM"; then
1601   # Let the user override the test.
1602   ac_cv_path_NM="$NM"
1603 else
1604   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1605   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1606     test -z "$ac_dir" && ac_dir=.
1607     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1608       # Check to see if the nm accepts a BSD-compat flag.
1609       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1610       #   nm: unknown option "B" ignored
1611       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1612         ac_cv_path_NM="$ac_dir/nm -B"
1613         break
1614       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1615         ac_cv_path_NM="$ac_dir/nm -p"
1616         break
1617       else
1618         ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1619         continue # so that we can try to find one that supports BSD flags
1620       fi
1621     fi
1622   done
1623   IFS="$ac_save_ifs"
1624   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1625 fi
1626 fi
1627
1628 NM="$ac_cv_path_NM"
1629 echo "$ac_t""$NM" 1>&6
1630
1631
1632 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1633 echo "configure:1634: checking whether ln -s works" >&5
1634 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1635   echo $ac_n "(cached) $ac_c" 1>&6
1636 else
1637   rm -f conftestdata
1638 if ln -s X conftestdata 2>/dev/null
1639 then
1640   rm -f conftestdata
1641   ac_cv_prog_LN_S="ln -s"
1642 else
1643   ac_cv_prog_LN_S=ln
1644 fi
1645 fi
1646 LN_S="$ac_cv_prog_LN_S"
1647 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1648   echo "$ac_t""yes" 1>&6
1649 else
1650   echo "$ac_t""no" 1>&6
1651 fi
1652
1653
1654 # Check for any special flags to pass to ltconfig.
1655 libtool_flags="--cache-file=$cache_file"
1656 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1657 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1658 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1659 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1660 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1661
1662
1663 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1664 if test "${enable_libtool_lock+set}" = set; then
1665   enableval="$enable_libtool_lock"
1666   :
1667 fi
1668
1669 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1670 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1671
1672 # Some flags need to be propagated to the compiler or linker for good
1673 # libtool support.
1674 case "$host" in
1675 *-*-irix6*)
1676   # Find out which ABI we are using.
1677   echo '#line 1678 "configure"' > conftest.$ac_ext
1678   if { (eval echo configure:1679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1679     case "`/usr/bin/file conftest.o`" in
1680     *32-bit*)
1681       LD="${LD-ld} -32"
1682       ;;
1683     *N32*)
1684       LD="${LD-ld} -n32"
1685       ;;
1686     *64-bit*)
1687       LD="${LD-ld} -64"
1688       ;;
1689     esac
1690   fi
1691   rm -rf conftest*
1692   ;;
1693
1694 *-*-sco3.2v5*)
1695   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1696   SAVE_CFLAGS="$CFLAGS"
1697   CFLAGS="$CFLAGS -belf"
1698   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1699 echo "configure:1700: checking whether the C compiler needs -belf" >&5
1700 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1701   echo $ac_n "(cached) $ac_c" 1>&6
1702 else
1703   cat > conftest.$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1706
1707 int main() {
1708
1709 ; return 0; }
1710 EOF
1711 if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1712   rm -rf conftest*
1713   lt_cv_cc_needs_belf=yes
1714 else
1715   echo "configure: failed program was:" >&5
1716   cat conftest.$ac_ext >&5
1717   rm -rf conftest*
1718   lt_cv_cc_needs_belf=no
1719 fi
1720 rm -f conftest*
1721 fi
1722
1723 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1724   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1725     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1726     CFLAGS="$SAVE_CFLAGS"
1727   fi
1728   ;;
1729
1730
1731 esac
1732
1733
1734 # Save cache, so that ltconfig can load it
1735 cat > confcache <<\EOF
1736 # This file is a shell script that caches the results of configure
1737 # tests run on this system so they can be shared between configure
1738 # scripts and configure runs.  It is not useful on other systems.
1739 # If it contains results you don't want to keep, you may remove or edit it.
1740 #
1741 # By default, configure uses ./config.cache as the cache file,
1742 # creating it if it does not exist already.  You can give configure
1743 # the --cache-file=FILE option to use a different cache file; that is
1744 # what configure does when it calls configure scripts in
1745 # subdirectories, so they share the cache.
1746 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1747 # config.status only pays attention to the cache file if you give it the
1748 # --recheck option to rerun configure.
1749 #
1750 EOF
1751 # The following way of writing the cache mishandles newlines in values,
1752 # but we know of no workaround that is simple, portable, and efficient.
1753 # So, don't put newlines in cache variables' values.
1754 # Ultrix sh set writes to stderr and can't be redirected directly,
1755 # and sets the high bit in the cache file unless we assign to the vars.
1756 (set) 2>&1 |
1757   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1758   *ac_space=\ *)
1759     # `set' does not quote correctly, so add quotes (double-quote substitution
1760     # turns \\\\ into \\, and sed turns \\ into \).
1761     sed -n \
1762       -e "s/'/'\\\\''/g" \
1763       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1764     ;;
1765   *)
1766     # `set' quotes correctly as required by POSIX, so do not add quotes.
1767     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1768     ;;
1769   esac >> confcache
1770 if cmp -s $cache_file confcache; then
1771   :
1772 else
1773   if test -w $cache_file; then
1774     echo "updating cache $cache_file"
1775     cat confcache > $cache_file
1776   else
1777     echo "not updating unwritable cache $cache_file"
1778   fi
1779 fi
1780 rm -f confcache
1781
1782
1783 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
1784 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1785 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1786 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1787 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1788 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1789 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1790 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1791
1792 # Reload cache, that may have been modified by ltconfig
1793 if test -r "$cache_file"; then
1794   echo "loading cache $cache_file"
1795   . $cache_file
1796 else
1797   echo "creating cache $cache_file"
1798   > $cache_file
1799 fi
1800
1801
1802 # This can be used to rebuild libtool when needed
1803 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1804
1805 # Always use our own libtool.
1806 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1807
1808 # Redirect the config.log output again, so that the ltconfig log is not
1809 # clobbered by the next message.
1810 exec 5>>./config.log
1811
1812 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1813 echo "configure:1814: checking how to run the C preprocessor" >&5
1814 # On Suns, sometimes $CPP names a directory.
1815 if test -n "$CPP" && test -d "$CPP"; then
1816   CPP=
1817 fi
1818 if test -z "$CPP"; then
1819 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1820   echo $ac_n "(cached) $ac_c" 1>&6
1821 else
1822     # This must be in double quotes, not single quotes, because CPP may get
1823   # substituted into the Makefile and "${CC-cc}" will confuse make.
1824   CPP="${CC-cc} -E"
1825   # On the NeXT, cc -E runs the code through the compiler's parser,
1826   # not just through cpp.
1827   cat > conftest.$ac_ext <<EOF
1828 #line 1829 "configure"
1829 #include "confdefs.h"
1830 #include <assert.h>
1831 Syntax Error
1832 EOF
1833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1834 { (eval echo configure:1835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1836 if test -z "$ac_err"; then
1837   :
1838 else
1839   echo "$ac_err" >&5
1840   echo "configure: failed program was:" >&5
1841   cat conftest.$ac_ext >&5
1842   rm -rf conftest*
1843   CPP="${CC-cc} -E -traditional-cpp"
1844   cat > conftest.$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1847 #include <assert.h>
1848 Syntax Error
1849 EOF
1850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1851 { (eval echo configure:1852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1853 if test -z "$ac_err"; then
1854   :
1855 else
1856   echo "$ac_err" >&5
1857   echo "configure: failed program was:" >&5
1858   cat conftest.$ac_ext >&5
1859   rm -rf conftest*
1860   CPP="${CC-cc} -nologo -E"
1861   cat > conftest.$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 #include <assert.h>
1865 Syntax Error
1866 EOF
1867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1868 { (eval echo configure:1869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1870 if test -z "$ac_err"; then
1871   :
1872 else
1873   echo "$ac_err" >&5
1874   echo "configure: failed program was:" >&5
1875   cat conftest.$ac_ext >&5
1876   rm -rf conftest*
1877   CPP=/lib/cpp
1878 fi
1879 rm -f conftest*
1880 fi
1881 rm -f conftest*
1882 fi
1883 rm -f conftest*
1884   ac_cv_prog_CPP="$CPP"
1885 fi
1886   CPP="$ac_cv_prog_CPP"
1887 else
1888   ac_cv_prog_CPP="$CPP"
1889 fi
1890 echo "$ac_t""$CPP" 1>&6
1891
1892 missing_dir=`cd $ac_aux_dir && pwd`
1893 for ac_prog in flex lex
1894 do
1895 # Extract the first word of "$ac_prog", so it can be a program name with args.
1896 set dummy $ac_prog; ac_word=$2
1897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1898 echo "configure:1899: checking for $ac_word" >&5
1899 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1900   echo $ac_n "(cached) $ac_c" 1>&6
1901 else
1902   if test -n "$LEX"; then
1903   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1904 else
1905   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1906   ac_dummy="$PATH"
1907   for ac_dir in $ac_dummy; do
1908     test -z "$ac_dir" && ac_dir=.
1909     if test -f $ac_dir/$ac_word; then
1910       ac_cv_prog_LEX="$ac_prog"
1911       break
1912     fi
1913   done
1914   IFS="$ac_save_ifs"
1915 fi
1916 fi
1917 LEX="$ac_cv_prog_LEX"
1918 if test -n "$LEX"; then
1919   echo "$ac_t""$LEX" 1>&6
1920 else
1921   echo "$ac_t""no" 1>&6
1922 fi
1923
1924 test -n "$LEX" && break
1925 done
1926 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1927
1928 # Extract the first word of "flex", so it can be a program name with args.
1929 set dummy flex; ac_word=$2
1930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1931 echo "configure:1932: checking for $ac_word" >&5
1932 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1933   echo $ac_n "(cached) $ac_c" 1>&6
1934 else
1935   if test -n "$LEX"; then
1936   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1937 else
1938   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1939   ac_dummy="$PATH"
1940   for ac_dir in $ac_dummy; do
1941     test -z "$ac_dir" && ac_dir=.
1942     if test -f $ac_dir/$ac_word; then
1943       ac_cv_prog_LEX="flex"
1944       break
1945     fi
1946   done
1947   IFS="$ac_save_ifs"
1948   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1949 fi
1950 fi
1951 LEX="$ac_cv_prog_LEX"
1952 if test -n "$LEX"; then
1953   echo "$ac_t""$LEX" 1>&6
1954 else
1955   echo "$ac_t""no" 1>&6
1956 fi
1957
1958 if test -z "$LEXLIB"
1959 then
1960   case "$LEX" in
1961   flex*) ac_lib=fl ;;
1962   *) ac_lib=l ;;
1963   esac
1964   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1965 echo "configure:1966: checking for yywrap in -l$ac_lib" >&5
1966 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1967 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1968   echo $ac_n "(cached) $ac_c" 1>&6
1969 else
1970   ac_save_LIBS="$LIBS"
1971 LIBS="-l$ac_lib  $LIBS"
1972 cat > conftest.$ac_ext <<EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1975 /* Override any gcc2 internal prototype to avoid an error.  */
1976 /* We use char because int might match the return type of a gcc2
1977     builtin and then its argument prototype would still apply.  */
1978 char yywrap();
1979
1980 int main() {
1981 yywrap()
1982 ; return 0; }
1983 EOF
1984 if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1985   rm -rf conftest*
1986   eval "ac_cv_lib_$ac_lib_var=yes"
1987 else
1988   echo "configure: failed program was:" >&5
1989   cat conftest.$ac_ext >&5
1990   rm -rf conftest*
1991   eval "ac_cv_lib_$ac_lib_var=no"
1992 fi
1993 rm -f conftest*
1994 LIBS="$ac_save_LIBS"
1995
1996 fi
1997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1998   echo "$ac_t""yes" 1>&6
1999   LEXLIB="-l$ac_lib"
2000 else
2001   echo "$ac_t""no" 1>&6
2002 fi
2003
2004 fi
2005
2006 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2007 echo "configure:2008: checking lex output file root" >&5
2008 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2009   echo $ac_n "(cached) $ac_c" 1>&6
2010 else
2011   # The minimal lex program is just a single line: %%.  But some broken lexes
2012 # (Solaris, I think it was) want two %% lines, so accommodate them.
2013 echo '%%
2014 %%' | $LEX
2015 if test -f lex.yy.c; then
2016   ac_cv_prog_lex_root=lex.yy
2017 elif test -f lexyy.c; then
2018   ac_cv_prog_lex_root=lexyy
2019 else
2020   { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2021 fi
2022 fi
2023
2024 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2025 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2026
2027 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2028 echo "configure:2029: checking whether yytext is a pointer" >&5
2029 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2030   echo $ac_n "(cached) $ac_c" 1>&6
2031 else
2032   # POSIX says lex can declare yytext either as a pointer or an array; the
2033 # default is implementation-dependent. Figure out which it is, since
2034 # not all implementations provide the %pointer and %array declarations.
2035 ac_cv_prog_lex_yytext_pointer=no
2036 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2037 ac_save_LIBS="$LIBS"
2038 LIBS="$LIBS $LEXLIB"
2039 cat > conftest.$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2042 `cat $LEX_OUTPUT_ROOT.c`
2043 int main() {
2044
2045 ; return 0; }
2046 EOF
2047 if { (eval echo configure:2048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2048   rm -rf conftest*
2049   ac_cv_prog_lex_yytext_pointer=yes
2050 else
2051   echo "configure: failed program was:" >&5
2052   cat conftest.$ac_ext >&5
2053 fi
2054 rm -f conftest*
2055 LIBS="$ac_save_LIBS"
2056 rm -f "${LEX_OUTPUT_ROOT}.c"
2057
2058 fi
2059
2060 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2061 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2062   cat >> confdefs.h <<\EOF
2063 #define YYTEXT_POINTER 1
2064 EOF
2065
2066 fi
2067
2068 for ac_prog in 'bison -y' byacc
2069 do
2070 # Extract the first word of "$ac_prog", so it can be a program name with args.
2071 set dummy $ac_prog; ac_word=$2
2072 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2073 echo "configure:2074: checking for $ac_word" >&5
2074 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2075   echo $ac_n "(cached) $ac_c" 1>&6
2076 else
2077   if test -n "$YACC"; then
2078   ac_cv_prog_YACC="$YACC" # Let the user override the test.
2079 else
2080   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2081   ac_dummy="$PATH"
2082   for ac_dir in $ac_dummy; do
2083     test -z "$ac_dir" && ac_dir=.
2084     if test -f $ac_dir/$ac_word; then
2085       ac_cv_prog_YACC="$ac_prog"
2086       break
2087     fi
2088   done
2089   IFS="$ac_save_ifs"
2090 fi
2091 fi
2092 YACC="$ac_cv_prog_YACC"
2093 if test -n "$YACC"; then
2094   echo "$ac_t""$YACC" 1>&6
2095 else
2096   echo "$ac_t""no" 1>&6
2097 fi
2098
2099 test -n "$YACC" && break
2100 done
2101 test -n "$YACC" || YACC="yacc"
2102
2103
2104 echo $ac_n "checking size of long""... $ac_c" 1>&6
2105 echo "configure:2106: checking size of long" >&5
2106 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2107   echo $ac_n "(cached) $ac_c" 1>&6
2108 else
2109   if test "$cross_compiling" = yes; then
2110   ac_cv_sizeof_long=4
2111 else
2112   cat > conftest.$ac_ext <<EOF
2113 #line 2114 "configure"
2114 #include "confdefs.h"
2115 #include <stdio.h>
2116 main()
2117 {
2118   FILE *f=fopen("conftestval", "w");
2119   if (!f) exit(1);
2120   fprintf(f, "%d\n", sizeof(long));
2121   exit(0);
2122 }
2123 EOF
2124 if { (eval echo configure:2125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2125 then
2126   ac_cv_sizeof_long=`cat conftestval`
2127 else
2128   echo "configure: failed program was:" >&5
2129   cat conftest.$ac_ext >&5
2130   rm -fr conftest*
2131   ac_cv_sizeof_long=0
2132 fi
2133 rm -fr conftest*
2134 fi
2135
2136 fi
2137 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2138 cat >> confdefs.h <<EOF
2139 #define SIZEOF_LONG $ac_cv_sizeof_long
2140 EOF
2141
2142
2143 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2144 echo "configure:2145: checking size of long long" >&5
2145 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2146   echo $ac_n "(cached) $ac_c" 1>&6
2147 else
2148   if test "$cross_compiling" = yes; then
2149   ac_cv_sizeof_long_long=8
2150 else
2151   cat > conftest.$ac_ext <<EOF
2152 #line 2153 "configure"
2153 #include "confdefs.h"
2154 #include <stdio.h>
2155 main()
2156 {
2157   FILE *f=fopen("conftestval", "w");
2158   if (!f) exit(1);
2159   fprintf(f, "%d\n", sizeof(long long));
2160   exit(0);
2161 }
2162 EOF
2163 if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2164 then
2165   ac_cv_sizeof_long_long=`cat conftestval`
2166 else
2167   echo "configure: failed program was:" >&5
2168   cat conftest.$ac_ext >&5
2169   rm -fr conftest*
2170   ac_cv_sizeof_long_long=0
2171 fi
2172 rm -fr conftest*
2173 fi
2174
2175 fi
2176 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2177 cat >> confdefs.h <<EOF
2178 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2179 EOF
2180
2181
2182 echo $ac_n "checking size of long double""... $ac_c" 1>&6
2183 echo "configure:2184: checking size of long double" >&5
2184 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
2185   echo $ac_n "(cached) $ac_c" 1>&6
2186 else
2187   if test "$cross_compiling" = yes; then
2188   ac_cv_sizeof_long_double=12
2189 else
2190   cat > conftest.$ac_ext <<EOF
2191 #line 2192 "configure"
2192 #include "confdefs.h"
2193 #include <stdio.h>
2194 main()
2195 {
2196   FILE *f=fopen("conftestval", "w");
2197   if (!f) exit(1);
2198   fprintf(f, "%d\n", sizeof(long double));
2199   exit(0);
2200 }
2201 EOF
2202 if { (eval echo configure:2203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2203 then
2204   ac_cv_sizeof_long_double=`cat conftestval`
2205 else
2206   echo "configure: failed program was:" >&5
2207   cat conftest.$ac_ext >&5
2208   rm -fr conftest*
2209   ac_cv_sizeof_long_double=0
2210 fi
2211 rm -fr conftest*
2212 fi
2213
2214 fi
2215 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
2216 cat >> confdefs.h <<EOF
2217 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
2218 EOF
2219
2220
2221
2222 ac_ext=C
2223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2224 ac_cpp='$CXXCPP $CPPFLAGS'
2225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2227 cross_compiling=$ac_cv_prog_cxx_cross
2228
2229
2230 for ac_hdr in unistd.h
2231 do
2232 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2233 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2234 echo "configure:2235: checking for $ac_hdr" >&5
2235 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2236   echo $ac_n "(cached) $ac_c" 1>&6
2237 else
2238   cat > conftest.$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2241 #include <$ac_hdr>
2242 EOF
2243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2244 { (eval echo configure:2245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2246 if test -z "$ac_err"; then
2247   rm -rf conftest*
2248   eval "ac_cv_header_$ac_safe=yes"
2249 else
2250   echo "$ac_err" >&5
2251   echo "configure: failed program was:" >&5
2252   cat conftest.$ac_ext >&5
2253   rm -rf conftest*
2254   eval "ac_cv_header_$ac_safe=no"
2255 fi
2256 rm -f conftest*
2257 fi
2258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2259   echo "$ac_t""yes" 1>&6
2260     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2261   cat >> confdefs.h <<EOF
2262 #define $ac_tr_hdr 1
2263 EOF
2264  
2265 else
2266   echo "$ac_t""no" 1>&6
2267 fi
2268 done
2269
2270 for ac_hdr in readline/readline.h readline/history.h
2271 do
2272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2274 echo "configure:2275: checking for $ac_hdr" >&5
2275 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2276   echo $ac_n "(cached) $ac_c" 1>&6
2277 else
2278   cat > conftest.$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2281 #include <$ac_hdr>
2282 EOF
2283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2284 { (eval echo configure:2285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2286 if test -z "$ac_err"; then
2287   rm -rf conftest*
2288   eval "ac_cv_header_$ac_safe=yes"
2289 else
2290   echo "$ac_err" >&5
2291   echo "configure: failed program was:" >&5
2292   cat conftest.$ac_ext >&5
2293   rm -rf conftest*
2294   eval "ac_cv_header_$ac_safe=no"
2295 fi
2296 rm -f conftest*
2297 fi
2298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2299   echo "$ac_t""yes" 1>&6
2300     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2301   cat >> confdefs.h <<EOF
2302 #define $ac_tr_hdr 1
2303 EOF
2304  
2305 else
2306   echo "$ac_t""no" 1>&6
2307 fi
2308 done
2309
2310 save_LIBS=$LIBS
2311 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2312 echo "configure:2313: checking for readline in -lreadline" >&5
2313 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2315   echo $ac_n "(cached) $ac_c" 1>&6
2316 else
2317   ac_save_LIBS="$LIBS"
2318 LIBS="-lreadline  $LIBS"
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2322 /* Override any gcc2 internal prototype to avoid an error.  */
2323 #ifdef __cplusplus
2324 extern "C"
2325 #endif
2326 /* We use char because int might match the return type of a gcc2
2327     builtin and then its argument prototype would still apply.  */
2328 char readline();
2329
2330 int main() {
2331 readline()
2332 ; return 0; }
2333 EOF
2334 if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2335   rm -rf conftest*
2336   eval "ac_cv_lib_$ac_lib_var=yes"
2337 else
2338   echo "configure: failed program was:" >&5
2339   cat conftest.$ac_ext >&5
2340   rm -rf conftest*
2341   eval "ac_cv_lib_$ac_lib_var=no"
2342 fi
2343 rm -f conftest*
2344 LIBS="$ac_save_LIBS"
2345
2346 fi
2347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2348   echo "$ac_t""yes" 1>&6
2349     ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2350     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2351   cat >> confdefs.h <<EOF
2352 #define $ac_tr_lib 1
2353 EOF
2354
2355   LIBS="-lreadline $LIBS"
2356
2357 else
2358   echo "$ac_t""no" 1>&6
2359 fi
2360
2361 GINSH_LIBS=$LIBS
2362 LIBS=$save_LIBS
2363
2364
2365 echo $ac_n "checking for cout in -lstdc++""... $ac_c" 1>&6
2366 echo "configure:2367: checking for cout in -lstdc++" >&5
2367 ac_lib_var=`echo stdc++'_'cout | sed 'y%./+-%__p_%'`
2368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2369   echo $ac_n "(cached) $ac_c" 1>&6
2370 else
2371   ac_save_LIBS="$LIBS"
2372 LIBS="-lstdc++  $LIBS"
2373 cat > conftest.$ac_ext <<EOF
2374 #line 2375 "configure"
2375 #include "confdefs.h"
2376 /* Override any gcc2 internal prototype to avoid an error.  */
2377 #ifdef __cplusplus
2378 extern "C"
2379 #endif
2380 /* We use char because int might match the return type of a gcc2
2381     builtin and then its argument prototype would still apply.  */
2382 char cout();
2383
2384 int main() {
2385 cout()
2386 ; return 0; }
2387 EOF
2388 if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2389   rm -rf conftest*
2390   eval "ac_cv_lib_$ac_lib_var=yes"
2391 else
2392   echo "configure: failed program was:" >&5
2393   cat conftest.$ac_ext >&5
2394   rm -rf conftest*
2395   eval "ac_cv_lib_$ac_lib_var=no"
2396 fi
2397 rm -f conftest*
2398 LIBS="$ac_save_LIBS"
2399
2400 fi
2401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2402   echo "$ac_t""yes" 1>&6
2403     ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2404     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2405   cat >> confdefs.h <<EOF
2406 #define $ac_tr_lib 1
2407 EOF
2408
2409   LIBS="-lstdc++ $LIBS"
2410
2411 else
2412   echo "$ac_t""no" 1>&6
2413 fi
2414
2415
2416 for ac_hdr in iostream vector map string list typeinfo iterator stdexcept algorithm
2417 do
2418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2420 echo "configure:2421: checking for $ac_hdr" >&5
2421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2422   echo $ac_n "(cached) $ac_c" 1>&6
2423 else
2424   cat > conftest.$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2427 #include <$ac_hdr>
2428 EOF
2429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2430 { (eval echo configure:2431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2432 if test -z "$ac_err"; then
2433   rm -rf conftest*
2434   eval "ac_cv_header_$ac_safe=yes"
2435 else
2436   echo "$ac_err" >&5
2437   echo "configure: failed program was:" >&5
2438   cat conftest.$ac_ext >&5
2439   rm -rf conftest*
2440   eval "ac_cv_header_$ac_safe=no"
2441 fi
2442 rm -f conftest*
2443 fi
2444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2445   echo "$ac_t""yes" 1>&6
2446     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2447   cat >> confdefs.h <<EOF
2448 #define $ac_tr_hdr 1
2449 EOF
2450  
2451 else
2452   echo "$ac_t""no" 1>&6
2453 { echo "configure: error: need to have ANSI compliant headers" 1>&2; exit 1; }
2454 fi
2455 done
2456
2457 for ac_hdr in sstream strstream
2458 do
2459 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2460 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2461 echo "configure:2462: checking for $ac_hdr" >&5
2462 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2463   echo $ac_n "(cached) $ac_c" 1>&6
2464 else
2465   cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 #include <$ac_hdr>
2469 EOF
2470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2471 { (eval echo configure:2472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2473 if test -z "$ac_err"; then
2474   rm -rf conftest*
2475   eval "ac_cv_header_$ac_safe=yes"
2476 else
2477   echo "$ac_err" >&5
2478   echo "configure: failed program was:" >&5
2479   cat conftest.$ac_ext >&5
2480   rm -rf conftest*
2481   eval "ac_cv_header_$ac_safe=no"
2482 fi
2483 rm -f conftest*
2484 fi
2485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2486   echo "$ac_t""yes" 1>&6
2487     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2488   cat >> confdefs.h <<EOF
2489 #define $ac_tr_hdr 1
2490 EOF
2491  
2492 else
2493   echo "$ac_t""no" 1>&6
2494 fi
2495 done
2496
2497
2498
2499     for ac_hdr in cln/cln.h
2500 do
2501 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2503 echo "configure:2504: checking for $ac_hdr" >&5
2504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2505   echo $ac_n "(cached) $ac_c" 1>&6
2506 else
2507   cat > conftest.$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2510 #include <$ac_hdr>
2511 EOF
2512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2513 { (eval echo configure:2514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2515 if test -z "$ac_err"; then
2516   rm -rf conftest*
2517   eval "ac_cv_header_$ac_safe=yes"
2518 else
2519   echo "$ac_err" >&5
2520   echo "configure: failed program was:" >&5
2521   cat conftest.$ac_ext >&5
2522   rm -rf conftest*
2523   eval "ac_cv_header_$ac_safe=no"
2524 fi
2525 rm -f conftest*
2526 fi
2527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2528   echo "$ac_t""yes" 1>&6
2529     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2530   cat >> confdefs.h <<EOF
2531 #define $ac_tr_hdr 1
2532 EOF
2533  
2534 else
2535   echo "$ac_t""no" 1>&6
2536 for ac_hdr in cln.h
2537 do
2538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2540 echo "configure:2541: checking for $ac_hdr" >&5
2541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2542   echo $ac_n "(cached) $ac_c" 1>&6
2543 else
2544   cat > conftest.$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2547 #include <$ac_hdr>
2548 EOF
2549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2550 { (eval echo configure:2551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2552 if test -z "$ac_err"; then
2553   rm -rf conftest*
2554   eval "ac_cv_header_$ac_safe=yes"
2555 else
2556   echo "$ac_err" >&5
2557   echo "configure: failed program was:" >&5
2558   cat conftest.$ac_ext >&5
2559   rm -rf conftest*
2560   eval "ac_cv_header_$ac_safe=no"
2561 fi
2562 rm -f conftest*
2563 fi
2564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2565   echo "$ac_t""yes" 1>&6
2566     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2567   cat >> confdefs.h <<EOF
2568 #define $ac_tr_hdr 1
2569 EOF
2570  
2571 else
2572   echo "$ac_t""no" 1>&6
2573 { echo "configure: error: cannot find header for Bruno Haible's CLN" 1>&2; exit 1; };
2574         
2575 fi
2576 done
2577
2578     
2579 fi
2580 done
2581
2582
2583
2584     echo $ac_n "checking for doublefactorial in -lcln""... $ac_c" 1>&6
2585 echo "configure:2586: checking for doublefactorial in -lcln" >&5
2586     saved_LIBS="${LIBS}"
2587     if eval "test \"`echo '$''{'ginac_cv_lib_cln_link'+set}'`\" = set"; then
2588   echo $ac_n "(cached) $ac_c" 1>&6
2589 else
2590   LIBS="-lcln"
2591         case "${ac_cv_header_cln_cln_h}" in
2592         "yes")
2593             cat > conftest.$ac_ext <<EOF
2594 #line 2595 "configure"
2595 #include "confdefs.h"
2596 #include <cln/cln.h>
2597 int main() {
2598 doublefactorial(2);
2599 ; return 0; }
2600 EOF
2601 if { (eval echo configure:2602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2602   rm -rf conftest*
2603   ginac_cv_lib_cln_link="-lcln"
2604 else
2605   echo "configure: failed program was:" >&5
2606   cat conftest.$ac_ext >&5
2607   rm -rf conftest*
2608   ginac_cv_lib_cln_link="fail"
2609 fi
2610 rm -f conftest*
2611             ;;
2612         *)
2613             cat > conftest.$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2616 #include <cln.h>
2617 int main() {
2618 doublefactorial(2);
2619 ; return 0; }
2620 EOF
2621 if { (eval echo configure:2622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2622   rm -rf conftest*
2623   ginac_cv_lib_cln_link="-lcln"
2624 else
2625   echo "configure: failed program was:" >&5
2626   cat conftest.$ac_ext >&5
2627   rm -rf conftest*
2628   ginac_cv_lib_cln_link="fail"
2629 fi
2630 rm -f conftest*
2631             ;;
2632         esac
2633     
2634 fi
2635
2636     case "${ginac_cv_lib_cln_link}" in
2637     "-lcln")
2638         LIBS="${ginac_cv_lib_cln_link} ${saved_LIBS}"
2639         echo "$ac_t"""yes"" 1>&6
2640     ;;
2641     "fail")
2642         LIBS="${saved_LIBS}"
2643         echo "$ac_t""no" 1>&6
2644         { echo "configure: error: You either need to set \$LDFLAGS or update CLN" 1>&2; exit 1; }
2645     ;;
2646     *)
2647         LIBS="${saved_LIBS}"
2648         echo "configure: warning: you found a bug in the configure script!" 1>&2
2649     ;;
2650     esac
2651
2652
2653 GINACLIB_CPPFLAGS=$CPPFLAGS
2654 GINACLIB_LIBS=$LIBS
2655
2656
2657
2658 # Extract the first word of "doxygen", so it can be a program name with args.
2659 set dummy doxygen; ac_word=$2
2660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_word" >&5
2662 if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then
2663   echo $ac_n "(cached) $ac_c" 1>&6
2664 else
2665   case "$DOXYGEN" in
2666   /*)
2667   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
2668   ;;
2669   ?:/*)                  
2670   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a dos path.
2671   ;;
2672   *)
2673   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2674   ac_dummy="$PATH"
2675   for ac_dir in $ac_dummy; do 
2676     test -z "$ac_dir" && ac_dir=.
2677     if test -f $ac_dir/$ac_word; then
2678       ac_cv_path_DOXYGEN="$ac_dir/$ac_word"
2679       break
2680     fi
2681   done
2682   IFS="$ac_save_ifs"
2683   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN=""""
2684   ;;
2685 esac
2686 fi
2687 DOXYGEN="$ac_cv_path_DOXYGEN"
2688 if test -n "$DOXYGEN"; then
2689   echo "$ac_t""$DOXYGEN" 1>&6
2690 else
2691   echo "$ac_t""no" 1>&6
2692 fi
2693
2694 # Extract the first word of "latex", so it can be a program name with args.
2695 set dummy latex; ac_word=$2
2696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2697 echo "configure:2698: checking for $ac_word" >&5
2698 if eval "test \"`echo '$''{'ac_cv_path_LATEX'+set}'`\" = set"; then
2699   echo $ac_n "(cached) $ac_c" 1>&6
2700 else
2701   case "$LATEX" in
2702   /*)
2703   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
2704   ;;
2705   ?:/*)                  
2706   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a dos path.
2707   ;;
2708   *)
2709   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2710   ac_dummy="$PATH"
2711   for ac_dir in $ac_dummy; do 
2712     test -z "$ac_dir" && ac_dir=.
2713     if test -f $ac_dir/$ac_word; then
2714       ac_cv_path_LATEX="$ac_dir/$ac_word"
2715       break
2716     fi
2717   done
2718   IFS="$ac_save_ifs"
2719   test -z "$ac_cv_path_LATEX" && ac_cv_path_LATEX=""""
2720   ;;
2721 esac
2722 fi
2723 LATEX="$ac_cv_path_LATEX"
2724 if test -n "$LATEX"; then
2725   echo "$ac_t""$LATEX" 1>&6
2726 else
2727   echo "$ac_t""no" 1>&6
2728 fi
2729
2730 # Extract the first word of "makeindex", so it can be a program name with args.
2731 set dummy makeindex; ac_word=$2
2732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2733 echo "configure:2734: checking for $ac_word" >&5
2734 if eval "test \"`echo '$''{'ac_cv_path_MAKEINDEX'+set}'`\" = set"; then
2735   echo $ac_n "(cached) $ac_c" 1>&6
2736 else
2737   case "$MAKEINDEX" in
2738   /*)
2739   ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a path.
2740   ;;
2741   ?:/*)                  
2742   ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a dos path.
2743   ;;
2744   *)
2745   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2746   ac_dummy="$PATH"
2747   for ac_dir in $ac_dummy; do 
2748     test -z "$ac_dir" && ac_dir=.
2749     if test -f $ac_dir/$ac_word; then
2750       ac_cv_path_MAKEINDEX="$ac_dir/$ac_word"
2751       break
2752     fi
2753   done
2754   IFS="$ac_save_ifs"
2755   test -z "$ac_cv_path_MAKEINDEX" && ac_cv_path_MAKEINDEX=""""
2756   ;;
2757 esac
2758 fi
2759 MAKEINDEX="$ac_cv_path_MAKEINDEX"
2760 if test -n "$MAKEINDEX"; then
2761   echo "$ac_t""$MAKEINDEX" 1>&6
2762 else
2763   echo "$ac_t""no" 1>&6
2764 fi
2765
2766 # Extract the first word of "dvips", so it can be a program name with args.
2767 set dummy dvips; ac_word=$2
2768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2769 echo "configure:2770: checking for $ac_word" >&5
2770 if eval "test \"`echo '$''{'ac_cv_path_DVIPS'+set}'`\" = set"; then
2771   echo $ac_n "(cached) $ac_c" 1>&6
2772 else
2773   case "$DVIPS" in
2774   /*)
2775   ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
2776   ;;
2777   ?:/*)                  
2778   ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a dos path.
2779   ;;
2780   *)
2781   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2782   ac_dummy="$PATH"
2783   for ac_dir in $ac_dummy; do 
2784     test -z "$ac_dir" && ac_dir=.
2785     if test -f $ac_dir/$ac_word; then
2786       ac_cv_path_DVIPS="$ac_dir/$ac_word"
2787       break
2788     fi
2789   done
2790   IFS="$ac_save_ifs"
2791   test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS=""""
2792   ;;
2793 esac
2794 fi
2795 DVIPS="$ac_cv_path_DVIPS"
2796 if test -n "$DVIPS"; then
2797   echo "$ac_t""$DVIPS" 1>&6
2798 else
2799   echo "$ac_t""no" 1>&6
2800 fi
2801
2802 # Extract the first word of "fig2dev", so it can be a program name with args.
2803 set dummy fig2dev; ac_word=$2
2804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2805 echo "configure:2806: checking for $ac_word" >&5
2806 if eval "test \"`echo '$''{'ac_cv_path_FIG2DEV'+set}'`\" = set"; then
2807   echo $ac_n "(cached) $ac_c" 1>&6
2808 else
2809   case "$FIG2DEV" in
2810   /*)
2811   ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a path.
2812   ;;
2813   ?:/*)                  
2814   ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a dos path.
2815   ;;
2816   *)
2817   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2818   ac_dummy="$PATH"
2819   for ac_dir in $ac_dummy; do 
2820     test -z "$ac_dir" && ac_dir=.
2821     if test -f $ac_dir/$ac_word; then
2822       ac_cv_path_FIG2DEV="$ac_dir/$ac_word"
2823       break
2824     fi
2825   done
2826   IFS="$ac_save_ifs"
2827   test -z "$ac_cv_path_FIG2DEV" && ac_cv_path_FIG2DEV=""""
2828   ;;
2829 esac
2830 fi
2831 FIG2DEV="$ac_cv_path_FIG2DEV"
2832 if test -n "$FIG2DEV"; then
2833   echo "$ac_t""$FIG2DEV" 1>&6
2834 else
2835   echo "$ac_t""no" 1>&6
2836 fi
2837
2838
2839 TUTORIAL_TARGETS=
2840 REFERENCE_TARGETS=
2841 if [ "x$enable_html_doc" = "xyes" ]; then
2842   TUTORIAL_TARGETS="$TUTORIAL_TARGETS ginac.html"
2843   if [ "$DOXYGEN" ]; then
2844     REFERENCE_TARGETS="$REFERENCE_TARGETS index.html"
2845   fi
2846 fi
2847 if [ "x$enable_ps_doc" = "xyes" ]; then
2848   TUTORIAL_TARGETS="$TUTORIAL_TARGETS ginac.ps"
2849   if [ "$DOXYGEN" ]; then
2850     REFERENCE_TARGETS="$REFERENCE_TARGETS reference.ps"
2851   fi
2852 fi
2853
2854
2855
2856 if [ "x$with_cint" != "xno" ]; then
2857   echo "with_cint is set to: $with_cint"
2858   CINTSYSDIR=$with_cint
2859   # Extract the first word of "cint", so it can be a program name with args.
2860 set dummy cint; ac_word=$2
2861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2862 echo "configure:2863: checking for $ac_word" >&5
2863 if eval "test \"`echo '$''{'ac_cv_path_CINT'+set}'`\" = set"; then
2864   echo $ac_n "(cached) $ac_c" 1>&6
2865 else
2866   case "$CINT" in
2867   /*)
2868   ac_cv_path_CINT="$CINT" # Let the user override the test with a path.
2869   ;;
2870   ?:/*)                  
2871   ac_cv_path_CINT="$CINT" # Let the user override the test with a dos path.
2872   ;;
2873   *)
2874   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2875   ac_dummy="$CINTSYSDIR:$PATH"
2876   for ac_dir in $ac_dummy; do 
2877     test -z "$ac_dir" && ac_dir=.
2878     if test -f $ac_dir/$ac_word; then
2879       ac_cv_path_CINT="$ac_dir/$ac_word"
2880       break
2881     fi
2882   done
2883   IFS="$ac_save_ifs"
2884   test -z "$ac_cv_path_CINT" && ac_cv_path_CINT=""""
2885   ;;
2886 esac
2887 fi
2888 CINT="$ac_cv_path_CINT"
2889 if test -n "$CINT"; then
2890   echo "$ac_t""$CINT" 1>&6
2891 else
2892   echo "$ac_t""no" 1>&6
2893 fi
2894
2895   # Extract the first word of "makecint", so it can be a program name with args.
2896 set dummy makecint; ac_word=$2
2897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2898 echo "configure:2899: checking for $ac_word" >&5
2899 if eval "test \"`echo '$''{'ac_cv_path_MAKECINT'+set}'`\" = set"; then
2900   echo $ac_n "(cached) $ac_c" 1>&6
2901 else
2902   case "$MAKECINT" in
2903   /*)
2904   ac_cv_path_MAKECINT="$MAKECINT" # Let the user override the test with a path.
2905   ;;
2906   ?:/*)                  
2907   ac_cv_path_MAKECINT="$MAKECINT" # Let the user override the test with a dos path.
2908   ;;
2909   *)
2910   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2911   ac_dummy="$CINTSYSDIR:$PATH"
2912   for ac_dir in $ac_dummy; do 
2913     test -z "$ac_dir" && ac_dir=.
2914     if test -f $ac_dir/$ac_word; then
2915       ac_cv_path_MAKECINT="$ac_dir/$ac_word"
2916       break
2917     fi
2918   done
2919   IFS="$ac_save_ifs"
2920   test -z "$ac_cv_path_MAKECINT" && ac_cv_path_MAKECINT=""""
2921   ;;
2922 esac
2923 fi
2924 MAKECINT="$ac_cv_path_MAKECINT"
2925 if test -n "$MAKECINT"; then
2926   echo "$ac_t""$MAKECINT" 1>&6
2927 else
2928   echo "$ac_t""no" 1>&6
2929 fi
2930
2931   if [ "$cint" -a "$makecint" ]; then
2932     echo "$ac_t""Configuring GiNaC-cint" 1>&6
2933   else
2934     { echo "configure: error: Cannot configure GiNaC-cint" 1>&2; exit 1; }
2935   fi
2936 fi
2937
2938 trap '' 1 2 15
2939 cat > confcache <<\EOF
2940 # This file is a shell script that caches the results of configure
2941 # tests run on this system so they can be shared between configure
2942 # scripts and configure runs.  It is not useful on other systems.
2943 # If it contains results you don't want to keep, you may remove or edit it.
2944 #
2945 # By default, configure uses ./config.cache as the cache file,
2946 # creating it if it does not exist already.  You can give configure
2947 # the --cache-file=FILE option to use a different cache file; that is
2948 # what configure does when it calls configure scripts in
2949 # subdirectories, so they share the cache.
2950 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2951 # config.status only pays attention to the cache file if you give it the
2952 # --recheck option to rerun configure.
2953 #
2954 EOF
2955 # The following way of writing the cache mishandles newlines in values,
2956 # but we know of no workaround that is simple, portable, and efficient.
2957 # So, don't put newlines in cache variables' values.
2958 # Ultrix sh set writes to stderr and can't be redirected directly,
2959 # and sets the high bit in the cache file unless we assign to the vars.
2960 (set) 2>&1 |
2961   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2962   *ac_space=\ *)
2963     # `set' does not quote correctly, so add quotes (double-quote substitution
2964     # turns \\\\ into \\, and sed turns \\ into \).
2965     sed -n \
2966       -e "s/'/'\\\\''/g" \
2967       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2968     ;;
2969   *)
2970     # `set' quotes correctly as required by POSIX, so do not add quotes.
2971     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2972     ;;
2973   esac >> confcache
2974 if cmp -s $cache_file confcache; then
2975   :
2976 else
2977   if test -w $cache_file; then
2978     echo "updating cache $cache_file"
2979     cat confcache > $cache_file
2980   else
2981     echo "not updating unwritable cache $cache_file"
2982   fi
2983 fi
2984 rm -f confcache
2985
2986 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2987
2988 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2989 # Let make expand exec_prefix.
2990 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2991
2992 # Any assignment to VPATH causes Sun make to only execute
2993 # the first set of double-colon rules, so remove it if not needed.
2994 # If there is a colon in the path, we need to keep it.
2995 if test "x$srcdir" = x.; then
2996   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2997 fi
2998
2999 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3000
3001 DEFS=-DHAVE_CONFIG_H
3002
3003 # Without the "./", some shells look in PATH for config.status.
3004 : ${CONFIG_STATUS=./config.status}
3005
3006 echo creating $CONFIG_STATUS
3007 rm -f $CONFIG_STATUS
3008 cat > $CONFIG_STATUS <<EOF
3009 #! /bin/sh
3010 # Generated automatically by configure.
3011 # Run this file to recreate the current configuration.
3012 # This directory was configured as follows,
3013 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3014 #
3015 # $0 $ac_configure_args
3016 #
3017 # Compiler output produced by configure, useful for debugging
3018 # configure, is in ./config.log if it exists.
3019
3020 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3021 for ac_option
3022 do
3023   case "\$ac_option" in
3024   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3025     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3026     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3027   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3028     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3029     exit 0 ;;
3030   -help | --help | --hel | --he | --h)
3031     echo "\$ac_cs_usage"; exit 0 ;;
3032   *) echo "\$ac_cs_usage"; exit 1 ;;
3033   esac
3034 done
3035
3036 ac_given_srcdir=$srcdir
3037 ac_given_INSTALL="$INSTALL"
3038
3039 trap 'rm -fr `echo "
3040 Makefile
3041 GiNaC.spec
3042 ginac-config
3043 ginac/Makefile
3044 check/Makefile
3045 ginsh/Makefile
3046 tools/Makefile
3047 doc/Makefile
3048 doc/tutorial/Makefile
3049 doc/reference/Makefile
3050  config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3051 EOF
3052 cat >> $CONFIG_STATUS <<EOF
3053
3054 # Protect against being on the right side of a sed subst in config.status.
3055 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3056  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3057 $ac_vpsub
3058 $extrasub
3059 s%@SHELL@%$SHELL%g
3060 s%@CFLAGS@%$CFLAGS%g
3061 s%@CPPFLAGS@%$CPPFLAGS%g
3062 s%@CXXFLAGS@%$CXXFLAGS%g
3063 s%@FFLAGS@%$FFLAGS%g
3064 s%@DEFS@%$DEFS%g
3065 s%@LDFLAGS@%$LDFLAGS%g
3066 s%@LIBS@%$LIBS%g
3067 s%@exec_prefix@%$exec_prefix%g
3068 s%@prefix@%$prefix%g
3069 s%@program_transform_name@%$program_transform_name%g
3070 s%@bindir@%$bindir%g
3071 s%@sbindir@%$sbindir%g
3072 s%@libexecdir@%$libexecdir%g
3073 s%@datadir@%$datadir%g
3074 s%@sysconfdir@%$sysconfdir%g
3075 s%@sharedstatedir@%$sharedstatedir%g
3076 s%@localstatedir@%$localstatedir%g
3077 s%@libdir@%$libdir%g
3078 s%@includedir@%$includedir%g
3079 s%@oldincludedir@%$oldincludedir%g
3080 s%@infodir@%$infodir%g
3081 s%@mandir@%$mandir%g
3082 s%@GINACLIB_MAJOR_VERSION@%$GINACLIB_MAJOR_VERSION%g
3083 s%@GINACLIB_MINOR_VERSION@%$GINACLIB_MINOR_VERSION%g
3084 s%@GINACLIB_MICRO_VERSION@%$GINACLIB_MICRO_VERSION%g
3085 s%@GINACLIB_INTERFACE_AGE@%$GINACLIB_INTERFACE_AGE%g
3086 s%@GINACLIB_BINARY_AGE@%$GINACLIB_BINARY_AGE%g
3087 s%@GINACLIB_VERSION@%$GINACLIB_VERSION%g
3088 s%@ARCHIVE_VERSION@%$ARCHIVE_VERSION%g
3089 s%@ARCHIVE_AGE@%$ARCHIVE_AGE%g
3090 s%@LT_RELEASE@%$LT_RELEASE%g
3091 s%@LT_CURRENT@%$LT_CURRENT%g
3092 s%@LT_REVISION@%$LT_REVISION%g
3093 s%@LT_AGE@%$LT_AGE%g
3094 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3095 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3096 s%@INSTALL_DATA@%$INSTALL_DATA%g
3097 s%@PACKAGE@%$PACKAGE%g
3098 s%@VERSION@%$VERSION%g
3099 s%@ACLOCAL@%$ACLOCAL%g
3100 s%@AUTOCONF@%$AUTOCONF%g
3101 s%@AUTOMAKE@%$AUTOMAKE%g
3102 s%@AUTOHEADER@%$AUTOHEADER%g
3103 s%@MAKEINFO@%$MAKEINFO%g
3104 s%@SET_MAKE@%$SET_MAKE%g
3105 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3106 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3107 s%@MAINT@%$MAINT%g
3108 s%@CXX@%$CXX%g
3109 s%@CXXCPP@%$CXXCPP%g
3110 s%@host@%$host%g
3111 s%@host_alias@%$host_alias%g
3112 s%@host_cpu@%$host_cpu%g
3113 s%@host_vendor@%$host_vendor%g
3114 s%@host_os@%$host_os%g
3115 s%@build@%$build%g
3116 s%@build_alias@%$build_alias%g
3117 s%@build_cpu@%$build_cpu%g
3118 s%@build_vendor@%$build_vendor%g
3119 s%@build_os@%$build_os%g
3120 s%@RANLIB@%$RANLIB%g
3121 s%@CC@%$CC%g
3122 s%@LD@%$LD%g
3123 s%@NM@%$NM%g
3124 s%@LN_S@%$LN_S%g
3125 s%@LIBTOOL@%$LIBTOOL%g
3126 s%@LEX@%$LEX%g
3127 s%@LEXLIB@%$LEXLIB%g
3128 s%@CPP@%$CPP%g
3129 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
3130 s%@YACC@%$YACC%g
3131 s%@GINSH_LIBS@%$GINSH_LIBS%g
3132 s%@GINACLIB_CPPFLAGS@%$GINACLIB_CPPFLAGS%g
3133 s%@GINACLIB_LIBS@%$GINACLIB_LIBS%g
3134 s%@DOXYGEN@%$DOXYGEN%g
3135 s%@LATEX@%$LATEX%g
3136 s%@MAKEINDEX@%$MAKEINDEX%g
3137 s%@DVIPS@%$DVIPS%g
3138 s%@FIG2DEV@%$FIG2DEV%g
3139 s%@TUTORIAL_TARGETS@%$TUTORIAL_TARGETS%g
3140 s%@REFERENCE_TARGETS@%$REFERENCE_TARGETS%g
3141 s%@CINT@%$CINT%g
3142 s%@MAKECINT@%$MAKECINT%g
3143
3144 CEOF
3145 EOF
3146
3147 cat >> $CONFIG_STATUS <<\EOF
3148
3149 # Split the substitutions into bite-sized pieces for seds with
3150 # small command number limits, like on Digital OSF/1 and HP-UX.
3151 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3152 ac_file=1 # Number of current file.
3153 ac_beg=1 # First line for current file.
3154 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3155 ac_more_lines=:
3156 ac_sed_cmds=""
3157 while $ac_more_lines; do
3158   if test $ac_beg -gt 1; then
3159     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3160   else
3161     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3162   fi
3163   if test ! -s conftest.s$ac_file; then
3164     ac_more_lines=false
3165     rm -f conftest.s$ac_file
3166   else
3167     if test -z "$ac_sed_cmds"; then
3168       ac_sed_cmds="sed -f conftest.s$ac_file"
3169     else
3170       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3171     fi
3172     ac_file=`expr $ac_file + 1`
3173     ac_beg=$ac_end
3174     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3175   fi
3176 done
3177 if test -z "$ac_sed_cmds"; then
3178   ac_sed_cmds=cat
3179 fi
3180 EOF
3181
3182 cat >> $CONFIG_STATUS <<EOF
3183
3184 CONFIG_FILES=\${CONFIG_FILES-"Makefile
3185 GiNaC.spec
3186 ginac-config
3187 ginac/Makefile
3188 check/Makefile
3189 ginsh/Makefile
3190 tools/Makefile
3191 doc/Makefile
3192 doc/tutorial/Makefile
3193 doc/reference/Makefile
3194 "}
3195 EOF
3196 cat >> $CONFIG_STATUS <<\EOF
3197 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3198   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3199   case "$ac_file" in
3200   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3201        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3202   *) ac_file_in="${ac_file}.in" ;;
3203   esac
3204
3205   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3206
3207   # Remove last slash and all that follows it.  Not all systems have dirname.
3208   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3209   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3210     # The file is in a subdirectory.
3211     test ! -d "$ac_dir" && mkdir "$ac_dir"
3212     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3213     # A "../" for each directory in $ac_dir_suffix.
3214     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3215   else
3216     ac_dir_suffix= ac_dots=
3217   fi
3218
3219   case "$ac_given_srcdir" in
3220   .)  srcdir=.
3221       if test -z "$ac_dots"; then top_srcdir=.
3222       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3223   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3224   *) # Relative path.
3225     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3226     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3227   esac
3228
3229   case "$ac_given_INSTALL" in
3230   [/$]*) INSTALL="$ac_given_INSTALL" ;;
3231   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3232   esac
3233
3234   echo creating "$ac_file"
3235   rm -f "$ac_file"
3236   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3237   case "$ac_file" in
3238   *Makefile*) ac_comsub="1i\\
3239 # $configure_input" ;;
3240   *) ac_comsub= ;;
3241   esac
3242
3243   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3244   sed -e "$ac_comsub
3245 s%@configure_input@%$configure_input%g
3246 s%@srcdir@%$srcdir%g
3247 s%@top_srcdir@%$top_srcdir%g
3248 s%@INSTALL@%$INSTALL%g
3249 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3250 fi; done
3251 rm -f conftest.s*
3252
3253 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3254 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3255 #
3256 # ac_d sets the value in "#define NAME VALUE" lines.
3257 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3258 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3259 ac_dC='\3'
3260 ac_dD='%g'
3261 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3262 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3263 ac_uB='\([      ]\)%\1#\2define\3'
3264 ac_uC=' '
3265 ac_uD='\4%g'
3266 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3267 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3268 ac_eB='$%\1#\2define\3'
3269 ac_eC=' '
3270 ac_eD='%g'
3271
3272 if test "${CONFIG_HEADERS+set}" != set; then
3273 EOF
3274 cat >> $CONFIG_STATUS <<EOF
3275   CONFIG_HEADERS="config.h"
3276 EOF
3277 cat >> $CONFIG_STATUS <<\EOF
3278 fi
3279 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3280   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3281   case "$ac_file" in
3282   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3283        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3284   *) ac_file_in="${ac_file}.in" ;;
3285   esac
3286
3287   echo creating $ac_file
3288
3289   rm -f conftest.frag conftest.in conftest.out
3290   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3291   cat $ac_file_inputs > conftest.in
3292
3293 EOF
3294
3295 # Transform confdefs.h into a sed script conftest.vals that substitutes
3296 # the proper values into config.h.in to produce config.h.  And first:
3297 # Protect against being on the right side of a sed subst in config.status.
3298 # Protect against being in an unquoted here document in config.status.
3299 rm -f conftest.vals
3300 cat > conftest.hdr <<\EOF
3301 s/[\\&%]/\\&/g
3302 s%[\\$`]%\\&%g
3303 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3304 s%ac_d%ac_u%gp
3305 s%ac_u%ac_e%gp
3306 EOF
3307 sed -n -f conftest.hdr confdefs.h > conftest.vals
3308 rm -f conftest.hdr
3309
3310 # This sed command replaces #undef with comments.  This is necessary, for
3311 # example, in the case of _POSIX_SOURCE, which is predefined and required
3312 # on some systems where configure will not decide to define it.
3313 cat >> conftest.vals <<\EOF
3314 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3315 EOF
3316
3317 # Break up conftest.vals because some shells have a limit on
3318 # the size of here documents, and old seds have small limits too.
3319
3320 rm -f conftest.tail
3321 while :
3322 do
3323   ac_lines=`grep -c . conftest.vals`
3324   # grep -c gives empty output for an empty file on some AIX systems.
3325   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3326   # Write a limited-size here document to conftest.frag.
3327   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3328   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3329   echo 'CEOF
3330   sed -f conftest.frag conftest.in > conftest.out
3331   rm -f conftest.in
3332   mv conftest.out conftest.in
3333 ' >> $CONFIG_STATUS
3334   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3335   rm -f conftest.vals
3336   mv conftest.tail conftest.vals
3337 done
3338 rm -f conftest.vals
3339
3340 cat >> $CONFIG_STATUS <<\EOF
3341   rm -f conftest.frag conftest.h
3342   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3343   cat conftest.in >> conftest.h
3344   rm -f conftest.in
3345   if cmp -s $ac_file conftest.h 2>/dev/null; then
3346     echo "$ac_file is unchanged"
3347     rm -f conftest.h
3348   else
3349     # Remove last slash and all that follows it.  Not all systems have dirname.
3350       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3351       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3352       # The file is in a subdirectory.
3353       test ! -d "$ac_dir" && mkdir "$ac_dir"
3354     fi
3355     rm -f $ac_file
3356     mv conftest.h $ac_file
3357   fi
3358 fi; done
3359
3360 EOF
3361 cat >> $CONFIG_STATUS <<EOF
3362
3363
3364 EOF
3365 cat >> $CONFIG_STATUS <<\EOF
3366 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3367 chmod +x ginac-config
3368 exit 0
3369 EOF
3370 chmod +x $CONFIG_STATUS
3371 rm -fr confdefs* $ac_clean_files
3372 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3373
3374 echo "Configuration done. Now type \"make\"."