source: git/configure @ 68349d

spielwiese
Last change on this file since 68349d was b2b47c, checked in by Hans Schönemann <hannes@…>, 20 years ago
*hannes: added kernrl dir git-svn-id: file:///usr/local/Singular/svn/trunk@6954 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 98.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     omalloc              omalloc memory managment"
27ac_help="$ac_help
28\
29     gmp                  Gnu Multiple Precision package"
30ac_help="$ac_help
31\
32     MP                   Multi Protocol library"
33ac_help="$ac_help
34\
35     factory              polynomial factorization library"
36ac_help="$ac_help
37\
38     libfac               char set and modp poly factorization library"
39ac_help="$ac_help
40\
41     sgroup               numerical semigroup computations"
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     Plural               Plural"
51ac_help="$ac_help
52\
53     Texinfo              Texinfo for info, texi2dvi, makeinfo"
54ac_help="$ac_help
55\
56     Texi2html            Texinfo to HTML converter"
57ac_help="$ac_help
58\
59     doc                  Singular documentation"
60ac_help="$ac_help
61\
62     emacs                emacs completion files"
63ac_help="$ac_help
64\
65  --with-PACKAGE          use PACKAGE, provide dependent functionality
66  --without-PACKAGE       do not use PACKAGE, disable dependent functionality
67   where PACKAGE can be:
68     MP                   Multi Protocol library"
69ac_help="$ac_help
70\
71     factory              polynomial factorization library"
72ac_help="$ac_help
73\
74     libfac               char set and modp poly factorization library"
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=kernel/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
593pwd=`pwd`
594
595# make them to env variables
596# pass them indirectly to subsequent configures
597SINGULAR_MAJOR_VERSION=2
598SINGULAR_MINOR_VERSION=1
599SINGULAR_SUB_VERSION=2
600VERSION_SEP="-"
601SINGULAR_SHORT_VERSION="${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}"
602SINGULAR_VERSION="${SINGULAR_SHORT_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}"
603SINGULAR_RPM_VERSION="${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.${SINGULAR_SUB_VERSION}"
604VERSION_DATE="July 2003"
605SINGULAR_ROOT_DIR=$pwd
606
607export SINGULAR_MINOR_VERSION
608export SINGULAR_MAJOR_VERSION
609export SINGULAR_SUB_VERSION
610export SINGULAR_VERSION
611export SINGULAR_RPM_VERSION
612export VERSION_DATE
613export SINGULAR_ROOT_DIR
614
615
616
617
618
619
620
621
622# determine Makefiles to output
623OUTPUT_MAKEFILES="Makefile"
624if test -d "doc"; then
625   OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES doc/Makefile doc/version.texi doc/uname.texi"
626fi
627if test -d "modules"; then
628   CONFIG_SUBDIRS=$CONFIG_SUBDIRS" modules"
629fi
630if test -d "emacs"; then
631   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" emacs/Makefile"
632fi
633if test -d "IntegerProgramming"; then
634   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" IntegerProgramming/Makefile"
635fi
636if test -d "Plural"; then
637   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" Plural/Makefile"
638fi
639if test -d "InstallShield"; then
640   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" InstallShield/Makefile InstallShield/Etc/Makefile InstallShield/Cygwin/Makefile InstallShield/Singular/Makefile InstallShield/Xemacs/Makefile"
641fi
642
643
644echo $ac_n "checking uname for singular""... $ac_c" 1>&6
645echo "configure:646: checking uname for singular" >&5
646if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
647  echo $ac_n "(cached) $ac_c" 1>&6
648else
649  ac_cv_singuname="unknown"
650if test -r "singuname.sh"; then
651  if (/bin/sh singuname.sh >/dev/null 2>&1) then
652    ac_cv_singuname=`/bin/sh singuname.sh`
653  fi
654fi
655
656fi
657
658echo "$ac_t""$ac_cv_singuname" 1>&6
659if test "$ac_cv_singuname" = unknown; then
660  { echo "configure: error: Unknown architecture: Check singuname.sh" 1>&2; exit 1; }
661else
662  SINGUNAME=$ac_cv_singuname
663 
664fi
665
666SING_UNAME=`echo $SINGUNAME | tr '-' '_' `
667
668
669
670# Extract the first word of "gcc", so it can be a program name with args.
671set dummy gcc; ac_word=$2
672echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
673echo "configure:674: checking for $ac_word" >&5
674if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
675  echo $ac_n "(cached) $ac_c" 1>&6
676else
677  if test -n "$CC"; then
678  ac_cv_prog_CC="$CC" # Let the user override the test.
679else
680  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
681  ac_dummy="$PATH"
682  for ac_dir in $ac_dummy; do
683    test -z "$ac_dir" && ac_dir=.
684    if test -f $ac_dir/$ac_word; then
685      ac_cv_prog_CC="gcc"
686      break
687    fi
688  done
689  IFS="$ac_save_ifs"
690fi
691fi
692CC="$ac_cv_prog_CC"
693if test -n "$CC"; then
694  echo "$ac_t""$CC" 1>&6
695else
696  echo "$ac_t""no" 1>&6
697fi
698
699if test -z "$CC"; then
700  # Extract the first word of "cc", so it can be a program name with args.
701set dummy cc; ac_word=$2
702echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
703echo "configure:704: checking for $ac_word" >&5
704if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
705  echo $ac_n "(cached) $ac_c" 1>&6
706else
707  if test -n "$CC"; then
708  ac_cv_prog_CC="$CC" # Let the user override the test.
709else
710  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
711  ac_prog_rejected=no
712  ac_dummy="$PATH"
713  for ac_dir in $ac_dummy; do
714    test -z "$ac_dir" && ac_dir=.
715    if test -f $ac_dir/$ac_word; then
716      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
717        ac_prog_rejected=yes
718        continue
719      fi
720      ac_cv_prog_CC="cc"
721      break
722    fi
723  done
724  IFS="$ac_save_ifs"
725if test $ac_prog_rejected = yes; then
726  # We found a bogon in the path, so make sure we never use it.
727  set dummy $ac_cv_prog_CC
728  shift
729  if test $# -gt 0; then
730    # We chose a different compiler from the bogus one.
731    # However, it has the same basename, so the bogon will be chosen
732    # first if we set CC to just the basename; use the full file name.
733    shift
734    set dummy "$ac_dir/$ac_word" "$@"
735    shift
736    ac_cv_prog_CC="$@"
737  fi
738fi
739fi
740fi
741CC="$ac_cv_prog_CC"
742if test -n "$CC"; then
743  echo "$ac_t""$CC" 1>&6
744else
745  echo "$ac_t""no" 1>&6
746fi
747
748  if test -z "$CC"; then
749    case "`uname -s`" in
750    *win32* | *WIN32*)
751      # Extract the first word of "cl", so it can be a program name with args.
752set dummy cl; ac_word=$2
753echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
754echo "configure:755: checking for $ac_word" >&5
755if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
756  echo $ac_n "(cached) $ac_c" 1>&6
757else
758  if test -n "$CC"; then
759  ac_cv_prog_CC="$CC" # Let the user override the test.
760else
761  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
762  ac_dummy="$PATH"
763  for ac_dir in $ac_dummy; do
764    test -z "$ac_dir" && ac_dir=.
765    if test -f $ac_dir/$ac_word; then
766      ac_cv_prog_CC="cl"
767      break
768    fi
769  done
770  IFS="$ac_save_ifs"
771fi
772fi
773CC="$ac_cv_prog_CC"
774if test -n "$CC"; then
775  echo "$ac_t""$CC" 1>&6
776else
777  echo "$ac_t""no" 1>&6
778fi
779 ;;
780    esac
781  fi
782  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
783fi
784
785echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
786echo "configure:787: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
787
788ac_ext=c
789# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
790ac_cpp='$CPP $CPPFLAGS'
791ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
792ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
793cross_compiling=$ac_cv_prog_cc_cross
794
795cat > conftest.$ac_ext << EOF
796
797#line 798 "configure"
798#include "confdefs.h"
799
800main(){return(0);}
801EOF
802if { (eval echo configure:803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
803  ac_cv_prog_cc_works=yes
804  # If we can't run a trivial program, we are probably using a cross compiler.
805  if (./conftest; exit) 2>/dev/null; then
806    ac_cv_prog_cc_cross=no
807  else
808    ac_cv_prog_cc_cross=yes
809  fi
810else
811  echo "configure: failed program was:" >&5
812  cat conftest.$ac_ext >&5
813  ac_cv_prog_cc_works=no
814fi
815rm -fr conftest*
816ac_ext=c
817# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
818ac_cpp='$CPP $CPPFLAGS'
819ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
820ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
821cross_compiling=$ac_cv_prog_cc_cross
822
823echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
824if test $ac_cv_prog_cc_works = no; then
825  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
826fi
827echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
828echo "configure:829: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
829echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
830cross_compiling=$ac_cv_prog_cc_cross
831
832echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
833echo "configure:834: checking whether we are using GNU C" >&5
834if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
835  echo $ac_n "(cached) $ac_c" 1>&6
836else
837  cat > conftest.c <<EOF
838#ifdef __GNUC__
839  yes;
840#endif
841EOF
842if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
843  ac_cv_prog_gcc=yes
844else
845  ac_cv_prog_gcc=no
846fi
847fi
848
849echo "$ac_t""$ac_cv_prog_gcc" 1>&6
850
851if test $ac_cv_prog_gcc = yes; then
852  GCC=yes
853else
854  GCC=
855fi
856
857ac_test_CFLAGS="${CFLAGS+set}"
858ac_save_CFLAGS="$CFLAGS"
859CFLAGS=
860echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
861echo "configure:862: checking whether ${CC-cc} accepts -g" >&5
862if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
863  echo $ac_n "(cached) $ac_c" 1>&6
864else
865  echo 'void f(){}' > conftest.c
866if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
867  ac_cv_prog_cc_g=yes
868else
869  ac_cv_prog_cc_g=no
870fi
871rm -f conftest*
872
873fi
874
875echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
876if test "$ac_test_CFLAGS" = set; then
877  CFLAGS="$ac_save_CFLAGS"
878elif test $ac_cv_prog_cc_g = yes; then
879  if test "$GCC" = yes; then
880    CFLAGS="-g -O2"
881  else
882    CFLAGS="-g"
883  fi
884else
885  if test "$GCC" = yes; then
886    CFLAGS="-O2"
887  else
888    CFLAGS=
889  fi
890fi
891
892echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
893echo "configure:894: checking how to run the C preprocessor" >&5
894# On Suns, sometimes $CPP names a directory.
895if test -n "$CPP" && test -d "$CPP"; then
896  CPP=
897fi
898if test -z "$CPP"; then
899if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
900  echo $ac_n "(cached) $ac_c" 1>&6
901else
902    # This must be in double quotes, not single quotes, because CPP may get
903  # substituted into the Makefile and "${CC-cc}" will confuse make.
904  CPP="${CC-cc} -E"
905  # On the NeXT, cc -E runs the code through the compiler's parser,
906  # not just through cpp.
907  cat > conftest.$ac_ext <<EOF
908#line 909 "configure"
909#include "confdefs.h"
910#include <assert.h>
911Syntax Error
912EOF
913ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
914{ (eval echo configure:915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
915ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
916if test -z "$ac_err"; then
917  :
918else
919  echo "$ac_err" >&5
920  echo "configure: failed program was:" >&5
921  cat conftest.$ac_ext >&5
922  rm -rf conftest*
923  CPP="${CC-cc} -E -traditional-cpp"
924  cat > conftest.$ac_ext <<EOF
925#line 926 "configure"
926#include "confdefs.h"
927#include <assert.h>
928Syntax Error
929EOF
930ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
931{ (eval echo configure:932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
932ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
933if test -z "$ac_err"; then
934  :
935else
936  echo "$ac_err" >&5
937  echo "configure: failed program was:" >&5
938  cat conftest.$ac_ext >&5
939  rm -rf conftest*
940  CPP="${CC-cc} -nologo -E"
941  cat > conftest.$ac_ext <<EOF
942#line 943 "configure"
943#include "confdefs.h"
944#include <assert.h>
945Syntax Error
946EOF
947ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
948{ (eval echo configure:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
949ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
950if test -z "$ac_err"; then
951  :
952else
953  echo "$ac_err" >&5
954  echo "configure: failed program was:" >&5
955  cat conftest.$ac_ext >&5
956  rm -rf conftest*
957  CPP=/lib/cpp
958fi
959rm -f conftest*
960fi
961rm -f conftest*
962fi
963rm -f conftest*
964  ac_cv_prog_CPP="$CPP"
965fi
966  CPP="$ac_cv_prog_CPP"
967else
968  ac_cv_prog_CPP="$CPP"
969fi
970echo "$ac_t""$CPP" 1>&6
971
972ac_aux_dir=
973for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
974  if test -f $ac_dir/install-sh; then
975    ac_aux_dir=$ac_dir
976    ac_install_sh="$ac_aux_dir/install-sh -c"
977    break
978  elif test -f $ac_dir/install.sh; then
979    ac_aux_dir=$ac_dir
980    ac_install_sh="$ac_aux_dir/install.sh -c"
981    break
982  fi
983done
984if test -z "$ac_aux_dir"; then
985  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
986fi
987ac_config_guess=$ac_aux_dir/config.guess
988ac_config_sub=$ac_aux_dir/config.sub
989ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
990
991# Find a good install program.  We prefer a C program (faster),
992# so one script is as good as another.  But avoid the broken or
993# incompatible versions:
994# SysV /etc/install, /usr/sbin/install
995# SunOS /usr/etc/install
996# IRIX /sbin/install
997# AIX /bin/install
998# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
999# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1000# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1001# ./install, which can be erroneously created by make from ./install.sh.
1002echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1003echo "configure:1004: checking for a BSD compatible install" >&5
1004if test -z "$INSTALL"; then
1005if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1006  echo $ac_n "(cached) $ac_c" 1>&6
1007else
1008    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1009  for ac_dir in $PATH; do
1010    # Account for people who put trailing slashes in PATH elements.
1011    case "$ac_dir/" in
1012    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1013    *)
1014      # OSF1 and SCO ODT 3.0 have their own names for install.
1015      # Don't use installbsd from OSF since it installs stuff as root
1016      # by default.
1017      for ac_prog in ginstall scoinst install; do
1018        if test -f $ac_dir/$ac_prog; then
1019          if test $ac_prog = install &&
1020            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1021            # AIX install.  It has an incompatible calling convention.
1022            :
1023          else
1024            ac_cv_path_install="$ac_dir/$ac_prog -c"
1025            break 2
1026          fi
1027        fi
1028      done
1029      ;;
1030    esac
1031  done
1032  IFS="$ac_save_IFS"
1033
1034fi
1035  if test "${ac_cv_path_install+set}" = set; then
1036    INSTALL="$ac_cv_path_install"
1037  else
1038    # As a last resort, use the slow shell script.  We don't cache a
1039    # path for INSTALL within a source directory, because that will
1040    # break other packages using the cache if that directory is
1041    # removed, or if the path is relative.
1042    INSTALL="$ac_install_sh"
1043  fi
1044fi
1045echo "$ac_t""$INSTALL" 1>&6
1046
1047# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1048# It thinks the first close brace ends the variable substitution.
1049test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1050
1051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1052
1053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1054
1055echo $ac_n "checking for AIX""... $ac_c" 1>&6
1056echo "configure:1057: checking for AIX" >&5
1057cat > conftest.$ac_ext <<EOF
1058#line 1059 "configure"
1059#include "confdefs.h"
1060#ifdef _AIX
1061  yes
1062#endif
1063
1064EOF
1065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1066  egrep "yes" >/dev/null 2>&1; then
1067  rm -rf conftest*
1068  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1069#define _ALL_SOURCE 1
1070EOF
1071
1072else
1073  rm -rf conftest*
1074  echo "$ac_t""no" 1>&6
1075fi
1076rm -f conftest*
1077
1078
1079for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1080do
1081# Extract the first word of "$ac_prog", so it can be a program name with args.
1082set dummy $ac_prog; ac_word=$2
1083echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1084echo "configure:1085: checking for $ac_word" >&5
1085if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1086  echo $ac_n "(cached) $ac_c" 1>&6
1087else
1088  if test -n "$CXX"; then
1089  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1090else
1091  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1092  ac_dummy="$PATH"
1093  for ac_dir in $ac_dummy; do
1094    test -z "$ac_dir" && ac_dir=.
1095    if test -f $ac_dir/$ac_word; then
1096      ac_cv_prog_CXX="$ac_prog"
1097      break
1098    fi
1099  done
1100  IFS="$ac_save_ifs"
1101fi
1102fi
1103CXX="$ac_cv_prog_CXX"
1104if test -n "$CXX"; then
1105  echo "$ac_t""$CXX" 1>&6
1106else
1107  echo "$ac_t""no" 1>&6
1108fi
1109
1110test -n "$CXX" && break
1111done
1112test -n "$CXX" || CXX="gcc"
1113
1114
1115echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1116echo "configure:1117: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1117
1118ac_ext=C
1119# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1120ac_cpp='$CXXCPP $CPPFLAGS'
1121ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1122ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1123cross_compiling=$ac_cv_prog_cxx_cross
1124
1125cat > conftest.$ac_ext << EOF
1126
1127#line 1128 "configure"
1128#include "confdefs.h"
1129
1130int main(){return(0);}
1131EOF
1132if { (eval echo configure:1133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1133  ac_cv_prog_cxx_works=yes
1134  # If we can't run a trivial program, we are probably using a cross compiler.
1135  if (./conftest; exit) 2>/dev/null; then
1136    ac_cv_prog_cxx_cross=no
1137  else
1138    ac_cv_prog_cxx_cross=yes
1139  fi
1140else
1141  echo "configure: failed program was:" >&5
1142  cat conftest.$ac_ext >&5
1143  ac_cv_prog_cxx_works=no
1144fi
1145rm -fr conftest*
1146ac_ext=c
1147# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1148ac_cpp='$CPP $CPPFLAGS'
1149ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1150ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1151cross_compiling=$ac_cv_prog_cc_cross
1152
1153echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1154if test $ac_cv_prog_cxx_works = no; then
1155  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1156fi
1157echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1158echo "configure:1159: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1159echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1160cross_compiling=$ac_cv_prog_cxx_cross
1161
1162echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1163echo "configure:1164: checking whether we are using GNU C++" >&5
1164if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1165  echo $ac_n "(cached) $ac_c" 1>&6
1166else
1167  cat > conftest.C <<EOF
1168#ifdef __GNUC__
1169  yes;
1170#endif
1171EOF
1172if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1173  ac_cv_prog_gxx=yes
1174else
1175  ac_cv_prog_gxx=no
1176fi
1177fi
1178
1179echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1180
1181if test $ac_cv_prog_gxx = yes; then
1182  GXX=yes
1183else
1184  GXX=
1185fi
1186
1187ac_test_CXXFLAGS="${CXXFLAGS+set}"
1188ac_save_CXXFLAGS="$CXXFLAGS"
1189CXXFLAGS=
1190echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1191echo "configure:1192: checking whether ${CXX-g++} accepts -g" >&5
1192if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1193  echo $ac_n "(cached) $ac_c" 1>&6
1194else
1195  echo 'void f(){}' > conftest.cc
1196if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1197  ac_cv_prog_cxx_g=yes
1198else
1199  ac_cv_prog_cxx_g=no
1200fi
1201rm -f conftest*
1202
1203fi
1204
1205echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1206if test "$ac_test_CXXFLAGS" = set; then
1207  CXXFLAGS="$ac_save_CXXFLAGS"
1208elif test $ac_cv_prog_cxx_g = yes; then
1209  if test "$GXX" = yes; then
1210    CXXFLAGS="-g -O2"
1211  else
1212    CXXFLAGS="-g"
1213  fi
1214else
1215  if test "$GXX" = yes; then
1216    CXXFLAGS="-O2"
1217  else
1218    CXXFLAGS=
1219  fi
1220fi
1221
1222
1223# check whether the compiler accepts -pipe
1224echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6
1225echo "configure:1226: checking whether compiler accepts -pipe" >&5
1226temp_cflags=${CFLAGS}
1227CFLAGS="${CFLAGS} -pipe"
1228if eval "test \"`echo '$''{'ac_cv_cxx_have_pipe'+set}'`\" = set"; then
1229  echo $ac_n "(cached) $ac_c" 1>&6
1230else
1231  cat > conftest.$ac_ext <<EOF
1232#line 1233 "configure"
1233#include "confdefs.h"
1234
1235int main() {
1236
1237; return 0; }
1238EOF
1239if { (eval echo configure:1240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1240  rm -rf conftest*
1241  ac_cv_cxx_have_pipe=yes
1242else
1243  echo "configure: failed program was:" >&5
1244  cat conftest.$ac_ext >&5
1245  rm -rf conftest*
1246  ac_cv_cxx_have_pipe=no
1247fi
1248rm -f conftest*
1249
1250fi
1251
1252echo "$ac_t""${ac_cv_cxx_have_pipe}" 1>&6
1253CFLAGS=${temp_cflags}
1254if test "${ac_cv_cxx_have_pipe}" != yes; then
1255  PIPE=
1256else
1257  PIPE="-pipe"
1258fi
1259
1260
1261for ac_prog in perl5 perl
1262do
1263# Extract the first word of "$ac_prog", so it can be a program name with args.
1264set dummy $ac_prog; ac_word=$2
1265echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1266echo "configure:1267: checking for $ac_word" >&5
1267if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
1268  echo $ac_n "(cached) $ac_c" 1>&6
1269else
1270  if test -n "$PERL"; then
1271  ac_cv_prog_PERL="$PERL" # Let the user override the test.
1272else
1273  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1274  ac_dummy="$PATH"
1275  for ac_dir in $ac_dummy; do
1276    test -z "$ac_dir" && ac_dir=.
1277    if test -f $ac_dir/$ac_word; then
1278      ac_cv_prog_PERL="$ac_prog"
1279      break
1280    fi
1281  done
1282  IFS="$ac_save_ifs"
1283fi
1284fi
1285PERL="$ac_cv_prog_PERL"
1286if test -n "$PERL"; then
1287  echo "$ac_t""$PERL" 1>&6
1288else
1289  echo "$ac_t""no" 1>&6
1290fi
1291
1292test -n "$PERL" && break
1293done
1294
1295for ac_prog in uudecode "uudeview -i"
1296do
1297# Extract the first word of "$ac_prog", so it can be a program name with args.
1298set dummy $ac_prog; ac_word=$2
1299echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1300echo "configure:1301: checking for $ac_word" >&5
1301if eval "test \"`echo '$''{'ac_cv_prog_UUDECODE'+set}'`\" = set"; then
1302  echo $ac_n "(cached) $ac_c" 1>&6
1303else
1304  if test -n "$UUDECODE"; then
1305  ac_cv_prog_UUDECODE="$UUDECODE" # Let the user override the test.
1306else
1307  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1308  ac_dummy="$PATH"
1309  for ac_dir in $ac_dummy; do
1310    test -z "$ac_dir" && ac_dir=.
1311    if test -f $ac_dir/$ac_word; then
1312      ac_cv_prog_UUDECODE="$ac_prog"
1313      break
1314    fi
1315  done
1316  IFS="$ac_save_ifs"
1317fi
1318fi
1319UUDECODE="$ac_cv_prog_UUDECODE"
1320if test -n "$UUDECODE"; then
1321  echo "$ac_t""$UUDECODE" 1>&6
1322else
1323  echo "$ac_t""no" 1>&6
1324fi
1325
1326test -n "$UUDECODE" && break
1327done
1328
1329for ac_prog in gunzip
1330do
1331# Extract the first word of "$ac_prog", so it can be a program name with args.
1332set dummy $ac_prog; ac_word=$2
1333echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1334echo "configure:1335: checking for $ac_word" >&5
1335if eval "test \"`echo '$''{'ac_cv_prog_GUNZIP'+set}'`\" = set"; then
1336  echo $ac_n "(cached) $ac_c" 1>&6
1337else
1338  if test -n "$GUNZIP"; then
1339  ac_cv_prog_GUNZIP="$GUNZIP" # Let the user override the test.
1340else
1341  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1342  ac_dummy="$PATH"
1343  for ac_dir in $ac_dummy; do
1344    test -z "$ac_dir" && ac_dir=.
1345    if test -f $ac_dir/$ac_word; then
1346      ac_cv_prog_GUNZIP="$ac_prog"
1347      break
1348    fi
1349  done
1350  IFS="$ac_save_ifs"
1351fi
1352fi
1353GUNZIP="$ac_cv_prog_GUNZIP"
1354if test -n "$GUNZIP"; then
1355  echo "$ac_t""$GUNZIP" 1>&6
1356else
1357  echo "$ac_t""no" 1>&6
1358fi
1359
1360test -n "$GUNZIP" && break
1361done
1362test -n "$GUNZIP" || GUNZIP="${pwd}/warn_not_found.sh gunzip"
1363
1364# don't use GZIP this breaks configure
1365for ac_prog in gzip
1366do
1367# Extract the first word of "$ac_prog", so it can be a program name with args.
1368set dummy $ac_prog; ac_word=$2
1369echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1370echo "configure:1371: checking for $ac_word" >&5
1371if eval "test \"`echo '$''{'ac_cv_prog_MYGZIP'+set}'`\" = set"; then
1372  echo $ac_n "(cached) $ac_c" 1>&6
1373else
1374  if test -n "$MYGZIP"; then
1375  ac_cv_prog_MYGZIP="$MYGZIP" # Let the user override the test.
1376else
1377  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1378  ac_dummy="$PATH"
1379  for ac_dir in $ac_dummy; do
1380    test -z "$ac_dir" && ac_dir=.
1381    if test -f $ac_dir/$ac_word; then
1382      ac_cv_prog_MYGZIP="$ac_prog"
1383      break
1384    fi
1385  done
1386  IFS="$ac_save_ifs"
1387fi
1388fi
1389MYGZIP="$ac_cv_prog_MYGZIP"
1390if test -n "$MYGZIP"; then
1391  echo "$ac_t""$MYGZIP" 1>&6
1392else
1393  echo "$ac_t""no" 1>&6
1394fi
1395
1396test -n "$MYGZIP" && break
1397done
1398test -n "$MYGZIP" || MYGZIP="${pwd}/warn_not_found.sh gzip"
1399
1400# Extract the first word of "latex2html", so it can be a program name with args.
1401set dummy latex2html; ac_word=$2
1402echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1403echo "configure:1404: checking for $ac_word" >&5
1404if eval "test \"`echo '$''{'ac_cv_prog_LATEX2HTML'+set}'`\" = set"; then
1405  echo $ac_n "(cached) $ac_c" 1>&6
1406else
1407  if test -n "$LATEX2HTML"; then
1408  ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
1409else
1410  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1411  ac_dummy="$PATH"
1412  for ac_dir in $ac_dummy; do
1413    test -z "$ac_dir" && ac_dir=.
1414    if test -f $ac_dir/$ac_word; then
1415      ac_cv_prog_LATEX2HTML="latex2html"
1416      break
1417    fi
1418  done
1419  IFS="$ac_save_ifs"
1420fi
1421fi
1422LATEX2HTML="$ac_cv_prog_LATEX2HTML"
1423if test -n "$LATEX2HTML"; then
1424  echo "$ac_t""$LATEX2HTML" 1>&6
1425else
1426  echo "$ac_t""no" 1>&6
1427fi
1428
1429echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1430echo "configure:1431: checking whether ln -s works" >&5
1431if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1432  echo $ac_n "(cached) $ac_c" 1>&6
1433else
1434  rm -f conftestdata
1435if ln -s X conftestdata 2>/dev/null
1436then
1437  rm -f conftestdata
1438  ac_cv_prog_LN_S="ln -s"
1439else
1440  ac_cv_prog_LN_S=ln
1441fi
1442fi
1443LN_S="$ac_cv_prog_LN_S"
1444if test "$ac_cv_prog_LN_S" = "ln -s"; then
1445  echo "$ac_t""yes" 1>&6
1446else
1447  echo "$ac_t""no" 1>&6
1448fi
1449
1450
1451if test -r "${pwd}/mkinstalldirs"; then
1452  MKINSTALLDIRS=${pwd}/mkinstalldirs
1453 
1454else
1455  { echo "configure: error: mkinstalldirs not foind in ${pwd}" 1>&2; exit 1; }
1456fi
1457
1458# expand prefix and pass it to subsequent configures
1459if test "x$prefix" = xNONE; then
1460  prefix=${ac_default_prefix}
1461  ac_configure_args="$ac_configure_args --prefix=${prefix}"
1462fi
1463
1464# expand exec_prefix
1465if test "x$exec_prefix" = xNONE; then
1466 exec_prefix=${prefix}/${ac_cv_singuname}
1467 ac_configure_args="$ac_configure_args --exec_prefix=${exec_prefix}"
1468fi
1469
1470# expand bindir
1471if test "x$bindir" = 'x${exec_prefix}/bin'; then
1472  bindir="${exec_prefix}"
1473  ac_configure_args="$ac_configure_args --bindir=${bindir}"
1474fi
1475
1476# expand libdir
1477if test "x$libdir" = 'x${exec_prefix}/lib'; then
1478  libdir="${exec_prefix}/lib"
1479  ac_configure_args="$ac_configure_args --libdir=${libdir}"
1480fi
1481
1482# expand includedir
1483if test "x$includedir" = 'x${prefix}/include'; then
1484  includedir="${exec_prefix}/include"
1485  ac_configure_args="$ac_configure_args --includedir=${includedir}"
1486fi
1487
1488# construct name of installed Singular executable
1489SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}
1490export SINGULAR
1491
1492
1493
1494# add -I to CPPFLAGS and -L to LDFLAGS, just to be sure
1495LDFLAGS="-L${libdir} ${LDFLAGS}"
1496CPPFLAGS="-I${includedir} ${CPPFLAGS}"
1497
1498# check for AIX
1499echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
1500echo "configure:1501: checking whether _AIX is defined" >&5
1501if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
1502  echo $ac_n "(cached) $ac_c" 1>&6
1503else
1504  cat > conftest.$ac_ext <<EOF
1505#line 1506 "configure"
1506#include "confdefs.h"
1507#ifdef _AIX
1508    yes
1509#endif
1510
1511EOF
1512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1513  egrep "yes" >/dev/null 2>&1; then
1514  rm -rf conftest*
1515  ac_cv_is_aix=yes
1516else
1517  rm -rf conftest*
1518  ac_cv_is_aix=no
1519fi
1520rm -f conftest*
1521
1522fi
1523
1524if test "$ac_cv_is_aix" = yes; then
1525  echo "$ac_t""yes" 1>&6
1526else
1527  echo "$ac_t""no" 1>&6
1528fi
1529
1530echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
1531echo "configure:1532: checking for atof in -lm" >&5
1532ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
1533if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1534  echo $ac_n "(cached) $ac_c" 1>&6
1535else
1536  ac_save_LIBS="$LIBS"
1537LIBS="-lm  $LIBS"
1538cat > conftest.$ac_ext <<EOF
1539#line 1540 "configure"
1540#include "confdefs.h"
1541/* Override any gcc2 internal prototype to avoid an error.  */
1542/* We use char because int might match the return type of a gcc2
1543    builtin and then its argument prototype would still apply.  */
1544char atof();
1545
1546int main() {
1547atof()
1548; return 0; }
1549EOF
1550if { (eval echo configure:1551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1551  rm -rf conftest*
1552  eval "ac_cv_lib_$ac_lib_var=yes"
1553else
1554  echo "configure: failed program was:" >&5
1555  cat conftest.$ac_ext >&5
1556  rm -rf conftest*
1557  eval "ac_cv_lib_$ac_lib_var=no"
1558fi
1559rm -f conftest*
1560LIBS="$ac_save_LIBS"
1561
1562fi
1563if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1564  echo "$ac_t""yes" 1>&6
1565    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1566    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1567  cat >> confdefs.h <<EOF
1568#define $ac_tr_lib 1
1569EOF
1570
1571  LIBS="-lm $LIBS"
1572
1573else
1574  echo "$ac_t""no" 1>&6
1575fi
1576
1577echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
1578echo "configure:1579: checking for socket in -lbsd" >&5
1579ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
1580if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1581  echo $ac_n "(cached) $ac_c" 1>&6
1582else
1583  ac_save_LIBS="$LIBS"
1584LIBS="-lbsd  $LIBS"
1585cat > conftest.$ac_ext <<EOF
1586#line 1587 "configure"
1587#include "confdefs.h"
1588/* Override any gcc2 internal prototype to avoid an error.  */
1589/* We use char because int might match the return type of a gcc2
1590    builtin and then its argument prototype would still apply.  */
1591char socket();
1592
1593int main() {
1594socket()
1595; return 0; }
1596EOF
1597if { (eval echo configure:1598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1598  rm -rf conftest*
1599  eval "ac_cv_lib_$ac_lib_var=yes"
1600else
1601  echo "configure: failed program was:" >&5
1602  cat conftest.$ac_ext >&5
1603  rm -rf conftest*
1604  eval "ac_cv_lib_$ac_lib_var=no"
1605fi
1606rm -f conftest*
1607LIBS="$ac_save_LIBS"
1608
1609fi
1610if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1611  echo "$ac_t""yes" 1>&6
1612    ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1613    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1614  cat >> confdefs.h <<EOF
1615#define $ac_tr_lib 1
1616EOF
1617
1618  LIBS="-lbsd $LIBS"
1619
1620else
1621  echo "$ac_t""no" 1>&6
1622fi
1623
1624echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6
1625echo "configure:1626: checking for listen in -lsocket" >&5
1626ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'`
1627if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1628  echo $ac_n "(cached) $ac_c" 1>&6
1629else
1630  ac_save_LIBS="$LIBS"
1631LIBS="-lsocket  $LIBS"
1632cat > conftest.$ac_ext <<EOF
1633#line 1634 "configure"
1634#include "confdefs.h"
1635/* Override any gcc2 internal prototype to avoid an error.  */
1636/* We use char because int might match the return type of a gcc2
1637    builtin and then its argument prototype would still apply.  */
1638char listen();
1639
1640int main() {
1641listen()
1642; return 0; }
1643EOF
1644if { (eval echo configure:1645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1645  rm -rf conftest*
1646  eval "ac_cv_lib_$ac_lib_var=yes"
1647else
1648  echo "configure: failed program was:" >&5
1649  cat conftest.$ac_ext >&5
1650  rm -rf conftest*
1651  eval "ac_cv_lib_$ac_lib_var=no"
1652fi
1653rm -f conftest*
1654LIBS="$ac_save_LIBS"
1655
1656fi
1657if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1658  echo "$ac_t""yes" 1>&6
1659    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1660    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1661  cat >> confdefs.h <<EOF
1662#define $ac_tr_lib 1
1663EOF
1664
1665  LIBS="-lsocket $LIBS"
1666
1667else
1668  echo "$ac_t""no" 1>&6
1669fi
1670
1671echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1672echo "configure:1673: checking for gethostbyname in -lnsl" >&5
1673ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1674if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1675  echo $ac_n "(cached) $ac_c" 1>&6
1676else
1677  ac_save_LIBS="$LIBS"
1678LIBS="-lnsl  $LIBS"
1679cat > conftest.$ac_ext <<EOF
1680#line 1681 "configure"
1681#include "confdefs.h"
1682/* Override any gcc2 internal prototype to avoid an error.  */
1683/* We use char because int might match the return type of a gcc2
1684    builtin and then its argument prototype would still apply.  */
1685char gethostbyname();
1686
1687int main() {
1688gethostbyname()
1689; return 0; }
1690EOF
1691if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1692  rm -rf conftest*
1693  eval "ac_cv_lib_$ac_lib_var=yes"
1694else
1695  echo "configure: failed program was:" >&5
1696  cat conftest.$ac_ext >&5
1697  rm -rf conftest*
1698  eval "ac_cv_lib_$ac_lib_var=no"
1699fi
1700rm -f conftest*
1701LIBS="$ac_save_LIBS"
1702
1703fi
1704if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1705  echo "$ac_t""yes" 1>&6
1706    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1707    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1708  cat >> confdefs.h <<EOF
1709#define $ac_tr_lib 1
1710EOF
1711
1712  LIBS="-lnsl $LIBS"
1713
1714else
1715  echo "$ac_t""no" 1>&6
1716fi
1717
1718echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
1719echo "configure:1720: checking for main in -lgmp" >&5
1720ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
1721if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1722  echo $ac_n "(cached) $ac_c" 1>&6
1723else
1724  ac_save_LIBS="$LIBS"
1725LIBS="-lgmp  $LIBS"
1726cat > conftest.$ac_ext <<EOF
1727#line 1728 "configure"
1728#include "confdefs.h"
1729
1730int main() {
1731main()
1732; return 0; }
1733EOF
1734if { (eval echo configure:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1735  rm -rf conftest*
1736  eval "ac_cv_lib_$ac_lib_var=yes"
1737else
1738  echo "configure: failed program was:" >&5
1739  cat conftest.$ac_ext >&5
1740  rm -rf conftest*
1741  eval "ac_cv_lib_$ac_lib_var=no"
1742fi
1743rm -f conftest*
1744LIBS="$ac_save_LIBS"
1745
1746fi
1747if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1748  echo "$ac_t""yes" 1>&6
1749    ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1750    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1751  cat >> confdefs.h <<EOF
1752#define $ac_tr_lib 1
1753EOF
1754
1755  LIBS="-lgmp $LIBS"
1756
1757else
1758  echo "$ac_t""no" 1>&6
1759fi
1760
1761echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6
1762echo "configure:1763: checking for mpz_init in -lsmallgmp" >&5
1763ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'`
1764if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1765  echo $ac_n "(cached) $ac_c" 1>&6
1766else
1767  ac_save_LIBS="$LIBS"
1768LIBS="-lsmallgmp  $LIBS"
1769cat > conftest.$ac_ext <<EOF
1770#line 1771 "configure"
1771#include "confdefs.h"
1772/* Override any gcc2 internal prototype to avoid an error.  */
1773/* We use char because int might match the return type of a gcc2
1774    builtin and then its argument prototype would still apply.  */
1775char mpz_init();
1776
1777int main() {
1778mpz_init()
1779; return 0; }
1780EOF
1781if { (eval echo configure:1782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1782  rm -rf conftest*
1783  eval "ac_cv_lib_$ac_lib_var=yes"
1784else
1785  echo "configure: failed program was:" >&5
1786  cat conftest.$ac_ext >&5
1787  rm -rf conftest*
1788  eval "ac_cv_lib_$ac_lib_var=no"
1789fi
1790rm -f conftest*
1791LIBS="$ac_save_LIBS"
1792
1793fi
1794if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1795  echo "$ac_t""yes" 1>&6
1796    ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1797    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1798  cat >> confdefs.h <<EOF
1799#define $ac_tr_lib 1
1800EOF
1801
1802  LIBS="-lsmallgmp $LIBS"
1803
1804else
1805  echo "$ac_t""no" 1>&6
1806fi
1807
1808echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
1809echo "configure:1810: checking for IMP_PutGmpInt in -lMP" >&5
1810ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
1811if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1812  echo $ac_n "(cached) $ac_c" 1>&6
1813else
1814  ac_save_LIBS="$LIBS"
1815LIBS="-lMP  $LIBS"
1816cat > conftest.$ac_ext <<EOF
1817#line 1818 "configure"
1818#include "confdefs.h"
1819/* Override any gcc2 internal prototype to avoid an error.  */
1820/* We use char because int might match the return type of a gcc2
1821    builtin and then its argument prototype would still apply.  */
1822char IMP_PutGmpInt();
1823
1824int main() {
1825IMP_PutGmpInt()
1826; return 0; }
1827EOF
1828if { (eval echo configure:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1829  rm -rf conftest*
1830  eval "ac_cv_lib_$ac_lib_var=yes"
1831else
1832  echo "configure: failed program was:" >&5
1833  cat conftest.$ac_ext >&5
1834  rm -rf conftest*
1835  eval "ac_cv_lib_$ac_lib_var=no"
1836fi
1837rm -f conftest*
1838LIBS="$ac_save_LIBS"
1839
1840fi
1841if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1842  echo "$ac_t""yes" 1>&6
1843    ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1844    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1845  cat >> confdefs.h <<EOF
1846#define $ac_tr_lib 1
1847EOF
1848
1849  LIBS="-lMP $LIBS"
1850
1851else
1852  echo "$ac_t""no" 1>&6
1853fi
1854
1855echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
1856echo "configure:1857: checking for MPT_GetTree in -lMPT" >&5
1857ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
1858if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1859  echo $ac_n "(cached) $ac_c" 1>&6
1860else
1861  ac_save_LIBS="$LIBS"
1862LIBS="-lMPT  $LIBS"
1863cat > conftest.$ac_ext <<EOF
1864#line 1865 "configure"
1865#include "confdefs.h"
1866/* Override any gcc2 internal prototype to avoid an error.  */
1867/* We use char because int might match the return type of a gcc2
1868    builtin and then its argument prototype would still apply.  */
1869char MPT_GetTree();
1870
1871int main() {
1872MPT_GetTree()
1873; return 0; }
1874EOF
1875if { (eval echo configure:1876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1876  rm -rf conftest*
1877  eval "ac_cv_lib_$ac_lib_var=yes"
1878else
1879  echo "configure: failed program was:" >&5
1880  cat conftest.$ac_ext >&5
1881  rm -rf conftest*
1882  eval "ac_cv_lib_$ac_lib_var=no"
1883fi
1884rm -f conftest*
1885LIBS="$ac_save_LIBS"
1886
1887fi
1888if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1889  echo "$ac_t""yes" 1>&6
1890    ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1891    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1892  cat >> confdefs.h <<EOF
1893#define $ac_tr_lib 1
1894EOF
1895
1896  LIBS="-lMPT $LIBS"
1897
1898else
1899  echo "$ac_t""no" 1>&6
1900fi
1901
1902echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
1903echo "configure:1904: checking for atof in -lsingcf" >&5
1904ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
1905if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1906  echo $ac_n "(cached) $ac_c" 1>&6
1907else
1908  ac_save_LIBS="$LIBS"
1909LIBS="-lsingcf  $LIBS"
1910cat > conftest.$ac_ext <<EOF
1911#line 1912 "configure"
1912#include "confdefs.h"
1913/* Override any gcc2 internal prototype to avoid an error.  */
1914/* We use char because int might match the return type of a gcc2
1915    builtin and then its argument prototype would still apply.  */
1916char atof();
1917
1918int main() {
1919atof()
1920; return 0; }
1921EOF
1922if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1923  rm -rf conftest*
1924  eval "ac_cv_lib_$ac_lib_var=yes"
1925else
1926  echo "configure: failed program was:" >&5
1927  cat conftest.$ac_ext >&5
1928  rm -rf conftest*
1929  eval "ac_cv_lib_$ac_lib_var=no"
1930fi
1931rm -f conftest*
1932LIBS="$ac_save_LIBS"
1933
1934fi
1935if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1936  echo "$ac_t""yes" 1>&6
1937    ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1938    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1939  cat >> confdefs.h <<EOF
1940#define $ac_tr_lib 1
1941EOF
1942
1943  LIBS="-lsingcf $LIBS"
1944
1945else
1946  echo "$ac_t""no" 1>&6
1947fi
1948
1949echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
1950echo "configure:1951: checking for atof in -lsingfac" >&5
1951ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
1952if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1953  echo $ac_n "(cached) $ac_c" 1>&6
1954else
1955  ac_save_LIBS="$LIBS"
1956LIBS="-lsingfac  $LIBS"
1957cat > conftest.$ac_ext <<EOF
1958#line 1959 "configure"
1959#include "confdefs.h"
1960/* Override any gcc2 internal prototype to avoid an error.  */
1961/* We use char because int might match the return type of a gcc2
1962    builtin and then its argument prototype would still apply.  */
1963char atof();
1964
1965int main() {
1966atof()
1967; return 0; }
1968EOF
1969if { (eval echo configure:1970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1970  rm -rf conftest*
1971  eval "ac_cv_lib_$ac_lib_var=yes"
1972else
1973  echo "configure: failed program was:" >&5
1974  cat conftest.$ac_ext >&5
1975  rm -rf conftest*
1976  eval "ac_cv_lib_$ac_lib_var=no"
1977fi
1978rm -f conftest*
1979LIBS="$ac_save_LIBS"
1980
1981fi
1982if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1983  echo "$ac_t""yes" 1>&6
1984    ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1985    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1986  cat >> confdefs.h <<EOF
1987#define $ac_tr_lib 1
1988EOF
1989
1990  LIBS="-lsingfac $LIBS"
1991
1992else
1993  echo "$ac_t""no" 1>&6
1994fi
1995
1996echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6
1997echo "configure:1998: checking for omTestAddr in -lomalloc" >&5
1998ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'`
1999if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2000  echo $ac_n "(cached) $ac_c" 1>&6
2001else
2002  ac_save_LIBS="$LIBS"
2003LIBS="-lomalloc  $LIBS"
2004cat > conftest.$ac_ext <<EOF
2005#line 2006 "configure"
2006#include "confdefs.h"
2007/* Override any gcc2 internal prototype to avoid an error.  */
2008/* We use char because int might match the return type of a gcc2
2009    builtin and then its argument prototype would still apply.  */
2010char omTestAddr();
2011
2012int main() {
2013omTestAddr()
2014; return 0; }
2015EOF
2016if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2017  rm -rf conftest*
2018  eval "ac_cv_lib_$ac_lib_var=yes"
2019else
2020  echo "configure: failed program was:" >&5
2021  cat conftest.$ac_ext >&5
2022  rm -rf conftest*
2023  eval "ac_cv_lib_$ac_lib_var=no"
2024fi
2025rm -f conftest*
2026LIBS="$ac_save_LIBS"
2027
2028fi
2029if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2030  echo "$ac_t""yes" 1>&6
2031    ac_tr_lib=HAVE_LIB`echo omalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2032    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2033  cat >> confdefs.h <<EOF
2034#define $ac_tr_lib 1
2035EOF
2036
2037  LIBS="-lomalloc $LIBS"
2038
2039else
2040  echo "$ac_t""no" 1>&6
2041fi
2042
2043echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6
2044echo "configure:2045: checking for main in -lomalloc_ndebug" >&5
2045ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'`
2046if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2047  echo $ac_n "(cached) $ac_c" 1>&6
2048else
2049  ac_save_LIBS="$LIBS"
2050LIBS="-lomalloc_ndebug  $LIBS"
2051cat > conftest.$ac_ext <<EOF
2052#line 2053 "configure"
2053#include "confdefs.h"
2054
2055int main() {
2056main()
2057; return 0; }
2058EOF
2059if { (eval echo configure:2060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2060  rm -rf conftest*
2061  eval "ac_cv_lib_$ac_lib_var=yes"
2062else
2063  echo "configure: failed program was:" >&5
2064  cat conftest.$ac_ext >&5
2065  rm -rf conftest*
2066  eval "ac_cv_lib_$ac_lib_var=no"
2067fi
2068rm -f conftest*
2069LIBS="$ac_save_LIBS"
2070
2071fi
2072if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2073  echo "$ac_t""yes" 1>&6
2074    ac_tr_lib=HAVE_LIB`echo omalloc_ndebug | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2075    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2076  cat >> confdefs.h <<EOF
2077#define $ac_tr_lib 1
2078EOF
2079
2080  LIBS="-lomalloc_ndebug $LIBS"
2081
2082else
2083  echo "$ac_t""no" 1>&6
2084fi
2085
2086
2087for ac_hdr in gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h omalloc.h
2088do
2089ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2090echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2091echo "configure:2092: checking for $ac_hdr" >&5
2092if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2093  echo $ac_n "(cached) $ac_c" 1>&6
2094else
2095  cat > conftest.$ac_ext <<EOF
2096#line 2097 "configure"
2097#include "confdefs.h"
2098#include <$ac_hdr>
2099EOF
2100ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2101{ (eval echo configure:2102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2102ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2103if test -z "$ac_err"; then
2104  rm -rf conftest*
2105  eval "ac_cv_header_$ac_safe=yes"
2106else
2107  echo "$ac_err" >&5
2108  echo "configure: failed program was:" >&5
2109  cat conftest.$ac_ext >&5
2110  rm -rf conftest*
2111  eval "ac_cv_header_$ac_safe=no"
2112fi
2113rm -f conftest*
2114fi
2115if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2116  echo "$ac_t""yes" 1>&6
2117    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2118  cat >> confdefs.h <<EOF
2119#define $ac_tr_hdr 1
2120EOF
2121 
2122else
2123  echo "$ac_t""no" 1>&6
2124fi
2125done
2126
2127
2128if test "$ac_cv_lib_gmp_main" = yes && \
2129 test "$ac_cv_header_gmp_h" = yes; then
2130  ac_gmp_ok=yes
2131fi
2132
2133if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \
2134 test "$ac_cv_header_smallgmp_h" = yes && \
2135 test "$ac_cv_header_gmp_h" = yes; then
2136  ac_smallgmp_ok=yes
2137fi
2138
2139if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \
2140 test "$ac_cv_lib_MPT_MPT_GetTree" && \
2141 test "$ac_cv_header_MP_h" = yes && \
2142 test "$ac_cv_header_MPT_h" = yes; then
2143  ac_MP_ok=yes
2144fi
2145
2146if test "$ac_cv_lib_singcf_atof" = yes && \
2147 test "$ac_cv_header_factory_h" = yes; then
2148  ac_factory_ok=yes
2149fi
2150
2151if test "$ac_cv_lib_singfac_atof" = yes && \
2152 test "$ac_cv_header_factor_h" = yes; then
2153  ac_libfac_ok=yes
2154fi
2155
2156if test "$ac_cv_lib_omalloc_omTestAddr" = yes && \
2157   test "$ac_cv_lib_omalloc_ndebug_main" = yes && \
2158   test "$ac_cv_header_omalloc_c" = yes && \
2159   test "$ac_cv_header_omalloc_h" = yes; then
2160  ac_cv_omalloc_ok=yes
2161fi
2162 
2163# Check whether --with-tmpdir or --without-tmpdir was given.
2164if test "${with_tmpdir+set}" = set; then
2165  withval="$with_tmpdir"
2166  :
2167fi
2168
2169# Check whether --enable-smallgmp or --disable-smallgmp was given.
2170if test "${enable_smallgmp+set}" = set; then
2171  enableval="$enable_smallgmp"
2172  :
2173fi
2174
2175# Check whether --enable-omalloc or --disable-omalloc was given.
2176if test "${enable_omalloc+set}" = set; then
2177  enableval="$enable_omalloc"
2178  :
2179fi
2180
2181# Check whether --enable-gmp or --disable-gmp was given.
2182if test "${enable_gmp+set}" = set; then
2183  enableval="$enable_gmp"
2184  :
2185fi
2186
2187# Check whether --enable-MP or --disable-MP was given.
2188if test "${enable_MP+set}" = set; then
2189  enableval="$enable_MP"
2190  :
2191fi
2192
2193# Check whether --enable-factory or --disable-factory was given.
2194if test "${enable_factory+set}" = set; then
2195  enableval="$enable_factory"
2196  :
2197fi
2198
2199# Check whether --enable-libfac or --disable-libfac was given.
2200if test "${enable_libfac+set}" = set; then
2201  enableval="$enable_libfac"
2202  :
2203fi
2204
2205# Check whether --enable-sgroup or --disable-sgroup was given.
2206if test "${enable_sgroup+set}" = set; then
2207  enableval="$enable_sgroup"
2208  :
2209fi
2210
2211# Check whether --enable-Singular or --disable-Singular was given.
2212if test "${enable_Singular+set}" = set; then
2213  enableval="$enable_Singular"
2214  :
2215fi
2216
2217# Check whether --enable-IntegerProgramming or --disable-IntegerProgramming was given.
2218if test "${enable_IntegerProgramming+set}" = set; then
2219  enableval="$enable_IntegerProgramming"
2220  :
2221fi
2222
2223# Check whether --enable-Plural or --disable-Plural was given.
2224if test "${enable_Plural+set}" = set; then
2225  enableval="$enable_Plural"
2226  :
2227fi
2228
2229# Check whether --enable-Texinfo or --disable-Texinfo was given.
2230if test "${enable_Texinfo+set}" = set; then
2231  enableval="$enable_Texinfo"
2232  :
2233fi
2234
2235# Check whether --enable-Texi2html or --disable-Texi2html was given.
2236if test "${enable_Texi2html+set}" = set; then
2237  enableval="$enable_Texi2html"
2238  :
2239fi
2240
2241# Check whether --enable-doc or --disable-doc was given.
2242if test "${enable_doc+set}" = set; then
2243  enableval="$enable_doc"
2244  :
2245fi
2246
2247# Check whether --enable-emacs or --disable-emacs was given.
2248if test "${enable_emacs+set}" = set; then
2249  enableval="$enable_emacs"
2250  :
2251fi
2252
2253# Check whether --with-MP or --without-MP was given.
2254if test "${with_MP+set}" = set; then
2255  withval="$with_MP"
2256  :
2257fi
2258
2259# Check whether --with-factory or --without-factory was given.
2260if test "${with_factory+set}" = set; then
2261  withval="$with_factory"
2262  :
2263fi
2264
2265# Check whether --with-libfac or --without-libfac was given.
2266if test "${with_libfac+set}" = set; then
2267  withval="$with_libfac"
2268  :
2269fi
2270
2271# Check whether --with-gmp or --without-gmp was given.
2272if test "${with_gmp+set}" = set; then
2273  withval="$with_gmp"
2274  :
2275fi
2276
2277
2278echo $ac_n "checking which tmp dir to use""... $ac_c" 1>&6
2279echo "configure:2280: checking which tmp dir to use" >&5
2280if test "${with_tmpdir+set}" = set && test -d ${with_tmpdir}; then
2281  if (echo "${with_tmpdir}" | egrep "\." >/dev/null 2>&1)
2282  then
2283    TMP_DIR="${pwd}/tmp"
2284  else
2285    TMP_DIR=${with_tmpdir}
2286  fi
2287else
2288  TMP_DIR="${pwd}/tmp"
2289fi
2290echo "$ac_t""$TMP_DIR" 1>&6
2291
2292
2293echo $ac_n "checking whether to configure and build omalloc""... $ac_c" 1>&6
2294echo "configure:2295: checking whether to configure and build omalloc" >&5
2295if test "${enable_omalloc+set}" != set; then
2296   if test "$ac_cv_omalloc_ok" = yes; then
2297     enable_omalloc=no
2298   fi
2299   enable_omalloc_not_set=yes
2300fi
2301if test "$enable_omalloc" = no; then
2302  if test "$ac_cv_omalloc_ok" != yes; then
2303    { echo "configure: error: can not build without omalloc" 1>&2; exit 1; }
2304  fi
2305  echo "$ac_t""no" 1>&6
2306else
2307  if test -d omalloc; then
2308    echo "$ac_t""yes" 1>&6
2309    if test "$enable_omalloc_not_set" = yes; then
2310      ac_configure_args="$ac_configure_args --enable-omalloc --with-external-config_h='$pwd/Singular/omSingularConfig.h' --with-track-custom"
2311    fi
2312    CONFIG_SUBDIRS="$CONFIG_SUBDIRS omalloc"
2313    if test "${with_malloc+set}" != set; then
2314case "$ac_cv_singuname" in
2315# under windows, it is best to use the provided malloc
2316        ix86-Win*)
2317        with_malloc=system
2318        ac_configure_args="$ac_configure_args --with-malloc=system"
2319        ;;
2320        PowerMacintosh-darwin*)
2321        with_malloc=system
2322        ac_configure_args="$ac_configure_args --with-malloc=system"
2323        ;;
2324esac
2325fi
2326  else
2327    { echo "configure: error: need omalloc subdir" 1>&2; exit 1; }
2328  fi
2329fi
2330
2331echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6
2332echo "configure:2333: checking whether to configure and build gmp lib" >&5
2333if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
2334  if test "$ac_gmp_ok" != yes && test -d gmp; then
2335    echo "$ac_t""yes" 1>&6
2336    enable_gmp=yes
2337    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
2338    ac_configure_args="$ac_configure_args --enable-gmp"
2339    enable_gmp=yes
2340#    This we used to need for our patched version of gmp 2.x
2341#    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
2342  else
2343    echo "$ac_t""no" 1>&6
2344    enable_gmp=no
2345  fi
2346elif test "$enable_gmp" = yes; then
2347  if test ! -d gmp; then
2348    echo "$ac_t""no" 1>&6
2349    { echo "configure: error: Can not find gmp subdir" 1>&2; exit 1; }
2350  else
2351    echo "$ac_t""yes" 1>&6
2352    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
2353#    This we used to need for our patched version of gmp 2.x
2354#    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
2355  fi
2356else
2357  echo "$ac_t""no" 1>&6
2358fi
2359
2360if test "$enable_gmp" = yes; then
2361# for gmp-3.0 to work for all ix86 processors, set generic target
2362if test "$target" = NONE; then
2363case "$ac_cv_singuname" in
2364        ix86*)
2365        gmp_target=`./config.guess | sed 's/^\w*-/i386-/'`
2366        ac_configure_args="$ac_configure_args --target=$gmp_target"
2367        ;;
2368esac
2369fi
2370# furthermore, disable building of dynamic libraries, for we want to
2371# link against the static ones
2372if test "$enable_shared" != no; then
2373  ac_configure_args="$ac_configure_args --disable-shared"
2374fi
2375fi
2376
2377echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6
2378echo "configure:2379: checking whether to configure and build smallgmp lib" >&5
2379if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
2380  if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
2381     test "$enable_gmp" != yes && test -d smallgmp; then
2382    echo "$ac_t""yes" 1>&6
2383    enable_smallgmp=yes
2384    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
2385    ac_configure_args="$ac_configure_args --enable-smallgmp --enable-gmp"
2386    enable_gmp=yes
2387  else
2388    echo "$ac_t""no" 1>&6
2389    enable_smallgmp=no
2390  fi
2391elif test "$enable_smallgmp" = yes; then
2392  if test ! -d smallgmp; then
2393    echo "$ac_t""no" 1>&6
2394    { echo "configure: error: Can not find smallgmp subdir" 1>&2; exit 1; }
2395  else
2396    echo "$ac_t""yes" 1>&6
2397    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
2398    if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
2399      ac_configure_args="$ac_configure_args --enable-gmp"
2400      enable_gmp=yes
2401    fi
2402  fi
2403else
2404  echo "$ac_t""${enable_smallgmp}" 1>&6
2405fi
2406
2407# Check whether we have at least one of smallgmp or gmp
2408if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
2409   test "$enable_smallgmp" != yes && test "$enable_gmp" != yes; then
2410  { echo "configure: error: can neither find nor built gmp or smallgmp" 1>&2; exit 1; }
2411fi
2412
2413# Check whether we need to cheat subsequent configures with --enable-gmp
2414if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
2415  ac_configure_args="$ac_configure_args --enable-gmp"
2416fi
2417
2418echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6
2419echo "configure:2420: checking whether to configure and build MP lib" >&5
2420if test "$enable_MP" != yes && test "$enable_MP" != no; then
2421  if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
2422     (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then
2423    echo "$ac_t""yes" 1>&6
2424    enable_MP=yes
2425    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
2426    ac_configure_args="$ac_configure_args --enable-MP"
2427  else
2428    echo "$ac_t""no" 1>&6
2429    enable_MP=no
2430  fi
2431elif test "$enable_MP" = yes; then
2432  if test ! -d MP; then
2433    echo "$ac_t""no" 1>&6
2434    { echo "configure: error: can not build MP without MP directory" 1>&2; exit 1; }
2435  fi
2436  if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then
2437    echo "$ac_t""yes" 1>&6
2438    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
2439  else
2440    echo "$ac_t""no" 1>&6
2441    { echo "configure: error: can not build MP without gmp" 1>&2; exit 1; }
2442  fi
2443else
2444  echo "$ac_t""no" 1>&6
2445fi
2446
2447# need MP code to be compiled with -fPIC, should not hurt anybody else
2448if test "$enable_MP" = yes && test "${with_extra_cflags+set}" != set; then
2449ac_configure_args="$ac_configure_args --with-extra_cflags=-fPIC"
2450fi
2451
2452echo $ac_n "checking whether to configure and build NTL lib""... $ac_c" 1>&6
2453echo "configure:2454: checking whether to configure and build NTL lib" >&5
2454if test "$enable_NTL" != yes && test "$enable_NTL" != no; then
2455  if test "$with_NTL" != no && test "$ac_NTL_ok" != yes && \
2456     test -d ntl; then
2457    enable_NTL=yes
2458    echo "$ac_t""yes" 1>&6
2459    CONFIG_SUBDIRS="$CONFIG_SUBDIRS ntl"
2460    ac_configure_args="$ac_configure_args --enable-NTL"
2461  else
2462    enable_NTL=no
2463    echo "$ac_t""no" 1>&6
2464  fi
2465elif test "$enable_NTL" = yes; then
2466  if test -d ntl; then
2467    echo "$ac_t""yes" 1>&6
2468    CONFIG_SUBDIRS="$CONFIG_SUBDIRS ntl"
2469  else
2470    echo "$ac_t""no" 1>&6
2471    { echo "configure: error: can not build NTL without ntl directory" 1>&2; exit 1; }
2472  fi
2473else
2474  echo "$ac_t""no" 1>&6
2475fi
2476
2477echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
2478echo "configure:2479: checking whether to configure and build factory lib" >&5
2479if test "$enable_factory" != yes && test "$enable_factory" != no; then
2480  if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
2481     test -d factory; then
2482    enable_factory=yes
2483    echo "$ac_t""yes" 1>&6
2484    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
2485    ac_configure_args="$ac_configure_args --enable-factory"
2486  else
2487    enable_factory=no
2488    echo "$ac_t""no" 1>&6
2489  fi
2490elif test "$enable_factory" = yes; then
2491  if test -d factory; then
2492    echo "$ac_t""yes" 1>&6
2493    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
2494  else
2495    echo "$ac_t""no" 1>&6
2496    { echo "configure: error: can not build factory without factory directory" 1>&2; exit 1; }
2497  fi
2498else
2499  echo "$ac_t""no" 1>&6
2500fi
2501
2502echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
2503echo "configure:2504: checking whether to configure and build libfac lib" >&5
2504if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
2505  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
2506     test -d libfac && \
2507     (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then
2508    enable_libfac=yes
2509    echo "$ac_t""yes" 1>&6
2510    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
2511    ac_configure_args="$ac_configure_args --enable-libfac"
2512  else
2513    enable_libfac=no
2514    echo "$ac_t""no" 1>&6
2515  fi
2516elif  test "$enable_libfac" = yes; then
2517  if test ! -d libfac; then
2518    echo "$ac_t""no" 1>&6
2519    { echo "configure: error: can not build libfac without libfac directory" 1>&2; exit 1; }
2520  fi
2521  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2522    echo "$ac_t""yes" 1>&6
2523    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
2524  else
2525    echo "$ac_t""no" 1>&6
2526    { echo "configure: error: Can not build libfac without factory" 1>&2; exit 1; }
2527  fi
2528else
2529  echo "$ac_t""no" 1>&6
2530fi
2531
2532echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6
2533echo "configure:2534: checking whether to configure and build sgroup lib" >&5
2534if test "$enable_sgroup" = yes; then
2535  if test ! -d sgroup; then
2536    echo "$ac_t""no" 1>&6
2537    { echo "configure: error: can not build sgroup without sgroup directory" 1>&2; exit 1; }
2538  fi
2539  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2540    echo "$ac_t""yes" 1>&6
2541    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
2542  else
2543    echo "$ac_t""no" 1>&6
2544    { echo "configure: error: Can not build sgroup without MP" 1>&2; exit 1; }
2545  fi
2546else
2547  echo "$ac_t""no" 1>&6
2548fi
2549
2550BUILD_SUBDIRS="$CONFIG_SUBDIRS"
2551
2552echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
2553echo "configure:2554: checking whether to configure and build Singular" >&5
2554if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
2555  if test "$with_Singular" != no && test -d Singular; then
2556    enable_Singular=yes
2557    echo "$ac_t""yes" 1>&6
2558    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
2559    BUILD_SUBDIRS="$BUILD_SUBDIRS kernel Singular"     
2560    ac_configure_args="$ac_configure_args --enable-Singular"
2561  else
2562    enable_Singular=no
2563    echo "$ac_t""no" 1>&6
2564  fi
2565elif test "$enable_Singular" = yes; then
2566  if test -d Singular; then
2567    echo "$ac_t""yes" 1>&6
2568    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
2569    BUILD_SUBDIRS="$BUILD_SUBDIRS Singular"     
2570  else
2571    echo "$ac_t""no" 1>&6
2572    { echo "configure: error: can not build Singular without Singular directory" 1>&2; exit 1; }
2573  fi
2574else
2575  echo "$ac_t""no" 1>&6
2576fi
2577
2578
2579# test if IntegerProgramming should be built:
2580
2581echo $ac_n "checking whether to build IntegerProgramming""... $ac_c" 1>&6
2582echo "configure:2583: checking whether to build IntegerProgramming" >&5
2583if test "$enable_IntegerProgramming" != no && test -d "IntegerProgramming"; then
2584   BUILD_SUBDIRS="$BUILD_SUBDIRS IntegerProgramming"
2585   echo "$ac_t""yes" 1>&6
2586   if test "$enable_IntegerProgramming" != yes; then
2587     ac_configure_args="$ac_configure_args --enable-IntegerProgramming"
2588   fi
2589else
2590   echo "$ac_t""no" 1>&6
2591fi
2592
2593echo $ac_n "checking whether to build Plural""... $ac_c" 1>&6
2594echo "configure:2595: checking whether to build Plural" >&5
2595if test "$enable_Plural" != no || test "$with_Plural" != no; then
2596   echo "$ac_t""yes" 1>&6
2597   if test "$enable_Plural" != yes; then
2598     ac_configure_args="$ac_configure_args --enable-Plural"
2599   fi
2600else
2601   echo "$ac_t""no" 1>&6
2602fi
2603
2604
2605echo $ac_n "checking whether to configure and build Texinfo""... $ac_c" 1>&6
2606echo "configure:2607: checking whether to configure and build Texinfo" >&5
2607if test "$enable_Texinfo" != no && test -d Texinfo; then
2608  echo "$ac_t""yes" 1>&6
2609  enable_texinfo=yes
2610  CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texinfo"
2611  BUILD_SUBDIRS="$BUILD_SUBDIRS Texinfo"       
2612  TEXI2DVI=${bindir}/texi2dvi
2613  MAKEINFO="${bindir}/makeinfo"
2614  TEXINDEX=${bindir}/texindex
2615 
2616 
2617 
2618  if test "$enable_Texinfo" != yes; then
2619    ac_configure_args="$ac_configure_args --enable-Texinfo"
2620  fi
2621else
2622  echo "$ac_t""no" 1>&6
2623  echo "configure: warning: Building of doc might fail. Need Texinfo" 1>&2
2624  enable_texinfo=no
2625  # Extract the first word of "makeinfo", so it can be a program name with args.
2626set dummy makeinfo; ac_word=$2
2627echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2628echo "configure:2629: checking for $ac_word" >&5
2629if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2630  echo $ac_n "(cached) $ac_c" 1>&6
2631else
2632  if test -n "$MAKEINFO"; then
2633  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2634else
2635  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2636  ac_dummy="$PATH"
2637  for ac_dir in $ac_dummy; do
2638    test -z "$ac_dir" && ac_dir=.
2639    if test -f $ac_dir/$ac_word; then
2640      ac_cv_prog_MAKEINFO="makeinfo"
2641      break
2642    fi
2643  done
2644  IFS="$ac_save_ifs"
2645  test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="${pwd}/warn_not_found.sh makeinfo"
2646fi
2647fi
2648MAKEINFO="$ac_cv_prog_MAKEINFO"
2649if test -n "$MAKEINFO"; then
2650  echo "$ac_t""$MAKEINFO" 1>&6
2651else
2652  echo "$ac_t""no" 1>&6
2653fi
2654
2655  # Extract the first word of "texi2dvi", so it can be a program name with args.
2656set dummy texi2dvi; ac_word=$2
2657echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2658echo "configure:2659: checking for $ac_word" >&5
2659if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then
2660  echo $ac_n "(cached) $ac_c" 1>&6
2661else
2662  if test -n "$TEXI2DVI"; then
2663  ac_cv_prog_TEXI2DVI="$TEXI2DVI" # Let the user override the test.
2664else
2665  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2666  ac_dummy="$PATH"
2667  for ac_dir in $ac_dummy; do
2668    test -z "$ac_dir" && ac_dir=.
2669    if test -f $ac_dir/$ac_word; then
2670      ac_cv_prog_TEXI2DVI="texi2dvi"
2671      break
2672    fi
2673  done
2674  IFS="$ac_save_ifs"
2675  test -z "$ac_cv_prog_TEXI2DVI" && ac_cv_prog_TEXI2DVI="${pwd}/warn_not_found.sh texi2dvi"
2676fi
2677fi
2678TEXI2DVI="$ac_cv_prog_TEXI2DVI"
2679if test -n "$TEXI2DVI"; then
2680  echo "$ac_t""$TEXI2DVI" 1>&6
2681else
2682  echo "$ac_t""no" 1>&6
2683fi
2684
2685  # Extract the first word of "texindex", so it can be a program name with args.
2686set dummy texindex; ac_word=$2
2687echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2688echo "configure:2689: checking for $ac_word" >&5
2689if eval "test \"`echo '$''{'ac_cv_prog_TEXINDEX'+set}'`\" = set"; then
2690  echo $ac_n "(cached) $ac_c" 1>&6
2691else
2692  if test -n "$TEXINDEX"; then
2693  ac_cv_prog_TEXINDEX="$TEXINDEX" # Let the user override the test.
2694else
2695  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2696  ac_dummy="$PATH"
2697  for ac_dir in $ac_dummy; do
2698    test -z "$ac_dir" && ac_dir=.
2699    if test -f $ac_dir/$ac_word; then
2700      ac_cv_prog_TEXINDEX="texindex"
2701      break
2702    fi
2703  done
2704  IFS="$ac_save_ifs"
2705  test -z "$ac_cv_prog_TEXINDEX" && ac_cv_prog_TEXINDEX="${pwd}/warn_not_found.sh texindex"
2706fi
2707fi
2708TEXINDEX="$ac_cv_prog_TEXINDEX"
2709if test -n "$TEXINDEX"; then
2710  echo "$ac_t""$TEXINDEX" 1>&6
2711else
2712  echo "$ac_t""no" 1>&6
2713fi
2714
2715fi 
2716
2717echo $ac_n "checking whether to configure and build Texi2html""... $ac_c" 1>&6
2718echo "configure:2719: checking whether to configure and build Texi2html" >&5
2719if test "$enable_Texi2html" != no && test -d Texi2html; then
2720 echo "$ac_t""yes" 1>&6
2721 CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texi2html"
2722 BUILD_SUBDIRS="$BUILD_SUBDIRS Texi2html"
2723 if test "$enable_Texi2html" != yes; then
2724   ac_configure_args="$ac_configure_args --enable-Texi2html"
2725 fi
2726 TEXI2HTML=${bindir}/texi2html
2727 
2728else
2729 echo "$ac_t""no" 1>&6
2730 # Extract the first word of "texi2html", so it can be a program name with args.
2731set dummy texi2html; ac_word=$2
2732echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2733echo "configure:2734: checking for $ac_word" >&5
2734if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then
2735  echo $ac_n "(cached) $ac_c" 1>&6
2736else
2737  if test -n "$TEXI2HTML"; then
2738  ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
2739else
2740  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2741  ac_dummy="$PATH"
2742  for ac_dir in $ac_dummy; do
2743    test -z "$ac_dir" && ac_dir=.
2744    if test -f $ac_dir/$ac_word; then
2745      ac_cv_prog_TEXI2HTML="texi2html"
2746      break
2747    fi
2748  done
2749  IFS="$ac_save_ifs"
2750fi
2751fi
2752TEXI2HTML="$ac_cv_prog_TEXI2HTML"
2753if test -n "$TEXI2HTML"; then
2754  echo "$ac_t""$TEXI2HTML" 1>&6
2755else
2756  echo "$ac_t""no" 1>&6
2757fi
2758
2759fi
2760
2761if test "${TEXI2HTML+set}" != set; then
2762echo "configure: warning: texi2html not found. HTML doc generation will fail" 1>&2
2763fi
2764if test "$ac_cv_prog_LATEX2HTML" = latex2html; then
2765  TEXI2HTML_OPTS="-l2h"
2766fi
2767
2768
2769
2770echo $ac_n "checking whether to build doc""... $ac_c" 1>&6
2771echo "configure:2772: checking whether to build doc" >&5
2772if test "$enable_doc" != no && test -d doc; then
2773 echo "$ac_t""yes" 1>&6
2774 BUILD_SUBDIRS="$BUILD_SUBDIRS doc"
2775 if test "$enable_doc" != yes; then
2776   enable_doc=yes
2777   ac_configure_args="$ac_configure_args --enable-doc"
2778 fi
2779else
2780 enable_doc=no
2781 echo "$ac_t""no" 1>&6
2782fi
2783
2784echo $ac_n "checking whether to build emacs""... $ac_c" 1>&6
2785echo "configure:2786: checking whether to build emacs" >&5
2786if test "$enable_doc" = yes && test "$enable_emacs" != no && test -d emacs; then
2787 echo "$ac_t""yes" 1>&6
2788 BUILD_SUBDIRS="$BUILD_SUBDIRS emacs"
2789 if test "$enable_emacs" != yes; then
2790   ac_configure_args="$ac_configure_args --enable-emacs"
2791 fi
2792else
2793 echo "$ac_t""no" 1>&6
2794fi
2795
2796echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
2797echo "configure:2798: checking which apint package to use" >&5
2798if test "$with_apint" = gmp; then
2799  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
2800    echo "$ac_t""gmp" 1>&6
2801  else
2802    echo "$ac_t""none" 1>&6
2803    { echo "configure: error: can not use with gmp without finding or building it" 1>&2; exit 1; }
2804  fi
2805elif test "$with_apint" = smallgmp; then
2806  if test "$ac_smallgmp_ok" = yes || test "$enable_smallgmp" = yes; then
2807    echo "$ac_t""smallgmp" 1>&6
2808  else
2809    echo "$ac_t""none" 1>&6
2810    { echo "configure: error: can not use with smallgmp without finding or building it" 1>&2; exit 1; }
2811  fi
2812elif test "$ac_gmp_ok" = yes || test "$enable_gmp"; then
2813    echo "$ac_t""gmp" 1>&6
2814    ac_configure_args="$ac_configure_args --with-apint=gmp"
2815else
2816   echo "$ac_t""smallgmp" 1>&6
2817   ac_configure_args="$ac_configure_args --with-apint=smallgmp"
2818fi
2819
2820echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
2821echo "configure:2822: checking whether to use with MP" >&5
2822if test "$with_MP" = yes; then
2823  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2824    echo "$ac_t""yes" 1>&6
2825  else
2826    echo "$ac_t""none" 1>&6
2827    { echo "configure: error: can not use with MP without finding or building it" 1>&2; exit 1; }
2828  fi
2829elif test "$with_MP" = no; then
2830  echo "$ac_t""no" 1>&6
2831elif test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2832  echo "$ac_t""yes" 1>&6
2833  ac_configure_args="$ac_configure_args --with-MP"
2834else
2835  echo "$ac_t""no" 1>&6
2836  ac_configure_args="$ac_configure_args --without-MP"
2837fi
2838
2839echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
2840echo "configure:2841: checking whether to use with factory" >&5
2841if test "$with_factory" = yes; then
2842  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2843    echo "$ac_t""yes" 1>&6
2844  else
2845    echo "$ac_t""none" 1>&6
2846    { echo "configure: error: can not use with factory without finding or building it" 1>&2; exit 1; }
2847  fi
2848elif test "$with_factory" = no; then
2849  echo "$ac_t""no" 1>&6
2850elif test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2851  echo "$ac_t""yes" 1>&6
2852  ac_configure_args="$ac_configure_args --with-factory"
2853else
2854  echo "$ac_t""no" 1>&6
2855  ac_configure_args="$ac_configure_args --without-factory"
2856fi
2857 
2858echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
2859echo "configure:2860: checking whether to use with libfac" >&5
2860if test "$with_libfac" = yes; then
2861  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
2862    echo "$ac_t""yes" 1>&6
2863  else
2864    echo "$ac_t""none" 1>&6
2865    { echo "configure: error: can not use with libfac without finding or building it" 1>&2; exit 1; }
2866  fi
2867elif test "$with_libfac" = no; then
2868  echo "$ac_t""no" 1>&6
2869elif test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
2870  echo "$ac_t""yes" 1>&6
2871  ac_configure_args="$ac_configure_args --with-libfac"
2872else
2873  echo "$ac_t""no" 1>&6
2874  ac_configure_args="$ac_configure_args --without-libfac"
2875fi
2876
2877
2878
2879echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
2880echo "configure:2881: checking whether to use with Singular" >&5
2881if test "$with_Singular" != no && test "$with_Singular" != yes; then
2882  if test "$enable_Singular" = yes; then
2883    with_Singular=yes
2884  else
2885    with_Singular=no
2886  fi
2887  ac_configure_args="$ac_configure_args --with-Singular=$with_Singular"
2888fi
2889
2890if test "$with_Singular" != no; then
2891  echo "$ac_t""yes" 1>&6
2892else
2893  echo "$ac_t""no" 1>&6
2894fi
2895
2896
2897SUBDIRS=""
2898if test -d omalloc; then
2899  SUBDIRS="$SUBDIRS omalloc"
2900fi
2901if test -d smallgmp; then
2902  SUBDIRS="$SUBDIRS smallgmp"
2903fi
2904if test -d gmp; then
2905  SUBDIRS="$SUBDIRS gmp"
2906fi
2907if test -d MP; then
2908  SUBDIRS="$SUBDIRS MP"
2909fi
2910if test -d ntl; then
2911  SUBDIRS="$SUBDIRS ntl"
2912fi
2913if test -d factory; then
2914  SUBDIRS="$SUBDIRS factory"
2915fi
2916if test -d libfac; then
2917  SUBDIRS="$SUBDIRS libfac"
2918fi
2919if test -d sgroup; then
2920  SUBDIRS="$SUBDIRS sgroup"
2921fi
2922if test -d Singular; then
2923  SUBDIRS="$SUBDIRS Singular"
2924fi
2925if test -d Texinfo; then
2926  SUBDIRS="$SUBDIRS Texinfo"
2927fi
2928if test -d Texi2html; then
2929  SUBDIRS="$SUBDIRS Texi2html"
2930fi
2931if test -d doc; then
2932  SUBDIRS="$SUBDIRS doc"
2933fi
2934if test -d emacs; then
2935  SUBDIRS="$SUBDIRS emacs"
2936fi
2937if test -d modules; then
2938  SUBDIRS="$SUBDIRS modules"
2939fi
2940 
2941echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2942echo "configure:2943: checking whether ${MAKE-make} sets \${MAKE}" >&5
2943set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2944if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2945  echo $ac_n "(cached) $ac_c" 1>&6
2946else
2947  cat > conftestmake <<\EOF
2948all:
2949        @echo 'ac_maketemp="${MAKE}"'
2950EOF
2951# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2952eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2953if test -n "$ac_maketemp"; then
2954  eval ac_cv_prog_make_${ac_make}_set=yes
2955else
2956  eval ac_cv_prog_make_${ac_make}_set=no
2957fi
2958rm -f conftestmake
2959fi
2960if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2961  echo "$ac_t""yes" 1>&6
2962  SET_MAKE=
2963else
2964  echo "$ac_t""no" 1>&6
2965  SET_MAKE="MAKE=${MAKE-make}"
2966fi
2967
2968
2969
2970
2971subdirs="$CONFIG_SUBDIRS"
2972 
2973
2974trap '' 1 2 15
2975cat > confcache <<\EOF
2976# This file is a shell script that caches the results of configure
2977# tests run on this system so they can be shared between configure
2978# scripts and configure runs.  It is not useful on other systems.
2979# If it contains results you don't want to keep, you may remove or edit it.
2980#
2981# By default, configure uses ./config.cache as the cache file,
2982# creating it if it does not exist already.  You can give configure
2983# the --cache-file=FILE option to use a different cache file; that is
2984# what configure does when it calls configure scripts in
2985# subdirectories, so they share the cache.
2986# Giving --cache-file=/dev/null disables caching, for debugging configure.
2987# config.status only pays attention to the cache file if you give it the
2988# --recheck option to rerun configure.
2989#
2990EOF
2991# The following way of writing the cache mishandles newlines in values,
2992# but we know of no workaround that is simple, portable, and efficient.
2993# So, don't put newlines in cache variables' values.
2994# Ultrix sh set writes to stderr and can't be redirected directly,
2995# and sets the high bit in the cache file unless we assign to the vars.
2996(set) 2>&1 |
2997  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2998  *ac_space=\ *)
2999    # `set' does not quote correctly, so add quotes (double-quote substitution
3000    # turns \\\\ into \\, and sed turns \\ into \).
3001    sed -n \
3002      -e "s/'/'\\\\''/g" \
3003      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3004    ;;
3005  *)
3006    # `set' quotes correctly as required by POSIX, so do not add quotes.
3007    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3008    ;;
3009  esac >> confcache
3010if cmp -s $cache_file confcache; then
3011  :
3012else
3013  if test -w $cache_file; then
3014    echo "updating cache $cache_file"
3015    cat confcache > $cache_file
3016  else
3017    echo "not updating unwritable cache $cache_file"
3018  fi
3019fi
3020rm -f confcache
3021
3022trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3023
3024test "x$prefix" = xNONE && prefix=$ac_default_prefix
3025# Let make expand exec_prefix.
3026test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3027
3028# Any assignment to VPATH causes Sun make to only execute
3029# the first set of double-colon rules, so remove it if not needed.
3030# If there is a colon in the path, we need to keep it.
3031if test "x$srcdir" = x.; then
3032  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3033fi
3034
3035trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3036
3037# Transform confdefs.h into DEFS.
3038# Protect against shell expansion while executing Makefile rules.
3039# Protect against Makefile macro expansion.
3040cat > conftest.defs <<\EOF
3041s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3042s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
3043s%\[%\\&%g
3044s%\]%\\&%g
3045s%\$%$$%g
3046EOF
3047DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3048rm -f conftest.defs
3049
3050
3051# Without the "./", some shells look in PATH for config.status.
3052: ${CONFIG_STATUS=./config.status}
3053
3054echo creating $CONFIG_STATUS
3055rm -f $CONFIG_STATUS
3056cat > $CONFIG_STATUS <<EOF
3057#! /bin/sh
3058# Generated automatically by configure.
3059# Run this file to recreate the current configuration.
3060# This directory was configured as follows,
3061# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3062#
3063# $0 $ac_configure_args
3064#
3065# Compiler output produced by configure, useful for debugging
3066# configure, is in ./config.log if it exists.
3067
3068ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3069for ac_option
3070do
3071  case "\$ac_option" in
3072  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3073    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3074    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3075  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3076    echo "$CONFIG_STATUS generated by autoconf version 2.13"
3077    exit 0 ;;
3078  -help | --help | --hel | --he | --h)
3079    echo "\$ac_cs_usage"; exit 0 ;;
3080  *) echo "\$ac_cs_usage"; exit 1 ;;
3081  esac
3082done
3083
3084ac_given_srcdir=$srcdir
3085ac_given_INSTALL="$INSTALL"
3086
3087trap 'rm -fr `echo "${OUTPUT_MAKEFILES}" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3088EOF
3089cat >> $CONFIG_STATUS <<EOF
3090
3091# Protect against being on the right side of a sed subst in config.status.
3092sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3093 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3094$ac_vpsub
3095$extrasub
3096s%@SHELL@%$SHELL%g
3097s%@CFLAGS@%$CFLAGS%g
3098s%@CPPFLAGS@%$CPPFLAGS%g
3099s%@CXXFLAGS@%$CXXFLAGS%g
3100s%@FFLAGS@%$FFLAGS%g
3101s%@DEFS@%$DEFS%g
3102s%@LDFLAGS@%$LDFLAGS%g
3103s%@LIBS@%$LIBS%g
3104s%@exec_prefix@%$exec_prefix%g
3105s%@prefix@%$prefix%g
3106s%@program_transform_name@%$program_transform_name%g
3107s%@bindir@%$bindir%g
3108s%@sbindir@%$sbindir%g
3109s%@libexecdir@%$libexecdir%g
3110s%@datadir@%$datadir%g
3111s%@sysconfdir@%$sysconfdir%g
3112s%@sharedstatedir@%$sharedstatedir%g
3113s%@localstatedir@%$localstatedir%g
3114s%@libdir@%$libdir%g
3115s%@includedir@%$includedir%g
3116s%@oldincludedir@%$oldincludedir%g
3117s%@infodir@%$infodir%g
3118s%@mandir@%$mandir%g
3119s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g
3120s%@VERSION_DATE@%$VERSION_DATE%g
3121s%@SINGULAR_SHORT_VERSION@%$SINGULAR_SHORT_VERSION%g
3122s%@SINGULAR_RPM_VERSION@%$SINGULAR_RPM_VERSION%g
3123s%@SINGULAR_ROOT_DIR@%$SINGULAR_ROOT_DIR%g
3124s%@SINGUNAME@%$SINGUNAME%g
3125s%@SING_UNAME@%$SING_UNAME%g
3126s%@CC@%$CC%g
3127s%@CPP@%$CPP%g
3128s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3129s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3130s%@INSTALL_DATA@%$INSTALL_DATA%g
3131s%@CXX@%$CXX%g
3132s%@PIPE@%$PIPE%g
3133s%@PERL@%$PERL%g
3134s%@UUDECODE@%$UUDECODE%g
3135s%@GUNZIP@%$GUNZIP%g
3136s%@MYGZIP@%$MYGZIP%g
3137s%@LATEX2HTML@%$LATEX2HTML%g
3138s%@LN_S@%$LN_S%g
3139s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3140s%@SINGULAR@%$SINGULAR%g
3141s%@TMP_DIR@%$TMP_DIR%g
3142s%@TEXI2DVI@%$TEXI2DVI%g
3143s%@MAKEINFO@%$MAKEINFO%g
3144s%@TEXINDEX@%$TEXINDEX%g
3145s%@TEXI2HTML@%$TEXI2HTML%g
3146s%@TEXI2HTML_OPTS@%$TEXI2HTML_OPTS%g
3147s%@SET_MAKE@%$SET_MAKE%g
3148s%@SUBDIRS@%$SUBDIRS%g
3149s%@BUILD_SUBDIRS@%$BUILD_SUBDIRS%g
3150s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g
3151s%@subdirs@%$subdirs%g
3152
3153CEOF
3154EOF
3155
3156cat >> $CONFIG_STATUS <<\EOF
3157
3158# Split the substitutions into bite-sized pieces for seds with
3159# small command number limits, like on Digital OSF/1 and HP-UX.
3160ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3161ac_file=1 # Number of current file.
3162ac_beg=1 # First line for current file.
3163ac_end=$ac_max_sed_cmds # Line after last line for current file.
3164ac_more_lines=:
3165ac_sed_cmds=""
3166while $ac_more_lines; do
3167  if test $ac_beg -gt 1; then
3168    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3169  else
3170    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3171  fi
3172  if test ! -s conftest.s$ac_file; then
3173    ac_more_lines=false
3174    rm -f conftest.s$ac_file
3175  else
3176    if test -z "$ac_sed_cmds"; then
3177      ac_sed_cmds="sed -f conftest.s$ac_file"
3178    else
3179      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3180    fi
3181    ac_file=`expr $ac_file + 1`
3182    ac_beg=$ac_end
3183    ac_end=`expr $ac_end + $ac_max_sed_cmds`
3184  fi
3185done
3186if test -z "$ac_sed_cmds"; then
3187  ac_sed_cmds=cat
3188fi
3189EOF
3190
3191cat >> $CONFIG_STATUS <<EOF
3192
3193CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"}
3194EOF
3195cat >> $CONFIG_STATUS <<\EOF
3196for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3197  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3198  case "$ac_file" in
3199  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3200       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3201  *) ac_file_in="${ac_file}.in" ;;
3202  esac
3203
3204  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3205
3206  # Remove last slash and all that follows it.  Not all systems have dirname.
3207  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3208  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3209    # The file is in a subdirectory.
3210    test ! -d "$ac_dir" && mkdir "$ac_dir"
3211    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3212    # A "../" for each directory in $ac_dir_suffix.
3213    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3214  else
3215    ac_dir_suffix= ac_dots=
3216  fi
3217
3218  case "$ac_given_srcdir" in
3219  .)  srcdir=.
3220      if test -z "$ac_dots"; then top_srcdir=.
3221      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3222  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3223  *) # Relative path.
3224    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3225    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3226  esac
3227
3228  case "$ac_given_INSTALL" in
3229  [/$]*) INSTALL="$ac_given_INSTALL" ;;
3230  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3231  esac
3232
3233  echo creating "$ac_file"
3234  rm -f "$ac_file"
3235  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3236  case "$ac_file" in
3237  *Makefile*) ac_comsub="1i\\
3238# $configure_input" ;;
3239  *) ac_comsub= ;;
3240  esac
3241
3242  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3243  sed -e "$ac_comsub
3244s%@configure_input@%$configure_input%g
3245s%@srcdir@%$srcdir%g
3246s%@top_srcdir@%$top_srcdir%g
3247s%@INSTALL@%$INSTALL%g
3248" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3249fi; done
3250rm -f conftest.s*
3251
3252EOF
3253cat >> $CONFIG_STATUS <<EOF
3254
3255EOF
3256cat >> $CONFIG_STATUS <<\EOF
3257
3258exit 0
3259EOF
3260chmod +x $CONFIG_STATUS
3261rm -fr confdefs* $ac_clean_files
3262test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3263
3264if test "$no_recursion" != yes; then
3265
3266  # Remove --cache-file and --srcdir arguments so they do not pile up.
3267  ac_sub_configure_args=
3268  ac_prev=
3269  for ac_arg in $ac_configure_args; do
3270    if test -n "$ac_prev"; then
3271      ac_prev=
3272      continue
3273    fi
3274    case "$ac_arg" in
3275    -cache-file | --cache-file | --cache-fil | --cache-fi \
3276    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3277      ac_prev=cache_file ;;
3278    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3279    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3280      ;;
3281    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3282      ac_prev=srcdir ;;
3283    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3284      ;;
3285    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3286    esac
3287  done
3288
3289  for ac_config_dir in $CONFIG_SUBDIRS; do
3290
3291    # Do not complain, so a configure script can configure whichever
3292    # parts of a large source tree are present.
3293    if test ! -d $srcdir/$ac_config_dir; then
3294      continue
3295    fi
3296
3297    echo configuring in $ac_config_dir
3298
3299    case "$srcdir" in
3300    .) ;;
3301    *)
3302      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3303      else
3304        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3305      fi
3306      ;;
3307    esac
3308
3309    ac_popdir=`pwd`
3310    cd $ac_config_dir
3311
3312      # A "../" for each directory in /$ac_config_dir.
3313      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3314
3315    case "$srcdir" in
3316    .) # No --srcdir option.  We are building in place.
3317      ac_sub_srcdir=$srcdir ;;
3318    /*) # Absolute path.
3319      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3320    *) # Relative path.
3321      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3322    esac
3323
3324    # Check for guested configure; otherwise get Cygnus style configure.
3325    if test -f $ac_sub_srcdir/configure; then
3326      ac_sub_configure=$ac_sub_srcdir/configure
3327    elif test -f $ac_sub_srcdir/configure.in; then
3328      ac_sub_configure=$ac_configure
3329    else
3330      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3331      ac_sub_configure=
3332    fi
3333
3334    # The recursion is here.
3335    if test -n "$ac_sub_configure"; then
3336
3337      # Make the cache file name correct relative to the subdirectory.
3338      case "$cache_file" in
3339      /*) ac_sub_cache_file=$cache_file ;;
3340      *) # Relative path.
3341        ac_sub_cache_file="$ac_dots$cache_file" ;;
3342      esac
3343  case "$ac_given_INSTALL" in
3344        [/$]*) INSTALL="$ac_given_INSTALL" ;;
3345        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3346        esac
3347
3348      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3349      # The eval makes quoting arguments work.
3350      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3351      then :
3352      else
3353        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3354      fi
3355    fi
3356
3357    cd $ac_popdir
3358  done
3359fi
3360
Note: See TracBrowser for help on using the repository browser.