source: git/configure @ adeaee

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