source: git/configure @ 8c8a76

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