source: git/configure @ a15090f

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