source: git/configure @ bd911c

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