source: git/configure @ 595a51

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