source: git/configure @ b8661e0

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