source: git/configure @ f0596e

spielwiese
Last change on this file since f0596e was a04715, checked in by Olaf Bachmann <obachman@…>, 26 years ago
Sun Aug 10 19:10:54 1997 Olaf Bachmann <obachman@mathematik.uni-kl.de> * configure.in: incoporated sgroup git-svn-id: file:///usr/local/Singular/svn/trunk@607 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 55.1 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 -lgmp""... $ac_c" 1>&6
921ac_lib_var=`echo gmp_mpq_init | 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="-lgmp  $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 mpq_init();
932
933int main() { return 0; }
934int t() {
935mpq_init()
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 gmp | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
952  cat >> confdefs.h <<EOF
953#define $ac_tr_lib 1
954EOF
955
956  LIBS="-lgmp $LIBS"
957
958else
959  echo "$ac_t""no" 1>&6
960fi
961
962echo $ac_n "checking for -lsmallgmp""... $ac_c" 1>&6
963ac_lib_var=`echo smallgmp_mpz_init | 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="-lsmallgmp  $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 mpz_init();
974
975int main() { return 0; }
976int t() {
977mpz_init()
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 smallgmp | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
994  cat >> confdefs.h <<EOF
995#define $ac_tr_lib 1
996EOF
997
998  LIBS="-lsmallgmp $LIBS"
999
1000else
1001  echo "$ac_t""no" 1>&6
1002fi
1003
1004echo $ac_n "checking for -lMP""... $ac_c" 1>&6
1005ac_lib_var=`echo MP_IMP_PutGmpInt | 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="-lMP  $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 IMP_PutGmpInt();
1016
1017int main() { return 0; }
1018int t() {
1019IMP_PutGmpInt()
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 MP | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1036  cat >> confdefs.h <<EOF
1037#define $ac_tr_lib 1
1038EOF
1039
1040  LIBS="-lMP $LIBS"
1041
1042else
1043  echo "$ac_t""no" 1>&6
1044fi
1045
1046echo $ac_n "checking for -lMPT""... $ac_c" 1>&6
1047ac_lib_var=`echo MPT_MPT_GetTree | 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="-lMPT  $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 MPT_GetTree();
1058
1059int main() { return 0; }
1060int t() {
1061MPT_GetTree()
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 MPT | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1078  cat >> confdefs.h <<EOF
1079#define $ac_tr_lib 1
1080EOF
1081
1082  LIBS="-lMPT $LIBS"
1083
1084else
1085  echo "$ac_t""no" 1>&6
1086fi
1087
1088echo $ac_n "checking for -lsingcf""... $ac_c" 1>&6
1089ac_lib_var=`echo singcf_atof | 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="-lsingcf  $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 atof();
1100
1101int main() { return 0; }
1102int t() {
1103atof()
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 singcf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1120  cat >> confdefs.h <<EOF
1121#define $ac_tr_lib 1
1122EOF
1123
1124  LIBS="-lsingcf $LIBS"
1125
1126else
1127  echo "$ac_t""no" 1>&6
1128fi
1129
1130echo $ac_n "checking for -lsingfac""... $ac_c" 1>&6
1131ac_lib_var=`echo singfac_atof | 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="-lsingfac  $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 atof();
1142
1143int main() { return 0; }
1144int t() {
1145atof()
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 singfac | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1162  cat >> confdefs.h <<EOF
1163#define $ac_tr_lib 1
1164EOF
1165
1166  LIBS="-lsingfac $LIBS"
1167
1168else
1169  echo "$ac_t""no" 1>&6
1170fi
1171
1172
1173for ac_hdr in gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h
1174do
1175ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1176echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1177if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1178  echo $ac_n "(cached) $ac_c" 1>&6
1179else
1180  cat > conftest.$ac_ext <<EOF
1181#line 1182 "configure"
1182#include "confdefs.h"
1183#include <$ac_hdr>
1184EOF
1185ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1186{ (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1187ac_err=`grep -v '^ *+' conftest.out`
1188if test -z "$ac_err"; then
1189  rm -rf conftest*
1190  eval "ac_cv_header_$ac_safe=yes"
1191else
1192  echo "$ac_err" >&5
1193  rm -rf conftest*
1194  eval "ac_cv_header_$ac_safe=no"
1195fi
1196rm -f conftest*
1197fi
1198if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1199  echo "$ac_t""yes" 1>&6
1200    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1201  cat >> confdefs.h <<EOF
1202#define $ac_tr_hdr 1
1203EOF
1204 
1205else
1206  echo "$ac_t""no" 1>&6
1207fi
1208done
1209
1210
1211if test "$ac_cv_lib_gmp_mpq_init" = yes && \
1212 test "$ac_cv_header_gmp_h" = yes; then
1213    ac_gmp_ok=yes
1214fi
1215
1216if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \
1217 test "$ac_cv_header_smallgmp_h" = yes && \
1218 test "$ac_cv_header_gmp_h" = yes; then
1219    ac_smallgmp_ok=yes
1220fi
1221
1222if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \
1223 test "$ac_cv_lib_MPT_MPT_GetTree" && \
1224 test "$ac_cv_header_MP_h" = yes && \
1225 test "$ac_cv_header_MPT_h" = yes; then
1226  ac_MP_ok=yes
1227fi
1228
1229if test "$ac_cv_lib_singcf_atof" = yes && \
1230 test "$ac_cv_header_factory_h" = yes; then
1231  ac_factory_ok=yes
1232fi
1233
1234if test "$ac_cv_lib_singfac_atof" = yes && \
1235 test "$ac_cv_header_factor_h" = yes; then
1236  ac_libfac_ok=yes
1237fi
1238
1239
1240 
1241# Check whether --enable-smallgmp or --disable-smallgmp was given.
1242if test "${enable_smallgmp+set}" = set; then
1243  enableval="$enable_smallgmp"
1244  :
1245fi
1246
1247# Check whether --enable-MP or --disable-MP was given.
1248if test "${enable_MP+set}" = set; then
1249  enableval="$enable_MP"
1250  :
1251fi
1252
1253# Check whether --enable-factory or --disable-factory was given.
1254if test "${enable_factory+set}" = set; then
1255  enableval="$enable_factory"
1256  :
1257fi
1258
1259# Check whether --enable-libfac or --disable-libfac was given.
1260if test "${enable_libfac+set}" = set; then
1261  enableval="$enable_libfac"
1262  :
1263fi
1264
1265# Check whether --enable-sgroup or --disable-sgroup was given.
1266if test "${enable_sgroup+set}" = set; then
1267  enableval="$enable_sgroup"
1268  :
1269fi
1270
1271# Check whether --enable-Singular or --disable-Singular was given.
1272if test "${enable_Singular+set}" = set; then
1273  enableval="$enable_Singular"
1274  :
1275fi
1276
1277
1278# Check whether --with-MP or --without-MP was given.
1279if test "${with_MP+set}" = set; then
1280  withval="$with_MP"
1281  :
1282fi
1283
1284# Check whether --with-factory or --without-factory was given.
1285if test "${with_factory+set}" = set; then
1286  withval="$with_factory"
1287  :
1288fi
1289
1290# Check whether --with-libfac or --without-libfac was given.
1291if test "${with_libfac+set}" = set; then
1292  withval="$with_libfac"
1293  :
1294fi
1295
1296# Check whether --with-gmp or --without-gmp was given.
1297if test "${with_gmp+set}" = set; then
1298  withval="$with_gmp"
1299  :
1300fi
1301
1302
1303echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6
1304if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
1305  if test "$ac_smallgmp_ok" != yes && \
1306   test "$ac_gmp_ok" != yes && \
1307   (test "$with_apint" = smallgmp || test "${with_apint+set}" != set); then
1308    enable_smallgmp=yes
1309  else
1310    enable_smallgmp=no
1311  fi
1312fi
1313if test "$enable_smallgmp" = yes && test -d smallgmp; then
1314  echo "$ac_t""yes" 1>&6
1315  CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
1316  enable_smallgmp=yes
1317  ac_will_have_gmp=yes
1318else
1319  echo "$ac_t""no" 1>&6
1320  if test "$enable_smallgmp" = yes && test ! -d smallgmp; then
1321    echo "configure: warning: Did not find smallgmp subdir" 1>&2
1322  fi
1323  enable_smallgmp=no
1324fi
1325if test "$ac_gmp_ok" != yes && \
1326  test "$ac_smallgmp_ok" != yes && \
1327  test "$enable_smallgmp" != yes; then
1328    echo "configure: warning: Would rather have gmp or smallgmp to build libs and Singular" 1>&2
1329    ac_configure_args="$ac_configure_args --disable-gmp"
1330else
1331  ac_configure_args="$ac_configure_args --enable-gmp"
1332fi
1333
1334echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6
1335if test "$enable_MP" != yes && test "$enable_MP" != no; then
1336  if test "$with_MP" != no && test "$ac_MP_ok" != yes; then
1337    enable_MP=yes
1338  else
1339    enable_MP=no
1340  fi
1341fi
1342if test "$enable_MP" = yes && test -d MP; then
1343  if test "$ac_will_have_gmp" = yes || test "$ac_gmp_ok" = yes; then
1344    echo "$ac_t""yes" 1>&6
1345    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
1346    ac_configure_args="$ac_configure_args --enable-MP"
1347  else
1348    echo "$ac_t""no" 1>&6
1349    echo "configure: warning: Can not build MP without having gmp" 1>&2
1350    enabl_MP=no
1351    ac_configure_args="$ac_configure_args --disable-MP"
1352  fi
1353else
1354  echo "$ac_t""no" 1>&6
1355  if  test "$enable_MP" = yes && test ! -d MP; then
1356    echo "configure: warning: Did not find MP subdirectory" 1>&2
1357  fi
1358  enable_MP=no
1359  ac_configure_args="$ac_configure_args --disable-MP"
1360fi
1361
1362echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
1363if test "$enable_factory" != yes && test "$enable_factory" != no; then
1364  if test "$with_factory" != no && test "$ac_factory_ok" != yes; then
1365    enable_factory=yes
1366  else
1367    enable_factory=no
1368  fi
1369fi
1370if test "$enable_factory" = yes && test -d factory; then
1371  if test "$ac_will_have_gmp" = yes  || test "$ac_gmp_ok" = yes; then
1372    echo "$ac_t""yes" 1>&6
1373    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
1374    ac_configure_args="$ac_configure_args --enable-factory"
1375  else
1376    echo "$ac_t""no" 1>&6
1377    echo "configure: warning: Can not build factory without having gmp" 1>&2
1378    enable_factory=no
1379    ac_configure_args="$ac_configure_args --disable-factory"
1380  fi
1381else
1382  echo "$ac_t""no" 1>&6
1383  if  test "$enable_factory" = yes && test ! -d factory; then
1384    echo "configure: warning: Did not find factory subdirectory" 1>&2
1385  fi
1386  enable_factory=no
1387  ac_configure_args="$ac_configure_args --disable-factory"
1388fi
1389
1390echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
1391if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
1392  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes; then
1393    enable_libfac=yes
1394  else
1395    enable_libfac=no
1396  fi
1397fi
1398if test "$enable_libfac" = yes && test -d libfac; then
1399  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
1400  echo "$ac_t""yes" 1>&6
1401  CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
1402  ac_configure_args="$ac_configure_args --enable-libfac"
1403  else
1404    echo "$ac_t""no" 1>&6
1405    echo "configure: warning: Can not build libfac without factory" 1>&2
1406    enable_libfac=no
1407    ac_configure_args="$ac_configure_args --disable-libfac"
1408  fi
1409else
1410  echo "$ac_t""no" 1>&6
1411  if  test "$enable_libfac" = yes && test ! -d libfac; then
1412    echo "configure: warning: Did not find libfac subdirectory" 1>&2
1413  fi
1414  enable_libfac=no
1415  ac_configure_args="$ac_configure_args --disable-libfac"
1416fi
1417
1418echo $ac_n "checking whether to configure and build sgroup""... $ac_c" 1>&6
1419if test "$enable_sgroup" != no; then
1420    enable_sgroup=yes
1421fi
1422
1423if test "$enable_sgroup" = yes && test -d sgroup; then
1424  if test "$ac_will_have_gmp" = yes  || test "$ac_gmp_ok" = yes; then
1425    if test "$enable_MP" != no || test "$ac_MP_ok" = yes; then
1426      echo "$ac_t""yes" 1>&6
1427      CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
1428      ac_configure_args="$ac_configure_args --enable-sgroup"
1429    else
1430      echo "$ac_t""no" 1>&6
1431      echo "configure: warning: Can not build sgroup without having MP" 1>&2
1432      enable_sgroup=no
1433      ac_configure_args="$ac_configure_args --disable-sgroup"
1434    fi
1435  else
1436    echo "$ac_t""no" 1>&6
1437    echo "configure: warning: Can not build sgroup without having gmp" 1>&2
1438    enable_sgroup=no
1439    ac_configure_args="$ac_configure_args --disable-sgroup"
1440  fi
1441else
1442  echo "$ac_t""no" 1>&6
1443  if  test "$enable_sgroup" = yes && test ! -d sgroup; then
1444    echo "configure: warning: Did not find sgroup subdirectory" 1>&2
1445  fi
1446  enable_sgroup=no
1447  ac_configure_args="$ac_configure_args --disable-sgroup"
1448fi
1449
1450echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
1451if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
1452  if test "$with_Singular" != no; then
1453    enable_Singular=yes
1454  else
1455    enable_Singular=no
1456  fi
1457fi
1458if test "$enable_Singular" = yes && test -d Singular; then
1459  echo "$ac_t""yes" 1>&6
1460  CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
1461  ac_configure_args="$ac_configure_args --enable-Singular"
1462else
1463  echo "$ac_t""no" 1>&6
1464  if  test "$enable_Singular" = yes && test ! -d Singular; then
1465    echo "configure: warning: Did not find Singular subdirectory" 1>&2
1466  fi
1467  enable_Singular=no
1468  ac_configure_args="$ac_configure_args --disable-Singular"
1469fi
1470
1471
1472echo $ac_n "checking wich apint package to use""... $ac_c" 1>&6
1473if test "$with_apint" != gmp && \
1474  test "$with_apint" != smallgmp && \
1475  test "$with_apint" != buildin; then
1476   if test "$ac_gmp_ok" = yes; then
1477     with_apint=gmp
1478   elif test "$ac_enable_smallgmp" = yes; then
1479     with_apint=smallgmp
1480   else
1481     with_apint=buildin
1482   fi
1483  ac_configure_args="$ac_configure_args --with-apint=$with_apint"
1484fi
1485echo "$ac_t""${with_apint}" 1>&6
1486
1487echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
1488if test "$with_MP" != no && test "$with_MP" != yes; then
1489  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
1490    with_MP=yes
1491  else
1492    with_MP=no
1493  fi
1494  ac_configure_args="$ac_configure_args --with-MP=$with_MP"
1495fi
1496if test "$with_MP" = yes; then
1497  echo "$ac_t""yes" 1>&6
1498else
1499  echo "$ac_t""no" 1>&6
1500fi
1501
1502if test "$enable_MP" = yes; then
1503  if test "${with_apint}" = smallgmp; then
1504    ac_configure_args="$ac_configure_args --with-default_apreal=none"
1505  elif test "${with_apint}" = buildin; then
1506    ac_configure_args="$ac_configure_args --with-default_apreal=none --with-default-apint=none"
1507  fi
1508fi
1509
1510echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
1511if test "$with_factory" != no && test "$with_factory" != yes; then
1512  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
1513    with_factory=yes
1514  else
1515    with_factory=no
1516  fi
1517  ac_configure_args="$ac_configure_args --with-factory=$with_factory"
1518fi
1519if test "$with_factory" = yes; then
1520  echo "$ac_t""yes" 1>&6
1521else
1522  echo "$ac_t""no" 1>&6
1523fi
1524
1525echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
1526if test "$with_libfac" != no && test "$with_libfac" != yes; then
1527  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
1528    with_libfac=yes
1529  else
1530    with_libfac=no
1531  fi
1532  ac_configure_args="$ac_configure_args --with-libfac=$with_libfac"
1533fi
1534if test "$with_libfac" = yes; then
1535  echo "$ac_t""yes" 1>&6
1536else
1537  echo "$ac_t""no" 1>&6
1538fi
1539
1540echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
1541if test "$with_Singular" != no && test "$with_Singular" != yes; then
1542  if test "$enable_Singular" = yes; then
1543    with_Singular=yes
1544  else
1545    with_Singular=no
1546  fi
1547  ac_configure_args="$ac_configure_args --with-Singular=$with_Singular"
1548fi
1549
1550if test "$with_Singular" != no; then
1551  echo "$ac_t""yes" 1>&6
1552else
1553  echo "$ac_t""no" 1>&6
1554fi
1555
1556if test -d smallgmp; then
1557  SUBDIRS="smallgmp"
1558fi
1559if test -d MP; then
1560  SUBDIRS="$SUBDIRS MP"
1561fi
1562if test -d factory; then
1563  SUBDIRS="$SUBDIRS factory"
1564fi
1565if test -d libfac; then
1566  SUBDIRS="$SUBDIRS libfac"
1567fi
1568if test -d Singular; then
1569  SUBDIRS="$SUBDIRS Singular"
1570fi
1571 
1572
1573echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1574set dummy ${MAKE-make}; ac_make=$2
1575if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1576  echo $ac_n "(cached) $ac_c" 1>&6
1577else
1578  cat > conftestmake <<\EOF
1579all:
1580        @echo 'ac_maketemp="${MAKE}"'
1581EOF
1582# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1583eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1584if test -n "$ac_maketemp"; then
1585  eval ac_cv_prog_make_${ac_make}_set=yes
1586else
1587  eval ac_cv_prog_make_${ac_make}_set=no
1588fi
1589rm -f conftestmake
1590fi
1591if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1592  echo "$ac_t""yes" 1>&6
1593  SET_MAKE=
1594else
1595  echo "$ac_t""no" 1>&6
1596  SET_MAKE="MAKE=${MAKE-make}"
1597fi
1598
1599
1600
1601subdirs="$CONFIG_SUBDIRS"
1602 
1603
1604trap '' 1 2 15
1605cat > confcache <<\EOF
1606# This file is a shell script that caches the results of configure
1607# tests run on this system so they can be shared between configure
1608# scripts and configure runs.  It is not useful on other systems.
1609# If it contains results you don't want to keep, you may remove or edit it.
1610#
1611# By default, configure uses ./config.cache as the cache file,
1612# creating it if it does not exist already.  You can give configure
1613# the --cache-file=FILE option to use a different cache file; that is
1614# what configure does when it calls configure scripts in
1615# subdirectories, so they share the cache.
1616# Giving --cache-file=/dev/null disables caching, for debugging configure.
1617# config.status only pays attention to the cache file if you give it the
1618# --recheck option to rerun configure.
1619#
1620EOF
1621# Ultrix sh set writes to stderr and can't be redirected directly,
1622# and sets the high bit in the cache file unless we assign to the vars.
1623(set) 2>&1 |
1624  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1625  >> confcache
1626if cmp -s $cache_file confcache; then
1627  :
1628else
1629  if test -w $cache_file; then
1630    echo "updating cache $cache_file"
1631    cat confcache > $cache_file
1632  else
1633    echo "not updating unwritable cache $cache_file"
1634  fi
1635fi
1636rm -f confcache
1637
1638trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1639
1640test "x$prefix" = xNONE && prefix=$ac_default_prefix
1641# Let make expand exec_prefix.
1642test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1643
1644# Any assignment to VPATH causes Sun make to only execute
1645# the first set of double-colon rules, so remove it if not needed.
1646# If there is a colon in the path, we need to keep it.
1647if test "x$srcdir" = x.; then
1648  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1649fi
1650
1651trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1652
1653# Transform confdefs.h into DEFS.
1654# Protect against shell expansion while executing Makefile rules.
1655# Protect against Makefile macro expansion.
1656cat > conftest.defs <<\EOF
1657s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1658s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1659s%\[%\\&%g
1660s%\]%\\&%g
1661s%\$%$$%g
1662EOF
1663DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1664rm -f conftest.defs
1665
1666
1667# Without the "./", some shells look in PATH for config.status.
1668: ${CONFIG_STATUS=./config.status}
1669
1670echo creating $CONFIG_STATUS
1671rm -f $CONFIG_STATUS
1672cat > $CONFIG_STATUS <<EOF
1673#! /bin/sh
1674# Generated automatically by configure.
1675# Run this file to recreate the current configuration.
1676# This directory was configured as follows,
1677# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1678#
1679# $0 $ac_configure_args
1680#
1681# Compiler output produced by configure, useful for debugging
1682# configure, is in ./config.log if it exists.
1683
1684ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1685for ac_option
1686do
1687  case "\$ac_option" in
1688  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1689    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1690    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1691  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1692    echo "$CONFIG_STATUS generated by autoconf version 2.9"
1693    exit 0 ;;
1694  -help | --help | --hel | --he | --h)
1695    echo "\$ac_cs_usage"; exit 0 ;;
1696  *) echo "\$ac_cs_usage"; exit 1 ;;
1697  esac
1698done
1699
1700ac_given_srcdir=$srcdir
1701
1702trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1703EOF
1704cat >> $CONFIG_STATUS <<EOF
1705
1706# Protect against being on the right side of a sed subst in config.status.
1707sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1708 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1709$ac_vpsub
1710$extrasub
1711s%@CFLAGS@%$CFLAGS%g
1712s%@CPPFLAGS@%$CPPFLAGS%g
1713s%@CXXFLAGS@%$CXXFLAGS%g
1714s%@DEFS@%$DEFS%g
1715s%@LDFLAGS@%$LDFLAGS%g
1716s%@LIBS@%$LIBS%g
1717s%@exec_prefix@%$exec_prefix%g
1718s%@prefix@%$prefix%g
1719s%@program_transform_name@%$program_transform_name%g
1720s%@bindir@%$bindir%g
1721s%@sbindir@%$sbindir%g
1722s%@libexecdir@%$libexecdir%g
1723s%@datadir@%$datadir%g
1724s%@sysconfdir@%$sysconfdir%g
1725s%@sharedstatedir@%$sharedstatedir%g
1726s%@localstatedir@%$localstatedir%g
1727s%@libdir@%$libdir%g
1728s%@includedir@%$includedir%g
1729s%@oldincludedir@%$oldincludedir%g
1730s%@infodir@%$infodir%g
1731s%@mandir@%$mandir%g
1732s%@SINGULAR_MAJOR_VERSION@%$SINGULAR_MAJOR_VERSION%g
1733s%@SINGULAR_MINOR_VERSION@%$SINGULAR_MINOR_VERSION%g
1734s%@SINGULAR_SUB_VERSION@%$SINGULAR_SUB_VERSION%g
1735s%@host@%$host%g
1736s%@host_alias@%$host_alias%g
1737s%@host_cpu@%$host_cpu%g
1738s%@host_vendor@%$host_vendor%g
1739s%@host_os@%$host_os%g
1740s%@CC@%$CC%g
1741s%@CPP@%$CPP%g
1742s%@SET_MAKE@%$SET_MAKE%g
1743s%@SUBDIRS@%$SUBDIRS%g
1744s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g
1745s%@subdirs@%$subdirs%g
1746
1747CEOF
1748EOF
1749cat >> $CONFIG_STATUS <<EOF
1750
1751CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1752EOF
1753cat >> $CONFIG_STATUS <<\EOF
1754for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1755  # Support "outfile[:infile]", defaulting infile="outfile.in".
1756  case "$ac_file" in
1757  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1758       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1759  *) ac_file_in="${ac_file}.in" ;;
1760  esac
1761
1762  # Adjust relative srcdir, etc. for subdirectories.
1763
1764  # Remove last slash and all that follows it.  Not all systems have dirname.
1765  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1766  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1767    # The file is in a subdirectory.
1768    test ! -d "$ac_dir" && mkdir "$ac_dir"
1769    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1770    # A "../" for each directory in $ac_dir_suffix.
1771    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1772  else
1773    ac_dir_suffix= ac_dots=
1774  fi
1775
1776  case "$ac_given_srcdir" in
1777  .)  srcdir=.
1778      if test -z "$ac_dots"; then top_srcdir=.
1779      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1780  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1781  *) # Relative path.
1782    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1783    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1784  esac
1785
1786  echo creating "$ac_file"
1787  rm -f "$ac_file"
1788  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1789  case "$ac_file" in
1790  *Makefile*) ac_comsub="1i\\
1791# $configure_input" ;;
1792  *) ac_comsub= ;;
1793  esac
1794  sed -e "$ac_comsub
1795s%@configure_input@%$configure_input%g
1796s%@srcdir@%$srcdir%g
1797s%@top_srcdir@%$top_srcdir%g
1798" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1799fi; done
1800rm -f conftest.subs
1801
1802
1803
1804exit 0
1805EOF
1806chmod +x $CONFIG_STATUS
1807rm -fr confdefs* $ac_clean_files
1808test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1809
1810if test "$no_recursion" != yes; then
1811
1812  # Remove --cache-file and --srcdir arguments so they do not pile up.
1813  ac_sub_configure_args=
1814  ac_prev=
1815  for ac_arg in $ac_configure_args; do
1816    if test -n "$ac_prev"; then
1817      ac_prev=
1818      continue
1819    fi
1820    case "$ac_arg" in
1821    -cache-file | --cache-file | --cache-fil | --cache-fi \
1822    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1823      ac_prev=cache_file ;;
1824    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1825    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1826      ;;
1827    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1828      ac_prev=srcdir ;;
1829    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1830      ;;
1831    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1832    esac
1833  done
1834
1835  for ac_config_dir in $CONFIG_SUBDIRS; do
1836
1837    # Do not complain, so a configure script can configure whichever
1838    # parts of a large source tree are present.
1839    if test ! -d $srcdir/$ac_config_dir; then
1840      continue
1841    fi
1842
1843    echo configuring in $ac_config_dir
1844
1845    case "$srcdir" in
1846    .) ;;
1847    *)
1848      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1849      else
1850        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1851      fi
1852      ;;
1853    esac
1854
1855    ac_popdir=`pwd`
1856    cd $ac_config_dir
1857
1858    case "$srcdir" in
1859    .) # No --srcdir option.  We are building in place.
1860      ac_sub_srcdir=$srcdir ;;
1861    /*) # Absolute path.
1862      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1863    *) # Relative path.
1864      ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
1865    esac
1866
1867    # Check for guested configure; otherwise get Cygnus style configure.
1868    if test -f $ac_sub_srcdir/configure; then
1869      ac_sub_configure=$ac_sub_srcdir/configure
1870    elif test -f $ac_sub_srcdir/configure.in; then
1871      ac_sub_configure=$ac_configure
1872    else
1873      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1874      ac_sub_configure=
1875    fi
1876
1877    # The recursion is here.
1878    if test -n "$ac_sub_configure"; then
1879
1880      # Make the cache file name correct relative to the subdirectory.
1881      # A "../" for each directory in /$ac_config_dir.
1882      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1883      case "$cache_file" in
1884      /*) ac_sub_cache_file=$cache_file ;;
1885      *) # Relative path.
1886        ac_sub_cache_file="$ac_dots$cache_file" ;;
1887      esac
1888
1889      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1890      # The eval makes quoting arguments work.
1891      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1892      then :
1893      else
1894        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1895      fi
1896    fi
1897
1898    cd $ac_popdir
1899  done
1900fi
1901
Note: See TracBrowser for help on using the repository browser.