source: git/configure @ 9177e3

spielwiese
Last change on this file since 9177e3 was 9177e3, checked in by Hans Schönemann <hannes@…>, 19 years ago
*hannes: Mariano changes (tag:MP), --prefix etc. git-svn-id: file:///usr/local/Singular/svn/trunk@8415 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 99.9 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
2164DOC2TEX_EXAMPLE_EXCLUSIONS=""
2165
2166
2167# Check whether --with-tmpdir or --without-tmpdir was given.
2168if test "${with_tmpdir+set}" = set; then
2169  withval="$with_tmpdir"
2170  :
2171fi
2172
2173# Check whether --enable-smallgmp or --disable-smallgmp was given.
2174if test "${enable_smallgmp+set}" = set; then
2175  enableval="$enable_smallgmp"
2176  :
2177fi
2178
2179# Check whether --enable-omalloc or --disable-omalloc was given.
2180if test "${enable_omalloc+set}" = set; then
2181  enableval="$enable_omalloc"
2182  :
2183fi
2184
2185# Check whether --enable-gmp or --disable-gmp was given.
2186if test "${enable_gmp+set}" = set; then
2187  enableval="$enable_gmp"
2188  :
2189fi
2190
2191# Check whether --enable-MP or --disable-MP was given.
2192if test "${enable_MP+set}" = set; then
2193  enableval="$enable_MP"
2194  :
2195fi
2196
2197# Check whether --enable-factory or --disable-factory was given.
2198if test "${enable_factory+set}" = set; then
2199  enableval="$enable_factory"
2200  :
2201fi
2202
2203# Check whether --enable-libfac or --disable-libfac was given.
2204if test "${enable_libfac+set}" = set; then
2205  enableval="$enable_libfac"
2206  :
2207fi
2208
2209# Check whether --enable-sgroup or --disable-sgroup was given.
2210if test "${enable_sgroup+set}" = set; then
2211  enableval="$enable_sgroup"
2212  :
2213fi
2214
2215# Check whether --enable-Singular or --disable-Singular was given.
2216if test "${enable_Singular+set}" = set; then
2217  enableval="$enable_Singular"
2218  :
2219fi
2220
2221# Check whether --enable-IntegerProgramming or --disable-IntegerProgramming was given.
2222if test "${enable_IntegerProgramming+set}" = set; then
2223  enableval="$enable_IntegerProgramming"
2224  :
2225fi
2226
2227# Check whether --enable-Plural or --disable-Plural was given.
2228if test "${enable_Plural+set}" = set; then
2229  enableval="$enable_Plural"
2230  :
2231fi
2232
2233# Check whether --enable-Texinfo or --disable-Texinfo was given.
2234if test "${enable_Texinfo+set}" = set; then
2235  enableval="$enable_Texinfo"
2236  :
2237fi
2238
2239# Check whether --enable-Texi2html or --disable-Texi2html was given.
2240if test "${enable_Texi2html+set}" = set; then
2241  enableval="$enable_Texi2html"
2242  :
2243fi
2244
2245# Check whether --enable-doc or --disable-doc was given.
2246if test "${enable_doc+set}" = set; then
2247  enableval="$enable_doc"
2248  :
2249fi
2250
2251# Check whether --enable-emacs or --disable-emacs was given.
2252if test "${enable_emacs+set}" = set; then
2253  enableval="$enable_emacs"
2254  :
2255fi
2256
2257# Check whether --with-MP or --without-MP was given.
2258if test "${with_MP+set}" = set; then
2259  withval="$with_MP"
2260  :
2261fi
2262
2263# Check whether --with-factory or --without-factory was given.
2264if test "${with_factory+set}" = set; then
2265  withval="$with_factory"
2266  :
2267fi
2268
2269# Check whether --with-libfac or --without-libfac was given.
2270if test "${with_libfac+set}" = set; then
2271  withval="$with_libfac"
2272  :
2273fi
2274
2275# Check whether --with-gmp or --without-gmp was given.
2276if test "${with_gmp+set}" = set; then
2277  withval="$with_gmp"
2278  :
2279fi
2280
2281
2282echo $ac_n "checking which tmp dir to use""... $ac_c" 1>&6
2283echo "configure:2284: checking which tmp dir to use" >&5
2284if test "${with_tmpdir+set}" = set && test -d ${with_tmpdir}; then
2285  if (echo "${with_tmpdir}" | egrep "\." >/dev/null 2>&1)
2286  then
2287    TMP_DIR="${pwd}/tmp"
2288  else
2289    TMP_DIR=${with_tmpdir}
2290  fi
2291else
2292  TMP_DIR="${pwd}/tmp"
2293fi
2294echo "$ac_t""$TMP_DIR" 1>&6
2295
2296
2297echo $ac_n "checking whether to configure and build omalloc""... $ac_c" 1>&6
2298echo "configure:2299: checking whether to configure and build omalloc" >&5
2299if test "${enable_omalloc+set}" != set; then
2300   if test "$ac_cv_omalloc_ok" = yes; then
2301     enable_omalloc=no
2302   fi
2303   enable_omalloc_not_set=yes
2304fi
2305if test "$enable_omalloc" = no; then
2306  if test "$ac_cv_omalloc_ok" != yes; then
2307    { echo "configure: error: can not build without omalloc" 1>&2; exit 1; }
2308  fi
2309  echo "$ac_t""no" 1>&6
2310else
2311  if test -d omalloc; then
2312    echo "$ac_t""yes" 1>&6
2313    if test "$enable_omalloc_not_set" = yes; then
2314      ac_configure_args="$ac_configure_args --enable-omalloc --with-external-config_h='$pwd/Singular/omSingularConfig.h' --with-track-custom"
2315    fi
2316    CONFIG_SUBDIRS="$CONFIG_SUBDIRS omalloc"
2317    if test "${with_malloc+set}" != set; then
2318case "$ac_cv_singuname" in
2319# under windows, it is best to use the provided malloc
2320        ix86-Win*)
2321        with_malloc=system
2322        ac_configure_args="$ac_configure_args --with-malloc=system"
2323        ;;
2324        PowerMacintosh-darwin*)
2325        with_malloc=system
2326        ac_configure_args="$ac_configure_args --with-malloc=system"
2327        ;;
2328esac
2329fi
2330  else
2331    { echo "configure: error: need omalloc subdir" 1>&2; exit 1; }
2332  fi
2333fi
2334
2335echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6
2336echo "configure:2337: checking whether to configure and build gmp lib" >&5
2337if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
2338  if test "$ac_gmp_ok" != yes && test -d gmp; then
2339    echo "$ac_t""yes" 1>&6
2340    enable_gmp=yes
2341    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
2342    ac_configure_args="$ac_configure_args --enable-gmp"
2343    enable_gmp=yes
2344#    This we used to need for our patched version of gmp 2.x
2345#    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
2346  else
2347    echo "$ac_t""no" 1>&6
2348    enable_gmp=no
2349  fi
2350elif test "$enable_gmp" = yes; then
2351  if test ! -d gmp; then
2352    echo "$ac_t""no" 1>&6
2353    { echo "configure: error: Can not find gmp subdir" 1>&2; exit 1; }
2354  else
2355    echo "$ac_t""yes" 1>&6
2356    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
2357#    This we used to need for our patched version of gmp 2.x
2358#    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
2359  fi
2360else
2361  echo "$ac_t""no" 1>&6
2362fi
2363
2364if test "$enable_gmp" = yes; then
2365# for gmp-3.0 to work for all ix86 processors, set generic target
2366if test "$target" = NONE; then
2367case "$ac_cv_singuname" in
2368        ix86*)
2369        gmp_target=`./config.guess | sed 's/^\w*-/i386-/'`
2370        ac_configure_args="$ac_configure_args --target=$gmp_target"
2371        ;;
2372esac
2373fi
2374# furthermore, disable building of dynamic libraries, for we want to
2375# link against the static ones
2376if test "$enable_shared" != no; then
2377  ac_configure_args="$ac_configure_args --disable-shared"
2378fi
2379fi
2380
2381echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6
2382echo "configure:2383: checking whether to configure and build smallgmp lib" >&5
2383if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
2384  if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
2385     test "$enable_gmp" != yes && test -d smallgmp; then
2386    echo "$ac_t""yes" 1>&6
2387    enable_smallgmp=yes
2388    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
2389    ac_configure_args="$ac_configure_args --enable-smallgmp --enable-gmp"
2390    enable_gmp=yes
2391  else
2392    echo "$ac_t""no" 1>&6
2393    enable_smallgmp=no
2394  fi
2395elif test "$enable_smallgmp" = yes; then
2396  if test ! -d smallgmp; then
2397    echo "$ac_t""no" 1>&6
2398    { echo "configure: error: Can not find smallgmp subdir" 1>&2; exit 1; }
2399  else
2400    echo "$ac_t""yes" 1>&6
2401    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
2402    if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
2403      ac_configure_args="$ac_configure_args --enable-gmp"
2404      enable_gmp=yes
2405    fi
2406  fi
2407else
2408  echo "$ac_t""${enable_smallgmp}" 1>&6
2409fi
2410
2411# Check whether we have at least one of smallgmp or gmp
2412if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
2413   test "$enable_smallgmp" != yes && test "$enable_gmp" != yes; then
2414  { echo "configure: error: can neither find nor built gmp or smallgmp" 1>&2; exit 1; }
2415fi
2416
2417# Check whether we need to cheat subsequent configures with --enable-gmp
2418if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
2419  ac_configure_args="$ac_configure_args --enable-gmp"
2420fi
2421
2422echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6
2423echo "configure:2424: checking whether to configure and build MP lib" >&5
2424if test "$enable_MP" != yes && test "$enable_MP" != no; then
2425  if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
2426     (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then
2427    echo "$ac_t""yes" 1>&6
2428    enable_MP=yes
2429    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
2430    ac_configure_args="$ac_configure_args --enable-MP"
2431  else
2432    echo "$ac_t""no" 1>&6
2433    enable_MP=no
2434  fi
2435elif test "$enable_MP" = yes; then
2436  if test ! -d MP; then
2437    echo "$ac_t""no" 1>&6
2438    { echo "configure: error: can not build MP without MP directory" 1>&2; exit 1; }
2439  fi
2440  if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then
2441    echo "$ac_t""yes" 1>&6
2442    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
2443  else
2444    echo "$ac_t""no" 1>&6
2445    { echo "configure: error: can not build MP without gmp" 1>&2; exit 1; }
2446  fi
2447else
2448  echo "$ac_t""no" 1>&6
2449fi
2450
2451# need MP code to be compiled with -fPIC, should not hurt anybody else
2452if test "$enable_MP" = yes && test "${with_extra_cflags+set}" != set; then
2453ac_configure_args="$ac_configure_args --with-extra_cflags=-fPIC"
2454fi
2455
2456echo $ac_n "checking whether to configure and build NTL lib""... $ac_c" 1>&6
2457echo "configure:2458: checking whether to configure and build NTL lib" >&5
2458if test "$enable_NTL" != yes && test "$enable_NTL" != no; then
2459  if test "$with_NTL" != no && test "$ac_NTL_ok" != yes && \
2460     test -d ntl; then
2461    enable_NTL=yes
2462    echo "$ac_t""yes" 1>&6
2463    CONFIG_SUBDIRS="$CONFIG_SUBDIRS ntl"
2464    ac_configure_args="$ac_configure_args --enable-NTL"
2465  else
2466    enable_NTL=no
2467    echo "$ac_t""no" 1>&6
2468  fi
2469elif test "$enable_NTL" = yes; then
2470  if test -d ntl; then
2471    echo "$ac_t""yes" 1>&6
2472    CONFIG_SUBDIRS="$CONFIG_SUBDIRS ntl"
2473  else
2474    echo "$ac_t""no" 1>&6
2475    { echo "configure: error: can not build NTL without ntl directory" 1>&2; exit 1; }
2476  fi
2477else
2478  echo "$ac_t""no" 1>&6
2479fi
2480
2481echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
2482echo "configure:2483: checking whether to configure and build factory lib" >&5
2483if test "$enable_factory" != yes && test "$enable_factory" != no; then
2484  if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
2485     test -d factory; then
2486    enable_factory=yes
2487    echo "$ac_t""yes" 1>&6
2488    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
2489    ac_configure_args="$ac_configure_args --enable-factory"
2490  else
2491    enable_factory=no
2492    echo "$ac_t""no" 1>&6
2493  fi
2494elif test "$enable_factory" = yes; then
2495  if test -d factory; then
2496    echo "$ac_t""yes" 1>&6
2497    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
2498  else
2499    echo "$ac_t""no" 1>&6
2500    { echo "configure: error: can not build factory without factory directory" 1>&2; exit 1; }
2501  fi
2502else
2503  echo "$ac_t""no" 1>&6
2504fi
2505
2506echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
2507echo "configure:2508: checking whether to configure and build libfac lib" >&5
2508if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
2509  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
2510     test -d libfac && \
2511     (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then
2512    enable_libfac=yes
2513    echo "$ac_t""yes" 1>&6
2514    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
2515    ac_configure_args="$ac_configure_args --enable-libfac"
2516  else
2517    enable_libfac=no
2518    echo "$ac_t""no" 1>&6
2519  fi
2520elif  test "$enable_libfac" = yes; then
2521  if test ! -d libfac; then
2522    echo "$ac_t""no" 1>&6
2523    { echo "configure: error: can not build libfac without libfac directory" 1>&2; exit 1; }
2524  fi
2525  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2526    echo "$ac_t""yes" 1>&6
2527    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
2528  else
2529    echo "$ac_t""no" 1>&6
2530    { echo "configure: error: Can not build libfac without factory" 1>&2; exit 1; }
2531  fi
2532else
2533  echo "$ac_t""no" 1>&6
2534fi
2535
2536echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6
2537echo "configure:2538: checking whether to configure and build sgroup lib" >&5
2538if test "$enable_sgroup" = yes; then
2539  if test ! -d sgroup; then
2540    echo "$ac_t""no" 1>&6
2541    { echo "configure: error: can not build sgroup without sgroup directory" 1>&2; exit 1; }
2542  fi
2543  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2544    echo "$ac_t""yes" 1>&6
2545    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
2546  else
2547    echo "$ac_t""no" 1>&6
2548    { echo "configure: error: Can not build sgroup without MP" 1>&2; exit 1; }
2549  fi
2550else
2551  echo "$ac_t""no" 1>&6
2552fi
2553
2554BUILD_SUBDIRS="$CONFIG_SUBDIRS"
2555
2556echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
2557echo "configure:2558: checking whether to configure and build Singular" >&5
2558if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
2559  if test "$with_Singular" != no && test -d Singular; then
2560    enable_Singular=yes
2561    echo "$ac_t""yes" 1>&6
2562    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
2563    BUILD_SUBDIRS="$BUILD_SUBDIRS kernel Singular"     
2564    ac_configure_args="$ac_configure_args --enable-Singular"
2565  else
2566    enable_Singular=no
2567    echo "$ac_t""no" 1>&6
2568  fi
2569elif test "$enable_Singular" = yes; then
2570  if test -d Singular; then
2571    echo "$ac_t""yes" 1>&6
2572    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
2573    BUILD_SUBDIRS="$BUILD_SUBDIRS kernel Singular"     
2574  else
2575    echo "$ac_t""no" 1>&6
2576    { echo "configure: error: can not build Singular without Singular directory" 1>&2; exit 1; }
2577  fi
2578else
2579  echo "$ac_t""no" 1>&6
2580fi
2581
2582
2583# test if IntegerProgramming should be built:
2584
2585echo $ac_n "checking whether to build IntegerProgramming""... $ac_c" 1>&6
2586echo "configure:2587: checking whether to build IntegerProgramming" >&5
2587if test "$enable_IntegerProgramming" != no && test -d "IntegerProgramming"; then
2588   BUILD_SUBDIRS="$BUILD_SUBDIRS IntegerProgramming"
2589   echo "$ac_t""yes" 1>&6
2590   if test "$enable_IntegerProgramming" != yes; then
2591     ac_configure_args="$ac_configure_args --enable-IntegerProgramming"
2592   fi
2593else
2594   echo "$ac_t""no" 1>&6
2595fi
2596
2597echo $ac_n "checking whether to build Plural""... $ac_c" 1>&6
2598echo "configure:2599: checking whether to build Plural" >&5
2599if test "$enable_Plural" != no || test "$with_Plural" != no; then
2600   echo "$ac_t""yes" 1>&6
2601   if test "$enable_Plural" != yes; then
2602     ac_configure_args="$ac_configure_args --enable-Plural"
2603   fi
2604else
2605   echo "$ac_t""no" 1>&6
2606fi
2607
2608
2609echo $ac_n "checking whether to configure and build Texinfo""... $ac_c" 1>&6
2610echo "configure:2611: checking whether to configure and build Texinfo" >&5
2611if test "$enable_Texinfo" != no && test -d Texinfo; then
2612  echo "$ac_t""yes" 1>&6
2613  enable_texinfo=yes
2614  CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texinfo"
2615  BUILD_SUBDIRS="$BUILD_SUBDIRS Texinfo"       
2616  TEXI2DVI=${bindir}/texi2dvi
2617  TEXI2PDF=${bindir}/texi2pdf
2618  MAKEINFO="${bindir}/makeinfo"
2619  TEXINDEX=${bindir}/texindex
2620 
2621 
2622 
2623 
2624  if test "$enable_Texinfo" != yes; then
2625    ac_configure_args="$ac_configure_args --enable-Texinfo"
2626  fi
2627else
2628  echo "$ac_t""no" 1>&6
2629  echo "configure: warning: Building of doc might fail. Need Texinfo" 1>&2
2630  enable_texinfo=no
2631  # Extract the first word of "makeinfo", so it can be a program name with args.
2632set dummy makeinfo; ac_word=$2
2633echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2634echo "configure:2635: checking for $ac_word" >&5
2635if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2636  echo $ac_n "(cached) $ac_c" 1>&6
2637else
2638  if test -n "$MAKEINFO"; then
2639  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2640else
2641  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2642  ac_dummy="$PATH"
2643  for ac_dir in $ac_dummy; do
2644    test -z "$ac_dir" && ac_dir=.
2645    if test -f $ac_dir/$ac_word; then
2646      ac_cv_prog_MAKEINFO="makeinfo"
2647      break
2648    fi
2649  done
2650  IFS="$ac_save_ifs"
2651  test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="${pwd}/warn_not_found.sh makeinfo"
2652fi
2653fi
2654MAKEINFO="$ac_cv_prog_MAKEINFO"
2655if test -n "$MAKEINFO"; then
2656  echo "$ac_t""$MAKEINFO" 1>&6
2657else
2658  echo "$ac_t""no" 1>&6
2659fi
2660
2661  # Extract the first word of "texi2dvi", so it can be a program name with args.
2662set dummy texi2dvi; ac_word=$2
2663echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2664echo "configure:2665: checking for $ac_word" >&5
2665if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then
2666  echo $ac_n "(cached) $ac_c" 1>&6
2667else
2668  if test -n "$TEXI2DVI"; then
2669  ac_cv_prog_TEXI2DVI="$TEXI2DVI" # Let the user override the test.
2670else
2671  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2672  ac_dummy="$PATH"
2673  for ac_dir in $ac_dummy; do
2674    test -z "$ac_dir" && ac_dir=.
2675    if test -f $ac_dir/$ac_word; then
2676      ac_cv_prog_TEXI2DVI="texi2dvi"
2677      break
2678    fi
2679  done
2680  IFS="$ac_save_ifs"
2681  test -z "$ac_cv_prog_TEXI2DVI" && ac_cv_prog_TEXI2DVI="${pwd}/warn_not_found.sh texi2dvi"
2682fi
2683fi
2684TEXI2DVI="$ac_cv_prog_TEXI2DVI"
2685if test -n "$TEXI2DVI"; then
2686  echo "$ac_t""$TEXI2DVI" 1>&6
2687else
2688  echo "$ac_t""no" 1>&6
2689fi
2690
2691  # Extract the first word of "texindex", so it can be a program name with args.
2692set dummy texindex; ac_word=$2
2693echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2694echo "configure:2695: checking for $ac_word" >&5
2695if eval "test \"`echo '$''{'ac_cv_prog_TEXINDEX'+set}'`\" = set"; then
2696  echo $ac_n "(cached) $ac_c" 1>&6
2697else
2698  if test -n "$TEXINDEX"; then
2699  ac_cv_prog_TEXINDEX="$TEXINDEX" # Let the user override the test.
2700else
2701  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2702  ac_dummy="$PATH"
2703  for ac_dir in $ac_dummy; do
2704    test -z "$ac_dir" && ac_dir=.
2705    if test -f $ac_dir/$ac_word; then
2706      ac_cv_prog_TEXINDEX="texindex"
2707      break
2708    fi
2709  done
2710  IFS="$ac_save_ifs"
2711  test -z "$ac_cv_prog_TEXINDEX" && ac_cv_prog_TEXINDEX="${pwd}/warn_not_found.sh texindex"
2712fi
2713fi
2714TEXINDEX="$ac_cv_prog_TEXINDEX"
2715if test -n "$TEXINDEX"; then
2716  echo "$ac_t""$TEXINDEX" 1>&6
2717else
2718  echo "$ac_t""no" 1>&6
2719fi
2720
2721  # Extract the first word of "texi2pdf", so it can be a program name with args.
2722set dummy texi2pdf; ac_word=$2
2723echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2724echo "configure:2725: checking for $ac_word" >&5
2725if eval "test \"`echo '$''{'ac_cv_prog_TEXI2PDF'+set}'`\" = set"; then
2726  echo $ac_n "(cached) $ac_c" 1>&6
2727else
2728  if test -n "$TEXI2PDF"; then
2729  ac_cv_prog_TEXI2PDF="$TEXI2PDF" # Let the user override the test.
2730else
2731  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2732  ac_dummy="$PATH"
2733  for ac_dir in $ac_dummy; do
2734    test -z "$ac_dir" && ac_dir=.
2735    if test -f $ac_dir/$ac_word; then
2736      ac_cv_prog_TEXI2PDF="texi2pdf"
2737      break
2738    fi
2739  done
2740  IFS="$ac_save_ifs"
2741  test -z "$ac_cv_prog_TEXI2PDF" && ac_cv_prog_TEXI2PDF="${pwd}/warn_not_found.sh texi2pdf"
2742fi
2743fi
2744TEXI2PDF="$ac_cv_prog_TEXI2PDF"
2745if test -n "$TEXI2PDF"; then
2746  echo "$ac_t""$TEXI2PDF" 1>&6
2747else
2748  echo "$ac_t""no" 1>&6
2749fi
2750
2751fi 
2752
2753echo $ac_n "checking whether to configure and build Texi2html""... $ac_c" 1>&6
2754echo "configure:2755: checking whether to configure and build Texi2html" >&5
2755if test "$enable_Texi2html" != no && test -d Texi2html; then
2756 echo "$ac_t""yes" 1>&6
2757 CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texi2html"
2758 BUILD_SUBDIRS="$BUILD_SUBDIRS Texi2html"
2759 if test "$enable_Texi2html" != yes; then
2760   ac_configure_args="$ac_configure_args --enable-Texi2html"
2761 fi
2762 TEXI2HTML=${bindir}/texi2html
2763 
2764else
2765 echo "$ac_t""no" 1>&6
2766 # Extract the first word of "texi2html", so it can be a program name with args.
2767set dummy texi2html; ac_word=$2
2768echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2769echo "configure:2770: checking for $ac_word" >&5
2770if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then
2771  echo $ac_n "(cached) $ac_c" 1>&6
2772else
2773  if test -n "$TEXI2HTML"; then
2774  ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
2775else
2776  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2777  ac_dummy="$PATH"
2778  for ac_dir in $ac_dummy; do
2779    test -z "$ac_dir" && ac_dir=.
2780    if test -f $ac_dir/$ac_word; then
2781      ac_cv_prog_TEXI2HTML="texi2html"
2782      break
2783    fi
2784  done
2785  IFS="$ac_save_ifs"
2786fi
2787fi
2788TEXI2HTML="$ac_cv_prog_TEXI2HTML"
2789if test -n "$TEXI2HTML"; then
2790  echo "$ac_t""$TEXI2HTML" 1>&6
2791else
2792  echo "$ac_t""no" 1>&6
2793fi
2794
2795fi
2796
2797if test "${TEXI2HTML+set}" != set; then
2798echo "configure: warning: texi2html not found. HTML doc generation will fail" 1>&2
2799fi
2800if test "$ac_cv_prog_LATEX2HTML" = latex2html; then
2801  TEXI2HTML_OPTS="-l2h"
2802fi
2803
2804
2805
2806echo $ac_n "checking whether to build doc""... $ac_c" 1>&6
2807echo "configure:2808: checking whether to build doc" >&5
2808if test "$enable_doc" != no && test -d doc; then
2809 echo "$ac_t""yes" 1>&6
2810 BUILD_SUBDIRS="$BUILD_SUBDIRS doc"
2811 if test "$enable_doc" != yes; then
2812   enable_doc=yes
2813   ac_configure_args="$ac_configure_args --enable-doc"
2814 fi
2815else
2816 enable_doc=no
2817 echo "$ac_t""no" 1>&6
2818fi
2819
2820echo $ac_n "checking whether to build emacs""... $ac_c" 1>&6
2821echo "configure:2822: checking whether to build emacs" >&5
2822if test "$enable_doc" = yes && test "$enable_emacs" != no && test -d emacs; then
2823 echo "$ac_t""yes" 1>&6
2824 BUILD_SUBDIRS="$BUILD_SUBDIRS emacs"
2825 if test "$enable_emacs" != yes; then
2826   ac_configure_args="$ac_configure_args --enable-emacs"
2827 fi
2828else
2829 echo "$ac_t""no" 1>&6
2830fi
2831
2832echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
2833echo "configure:2834: checking which apint package to use" >&5
2834if test "$with_apint" = gmp; then
2835  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
2836    echo "$ac_t""gmp" 1>&6
2837  else
2838    echo "$ac_t""none" 1>&6
2839    { echo "configure: error: can not use with gmp without finding or building it" 1>&2; exit 1; }
2840  fi
2841elif test "$with_apint" = smallgmp; then
2842  if test "$ac_smallgmp_ok" = yes || test "$enable_smallgmp" = yes; then
2843    echo "$ac_t""smallgmp" 1>&6
2844  else
2845    echo "$ac_t""none" 1>&6
2846    { echo "configure: error: can not use with smallgmp without finding or building it" 1>&2; exit 1; }
2847  fi
2848elif test "$ac_gmp_ok" = yes || test "$enable_gmp"; then
2849    echo "$ac_t""gmp" 1>&6
2850    ac_configure_args="$ac_configure_args --with-apint=gmp"
2851else
2852   echo "$ac_t""smallgmp" 1>&6
2853   ac_configure_args="$ac_configure_args --with-apint=smallgmp"
2854fi
2855
2856echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
2857echo "configure:2858: checking whether to use with MP" >&5
2858if test "$with_MP" = yes; then
2859  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2860    echo "$ac_t""yes" 1>&6
2861  else
2862    echo "$ac_t""none" 1>&6
2863    { echo "configure: error: can not use with MP without finding or building it" 1>&2; exit 1; }
2864  fi
2865elif test "$with_MP" = no; then
2866  echo "$ac_t""no" 1>&6
2867elif test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2868  echo "$ac_t""yes" 1>&6
2869  ac_configure_args="$ac_configure_args --with-MP"
2870else
2871  echo "$ac_t""no" 1>&6
2872  ac_configure_args="$ac_configure_args --without-MP"
2873  DOC2TEX_EXAMPLE_EXCLUSIONS="$DOC2TEX_EXAMPLE_EXCLUSIONS -exclude MP"
2874fi
2875
2876echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
2877echo "configure:2878: checking whether to use with factory" >&5
2878if test "$with_factory" = yes; then
2879  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2880    echo "$ac_t""yes" 1>&6
2881  else
2882    echo "$ac_t""none" 1>&6
2883    { echo "configure: error: can not use with factory without finding or building it" 1>&2; exit 1; }
2884  fi
2885elif test "$with_factory" = no; then
2886  echo "$ac_t""no" 1>&6
2887elif test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2888  echo "$ac_t""yes" 1>&6
2889  ac_configure_args="$ac_configure_args --with-factory"
2890else
2891  echo "$ac_t""no" 1>&6
2892  ac_configure_args="$ac_configure_args --without-factory"
2893fi
2894 
2895echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
2896echo "configure:2897: checking whether to use with libfac" >&5
2897if test "$with_libfac" = yes; then
2898  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
2899    echo "$ac_t""yes" 1>&6
2900  else
2901    echo "$ac_t""none" 1>&6
2902    { echo "configure: error: can not use with libfac without finding or building it" 1>&2; exit 1; }
2903  fi
2904elif test "$with_libfac" = no; then
2905  echo "$ac_t""no" 1>&6
2906elif test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
2907  echo "$ac_t""yes" 1>&6
2908  ac_configure_args="$ac_configure_args --with-libfac"
2909else
2910  echo "$ac_t""no" 1>&6
2911  ac_configure_args="$ac_configure_args --without-libfac"
2912fi
2913
2914
2915
2916echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
2917echo "configure:2918: checking whether to use with Singular" >&5
2918if test "$with_Singular" != no && test "$with_Singular" != yes; then
2919  if test "$enable_Singular" = yes; then
2920    with_Singular=yes
2921  else
2922    with_Singular=no
2923  fi
2924  ac_configure_args="$ac_configure_args --with-Singular=$with_Singular"
2925fi
2926
2927if test "$with_Singular" != no; then
2928  echo "$ac_t""yes" 1>&6
2929else
2930  echo "$ac_t""no" 1>&6
2931fi
2932
2933
2934SUBDIRS=""
2935if test -d omalloc; then
2936  SUBDIRS="$SUBDIRS omalloc"
2937fi
2938if test -d smallgmp; then
2939  SUBDIRS="$SUBDIRS smallgmp"
2940fi
2941if test -d gmp; then
2942  SUBDIRS="$SUBDIRS gmp"
2943fi
2944if test -d MP; then
2945  SUBDIRS="$SUBDIRS MP"
2946fi
2947if test -d ntl; then
2948  SUBDIRS="$SUBDIRS ntl"
2949fi
2950if test -d factory; then
2951  SUBDIRS="$SUBDIRS factory"
2952fi
2953if test -d libfac; then
2954  SUBDIRS="$SUBDIRS libfac"
2955fi
2956if test -d sgroup; then
2957  SUBDIRS="$SUBDIRS sgroup"
2958fi
2959if test -d Singular; then
2960  SUBDIRS="$SUBDIRS Singular"
2961fi
2962if test -d Texinfo; then
2963  SUBDIRS="$SUBDIRS Texinfo"
2964fi
2965if test -d Texi2html; then
2966  SUBDIRS="$SUBDIRS Texi2html"
2967fi
2968if test -d doc; then
2969  SUBDIRS="$SUBDIRS doc"
2970fi
2971if test -d emacs; then
2972  SUBDIRS="$SUBDIRS emacs"
2973fi
2974if test -d modules; then
2975  SUBDIRS="$SUBDIRS modules"
2976fi
2977if test -d "modules"; then
2978   CONFIG_SUBDIRS=$CONFIG_SUBDIRS" modules"
2979   BUILD_SUBDIRS=$BUILD_SUBDIRS" modules"
2980fi
2981 
2982echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2983echo "configure:2984: checking whether ${MAKE-make} sets \${MAKE}" >&5
2984set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2985if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2986  echo $ac_n "(cached) $ac_c" 1>&6
2987else
2988  cat > conftestmake <<\EOF
2989all:
2990        @echo 'ac_maketemp="${MAKE}"'
2991EOF
2992# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2993eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2994if test -n "$ac_maketemp"; then
2995  eval ac_cv_prog_make_${ac_make}_set=yes
2996else
2997  eval ac_cv_prog_make_${ac_make}_set=no
2998fi
2999rm -f conftestmake
3000fi
3001if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3002  echo "$ac_t""yes" 1>&6
3003  SET_MAKE=
3004else
3005  echo "$ac_t""no" 1>&6
3006  SET_MAKE="MAKE=${MAKE-make}"
3007fi
3008
3009
3010
3011
3012subdirs="$CONFIG_SUBDIRS"
3013 
3014
3015trap '' 1 2 15
3016cat > confcache <<\EOF
3017# This file is a shell script that caches the results of configure
3018# tests run on this system so they can be shared between configure
3019# scripts and configure runs.  It is not useful on other systems.
3020# If it contains results you don't want to keep, you may remove or edit it.
3021#
3022# By default, configure uses ./config.cache as the cache file,
3023# creating it if it does not exist already.  You can give configure
3024# the --cache-file=FILE option to use a different cache file; that is
3025# what configure does when it calls configure scripts in
3026# subdirectories, so they share the cache.
3027# Giving --cache-file=/dev/null disables caching, for debugging configure.
3028# config.status only pays attention to the cache file if you give it the
3029# --recheck option to rerun configure.
3030#
3031EOF
3032# The following way of writing the cache mishandles newlines in values,
3033# but we know of no workaround that is simple, portable, and efficient.
3034# So, don't put newlines in cache variables' values.
3035# Ultrix sh set writes to stderr and can't be redirected directly,
3036# and sets the high bit in the cache file unless we assign to the vars.
3037(set) 2>&1 |
3038  case `(ac_space=' '; set | grep ac_space) 2>&1` in
3039  *ac_space=\ *)
3040    # `set' does not quote correctly, so add quotes (double-quote substitution
3041    # turns \\\\ into \\, and sed turns \\ into \).
3042    sed -n \
3043      -e "s/'/'\\\\''/g" \
3044      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3045    ;;
3046  *)
3047    # `set' quotes correctly as required by POSIX, so do not add quotes.
3048    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3049    ;;
3050  esac >> confcache
3051if cmp -s $cache_file confcache; then
3052  :
3053else
3054  if test -w $cache_file; then
3055    echo "updating cache $cache_file"
3056    cat confcache > $cache_file
3057  else
3058    echo "not updating unwritable cache $cache_file"
3059  fi
3060fi
3061rm -f confcache
3062
3063trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3064
3065test "x$prefix" = xNONE && prefix=$ac_default_prefix
3066# Let make expand exec_prefix.
3067test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3068
3069# Any assignment to VPATH causes Sun make to only execute
3070# the first set of double-colon rules, so remove it if not needed.
3071# If there is a colon in the path, we need to keep it.
3072if test "x$srcdir" = x.; then
3073  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3074fi
3075
3076trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3077
3078# Transform confdefs.h into DEFS.
3079# Protect against shell expansion while executing Makefile rules.
3080# Protect against Makefile macro expansion.
3081cat > conftest.defs <<\EOF
3082s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3083s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
3084s%\[%\\&%g
3085s%\]%\\&%g
3086s%\$%$$%g
3087EOF
3088DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3089rm -f conftest.defs
3090
3091
3092# Without the "./", some shells look in PATH for config.status.
3093: ${CONFIG_STATUS=./config.status}
3094
3095echo creating $CONFIG_STATUS
3096rm -f $CONFIG_STATUS
3097cat > $CONFIG_STATUS <<EOF
3098#! /bin/sh
3099# Generated automatically by configure.
3100# Run this file to recreate the current configuration.
3101# This directory was configured as follows,
3102# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3103#
3104# $0 $ac_configure_args
3105#
3106# Compiler output produced by configure, useful for debugging
3107# configure, is in ./config.log if it exists.
3108
3109ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3110for ac_option
3111do
3112  case "\$ac_option" in
3113  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3114    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3115    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3116  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3117    echo "$CONFIG_STATUS generated by autoconf version 2.13"
3118    exit 0 ;;
3119  -help | --help | --hel | --he | --h)
3120    echo "\$ac_cs_usage"; exit 0 ;;
3121  *) echo "\$ac_cs_usage"; exit 1 ;;
3122  esac
3123done
3124
3125ac_given_srcdir=$srcdir
3126ac_given_INSTALL="$INSTALL"
3127
3128trap 'rm -fr `echo "${OUTPUT_MAKEFILES}" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3129EOF
3130cat >> $CONFIG_STATUS <<EOF
3131
3132# Protect against being on the right side of a sed subst in config.status.
3133sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3134 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3135$ac_vpsub
3136$extrasub
3137s%@SHELL@%$SHELL%g
3138s%@CFLAGS@%$CFLAGS%g
3139s%@CPPFLAGS@%$CPPFLAGS%g
3140s%@CXXFLAGS@%$CXXFLAGS%g
3141s%@FFLAGS@%$FFLAGS%g
3142s%@DEFS@%$DEFS%g
3143s%@LDFLAGS@%$LDFLAGS%g
3144s%@LIBS@%$LIBS%g
3145s%@exec_prefix@%$exec_prefix%g
3146s%@prefix@%$prefix%g
3147s%@program_transform_name@%$program_transform_name%g
3148s%@bindir@%$bindir%g
3149s%@sbindir@%$sbindir%g
3150s%@libexecdir@%$libexecdir%g
3151s%@datadir@%$datadir%g
3152s%@sysconfdir@%$sysconfdir%g
3153s%@sharedstatedir@%$sharedstatedir%g
3154s%@localstatedir@%$localstatedir%g
3155s%@libdir@%$libdir%g
3156s%@includedir@%$includedir%g
3157s%@oldincludedir@%$oldincludedir%g
3158s%@infodir@%$infodir%g
3159s%@mandir@%$mandir%g
3160s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g
3161s%@VERSION_DATE@%$VERSION_DATE%g
3162s%@SINGULAR_SHORT_VERSION@%$SINGULAR_SHORT_VERSION%g
3163s%@SINGULAR_RPM_VERSION@%$SINGULAR_RPM_VERSION%g
3164s%@SINGULAR_ROOT_DIR@%$SINGULAR_ROOT_DIR%g
3165s%@SINGUNAME@%$SINGUNAME%g
3166s%@SING_UNAME@%$SING_UNAME%g
3167s%@CC@%$CC%g
3168s%@CPP@%$CPP%g
3169s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3170s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3171s%@INSTALL_DATA@%$INSTALL_DATA%g
3172s%@CXX@%$CXX%g
3173s%@PIPE@%$PIPE%g
3174s%@PERL@%$PERL%g
3175s%@UUDECODE@%$UUDECODE%g
3176s%@GUNZIP@%$GUNZIP%g
3177s%@MYGZIP@%$MYGZIP%g
3178s%@LATEX2HTML@%$LATEX2HTML%g
3179s%@LN_S@%$LN_S%g
3180s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3181s%@SINGULAR@%$SINGULAR%g
3182s%@DOC2TEX_EXAMPLE_EXCLUSIONS@%$DOC2TEX_EXAMPLE_EXCLUSIONS%g
3183s%@TMP_DIR@%$TMP_DIR%g
3184s%@TEXI2DVI@%$TEXI2DVI%g
3185s%@TEXI2PDF@%$TEXI2PDF%g
3186s%@MAKEINFO@%$MAKEINFO%g
3187s%@TEXINDEX@%$TEXINDEX%g
3188s%@TEXI2HTML@%$TEXI2HTML%g
3189s%@TEXI2HTML_OPTS@%$TEXI2HTML_OPTS%g
3190s%@SET_MAKE@%$SET_MAKE%g
3191s%@SUBDIRS@%$SUBDIRS%g
3192s%@BUILD_SUBDIRS@%$BUILD_SUBDIRS%g
3193s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g
3194s%@subdirs@%$subdirs%g
3195
3196CEOF
3197EOF
3198
3199cat >> $CONFIG_STATUS <<\EOF
3200
3201# Split the substitutions into bite-sized pieces for seds with
3202# small command number limits, like on Digital OSF/1 and HP-UX.
3203ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3204ac_file=1 # Number of current file.
3205ac_beg=1 # First line for current file.
3206ac_end=$ac_max_sed_cmds # Line after last line for current file.
3207ac_more_lines=:
3208ac_sed_cmds=""
3209while $ac_more_lines; do
3210  if test $ac_beg -gt 1; then
3211    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3212  else
3213    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3214  fi
3215  if test ! -s conftest.s$ac_file; then
3216    ac_more_lines=false
3217    rm -f conftest.s$ac_file
3218  else
3219    if test -z "$ac_sed_cmds"; then
3220      ac_sed_cmds="sed -f conftest.s$ac_file"
3221    else
3222      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3223    fi
3224    ac_file=`expr $ac_file + 1`
3225    ac_beg=$ac_end
3226    ac_end=`expr $ac_end + $ac_max_sed_cmds`
3227  fi
3228done
3229if test -z "$ac_sed_cmds"; then
3230  ac_sed_cmds=cat
3231fi
3232EOF
3233
3234cat >> $CONFIG_STATUS <<EOF
3235
3236CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"}
3237EOF
3238cat >> $CONFIG_STATUS <<\EOF
3239for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3240  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3241  case "$ac_file" in
3242  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3243       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3244  *) ac_file_in="${ac_file}.in" ;;
3245  esac
3246
3247  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3248
3249  # Remove last slash and all that follows it.  Not all systems have dirname.
3250  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3251  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3252    # The file is in a subdirectory.
3253    test ! -d "$ac_dir" && mkdir "$ac_dir"
3254    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3255    # A "../" for each directory in $ac_dir_suffix.
3256    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3257  else
3258    ac_dir_suffix= ac_dots=
3259  fi
3260
3261  case "$ac_given_srcdir" in
3262  .)  srcdir=.
3263      if test -z "$ac_dots"; then top_srcdir=.
3264      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3265  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3266  *) # Relative path.
3267    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3268    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3269  esac
3270
3271  case "$ac_given_INSTALL" in
3272  [/$]*) INSTALL="$ac_given_INSTALL" ;;
3273  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3274  esac
3275
3276  echo creating "$ac_file"
3277  rm -f "$ac_file"
3278  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3279  case "$ac_file" in
3280  *Makefile*) ac_comsub="1i\\
3281# $configure_input" ;;
3282  *) ac_comsub= ;;
3283  esac
3284
3285  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3286  sed -e "$ac_comsub
3287s%@configure_input@%$configure_input%g
3288s%@srcdir@%$srcdir%g
3289s%@top_srcdir@%$top_srcdir%g
3290s%@INSTALL@%$INSTALL%g
3291" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3292fi; done
3293rm -f conftest.s*
3294
3295EOF
3296cat >> $CONFIG_STATUS <<EOF
3297
3298EOF
3299cat >> $CONFIG_STATUS <<\EOF
3300
3301exit 0
3302EOF
3303chmod +x $CONFIG_STATUS
3304rm -fr confdefs* $ac_clean_files
3305test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3306
3307if test "$no_recursion" != yes; then
3308
3309  # Remove --cache-file and --srcdir arguments so they do not pile up.
3310  ac_sub_configure_args=
3311  ac_prev=
3312  for ac_arg in $ac_configure_args; do
3313    if test -n "$ac_prev"; then
3314      ac_prev=
3315      continue
3316    fi
3317    case "$ac_arg" in
3318    -cache-file | --cache-file | --cache-fil | --cache-fi \
3319    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3320      ac_prev=cache_file ;;
3321    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3322    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3323      ;;
3324    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3325      ac_prev=srcdir ;;
3326    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3327      ;;
3328    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3329    esac
3330  done
3331
3332  for ac_config_dir in $CONFIG_SUBDIRS; do
3333
3334    # Do not complain, so a configure script can configure whichever
3335    # parts of a large source tree are present.
3336    if test ! -d $srcdir/$ac_config_dir; then
3337      continue
3338    fi
3339
3340    echo configuring in $ac_config_dir
3341
3342    case "$srcdir" in
3343    .) ;;
3344    *)
3345      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3346      else
3347        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3348      fi
3349      ;;
3350    esac
3351
3352    ac_popdir=`pwd`
3353    cd $ac_config_dir
3354
3355      # A "../" for each directory in /$ac_config_dir.
3356      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3357
3358    case "$srcdir" in
3359    .) # No --srcdir option.  We are building in place.
3360      ac_sub_srcdir=$srcdir ;;
3361    /*) # Absolute path.
3362      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3363    *) # Relative path.
3364      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3365    esac
3366
3367    # Check for guested configure; otherwise get Cygnus style configure.
3368    if test -f $ac_sub_srcdir/configure; then
3369      ac_sub_configure=$ac_sub_srcdir/configure
3370    elif test -f $ac_sub_srcdir/configure.in; then
3371      ac_sub_configure=$ac_configure
3372    else
3373      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3374      ac_sub_configure=
3375    fi
3376
3377    # The recursion is here.
3378    if test -n "$ac_sub_configure"; then
3379
3380      # Make the cache file name correct relative to the subdirectory.
3381      case "$cache_file" in
3382      /*) ac_sub_cache_file=$cache_file ;;
3383      *) # Relative path.
3384        ac_sub_cache_file="$ac_dots$cache_file" ;;
3385      esac
3386  case "$ac_given_INSTALL" in
3387        [/$]*) INSTALL="$ac_given_INSTALL" ;;
3388        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3389        esac
3390
3391      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3392      # The eval makes quoting arguments work.
3393      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3394      then :
3395      else
3396        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3397      fi
3398    fi
3399
3400    cd $ac_popdir
3401  done
3402fi
3403
Note: See TracBrowser for help on using the repository browser.