source: git/configure @ 22e84a

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