source: git/configure @ af6a6b

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