source: git/configure @ 0f0974

fieker-DuValspielwiese
Last change on this file since 0f0974 was 3854a98, checked in by Olaf Bachmann <obachman@…>, 25 years ago
* increased version to 1-3-3 * added "Development" in start-up logo, unless -DMAKE_DISTRIBUTION * fixed finidng of doc file git-svn-id: file:///usr/local/Singular/svn/trunk@3019 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 70.8 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"
567if test -d "mpr"; then
568   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" mpr/Makefile"
569fi
570if test -d "rpm"; then
571   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" rpm/Makefile"
572   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" rpm/rpmrc rpm/Singular.spec"
573fi
574if test -d "modules"; then
575   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" modules/Makefile"
576fi
577if test -d "modules/tools"; then
578   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" modules/tools/Makefile"
579fi
580
581echo $ac_n "checking uname for singular""... $ac_c" 1>&6
582echo "configure:583: checking uname for singular" >&5
583if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
584  echo $ac_n "(cached) $ac_c" 1>&6
585else
586  ac_cv_singuname="unknown"
587if test -r "singuname.sh"; then
588  if (/bin/sh singuname.sh >/dev/null 2>&1) then
589    ac_cv_singuname=`/bin/sh singuname.sh`
590  fi
591fi
592
593fi
594
595echo "$ac_t""$ac_cv_singuname" 1>&6
596if test "$ac_cv_singuname" = unknown; then
597  { echo "configure: error: Unknown architecture: Check singuname.sh" 1>&2; exit 1; }
598else
599  SINGUNAME=$ac_cv_singuname
600 
601fi
602
603VERSION_SEP="-"
604
605# make them to env variables
606# pass them indirectly to subsequent configures
607SINGULAR_MAJOR_VERSION=1
608SINGULAR_MINOR_VERSION=3
609SINGULAR_SUB_VERSION=3
610SINGULAR_VERSION="${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}"
611VERSION_DATE="May 1999"
612SINGULAR_DOS_VERSION="${SINGULAR_MAJOR_VERSION}-${SINGULAR_MINOR_VERSION}-${SINGULAR_SUB_VERSION}"
613export SINGULAR_MINOR_VERSION
614export SINGULAR_MAJOR_VERSION
615export SINGULAR_SUB_VERSION
616export SINGULAR_VERSION
617export VERSION_DATE
618
619
620
621
622# Extract the first word of "gcc", so it can be a program name with args.
623set dummy gcc; ac_word=$2
624echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
625echo "configure:626: checking for $ac_word" >&5
626if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
627  echo $ac_n "(cached) $ac_c" 1>&6
628else
629  if test -n "$CC"; then
630  ac_cv_prog_CC="$CC" # Let the user override the test.
631else
632  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
633  for ac_dir in $PATH; do
634    test -z "$ac_dir" && ac_dir=.
635    if test -f $ac_dir/$ac_word; then
636      ac_cv_prog_CC="gcc"
637      break
638    fi
639  done
640  IFS="$ac_save_ifs"
641fi
642fi
643CC="$ac_cv_prog_CC"
644if test -n "$CC"; then
645  echo "$ac_t""$CC" 1>&6
646else
647  echo "$ac_t""no" 1>&6
648fi
649
650if test -z "$CC"; then
651  # Extract the first word of "cc", so it can be a program name with args.
652set dummy cc; ac_word=$2
653echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
654echo "configure:655: checking for $ac_word" >&5
655if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
656  echo $ac_n "(cached) $ac_c" 1>&6
657else
658  if test -n "$CC"; then
659  ac_cv_prog_CC="$CC" # Let the user override the test.
660else
661  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
662  ac_prog_rejected=no
663  for ac_dir in $PATH; do
664    test -z "$ac_dir" && ac_dir=.
665    if test -f $ac_dir/$ac_word; then
666      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
667        ac_prog_rejected=yes
668        continue
669      fi
670      ac_cv_prog_CC="cc"
671      break
672    fi
673  done
674  IFS="$ac_save_ifs"
675if test $ac_prog_rejected = yes; then
676  # We found a bogon in the path, so make sure we never use it.
677  set dummy $ac_cv_prog_CC
678  shift
679  if test $# -gt 0; then
680    # We chose a different compiler from the bogus one.
681    # However, it has the same basename, so the bogon will be chosen
682    # first if we set CC to just the basename; use the full file name.
683    shift
684    set dummy "$ac_dir/$ac_word" "$@"
685    shift
686    ac_cv_prog_CC="$@"
687  fi
688fi
689fi
690fi
691CC="$ac_cv_prog_CC"
692if test -n "$CC"; then
693  echo "$ac_t""$CC" 1>&6
694else
695  echo "$ac_t""no" 1>&6
696fi
697
698  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
699fi
700
701echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
702echo "configure:703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
703
704ac_ext=c
705# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
706ac_cpp='$CPP $CPPFLAGS'
707ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
708ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
709cross_compiling=$ac_cv_prog_cc_cross
710
711cat > conftest.$ac_ext <<EOF
712#line 713 "configure"
713#include "confdefs.h"
714main(){return(0);}
715EOF
716if { (eval echo configure:717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
717  ac_cv_prog_cc_works=yes
718  # If we can't run a trivial program, we are probably using a cross compiler.
719  if (./conftest; exit) 2>/dev/null; then
720    ac_cv_prog_cc_cross=no
721  else
722    ac_cv_prog_cc_cross=yes
723  fi
724else
725  echo "configure: failed program was:" >&5
726  cat conftest.$ac_ext >&5
727  ac_cv_prog_cc_works=no
728fi
729rm -fr conftest*
730
731echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
732if test $ac_cv_prog_cc_works = no; then
733  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
734fi
735echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
736echo "configure:737: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
737echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
738cross_compiling=$ac_cv_prog_cc_cross
739
740echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
741echo "configure:742: checking whether we are using GNU C" >&5
742if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
743  echo $ac_n "(cached) $ac_c" 1>&6
744else
745  cat > conftest.c <<EOF
746#ifdef __GNUC__
747  yes;
748#endif
749EOF
750if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
751  ac_cv_prog_gcc=yes
752else
753  ac_cv_prog_gcc=no
754fi
755fi
756
757echo "$ac_t""$ac_cv_prog_gcc" 1>&6
758
759if test $ac_cv_prog_gcc = yes; then
760  GCC=yes
761  ac_test_CFLAGS="${CFLAGS+set}"
762  ac_save_CFLAGS="$CFLAGS"
763  CFLAGS=
764  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
765echo "configure:766: checking whether ${CC-cc} accepts -g" >&5
766if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
767  echo $ac_n "(cached) $ac_c" 1>&6
768else
769  echo 'void f(){}' > conftest.c
770if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
771  ac_cv_prog_cc_g=yes
772else
773  ac_cv_prog_cc_g=no
774fi
775rm -f conftest*
776
777fi
778
779echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
780  if test "$ac_test_CFLAGS" = set; then
781    CFLAGS="$ac_save_CFLAGS"
782  elif test $ac_cv_prog_cc_g = yes; then
783    CFLAGS="-g -O2"
784  else
785    CFLAGS="-O2"
786  fi
787else
788  GCC=
789  test "${CFLAGS+set}" = set || CFLAGS="-g"
790fi
791
792echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
793echo "configure:794: checking how to run the C preprocessor" >&5
794# On Suns, sometimes $CPP names a directory.
795if test -n "$CPP" && test -d "$CPP"; then
796  CPP=
797fi
798if test -z "$CPP"; then
799if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
800  echo $ac_n "(cached) $ac_c" 1>&6
801else
802    # This must be in double quotes, not single quotes, because CPP may get
803  # substituted into the Makefile and "${CC-cc}" will confuse make.
804  CPP="${CC-cc} -E"
805  # On the NeXT, cc -E runs the code through the compiler's parser,
806  # not just through cpp.
807  cat > conftest.$ac_ext <<EOF
808#line 809 "configure"
809#include "confdefs.h"
810#include <assert.h>
811Syntax Error
812EOF
813ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
814{ (eval echo configure:815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
815ac_err=`grep -v '^ *+' conftest.out`
816if test -z "$ac_err"; then
817  :
818else
819  echo "$ac_err" >&5
820  echo "configure: failed program was:" >&5
821  cat conftest.$ac_ext >&5
822  rm -rf conftest*
823  CPP="${CC-cc} -E -traditional-cpp"
824  cat > conftest.$ac_ext <<EOF
825#line 826 "configure"
826#include "confdefs.h"
827#include <assert.h>
828Syntax Error
829EOF
830ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
831{ (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
832ac_err=`grep -v '^ *+' conftest.out`
833if test -z "$ac_err"; then
834  :
835else
836  echo "$ac_err" >&5
837  echo "configure: failed program was:" >&5
838  cat conftest.$ac_ext >&5
839  rm -rf conftest*
840  CPP=/lib/cpp
841fi
842rm -f conftest*
843fi
844rm -f conftest*
845  ac_cv_prog_CPP="$CPP"
846fi
847  CPP="$ac_cv_prog_CPP"
848else
849  ac_cv_prog_CPP="$CPP"
850fi
851echo "$ac_t""$CPP" 1>&6
852
853echo $ac_n "checking for AIX""... $ac_c" 1>&6
854echo "configure:855: checking for AIX" >&5
855cat > conftest.$ac_ext <<EOF
856#line 857 "configure"
857#include "confdefs.h"
858#ifdef _AIX
859  yes
860#endif
861
862EOF
863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
864  egrep "yes" >/dev/null 2>&1; then
865  rm -rf conftest*
866  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
867#define _ALL_SOURCE 1
868EOF
869
870else
871  rm -rf conftest*
872  echo "$ac_t""no" 1>&6
873fi
874rm -f conftest*
875
876
877
878for ac_prog in perl5 perl
879do
880# Extract the first word of "$ac_prog", so it can be a program name with args.
881set dummy $ac_prog; ac_word=$2
882echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
883echo "configure:884: checking for $ac_word" >&5
884if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
885  echo $ac_n "(cached) $ac_c" 1>&6
886else
887  if test -n "$PERL"; then
888  ac_cv_prog_PERL="$PERL" # Let the user override the test.
889else
890  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
891  for ac_dir in $PATH; do
892    test -z "$ac_dir" && ac_dir=.
893    if test -f $ac_dir/$ac_word; then
894      ac_cv_prog_PERL="$ac_prog"
895      break
896    fi
897  done
898  IFS="$ac_save_ifs"
899fi
900fi
901PERL="$ac_cv_prog_PERL"
902if test -n "$PERL"; then
903  echo "$ac_t""$PERL" 1>&6
904else
905  echo "$ac_t""no" 1>&6
906fi
907
908test -n "$PERL" && break
909done
910
911echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
912echo "configure:913: checking whether ln -s works" >&5
913if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
914  echo $ac_n "(cached) $ac_c" 1>&6
915else
916  rm -f conftestdata
917if ln -s X conftestdata 2>/dev/null
918then
919  rm -f conftestdata
920  ac_cv_prog_LN_S="ln -s"
921else
922  ac_cv_prog_LN_S=ln
923fi
924fi
925LN_S="$ac_cv_prog_LN_S"
926if test "$ac_cv_prog_LN_S" = "ln -s"; then
927  echo "$ac_t""yes" 1>&6
928else
929  echo "$ac_t""no" 1>&6
930fi
931
932
933# expand prefix and pass it to subsequent configures
934if test "x$prefix" = xNONE; then
935  prefix=${ac_default_prefix}
936  ac_configure_args="$ac_configure_args --prefix=${prefix}"
937fi
938
939# expand exec_prefix
940if test "x$exec_prefix" = xNONE; then
941 exec_prefix=${prefix}/${ac_cv_singuname}
942 ac_configure_args="$ac_configure_args --exec_prefix=${exec_prefix}"
943fi
944
945# expand bindir
946if test "x$bindir" = 'x${exec_prefix}/bin'; then
947  bindir="${exec_prefix}/bin"
948  ac_configure_args="$ac_configure_args --bindir=${bindir}"
949fi
950
951# expand libdir
952if test "x$libdir" = 'x${exec_prefix}/lib'; then
953  libdir="${exec_prefix}/lib/${SINGULAR_VERSION}"
954  ac_configure_args="$ac_configure_args --libdir=${libdir}"
955fi
956
957# expand includedir
958if test "x$includedir" = 'x${prefix}/include'; then
959  includedir="${exec_prefix}/include/${SINGULAR_VERSION}"
960  ac_configure_args="$ac_configure_args --includedir=${includedir}"
961fi
962
963# construct name of installed Singular executable
964SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}
965export SINGULAR
966
967
968
969# add -I to CPPFLAGS and -L to LDFLAGS, just to be sure
970LDFLAGS="-L${libdir} ${LDFLAGS}"
971CPPFLAGS="-I${includedir} ${CPPFLAGS}"
972
973# check for AIX
974echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
975echo "configure:976: checking whether _AIX is defined" >&5
976if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
977  echo $ac_n "(cached) $ac_c" 1>&6
978else
979  cat > conftest.$ac_ext <<EOF
980#line 981 "configure"
981#include "confdefs.h"
982#ifdef _AIX
983    yes
984#endif
985
986EOF
987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
988  egrep "yes" >/dev/null 2>&1; then
989  rm -rf conftest*
990  ac_cv_is_aix=yes
991else
992  rm -rf conftest*
993  ac_cv_is_aix=no
994fi
995rm -f conftest*
996
997fi
998
999if test "$ac_cv_is_aix" = yes; then
1000  echo "$ac_t""yes" 1>&6
1001else
1002  echo "$ac_t""no" 1>&6
1003fi
1004
1005echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
1006echo "configure:1007: checking for atof in -lm" >&5
1007ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
1008if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1009  echo $ac_n "(cached) $ac_c" 1>&6
1010else
1011  ac_save_LIBS="$LIBS"
1012LIBS="-lm  $LIBS"
1013cat > conftest.$ac_ext <<EOF
1014#line 1015 "configure"
1015#include "confdefs.h"
1016/* Override any gcc2 internal prototype to avoid an error.  */
1017/* We use char because int might match the return type of a gcc2
1018    builtin and then its argument prototype would still apply.  */
1019char atof();
1020
1021int main() {
1022atof()
1023; return 0; }
1024EOF
1025if { (eval echo configure:1026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1026  rm -rf conftest*
1027  eval "ac_cv_lib_$ac_lib_var=yes"
1028else
1029  echo "configure: failed program was:" >&5
1030  cat conftest.$ac_ext >&5
1031  rm -rf conftest*
1032  eval "ac_cv_lib_$ac_lib_var=no"
1033fi
1034rm -f conftest*
1035LIBS="$ac_save_LIBS"
1036
1037fi
1038if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1039  echo "$ac_t""yes" 1>&6
1040    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1041    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1042  cat >> confdefs.h <<EOF
1043#define $ac_tr_lib 1
1044EOF
1045
1046  LIBS="-lm $LIBS"
1047
1048else
1049  echo "$ac_t""no" 1>&6
1050fi
1051
1052echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
1053echo "configure:1054: checking for socket in -lbsd" >&5
1054ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
1055if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1056  echo $ac_n "(cached) $ac_c" 1>&6
1057else
1058  ac_save_LIBS="$LIBS"
1059LIBS="-lbsd  $LIBS"
1060cat > conftest.$ac_ext <<EOF
1061#line 1062 "configure"
1062#include "confdefs.h"
1063/* Override any gcc2 internal prototype to avoid an error.  */
1064/* We use char because int might match the return type of a gcc2
1065    builtin and then its argument prototype would still apply.  */
1066char socket();
1067
1068int main() {
1069socket()
1070; return 0; }
1071EOF
1072if { (eval echo configure:1073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1073  rm -rf conftest*
1074  eval "ac_cv_lib_$ac_lib_var=yes"
1075else
1076  echo "configure: failed program was:" >&5
1077  cat conftest.$ac_ext >&5
1078  rm -rf conftest*
1079  eval "ac_cv_lib_$ac_lib_var=no"
1080fi
1081rm -f conftest*
1082LIBS="$ac_save_LIBS"
1083
1084fi
1085if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1086  echo "$ac_t""yes" 1>&6
1087    ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1088    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1089  cat >> confdefs.h <<EOF
1090#define $ac_tr_lib 1
1091EOF
1092
1093  LIBS="-lbsd $LIBS"
1094
1095else
1096  echo "$ac_t""no" 1>&6
1097fi
1098
1099echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6
1100echo "configure:1101: checking for listen in -lsocket" >&5
1101ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'`
1102if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1103  echo $ac_n "(cached) $ac_c" 1>&6
1104else
1105  ac_save_LIBS="$LIBS"
1106LIBS="-lsocket  $LIBS"
1107cat > conftest.$ac_ext <<EOF
1108#line 1109 "configure"
1109#include "confdefs.h"
1110/* Override any gcc2 internal prototype to avoid an error.  */
1111/* We use char because int might match the return type of a gcc2
1112    builtin and then its argument prototype would still apply.  */
1113char listen();
1114
1115int main() {
1116listen()
1117; return 0; }
1118EOF
1119if { (eval echo configure:1120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1120  rm -rf conftest*
1121  eval "ac_cv_lib_$ac_lib_var=yes"
1122else
1123  echo "configure: failed program was:" >&5
1124  cat conftest.$ac_ext >&5
1125  rm -rf conftest*
1126  eval "ac_cv_lib_$ac_lib_var=no"
1127fi
1128rm -f conftest*
1129LIBS="$ac_save_LIBS"
1130
1131fi
1132if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1133  echo "$ac_t""yes" 1>&6
1134    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1135    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1136  cat >> confdefs.h <<EOF
1137#define $ac_tr_lib 1
1138EOF
1139
1140  LIBS="-lsocket $LIBS"
1141
1142else
1143  echo "$ac_t""no" 1>&6
1144fi
1145
1146echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1147echo "configure:1148: checking for gethostbyname in -lnsl" >&5
1148ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1149if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1150  echo $ac_n "(cached) $ac_c" 1>&6
1151else
1152  ac_save_LIBS="$LIBS"
1153LIBS="-lnsl  $LIBS"
1154cat > conftest.$ac_ext <<EOF
1155#line 1156 "configure"
1156#include "confdefs.h"
1157/* Override any gcc2 internal prototype to avoid an error.  */
1158/* We use char because int might match the return type of a gcc2
1159    builtin and then its argument prototype would still apply.  */
1160char gethostbyname();
1161
1162int main() {
1163gethostbyname()
1164; return 0; }
1165EOF
1166if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1167  rm -rf conftest*
1168  eval "ac_cv_lib_$ac_lib_var=yes"
1169else
1170  echo "configure: failed program was:" >&5
1171  cat conftest.$ac_ext >&5
1172  rm -rf conftest*
1173  eval "ac_cv_lib_$ac_lib_var=no"
1174fi
1175rm -f conftest*
1176LIBS="$ac_save_LIBS"
1177
1178fi
1179if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1180  echo "$ac_t""yes" 1>&6
1181    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1182    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1183  cat >> confdefs.h <<EOF
1184#define $ac_tr_lib 1
1185EOF
1186
1187  LIBS="-lnsl $LIBS"
1188
1189else
1190  echo "$ac_t""no" 1>&6
1191fi
1192
1193echo $ac_n "checking for mpq_init in -lgmp""... $ac_c" 1>&6
1194echo "configure:1195: checking for mpq_init in -lgmp" >&5
1195ac_lib_var=`echo gmp'_'mpq_init | sed 'y%./+-%__p_%'`
1196if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1197  echo $ac_n "(cached) $ac_c" 1>&6
1198else
1199  ac_save_LIBS="$LIBS"
1200LIBS="-lgmp  $LIBS"
1201cat > conftest.$ac_ext <<EOF
1202#line 1203 "configure"
1203#include "confdefs.h"
1204/* Override any gcc2 internal prototype to avoid an error.  */
1205/* We use char because int might match the return type of a gcc2
1206    builtin and then its argument prototype would still apply.  */
1207char mpq_init();
1208
1209int main() {
1210mpq_init()
1211; return 0; }
1212EOF
1213if { (eval echo configure:1214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1214  rm -rf conftest*
1215  eval "ac_cv_lib_$ac_lib_var=yes"
1216else
1217  echo "configure: failed program was:" >&5
1218  cat conftest.$ac_ext >&5
1219  rm -rf conftest*
1220  eval "ac_cv_lib_$ac_lib_var=no"
1221fi
1222rm -f conftest*
1223LIBS="$ac_save_LIBS"
1224
1225fi
1226if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1227  echo "$ac_t""yes" 1>&6
1228    ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1229    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1230  cat >> confdefs.h <<EOF
1231#define $ac_tr_lib 1
1232EOF
1233
1234  LIBS="-lgmp $LIBS"
1235
1236else
1237  echo "$ac_t""no" 1>&6
1238fi
1239
1240echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6
1241echo "configure:1242: checking for mpz_init in -lsmallgmp" >&5
1242ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'`
1243if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1244  echo $ac_n "(cached) $ac_c" 1>&6
1245else
1246  ac_save_LIBS="$LIBS"
1247LIBS="-lsmallgmp  $LIBS"
1248cat > conftest.$ac_ext <<EOF
1249#line 1250 "configure"
1250#include "confdefs.h"
1251/* Override any gcc2 internal prototype to avoid an error.  */
1252/* We use char because int might match the return type of a gcc2
1253    builtin and then its argument prototype would still apply.  */
1254char mpz_init();
1255
1256int main() {
1257mpz_init()
1258; return 0; }
1259EOF
1260if { (eval echo configure:1261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1261  rm -rf conftest*
1262  eval "ac_cv_lib_$ac_lib_var=yes"
1263else
1264  echo "configure: failed program was:" >&5
1265  cat conftest.$ac_ext >&5
1266  rm -rf conftest*
1267  eval "ac_cv_lib_$ac_lib_var=no"
1268fi
1269rm -f conftest*
1270LIBS="$ac_save_LIBS"
1271
1272fi
1273if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1274  echo "$ac_t""yes" 1>&6
1275    ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1276    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1277  cat >> confdefs.h <<EOF
1278#define $ac_tr_lib 1
1279EOF
1280
1281  LIBS="-lsmallgmp $LIBS"
1282
1283else
1284  echo "$ac_t""no" 1>&6
1285fi
1286
1287echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
1288echo "configure:1289: checking for IMP_PutGmpInt in -lMP" >&5
1289ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
1290if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1291  echo $ac_n "(cached) $ac_c" 1>&6
1292else
1293  ac_save_LIBS="$LIBS"
1294LIBS="-lMP  $LIBS"
1295cat > conftest.$ac_ext <<EOF
1296#line 1297 "configure"
1297#include "confdefs.h"
1298/* Override any gcc2 internal prototype to avoid an error.  */
1299/* We use char because int might match the return type of a gcc2
1300    builtin and then its argument prototype would still apply.  */
1301char IMP_PutGmpInt();
1302
1303int main() {
1304IMP_PutGmpInt()
1305; return 0; }
1306EOF
1307if { (eval echo configure:1308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1308  rm -rf conftest*
1309  eval "ac_cv_lib_$ac_lib_var=yes"
1310else
1311  echo "configure: failed program was:" >&5
1312  cat conftest.$ac_ext >&5
1313  rm -rf conftest*
1314  eval "ac_cv_lib_$ac_lib_var=no"
1315fi
1316rm -f conftest*
1317LIBS="$ac_save_LIBS"
1318
1319fi
1320if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1321  echo "$ac_t""yes" 1>&6
1322    ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1323    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1324  cat >> confdefs.h <<EOF
1325#define $ac_tr_lib 1
1326EOF
1327
1328  LIBS="-lMP $LIBS"
1329
1330else
1331  echo "$ac_t""no" 1>&6
1332fi
1333
1334echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
1335echo "configure:1336: checking for MPT_GetTree in -lMPT" >&5
1336ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
1337if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1338  echo $ac_n "(cached) $ac_c" 1>&6
1339else
1340  ac_save_LIBS="$LIBS"
1341LIBS="-lMPT  $LIBS"
1342cat > conftest.$ac_ext <<EOF
1343#line 1344 "configure"
1344#include "confdefs.h"
1345/* Override any gcc2 internal prototype to avoid an error.  */
1346/* We use char because int might match the return type of a gcc2
1347    builtin and then its argument prototype would still apply.  */
1348char MPT_GetTree();
1349
1350int main() {
1351MPT_GetTree()
1352; return 0; }
1353EOF
1354if { (eval echo configure:1355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1355  rm -rf conftest*
1356  eval "ac_cv_lib_$ac_lib_var=yes"
1357else
1358  echo "configure: failed program was:" >&5
1359  cat conftest.$ac_ext >&5
1360  rm -rf conftest*
1361  eval "ac_cv_lib_$ac_lib_var=no"
1362fi
1363rm -f conftest*
1364LIBS="$ac_save_LIBS"
1365
1366fi
1367if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1368  echo "$ac_t""yes" 1>&6
1369    ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1370    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1371  cat >> confdefs.h <<EOF
1372#define $ac_tr_lib 1
1373EOF
1374
1375  LIBS="-lMPT $LIBS"
1376
1377else
1378  echo "$ac_t""no" 1>&6
1379fi
1380
1381echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
1382echo "configure:1383: checking for atof in -lsingcf" >&5
1383ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
1384if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1385  echo $ac_n "(cached) $ac_c" 1>&6
1386else
1387  ac_save_LIBS="$LIBS"
1388LIBS="-lsingcf  $LIBS"
1389cat > conftest.$ac_ext <<EOF
1390#line 1391 "configure"
1391#include "confdefs.h"
1392/* Override any gcc2 internal prototype to avoid an error.  */
1393/* We use char because int might match the return type of a gcc2
1394    builtin and then its argument prototype would still apply.  */
1395char atof();
1396
1397int main() {
1398atof()
1399; return 0; }
1400EOF
1401if { (eval echo configure:1402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1402  rm -rf conftest*
1403  eval "ac_cv_lib_$ac_lib_var=yes"
1404else
1405  echo "configure: failed program was:" >&5
1406  cat conftest.$ac_ext >&5
1407  rm -rf conftest*
1408  eval "ac_cv_lib_$ac_lib_var=no"
1409fi
1410rm -f conftest*
1411LIBS="$ac_save_LIBS"
1412
1413fi
1414if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1415  echo "$ac_t""yes" 1>&6
1416    ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1417    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1418  cat >> confdefs.h <<EOF
1419#define $ac_tr_lib 1
1420EOF
1421
1422  LIBS="-lsingcf $LIBS"
1423
1424else
1425  echo "$ac_t""no" 1>&6
1426fi
1427
1428echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
1429echo "configure:1430: checking for atof in -lsingfac" >&5
1430ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
1431if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1432  echo $ac_n "(cached) $ac_c" 1>&6
1433else
1434  ac_save_LIBS="$LIBS"
1435LIBS="-lsingfac  $LIBS"
1436cat > conftest.$ac_ext <<EOF
1437#line 1438 "configure"
1438#include "confdefs.h"
1439/* Override any gcc2 internal prototype to avoid an error.  */
1440/* We use char because int might match the return type of a gcc2
1441    builtin and then its argument prototype would still apply.  */
1442char atof();
1443
1444int main() {
1445atof()
1446; return 0; }
1447EOF
1448if { (eval echo configure:1449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1449  rm -rf conftest*
1450  eval "ac_cv_lib_$ac_lib_var=yes"
1451else
1452  echo "configure: failed program was:" >&5
1453  cat conftest.$ac_ext >&5
1454  rm -rf conftest*
1455  eval "ac_cv_lib_$ac_lib_var=no"
1456fi
1457rm -f conftest*
1458LIBS="$ac_save_LIBS"
1459
1460fi
1461if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1462  echo "$ac_t""yes" 1>&6
1463    ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1464    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1465  cat >> confdefs.h <<EOF
1466#define $ac_tr_lib 1
1467EOF
1468
1469  LIBS="-lsingfac $LIBS"
1470
1471else
1472  echo "$ac_t""no" 1>&6
1473fi
1474
1475
1476for ac_hdr in gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h
1477do
1478ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1479echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1480echo "configure:1481: checking for $ac_hdr" >&5
1481if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1482  echo $ac_n "(cached) $ac_c" 1>&6
1483else
1484  cat > conftest.$ac_ext <<EOF
1485#line 1486 "configure"
1486#include "confdefs.h"
1487#include <$ac_hdr>
1488EOF
1489ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1490{ (eval echo configure:1491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1491ac_err=`grep -v '^ *+' conftest.out`
1492if test -z "$ac_err"; then
1493  rm -rf conftest*
1494  eval "ac_cv_header_$ac_safe=yes"
1495else
1496  echo "$ac_err" >&5
1497  echo "configure: failed program was:" >&5
1498  cat conftest.$ac_ext >&5
1499  rm -rf conftest*
1500  eval "ac_cv_header_$ac_safe=no"
1501fi
1502rm -f conftest*
1503fi
1504if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1505  echo "$ac_t""yes" 1>&6
1506    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1507  cat >> confdefs.h <<EOF
1508#define $ac_tr_hdr 1
1509EOF
1510 
1511else
1512  echo "$ac_t""no" 1>&6
1513fi
1514done
1515
1516
1517if test "$ac_cv_lib_gmp_mpq_init" = yes && \
1518 test "$ac_cv_header_gmp_h" = yes; then
1519  ac_gmp_ok=yes
1520fi
1521
1522if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \
1523 test "$ac_cv_header_smallgmp_h" = yes && \
1524 test "$ac_cv_header_gmp_h" = yes; then
1525  ac_smallgmp_ok=yes
1526fi
1527
1528if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \
1529 test "$ac_cv_lib_MPT_MPT_GetTree" && \
1530 test "$ac_cv_header_MP_h" = yes && \
1531 test "$ac_cv_header_MPT_h" = yes; then
1532  ac_MP_ok=yes
1533fi
1534
1535if test "$ac_cv_lib_singcf_atof" = yes && \
1536 test "$ac_cv_header_factory_h" = yes; then
1537  ac_factory_ok=yes
1538fi
1539
1540if test "$ac_cv_lib_singfac_atof" = yes && \
1541 test "$ac_cv_header_factor_h" = yes; then
1542  ac_libfac_ok=yes
1543fi
1544
1545 
1546# Check whether --enable-smallgmp or --disable-smallgmp was given.
1547if test "${enable_smallgmp+set}" = set; then
1548  enableval="$enable_smallgmp"
1549  :
1550fi
1551
1552# Check whether --enable-gmp or --disable-gmp was given.
1553if test "${enable_gmp+set}" = set; then
1554  enableval="$enable_gmp"
1555  :
1556fi
1557
1558# Check whether --enable-MP or --disable-MP was given.
1559if test "${enable_MP+set}" = set; then
1560  enableval="$enable_MP"
1561  :
1562fi
1563
1564# Check whether --enable-factory or --disable-factory was given.
1565if test "${enable_factory+set}" = set; then
1566  enableval="$enable_factory"
1567  :
1568fi
1569
1570# Check whether --enable-libfac or --disable-libfac was given.
1571if test "${enable_libfac+set}" = set; then
1572  enableval="$enable_libfac"
1573  :
1574fi
1575
1576# Check whether --enable-sgroup or --disable-sgroup was given.
1577if test "${enable_sgroup+set}" = set; then
1578  enableval="$enable_sgroup"
1579  :
1580fi
1581
1582# Check whether --enable-Singular or --disable-Singular was given.
1583if test "${enable_Singular+set}" = set; then
1584  enableval="$enable_Singular"
1585  :
1586fi
1587
1588
1589# Check whether --with-MP or --without-MP was given.
1590if test "${with_MP+set}" = set; then
1591  withval="$with_MP"
1592  :
1593fi
1594
1595# Check whether --with-factory or --without-factory was given.
1596if test "${with_factory+set}" = set; then
1597  withval="$with_factory"
1598  :
1599fi
1600
1601# Check whether --with-libfac or --without-libfac was given.
1602if test "${with_libfac+set}" = set; then
1603  withval="$with_libfac"
1604  :
1605fi
1606
1607# Check whether --with-gmp or --without-gmp was given.
1608if test "${with_gmp+set}" = set; then
1609  withval="$with_gmp"
1610  :
1611fi
1612
1613
1614echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6
1615echo "configure:1616: checking whether to configure and build gmp lib" >&5
1616if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
1617  if test "$ac_gmp_ok" != yes && test -d gmp; then
1618    echo "$ac_t""yes" 1>&6
1619    enable_gmp=yes
1620    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
1621    ac_configure_args="$ac_configure_args --enable-gmp"
1622    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
1623  else
1624    echo "$ac_t""no" 1>&6
1625    enable_gmp=no
1626  fi
1627elif test "$enable_gmp" = yes; then
1628  if test ! -d gmp; then
1629    echo "$ac_t""no" 1>&6
1630    { echo "configure: error: Can not find gmp subdir" 1>&2; exit 1; }
1631  else
1632    echo "$ac_t""yes" 1>&6
1633    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
1634    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
1635  fi
1636else
1637  echo "$ac_t""no" 1>&6
1638fi
1639
1640echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6
1641echo "configure:1642: checking whether to configure and build smallgmp lib" >&5
1642if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
1643  if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
1644     test "$enable_gmp" != yes && test -d smallgmp; then
1645    echo "$ac_t""yes" 1>&6
1646    enable_smallgmp=yes
1647    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
1648    ac_configure_args="$ac_configure_args --enable-smallgmp --enable-gmp"
1649  else
1650    echo "$ac_t""no" 1>&6
1651    enable_smallgmp=no
1652  fi
1653elif test "$enable_smallgmp" = yes; then
1654  if test ! -d smallgmp; then
1655    echo "$ac_t""no" 1>&6
1656    { echo "configure: error: Can not find smallgmp subdir" 1>&2; exit 1; }
1657  else
1658    echo "$ac_t""yes" 1>&6
1659    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
1660    if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
1661      ac_configure_args="$ac_configure_args --enable-gmp"
1662    fi
1663  fi
1664else
1665  echo "$ac_t""${enable_smallgmp}" 1>&6
1666fi
1667
1668# Check whether we have at least one of smallgmp or gmp
1669if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
1670   test "$enable_smallgmp" != yes && test "$enable_gmp" != yes; then
1671  { echo "configure: error: can neither find nor built gmp or smallgmp" 1>&2; exit 1; }
1672fi
1673
1674# Check whether we need to cheat subsequent configures with --enable-gmp
1675if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes; then
1676  ac_configure_args="$ac_configure_args --enable-gmp"
1677fi
1678
1679echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6
1680echo "configure:1681: checking whether to configure and build MP lib" >&5
1681if test "$enable_MP" != yes && test "$enable_MP" != no; then
1682  if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
1683     (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then
1684    echo "$ac_t""yes" 1>&6
1685    enable_MP=yes
1686    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
1687    ac_configure_args="$ac_configure_args --enable-MP"
1688  else
1689    echo "$ac_t""no" 1>&6
1690    enable_MP=no
1691  fi
1692elif test "$enable_MP" = yes; then
1693  if test ! -d MP; then
1694    echo "$ac_t""no" 1>&6
1695    { echo "configure: error: can not build MP without MP directory" 1>&2; exit 1; }
1696  fi
1697  if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then
1698    echo "$ac_t""yes" 1>&6
1699    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
1700  else
1701    echo "$ac_t""no" 1>&6
1702    { echo "configure: error: can not build MP without gmp" 1>&2; exit 1; }
1703  fi
1704else
1705  echo "$ac_t""no" 1>&6
1706fi
1707 
1708echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
1709echo "configure:1710: checking whether to configure and build factory lib" >&5
1710if test "$enable_factory" != yes && test "$enable_factory" != no; then
1711  if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
1712     test -d factory; then
1713    enable_factory=yes
1714    echo "$ac_t""yes" 1>&6
1715    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
1716    ac_configure_args="$ac_configure_args --enable-factory"
1717  else
1718    enable_factory=no
1719    echo "$ac_t""no" 1>&6
1720  fi
1721elif test "$enable_factory" = yes; then
1722  if test -d factory; then
1723    echo "$ac_t""yes" 1>&6
1724    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
1725  else
1726    echo "$ac_t""no" 1>&6
1727    { echo "configure: error: can not build factory without factory directory" 1>&2; exit 1; }
1728  fi
1729else
1730  echo "$ac_t""no" 1>&6
1731fi
1732
1733echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
1734echo "configure:1735: checking whether to configure and build libfac lib" >&5
1735if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
1736  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
1737     test -d libfac && \
1738     (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then
1739    enable_libfac=yes
1740    echo "$ac_t""yes" 1>&6
1741    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
1742    ac_configure_args="$ac_configure_args --enable-libfac"
1743  else
1744    enable_libfac=no
1745    echo "$ac_t""no" 1>&6
1746  fi
1747elif  test "$enable_libfac" = yes; then
1748  if test ! -d libfac; then
1749    echo "$ac_t""no" 1>&6
1750    { echo "configure: error: can not build libfac without libfac directory" 1>&2; exit 1; }
1751  fi
1752  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
1753    echo "$ac_t""yes" 1>&6
1754    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
1755  else
1756    echo "$ac_t""no" 1>&6
1757    { echo "configure: error: Can not build libfac without factory" 1>&2; exit 1; }
1758  fi
1759else
1760  echo "$ac_t""no" 1>&6
1761fi
1762
1763echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6
1764echo "configure:1765: checking whether to configure and build sgroup lib" >&5
1765if test "$enable_sgroup" != yes && test "$enable_sgroup" != no; then
1766  if test "$with_sgroup" != no && test "$ac_sgroup_ok" != yes && \
1767     test -d sgroup && \
1768     (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then
1769    enable_sgroup=yes
1770    echo "$ac_t""yes" 1>&6
1771    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
1772    ac_configure_args="$ac_configure_args --enable-sgroup"
1773  else
1774    enable_sgroup=no
1775    echo "$ac_t""no" 1>&6
1776  fi
1777elif  test "$enable_sgroup" = yes; then
1778  if test ! -d sgroup; then
1779    echo "$ac_t""no" 1>&6
1780    { echo "configure: error: can not build sgroup without sgroup directory" 1>&2; exit 1; }
1781  fi
1782  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
1783    echo "$ac_t""yes" 1>&6
1784    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
1785  else
1786    echo "$ac_t""no" 1>&6
1787    { echo "configure: error: Can not build sgroup without MP" 1>&2; exit 1; }
1788  fi
1789else
1790  echo "$ac_t""no" 1>&6
1791fi
1792
1793echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
1794echo "configure:1795: checking whether to configure and build Singular" >&5
1795if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
1796  if test "$with_Singular" != no && test -d Singular; then
1797    enable_Singular=yes
1798    echo "$ac_t""yes" 1>&6
1799    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
1800    ac_configure_args="$ac_configure_args --enable-Singular"
1801  else
1802    enable_Singular=no
1803    echo "$ac_t""no" 1>&6
1804  fi
1805elif test "$enable_Singular" = yes; then
1806  if test -d Singular; then
1807    echo "$ac_t""yes" 1>&6
1808    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
1809  else
1810    echo "$ac_t""no" 1>&6
1811    { echo "configure: error: can not build Singular without Singular directory" 1>&2; exit 1; }
1812  fi
1813else
1814  echo "$ac_t""no" 1>&6
1815fi
1816
1817
1818echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
1819echo "configure:1820: checking which apint package to use" >&5
1820if test "$with_apint" = gmp; then
1821  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
1822    echo "$ac_t""gmp" 1>&6
1823  else
1824    echo "$ac_t""none" 1>&6
1825    { echo "configure: error: can not use with gmp without finding or building it" 1>&2; exit 1; }
1826  fi
1827elif test "$with_apint" = smallgmp; then
1828  if test "$ac_smallgmp_ok" = yes || test "$enable_smallgmp" = yes; then
1829    echo "$ac_t""smallgmp" 1>&6
1830  else
1831    echo "$ac_t""none" 1>&6
1832    { echo "configure: error: can not use with smallgmp without finding or building it" 1>&2; exit 1; }
1833  fi
1834elif test "$ac_gmp_ok" = yes || test "$enable_gmp"; then
1835    echo "$ac_t""gmp" 1>&6
1836    ac_configure_args="$ac_configure_args --with-apint=gmp"
1837else
1838   echo "$ac_t""smallgmp" 1>&6
1839   ac_configure_args="$ac_configure_args --with-apint=smallgmp"
1840fi
1841
1842echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
1843echo "configure:1844: checking whether to use with MP" >&5
1844if test "$with_MP" = yes; then
1845  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
1846    echo "$ac_t""yes" 1>&6
1847  else
1848    echo "$ac_t""none" 1>&6
1849    { echo "configure: error: can not use with MP without finding or building it" 1>&2; exit 1; }
1850  fi
1851elif test "$with_MP" = no; then
1852  echo "$ac_t""no" 1>&6
1853elif test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
1854  echo "$ac_t""yes" 1>&6
1855  ac_configure_args="$ac_configure_args --with-MP"
1856else
1857  echo "$ac_t""no" 1>&6
1858  ac_configure_args="$ac_configure_args --without-MP"
1859fi
1860
1861echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
1862echo "configure:1863: checking whether to use with factory" >&5
1863if test "$with_factory" = yes; then
1864  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
1865    echo "$ac_t""yes" 1>&6
1866  else
1867    echo "$ac_t""none" 1>&6
1868    { echo "configure: error: can not use with factory without finding or building it" 1>&2; exit 1; }
1869  fi
1870elif test "$with_factory" = no; then
1871  echo "$ac_t""no" 1>&6
1872elif test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
1873  echo "$ac_t""yes" 1>&6
1874  ac_configure_args="$ac_configure_args --with-factory"
1875else
1876  echo "$ac_t""no" 1>&6
1877  ac_configure_args="$ac_configure_args --without-factory"
1878fi
1879 
1880echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
1881echo "configure:1882: checking whether to use with libfac" >&5
1882if test "$with_libfac" = yes; then
1883  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
1884    echo "$ac_t""yes" 1>&6
1885  else
1886    echo "$ac_t""none" 1>&6
1887    { echo "configure: error: can not use with libfac without finding or building it" 1>&2; exit 1; }
1888  fi
1889elif test "$with_libfac" = no; then
1890  echo "$ac_t""no" 1>&6
1891elif test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
1892  echo "$ac_t""yes" 1>&6
1893  ac_configure_args="$ac_configure_args --with-libfac"
1894else
1895  echo "$ac_t""no" 1>&6
1896  ac_configure_args="$ac_configure_args --without-libfac"
1897fi
1898
1899echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
1900echo "configure:1901: checking whether to use with Singular" >&5
1901if test "$with_Singular" != no && test "$with_Singular" != yes; then
1902  if test "$enable_Singular" = yes; then
1903    with_Singular=yes
1904  else
1905    with_Singular=no
1906  fi
1907  ac_configure_args="$ac_configure_args --with-Singular=$with_Singular"
1908fi
1909
1910if test "$with_Singular" != no; then
1911  echo "$ac_t""yes" 1>&6
1912else
1913  echo "$ac_t""no" 1>&6
1914fi
1915
1916
1917SUBDIRS=""
1918if test -d doc; then
1919  SUBDIRS="$SUBDIRS doc"
1920fi
1921if test -d smallgmp; then
1922  SUBDIRS="$SUBDIRS smallgmp"
1923fi
1924if test -d gmp; then
1925  SUBDIRS="$SUBDIRS gmp"
1926fi
1927if test -d MP; then
1928  SUBDIRS="$SUBDIRS MP"
1929fi
1930if test -d factory; then
1931  SUBDIRS="$SUBDIRS factory"
1932fi
1933if test -d libfac; then
1934  SUBDIRS="$SUBDIRS libfac"
1935fi
1936if test -d sgroup; then
1937  SUBDIRS="$SUBDIRS sgroup"
1938fi
1939if test -d Singular; then
1940  SUBDIRS="$SUBDIRS Singular"
1941fi
1942if test -d rpm; then
1943  SUBDIRS="$SUBDIRS rpm"
1944fi
1945if test -d mpr; then
1946  CONFIG_SUBDIRS="$CONFIG_SUBDIRS mpr"
1947  SUBDIRS="$SUBDIRS mpr"
1948fi
1949 
1950
1951echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1952echo "configure:1953: checking whether ${MAKE-make} sets \${MAKE}" >&5
1953set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1954if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1955  echo $ac_n "(cached) $ac_c" 1>&6
1956else
1957  cat > conftestmake <<\EOF
1958all:
1959        @echo 'ac_maketemp="${MAKE}"'
1960EOF
1961# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1962eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1963if test -n "$ac_maketemp"; then
1964  eval ac_cv_prog_make_${ac_make}_set=yes
1965else
1966  eval ac_cv_prog_make_${ac_make}_set=no
1967fi
1968rm -f conftestmake
1969fi
1970if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1971  echo "$ac_t""yes" 1>&6
1972  SET_MAKE=
1973else
1974  echo "$ac_t""no" 1>&6
1975  SET_MAKE="MAKE=${MAKE-make}"
1976fi
1977
1978
1979
1980ac_aux_dir=
1981for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1982  if test -f $ac_dir/install-sh; then
1983    ac_aux_dir=$ac_dir
1984    ac_install_sh="$ac_aux_dir/install-sh -c"
1985    break
1986  elif test -f $ac_dir/install.sh; then
1987    ac_aux_dir=$ac_dir
1988    ac_install_sh="$ac_aux_dir/install.sh -c"
1989    break
1990  fi
1991done
1992if test -z "$ac_aux_dir"; then
1993  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1994fi
1995ac_config_guess=$ac_aux_dir/config.guess
1996ac_config_sub=$ac_aux_dir/config.sub
1997ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1998
1999subdirs="$CONFIG_SUBDIRS"
2000 
2001
2002trap '' 1 2 15
2003cat > confcache <<\EOF
2004# This file is a shell script that caches the results of configure
2005# tests run on this system so they can be shared between configure
2006# scripts and configure runs.  It is not useful on other systems.
2007# If it contains results you don't want to keep, you may remove or edit it.
2008#
2009# By default, configure uses ./config.cache as the cache file,
2010# creating it if it does not exist already.  You can give configure
2011# the --cache-file=FILE option to use a different cache file; that is
2012# what configure does when it calls configure scripts in
2013# subdirectories, so they share the cache.
2014# Giving --cache-file=/dev/null disables caching, for debugging configure.
2015# config.status only pays attention to the cache file if you give it the
2016# --recheck option to rerun configure.
2017#
2018EOF
2019# The following way of writing the cache mishandles newlines in values,
2020# but we know of no workaround that is simple, portable, and efficient.
2021# So, don't put newlines in cache variables' values.
2022# Ultrix sh set writes to stderr and can't be redirected directly,
2023# and sets the high bit in the cache file unless we assign to the vars.
2024(set) 2>&1 |
2025  case `(ac_space=' '; set) 2>&1` in
2026  *ac_space=\ *)
2027    # `set' does not quote correctly, so add quotes (double-quote substitution
2028    # turns \\\\ into \\, and sed turns \\ into \).
2029    sed -n \
2030      -e "s/'/'\\\\''/g" \
2031      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2032    ;;
2033  *)
2034    # `set' quotes correctly as required by POSIX, so do not add quotes.
2035    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2036    ;;
2037  esac >> confcache
2038if cmp -s $cache_file confcache; then
2039  :
2040else
2041  if test -w $cache_file; then
2042    echo "updating cache $cache_file"
2043    cat confcache > $cache_file
2044  else
2045    echo "not updating unwritable cache $cache_file"
2046  fi
2047fi
2048rm -f confcache
2049
2050trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2051
2052test "x$prefix" = xNONE && prefix=$ac_default_prefix
2053# Let make expand exec_prefix.
2054test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2055
2056# Any assignment to VPATH causes Sun make to only execute
2057# the first set of double-colon rules, so remove it if not needed.
2058# If there is a colon in the path, we need to keep it.
2059if test "x$srcdir" = x.; then
2060  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2061fi
2062
2063trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2064
2065# Transform confdefs.h into DEFS.
2066# Protect against shell expansion while executing Makefile rules.
2067# Protect against Makefile macro expansion.
2068cat > conftest.defs <<\EOF
2069s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2070s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2071s%\[%\\&%g
2072s%\]%\\&%g
2073s%\$%$$%g
2074EOF
2075DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2076rm -f conftest.defs
2077
2078
2079# Without the "./", some shells look in PATH for config.status.
2080: ${CONFIG_STATUS=./config.status}
2081
2082echo creating $CONFIG_STATUS
2083rm -f $CONFIG_STATUS
2084cat > $CONFIG_STATUS <<EOF
2085#! /bin/sh
2086# Generated automatically by configure.
2087# Run this file to recreate the current configuration.
2088# This directory was configured as follows,
2089# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2090#
2091# $0 $ac_configure_args
2092#
2093# Compiler output produced by configure, useful for debugging
2094# configure, is in ./config.log if it exists.
2095
2096ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2097for ac_option
2098do
2099  case "\$ac_option" in
2100  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2101    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2102    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2103  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2104    echo "$CONFIG_STATUS generated by autoconf version 2.12"
2105    exit 0 ;;
2106  -help | --help | --hel | --he | --h)
2107    echo "\$ac_cs_usage"; exit 0 ;;
2108  *) echo "\$ac_cs_usage"; exit 1 ;;
2109  esac
2110done
2111
2112ac_given_srcdir=$srcdir
2113
2114trap 'rm -fr `echo "${OUTPUT_MAKEFILES}" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2115EOF
2116cat >> $CONFIG_STATUS <<EOF
2117
2118# Protect against being on the right side of a sed subst in config.status.
2119sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2120 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2121$ac_vpsub
2122$extrasub
2123s%@CFLAGS@%$CFLAGS%g
2124s%@CPPFLAGS@%$CPPFLAGS%g
2125s%@CXXFLAGS@%$CXXFLAGS%g
2126s%@DEFS@%$DEFS%g
2127s%@LDFLAGS@%$LDFLAGS%g
2128s%@LIBS@%$LIBS%g
2129s%@exec_prefix@%$exec_prefix%g
2130s%@prefix@%$prefix%g
2131s%@program_transform_name@%$program_transform_name%g
2132s%@bindir@%$bindir%g
2133s%@sbindir@%$sbindir%g
2134s%@libexecdir@%$libexecdir%g
2135s%@datadir@%$datadir%g
2136s%@sysconfdir@%$sysconfdir%g
2137s%@sharedstatedir@%$sharedstatedir%g
2138s%@localstatedir@%$localstatedir%g
2139s%@libdir@%$libdir%g
2140s%@includedir@%$includedir%g
2141s%@oldincludedir@%$oldincludedir%g
2142s%@infodir@%$infodir%g
2143s%@mandir@%$mandir%g
2144s%@SINGUNAME@%$SINGUNAME%g
2145s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g
2146s%@SINGULAR_DOS_VERSION@%$SINGULAR_DOS_VERSION%g
2147s%@CC@%$CC%g
2148s%@CPP@%$CPP%g
2149s%@PERL@%$PERL%g
2150s%@LN_S@%$LN_S%g
2151s%@SINGULAR@%$SINGULAR%g
2152s%@SET_MAKE@%$SET_MAKE%g
2153s%@SUBDIRS@%$SUBDIRS%g
2154s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g
2155s%@subdirs@%$subdirs%g
2156
2157CEOF
2158EOF
2159
2160cat >> $CONFIG_STATUS <<\EOF
2161
2162# Split the substitutions into bite-sized pieces for seds with
2163# small command number limits, like on Digital OSF/1 and HP-UX.
2164ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2165ac_file=1 # Number of current file.
2166ac_beg=1 # First line for current file.
2167ac_end=$ac_max_sed_cmds # Line after last line for current file.
2168ac_more_lines=:
2169ac_sed_cmds=""
2170while $ac_more_lines; do
2171  if test $ac_beg -gt 1; then
2172    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2173  else
2174    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2175  fi
2176  if test ! -s conftest.s$ac_file; then
2177    ac_more_lines=false
2178    rm -f conftest.s$ac_file
2179  else
2180    if test -z "$ac_sed_cmds"; then
2181      ac_sed_cmds="sed -f conftest.s$ac_file"
2182    else
2183      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2184    fi
2185    ac_file=`expr $ac_file + 1`
2186    ac_beg=$ac_end
2187    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2188  fi
2189done
2190if test -z "$ac_sed_cmds"; then
2191  ac_sed_cmds=cat
2192fi
2193EOF
2194
2195cat >> $CONFIG_STATUS <<EOF
2196
2197CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"}
2198EOF
2199cat >> $CONFIG_STATUS <<\EOF
2200for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2201  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2202  case "$ac_file" in
2203  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2204       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2205  *) ac_file_in="${ac_file}.in" ;;
2206  esac
2207
2208  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2209
2210  # Remove last slash and all that follows it.  Not all systems have dirname.
2211  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2212  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2213    # The file is in a subdirectory.
2214    test ! -d "$ac_dir" && mkdir "$ac_dir"
2215    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2216    # A "../" for each directory in $ac_dir_suffix.
2217    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2218  else
2219    ac_dir_suffix= ac_dots=
2220  fi
2221
2222  case "$ac_given_srcdir" in
2223  .)  srcdir=.
2224      if test -z "$ac_dots"; then top_srcdir=.
2225      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2226  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2227  *) # Relative path.
2228    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2229    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2230  esac
2231
2232
2233  echo creating "$ac_file"
2234  rm -f "$ac_file"
2235  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2236  case "$ac_file" in
2237  *Makefile*) ac_comsub="1i\\
2238# $configure_input" ;;
2239  *) ac_comsub= ;;
2240  esac
2241
2242  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2243  sed -e "$ac_comsub
2244s%@configure_input@%$configure_input%g
2245s%@srcdir@%$srcdir%g
2246s%@top_srcdir@%$top_srcdir%g
2247" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2248fi; done
2249rm -f conftest.s*
2250
2251EOF
2252cat >> $CONFIG_STATUS <<EOF
2253
2254EOF
2255cat >> $CONFIG_STATUS <<\EOF
2256
2257exit 0
2258EOF
2259chmod +x $CONFIG_STATUS
2260rm -fr confdefs* $ac_clean_files
2261test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2262
2263if test "$no_recursion" != yes; then
2264
2265  # Remove --cache-file and --srcdir arguments so they do not pile up.
2266  ac_sub_configure_args=
2267  ac_prev=
2268  for ac_arg in $ac_configure_args; do
2269    if test -n "$ac_prev"; then
2270      ac_prev=
2271      continue
2272    fi
2273    case "$ac_arg" in
2274    -cache-file | --cache-file | --cache-fil | --cache-fi \
2275    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2276      ac_prev=cache_file ;;
2277    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2278    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2279      ;;
2280    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2281      ac_prev=srcdir ;;
2282    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2283      ;;
2284    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2285    esac
2286  done
2287
2288  for ac_config_dir in $CONFIG_SUBDIRS; do
2289
2290    # Do not complain, so a configure script can configure whichever
2291    # parts of a large source tree are present.
2292    if test ! -d $srcdir/$ac_config_dir; then
2293      continue
2294    fi
2295
2296    echo configuring in $ac_config_dir
2297
2298    case "$srcdir" in
2299    .) ;;
2300    *)
2301      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2302      else
2303        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2304      fi
2305      ;;
2306    esac
2307
2308    ac_popdir=`pwd`
2309    cd $ac_config_dir
2310
2311      # A "../" for each directory in /$ac_config_dir.
2312      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2313
2314    case "$srcdir" in
2315    .) # No --srcdir option.  We are building in place.
2316      ac_sub_srcdir=$srcdir ;;
2317    /*) # Absolute path.
2318      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2319    *) # Relative path.
2320      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2321    esac
2322
2323    # Check for guested configure; otherwise get Cygnus style configure.
2324    if test -f $ac_sub_srcdir/configure; then
2325      ac_sub_configure=$ac_sub_srcdir/configure
2326    elif test -f $ac_sub_srcdir/configure.in; then
2327      ac_sub_configure=$ac_configure
2328    else
2329      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2330      ac_sub_configure=
2331    fi
2332
2333    # The recursion is here.
2334    if test -n "$ac_sub_configure"; then
2335
2336      # Make the cache file name correct relative to the subdirectory.
2337      case "$cache_file" in
2338      /*) ac_sub_cache_file=$cache_file ;;
2339      *) # Relative path.
2340        ac_sub_cache_file="$ac_dots$cache_file" ;;
2341      esac
2342
2343      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2344      # The eval makes quoting arguments work.
2345      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2346      then :
2347      else
2348        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2349      fi
2350    fi
2351
2352    cd $ac_popdir
2353  done
2354fi
2355
Note: See TracBrowser for help on using the repository browser.