source: git/configure @ 181d6e

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