source: git/configure @ ebe3e8

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