source: git/configure @ 4dea87

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