source: git/configure @ 63be42

spielwiese
Last change on this file since 63be42 was 16b993, checked in by Olaf Bachmann <obachman@…>, 26 years ago
* increased version to 1.3 git-svn-id: file:///usr/local/Singular/svn/trunk@2326 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 70.4 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.12
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_default_prefix=`pwd`
15ac_help="$ac_help
16\
17  --enable-PACKAGE        configure and build PACKAGE
18  --disable-PACKAGE       do not configure and build PACKAGE
19   where PACKAGE can be:
20     smallgmp             minimal version of gmp written in C only"
21ac_help="$ac_help
22\
23     gmp                  Gnu Multiple Precision package"
24ac_help="$ac_help
25\
26     MP                   Multi Protocol library"
27ac_help="$ac_help
28\
29     factory              polynomial factorization library"
30ac_help="$ac_help
31\
32     libfac               char set and modp poly factorization library"
33ac_help="$ac_help
34\
35     sgroup               numerical semigroup computations"
36ac_help="$ac_help
37\
38     Singular             CAS for Polynomial Computations"
39ac_help="$ac_help
40\
41  --with-PACKAGE          use PACKAGE, provide dependent functionality
42  --without-PACKAGE       do not use PACKAGE, disable dependent functionality
43   where PACKAGE can be:
44     MP                   Multi Protocol library"
45ac_help="$ac_help
46\
47     factory              polynomial factorization library"
48ac_help="$ac_help
49\
50     libfac               char set and modp poly factorization library"
51ac_help="$ac_help
52\
53  --with-apint=PACKAGE    use PACKAGE for arbitary integer arithmetic
54                          where PACKAGE can be gmp or smallgmp
55All additional --enable and --with options are passed to subsequent calls
56to configure of the packages to be built. See also configure --help in
57these packages (resp. subdirs). "
58
59# Initialize some variables set by options.
60# The variables have the same names as the options, with
61# dashes changed to underlines.
62build=NONE
63cache_file=./config.cache
64exec_prefix=NONE
65host=NONE
66no_create=
67nonopt=NONE
68no_recursion=
69prefix=NONE
70program_prefix=NONE
71program_suffix=NONE
72program_transform_name=s,x,x,
73silent=
74site=
75srcdir=
76target=NONE
77verbose=
78x_includes=NONE
79x_libraries=NONE
80bindir='${exec_prefix}/bin'
81sbindir='${exec_prefix}/sbin'
82libexecdir='${exec_prefix}/libexec'
83datadir='${prefix}/share'
84sysconfdir='${prefix}/etc'
85sharedstatedir='${prefix}/com'
86localstatedir='${prefix}/var'
87libdir='${exec_prefix}/lib'
88includedir='${prefix}/include'
89oldincludedir='/usr/include'
90infodir='${prefix}/info'
91mandir='${prefix}/man'
92
93# Initialize some other variables.
94subdirs=
95MFLAGS= MAKEFLAGS=
96# Maximum number of lines to put in a shell here document.
97ac_max_here_lines=12
98
99ac_prev=
100for ac_option
101do
102
103  # If the previous option needs an argument, assign it.
104  if test -n "$ac_prev"; then
105    eval "$ac_prev=\$ac_option"
106    ac_prev=
107    continue
108  fi
109
110  case "$ac_option" in
111  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
112  *) ac_optarg= ;;
113  esac
114
115  # Accept the important Cygnus configure options, so we can diagnose typos.
116
117  case "$ac_option" in
118
119  -bindir | --bindir | --bindi | --bind | --bin | --bi)
120    ac_prev=bindir ;;
121  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
122    bindir="$ac_optarg" ;;
123
124  -build | --build | --buil | --bui | --bu)
125    ac_prev=build ;;
126  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
127    build="$ac_optarg" ;;
128
129  -cache-file | --cache-file | --cache-fil | --cache-fi \
130  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
131    ac_prev=cache_file ;;
132  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
133  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
134    cache_file="$ac_optarg" ;;
135
136  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
137    ac_prev=datadir ;;
138  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
139  | --da=*)
140    datadir="$ac_optarg" ;;
141
142  -disable-* | --disable-*)
143    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
144    # Reject names that are not valid shell variable names.
145    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
146      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
147    fi
148    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
149    eval "enable_${ac_feature}=no" ;;
150
151  -enable-* | --enable-*)
152    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
153    # Reject names that are not valid shell variable names.
154    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
155      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156    fi
157    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158    case "$ac_option" in
159      *=*) ;;
160      *) ac_optarg=yes ;;
161    esac
162    eval "enable_${ac_feature}='$ac_optarg'" ;;
163
164  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
165  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
166  | --exec | --exe | --ex)
167    ac_prev=exec_prefix ;;
168  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
169  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
170  | --exec=* | --exe=* | --ex=*)
171    exec_prefix="$ac_optarg" ;;
172
173  -gas | --gas | --ga | --g)
174    # Obsolete; use --with-gas.
175    with_gas=yes ;;
176
177  -help | --help | --hel | --he)
178    # Omit some internal or obsolete options to make the list less imposing.
179    # This message is too long to be a string in the A/UX 3.1 sh.
180    cat << EOF
181Usage: configure [options] [host]
182Options: [defaults in brackets after descriptions]
183Configuration:
184  --cache-file=FILE       cache test results in FILE
185  --help                  print this message
186  --no-create             do not create output files
187  --quiet, --silent       do not print \`checking...' messages
188  --version               print the version of autoconf that created configure
189Directory and file names:
190  --prefix=PREFIX         install architecture-independent files in PREFIX
191                          [$ac_default_prefix]
192  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
193                          [same as prefix]
194  --bindir=DIR            user executables in DIR [EPREFIX/bin]
195  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
196  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
197  --datadir=DIR           read-only architecture-independent data in DIR
198                          [PREFIX/share]
199  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
200  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
201                          [PREFIX/com]
202  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
203  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
204  --includedir=DIR        C header files in DIR [PREFIX/include]
205  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
206  --infodir=DIR           info documentation in DIR [PREFIX/info]
207  --mandir=DIR            man documentation in DIR [PREFIX/man]
208  --srcdir=DIR            find the sources in DIR [configure dir or ..]
209  --program-prefix=PREFIX prepend PREFIX to installed program names
210  --program-suffix=SUFFIX append SUFFIX to installed program names
211  --program-transform-name=PROGRAM
212                          run sed PROGRAM on installed program names
213EOF
214    cat << EOF
215Host type:
216  --build=BUILD           configure for building on BUILD [BUILD=HOST]
217  --host=HOST             configure for HOST [guessed]
218  --target=TARGET         configure for TARGET [TARGET=HOST]
219Features and packages:
220  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
221  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
222  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
223  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
224  --x-includes=DIR        X include files are in DIR
225  --x-libraries=DIR       X library files are in DIR
226EOF
227    if test -n "$ac_help"; then
228      echo "--enable and --with options recognized:$ac_help"
229    fi
230    exit 0 ;;
231
232  -host | --host | --hos | --ho)
233    ac_prev=host ;;
234  -host=* | --host=* | --hos=* | --ho=*)
235    host="$ac_optarg" ;;
236
237  -includedir | --includedir | --includedi | --included | --include \
238  | --includ | --inclu | --incl | --inc)
239    ac_prev=includedir ;;
240  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
241  | --includ=* | --inclu=* | --incl=* | --inc=*)
242    includedir="$ac_optarg" ;;
243
244  -infodir | --infodir | --infodi | --infod | --info | --inf)
245    ac_prev=infodir ;;
246  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
247    infodir="$ac_optarg" ;;
248
249  -libdir | --libdir | --libdi | --libd)
250    ac_prev=libdir ;;
251  -libdir=* | --libdir=* | --libdi=* | --libd=*)
252    libdir="$ac_optarg" ;;
253
254  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
255  | --libexe | --libex | --libe)
256    ac_prev=libexecdir ;;
257  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
258  | --libexe=* | --libex=* | --libe=*)
259    libexecdir="$ac_optarg" ;;
260
261  -localstatedir | --localstatedir | --localstatedi | --localstated \
262  | --localstate | --localstat | --localsta | --localst \
263  | --locals | --local | --loca | --loc | --lo)
264    ac_prev=localstatedir ;;
265  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
266  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
267  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
268    localstatedir="$ac_optarg" ;;
269
270  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
271    ac_prev=mandir ;;
272  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
273    mandir="$ac_optarg" ;;
274
275  -nfp | --nfp | --nf)
276    # Obsolete; use --without-fp.
277    with_fp=no ;;
278
279  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
280  | --no-cr | --no-c)
281    no_create=yes ;;
282
283  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
284  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
285    no_recursion=yes ;;
286
287  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
288  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
289  | --oldin | --oldi | --old | --ol | --o)
290    ac_prev=oldincludedir ;;
291  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
292  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
293  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
294    oldincludedir="$ac_optarg" ;;
295
296  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
297    ac_prev=prefix ;;
298  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
299    prefix="$ac_optarg" ;;
300
301  -program-prefix | --program-prefix | --program-prefi | --program-pref \
302  | --program-pre | --program-pr | --program-p)
303    ac_prev=program_prefix ;;
304  -program-prefix=* | --program-prefix=* | --program-prefi=* \
305  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
306    program_prefix="$ac_optarg" ;;
307
308  -program-suffix | --program-suffix | --program-suffi | --program-suff \
309  | --program-suf | --program-su | --program-s)
310    ac_prev=program_suffix ;;
311  -program-suffix=* | --program-suffix=* | --program-suffi=* \
312  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
313    program_suffix="$ac_optarg" ;;
314
315  -program-transform-name | --program-transform-name \
316  | --program-transform-nam | --program-transform-na \
317  | --program-transform-n | --program-transform- \
318  | --program-transform | --program-transfor \
319  | --program-transfo | --program-transf \
320  | --program-trans | --program-tran \
321  | --progr-tra | --program-tr | --program-t)
322    ac_prev=program_transform_name ;;
323  -program-transform-name=* | --program-transform-name=* \
324  | --program-transform-nam=* | --program-transform-na=* \
325  | --program-transform-n=* | --program-transform-=* \
326  | --program-transform=* | --program-transfor=* \
327  | --program-transfo=* | --program-transf=* \
328  | --program-trans=* | --program-tran=* \
329  | --progr-tra=* | --program-tr=* | --program-t=*)
330    program_transform_name="$ac_optarg" ;;
331
332  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
333  | -silent | --silent | --silen | --sile | --sil)
334    silent=yes ;;
335
336  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
337    ac_prev=sbindir ;;
338  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
339  | --sbi=* | --sb=*)
340    sbindir="$ac_optarg" ;;
341
342  -sharedstatedir | --sharedstatedir | --sharedstatedi \
343  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
344  | --sharedst | --shareds | --shared | --share | --shar \
345  | --sha | --sh)
346    ac_prev=sharedstatedir ;;
347  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
348  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
349  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
350  | --sha=* | --sh=*)
351    sharedstatedir="$ac_optarg" ;;
352
353  -site | --site | --sit)
354    ac_prev=site ;;
355  -site=* | --site=* | --sit=*)
356    site="$ac_optarg" ;;
357
358  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
359    ac_prev=srcdir ;;
360  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
361    srcdir="$ac_optarg" ;;
362
363  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
364  | --syscon | --sysco | --sysc | --sys | --sy)
365    ac_prev=sysconfdir ;;
366  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
367  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
368    sysconfdir="$ac_optarg" ;;
369
370  -target | --target | --targe | --targ | --tar | --ta | --t)
371    ac_prev=target ;;
372  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
373    target="$ac_optarg" ;;
374
375  -v | -verbose | --verbose | --verbos | --verbo | --verb)
376    verbose=yes ;;
377
378  -version | --version | --versio | --versi | --vers)
379    echo "configure generated by autoconf version 2.12"
380    exit 0 ;;
381
382  -with-* | --with-*)
383    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
384    # Reject names that are not valid shell variable names.
385    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
386      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387    fi
388    ac_package=`echo $ac_package| sed 's/-/_/g'`
389    case "$ac_option" in
390      *=*) ;;
391      *) ac_optarg=yes ;;
392    esac
393    eval "with_${ac_package}='$ac_optarg'" ;;
394
395  -without-* | --without-*)
396    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
397    # Reject names that are not valid shell variable names.
398    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
399      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
400    fi
401    ac_package=`echo $ac_package| sed 's/-/_/g'`
402    eval "with_${ac_package}=no" ;;
403
404  --x)
405    # Obsolete; use --with-x.
406    with_x=yes ;;
407
408  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
409  | --x-incl | --x-inc | --x-in | --x-i)
410    ac_prev=x_includes ;;
411  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
412  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
413    x_includes="$ac_optarg" ;;
414
415  -x-libraries | --x-libraries | --x-librarie | --x-librari \
416  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
417    ac_prev=x_libraries ;;
418  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
419  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
420    x_libraries="$ac_optarg" ;;
421
422  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
423    ;;
424
425  *)
426    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
427      echo "configure: warning: $ac_option: invalid host type" 1>&2
428    fi
429    if test "x$nonopt" != xNONE; then
430      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
431    fi
432    nonopt="$ac_option"
433    ;;
434
435  esac
436done
437
438if test -n "$ac_prev"; then
439  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
440fi
441
442trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
443
444# File descriptor usage:
445# 0 standard input
446# 1 file creation
447# 2 errors and warnings
448# 3 some systems may open it to /dev/tty
449# 4 used on the Kubota Titan
450# 6 checking for... messages and results
451# 5 compiler messages saved in config.log
452if test "$silent" = yes; then
453  exec 6>/dev/null
454else
455  exec 6>&1
456fi
457exec 5>./config.log
458
459echo "\
460This file contains any messages produced by compilers while
461running configure, to aid debugging if configure makes a mistake.
462" 1>&5
463
464# Strip out --no-create and --no-recursion so they do not pile up.
465# Also quote any args containing shell metacharacters.
466ac_configure_args=
467for ac_arg
468do
469  case "$ac_arg" in
470  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471  | --no-cr | --no-c) ;;
472  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
473  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
474  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
475  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
476  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
477  esac
478done
479
480# NLS nuisances.
481# Only set these to C if already set.  These must not be set unconditionally
482# because not all systems understand e.g. LANG=C (notably SCO).
483# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
484# Non-C LC_CTYPE values break the ctype check.
485if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
486if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
487if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
488if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
489
490# confdefs.h avoids OS command line length limits that DEFS can exceed.
491rm -rf conftest* confdefs.h
492# AIX cpp loses on an empty file, so make sure it contains at least a newline.
493echo > confdefs.h
494
495# A filename unique to this package, relative to the directory that
496# configure is in, which we can look for to find out if srcdir is correct.
497ac_unique_file=Singular/matpol.h
498
499# Find the source files, if location was not specified.
500if test -z "$srcdir"; then
501  ac_srcdir_defaulted=yes
502  # Try the directory containing this script, then its parent.
503  ac_prog=$0
504  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
505  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
506  srcdir=$ac_confdir
507  if test ! -r $srcdir/$ac_unique_file; then
508    srcdir=..
509  fi
510else
511  ac_srcdir_defaulted=no
512fi
513if test ! -r $srcdir/$ac_unique_file; then
514  if test "$ac_srcdir_defaulted" = yes; then
515    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
516  else
517    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
518  fi
519fi
520srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
521
522# Prefer explicitly selected file to automatically selected ones.
523if test -z "$CONFIG_SITE"; then
524  if test "x$prefix" != xNONE; then
525    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
526  else
527    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
528  fi
529fi
530for ac_site_file in $CONFIG_SITE; do
531  if test -r "$ac_site_file"; then
532    echo "loading site script $ac_site_file"
533    . "$ac_site_file"
534  fi
535done
536
537if test -r "$cache_file"; then
538  echo "loading cache $cache_file"
539  . $cache_file
540else
541  echo "creating cache $cache_file"
542  > $cache_file
543fi
544
545ac_ext=c
546# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
547ac_cpp='$CPP $CPPFLAGS'
548ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
549ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
550cross_compiling=$ac_cv_prog_cc_cross
551
552if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
553  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
554  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
555    ac_n= ac_c='
556' ac_t='        '
557  else
558    ac_n=-n ac_c= ac_t=
559  fi
560else
561  ac_n= ac_c='\c' ac_t=
562fi
563
564
565
566OUTPUT_MAKEFILES="Makefile doc/Makefile"
567
568
569echo $ac_n "checking uname for singular""... $ac_c" 1>&6
570echo "configure:571: checking uname for singular" >&5
571if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
572  echo $ac_n "(cached) $ac_c" 1>&6
573else
574  ac_cv_singuname="unknown"
575if test -r "singuname.sh"; then
576  if (/bin/sh singuname.sh >/dev/null 2>&1) then
577    ac_cv_singuname=`/bin/sh singuname.sh`
578  fi
579fi
580
581fi
582
583echo "$ac_t""$ac_cv_singuname" 1>&6
584if test "$ac_cv_singuname" = unknown; then
585  { echo "configure: error: Unknown architecture: Check singuname.sh" 1>&2; exit 1; }
586else
587  SINGUNAME=$ac_cv_singuname
588 
589fi
590
591# stupid Win programs do not like dots in their pathnames
592if test "$ac_cv_singuname" = ix86-Win; then
593  VERSION_SEP="-"
594else
595  VERSION_SEP="."
596fi
597
598# make them to env variables
599# pass them indirectly to subsequent configures
600SINGULAR_MAJOR_VERSION=1
601SINGULAR_MINOR_VERSION=3
602SINGULAR_SUB_VERSION=0
603SINGULAR_VERSION="${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}"
604VERSION_DATE="July 1998"
605SINGULAR_DOS_VERSION="${SINGULAR_MAJOR_VERSION}-${SINGULAR_MINOR_VERSION}-${SINGULAR_SUB_VERSION}"
606export SINGULAR_MINOR_VERSION
607export SINGULAR_MAJOR_VERSION
608export SINGULAR_SUB_VERSION
609export SINGULAR_VERSION
610export VERSION_DATE
611
612
613
614
615# Extract the first word of "gcc", so it can be a program name with args.
616set dummy gcc; ac_word=$2
617echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
618echo "configure:619: checking for $ac_word" >&5
619if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
620  echo $ac_n "(cached) $ac_c" 1>&6
621else
622  if test -n "$CC"; then
623  ac_cv_prog_CC="$CC" # Let the user override the test.
624else
625  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
626  for ac_dir in $PATH; do
627    test -z "$ac_dir" && ac_dir=.
628    if test -f $ac_dir/$ac_word; then
629      ac_cv_prog_CC="gcc"
630      break
631    fi
632  done
633  IFS="$ac_save_ifs"
634fi
635fi
636CC="$ac_cv_prog_CC"
637if test -n "$CC"; then
638  echo "$ac_t""$CC" 1>&6
639else
640  echo "$ac_t""no" 1>&6
641fi
642
643if test -z "$CC"; then
644  # Extract the first word of "cc", so it can be a program name with args.
645set dummy cc; ac_word=$2
646echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
647echo "configure:648: checking for $ac_word" >&5
648if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
649  echo $ac_n "(cached) $ac_c" 1>&6
650else
651  if test -n "$CC"; then
652  ac_cv_prog_CC="$CC" # Let the user override the test.
653else
654  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
655  ac_prog_rejected=no
656  for ac_dir in $PATH; do
657    test -z "$ac_dir" && ac_dir=.
658    if test -f $ac_dir/$ac_word; then
659      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
660        ac_prog_rejected=yes
661        continue
662      fi
663      ac_cv_prog_CC="cc"
664      break
665    fi
666  done
667  IFS="$ac_save_ifs"
668if test $ac_prog_rejected = yes; then
669  # We found a bogon in the path, so make sure we never use it.
670  set dummy $ac_cv_prog_CC
671  shift
672  if test $# -gt 0; then
673    # We chose a different compiler from the bogus one.
674    # However, it has the same basename, so the bogon will be chosen
675    # first if we set CC to just the basename; use the full file name.
676    shift
677    set dummy "$ac_dir/$ac_word" "$@"
678    shift
679    ac_cv_prog_CC="$@"
680  fi
681fi
682fi
683fi
684CC="$ac_cv_prog_CC"
685if test -n "$CC"; then
686  echo "$ac_t""$CC" 1>&6
687else
688  echo "$ac_t""no" 1>&6
689fi
690
691  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
692fi
693
694echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
695echo "configure:696: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
696
697ac_ext=c
698# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
699ac_cpp='$CPP $CPPFLAGS'
700ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
701ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
702cross_compiling=$ac_cv_prog_cc_cross
703
704cat > conftest.$ac_ext <<EOF
705#line 706 "configure"
706#include "confdefs.h"
707main(){return(0);}
708EOF
709if { (eval echo configure:710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
710  ac_cv_prog_cc_works=yes
711  # If we can't run a trivial program, we are probably using a cross compiler.
712  if (./conftest; exit) 2>/dev/null; then
713    ac_cv_prog_cc_cross=no
714  else
715    ac_cv_prog_cc_cross=yes
716  fi
717else
718  echo "configure: failed program was:" >&5
719  cat conftest.$ac_ext >&5
720  ac_cv_prog_cc_works=no
721fi
722rm -fr conftest*
723
724echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
725if test $ac_cv_prog_cc_works = no; then
726  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
727fi
728echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
729echo "configure:730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
730echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
731cross_compiling=$ac_cv_prog_cc_cross
732
733echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
734echo "configure:735: checking whether we are using GNU C" >&5
735if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
736  echo $ac_n "(cached) $ac_c" 1>&6
737else
738  cat > conftest.c <<EOF
739#ifdef __GNUC__
740  yes;
741#endif
742EOF
743if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
744  ac_cv_prog_gcc=yes
745else
746  ac_cv_prog_gcc=no
747fi
748fi
749
750echo "$ac_t""$ac_cv_prog_gcc" 1>&6
751
752if test $ac_cv_prog_gcc = yes; then
753  GCC=yes
754  ac_test_CFLAGS="${CFLAGS+set}"
755  ac_save_CFLAGS="$CFLAGS"
756  CFLAGS=
757  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
758echo "configure:759: checking whether ${CC-cc} accepts -g" >&5
759if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
760  echo $ac_n "(cached) $ac_c" 1>&6
761else
762  echo 'void f(){}' > conftest.c
763if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
764  ac_cv_prog_cc_g=yes
765else
766  ac_cv_prog_cc_g=no
767fi
768rm -f conftest*
769
770fi
771
772echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
773  if test "$ac_test_CFLAGS" = set; then
774    CFLAGS="$ac_save_CFLAGS"
775  elif test $ac_cv_prog_cc_g = yes; then
776    CFLAGS="-g -O2"
777  else
778    CFLAGS="-O2"
779  fi
780else
781  GCC=
782  test "${CFLAGS+set}" = set || CFLAGS="-g"
783fi
784
785echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
786echo "configure:787: checking how to run the C preprocessor" >&5
787# On Suns, sometimes $CPP names a directory.
788if test -n "$CPP" && test -d "$CPP"; then
789  CPP=
790fi
791if test -z "$CPP"; then
792if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
793  echo $ac_n "(cached) $ac_c" 1>&6
794else
795    # This must be in double quotes, not single quotes, because CPP may get
796  # substituted into the Makefile and "${CC-cc}" will confuse make.
797  CPP="${CC-cc} -E"
798  # On the NeXT, cc -E runs the code through the compiler's parser,
799  # not just through cpp.
800  cat > conftest.$ac_ext <<EOF
801#line 802 "configure"
802#include "confdefs.h"
803#include <assert.h>
804Syntax Error
805EOF
806ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
807{ (eval echo configure:808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
808ac_err=`grep -v '^ *+' conftest.out`
809if test -z "$ac_err"; then
810  :
811else
812  echo "$ac_err" >&5
813  echo "configure: failed program was:" >&5
814  cat conftest.$ac_ext >&5
815  rm -rf conftest*
816  CPP="${CC-cc} -E -traditional-cpp"
817  cat > conftest.$ac_ext <<EOF
818#line 819 "configure"
819#include "confdefs.h"
820#include <assert.h>
821Syntax Error
822EOF
823ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
824{ (eval echo configure:825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
825ac_err=`grep -v '^ *+' conftest.out`
826if test -z "$ac_err"; then
827  :
828else
829  echo "$ac_err" >&5
830  echo "configure: failed program was:" >&5
831  cat conftest.$ac_ext >&5
832  rm -rf conftest*
833  CPP=/lib/cpp
834fi
835rm -f conftest*
836fi
837rm -f conftest*
838  ac_cv_prog_CPP="$CPP"
839fi
840  CPP="$ac_cv_prog_CPP"
841else
842  ac_cv_prog_CPP="$CPP"
843fi
844echo "$ac_t""$CPP" 1>&6
845
846echo $ac_n "checking for AIX""... $ac_c" 1>&6
847echo "configure:848: checking for AIX" >&5
848cat > conftest.$ac_ext <<EOF
849#line 850 "configure"
850#include "confdefs.h"
851#ifdef _AIX
852  yes
853#endif
854
855EOF
856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
857  egrep "yes" >/dev/null 2>&1; then
858  rm -rf conftest*
859  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
860#define _ALL_SOURCE 1
861EOF
862
863else
864  rm -rf conftest*
865  echo "$ac_t""no" 1>&6
866fi
867rm -f conftest*
868
869
870
871for ac_prog in perl5 perl
872do
873# Extract the first word of "$ac_prog", so it can be a program name with args.
874set dummy $ac_prog; ac_word=$2
875echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
876echo "configure:877: checking for $ac_word" >&5
877if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
878  echo $ac_n "(cached) $ac_c" 1>&6
879else
880  if test -n "$PERL"; then
881  ac_cv_prog_PERL="$PERL" # Let the user override the test.
882else
883  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
884  for ac_dir in $PATH; do
885    test -z "$ac_dir" && ac_dir=.
886    if test -f $ac_dir/$ac_word; then
887      ac_cv_prog_PERL="$ac_prog"
888      break
889    fi
890  done
891  IFS="$ac_save_ifs"
892fi
893fi
894PERL="$ac_cv_prog_PERL"
895if test -n "$PERL"; then
896  echo "$ac_t""$PERL" 1>&6
897else
898  echo "$ac_t""no" 1>&6
899fi
900
901test -n "$PERL" && break
902done
903
904echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
905echo "configure:906: checking whether ln -s works" >&5
906if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
907  echo $ac_n "(cached) $ac_c" 1>&6
908else
909  rm -f conftestdata
910if ln -s X conftestdata 2>/dev/null
911then
912  rm -f conftestdata
913  ac_cv_prog_LN_S="ln -s"
914else
915  ac_cv_prog_LN_S=ln
916fi
917fi
918LN_S="$ac_cv_prog_LN_S"
919if test "$ac_cv_prog_LN_S" = "ln -s"; then
920  echo "$ac_t""yes" 1>&6
921else
922  echo "$ac_t""no" 1>&6
923fi
924
925
926# expand prefix and pass it to subsequent configures
927if test "x$prefix" = xNONE; then
928  prefix=${ac_default_prefix}
929  ac_configure_args="$ac_configure_args --prefix=${prefix}"
930fi
931
932# expand exec_prefix
933if test "x$exec_prefix" = xNONE; then
934 exec_prefix=${prefix}/${ac_cv_singuname}
935 ac_configure_args="$ac_configure_args --exec_prefix=${exec_prefix}"
936fi
937
938# expand bindir
939if test "x$bindir" = 'x${exec_prefix}/bin'; then
940  bindir="${exec_prefix}/bin"
941  ac_configure_args="$ac_configure_args --bindir=${bindir}"
942fi
943
944# expand libdir
945if test "x$libdir" = 'x${exec_prefix}/lib'; then
946  libdir="${exec_prefix}/lib/${SINGULAR_VERSION}"
947  ac_configure_args="$ac_configure_args --libdir=${libdir}"
948fi
949
950# expand includedir
951if test "x$includedir" = 'x${prefix}/include'; then
952  includedir="${exec_prefix}/include/${SINGULAR_VERSION}"
953  ac_configure_args="$ac_configure_args --includedir=${includedir}"
954fi
955
956# construct name of installed Singular executable
957SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}
958export SINGULAR
959
960
961
962# add -I to CPPFLAGS and -L to LDFLAGS, just to be sure
963LDFLAGS="-L${libdir} ${LDFLAGS}"
964CPPFLAGS="-I${includedir} ${CPPFLAGS}"
965
966# check for AIX
967echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
968echo "configure:969: checking whether _AIX is defined" >&5
969if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
970  echo $ac_n "(cached) $ac_c" 1>&6
971else
972  cat > conftest.$ac_ext <<EOF
973#line 974 "configure"
974#include "confdefs.h"
975#ifdef _AIX
976    yes
977#endif
978
979EOF
980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
981  egrep "yes" >/dev/null 2>&1; then
982  rm -rf conftest*
983  ac_cv_is_aix=yes
984else
985  rm -rf conftest*
986  ac_cv_is_aix=no
987fi
988rm -f conftest*
989
990fi
991
992if test "$ac_cv_is_aix" = yes; then
993  echo "$ac_t""yes" 1>&6
994else
995  echo "$ac_t""no" 1>&6
996fi
997
998echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
999echo "configure:1000: checking for atof in -lm" >&5
1000ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
1001if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1002  echo $ac_n "(cached) $ac_c" 1>&6
1003else
1004  ac_save_LIBS="$LIBS"
1005LIBS="-lm  $LIBS"
1006cat > conftest.$ac_ext <<EOF
1007#line 1008 "configure"
1008#include "confdefs.h"
1009/* Override any gcc2 internal prototype to avoid an error.  */
1010/* We use char because int might match the return type of a gcc2
1011    builtin and then its argument prototype would still apply.  */
1012char atof();
1013
1014int main() {
1015atof()
1016; return 0; }
1017EOF
1018if { (eval echo configure:1019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1019  rm -rf conftest*
1020  eval "ac_cv_lib_$ac_lib_var=yes"
1021else
1022  echo "configure: failed program was:" >&5
1023  cat conftest.$ac_ext >&5
1024  rm -rf conftest*
1025  eval "ac_cv_lib_$ac_lib_var=no"
1026fi
1027rm -f conftest*
1028LIBS="$ac_save_LIBS"
1029
1030fi
1031if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1032  echo "$ac_t""yes" 1>&6
1033    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1034    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1035  cat >> confdefs.h <<EOF
1036#define $ac_tr_lib 1
1037EOF
1038
1039  LIBS="-lm $LIBS"
1040
1041else
1042  echo "$ac_t""no" 1>&6
1043fi
1044
1045echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
1046echo "configure:1047: checking for socket in -lbsd" >&5
1047ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
1048if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1049  echo $ac_n "(cached) $ac_c" 1>&6
1050else
1051  ac_save_LIBS="$LIBS"
1052LIBS="-lbsd  $LIBS"
1053cat > conftest.$ac_ext <<EOF
1054#line 1055 "configure"
1055#include "confdefs.h"
1056/* Override any gcc2 internal prototype to avoid an error.  */
1057/* We use char because int might match the return type of a gcc2
1058    builtin and then its argument prototype would still apply.  */
1059char socket();
1060
1061int main() {
1062socket()
1063; return 0; }
1064EOF
1065if { (eval echo configure:1066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1066  rm -rf conftest*
1067  eval "ac_cv_lib_$ac_lib_var=yes"
1068else
1069  echo "configure: failed program was:" >&5
1070  cat conftest.$ac_ext >&5
1071  rm -rf conftest*
1072  eval "ac_cv_lib_$ac_lib_var=no"
1073fi
1074rm -f conftest*
1075LIBS="$ac_save_LIBS"
1076
1077fi
1078if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1079  echo "$ac_t""yes" 1>&6
1080    ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1081    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1082  cat >> confdefs.h <<EOF
1083#define $ac_tr_lib 1
1084EOF
1085
1086  LIBS="-lbsd $LIBS"
1087
1088else
1089  echo "$ac_t""no" 1>&6
1090fi
1091
1092echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6
1093echo "configure:1094: checking for listen in -lsocket" >&5
1094ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'`
1095if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1096  echo $ac_n "(cached) $ac_c" 1>&6
1097else
1098  ac_save_LIBS="$LIBS"
1099LIBS="-lsocket  $LIBS"
1100cat > conftest.$ac_ext <<EOF
1101#line 1102 "configure"
1102#include "confdefs.h"
1103/* Override any gcc2 internal prototype to avoid an error.  */
1104/* We use char because int might match the return type of a gcc2
1105    builtin and then its argument prototype would still apply.  */
1106char listen();
1107
1108int main() {
1109listen()
1110; return 0; }
1111EOF
1112if { (eval echo configure:1113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1113  rm -rf conftest*
1114  eval "ac_cv_lib_$ac_lib_var=yes"
1115else
1116  echo "configure: failed program was:" >&5
1117  cat conftest.$ac_ext >&5
1118  rm -rf conftest*
1119  eval "ac_cv_lib_$ac_lib_var=no"
1120fi
1121rm -f conftest*
1122LIBS="$ac_save_LIBS"
1123
1124fi
1125if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1126  echo "$ac_t""yes" 1>&6
1127    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1128    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1129  cat >> confdefs.h <<EOF
1130#define $ac_tr_lib 1
1131EOF
1132
1133  LIBS="-lsocket $LIBS"
1134
1135else
1136  echo "$ac_t""no" 1>&6
1137fi
1138
1139echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1140echo "configure:1141: checking for gethostbyname in -lnsl" >&5
1141ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1142if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1143  echo $ac_n "(cached) $ac_c" 1>&6
1144else
1145  ac_save_LIBS="$LIBS"
1146LIBS="-lnsl  $LIBS"
1147cat > conftest.$ac_ext <<EOF
1148#line 1149 "configure"
1149#include "confdefs.h"
1150/* Override any gcc2 internal prototype to avoid an error.  */
1151/* We use char because int might match the return type of a gcc2
1152    builtin and then its argument prototype would still apply.  */
1153char gethostbyname();
1154
1155int main() {
1156gethostbyname()
1157; return 0; }
1158EOF
1159if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1160  rm -rf conftest*
1161  eval "ac_cv_lib_$ac_lib_var=yes"
1162else
1163  echo "configure: failed program was:" >&5
1164  cat conftest.$ac_ext >&5
1165  rm -rf conftest*
1166  eval "ac_cv_lib_$ac_lib_var=no"
1167fi
1168rm -f conftest*
1169LIBS="$ac_save_LIBS"
1170
1171fi
1172if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1173  echo "$ac_t""yes" 1>&6
1174    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1175    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1176  cat >> confdefs.h <<EOF
1177#define $ac_tr_lib 1
1178EOF
1179
1180  LIBS="-lnsl $LIBS"
1181
1182else
1183  echo "$ac_t""no" 1>&6
1184fi
1185
1186echo $ac_n "checking for mpq_init in -lgmp""... $ac_c" 1>&6
1187echo "configure:1188: checking for mpq_init in -lgmp" >&5
1188ac_lib_var=`echo gmp'_'mpq_init | sed 'y%./+-%__p_%'`
1189if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1190  echo $ac_n "(cached) $ac_c" 1>&6
1191else
1192  ac_save_LIBS="$LIBS"
1193LIBS="-lgmp  $LIBS"
1194cat > conftest.$ac_ext <<EOF
1195#line 1196 "configure"
1196#include "confdefs.h"
1197/* Override any gcc2 internal prototype to avoid an error.  */
1198/* We use char because int might match the return type of a gcc2
1199    builtin and then its argument prototype would still apply.  */
1200char mpq_init();
1201
1202int main() {
1203mpq_init()
1204; return 0; }
1205EOF
1206if { (eval echo configure:1207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1207  rm -rf conftest*
1208  eval "ac_cv_lib_$ac_lib_var=yes"
1209else
1210  echo "configure: failed program was:" >&5
1211  cat conftest.$ac_ext >&5
1212  rm -rf conftest*
1213  eval "ac_cv_lib_$ac_lib_var=no"
1214fi
1215rm -f conftest*
1216LIBS="$ac_save_LIBS"
1217
1218fi
1219if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1220  echo "$ac_t""yes" 1>&6
1221    ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1222    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1223  cat >> confdefs.h <<EOF
1224#define $ac_tr_lib 1
1225EOF
1226
1227  LIBS="-lgmp $LIBS"
1228
1229else
1230  echo "$ac_t""no" 1>&6
1231fi
1232
1233echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6
1234echo "configure:1235: checking for mpz_init in -lsmallgmp" >&5
1235ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'`
1236if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1237  echo $ac_n "(cached) $ac_c" 1>&6
1238else
1239  ac_save_LIBS="$LIBS"
1240LIBS="-lsmallgmp  $LIBS"
1241cat > conftest.$ac_ext <<EOF
1242#line 1243 "configure"
1243#include "confdefs.h"
1244/* Override any gcc2 internal prototype to avoid an error.  */
1245/* We use char because int might match the return type of a gcc2
1246    builtin and then its argument prototype would still apply.  */
1247char mpz_init();
1248
1249int main() {
1250mpz_init()
1251; return 0; }
1252EOF
1253if { (eval echo configure:1254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1254  rm -rf conftest*
1255  eval "ac_cv_lib_$ac_lib_var=yes"
1256else
1257  echo "configure: failed program was:" >&5
1258  cat conftest.$ac_ext >&5
1259  rm -rf conftest*
1260  eval "ac_cv_lib_$ac_lib_var=no"
1261fi
1262rm -f conftest*
1263LIBS="$ac_save_LIBS"
1264
1265fi
1266if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1267  echo "$ac_t""yes" 1>&6
1268    ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1269    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1270  cat >> confdefs.h <<EOF
1271#define $ac_tr_lib 1
1272EOF
1273
1274  LIBS="-lsmallgmp $LIBS"
1275
1276else
1277  echo "$ac_t""no" 1>&6
1278fi
1279
1280echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
1281echo "configure:1282: checking for IMP_PutGmpInt in -lMP" >&5
1282ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
1283if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1284  echo $ac_n "(cached) $ac_c" 1>&6
1285else
1286  ac_save_LIBS="$LIBS"
1287LIBS="-lMP  $LIBS"
1288cat > conftest.$ac_ext <<EOF
1289#line 1290 "configure"
1290#include "confdefs.h"
1291/* Override any gcc2 internal prototype to avoid an error.  */
1292/* We use char because int might match the return type of a gcc2
1293    builtin and then its argument prototype would still apply.  */
1294char IMP_PutGmpInt();
1295
1296int main() {
1297IMP_PutGmpInt()
1298; return 0; }
1299EOF
1300if { (eval echo configure:1301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1301  rm -rf conftest*
1302  eval "ac_cv_lib_$ac_lib_var=yes"
1303else
1304  echo "configure: failed program was:" >&5
1305  cat conftest.$ac_ext >&5
1306  rm -rf conftest*
1307  eval "ac_cv_lib_$ac_lib_var=no"
1308fi
1309rm -f conftest*
1310LIBS="$ac_save_LIBS"
1311
1312fi
1313if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1314  echo "$ac_t""yes" 1>&6
1315    ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1316    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1317  cat >> confdefs.h <<EOF
1318#define $ac_tr_lib 1
1319EOF
1320
1321  LIBS="-lMP $LIBS"
1322
1323else
1324  echo "$ac_t""no" 1>&6
1325fi
1326
1327echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
1328echo "configure:1329: checking for MPT_GetTree in -lMPT" >&5
1329ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
1330if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1331  echo $ac_n "(cached) $ac_c" 1>&6
1332else
1333  ac_save_LIBS="$LIBS"
1334LIBS="-lMPT  $LIBS"
1335cat > conftest.$ac_ext <<EOF
1336#line 1337 "configure"
1337#include "confdefs.h"
1338/* Override any gcc2 internal prototype to avoid an error.  */
1339/* We use char because int might match the return type of a gcc2
1340    builtin and then its argument prototype would still apply.  */
1341char MPT_GetTree();
1342
1343int main() {
1344MPT_GetTree()
1345; return 0; }
1346EOF
1347if { (eval echo configure:1348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1348  rm -rf conftest*
1349  eval "ac_cv_lib_$ac_lib_var=yes"
1350else
1351  echo "configure: failed program was:" >&5
1352  cat conftest.$ac_ext >&5
1353  rm -rf conftest*
1354  eval "ac_cv_lib_$ac_lib_var=no"
1355fi
1356rm -f conftest*
1357LIBS="$ac_save_LIBS"
1358
1359fi
1360if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1361  echo "$ac_t""yes" 1>&6
1362    ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1363    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1364  cat >> confdefs.h <<EOF
1365#define $ac_tr_lib 1
1366EOF
1367
1368  LIBS="-lMPT $LIBS"
1369
1370else
1371  echo "$ac_t""no" 1>&6
1372fi
1373
1374echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
1375echo "configure:1376: checking for atof in -lsingcf" >&5
1376ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
1377if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1378  echo $ac_n "(cached) $ac_c" 1>&6
1379else
1380  ac_save_LIBS="$LIBS"
1381LIBS="-lsingcf  $LIBS"
1382cat > conftest.$ac_ext <<EOF
1383#line 1384 "configure"
1384#include "confdefs.h"
1385/* Override any gcc2 internal prototype to avoid an error.  */
1386/* We use char because int might match the return type of a gcc2
1387    builtin and then its argument prototype would still apply.  */
1388char atof();
1389
1390int main() {
1391atof()
1392; return 0; }
1393EOF
1394if { (eval echo configure:1395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1395  rm -rf conftest*
1396  eval "ac_cv_lib_$ac_lib_var=yes"
1397else
1398  echo "configure: failed program was:" >&5
1399  cat conftest.$ac_ext >&5
1400  rm -rf conftest*
1401  eval "ac_cv_lib_$ac_lib_var=no"
1402fi
1403rm -f conftest*
1404LIBS="$ac_save_LIBS"
1405
1406fi
1407if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1408  echo "$ac_t""yes" 1>&6
1409    ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1410    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1411  cat >> confdefs.h <<EOF
1412#define $ac_tr_lib 1
1413EOF
1414
1415  LIBS="-lsingcf $LIBS"
1416
1417else
1418  echo "$ac_t""no" 1>&6
1419fi
1420
1421echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
1422echo "configure:1423: checking for atof in -lsingfac" >&5
1423ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
1424if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1425  echo $ac_n "(cached) $ac_c" 1>&6
1426else
1427  ac_save_LIBS="$LIBS"
1428LIBS="-lsingfac  $LIBS"
1429cat > conftest.$ac_ext <<EOF
1430#line 1431 "configure"
1431#include "confdefs.h"
1432/* Override any gcc2 internal prototype to avoid an error.  */
1433/* We use char because int might match the return type of a gcc2
1434    builtin and then its argument prototype would still apply.  */
1435char atof();
1436
1437int main() {
1438atof()
1439; return 0; }
1440EOF
1441if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1442  rm -rf conftest*
1443  eval "ac_cv_lib_$ac_lib_var=yes"
1444else
1445  echo "configure: failed program was:" >&5
1446  cat conftest.$ac_ext >&5
1447  rm -rf conftest*
1448  eval "ac_cv_lib_$ac_lib_var=no"
1449fi
1450rm -f conftest*
1451LIBS="$ac_save_LIBS"
1452
1453fi
1454if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1455  echo "$ac_t""yes" 1>&6
1456    ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1457    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1458  cat >> confdefs.h <<EOF
1459#define $ac_tr_lib 1
1460EOF
1461
1462  LIBS="-lsingfac $LIBS"
1463
1464else
1465  echo "$ac_t""no" 1>&6
1466fi
1467
1468
1469for ac_hdr in gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h
1470do
1471ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1472echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1473echo "configure:1474: checking for $ac_hdr" >&5
1474if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1475  echo $ac_n "(cached) $ac_c" 1>&6
1476else
1477  cat > conftest.$ac_ext <<EOF
1478#line 1479 "configure"
1479#include "confdefs.h"
1480#include <$ac_hdr>
1481EOF
1482ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1483{ (eval echo configure:1484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1484ac_err=`grep -v '^ *+' conftest.out`
1485if test -z "$ac_err"; then
1486  rm -rf conftest*
1487  eval "ac_cv_header_$ac_safe=yes"
1488else
1489  echo "$ac_err" >&5
1490  echo "configure: failed program was:" >&5
1491  cat conftest.$ac_ext >&5
1492  rm -rf conftest*
1493  eval "ac_cv_header_$ac_safe=no"
1494fi
1495rm -f conftest*
1496fi
1497if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1498  echo "$ac_t""yes" 1>&6
1499    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1500  cat >> confdefs.h <<EOF
1501#define $ac_tr_hdr 1
1502EOF
1503 
1504else
1505  echo "$ac_t""no" 1>&6
1506fi
1507done
1508
1509
1510if test "$ac_cv_lib_gmp_mpq_init" = yes && \
1511 test "$ac_cv_header_gmp_h" = yes; then
1512  ac_gmp_ok=yes
1513fi
1514
1515if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \
1516 test "$ac_cv_header_smallgmp_h" = yes && \
1517 test "$ac_cv_header_gmp_h" = yes; then
1518  ac_smallgmp_ok=yes
1519fi
1520
1521if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \
1522 test "$ac_cv_lib_MPT_MPT_GetTree" && \
1523 test "$ac_cv_header_MP_h" = yes && \
1524 test "$ac_cv_header_MPT_h" = yes; then
1525  ac_MP_ok=yes
1526fi
1527
1528if test "$ac_cv_lib_singcf_atof" = yes && \
1529 test "$ac_cv_header_factory_h" = yes; then
1530  ac_factory_ok=yes
1531fi
1532
1533if test "$ac_cv_lib_singfac_atof" = yes && \
1534 test "$ac_cv_header_factor_h" = yes; then
1535  ac_libfac_ok=yes
1536fi
1537
1538 
1539# Check whether --enable-smallgmp or --disable-smallgmp was given.
1540if test "${enable_smallgmp+set}" = set; then
1541  enableval="$enable_smallgmp"
1542  :
1543fi
1544
1545# Check whether --enable-gmp or --disable-gmp was given.
1546if test "${enable_gmp+set}" = set; then
1547  enableval="$enable_gmp"
1548  :
1549fi
1550
1551# Check whether --enable-MP or --disable-MP was given.
1552if test "${enable_MP+set}" = set; then
1553  enableval="$enable_MP"
1554  :
1555fi
1556
1557# Check whether --enable-factory or --disable-factory was given.
1558if test "${enable_factory+set}" = set; then
1559  enableval="$enable_factory"
1560  :
1561fi
1562
1563# Check whether --enable-libfac or --disable-libfac was given.
1564if test "${enable_libfac+set}" = set; then
1565  enableval="$enable_libfac"
1566  :
1567fi
1568
1569# Check whether --enable-sgroup or --disable-sgroup was given.
1570if test "${enable_sgroup+set}" = set; then
1571  enableval="$enable_sgroup"
1572  :
1573fi
1574
1575# Check whether --enable-Singular or --disable-Singular was given.
1576if test "${enable_Singular+set}" = set; then
1577  enableval="$enable_Singular"
1578  :
1579fi
1580
1581
1582# Check whether --with-MP or --without-MP was given.
1583if test "${with_MP+set}" = set; then
1584  withval="$with_MP"
1585  :
1586fi
1587
1588# Check whether --with-factory or --without-factory was given.
1589if test "${with_factory+set}" = set; then
1590  withval="$with_factory"
1591  :
1592fi
1593
1594# Check whether --with-libfac or --without-libfac was given.
1595if test "${with_libfac+set}" = set; then
1596  withval="$with_libfac"
1597  :
1598fi
1599
1600# Check whether --with-gmp or --without-gmp was given.
1601if test "${with_gmp+set}" = set; then
1602  withval="$with_gmp"
1603  :
1604fi
1605
1606
1607echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6
1608echo "configure:1609: checking whether to configure and build gmp lib" >&5
1609if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
1610  if test "$ac_gmp_ok" != yes && test -d gmp; then
1611    echo "$ac_t""yes" 1>&6
1612    enable_gmp=yes
1613    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
1614    ac_configure_args="$ac_configure_args --enable-gmp"
1615    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
1616  else
1617    echo "$ac_t""no" 1>&6
1618    enable_gmp=no
1619  fi
1620elif test "$enable_gmp" = yes; then
1621  if test ! -d gmp; then
1622    echo "$ac_t""no" 1>&6
1623    { echo "configure: error: Can not find gmp subdir" 1>&2; exit 1; }
1624  else
1625    echo "$ac_t""yes" 1>&6
1626    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
1627    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
1628  fi
1629else
1630  echo "$ac_t""no" 1>&6
1631fi
1632
1633echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6
1634echo "configure:1635: checking whether to configure and build smallgmp lib" >&5
1635if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
1636  if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
1637     test "$enable_gmp" != yes && test -d smallgmp; then
1638    echo "$ac_t""yes" 1>&6
1639    enable_smallgmp=yes
1640    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
1641    ac_configure_args="$ac_configure_args --enable-smallgmp --enable-gmp"
1642  else
1643    echo "$ac_t""no" 1>&6
1644    enable_smallgmp=no
1645  fi
1646elif test "$enable_smallgmp" = yes; then
1647  if test ! -d smallgmp; then
1648    echo "$ac_t""no" 1>&6
1649    { echo "configure: error: Can not find smallgmp subdir" 1>&2; exit 1; }
1650  else
1651    echo "$ac_t""yes" 1>&6
1652    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
1653    if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
1654      ac_configure_args="$ac_configure_args --enable-gmp"
1655    fi
1656  fi
1657else
1658  echo "$ac_t""${enable_smallgmp}" 1>&6
1659fi
1660
1661# Check whether we have at least one of smallgmp or gmp
1662if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
1663   test "$enable_smallgmp" != yes && test "$enable_gmp" != yes; then
1664  { echo "configure: error: can neither find nor built gmp or smallgmp" 1>&2; exit 1; }
1665fi
1666
1667# Check whether we need to cheat subsequent configures with --enable-gmp
1668if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes; then
1669  ac_configure_args="$ac_configure_args --enable-gmp"
1670fi
1671
1672echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6
1673echo "configure:1674: checking whether to configure and build MP lib" >&5
1674if test "$enable_MP" != yes && test "$enable_MP" != no; then
1675  if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
1676     (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then
1677    echo "$ac_t""yes" 1>&6
1678    enable_MP=yes
1679    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
1680    ac_configure_args="$ac_configure_args --enable-MP"
1681  else
1682    echo "$ac_t""no" 1>&6
1683    enable_MP=no
1684  fi
1685elif test "$enable_MP" = yes; then
1686  if test ! -d MP; then
1687    echo "$ac_t""no" 1>&6
1688    { echo "configure: error: can not build MP without MP directory" 1>&2; exit 1; }
1689  fi
1690  if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then
1691    echo "$ac_t""yes" 1>&6
1692    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
1693  else
1694    echo "$ac_t""no" 1>&6
1695    { echo "configure: error: can not build MP without gmp" 1>&2; exit 1; }
1696  fi
1697else
1698  echo "$ac_t""no" 1>&6
1699fi
1700 
1701echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
1702echo "configure:1703: checking whether to configure and build factory lib" >&5
1703if test "$enable_factory" != yes && test "$enable_factory" != no; then
1704  if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
1705     test -d factory; then
1706    enable_factory=yes
1707    echo "$ac_t""yes" 1>&6
1708    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
1709    ac_configure_args="$ac_configure_args --enable-factory"
1710  else
1711    enable_factory=no
1712    echo "$ac_t""no" 1>&6
1713  fi
1714elif test "$enable_factory" = yes; then
1715  if test -d factory; then
1716    echo "$ac_t""yes" 1>&6
1717    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
1718  else
1719    echo "$ac_t""no" 1>&6
1720    { echo "configure: error: can not build factory without factory directory" 1>&2; exit 1; }
1721  fi
1722else
1723  echo "$ac_t""no" 1>&6
1724fi
1725
1726echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
1727echo "configure:1728: checking whether to configure and build libfac lib" >&5
1728if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
1729  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
1730     test -d libfac && \
1731     (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then
1732    enable_libfac=yes
1733    echo "$ac_t""yes" 1>&6
1734    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
1735    ac_configure_args="$ac_configure_args --enable-libfac"
1736  else
1737    enable_libfac=no
1738    echo "$ac_t""no" 1>&6
1739  fi
1740elif  test "$enable_libfac" = yes; then
1741  if test ! -d libfac; then
1742    echo "$ac_t""no" 1>&6
1743    { echo "configure: error: can not build libfac without libfac directory" 1>&2; exit 1; }
1744  fi
1745  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
1746    echo "$ac_t""yes" 1>&6
1747    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
1748  else
1749    echo "$ac_t""no" 1>&6
1750    { echo "configure: error: Can not build libfac without factory" 1>&2; exit 1; }
1751  fi
1752else
1753  echo "$ac_t""no" 1>&6
1754fi
1755
1756echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6
1757echo "configure:1758: checking whether to configure and build sgroup lib" >&5
1758if test "$enable_sgroup" != yes && test "$enable_sgroup" != no; then
1759  if test "$with_sgroup" != no && test "$ac_sgroup_ok" != yes && \
1760     test -d sgroup && \
1761     (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then
1762    enable_sgroup=yes
1763    echo "$ac_t""yes" 1>&6
1764    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
1765    ac_configure_args="$ac_configure_args --enable-sgroup"
1766  else
1767    enable_sgroup=no
1768    echo "$ac_t""no" 1>&6
1769  fi
1770elif  test "$enable_sgroup" = yes; then
1771  if test ! -d sgroup; then
1772    echo "$ac_t""no" 1>&6
1773    { echo "configure: error: can not build sgroup without sgroup directory" 1>&2; exit 1; }
1774  fi
1775  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
1776    echo "$ac_t""yes" 1>&6
1777    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
1778  else
1779    echo "$ac_t""no" 1>&6
1780    { echo "configure: error: Can not build sgroup without MP" 1>&2; exit 1; }
1781  fi
1782else
1783  echo "$ac_t""no" 1>&6
1784fi
1785
1786echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
1787echo "configure:1788: checking whether to configure and build Singular" >&5
1788if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
1789  if test "$with_Singular" != no && test -d Singular; then
1790    enable_Singular=yes
1791    echo "$ac_t""yes" 1>&6
1792    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
1793    ac_configure_args="$ac_configure_args --enable-Singular"
1794  else
1795    enable_Singular=no
1796    echo "$ac_t""no" 1>&6
1797  fi
1798elif test "$enable_Singular" = yes; then
1799  if test -d Singular; then
1800    echo "$ac_t""yes" 1>&6
1801    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
1802  else
1803    echo "$ac_t""no" 1>&6
1804    { echo "configure: error: can not build Singular without Singular directory" 1>&2; exit 1; }
1805  fi
1806else
1807  echo "$ac_t""no" 1>&6
1808fi
1809
1810
1811echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
1812echo "configure:1813: checking which apint package to use" >&5
1813if test "$with_apint" = gmp; then
1814  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
1815    echo "$ac_t""gmp" 1>&6
1816  else
1817    echo "$ac_t""none" 1>&6
1818    { echo "configure: error: can not use with gmp without finding or building it" 1>&2; exit 1; }
1819  fi
1820elif test "$with_apint" = smallgmp; then
1821  if test "$ac_smallgmp_ok" = yes || test "$enable_smallgmp" = yes; then
1822    echo "$ac_t""smallgmp" 1>&6
1823  else
1824    echo "$ac_t""none" 1>&6
1825    { echo "configure: error: can not use with smallgmp without finding or building it" 1>&2; exit 1; }
1826  fi
1827elif test "$ac_gmp_ok" = yes || test "$enable_gmp"; then
1828    echo "$ac_t""gmp" 1>&6
1829    ac_configure_args="$ac_configure_args --with-apint=gmp"
1830else
1831   echo "$ac_t""smallgmp" 1>&6
1832   ac_configure_args="$ac_configure_args --with-apint=smallgmp"
1833fi
1834
1835echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
1836echo "configure:1837: checking whether to use with MP" >&5
1837if test "$with_MP" = yes; then
1838  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
1839    echo "$ac_t""yes" 1>&6
1840  else
1841    echo "$ac_t""none" 1>&6
1842    { echo "configure: error: can not use with MP without finding or building it" 1>&2; exit 1; }
1843  fi
1844elif test "$with_MP" = no; then
1845  echo "$ac_t""no" 1>&6
1846elif test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
1847  echo "$ac_t""yes" 1>&6
1848  ac_configure_args="$ac_configure_args --with-MP"
1849else
1850  echo "$ac_t""no" 1>&6
1851  ac_configure_args="$ac_configure_args --without-MP"
1852fi
1853
1854echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
1855echo "configure:1856: checking whether to use with factory" >&5
1856if test "$with_factory" = yes; then
1857  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
1858    echo "$ac_t""yes" 1>&6
1859  else
1860    echo "$ac_t""none" 1>&6
1861    { echo "configure: error: can not use with factory without finding or building it" 1>&2; exit 1; }
1862  fi
1863elif test "$with_factory" = no; then
1864  echo "$ac_t""no" 1>&6
1865elif test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
1866  echo "$ac_t""yes" 1>&6
1867  ac_configure_args="$ac_configure_args --with-factory"
1868else
1869  echo "$ac_t""no" 1>&6
1870  ac_configure_args="$ac_configure_args --without-factory"
1871fi
1872 
1873echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
1874echo "configure:1875: checking whether to use with libfac" >&5
1875if test "$with_libfac" = yes; then
1876  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
1877    echo "$ac_t""yes" 1>&6
1878  else
1879    echo "$ac_t""none" 1>&6
1880    { echo "configure: error: can not use with libfac without finding or building it" 1>&2; exit 1; }
1881  fi
1882elif test "$with_libfac" = no; then
1883  echo "$ac_t""no" 1>&6
1884elif test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
1885  echo "$ac_t""yes" 1>&6
1886  ac_configure_args="$ac_configure_args --with-libfac"
1887else
1888  echo "$ac_t""no" 1>&6
1889  ac_configure_args="$ac_configure_args --without-libfac"
1890fi
1891
1892echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
1893echo "configure:1894: checking whether to use with Singular" >&5
1894if test "$with_Singular" != no && test "$with_Singular" != yes; then
1895  if test "$enable_Singular" = yes; then
1896    with_Singular=yes
1897  else
1898    with_Singular=no
1899  fi
1900  ac_configure_args="$ac_configure_args --with-Singular=$with_Singular"
1901fi
1902
1903if test "$with_Singular" != no; then
1904  echo "$ac_t""yes" 1>&6
1905else
1906  echo "$ac_t""no" 1>&6
1907fi
1908
1909
1910SUBDIRS=""
1911if test -d doc; then
1912  SUBDIRS="$SUBDIRS doc"
1913fi
1914if test -d smallgmp; then
1915  SUBDIRS="$SUBDIRS smallgmp"
1916fi
1917if test -d gmp; then
1918  SUBDIRS="$SUBDIRS gmp"
1919fi
1920if test -d MP; then
1921  SUBDIRS="$SUBDIRS MP"
1922fi
1923if test -d factory; then
1924  SUBDIRS="$SUBDIRS factory"
1925fi
1926if test -d libfac; then
1927  SUBDIRS="$SUBDIRS libfac"
1928fi
1929if test -d sgroup; then
1930  SUBDIRS="$SUBDIRS sgroup"
1931fi
1932if test -d Singular; then
1933  SUBDIRS="$SUBDIRS Singular"
1934fi
1935 
1936
1937echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1938echo "configure:1939: checking whether ${MAKE-make} sets \${MAKE}" >&5
1939set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1940if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1941  echo $ac_n "(cached) $ac_c" 1>&6
1942else
1943  cat > conftestmake <<\EOF
1944all:
1945        @echo 'ac_maketemp="${MAKE}"'
1946EOF
1947# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1948eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1949if test -n "$ac_maketemp"; then
1950  eval ac_cv_prog_make_${ac_make}_set=yes
1951else
1952  eval ac_cv_prog_make_${ac_make}_set=no
1953fi
1954rm -f conftestmake
1955fi
1956if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1957  echo "$ac_t""yes" 1>&6
1958  SET_MAKE=
1959else
1960  echo "$ac_t""no" 1>&6
1961  SET_MAKE="MAKE=${MAKE-make}"
1962fi
1963
1964
1965
1966ac_aux_dir=
1967for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1968  if test -f $ac_dir/install-sh; then
1969    ac_aux_dir=$ac_dir
1970    ac_install_sh="$ac_aux_dir/install-sh -c"
1971    break
1972  elif test -f $ac_dir/install.sh; then
1973    ac_aux_dir=$ac_dir
1974    ac_install_sh="$ac_aux_dir/install.sh -c"
1975    break
1976  fi
1977done
1978if test -z "$ac_aux_dir"; then
1979  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1980fi
1981ac_config_guess=$ac_aux_dir/config.guess
1982ac_config_sub=$ac_aux_dir/config.sub
1983ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1984
1985subdirs="$CONFIG_SUBDIRS"
1986 
1987
1988trap '' 1 2 15
1989cat > confcache <<\EOF
1990# This file is a shell script that caches the results of configure
1991# tests run on this system so they can be shared between configure
1992# scripts and configure runs.  It is not useful on other systems.
1993# If it contains results you don't want to keep, you may remove or edit it.
1994#
1995# By default, configure uses ./config.cache as the cache file,
1996# creating it if it does not exist already.  You can give configure
1997# the --cache-file=FILE option to use a different cache file; that is
1998# what configure does when it calls configure scripts in
1999# subdirectories, so they share the cache.
2000# Giving --cache-file=/dev/null disables caching, for debugging configure.
2001# config.status only pays attention to the cache file if you give it the
2002# --recheck option to rerun configure.
2003#
2004EOF
2005# The following way of writing the cache mishandles newlines in values,
2006# but we know of no workaround that is simple, portable, and efficient.
2007# So, don't put newlines in cache variables' values.
2008# Ultrix sh set writes to stderr and can't be redirected directly,
2009# and sets the high bit in the cache file unless we assign to the vars.
2010(set) 2>&1 |
2011  case `(ac_space=' '; set) 2>&1` in
2012  *ac_space=\ *)
2013    # `set' does not quote correctly, so add quotes (double-quote substitution
2014    # turns \\\\ into \\, and sed turns \\ into \).
2015    sed -n \
2016      -e "s/'/'\\\\''/g" \
2017      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2018    ;;
2019  *)
2020    # `set' quotes correctly as required by POSIX, so do not add quotes.
2021    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2022    ;;
2023  esac >> confcache
2024if cmp -s $cache_file confcache; then
2025  :
2026else
2027  if test -w $cache_file; then
2028    echo "updating cache $cache_file"
2029    cat confcache > $cache_file
2030  else
2031    echo "not updating unwritable cache $cache_file"
2032  fi
2033fi
2034rm -f confcache
2035
2036trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2037
2038test "x$prefix" = xNONE && prefix=$ac_default_prefix
2039# Let make expand exec_prefix.
2040test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2041
2042# Any assignment to VPATH causes Sun make to only execute
2043# the first set of double-colon rules, so remove it if not needed.
2044# If there is a colon in the path, we need to keep it.
2045if test "x$srcdir" = x.; then
2046  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2047fi
2048
2049trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2050
2051# Transform confdefs.h into DEFS.
2052# Protect against shell expansion while executing Makefile rules.
2053# Protect against Makefile macro expansion.
2054cat > conftest.defs <<\EOF
2055s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2056s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2057s%\[%\\&%g
2058s%\]%\\&%g
2059s%\$%$$%g
2060EOF
2061DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2062rm -f conftest.defs
2063
2064
2065# Without the "./", some shells look in PATH for config.status.
2066: ${CONFIG_STATUS=./config.status}
2067
2068echo creating $CONFIG_STATUS
2069rm -f $CONFIG_STATUS
2070cat > $CONFIG_STATUS <<EOF
2071#! /bin/sh
2072# Generated automatically by configure.
2073# Run this file to recreate the current configuration.
2074# This directory was configured as follows,
2075# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2076#
2077# $0 $ac_configure_args
2078#
2079# Compiler output produced by configure, useful for debugging
2080# configure, is in ./config.log if it exists.
2081
2082ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2083for ac_option
2084do
2085  case "\$ac_option" in
2086  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2087    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2088    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2089  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2090    echo "$CONFIG_STATUS generated by autoconf version 2.12"
2091    exit 0 ;;
2092  -help | --help | --hel | --he | --h)
2093    echo "\$ac_cs_usage"; exit 0 ;;
2094  *) echo "\$ac_cs_usage"; exit 1 ;;
2095  esac
2096done
2097
2098ac_given_srcdir=$srcdir
2099
2100trap 'rm -fr `echo "${OUTPUT_MAKEFILES}" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2101EOF
2102cat >> $CONFIG_STATUS <<EOF
2103
2104# Protect against being on the right side of a sed subst in config.status.
2105sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2106 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2107$ac_vpsub
2108$extrasub
2109s%@CFLAGS@%$CFLAGS%g
2110s%@CPPFLAGS@%$CPPFLAGS%g
2111s%@CXXFLAGS@%$CXXFLAGS%g
2112s%@DEFS@%$DEFS%g
2113s%@LDFLAGS@%$LDFLAGS%g
2114s%@LIBS@%$LIBS%g
2115s%@exec_prefix@%$exec_prefix%g
2116s%@prefix@%$prefix%g
2117s%@program_transform_name@%$program_transform_name%g
2118s%@bindir@%$bindir%g
2119s%@sbindir@%$sbindir%g
2120s%@libexecdir@%$libexecdir%g
2121s%@datadir@%$datadir%g
2122s%@sysconfdir@%$sysconfdir%g
2123s%@sharedstatedir@%$sharedstatedir%g
2124s%@localstatedir@%$localstatedir%g
2125s%@libdir@%$libdir%g
2126s%@includedir@%$includedir%g
2127s%@oldincludedir@%$oldincludedir%g
2128s%@infodir@%$infodir%g
2129s%@mandir@%$mandir%g
2130s%@SINGUNAME@%$SINGUNAME%g
2131s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g
2132s%@SINGULAR_DOS_VERSION@%$SINGULAR_DOS_VERSION%g
2133s%@CC@%$CC%g
2134s%@CPP@%$CPP%g
2135s%@PERL@%$PERL%g
2136s%@LN_S@%$LN_S%g
2137s%@SINGULAR@%$SINGULAR%g
2138s%@SET_MAKE@%$SET_MAKE%g
2139s%@SUBDIRS@%$SUBDIRS%g
2140s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g
2141s%@subdirs@%$subdirs%g
2142
2143CEOF
2144EOF
2145
2146cat >> $CONFIG_STATUS <<\EOF
2147
2148# Split the substitutions into bite-sized pieces for seds with
2149# small command number limits, like on Digital OSF/1 and HP-UX.
2150ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2151ac_file=1 # Number of current file.
2152ac_beg=1 # First line for current file.
2153ac_end=$ac_max_sed_cmds # Line after last line for current file.
2154ac_more_lines=:
2155ac_sed_cmds=""
2156while $ac_more_lines; do
2157  if test $ac_beg -gt 1; then
2158    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2159  else
2160    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2161  fi
2162  if test ! -s conftest.s$ac_file; then
2163    ac_more_lines=false
2164    rm -f conftest.s$ac_file
2165  else
2166    if test -z "$ac_sed_cmds"; then
2167      ac_sed_cmds="sed -f conftest.s$ac_file"
2168    else
2169      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2170    fi
2171    ac_file=`expr $ac_file + 1`
2172    ac_beg=$ac_end
2173    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2174  fi
2175done
2176if test -z "$ac_sed_cmds"; then
2177  ac_sed_cmds=cat
2178fi
2179EOF
2180
2181cat >> $CONFIG_STATUS <<EOF
2182
2183CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"}
2184EOF
2185cat >> $CONFIG_STATUS <<\EOF
2186for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2187  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2188  case "$ac_file" in
2189  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2190       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2191  *) ac_file_in="${ac_file}.in" ;;
2192  esac
2193
2194  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2195
2196  # Remove last slash and all that follows it.  Not all systems have dirname.
2197  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2198  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2199    # The file is in a subdirectory.
2200    test ! -d "$ac_dir" && mkdir "$ac_dir"
2201    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2202    # A "../" for each directory in $ac_dir_suffix.
2203    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2204  else
2205    ac_dir_suffix= ac_dots=
2206  fi
2207
2208  case "$ac_given_srcdir" in
2209  .)  srcdir=.
2210      if test -z "$ac_dots"; then top_srcdir=.
2211      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2212  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2213  *) # Relative path.
2214    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2215    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2216  esac
2217
2218
2219  echo creating "$ac_file"
2220  rm -f "$ac_file"
2221  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2222  case "$ac_file" in
2223  *Makefile*) ac_comsub="1i\\
2224# $configure_input" ;;
2225  *) ac_comsub= ;;
2226  esac
2227
2228  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2229  sed -e "$ac_comsub
2230s%@configure_input@%$configure_input%g
2231s%@srcdir@%$srcdir%g
2232s%@top_srcdir@%$top_srcdir%g
2233" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2234fi; done
2235rm -f conftest.s*
2236
2237EOF
2238cat >> $CONFIG_STATUS <<EOF
2239
2240EOF
2241cat >> $CONFIG_STATUS <<\EOF
2242
2243exit 0
2244EOF
2245chmod +x $CONFIG_STATUS
2246rm -fr confdefs* $ac_clean_files
2247test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2248
2249if test "$no_recursion" != yes; then
2250
2251  # Remove --cache-file and --srcdir arguments so they do not pile up.
2252  ac_sub_configure_args=
2253  ac_prev=
2254  for ac_arg in $ac_configure_args; do
2255    if test -n "$ac_prev"; then
2256      ac_prev=
2257      continue
2258    fi
2259    case "$ac_arg" in
2260    -cache-file | --cache-file | --cache-fil | --cache-fi \
2261    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2262      ac_prev=cache_file ;;
2263    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2264    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2265      ;;
2266    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2267      ac_prev=srcdir ;;
2268    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2269      ;;
2270    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2271    esac
2272  done
2273
2274  for ac_config_dir in $CONFIG_SUBDIRS; do
2275
2276    # Do not complain, so a configure script can configure whichever
2277    # parts of a large source tree are present.
2278    if test ! -d $srcdir/$ac_config_dir; then
2279      continue
2280    fi
2281
2282    echo configuring in $ac_config_dir
2283
2284    case "$srcdir" in
2285    .) ;;
2286    *)
2287      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2288      else
2289        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2290      fi
2291      ;;
2292    esac
2293
2294    ac_popdir=`pwd`
2295    cd $ac_config_dir
2296
2297      # A "../" for each directory in /$ac_config_dir.
2298      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2299
2300    case "$srcdir" in
2301    .) # No --srcdir option.  We are building in place.
2302      ac_sub_srcdir=$srcdir ;;
2303    /*) # Absolute path.
2304      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2305    *) # Relative path.
2306      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2307    esac
2308
2309    # Check for guested configure; otherwise get Cygnus style configure.
2310    if test -f $ac_sub_srcdir/configure; then
2311      ac_sub_configure=$ac_sub_srcdir/configure
2312    elif test -f $ac_sub_srcdir/configure.in; then
2313      ac_sub_configure=$ac_configure
2314    else
2315      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2316      ac_sub_configure=
2317    fi
2318
2319    # The recursion is here.
2320    if test -n "$ac_sub_configure"; then
2321
2322      # Make the cache file name correct relative to the subdirectory.
2323      case "$cache_file" in
2324      /*) ac_sub_cache_file=$cache_file ;;
2325      *) # Relative path.
2326        ac_sub_cache_file="$ac_dots$cache_file" ;;
2327      esac
2328
2329      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2330      # The eval makes quoting arguments work.
2331      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2332      then :
2333      else
2334        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2335      fi
2336    fi
2337
2338    cd $ac_popdir
2339  done
2340fi
2341
2342
Note: See TracBrowser for help on using the repository browser.