source: git/configure @ b640fd

spielwiese
Last change on this file since b640fd was b640fd, checked in by Hans Schönemann <hannes@…>, 19 years ago
*hannes: modules git-svn-id: file:///usr/local/Singular/svn/trunk@8280 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 99.8 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=3
598SINGULAR_MINOR_VERSION=0
599SINGULAR_SUB_VERSION=0
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="May 2005"
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 "emacs"; then
628   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" emacs/Makefile"
629fi
630if test -d "IntegerProgramming"; then
631   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" IntegerProgramming/Makefile"
632fi
633if test -d "Plural"; then
634   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" Plural/Makefile"
635fi
636if test -d "InstallShield"; then
637   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" InstallShield/Makefile InstallShield/Etc/Makefile InstallShield/Cygwin/Makefile InstallShield/Singular/Makefile InstallShield/Xemacs/Makefile"
638fi
639
640
641echo $ac_n "checking uname for singular""... $ac_c" 1>&6
642echo "configure:643: checking uname for singular" >&5
643if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
644  echo $ac_n "(cached) $ac_c" 1>&6
645else
646  ac_cv_singuname="unknown"
647if test -r "singuname.sh"; then
648  if (/bin/sh singuname.sh >/dev/null 2>&1) then
649    ac_cv_singuname=`/bin/sh singuname.sh`
650  fi
651fi
652
653fi
654
655echo "$ac_t""$ac_cv_singuname" 1>&6
656if test "$ac_cv_singuname" = unknown; then
657  { echo "configure: error: Unknown architecture: Check singuname.sh" 1>&2; exit 1; }
658else
659  SINGUNAME=$ac_cv_singuname
660 
661fi
662
663SING_UNAME=`echo $SINGUNAME | tr '-' '_' `
664
665
666
667# Extract the first word of "gcc", so it can be a program name with args.
668set dummy gcc; ac_word=$2
669echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
670echo "configure:671: checking for $ac_word" >&5
671if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
672  echo $ac_n "(cached) $ac_c" 1>&6
673else
674  if test -n "$CC"; then
675  ac_cv_prog_CC="$CC" # Let the user override the test.
676else
677  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
678  ac_dummy="$PATH"
679  for ac_dir in $ac_dummy; do
680    test -z "$ac_dir" && ac_dir=.
681    if test -f $ac_dir/$ac_word; then
682      ac_cv_prog_CC="gcc"
683      break
684    fi
685  done
686  IFS="$ac_save_ifs"
687fi
688fi
689CC="$ac_cv_prog_CC"
690if test -n "$CC"; then
691  echo "$ac_t""$CC" 1>&6
692else
693  echo "$ac_t""no" 1>&6
694fi
695
696if test -z "$CC"; then
697  # Extract the first word of "cc", so it can be a program name with args.
698set dummy cc; ac_word=$2
699echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
700echo "configure:701: checking for $ac_word" >&5
701if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
702  echo $ac_n "(cached) $ac_c" 1>&6
703else
704  if test -n "$CC"; then
705  ac_cv_prog_CC="$CC" # Let the user override the test.
706else
707  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
708  ac_prog_rejected=no
709  ac_dummy="$PATH"
710  for ac_dir in $ac_dummy; do
711    test -z "$ac_dir" && ac_dir=.
712    if test -f $ac_dir/$ac_word; then
713      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
714        ac_prog_rejected=yes
715        continue
716      fi
717      ac_cv_prog_CC="cc"
718      break
719    fi
720  done
721  IFS="$ac_save_ifs"
722if test $ac_prog_rejected = yes; then
723  # We found a bogon in the path, so make sure we never use it.
724  set dummy $ac_cv_prog_CC
725  shift
726  if test $# -gt 0; then
727    # We chose a different compiler from the bogus one.
728    # However, it has the same basename, so the bogon will be chosen
729    # first if we set CC to just the basename; use the full file name.
730    shift
731    set dummy "$ac_dir/$ac_word" "$@"
732    shift
733    ac_cv_prog_CC="$@"
734  fi
735fi
736fi
737fi
738CC="$ac_cv_prog_CC"
739if test -n "$CC"; then
740  echo "$ac_t""$CC" 1>&6
741else
742  echo "$ac_t""no" 1>&6
743fi
744
745  if test -z "$CC"; then
746    case "`uname -s`" in
747    *win32* | *WIN32*)
748      # Extract the first word of "cl", so it can be a program name with args.
749set dummy cl; ac_word=$2
750echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
751echo "configure:752: checking for $ac_word" >&5
752if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
753  echo $ac_n "(cached) $ac_c" 1>&6
754else
755  if test -n "$CC"; then
756  ac_cv_prog_CC="$CC" # Let the user override the test.
757else
758  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
759  ac_dummy="$PATH"
760  for ac_dir in $ac_dummy; do
761    test -z "$ac_dir" && ac_dir=.
762    if test -f $ac_dir/$ac_word; then
763      ac_cv_prog_CC="cl"
764      break
765    fi
766  done
767  IFS="$ac_save_ifs"
768fi
769fi
770CC="$ac_cv_prog_CC"
771if test -n "$CC"; then
772  echo "$ac_t""$CC" 1>&6
773else
774  echo "$ac_t""no" 1>&6
775fi
776 ;;
777    esac
778  fi
779  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
780fi
781
782echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
783echo "configure:784: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
784
785ac_ext=c
786# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
787ac_cpp='$CPP $CPPFLAGS'
788ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
789ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
790cross_compiling=$ac_cv_prog_cc_cross
791
792cat > conftest.$ac_ext << EOF
793
794#line 795 "configure"
795#include "confdefs.h"
796
797main(){return(0);}
798EOF
799if { (eval echo configure:800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
800  ac_cv_prog_cc_works=yes
801  # If we can't run a trivial program, we are probably using a cross compiler.
802  if (./conftest; exit) 2>/dev/null; then
803    ac_cv_prog_cc_cross=no
804  else
805    ac_cv_prog_cc_cross=yes
806  fi
807else
808  echo "configure: failed program was:" >&5
809  cat conftest.$ac_ext >&5
810  ac_cv_prog_cc_works=no
811fi
812rm -fr conftest*
813ac_ext=c
814# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
815ac_cpp='$CPP $CPPFLAGS'
816ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
817ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
818cross_compiling=$ac_cv_prog_cc_cross
819
820echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
821if test $ac_cv_prog_cc_works = no; then
822  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
823fi
824echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
825echo "configure:826: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
826echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
827cross_compiling=$ac_cv_prog_cc_cross
828
829echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
830echo "configure:831: checking whether we are using GNU C" >&5
831if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
832  echo $ac_n "(cached) $ac_c" 1>&6
833else
834  cat > conftest.c <<EOF
835#ifdef __GNUC__
836  yes;
837#endif
838EOF
839if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
840  ac_cv_prog_gcc=yes
841else
842  ac_cv_prog_gcc=no
843fi
844fi
845
846echo "$ac_t""$ac_cv_prog_gcc" 1>&6
847
848if test $ac_cv_prog_gcc = yes; then
849  GCC=yes
850else
851  GCC=
852fi
853
854ac_test_CFLAGS="${CFLAGS+set}"
855ac_save_CFLAGS="$CFLAGS"
856CFLAGS=
857echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
858echo "configure:859: checking whether ${CC-cc} accepts -g" >&5
859if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
860  echo $ac_n "(cached) $ac_c" 1>&6
861else
862  echo 'void f(){}' > conftest.c
863if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
864  ac_cv_prog_cc_g=yes
865else
866  ac_cv_prog_cc_g=no
867fi
868rm -f conftest*
869
870fi
871
872echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
873if test "$ac_test_CFLAGS" = set; then
874  CFLAGS="$ac_save_CFLAGS"
875elif test $ac_cv_prog_cc_g = yes; then
876  if test "$GCC" = yes; then
877    CFLAGS="-g -O2"
878  else
879    CFLAGS="-g"
880  fi
881else
882  if test "$GCC" = yes; then
883    CFLAGS="-O2"
884  else
885    CFLAGS=
886  fi
887fi
888
889echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
890echo "configure:891: checking how to run the C preprocessor" >&5
891# On Suns, sometimes $CPP names a directory.
892if test -n "$CPP" && test -d "$CPP"; then
893  CPP=
894fi
895if test -z "$CPP"; then
896if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
897  echo $ac_n "(cached) $ac_c" 1>&6
898else
899    # This must be in double quotes, not single quotes, because CPP may get
900  # substituted into the Makefile and "${CC-cc}" will confuse make.
901  CPP="${CC-cc} -E"
902  # On the NeXT, cc -E runs the code through the compiler's parser,
903  # not just through cpp.
904  cat > conftest.$ac_ext <<EOF
905#line 906 "configure"
906#include "confdefs.h"
907#include <assert.h>
908Syntax Error
909EOF
910ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
911{ (eval echo configure:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
912ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
913if test -z "$ac_err"; then
914  :
915else
916  echo "$ac_err" >&5
917  echo "configure: failed program was:" >&5
918  cat conftest.$ac_ext >&5
919  rm -rf conftest*
920  CPP="${CC-cc} -E -traditional-cpp"
921  cat > conftest.$ac_ext <<EOF
922#line 923 "configure"
923#include "confdefs.h"
924#include <assert.h>
925Syntax Error
926EOF
927ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
928{ (eval echo configure:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
929ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
930if test -z "$ac_err"; then
931  :
932else
933  echo "$ac_err" >&5
934  echo "configure: failed program was:" >&5
935  cat conftest.$ac_ext >&5
936  rm -rf conftest*
937  CPP="${CC-cc} -nologo -E"
938  cat > conftest.$ac_ext <<EOF
939#line 940 "configure"
940#include "confdefs.h"
941#include <assert.h>
942Syntax Error
943EOF
944ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
945{ (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
946ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
947if test -z "$ac_err"; then
948  :
949else
950  echo "$ac_err" >&5
951  echo "configure: failed program was:" >&5
952  cat conftest.$ac_ext >&5
953  rm -rf conftest*
954  CPP=/lib/cpp
955fi
956rm -f conftest*
957fi
958rm -f conftest*
959fi
960rm -f conftest*
961  ac_cv_prog_CPP="$CPP"
962fi
963  CPP="$ac_cv_prog_CPP"
964else
965  ac_cv_prog_CPP="$CPP"
966fi
967echo "$ac_t""$CPP" 1>&6
968
969ac_aux_dir=
970for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
971  if test -f $ac_dir/install-sh; then
972    ac_aux_dir=$ac_dir
973    ac_install_sh="$ac_aux_dir/install-sh -c"
974    break
975  elif test -f $ac_dir/install.sh; then
976    ac_aux_dir=$ac_dir
977    ac_install_sh="$ac_aux_dir/install.sh -c"
978    break
979  fi
980done
981if test -z "$ac_aux_dir"; then
982  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
983fi
984ac_config_guess=$ac_aux_dir/config.guess
985ac_config_sub=$ac_aux_dir/config.sub
986ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
987
988# Find a good install program.  We prefer a C program (faster),
989# so one script is as good as another.  But avoid the broken or
990# incompatible versions:
991# SysV /etc/install, /usr/sbin/install
992# SunOS /usr/etc/install
993# IRIX /sbin/install
994# AIX /bin/install
995# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
996# AFS /usr/afsws/bin/install, which mishandles nonexistent args
997# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
998# ./install, which can be erroneously created by make from ./install.sh.
999echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1000echo "configure:1001: checking for a BSD compatible install" >&5
1001if test -z "$INSTALL"; then
1002if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1003  echo $ac_n "(cached) $ac_c" 1>&6
1004else
1005    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1006  for ac_dir in $PATH; do
1007    # Account for people who put trailing slashes in PATH elements.
1008    case "$ac_dir/" in
1009    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1010    *)
1011      # OSF1 and SCO ODT 3.0 have their own names for install.
1012      # Don't use installbsd from OSF since it installs stuff as root
1013      # by default.
1014      for ac_prog in ginstall scoinst install; do
1015        if test -f $ac_dir/$ac_prog; then
1016          if test $ac_prog = install &&
1017            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1018            # AIX install.  It has an incompatible calling convention.
1019            :
1020          else
1021            ac_cv_path_install="$ac_dir/$ac_prog -c"
1022            break 2
1023          fi
1024        fi
1025      done
1026      ;;
1027    esac
1028  done
1029  IFS="$ac_save_IFS"
1030
1031fi
1032  if test "${ac_cv_path_install+set}" = set; then
1033    INSTALL="$ac_cv_path_install"
1034  else
1035    # As a last resort, use the slow shell script.  We don't cache a
1036    # path for INSTALL within a source directory, because that will
1037    # break other packages using the cache if that directory is
1038    # removed, or if the path is relative.
1039    INSTALL="$ac_install_sh"
1040  fi
1041fi
1042echo "$ac_t""$INSTALL" 1>&6
1043
1044# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1045# It thinks the first close brace ends the variable substitution.
1046test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1047
1048test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1049
1050test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1051
1052echo $ac_n "checking for AIX""... $ac_c" 1>&6
1053echo "configure:1054: checking for AIX" >&5
1054cat > conftest.$ac_ext <<EOF
1055#line 1056 "configure"
1056#include "confdefs.h"
1057#ifdef _AIX
1058  yes
1059#endif
1060
1061EOF
1062if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1063  egrep "yes" >/dev/null 2>&1; then
1064  rm -rf conftest*
1065  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1066#define _ALL_SOURCE 1
1067EOF
1068
1069else
1070  rm -rf conftest*
1071  echo "$ac_t""no" 1>&6
1072fi
1073rm -f conftest*
1074
1075
1076for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1077do
1078# Extract the first word of "$ac_prog", so it can be a program name with args.
1079set dummy $ac_prog; ac_word=$2
1080echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1081echo "configure:1082: checking for $ac_word" >&5
1082if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1083  echo $ac_n "(cached) $ac_c" 1>&6
1084else
1085  if test -n "$CXX"; then
1086  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1087else
1088  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1089  ac_dummy="$PATH"
1090  for ac_dir in $ac_dummy; do
1091    test -z "$ac_dir" && ac_dir=.
1092    if test -f $ac_dir/$ac_word; then
1093      ac_cv_prog_CXX="$ac_prog"
1094      break
1095    fi
1096  done
1097  IFS="$ac_save_ifs"
1098fi
1099fi
1100CXX="$ac_cv_prog_CXX"
1101if test -n "$CXX"; then
1102  echo "$ac_t""$CXX" 1>&6
1103else
1104  echo "$ac_t""no" 1>&6
1105fi
1106
1107test -n "$CXX" && break
1108done
1109test -n "$CXX" || CXX="gcc"
1110
1111
1112echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1113echo "configure:1114: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1114
1115ac_ext=C
1116# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1117ac_cpp='$CXXCPP $CPPFLAGS'
1118ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1119ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1120cross_compiling=$ac_cv_prog_cxx_cross
1121
1122cat > conftest.$ac_ext << EOF
1123
1124#line 1125 "configure"
1125#include "confdefs.h"
1126
1127int main(){return(0);}
1128EOF
1129if { (eval echo configure:1130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1130  ac_cv_prog_cxx_works=yes
1131  # If we can't run a trivial program, we are probably using a cross compiler.
1132  if (./conftest; exit) 2>/dev/null; then
1133    ac_cv_prog_cxx_cross=no
1134  else
1135    ac_cv_prog_cxx_cross=yes
1136  fi
1137else
1138  echo "configure: failed program was:" >&5
1139  cat conftest.$ac_ext >&5
1140  ac_cv_prog_cxx_works=no
1141fi
1142rm -fr conftest*
1143ac_ext=c
1144# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1145ac_cpp='$CPP $CPPFLAGS'
1146ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1147ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1148cross_compiling=$ac_cv_prog_cc_cross
1149
1150echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1151if test $ac_cv_prog_cxx_works = no; then
1152  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1153fi
1154echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1155echo "configure:1156: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1156echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1157cross_compiling=$ac_cv_prog_cxx_cross
1158
1159echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1160echo "configure:1161: checking whether we are using GNU C++" >&5
1161if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1162  echo $ac_n "(cached) $ac_c" 1>&6
1163else
1164  cat > conftest.C <<EOF
1165#ifdef __GNUC__
1166  yes;
1167#endif
1168EOF
1169if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1170  ac_cv_prog_gxx=yes
1171else
1172  ac_cv_prog_gxx=no
1173fi
1174fi
1175
1176echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1177
1178if test $ac_cv_prog_gxx = yes; then
1179  GXX=yes
1180else
1181  GXX=
1182fi
1183
1184ac_test_CXXFLAGS="${CXXFLAGS+set}"
1185ac_save_CXXFLAGS="$CXXFLAGS"
1186CXXFLAGS=
1187echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1188echo "configure:1189: checking whether ${CXX-g++} accepts -g" >&5
1189if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1190  echo $ac_n "(cached) $ac_c" 1>&6
1191else
1192  echo 'void f(){}' > conftest.cc
1193if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1194  ac_cv_prog_cxx_g=yes
1195else
1196  ac_cv_prog_cxx_g=no
1197fi
1198rm -f conftest*
1199
1200fi
1201
1202echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1203if test "$ac_test_CXXFLAGS" = set; then
1204  CXXFLAGS="$ac_save_CXXFLAGS"
1205elif test $ac_cv_prog_cxx_g = yes; then
1206  if test "$GXX" = yes; then
1207    CXXFLAGS="-g -O2"
1208  else
1209    CXXFLAGS="-g"
1210  fi
1211else
1212  if test "$GXX" = yes; then
1213    CXXFLAGS="-O2"
1214  else
1215    CXXFLAGS=
1216  fi
1217fi
1218
1219
1220SING_CC=${CC}; export SING_CC
1221SING_CXX=${CXX}; export SING_CXX
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 kernel 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  TEXI2PDF=${bindir}/texi2pdf
2614  MAKEINFO="${bindir}/makeinfo"
2615  TEXINDEX=${bindir}/texindex
2616 
2617 
2618 
2619 
2620  if test "$enable_Texinfo" != yes; then
2621    ac_configure_args="$ac_configure_args --enable-Texinfo"
2622  fi
2623else
2624  echo "$ac_t""no" 1>&6
2625  echo "configure: warning: Building of doc might fail. Need Texinfo" 1>&2
2626  enable_texinfo=no
2627  # Extract the first word of "makeinfo", so it can be a program name with args.
2628set dummy makeinfo; ac_word=$2
2629echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2630echo "configure:2631: checking for $ac_word" >&5
2631if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2632  echo $ac_n "(cached) $ac_c" 1>&6
2633else
2634  if test -n "$MAKEINFO"; then
2635  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2636else
2637  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2638  ac_dummy="$PATH"
2639  for ac_dir in $ac_dummy; do
2640    test -z "$ac_dir" && ac_dir=.
2641    if test -f $ac_dir/$ac_word; then
2642      ac_cv_prog_MAKEINFO="makeinfo"
2643      break
2644    fi
2645  done
2646  IFS="$ac_save_ifs"
2647  test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="${pwd}/warn_not_found.sh makeinfo"
2648fi
2649fi
2650MAKEINFO="$ac_cv_prog_MAKEINFO"
2651if test -n "$MAKEINFO"; then
2652  echo "$ac_t""$MAKEINFO" 1>&6
2653else
2654  echo "$ac_t""no" 1>&6
2655fi
2656
2657  # Extract the first word of "texi2dvi", so it can be a program name with args.
2658set dummy texi2dvi; ac_word=$2
2659echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2660echo "configure:2661: checking for $ac_word" >&5
2661if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then
2662  echo $ac_n "(cached) $ac_c" 1>&6
2663else
2664  if test -n "$TEXI2DVI"; then
2665  ac_cv_prog_TEXI2DVI="$TEXI2DVI" # Let the user override the test.
2666else
2667  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2668  ac_dummy="$PATH"
2669  for ac_dir in $ac_dummy; do
2670    test -z "$ac_dir" && ac_dir=.
2671    if test -f $ac_dir/$ac_word; then
2672      ac_cv_prog_TEXI2DVI="texi2dvi"
2673      break
2674    fi
2675  done
2676  IFS="$ac_save_ifs"
2677  test -z "$ac_cv_prog_TEXI2DVI" && ac_cv_prog_TEXI2DVI="${pwd}/warn_not_found.sh texi2dvi"
2678fi
2679fi
2680TEXI2DVI="$ac_cv_prog_TEXI2DVI"
2681if test -n "$TEXI2DVI"; then
2682  echo "$ac_t""$TEXI2DVI" 1>&6
2683else
2684  echo "$ac_t""no" 1>&6
2685fi
2686
2687  # Extract the first word of "texindex", so it can be a program name with args.
2688set dummy texindex; ac_word=$2
2689echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2690echo "configure:2691: checking for $ac_word" >&5
2691if eval "test \"`echo '$''{'ac_cv_prog_TEXINDEX'+set}'`\" = set"; then
2692  echo $ac_n "(cached) $ac_c" 1>&6
2693else
2694  if test -n "$TEXINDEX"; then
2695  ac_cv_prog_TEXINDEX="$TEXINDEX" # Let the user override the test.
2696else
2697  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2698  ac_dummy="$PATH"
2699  for ac_dir in $ac_dummy; do
2700    test -z "$ac_dir" && ac_dir=.
2701    if test -f $ac_dir/$ac_word; then
2702      ac_cv_prog_TEXINDEX="texindex"
2703      break
2704    fi
2705  done
2706  IFS="$ac_save_ifs"
2707  test -z "$ac_cv_prog_TEXINDEX" && ac_cv_prog_TEXINDEX="${pwd}/warn_not_found.sh texindex"
2708fi
2709fi
2710TEXINDEX="$ac_cv_prog_TEXINDEX"
2711if test -n "$TEXINDEX"; then
2712  echo "$ac_t""$TEXINDEX" 1>&6
2713else
2714  echo "$ac_t""no" 1>&6
2715fi
2716
2717  # Extract the first word of "texi2pdf", so it can be a program name with args.
2718set dummy texi2pdf; ac_word=$2
2719echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2720echo "configure:2721: checking for $ac_word" >&5
2721if eval "test \"`echo '$''{'ac_cv_prog_TEXI2PDF'+set}'`\" = set"; then
2722  echo $ac_n "(cached) $ac_c" 1>&6
2723else
2724  if test -n "$TEXI2PDF"; then
2725  ac_cv_prog_TEXI2PDF="$TEXI2PDF" # Let the user override the test.
2726else
2727  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2728  ac_dummy="$PATH"
2729  for ac_dir in $ac_dummy; do
2730    test -z "$ac_dir" && ac_dir=.
2731    if test -f $ac_dir/$ac_word; then
2732      ac_cv_prog_TEXI2PDF="texi2pdf"
2733      break
2734    fi
2735  done
2736  IFS="$ac_save_ifs"
2737  test -z "$ac_cv_prog_TEXI2PDF" && ac_cv_prog_TEXI2PDF="${pwd}/warn_not_found.sh texi2pdf"
2738fi
2739fi
2740TEXI2PDF="$ac_cv_prog_TEXI2PDF"
2741if test -n "$TEXI2PDF"; then
2742  echo "$ac_t""$TEXI2PDF" 1>&6
2743else
2744  echo "$ac_t""no" 1>&6
2745fi
2746
2747fi 
2748
2749echo $ac_n "checking whether to configure and build Texi2html""... $ac_c" 1>&6
2750echo "configure:2751: checking whether to configure and build Texi2html" >&5
2751if test "$enable_Texi2html" != no && test -d Texi2html; then
2752 echo "$ac_t""yes" 1>&6
2753 CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texi2html"
2754 BUILD_SUBDIRS="$BUILD_SUBDIRS Texi2html"
2755 if test "$enable_Texi2html" != yes; then
2756   ac_configure_args="$ac_configure_args --enable-Texi2html"
2757 fi
2758 TEXI2HTML=${bindir}/texi2html
2759 
2760else
2761 echo "$ac_t""no" 1>&6
2762 # Extract the first word of "texi2html", so it can be a program name with args.
2763set dummy texi2html; ac_word=$2
2764echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2765echo "configure:2766: checking for $ac_word" >&5
2766if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then
2767  echo $ac_n "(cached) $ac_c" 1>&6
2768else
2769  if test -n "$TEXI2HTML"; then
2770  ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
2771else
2772  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2773  ac_dummy="$PATH"
2774  for ac_dir in $ac_dummy; do
2775    test -z "$ac_dir" && ac_dir=.
2776    if test -f $ac_dir/$ac_word; then
2777      ac_cv_prog_TEXI2HTML="texi2html"
2778      break
2779    fi
2780  done
2781  IFS="$ac_save_ifs"
2782fi
2783fi
2784TEXI2HTML="$ac_cv_prog_TEXI2HTML"
2785if test -n "$TEXI2HTML"; then
2786  echo "$ac_t""$TEXI2HTML" 1>&6
2787else
2788  echo "$ac_t""no" 1>&6
2789fi
2790
2791fi
2792
2793if test "${TEXI2HTML+set}" != set; then
2794echo "configure: warning: texi2html not found. HTML doc generation will fail" 1>&2
2795fi
2796if test "$ac_cv_prog_LATEX2HTML" = latex2html; then
2797  TEXI2HTML_OPTS="-l2h"
2798fi
2799
2800
2801
2802echo $ac_n "checking whether to build doc""... $ac_c" 1>&6
2803echo "configure:2804: checking whether to build doc" >&5
2804if test "$enable_doc" != no && test -d doc; then
2805 echo "$ac_t""yes" 1>&6
2806 BUILD_SUBDIRS="$BUILD_SUBDIRS doc"
2807 if test "$enable_doc" != yes; then
2808   enable_doc=yes
2809   ac_configure_args="$ac_configure_args --enable-doc"
2810 fi
2811else
2812 enable_doc=no
2813 echo "$ac_t""no" 1>&6
2814fi
2815
2816echo $ac_n "checking whether to build emacs""... $ac_c" 1>&6
2817echo "configure:2818: checking whether to build emacs" >&5
2818if test "$enable_doc" = yes && test "$enable_emacs" != no && test -d emacs; then
2819 echo "$ac_t""yes" 1>&6
2820 BUILD_SUBDIRS="$BUILD_SUBDIRS emacs"
2821 if test "$enable_emacs" != yes; then
2822   ac_configure_args="$ac_configure_args --enable-emacs"
2823 fi
2824else
2825 echo "$ac_t""no" 1>&6
2826fi
2827
2828echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
2829echo "configure:2830: checking which apint package to use" >&5
2830if test "$with_apint" = gmp; then
2831  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
2832    echo "$ac_t""gmp" 1>&6
2833  else
2834    echo "$ac_t""none" 1>&6
2835    { echo "configure: error: can not use with gmp without finding or building it" 1>&2; exit 1; }
2836  fi
2837elif test "$with_apint" = smallgmp; then
2838  if test "$ac_smallgmp_ok" = yes || test "$enable_smallgmp" = yes; then
2839    echo "$ac_t""smallgmp" 1>&6
2840  else
2841    echo "$ac_t""none" 1>&6
2842    { echo "configure: error: can not use with smallgmp without finding or building it" 1>&2; exit 1; }
2843  fi
2844elif test "$ac_gmp_ok" = yes || test "$enable_gmp"; then
2845    echo "$ac_t""gmp" 1>&6
2846    ac_configure_args="$ac_configure_args --with-apint=gmp"
2847else
2848   echo "$ac_t""smallgmp" 1>&6
2849   ac_configure_args="$ac_configure_args --with-apint=smallgmp"
2850fi
2851
2852echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
2853echo "configure:2854: checking whether to use with MP" >&5
2854if test "$with_MP" = yes; then
2855  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2856    echo "$ac_t""yes" 1>&6
2857  else
2858    echo "$ac_t""none" 1>&6
2859    { echo "configure: error: can not use with MP without finding or building it" 1>&2; exit 1; }
2860  fi
2861elif test "$with_MP" = no; then
2862  echo "$ac_t""no" 1>&6
2863elif test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2864  echo "$ac_t""yes" 1>&6
2865  ac_configure_args="$ac_configure_args --with-MP"
2866else
2867  echo "$ac_t""no" 1>&6
2868  ac_configure_args="$ac_configure_args --without-MP"
2869fi
2870
2871echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
2872echo "configure:2873: checking whether to use with factory" >&5
2873if test "$with_factory" = yes; then
2874  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2875    echo "$ac_t""yes" 1>&6
2876  else
2877    echo "$ac_t""none" 1>&6
2878    { echo "configure: error: can not use with factory without finding or building it" 1>&2; exit 1; }
2879  fi
2880elif test "$with_factory" = no; then
2881  echo "$ac_t""no" 1>&6
2882elif test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2883  echo "$ac_t""yes" 1>&6
2884  ac_configure_args="$ac_configure_args --with-factory"
2885else
2886  echo "$ac_t""no" 1>&6
2887  ac_configure_args="$ac_configure_args --without-factory"
2888fi
2889 
2890echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
2891echo "configure:2892: checking whether to use with libfac" >&5
2892if test "$with_libfac" = yes; then
2893  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
2894    echo "$ac_t""yes" 1>&6
2895  else
2896    echo "$ac_t""none" 1>&6
2897    { echo "configure: error: can not use with libfac without finding or building it" 1>&2; exit 1; }
2898  fi
2899elif test "$with_libfac" = no; then
2900  echo "$ac_t""no" 1>&6
2901elif test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
2902  echo "$ac_t""yes" 1>&6
2903  ac_configure_args="$ac_configure_args --with-libfac"
2904else
2905  echo "$ac_t""no" 1>&6
2906  ac_configure_args="$ac_configure_args --without-libfac"
2907fi
2908
2909
2910
2911echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
2912echo "configure:2913: checking whether to use with Singular" >&5
2913if test "$with_Singular" != no && test "$with_Singular" != yes; then
2914  if test "$enable_Singular" = yes; then
2915    with_Singular=yes
2916  else
2917    with_Singular=no
2918  fi
2919  ac_configure_args="$ac_configure_args --with-Singular=$with_Singular"
2920fi
2921
2922if test "$with_Singular" != no; then
2923  echo "$ac_t""yes" 1>&6
2924else
2925  echo "$ac_t""no" 1>&6
2926fi
2927
2928
2929SUBDIRS=""
2930if test -d omalloc; then
2931  SUBDIRS="$SUBDIRS omalloc"
2932fi
2933if test -d smallgmp; then
2934  SUBDIRS="$SUBDIRS smallgmp"
2935fi
2936if test -d gmp; then
2937  SUBDIRS="$SUBDIRS gmp"
2938fi
2939if test -d MP; then
2940  SUBDIRS="$SUBDIRS MP"
2941fi
2942if test -d ntl; then
2943  SUBDIRS="$SUBDIRS ntl"
2944fi
2945if test -d factory; then
2946  SUBDIRS="$SUBDIRS factory"
2947fi
2948if test -d libfac; then
2949  SUBDIRS="$SUBDIRS libfac"
2950fi
2951if test -d sgroup; then
2952  SUBDIRS="$SUBDIRS sgroup"
2953fi
2954if test -d Singular; then
2955  SUBDIRS="$SUBDIRS Singular"
2956fi
2957if test -d Texinfo; then
2958  SUBDIRS="$SUBDIRS Texinfo"
2959fi
2960if test -d Texi2html; then
2961  SUBDIRS="$SUBDIRS Texi2html"
2962fi
2963if test -d doc; then
2964  SUBDIRS="$SUBDIRS doc"
2965fi
2966if test -d emacs; then
2967  SUBDIRS="$SUBDIRS emacs"
2968fi
2969if test -d modules; then
2970  SUBDIRS="$SUBDIRS modules"
2971fi
2972if test -d "modules"; then
2973   CONFIG_SUBDIRS=$CONFIG_SUBDIRS" modules"
2974   BUILD_SUBDIRS=$BUILD_SUBDIRS" modules"
2975fi
2976 
2977echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2978echo "configure:2979: checking whether ${MAKE-make} sets \${MAKE}" >&5
2979set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2980if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2981  echo $ac_n "(cached) $ac_c" 1>&6
2982else
2983  cat > conftestmake <<\EOF
2984all:
2985        @echo 'ac_maketemp="${MAKE}"'
2986EOF
2987# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2988eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2989if test -n "$ac_maketemp"; then
2990  eval ac_cv_prog_make_${ac_make}_set=yes
2991else
2992  eval ac_cv_prog_make_${ac_make}_set=no
2993fi
2994rm -f conftestmake
2995fi
2996if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2997  echo "$ac_t""yes" 1>&6
2998  SET_MAKE=
2999else
3000  echo "$ac_t""no" 1>&6
3001  SET_MAKE="MAKE=${MAKE-make}"
3002fi
3003
3004
3005
3006
3007subdirs="$CONFIG_SUBDIRS"
3008 
3009
3010trap '' 1 2 15
3011cat > confcache <<\EOF
3012# This file is a shell script that caches the results of configure
3013# tests run on this system so they can be shared between configure
3014# scripts and configure runs.  It is not useful on other systems.
3015# If it contains results you don't want to keep, you may remove or edit it.
3016#
3017# By default, configure uses ./config.cache as the cache file,
3018# creating it if it does not exist already.  You can give configure
3019# the --cache-file=FILE option to use a different cache file; that is
3020# what configure does when it calls configure scripts in
3021# subdirectories, so they share the cache.
3022# Giving --cache-file=/dev/null disables caching, for debugging configure.
3023# config.status only pays attention to the cache file if you give it the
3024# --recheck option to rerun configure.
3025#
3026EOF
3027# The following way of writing the cache mishandles newlines in values,
3028# but we know of no workaround that is simple, portable, and efficient.
3029# So, don't put newlines in cache variables' values.
3030# Ultrix sh set writes to stderr and can't be redirected directly,
3031# and sets the high bit in the cache file unless we assign to the vars.
3032(set) 2>&1 |
3033  case `(ac_space=' '; set | grep ac_space) 2>&1` in
3034  *ac_space=\ *)
3035    # `set' does not quote correctly, so add quotes (double-quote substitution
3036    # turns \\\\ into \\, and sed turns \\ into \).
3037    sed -n \
3038      -e "s/'/'\\\\''/g" \
3039      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3040    ;;
3041  *)
3042    # `set' quotes correctly as required by POSIX, so do not add quotes.
3043    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3044    ;;
3045  esac >> confcache
3046if cmp -s $cache_file confcache; then
3047  :
3048else
3049  if test -w $cache_file; then
3050    echo "updating cache $cache_file"
3051    cat confcache > $cache_file
3052  else
3053    echo "not updating unwritable cache $cache_file"
3054  fi
3055fi
3056rm -f confcache
3057
3058trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3059
3060test "x$prefix" = xNONE && prefix=$ac_default_prefix
3061# Let make expand exec_prefix.
3062test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3063
3064# Any assignment to VPATH causes Sun make to only execute
3065# the first set of double-colon rules, so remove it if not needed.
3066# If there is a colon in the path, we need to keep it.
3067if test "x$srcdir" = x.; then
3068  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3069fi
3070
3071trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3072
3073# Transform confdefs.h into DEFS.
3074# Protect against shell expansion while executing Makefile rules.
3075# Protect against Makefile macro expansion.
3076cat > conftest.defs <<\EOF
3077s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3078s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
3079s%\[%\\&%g
3080s%\]%\\&%g
3081s%\$%$$%g
3082EOF
3083DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3084rm -f conftest.defs
3085
3086
3087# Without the "./", some shells look in PATH for config.status.
3088: ${CONFIG_STATUS=./config.status}
3089
3090echo creating $CONFIG_STATUS
3091rm -f $CONFIG_STATUS
3092cat > $CONFIG_STATUS <<EOF
3093#! /bin/sh
3094# Generated automatically by configure.
3095# Run this file to recreate the current configuration.
3096# This directory was configured as follows,
3097# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3098#
3099# $0 $ac_configure_args
3100#
3101# Compiler output produced by configure, useful for debugging
3102# configure, is in ./config.log if it exists.
3103
3104ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3105for ac_option
3106do
3107  case "\$ac_option" in
3108  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3109    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3110    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3111  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3112    echo "$CONFIG_STATUS generated by autoconf version 2.13"
3113    exit 0 ;;
3114  -help | --help | --hel | --he | --h)
3115    echo "\$ac_cs_usage"; exit 0 ;;
3116  *) echo "\$ac_cs_usage"; exit 1 ;;
3117  esac
3118done
3119
3120ac_given_srcdir=$srcdir
3121ac_given_INSTALL="$INSTALL"
3122
3123trap 'rm -fr `echo "${OUTPUT_MAKEFILES}" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3124EOF
3125cat >> $CONFIG_STATUS <<EOF
3126
3127# Protect against being on the right side of a sed subst in config.status.
3128sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3129 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3130$ac_vpsub
3131$extrasub
3132s%@SHELL@%$SHELL%g
3133s%@CFLAGS@%$CFLAGS%g
3134s%@CPPFLAGS@%$CPPFLAGS%g
3135s%@CXXFLAGS@%$CXXFLAGS%g
3136s%@FFLAGS@%$FFLAGS%g
3137s%@DEFS@%$DEFS%g
3138s%@LDFLAGS@%$LDFLAGS%g
3139s%@LIBS@%$LIBS%g
3140s%@exec_prefix@%$exec_prefix%g
3141s%@prefix@%$prefix%g
3142s%@program_transform_name@%$program_transform_name%g
3143s%@bindir@%$bindir%g
3144s%@sbindir@%$sbindir%g
3145s%@libexecdir@%$libexecdir%g
3146s%@datadir@%$datadir%g
3147s%@sysconfdir@%$sysconfdir%g
3148s%@sharedstatedir@%$sharedstatedir%g
3149s%@localstatedir@%$localstatedir%g
3150s%@libdir@%$libdir%g
3151s%@includedir@%$includedir%g
3152s%@oldincludedir@%$oldincludedir%g
3153s%@infodir@%$infodir%g
3154s%@mandir@%$mandir%g
3155s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g
3156s%@VERSION_DATE@%$VERSION_DATE%g
3157s%@SINGULAR_SHORT_VERSION@%$SINGULAR_SHORT_VERSION%g
3158s%@SINGULAR_RPM_VERSION@%$SINGULAR_RPM_VERSION%g
3159s%@SINGULAR_ROOT_DIR@%$SINGULAR_ROOT_DIR%g
3160s%@SINGUNAME@%$SINGUNAME%g
3161s%@SING_UNAME@%$SING_UNAME%g
3162s%@CC@%$CC%g
3163s%@CPP@%$CPP%g
3164s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3165s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3166s%@INSTALL_DATA@%$INSTALL_DATA%g
3167s%@CXX@%$CXX%g
3168s%@PIPE@%$PIPE%g
3169s%@PERL@%$PERL%g
3170s%@UUDECODE@%$UUDECODE%g
3171s%@GUNZIP@%$GUNZIP%g
3172s%@MYGZIP@%$MYGZIP%g
3173s%@LATEX2HTML@%$LATEX2HTML%g
3174s%@LN_S@%$LN_S%g
3175s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3176s%@SINGULAR@%$SINGULAR%g
3177s%@TMP_DIR@%$TMP_DIR%g
3178s%@TEXI2DVI@%$TEXI2DVI%g
3179s%@TEXI2PDF@%$TEXI2PDF%g
3180s%@MAKEINFO@%$MAKEINFO%g
3181s%@TEXINDEX@%$TEXINDEX%g
3182s%@TEXI2HTML@%$TEXI2HTML%g
3183s%@TEXI2HTML_OPTS@%$TEXI2HTML_OPTS%g
3184s%@SET_MAKE@%$SET_MAKE%g
3185s%@SUBDIRS@%$SUBDIRS%g
3186s%@BUILD_SUBDIRS@%$BUILD_SUBDIRS%g
3187s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g
3188s%@subdirs@%$subdirs%g
3189
3190CEOF
3191EOF
3192
3193cat >> $CONFIG_STATUS <<\EOF
3194
3195# Split the substitutions into bite-sized pieces for seds with
3196# small command number limits, like on Digital OSF/1 and HP-UX.
3197ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3198ac_file=1 # Number of current file.
3199ac_beg=1 # First line for current file.
3200ac_end=$ac_max_sed_cmds # Line after last line for current file.
3201ac_more_lines=:
3202ac_sed_cmds=""
3203while $ac_more_lines; do
3204  if test $ac_beg -gt 1; then
3205    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3206  else
3207    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3208  fi
3209  if test ! -s conftest.s$ac_file; then
3210    ac_more_lines=false
3211    rm -f conftest.s$ac_file
3212  else
3213    if test -z "$ac_sed_cmds"; then
3214      ac_sed_cmds="sed -f conftest.s$ac_file"
3215    else
3216      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3217    fi
3218    ac_file=`expr $ac_file + 1`
3219    ac_beg=$ac_end
3220    ac_end=`expr $ac_end + $ac_max_sed_cmds`
3221  fi
3222done
3223if test -z "$ac_sed_cmds"; then
3224  ac_sed_cmds=cat
3225fi
3226EOF
3227
3228cat >> $CONFIG_STATUS <<EOF
3229
3230CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"}
3231EOF
3232cat >> $CONFIG_STATUS <<\EOF
3233for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3234  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3235  case "$ac_file" in
3236  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3237       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3238  *) ac_file_in="${ac_file}.in" ;;
3239  esac
3240
3241  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3242
3243  # Remove last slash and all that follows it.  Not all systems have dirname.
3244  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3245  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3246    # The file is in a subdirectory.
3247    test ! -d "$ac_dir" && mkdir "$ac_dir"
3248    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3249    # A "../" for each directory in $ac_dir_suffix.
3250    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3251  else
3252    ac_dir_suffix= ac_dots=
3253  fi
3254
3255  case "$ac_given_srcdir" in
3256  .)  srcdir=.
3257      if test -z "$ac_dots"; then top_srcdir=.
3258      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3259  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3260  *) # Relative path.
3261    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3262    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3263  esac
3264
3265  case "$ac_given_INSTALL" in
3266  [/$]*) INSTALL="$ac_given_INSTALL" ;;
3267  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3268  esac
3269
3270  echo creating "$ac_file"
3271  rm -f "$ac_file"
3272  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3273  case "$ac_file" in
3274  *Makefile*) ac_comsub="1i\\
3275# $configure_input" ;;
3276  *) ac_comsub= ;;
3277  esac
3278
3279  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3280  sed -e "$ac_comsub
3281s%@configure_input@%$configure_input%g
3282s%@srcdir@%$srcdir%g
3283s%@top_srcdir@%$top_srcdir%g
3284s%@INSTALL@%$INSTALL%g
3285" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3286fi; done
3287rm -f conftest.s*
3288
3289EOF
3290cat >> $CONFIG_STATUS <<EOF
3291
3292EOF
3293cat >> $CONFIG_STATUS <<\EOF
3294
3295exit 0
3296EOF
3297chmod +x $CONFIG_STATUS
3298rm -fr confdefs* $ac_clean_files
3299test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3300
3301if test "$no_recursion" != yes; then
3302
3303  # Remove --cache-file and --srcdir arguments so they do not pile up.
3304  ac_sub_configure_args=
3305  ac_prev=
3306  for ac_arg in $ac_configure_args; do
3307    if test -n "$ac_prev"; then
3308      ac_prev=
3309      continue
3310    fi
3311    case "$ac_arg" in
3312    -cache-file | --cache-file | --cache-fil | --cache-fi \
3313    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3314      ac_prev=cache_file ;;
3315    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3316    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3317      ;;
3318    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3319      ac_prev=srcdir ;;
3320    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3321      ;;
3322    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3323    esac
3324  done
3325
3326  for ac_config_dir in $CONFIG_SUBDIRS; do
3327
3328    # Do not complain, so a configure script can configure whichever
3329    # parts of a large source tree are present.
3330    if test ! -d $srcdir/$ac_config_dir; then
3331      continue
3332    fi
3333
3334    echo configuring in $ac_config_dir
3335
3336    case "$srcdir" in
3337    .) ;;
3338    *)
3339      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3340      else
3341        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3342      fi
3343      ;;
3344    esac
3345
3346    ac_popdir=`pwd`
3347    cd $ac_config_dir
3348
3349      # A "../" for each directory in /$ac_config_dir.
3350      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3351
3352    case "$srcdir" in
3353    .) # No --srcdir option.  We are building in place.
3354      ac_sub_srcdir=$srcdir ;;
3355    /*) # Absolute path.
3356      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3357    *) # Relative path.
3358      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3359    esac
3360
3361    # Check for guested configure; otherwise get Cygnus style configure.
3362    if test -f $ac_sub_srcdir/configure; then
3363      ac_sub_configure=$ac_sub_srcdir/configure
3364    elif test -f $ac_sub_srcdir/configure.in; then
3365      ac_sub_configure=$ac_configure
3366    else
3367      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3368      ac_sub_configure=
3369    fi
3370
3371    # The recursion is here.
3372    if test -n "$ac_sub_configure"; then
3373
3374      # Make the cache file name correct relative to the subdirectory.
3375      case "$cache_file" in
3376      /*) ac_sub_cache_file=$cache_file ;;
3377      *) # Relative path.
3378        ac_sub_cache_file="$ac_dots$cache_file" ;;
3379      esac
3380  case "$ac_given_INSTALL" in
3381        [/$]*) INSTALL="$ac_given_INSTALL" ;;
3382        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3383        esac
3384
3385      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3386      # The eval makes quoting arguments work.
3387      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3388      then :
3389      else
3390        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3391      fi
3392    fi
3393
3394    cd $ac_popdir
3395  done
3396fi
3397
Note: See TracBrowser for help on using the repository browser.