source: git/configure @ 623a7d

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