source: git/configure @ acfbb5a

spielwiese
Last change on this file since acfbb5a was f36635, checked in by Olaf Bachmann <obachman@…>, 25 years ago
* merged in changes from 1-2-3 git-svn-id: file:///usr/local/Singular/svn/trunk@3207 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 76.3 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
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  --with-tmpdir=DIR       use DIR as temporary directory"
18ac_help="$ac_help
19\
20  --enable-PACKAGE        configure and build PACKAGE
21  --disable-PACKAGE       do not configure and build PACKAGE
22   where PACKAGE can be:
23     smallgmp             minimal version of gmp written in C only"
24ac_help="$ac_help
25\
26     gmp                  Gnu Multiple Precision package"
27ac_help="$ac_help
28\
29     MP                   Multi Protocol library"
30ac_help="$ac_help
31\
32     factory              polynomial factorization library"
33ac_help="$ac_help
34\
35     libfac               char set and modp poly factorization library"
36ac_help="$ac_help
37\
38     sgroup               numerical semigroup computations"
39ac_help="$ac_help
40\
41     Singular             CAS for Polynomial Computations"
42ac_help="$ac_help
43\
44     Texinfo              Texinfo for info, texi2dvi, makeinfo"
45ac_help="$ac_help
46\
47  --with-PACKAGE          use PACKAGE, provide dependent functionality
48  --without-PACKAGE       do not use PACKAGE, disable dependent functionality
49   where PACKAGE can be:
50     MP                   Multi Protocol library"
51ac_help="$ac_help
52\
53     factory              polynomial factorization library"
54ac_help="$ac_help
55\
56     libfac               char set and modp poly factorization library"
57ac_help="$ac_help
58\
59  --with-apint=PACKAGE    use PACKAGE for arbitary integer arithmetic
60                          where PACKAGE can be gmp or smallgmp
61All additional --enable and --with options are passed to subsequent calls
62to configure of the packages to be built. See also configure --help in
63these packages (resp. subdirs). "
64
65# Initialize some variables set by options.
66# The variables have the same names as the options, with
67# dashes changed to underlines.
68build=NONE
69cache_file=./config.cache
70exec_prefix=NONE
71host=NONE
72no_create=
73nonopt=NONE
74no_recursion=
75prefix=NONE
76program_prefix=NONE
77program_suffix=NONE
78program_transform_name=s,x,x,
79silent=
80site=
81srcdir=
82target=NONE
83verbose=
84x_includes=NONE
85x_libraries=NONE
86bindir='${exec_prefix}/bin'
87sbindir='${exec_prefix}/sbin'
88libexecdir='${exec_prefix}/libexec'
89datadir='${prefix}/share'
90sysconfdir='${prefix}/etc'
91sharedstatedir='${prefix}/com'
92localstatedir='${prefix}/var'
93libdir='${exec_prefix}/lib'
94includedir='${prefix}/include'
95oldincludedir='/usr/include'
96infodir='${prefix}/info'
97mandir='${prefix}/man'
98
99# Initialize some other variables.
100subdirs=
101MFLAGS= MAKEFLAGS=
102SHELL=${CONFIG_SHELL-/bin/sh}
103# Maximum number of lines to put in a shell here document.
104ac_max_here_lines=12
105
106ac_prev=
107for ac_option
108do
109
110  # If the previous option needs an argument, assign it.
111  if test -n "$ac_prev"; then
112    eval "$ac_prev=\$ac_option"
113    ac_prev=
114    continue
115  fi
116
117  case "$ac_option" in
118  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119  *) ac_optarg= ;;
120  esac
121
122  # Accept the important Cygnus configure options, so we can diagnose typos.
123
124  case "$ac_option" in
125
126  -bindir | --bindir | --bindi | --bind | --bin | --bi)
127    ac_prev=bindir ;;
128  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129    bindir="$ac_optarg" ;;
130
131  -build | --build | --buil | --bui | --bu)
132    ac_prev=build ;;
133  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
134    build="$ac_optarg" ;;
135
136  -cache-file | --cache-file | --cache-fil | --cache-fi \
137  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138    ac_prev=cache_file ;;
139  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141    cache_file="$ac_optarg" ;;
142
143  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
144    ac_prev=datadir ;;
145  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
146  | --da=*)
147    datadir="$ac_optarg" ;;
148
149  -disable-* | --disable-*)
150    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151    # Reject names that are not valid shell variable names.
152    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154    fi
155    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156    eval "enable_${ac_feature}=no" ;;
157
158  -enable-* | --enable-*)
159    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160    # Reject names that are not valid shell variable names.
161    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163    fi
164    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165    case "$ac_option" in
166      *=*) ;;
167      *) ac_optarg=yes ;;
168    esac
169    eval "enable_${ac_feature}='$ac_optarg'" ;;
170
171  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173  | --exec | --exe | --ex)
174    ac_prev=exec_prefix ;;
175  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177  | --exec=* | --exe=* | --ex=*)
178    exec_prefix="$ac_optarg" ;;
179
180  -gas | --gas | --ga | --g)
181    # Obsolete; use --with-gas.
182    with_gas=yes ;;
183
184  -help | --help | --hel | --he)
185    # Omit some internal or obsolete options to make the list less imposing.
186    # This message is too long to be a string in the A/UX 3.1 sh.
187    cat << EOF
188Usage: configure [options] [host]
189Options: [defaults in brackets after descriptions]
190Configuration:
191  --cache-file=FILE       cache test results in FILE
192  --help                  print this message
193  --no-create             do not create output files
194  --quiet, --silent       do not print \`checking...' messages
195  --version               print the version of autoconf that created configure
196Directory and file names:
197  --prefix=PREFIX         install architecture-independent files in PREFIX
198                          [$ac_default_prefix]
199  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
200                          [same as prefix]
201  --bindir=DIR            user executables in DIR [EPREFIX/bin]
202  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
203  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
204  --datadir=DIR           read-only architecture-independent data in DIR
205                          [PREFIX/share]
206  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
207  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
208                          [PREFIX/com]
209  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
210  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
211  --includedir=DIR        C header files in DIR [PREFIX/include]
212  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
213  --infodir=DIR           info documentation in DIR [PREFIX/info]
214  --mandir=DIR            man documentation in DIR [PREFIX/man]
215  --srcdir=DIR            find the sources in DIR [configure dir or ..]
216  --program-prefix=PREFIX prepend PREFIX to installed program names
217  --program-suffix=SUFFIX append SUFFIX to installed program names
218  --program-transform-name=PROGRAM
219                          run sed PROGRAM on installed program names
220EOF
221    cat << EOF
222Host type:
223  --build=BUILD           configure for building on BUILD [BUILD=HOST]
224  --host=HOST             configure for HOST [guessed]
225  --target=TARGET         configure for TARGET [TARGET=HOST]
226Features and packages:
227  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
228  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
229  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
230  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
231  --x-includes=DIR        X include files are in DIR
232  --x-libraries=DIR       X library files are in DIR
233EOF
234    if test -n "$ac_help"; then
235      echo "--enable and --with options recognized:$ac_help"
236    fi
237    exit 0 ;;
238
239  -host | --host | --hos | --ho)
240    ac_prev=host ;;
241  -host=* | --host=* | --hos=* | --ho=*)
242    host="$ac_optarg" ;;
243
244  -includedir | --includedir | --includedi | --included | --include \
245  | --includ | --inclu | --incl | --inc)
246    ac_prev=includedir ;;
247  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248  | --includ=* | --inclu=* | --incl=* | --inc=*)
249    includedir="$ac_optarg" ;;
250
251  -infodir | --infodir | --infodi | --infod | --info | --inf)
252    ac_prev=infodir ;;
253  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254    infodir="$ac_optarg" ;;
255
256  -libdir | --libdir | --libdi | --libd)
257    ac_prev=libdir ;;
258  -libdir=* | --libdir=* | --libdi=* | --libd=*)
259    libdir="$ac_optarg" ;;
260
261  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262  | --libexe | --libex | --libe)
263    ac_prev=libexecdir ;;
264  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265  | --libexe=* | --libex=* | --libe=*)
266    libexecdir="$ac_optarg" ;;
267
268  -localstatedir | --localstatedir | --localstatedi | --localstated \
269  | --localstate | --localstat | --localsta | --localst \
270  | --locals | --local | --loca | --loc | --lo)
271    ac_prev=localstatedir ;;
272  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275    localstatedir="$ac_optarg" ;;
276
277  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278    ac_prev=mandir ;;
279  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
280    mandir="$ac_optarg" ;;
281
282  -nfp | --nfp | --nf)
283    # Obsolete; use --without-fp.
284    with_fp=no ;;
285
286  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
287  | --no-cr | --no-c)
288    no_create=yes ;;
289
290  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
292    no_recursion=yes ;;
293
294  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296  | --oldin | --oldi | --old | --ol | --o)
297    ac_prev=oldincludedir ;;
298  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301    oldincludedir="$ac_optarg" ;;
302
303  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304    ac_prev=prefix ;;
305  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
306    prefix="$ac_optarg" ;;
307
308  -program-prefix | --program-prefix | --program-prefi | --program-pref \
309  | --program-pre | --program-pr | --program-p)
310    ac_prev=program_prefix ;;
311  -program-prefix=* | --program-prefix=* | --program-prefi=* \
312  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313    program_prefix="$ac_optarg" ;;
314
315  -program-suffix | --program-suffix | --program-suffi | --program-suff \
316  | --program-suf | --program-su | --program-s)
317    ac_prev=program_suffix ;;
318  -program-suffix=* | --program-suffix=* | --program-suffi=* \
319  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320    program_suffix="$ac_optarg" ;;
321
322  -program-transform-name | --program-transform-name \
323  | --program-transform-nam | --program-transform-na \
324  | --program-transform-n | --program-transform- \
325  | --program-transform | --program-transfor \
326  | --program-transfo | --program-transf \
327  | --program-trans | --program-tran \
328  | --progr-tra | --program-tr | --program-t)
329    ac_prev=program_transform_name ;;
330  -program-transform-name=* | --program-transform-name=* \
331  | --program-transform-nam=* | --program-transform-na=* \
332  | --program-transform-n=* | --program-transform-=* \
333  | --program-transform=* | --program-transfor=* \
334  | --program-transfo=* | --program-transf=* \
335  | --program-trans=* | --program-tran=* \
336  | --progr-tra=* | --program-tr=* | --program-t=*)
337    program_transform_name="$ac_optarg" ;;
338
339  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340  | -silent | --silent | --silen | --sile | --sil)
341    silent=yes ;;
342
343  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344    ac_prev=sbindir ;;
345  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346  | --sbi=* | --sb=*)
347    sbindir="$ac_optarg" ;;
348
349  -sharedstatedir | --sharedstatedir | --sharedstatedi \
350  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351  | --sharedst | --shareds | --shared | --share | --shar \
352  | --sha | --sh)
353    ac_prev=sharedstatedir ;;
354  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357  | --sha=* | --sh=*)
358    sharedstatedir="$ac_optarg" ;;
359
360  -site | --site | --sit)
361    ac_prev=site ;;
362  -site=* | --site=* | --sit=*)
363    site="$ac_optarg" ;;
364
365  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366    ac_prev=srcdir ;;
367  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
368    srcdir="$ac_optarg" ;;
369
370  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371  | --syscon | --sysco | --sysc | --sys | --sy)
372    ac_prev=sysconfdir ;;
373  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375    sysconfdir="$ac_optarg" ;;
376
377  -target | --target | --targe | --targ | --tar | --ta | --t)
378    ac_prev=target ;;
379  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380    target="$ac_optarg" ;;
381
382  -v | -verbose | --verbose | --verbos | --verbo | --verb)
383    verbose=yes ;;
384
385  -version | --version | --versio | --versi | --vers)
386    echo "configure generated by autoconf version 2.13"
387    exit 0 ;;
388
389  -with-* | --with-*)
390    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
391    # Reject names that are not valid shell variable names.
392    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
393      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394    fi
395    ac_package=`echo $ac_package| sed 's/-/_/g'`
396    case "$ac_option" in
397      *=*) ;;
398      *) ac_optarg=yes ;;
399    esac
400    eval "with_${ac_package}='$ac_optarg'" ;;
401
402  -without-* | --without-*)
403    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
404    # Reject names that are not valid shell variable names.
405    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
406      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407    fi
408    ac_package=`echo $ac_package| sed 's/-/_/g'`
409    eval "with_${ac_package}=no" ;;
410
411  --x)
412    # Obsolete; use --with-x.
413    with_x=yes ;;
414
415  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
416  | --x-incl | --x-inc | --x-in | --x-i)
417    ac_prev=x_includes ;;
418  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
419  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
420    x_includes="$ac_optarg" ;;
421
422  -x-libraries | --x-libraries | --x-librarie | --x-librari \
423  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
424    ac_prev=x_libraries ;;
425  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
426  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
427    x_libraries="$ac_optarg" ;;
428
429  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
430    ;;
431
432  *)
433    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
434      echo "configure: warning: $ac_option: invalid host type" 1>&2
435    fi
436    if test "x$nonopt" != xNONE; then
437      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
438    fi
439    nonopt="$ac_option"
440    ;;
441
442  esac
443done
444
445if test -n "$ac_prev"; then
446  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
447fi
448
449trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
450
451# File descriptor usage:
452# 0 standard input
453# 1 file creation
454# 2 errors and warnings
455# 3 some systems may open it to /dev/tty
456# 4 used on the Kubota Titan
457# 6 checking for... messages and results
458# 5 compiler messages saved in config.log
459if test "$silent" = yes; then
460  exec 6>/dev/null
461else
462  exec 6>&1
463fi
464exec 5>./config.log
465
466echo "\
467This file contains any messages produced by compilers while
468running configure, to aid debugging if configure makes a mistake.
469" 1>&5
470
471# Strip out --no-create and --no-recursion so they do not pile up.
472# Also quote any args containing shell metacharacters.
473ac_configure_args=
474for ac_arg
475do
476  case "$ac_arg" in
477  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
478  | --no-cr | --no-c) ;;
479  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
480  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
481  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
482  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
483  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
484  esac
485done
486
487# NLS nuisances.
488# Only set these to C if already set.  These must not be set unconditionally
489# because not all systems understand e.g. LANG=C (notably SCO).
490# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
491# Non-C LC_CTYPE values break the ctype check.
492if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
493if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
494if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
495if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
496
497# confdefs.h avoids OS command line length limits that DEFS can exceed.
498rm -rf conftest* confdefs.h
499# AIX cpp loses on an empty file, so make sure it contains at least a newline.
500echo > confdefs.h
501
502# A filename unique to this package, relative to the directory that
503# configure is in, which we can look for to find out if srcdir is correct.
504ac_unique_file=Singular/matpol.h
505
506# Find the source files, if location was not specified.
507if test -z "$srcdir"; then
508  ac_srcdir_defaulted=yes
509  # Try the directory containing this script, then its parent.
510  ac_prog=$0
511  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
512  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513  srcdir=$ac_confdir
514  if test ! -r $srcdir/$ac_unique_file; then
515    srcdir=..
516  fi
517else
518  ac_srcdir_defaulted=no
519fi
520if test ! -r $srcdir/$ac_unique_file; then
521  if test "$ac_srcdir_defaulted" = yes; then
522    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
523  else
524    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
525  fi
526fi
527srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
528
529# Prefer explicitly selected file to automatically selected ones.
530if test -z "$CONFIG_SITE"; then
531  if test "x$prefix" != xNONE; then
532    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
533  else
534    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
535  fi
536fi
537for ac_site_file in $CONFIG_SITE; do
538  if test -r "$ac_site_file"; then
539    echo "loading site script $ac_site_file"
540    . "$ac_site_file"
541  fi
542done
543
544if test -r "$cache_file"; then
545  echo "loading cache $cache_file"
546  . $cache_file
547else
548  echo "creating cache $cache_file"
549  > $cache_file
550fi
551
552ac_ext=c
553# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
554ac_cpp='$CPP $CPPFLAGS'
555ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
556ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
557cross_compiling=$ac_cv_prog_cc_cross
558
559ac_exeext=
560ac_objext=o
561if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
564    ac_n= ac_c='
565' ac_t='        '
566  else
567    ac_n=-n ac_c= ac_t=
568  fi
569else
570  ac_n= ac_c='\c' ac_t=
571fi
572
573
574
575OUTPUT_MAKEFILES="Makefile doc/Makefile doc/version.texi"
576if test -d "mpr"; then
577   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" mpr/Makefile"
578fi
579if test -d "rpm"; then
580   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" rpm/Makefile"
581   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" rpm/rpmrc rpm/Singular.spec"
582fi
583if test -d "modules"; then
584   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" modules/Makefile"
585fi
586if test -d "modules/tools"; then
587   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" modules/tools/Makefile"
588fi
589
590echo $ac_n "checking uname for singular""... $ac_c" 1>&6
591echo "configure:592: checking uname for singular" >&5
592if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
593  echo $ac_n "(cached) $ac_c" 1>&6
594else
595  ac_cv_singuname="unknown"
596if test -r "singuname.sh"; then
597  if (/bin/sh singuname.sh >/dev/null 2>&1) then
598    ac_cv_singuname=`/bin/sh singuname.sh`
599  fi
600fi
601
602fi
603
604echo "$ac_t""$ac_cv_singuname" 1>&6
605if test "$ac_cv_singuname" = unknown; then
606  { echo "configure: error: Unknown architecture: Check singuname.sh" 1>&2; exit 1; }
607else
608  SINGUNAME=$ac_cv_singuname
609 
610fi
611
612VERSION_SEP="-"
613
614# make them to env variables
615# pass them indirectly to subsequent configures
616SINGULAR_MAJOR_VERSION=1
617SINGULAR_MINOR_VERSION=3
618SINGULAR_SUB_VERSION=3
619SINGULAR_SHORT_VERSION="${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}"
620SINGULAR_VERSION="${SINGULAR_SHORT_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}"
621VERSION_DATE="February 1999"
622
623export SINGULAR_MINOR_VERSION
624export SINGULAR_MAJOR_VERSION
625export SINGULAR_SUB_VERSION
626export SINGULAR_VERSION
627export VERSION_DATE
628
629
630
631
632
633# Extract the first word of "gcc", so it can be a program name with args.
634set dummy gcc; ac_word=$2
635echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
636echo "configure:637: checking for $ac_word" >&5
637if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
638  echo $ac_n "(cached) $ac_c" 1>&6
639else
640  if test -n "$CC"; then
641  ac_cv_prog_CC="$CC" # Let the user override the test.
642else
643  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
644  ac_dummy="$PATH"
645  for ac_dir in $ac_dummy; do
646    test -z "$ac_dir" && ac_dir=.
647    if test -f $ac_dir/$ac_word; then
648      ac_cv_prog_CC="gcc"
649      break
650    fi
651  done
652  IFS="$ac_save_ifs"
653fi
654fi
655CC="$ac_cv_prog_CC"
656if test -n "$CC"; then
657  echo "$ac_t""$CC" 1>&6
658else
659  echo "$ac_t""no" 1>&6
660fi
661
662if test -z "$CC"; then
663  # Extract the first word of "cc", so it can be a program name with args.
664set dummy cc; ac_word=$2
665echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
666echo "configure:667: checking for $ac_word" >&5
667if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
668  echo $ac_n "(cached) $ac_c" 1>&6
669else
670  if test -n "$CC"; then
671  ac_cv_prog_CC="$CC" # Let the user override the test.
672else
673  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
674  ac_prog_rejected=no
675  ac_dummy="$PATH"
676  for ac_dir in $ac_dummy; do
677    test -z "$ac_dir" && ac_dir=.
678    if test -f $ac_dir/$ac_word; then
679      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
680        ac_prog_rejected=yes
681        continue
682      fi
683      ac_cv_prog_CC="cc"
684      break
685    fi
686  done
687  IFS="$ac_save_ifs"
688if test $ac_prog_rejected = yes; then
689  # We found a bogon in the path, so make sure we never use it.
690  set dummy $ac_cv_prog_CC
691  shift
692  if test $# -gt 0; then
693    # We chose a different compiler from the bogus one.
694    # However, it has the same basename, so the bogon will be chosen
695    # first if we set CC to just the basename; use the full file name.
696    shift
697    set dummy "$ac_dir/$ac_word" "$@"
698    shift
699    ac_cv_prog_CC="$@"
700  fi
701fi
702fi
703fi
704CC="$ac_cv_prog_CC"
705if test -n "$CC"; then
706  echo "$ac_t""$CC" 1>&6
707else
708  echo "$ac_t""no" 1>&6
709fi
710
711  if test -z "$CC"; then
712    case "`uname -s`" in
713    *win32* | *WIN32*)
714      # Extract the first word of "cl", so it can be a program name with args.
715set dummy cl; ac_word=$2
716echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
717echo "configure:718: checking for $ac_word" >&5
718if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
719  echo $ac_n "(cached) $ac_c" 1>&6
720else
721  if test -n "$CC"; then
722  ac_cv_prog_CC="$CC" # Let the user override the test.
723else
724  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
725  ac_dummy="$PATH"
726  for ac_dir in $ac_dummy; do
727    test -z "$ac_dir" && ac_dir=.
728    if test -f $ac_dir/$ac_word; then
729      ac_cv_prog_CC="cl"
730      break
731    fi
732  done
733  IFS="$ac_save_ifs"
734fi
735fi
736CC="$ac_cv_prog_CC"
737if test -n "$CC"; then
738  echo "$ac_t""$CC" 1>&6
739else
740  echo "$ac_t""no" 1>&6
741fi
742 ;;
743    esac
744  fi
745  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
746fi
747
748echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
749echo "configure:750: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
750
751ac_ext=c
752# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
753ac_cpp='$CPP $CPPFLAGS'
754ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
755ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
756cross_compiling=$ac_cv_prog_cc_cross
757
758cat > conftest.$ac_ext << EOF
759
760#line 761 "configure"
761#include "confdefs.h"
762
763main(){return(0);}
764EOF
765if { (eval echo configure:766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
766  ac_cv_prog_cc_works=yes
767  # If we can't run a trivial program, we are probably using a cross compiler.
768  if (./conftest; exit) 2>/dev/null; then
769    ac_cv_prog_cc_cross=no
770  else
771    ac_cv_prog_cc_cross=yes
772  fi
773else
774  echo "configure: failed program was:" >&5
775  cat conftest.$ac_ext >&5
776  ac_cv_prog_cc_works=no
777fi
778rm -fr conftest*
779ac_ext=c
780# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
781ac_cpp='$CPP $CPPFLAGS'
782ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
783ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
784cross_compiling=$ac_cv_prog_cc_cross
785
786echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
787if test $ac_cv_prog_cc_works = no; then
788  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
789fi
790echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
791echo "configure:792: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
792echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
793cross_compiling=$ac_cv_prog_cc_cross
794
795echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
796echo "configure:797: checking whether we are using GNU C" >&5
797if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
798  echo $ac_n "(cached) $ac_c" 1>&6
799else
800  cat > conftest.c <<EOF
801#ifdef __GNUC__
802  yes;
803#endif
804EOF
805if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
806  ac_cv_prog_gcc=yes
807else
808  ac_cv_prog_gcc=no
809fi
810fi
811
812echo "$ac_t""$ac_cv_prog_gcc" 1>&6
813
814if test $ac_cv_prog_gcc = yes; then
815  GCC=yes
816else
817  GCC=
818fi
819
820ac_test_CFLAGS="${CFLAGS+set}"
821ac_save_CFLAGS="$CFLAGS"
822CFLAGS=
823echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
824echo "configure:825: checking whether ${CC-cc} accepts -g" >&5
825if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
826  echo $ac_n "(cached) $ac_c" 1>&6
827else
828  echo 'void f(){}' > conftest.c
829if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
830  ac_cv_prog_cc_g=yes
831else
832  ac_cv_prog_cc_g=no
833fi
834rm -f conftest*
835
836fi
837
838echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
839if test "$ac_test_CFLAGS" = set; then
840  CFLAGS="$ac_save_CFLAGS"
841elif test $ac_cv_prog_cc_g = yes; then
842  if test "$GCC" = yes; then
843    CFLAGS="-g -O2"
844  else
845    CFLAGS="-g"
846  fi
847else
848  if test "$GCC" = yes; then
849    CFLAGS="-O2"
850  else
851    CFLAGS=
852  fi
853fi
854
855echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
856echo "configure:857: checking how to run the C preprocessor" >&5
857# On Suns, sometimes $CPP names a directory.
858if test -n "$CPP" && test -d "$CPP"; then
859  CPP=
860fi
861if test -z "$CPP"; then
862if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
863  echo $ac_n "(cached) $ac_c" 1>&6
864else
865    # This must be in double quotes, not single quotes, because CPP may get
866  # substituted into the Makefile and "${CC-cc}" will confuse make.
867  CPP="${CC-cc} -E"
868  # On the NeXT, cc -E runs the code through the compiler's parser,
869  # not just through cpp.
870  cat > conftest.$ac_ext <<EOF
871#line 872 "configure"
872#include "confdefs.h"
873#include <assert.h>
874Syntax Error
875EOF
876ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
877{ (eval echo configure:878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
878ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
879if test -z "$ac_err"; then
880  :
881else
882  echo "$ac_err" >&5
883  echo "configure: failed program was:" >&5
884  cat conftest.$ac_ext >&5
885  rm -rf conftest*
886  CPP="${CC-cc} -E -traditional-cpp"
887  cat > conftest.$ac_ext <<EOF
888#line 889 "configure"
889#include "confdefs.h"
890#include <assert.h>
891Syntax Error
892EOF
893ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
894{ (eval echo configure:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
895ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
896if test -z "$ac_err"; then
897  :
898else
899  echo "$ac_err" >&5
900  echo "configure: failed program was:" >&5
901  cat conftest.$ac_ext >&5
902  rm -rf conftest*
903  CPP="${CC-cc} -nologo -E"
904  cat > conftest.$ac_ext <<EOF
905#line 906 "configure"
906#include "confdefs.h"
907#include <assert.h>
908Syntax Error
909EOF
910ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
911{ (eval echo configure:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
912ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
913if test -z "$ac_err"; then
914  :
915else
916  echo "$ac_err" >&5
917  echo "configure: failed program was:" >&5
918  cat conftest.$ac_ext >&5
919  rm -rf conftest*
920  CPP=/lib/cpp
921fi
922rm -f conftest*
923fi
924rm -f conftest*
925fi
926rm -f conftest*
927  ac_cv_prog_CPP="$CPP"
928fi
929  CPP="$ac_cv_prog_CPP"
930else
931  ac_cv_prog_CPP="$CPP"
932fi
933echo "$ac_t""$CPP" 1>&6
934
935echo $ac_n "checking for AIX""... $ac_c" 1>&6
936echo "configure:937: checking for AIX" >&5
937cat > conftest.$ac_ext <<EOF
938#line 939 "configure"
939#include "confdefs.h"
940#ifdef _AIX
941  yes
942#endif
943
944EOF
945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
946  egrep "yes" >/dev/null 2>&1; then
947  rm -rf conftest*
948  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
949#define _ALL_SOURCE 1
950EOF
951
952else
953  rm -rf conftest*
954  echo "$ac_t""no" 1>&6
955fi
956rm -f conftest*
957
958
959
960for ac_prog in perl5 perl
961do
962# Extract the first word of "$ac_prog", so it can be a program name with args.
963set dummy $ac_prog; ac_word=$2
964echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
965echo "configure:966: checking for $ac_word" >&5
966if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
967  echo $ac_n "(cached) $ac_c" 1>&6
968else
969  if test -n "$PERL"; then
970  ac_cv_prog_PERL="$PERL" # Let the user override the test.
971else
972  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
973  ac_dummy="$PATH"
974  for ac_dir in $ac_dummy; do
975    test -z "$ac_dir" && ac_dir=.
976    if test -f $ac_dir/$ac_word; then
977      ac_cv_prog_PERL="$ac_prog"
978      break
979    fi
980  done
981  IFS="$ac_save_ifs"
982fi
983fi
984PERL="$ac_cv_prog_PERL"
985if test -n "$PERL"; then
986  echo "$ac_t""$PERL" 1>&6
987else
988  echo "$ac_t""no" 1>&6
989fi
990
991test -n "$PERL" && break
992done
993
994# Extract the first word of "latex2html", so it can be a program name with args.
995set dummy latex2html; ac_word=$2
996echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
997echo "configure:998: checking for $ac_word" >&5
998if eval "test \"`echo '$''{'ac_cv_prog_LATEX2HTML'+set}'`\" = set"; then
999  echo $ac_n "(cached) $ac_c" 1>&6
1000else
1001  if test -n "$LATEX2HTML"; then
1002  ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
1003else
1004  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1005  ac_dummy="$PATH"
1006  for ac_dir in $ac_dummy; do
1007    test -z "$ac_dir" && ac_dir=.
1008    if test -f $ac_dir/$ac_word; then
1009      ac_cv_prog_LATEX2HTML="latex2html"
1010      break
1011    fi
1012  done
1013  IFS="$ac_save_ifs"
1014fi
1015fi
1016LATEX2HTML="$ac_cv_prog_LATEX2HTML"
1017if test -n "$LATEX2HTML"; then
1018  echo "$ac_t""$LATEX2HTML" 1>&6
1019else
1020  echo "$ac_t""no" 1>&6
1021fi
1022
1023echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1024echo "configure:1025: checking whether ln -s works" >&5
1025if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1026  echo $ac_n "(cached) $ac_c" 1>&6
1027else
1028  rm -f conftestdata
1029if ln -s X conftestdata 2>/dev/null
1030then
1031  rm -f conftestdata
1032  ac_cv_prog_LN_S="ln -s"
1033else
1034  ac_cv_prog_LN_S=ln
1035fi
1036fi
1037LN_S="$ac_cv_prog_LN_S"
1038if test "$ac_cv_prog_LN_S" = "ln -s"; then
1039  echo "$ac_t""yes" 1>&6
1040else
1041  echo "$ac_t""no" 1>&6
1042fi
1043
1044if test -x Texi2html/texi2html; then
1045TEXI2HTML=`pwd`/Texi2html/texi2html
1046
1047else
1048echo "configure: warning: could not find Texi2html/texi2html HTML generation might fail" 1>&2
1049# Extract the first word of "texi2html", so it can be a program name with args.
1050set dummy texi2html; ac_word=$2
1051echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1052echo "configure:1053: checking for $ac_word" >&5
1053if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then
1054  echo $ac_n "(cached) $ac_c" 1>&6
1055else
1056  if test -n "$TEXI2HTML"; then
1057  ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
1058else
1059  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1060  ac_dummy="$PATH"
1061  for ac_dir in $ac_dummy; do
1062    test -z "$ac_dir" && ac_dir=.
1063    if test -f $ac_dir/$ac_word; then
1064      ac_cv_prog_TEXI2HTML="texi2html"
1065      break
1066    fi
1067  done
1068  IFS="$ac_save_ifs"
1069fi
1070fi
1071TEXI2HTML="$ac_cv_prog_TEXI2HTML"
1072if test -n "$TEXI2HTML"; then
1073  echo "$ac_t""$TEXI2HTML" 1>&6
1074else
1075  echo "$ac_t""no" 1>&6
1076fi
1077
1078fi
1079if test "$ac_cv_prog_LATEX2HTML" = latex2html; then
1080  TEXI2HTML_OPTS="-l2h"
1081else
1082 TEXI2HTML_OPTS="-expandinfo"
1083fi
1084
1085
1086# expand prefix and pass it to subsequent configures
1087if test "x$prefix" = xNONE; then
1088  prefix=${ac_default_prefix}
1089  ac_configure_args="$ac_configure_args --prefix=${prefix}"
1090fi
1091
1092# expand exec_prefix
1093if test "x$exec_prefix" = xNONE; then
1094 exec_prefix=${prefix}/${ac_cv_singuname}
1095 ac_configure_args="$ac_configure_args --exec_prefix=${exec_prefix}"
1096fi
1097
1098# expand bindir
1099if test "x$bindir" = 'x${exec_prefix}/bin'; then
1100  bindir="${exec_prefix}/bin"
1101  ac_configure_args="$ac_configure_args --bindir=${bindir}"
1102fi
1103
1104# expand libdir
1105if test "x$libdir" = 'x${exec_prefix}/lib'; then
1106  libdir="${exec_prefix}/lib/${SINGULAR_VERSION}"
1107  ac_configure_args="$ac_configure_args --libdir=${libdir}"
1108fi
1109
1110# expand includedir
1111if test "x$includedir" = 'x${prefix}/include'; then
1112  includedir="${exec_prefix}/include/${SINGULAR_VERSION}"
1113  ac_configure_args="$ac_configure_args --includedir=${includedir}"
1114fi
1115
1116# construct name of installed Singular executable
1117SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}
1118export SINGULAR
1119
1120
1121
1122# add -I to CPPFLAGS and -L to LDFLAGS, just to be sure
1123LDFLAGS="-L${libdir} ${LDFLAGS}"
1124CPPFLAGS="-I${includedir} ${CPPFLAGS}"
1125
1126# check for AIX
1127echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
1128echo "configure:1129: checking whether _AIX is defined" >&5
1129if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
1130  echo $ac_n "(cached) $ac_c" 1>&6
1131else
1132  cat > conftest.$ac_ext <<EOF
1133#line 1134 "configure"
1134#include "confdefs.h"
1135#ifdef _AIX
1136    yes
1137#endif
1138
1139EOF
1140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1141  egrep "yes" >/dev/null 2>&1; then
1142  rm -rf conftest*
1143  ac_cv_is_aix=yes
1144else
1145  rm -rf conftest*
1146  ac_cv_is_aix=no
1147fi
1148rm -f conftest*
1149
1150fi
1151
1152if test "$ac_cv_is_aix" = yes; then
1153  echo "$ac_t""yes" 1>&6
1154else
1155  echo "$ac_t""no" 1>&6
1156fi
1157
1158echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
1159echo "configure:1160: checking for atof in -lm" >&5
1160ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
1161if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1162  echo $ac_n "(cached) $ac_c" 1>&6
1163else
1164  ac_save_LIBS="$LIBS"
1165LIBS="-lm  $LIBS"
1166cat > conftest.$ac_ext <<EOF
1167#line 1168 "configure"
1168#include "confdefs.h"
1169/* Override any gcc2 internal prototype to avoid an error.  */
1170/* We use char because int might match the return type of a gcc2
1171    builtin and then its argument prototype would still apply.  */
1172char atof();
1173
1174int main() {
1175atof()
1176; return 0; }
1177EOF
1178if { (eval echo configure:1179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1179  rm -rf conftest*
1180  eval "ac_cv_lib_$ac_lib_var=yes"
1181else
1182  echo "configure: failed program was:" >&5
1183  cat conftest.$ac_ext >&5
1184  rm -rf conftest*
1185  eval "ac_cv_lib_$ac_lib_var=no"
1186fi
1187rm -f conftest*
1188LIBS="$ac_save_LIBS"
1189
1190fi
1191if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1192  echo "$ac_t""yes" 1>&6
1193    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1194    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1195  cat >> confdefs.h <<EOF
1196#define $ac_tr_lib 1
1197EOF
1198
1199  LIBS="-lm $LIBS"
1200
1201else
1202  echo "$ac_t""no" 1>&6
1203fi
1204
1205echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
1206echo "configure:1207: checking for socket in -lbsd" >&5
1207ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
1208if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1209  echo $ac_n "(cached) $ac_c" 1>&6
1210else
1211  ac_save_LIBS="$LIBS"
1212LIBS="-lbsd  $LIBS"
1213cat > conftest.$ac_ext <<EOF
1214#line 1215 "configure"
1215#include "confdefs.h"
1216/* Override any gcc2 internal prototype to avoid an error.  */
1217/* We use char because int might match the return type of a gcc2
1218    builtin and then its argument prototype would still apply.  */
1219char socket();
1220
1221int main() {
1222socket()
1223; return 0; }
1224EOF
1225if { (eval echo configure:1226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1226  rm -rf conftest*
1227  eval "ac_cv_lib_$ac_lib_var=yes"
1228else
1229  echo "configure: failed program was:" >&5
1230  cat conftest.$ac_ext >&5
1231  rm -rf conftest*
1232  eval "ac_cv_lib_$ac_lib_var=no"
1233fi
1234rm -f conftest*
1235LIBS="$ac_save_LIBS"
1236
1237fi
1238if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1239  echo "$ac_t""yes" 1>&6
1240    ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1241    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1242  cat >> confdefs.h <<EOF
1243#define $ac_tr_lib 1
1244EOF
1245
1246  LIBS="-lbsd $LIBS"
1247
1248else
1249  echo "$ac_t""no" 1>&6
1250fi
1251
1252echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6
1253echo "configure:1254: checking for listen in -lsocket" >&5
1254ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'`
1255if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1256  echo $ac_n "(cached) $ac_c" 1>&6
1257else
1258  ac_save_LIBS="$LIBS"
1259LIBS="-lsocket  $LIBS"
1260cat > conftest.$ac_ext <<EOF
1261#line 1262 "configure"
1262#include "confdefs.h"
1263/* Override any gcc2 internal prototype to avoid an error.  */
1264/* We use char because int might match the return type of a gcc2
1265    builtin and then its argument prototype would still apply.  */
1266char listen();
1267
1268int main() {
1269listen()
1270; return 0; }
1271EOF
1272if { (eval echo configure:1273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1273  rm -rf conftest*
1274  eval "ac_cv_lib_$ac_lib_var=yes"
1275else
1276  echo "configure: failed program was:" >&5
1277  cat conftest.$ac_ext >&5
1278  rm -rf conftest*
1279  eval "ac_cv_lib_$ac_lib_var=no"
1280fi
1281rm -f conftest*
1282LIBS="$ac_save_LIBS"
1283
1284fi
1285if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1286  echo "$ac_t""yes" 1>&6
1287    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1288    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1289  cat >> confdefs.h <<EOF
1290#define $ac_tr_lib 1
1291EOF
1292
1293  LIBS="-lsocket $LIBS"
1294
1295else
1296  echo "$ac_t""no" 1>&6
1297fi
1298
1299echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1300echo "configure:1301: checking for gethostbyname in -lnsl" >&5
1301ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1302if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1303  echo $ac_n "(cached) $ac_c" 1>&6
1304else
1305  ac_save_LIBS="$LIBS"
1306LIBS="-lnsl  $LIBS"
1307cat > conftest.$ac_ext <<EOF
1308#line 1309 "configure"
1309#include "confdefs.h"
1310/* Override any gcc2 internal prototype to avoid an error.  */
1311/* We use char because int might match the return type of a gcc2
1312    builtin and then its argument prototype would still apply.  */
1313char gethostbyname();
1314
1315int main() {
1316gethostbyname()
1317; return 0; }
1318EOF
1319if { (eval echo configure:1320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1320  rm -rf conftest*
1321  eval "ac_cv_lib_$ac_lib_var=yes"
1322else
1323  echo "configure: failed program was:" >&5
1324  cat conftest.$ac_ext >&5
1325  rm -rf conftest*
1326  eval "ac_cv_lib_$ac_lib_var=no"
1327fi
1328rm -f conftest*
1329LIBS="$ac_save_LIBS"
1330
1331fi
1332if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1333  echo "$ac_t""yes" 1>&6
1334    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1335    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1336  cat >> confdefs.h <<EOF
1337#define $ac_tr_lib 1
1338EOF
1339
1340  LIBS="-lnsl $LIBS"
1341
1342else
1343  echo "$ac_t""no" 1>&6
1344fi
1345
1346echo $ac_n "checking for mpq_init in -lgmp""... $ac_c" 1>&6
1347echo "configure:1348: checking for mpq_init in -lgmp" >&5
1348ac_lib_var=`echo gmp'_'mpq_init | sed 'y%./+-%__p_%'`
1349if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1350  echo $ac_n "(cached) $ac_c" 1>&6
1351else
1352  ac_save_LIBS="$LIBS"
1353LIBS="-lgmp  $LIBS"
1354cat > conftest.$ac_ext <<EOF
1355#line 1356 "configure"
1356#include "confdefs.h"
1357/* Override any gcc2 internal prototype to avoid an error.  */
1358/* We use char because int might match the return type of a gcc2
1359    builtin and then its argument prototype would still apply.  */
1360char mpq_init();
1361
1362int main() {
1363mpq_init()
1364; return 0; }
1365EOF
1366if { (eval echo configure:1367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1367  rm -rf conftest*
1368  eval "ac_cv_lib_$ac_lib_var=yes"
1369else
1370  echo "configure: failed program was:" >&5
1371  cat conftest.$ac_ext >&5
1372  rm -rf conftest*
1373  eval "ac_cv_lib_$ac_lib_var=no"
1374fi
1375rm -f conftest*
1376LIBS="$ac_save_LIBS"
1377
1378fi
1379if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1380  echo "$ac_t""yes" 1>&6
1381    ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1382    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1383  cat >> confdefs.h <<EOF
1384#define $ac_tr_lib 1
1385EOF
1386
1387  LIBS="-lgmp $LIBS"
1388
1389else
1390  echo "$ac_t""no" 1>&6
1391fi
1392
1393echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6
1394echo "configure:1395: checking for mpz_init in -lsmallgmp" >&5
1395ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'`
1396if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1397  echo $ac_n "(cached) $ac_c" 1>&6
1398else
1399  ac_save_LIBS="$LIBS"
1400LIBS="-lsmallgmp  $LIBS"
1401cat > conftest.$ac_ext <<EOF
1402#line 1403 "configure"
1403#include "confdefs.h"
1404/* Override any gcc2 internal prototype to avoid an error.  */
1405/* We use char because int might match the return type of a gcc2
1406    builtin and then its argument prototype would still apply.  */
1407char mpz_init();
1408
1409int main() {
1410mpz_init()
1411; return 0; }
1412EOF
1413if { (eval echo configure:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1414  rm -rf conftest*
1415  eval "ac_cv_lib_$ac_lib_var=yes"
1416else
1417  echo "configure: failed program was:" >&5
1418  cat conftest.$ac_ext >&5
1419  rm -rf conftest*
1420  eval "ac_cv_lib_$ac_lib_var=no"
1421fi
1422rm -f conftest*
1423LIBS="$ac_save_LIBS"
1424
1425fi
1426if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1427  echo "$ac_t""yes" 1>&6
1428    ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1429    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1430  cat >> confdefs.h <<EOF
1431#define $ac_tr_lib 1
1432EOF
1433
1434  LIBS="-lsmallgmp $LIBS"
1435
1436else
1437  echo "$ac_t""no" 1>&6
1438fi
1439
1440echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
1441echo "configure:1442: checking for IMP_PutGmpInt in -lMP" >&5
1442ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
1443if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1444  echo $ac_n "(cached) $ac_c" 1>&6
1445else
1446  ac_save_LIBS="$LIBS"
1447LIBS="-lMP  $LIBS"
1448cat > conftest.$ac_ext <<EOF
1449#line 1450 "configure"
1450#include "confdefs.h"
1451/* Override any gcc2 internal prototype to avoid an error.  */
1452/* We use char because int might match the return type of a gcc2
1453    builtin and then its argument prototype would still apply.  */
1454char IMP_PutGmpInt();
1455
1456int main() {
1457IMP_PutGmpInt()
1458; return 0; }
1459EOF
1460if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1461  rm -rf conftest*
1462  eval "ac_cv_lib_$ac_lib_var=yes"
1463else
1464  echo "configure: failed program was:" >&5
1465  cat conftest.$ac_ext >&5
1466  rm -rf conftest*
1467  eval "ac_cv_lib_$ac_lib_var=no"
1468fi
1469rm -f conftest*
1470LIBS="$ac_save_LIBS"
1471
1472fi
1473if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1474  echo "$ac_t""yes" 1>&6
1475    ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1476    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1477  cat >> confdefs.h <<EOF
1478#define $ac_tr_lib 1
1479EOF
1480
1481  LIBS="-lMP $LIBS"
1482
1483else
1484  echo "$ac_t""no" 1>&6
1485fi
1486
1487echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
1488echo "configure:1489: checking for MPT_GetTree in -lMPT" >&5
1489ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
1490if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1491  echo $ac_n "(cached) $ac_c" 1>&6
1492else
1493  ac_save_LIBS="$LIBS"
1494LIBS="-lMPT  $LIBS"
1495cat > conftest.$ac_ext <<EOF
1496#line 1497 "configure"
1497#include "confdefs.h"
1498/* Override any gcc2 internal prototype to avoid an error.  */
1499/* We use char because int might match the return type of a gcc2
1500    builtin and then its argument prototype would still apply.  */
1501char MPT_GetTree();
1502
1503int main() {
1504MPT_GetTree()
1505; return 0; }
1506EOF
1507if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1508  rm -rf conftest*
1509  eval "ac_cv_lib_$ac_lib_var=yes"
1510else
1511  echo "configure: failed program was:" >&5
1512  cat conftest.$ac_ext >&5
1513  rm -rf conftest*
1514  eval "ac_cv_lib_$ac_lib_var=no"
1515fi
1516rm -f conftest*
1517LIBS="$ac_save_LIBS"
1518
1519fi
1520if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1521  echo "$ac_t""yes" 1>&6
1522    ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1523    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1524  cat >> confdefs.h <<EOF
1525#define $ac_tr_lib 1
1526EOF
1527
1528  LIBS="-lMPT $LIBS"
1529
1530else
1531  echo "$ac_t""no" 1>&6
1532fi
1533
1534echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
1535echo "configure:1536: checking for atof in -lsingcf" >&5
1536ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
1537if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1538  echo $ac_n "(cached) $ac_c" 1>&6
1539else
1540  ac_save_LIBS="$LIBS"
1541LIBS="-lsingcf  $LIBS"
1542cat > conftest.$ac_ext <<EOF
1543#line 1544 "configure"
1544#include "confdefs.h"
1545/* Override any gcc2 internal prototype to avoid an error.  */
1546/* We use char because int might match the return type of a gcc2
1547    builtin and then its argument prototype would still apply.  */
1548char atof();
1549
1550int main() {
1551atof()
1552; return 0; }
1553EOF
1554if { (eval echo configure:1555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1555  rm -rf conftest*
1556  eval "ac_cv_lib_$ac_lib_var=yes"
1557else
1558  echo "configure: failed program was:" >&5
1559  cat conftest.$ac_ext >&5
1560  rm -rf conftest*
1561  eval "ac_cv_lib_$ac_lib_var=no"
1562fi
1563rm -f conftest*
1564LIBS="$ac_save_LIBS"
1565
1566fi
1567if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1568  echo "$ac_t""yes" 1>&6
1569    ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1570    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1571  cat >> confdefs.h <<EOF
1572#define $ac_tr_lib 1
1573EOF
1574
1575  LIBS="-lsingcf $LIBS"
1576
1577else
1578  echo "$ac_t""no" 1>&6
1579fi
1580
1581echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
1582echo "configure:1583: checking for atof in -lsingfac" >&5
1583ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
1584if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1585  echo $ac_n "(cached) $ac_c" 1>&6
1586else
1587  ac_save_LIBS="$LIBS"
1588LIBS="-lsingfac  $LIBS"
1589cat > conftest.$ac_ext <<EOF
1590#line 1591 "configure"
1591#include "confdefs.h"
1592/* Override any gcc2 internal prototype to avoid an error.  */
1593/* We use char because int might match the return type of a gcc2
1594    builtin and then its argument prototype would still apply.  */
1595char atof();
1596
1597int main() {
1598atof()
1599; return 0; }
1600EOF
1601if { (eval echo configure:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1602  rm -rf conftest*
1603  eval "ac_cv_lib_$ac_lib_var=yes"
1604else
1605  echo "configure: failed program was:" >&5
1606  cat conftest.$ac_ext >&5
1607  rm -rf conftest*
1608  eval "ac_cv_lib_$ac_lib_var=no"
1609fi
1610rm -f conftest*
1611LIBS="$ac_save_LIBS"
1612
1613fi
1614if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1615  echo "$ac_t""yes" 1>&6
1616    ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1617    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1618  cat >> confdefs.h <<EOF
1619#define $ac_tr_lib 1
1620EOF
1621
1622  LIBS="-lsingfac $LIBS"
1623
1624else
1625  echo "$ac_t""no" 1>&6
1626fi
1627
1628
1629for ac_hdr in gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h
1630do
1631ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1632echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1633echo "configure:1634: checking for $ac_hdr" >&5
1634if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1635  echo $ac_n "(cached) $ac_c" 1>&6
1636else
1637  cat > conftest.$ac_ext <<EOF
1638#line 1639 "configure"
1639#include "confdefs.h"
1640#include <$ac_hdr>
1641EOF
1642ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1643{ (eval echo configure:1644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1644ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1645if test -z "$ac_err"; then
1646  rm -rf conftest*
1647  eval "ac_cv_header_$ac_safe=yes"
1648else
1649  echo "$ac_err" >&5
1650  echo "configure: failed program was:" >&5
1651  cat conftest.$ac_ext >&5
1652  rm -rf conftest*
1653  eval "ac_cv_header_$ac_safe=no"
1654fi
1655rm -f conftest*
1656fi
1657if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1658  echo "$ac_t""yes" 1>&6
1659    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1660  cat >> confdefs.h <<EOF
1661#define $ac_tr_hdr 1
1662EOF
1663 
1664else
1665  echo "$ac_t""no" 1>&6
1666fi
1667done
1668
1669
1670if test "$ac_cv_lib_gmp_mpq_init" = yes && \
1671 test "$ac_cv_header_gmp_h" = yes; then
1672  ac_gmp_ok=yes
1673fi
1674
1675if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \
1676 test "$ac_cv_header_smallgmp_h" = yes && \
1677 test "$ac_cv_header_gmp_h" = yes; then
1678  ac_smallgmp_ok=yes
1679fi
1680
1681if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \
1682 test "$ac_cv_lib_MPT_MPT_GetTree" && \
1683 test "$ac_cv_header_MP_h" = yes && \
1684 test "$ac_cv_header_MPT_h" = yes; then
1685  ac_MP_ok=yes
1686fi
1687
1688if test "$ac_cv_lib_singcf_atof" = yes && \
1689 test "$ac_cv_header_factory_h" = yes; then
1690  ac_factory_ok=yes
1691fi
1692
1693if test "$ac_cv_lib_singfac_atof" = yes && \
1694 test "$ac_cv_header_factor_h" = yes; then
1695  ac_libfac_ok=yes
1696fi
1697
1698 
1699# Check whether --with-tmpdir or --without-tmpdir was given.
1700if test "${with_tmpdir+set}" = set; then
1701  withval="$with_tmpdir"
1702  :
1703fi
1704
1705# Check whether --enable-smallgmp or --disable-smallgmp was given.
1706if test "${enable_smallgmp+set}" = set; then
1707  enableval="$enable_smallgmp"
1708  :
1709fi
1710
1711# Check whether --enable-gmp or --disable-gmp was given.
1712if test "${enable_gmp+set}" = set; then
1713  enableval="$enable_gmp"
1714  :
1715fi
1716
1717# Check whether --enable-MP or --disable-MP was given.
1718if test "${enable_MP+set}" = set; then
1719  enableval="$enable_MP"
1720  :
1721fi
1722
1723# Check whether --enable-factory or --disable-factory was given.
1724if test "${enable_factory+set}" = set; then
1725  enableval="$enable_factory"
1726  :
1727fi
1728
1729# Check whether --enable-libfac or --disable-libfac was given.
1730if test "${enable_libfac+set}" = set; then
1731  enableval="$enable_libfac"
1732  :
1733fi
1734
1735# Check whether --enable-sgroup or --disable-sgroup was given.
1736if test "${enable_sgroup+set}" = set; then
1737  enableval="$enable_sgroup"
1738  :
1739fi
1740
1741# Check whether --enable-Singular or --disable-Singular was given.
1742if test "${enable_Singular+set}" = set; then
1743  enableval="$enable_Singular"
1744  :
1745fi
1746
1747# Check whether --enable-Texinfo or --disable-Texinfo was given.
1748if test "${enable_Texinfo+set}" = set; then
1749  enableval="$enable_Texinfo"
1750  :
1751fi
1752
1753
1754# Check whether --with-MP or --without-MP was given.
1755if test "${with_MP+set}" = set; then
1756  withval="$with_MP"
1757  :
1758fi
1759
1760# Check whether --with-factory or --without-factory was given.
1761if test "${with_factory+set}" = set; then
1762  withval="$with_factory"
1763  :
1764fi
1765
1766# Check whether --with-libfac or --without-libfac was given.
1767if test "${with_libfac+set}" = set; then
1768  withval="$with_libfac"
1769  :
1770fi
1771
1772# Check whether --with-gmp or --without-gmp was given.
1773if test "${with_gmp+set}" = set; then
1774  withval="$with_gmp"
1775  :
1776fi
1777
1778
1779echo $ac_n "checking which tmp dir to use""... $ac_c" 1>&6
1780echo "configure:1781: checking which tmp dir to use" >&5
1781if test "${with_tmpdir+set}" = set && test -d ${with_tmpdir}; then
1782  if (echo "${with_tmpdir}" | egrep "\." >/dev/null 2>&1)
1783  then
1784    TMP_DIR="/tmp"
1785  else
1786    TMP_DIR=${with_tmpdir}
1787  fi
1788else
1789  TMP_DIR="/tmp"
1790fi
1791echo "$ac_t""$TMP_DIR" 1>&6
1792
1793
1794echo $ac_n "checking whether to configure and build texinfo""... $ac_c" 1>&6
1795echo "configure:1796: checking whether to configure and build texinfo" >&5
1796if test "$enable_texinfo" != no && test -d Texinfo; then
1797  echo "$ac_t""yes" 1>&6
1798  enable_texinfo=yes
1799  CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texinfo"
1800  TEXI2DVI=${bindir}/texi2dvi
1801  MAKEINFO="${bindir}/makeinfo --force"
1802  TEXINDEX=${bindir}/texindex
1803else
1804  echo "$ac_t""no" 1>&6
1805  echo "configure: warning: Building of doc might fail. Need Texinfo" 1>&2
1806  enable_texinfo=no
1807  TEXI2DVI=texi2dvi
1808  MAKEINFO=makeinfo
1809  TEXINDEX=${bindir}/texindex
1810fi 
1811
1812
1813
1814
1815
1816echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6
1817echo "configure:1818: checking whether to configure and build gmp lib" >&5
1818if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
1819  if test "$ac_gmp_ok" != yes && test -d gmp; then
1820    echo "$ac_t""yes" 1>&6
1821    enable_gmp=yes
1822    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
1823    ac_configure_args="$ac_configure_args --enable-gmp"
1824    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
1825  else
1826    echo "$ac_t""no" 1>&6
1827    enable_gmp=no
1828  fi
1829elif test "$enable_gmp" = yes; then
1830  if test ! -d gmp; then
1831    echo "$ac_t""no" 1>&6
1832    { echo "configure: error: Can not find gmp subdir" 1>&2; exit 1; }
1833  else
1834    echo "$ac_t""yes" 1>&6
1835    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
1836    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
1837  fi
1838else
1839  echo "$ac_t""no" 1>&6
1840fi
1841
1842echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6
1843echo "configure:1844: checking whether to configure and build smallgmp lib" >&5
1844if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
1845  if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
1846     test "$enable_gmp" != yes && test -d smallgmp; then
1847    echo "$ac_t""yes" 1>&6
1848    enable_smallgmp=yes
1849    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
1850    ac_configure_args="$ac_configure_args --enable-smallgmp --enable-gmp"
1851  else
1852    echo "$ac_t""no" 1>&6
1853    enable_smallgmp=no
1854  fi
1855elif test "$enable_smallgmp" = yes; then
1856  if test ! -d smallgmp; then
1857    echo "$ac_t""no" 1>&6
1858    { echo "configure: error: Can not find smallgmp subdir" 1>&2; exit 1; }
1859  else
1860    echo "$ac_t""yes" 1>&6
1861    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
1862    if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
1863      ac_configure_args="$ac_configure_args --enable-gmp"
1864    fi
1865  fi
1866else
1867  echo "$ac_t""${enable_smallgmp}" 1>&6
1868fi
1869
1870# Check whether we have at least one of smallgmp or gmp
1871if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
1872   test "$enable_smallgmp" != yes && test "$enable_gmp" != yes; then
1873  { echo "configure: error: can neither find nor built gmp or smallgmp" 1>&2; exit 1; }
1874fi
1875
1876# Check whether we need to cheat subsequent configures with --enable-gmp
1877if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes; then
1878  ac_configure_args="$ac_configure_args --enable-gmp"
1879fi
1880
1881echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6
1882echo "configure:1883: checking whether to configure and build MP lib" >&5
1883if test "$enable_MP" != yes && test "$enable_MP" != no; then
1884  if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
1885     (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then
1886    echo "$ac_t""yes" 1>&6
1887    enable_MP=yes
1888    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
1889    ac_configure_args="$ac_configure_args --enable-MP"
1890  else
1891    echo "$ac_t""no" 1>&6
1892    enable_MP=no
1893  fi
1894elif test "$enable_MP" = yes; then
1895  if test ! -d MP; then
1896    echo "$ac_t""no" 1>&6
1897    { echo "configure: error: can not build MP without MP directory" 1>&2; exit 1; }
1898  fi
1899  if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then
1900    echo "$ac_t""yes" 1>&6
1901    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
1902  else
1903    echo "$ac_t""no" 1>&6
1904    { echo "configure: error: can not build MP without gmp" 1>&2; exit 1; }
1905  fi
1906else
1907  echo "$ac_t""no" 1>&6
1908fi
1909 
1910echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
1911echo "configure:1912: checking whether to configure and build factory lib" >&5
1912if test "$enable_factory" != yes && test "$enable_factory" != no; then
1913  if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
1914     test -d factory; then
1915    enable_factory=yes
1916    echo "$ac_t""yes" 1>&6
1917    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
1918    ac_configure_args="$ac_configure_args --enable-factory"
1919  else
1920    enable_factory=no
1921    echo "$ac_t""no" 1>&6
1922  fi
1923elif test "$enable_factory" = yes; then
1924  if test -d factory; then
1925    echo "$ac_t""yes" 1>&6
1926    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
1927  else
1928    echo "$ac_t""no" 1>&6
1929    { echo "configure: error: can not build factory without factory directory" 1>&2; exit 1; }
1930  fi
1931else
1932  echo "$ac_t""no" 1>&6
1933fi
1934
1935echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
1936echo "configure:1937: checking whether to configure and build libfac lib" >&5
1937if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
1938  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
1939     test -d libfac && \
1940     (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then
1941    enable_libfac=yes
1942    echo "$ac_t""yes" 1>&6
1943    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
1944    ac_configure_args="$ac_configure_args --enable-libfac"
1945  else
1946    enable_libfac=no
1947    echo "$ac_t""no" 1>&6
1948  fi
1949elif  test "$enable_libfac" = yes; then
1950  if test ! -d libfac; then
1951    echo "$ac_t""no" 1>&6
1952    { echo "configure: error: can not build libfac without libfac directory" 1>&2; exit 1; }
1953  fi
1954  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
1955    echo "$ac_t""yes" 1>&6
1956    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
1957  else
1958    echo "$ac_t""no" 1>&6
1959    { echo "configure: error: Can not build libfac without factory" 1>&2; exit 1; }
1960  fi
1961else
1962  echo "$ac_t""no" 1>&6
1963fi
1964
1965echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6
1966echo "configure:1967: checking whether to configure and build sgroup lib" >&5
1967if test "$enable_sgroup" != yes && test "$enable_sgroup" != no; then
1968  if test "$with_sgroup" != no && test "$ac_sgroup_ok" != yes && \
1969     test -d sgroup && \
1970     (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then
1971    enable_sgroup=yes
1972    echo "$ac_t""yes" 1>&6
1973    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
1974    ac_configure_args="$ac_configure_args --enable-sgroup"
1975  else
1976    enable_sgroup=no
1977    echo "$ac_t""no" 1>&6
1978  fi
1979elif  test "$enable_sgroup" = yes; then
1980  if test ! -d sgroup; then
1981    echo "$ac_t""no" 1>&6
1982    { echo "configure: error: can not build sgroup without sgroup directory" 1>&2; exit 1; }
1983  fi
1984  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
1985    echo "$ac_t""yes" 1>&6
1986    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
1987  else
1988    echo "$ac_t""no" 1>&6
1989    { echo "configure: error: Can not build sgroup without MP" 1>&2; exit 1; }
1990  fi
1991else
1992  echo "$ac_t""no" 1>&6
1993fi
1994
1995echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
1996echo "configure:1997: checking whether to configure and build Singular" >&5
1997if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
1998  if test "$with_Singular" != no && test -d Singular; then
1999    enable_Singular=yes
2000    echo "$ac_t""yes" 1>&6
2001    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
2002    ac_configure_args="$ac_configure_args --enable-Singular"
2003  else
2004    enable_Singular=no
2005    echo "$ac_t""no" 1>&6
2006  fi
2007elif test "$enable_Singular" = yes; then
2008  if test -d Singular; then
2009    echo "$ac_t""yes" 1>&6
2010    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
2011  else
2012    echo "$ac_t""no" 1>&6
2013    { echo "configure: error: can not build Singular without Singular directory" 1>&2; exit 1; }
2014  fi
2015else
2016  echo "$ac_t""no" 1>&6
2017fi
2018
2019
2020echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
2021echo "configure:2022: checking which apint package to use" >&5
2022if test "$with_apint" = gmp; then
2023  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
2024    echo "$ac_t""gmp" 1>&6
2025  else
2026    echo "$ac_t""none" 1>&6
2027    { echo "configure: error: can not use with gmp without finding or building it" 1>&2; exit 1; }
2028  fi
2029elif test "$with_apint" = smallgmp; then
2030  if test "$ac_smallgmp_ok" = yes || test "$enable_smallgmp" = yes; then
2031    echo "$ac_t""smallgmp" 1>&6
2032  else
2033    echo "$ac_t""none" 1>&6
2034    { echo "configure: error: can not use with smallgmp without finding or building it" 1>&2; exit 1; }
2035  fi
2036elif test "$ac_gmp_ok" = yes || test "$enable_gmp"; then
2037    echo "$ac_t""gmp" 1>&6
2038    ac_configure_args="$ac_configure_args --with-apint=gmp"
2039else
2040   echo "$ac_t""smallgmp" 1>&6
2041   ac_configure_args="$ac_configure_args --with-apint=smallgmp"
2042fi
2043
2044echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
2045echo "configure:2046: checking whether to use with MP" >&5
2046if test "$with_MP" = yes; then
2047  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2048    echo "$ac_t""yes" 1>&6
2049  else
2050    echo "$ac_t""none" 1>&6
2051    { echo "configure: error: can not use with MP without finding or building it" 1>&2; exit 1; }
2052  fi
2053elif test "$with_MP" = no; then
2054  echo "$ac_t""no" 1>&6
2055elif test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2056  echo "$ac_t""yes" 1>&6
2057  ac_configure_args="$ac_configure_args --with-MP"
2058else
2059  echo "$ac_t""no" 1>&6
2060  ac_configure_args="$ac_configure_args --without-MP"
2061fi
2062
2063echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
2064echo "configure:2065: checking whether to use with factory" >&5
2065if test "$with_factory" = yes; then
2066  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2067    echo "$ac_t""yes" 1>&6
2068  else
2069    echo "$ac_t""none" 1>&6
2070    { echo "configure: error: can not use with factory without finding or building it" 1>&2; exit 1; }
2071  fi
2072elif test "$with_factory" = no; then
2073  echo "$ac_t""no" 1>&6
2074elif test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2075  echo "$ac_t""yes" 1>&6
2076  ac_configure_args="$ac_configure_args --with-factory"
2077else
2078  echo "$ac_t""no" 1>&6
2079  ac_configure_args="$ac_configure_args --without-factory"
2080fi
2081 
2082echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
2083echo "configure:2084: checking whether to use with libfac" >&5
2084if test "$with_libfac" = yes; then
2085  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
2086    echo "$ac_t""yes" 1>&6
2087  else
2088    echo "$ac_t""none" 1>&6
2089    { echo "configure: error: can not use with libfac without finding or building it" 1>&2; exit 1; }
2090  fi
2091elif test "$with_libfac" = no; then
2092  echo "$ac_t""no" 1>&6
2093elif test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
2094  echo "$ac_t""yes" 1>&6
2095  ac_configure_args="$ac_configure_args --with-libfac"
2096else
2097  echo "$ac_t""no" 1>&6
2098  ac_configure_args="$ac_configure_args --without-libfac"
2099fi
2100
2101echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
2102echo "configure:2103: checking whether to use with Singular" >&5
2103if test "$with_Singular" != no && test "$with_Singular" != yes; then
2104  if test "$enable_Singular" = yes; then
2105    with_Singular=yes
2106  else
2107    with_Singular=no
2108  fi
2109  ac_configure_args="$ac_configure_args --with-Singular=$with_Singular"
2110fi
2111
2112if test "$with_Singular" != no; then
2113  echo "$ac_t""yes" 1>&6
2114else
2115  echo "$ac_t""no" 1>&6
2116fi
2117
2118
2119SUBDIRS=""
2120if test -d doc; then
2121  SUBDIRS="$SUBDIRS doc"
2122fi
2123if test -d smallgmp; then
2124  SUBDIRS="$SUBDIRS smallgmp"
2125fi
2126if test -d gmp; then
2127  SUBDIRS="$SUBDIRS gmp"
2128fi
2129if test -d MP; then
2130  SUBDIRS="$SUBDIRS MP"
2131fi
2132if test -d factory; then
2133  SUBDIRS="$SUBDIRS factory"
2134fi
2135if test -d libfac; then
2136  SUBDIRS="$SUBDIRS libfac"
2137fi
2138if test -d sgroup; then
2139  SUBDIRS="$SUBDIRS sgroup"
2140fi
2141if test -d Singular; then
2142  SUBDIRS="$SUBDIRS Singular"
2143fi
2144if test -d rpm; then
2145  SUBDIRS="$SUBDIRS rpm"
2146fi
2147if test -d mpr; then
2148  CONFIG_SUBDIRS="$CONFIG_SUBDIRS mpr"
2149  SUBDIRS="$SUBDIRS mpr"
2150fi
2151 
2152
2153echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2154echo "configure:2155: checking whether ${MAKE-make} sets \${MAKE}" >&5
2155set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2156if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2157  echo $ac_n "(cached) $ac_c" 1>&6
2158else
2159  cat > conftestmake <<\EOF
2160all:
2161        @echo 'ac_maketemp="${MAKE}"'
2162EOF
2163# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2164eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2165if test -n "$ac_maketemp"; then
2166  eval ac_cv_prog_make_${ac_make}_set=yes
2167else
2168  eval ac_cv_prog_make_${ac_make}_set=no
2169fi
2170rm -f conftestmake
2171fi
2172if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2173  echo "$ac_t""yes" 1>&6
2174  SET_MAKE=
2175else
2176  echo "$ac_t""no" 1>&6
2177  SET_MAKE="MAKE=${MAKE-make}"
2178fi
2179
2180
2181
2182ac_aux_dir=
2183for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2184  if test -f $ac_dir/install-sh; then
2185    ac_aux_dir=$ac_dir
2186    ac_install_sh="$ac_aux_dir/install-sh -c"
2187    break
2188  elif test -f $ac_dir/install.sh; then
2189    ac_aux_dir=$ac_dir
2190    ac_install_sh="$ac_aux_dir/install.sh -c"
2191    break
2192  fi
2193done
2194if test -z "$ac_aux_dir"; then
2195  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
2196fi
2197ac_config_guess=$ac_aux_dir/config.guess
2198ac_config_sub=$ac_aux_dir/config.sub
2199ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
2200
2201subdirs="$CONFIG_SUBDIRS"
2202 
2203
2204trap '' 1 2 15
2205cat > confcache <<\EOF
2206# This file is a shell script that caches the results of configure
2207# tests run on this system so they can be shared between configure
2208# scripts and configure runs.  It is not useful on other systems.
2209# If it contains results you don't want to keep, you may remove or edit it.
2210#
2211# By default, configure uses ./config.cache as the cache file,
2212# creating it if it does not exist already.  You can give configure
2213# the --cache-file=FILE option to use a different cache file; that is
2214# what configure does when it calls configure scripts in
2215# subdirectories, so they share the cache.
2216# Giving --cache-file=/dev/null disables caching, for debugging configure.
2217# config.status only pays attention to the cache file if you give it the
2218# --recheck option to rerun configure.
2219#
2220EOF
2221# The following way of writing the cache mishandles newlines in values,
2222# but we know of no workaround that is simple, portable, and efficient.
2223# So, don't put newlines in cache variables' values.
2224# Ultrix sh set writes to stderr and can't be redirected directly,
2225# and sets the high bit in the cache file unless we assign to the vars.
2226(set) 2>&1 |
2227  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2228  *ac_space=\ *)
2229    # `set' does not quote correctly, so add quotes (double-quote substitution
2230    # turns \\\\ into \\, and sed turns \\ into \).
2231    sed -n \
2232      -e "s/'/'\\\\''/g" \
2233      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2234    ;;
2235  *)
2236    # `set' quotes correctly as required by POSIX, so do not add quotes.
2237    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2238    ;;
2239  esac >> confcache
2240if cmp -s $cache_file confcache; then
2241  :
2242else
2243  if test -w $cache_file; then
2244    echo "updating cache $cache_file"
2245    cat confcache > $cache_file
2246  else
2247    echo "not updating unwritable cache $cache_file"
2248  fi
2249fi
2250rm -f confcache
2251
2252trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2253
2254test "x$prefix" = xNONE && prefix=$ac_default_prefix
2255# Let make expand exec_prefix.
2256test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2257
2258# Any assignment to VPATH causes Sun make to only execute
2259# the first set of double-colon rules, so remove it if not needed.
2260# If there is a colon in the path, we need to keep it.
2261if test "x$srcdir" = x.; then
2262  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2263fi
2264
2265trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2266
2267# Transform confdefs.h into DEFS.
2268# Protect against shell expansion while executing Makefile rules.
2269# Protect against Makefile macro expansion.
2270cat > conftest.defs <<\EOF
2271s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2272s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2273s%\[%\\&%g
2274s%\]%\\&%g
2275s%\$%$$%g
2276EOF
2277DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2278rm -f conftest.defs
2279
2280
2281# Without the "./", some shells look in PATH for config.status.
2282: ${CONFIG_STATUS=./config.status}
2283
2284echo creating $CONFIG_STATUS
2285rm -f $CONFIG_STATUS
2286cat > $CONFIG_STATUS <<EOF
2287#! /bin/sh
2288# Generated automatically by configure.
2289# Run this file to recreate the current configuration.
2290# This directory was configured as follows,
2291# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2292#
2293# $0 $ac_configure_args
2294#
2295# Compiler output produced by configure, useful for debugging
2296# configure, is in ./config.log if it exists.
2297
2298ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2299for ac_option
2300do
2301  case "\$ac_option" in
2302  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2303    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2304    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2305  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2306    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2307    exit 0 ;;
2308  -help | --help | --hel | --he | --h)
2309    echo "\$ac_cs_usage"; exit 0 ;;
2310  *) echo "\$ac_cs_usage"; exit 1 ;;
2311  esac
2312done
2313
2314ac_given_srcdir=$srcdir
2315
2316trap 'rm -fr `echo "${OUTPUT_MAKEFILES}" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2317EOF
2318cat >> $CONFIG_STATUS <<EOF
2319
2320# Protect against being on the right side of a sed subst in config.status.
2321sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2322 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2323$ac_vpsub
2324$extrasub
2325s%@SHELL@%$SHELL%g
2326s%@CFLAGS@%$CFLAGS%g
2327s%@CPPFLAGS@%$CPPFLAGS%g
2328s%@CXXFLAGS@%$CXXFLAGS%g
2329s%@FFLAGS@%$FFLAGS%g
2330s%@DEFS@%$DEFS%g
2331s%@LDFLAGS@%$LDFLAGS%g
2332s%@LIBS@%$LIBS%g
2333s%@exec_prefix@%$exec_prefix%g
2334s%@prefix@%$prefix%g
2335s%@program_transform_name@%$program_transform_name%g
2336s%@bindir@%$bindir%g
2337s%@sbindir@%$sbindir%g
2338s%@libexecdir@%$libexecdir%g
2339s%@datadir@%$datadir%g
2340s%@sysconfdir@%$sysconfdir%g
2341s%@sharedstatedir@%$sharedstatedir%g
2342s%@localstatedir@%$localstatedir%g
2343s%@libdir@%$libdir%g
2344s%@includedir@%$includedir%g
2345s%@oldincludedir@%$oldincludedir%g
2346s%@infodir@%$infodir%g
2347s%@mandir@%$mandir%g
2348s%@SINGUNAME@%$SINGUNAME%g
2349s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g
2350s%@VERSION_DATE@%$VERSION_DATE%g
2351s%@SINGULAR_SHORT_VERSION@%$SINGULAR_SHORT_VERSION%g
2352s%@CC@%$CC%g
2353s%@CPP@%$CPP%g
2354s%@PERL@%$PERL%g
2355s%@LATEX2HTML@%$LATEX2HTML%g
2356s%@LN_S@%$LN_S%g
2357s%@TEXI2HTML@%$TEXI2HTML%g
2358s%@TEXI2HTML_OPTS@%$TEXI2HTML_OPTS%g
2359s%@SINGULAR@%$SINGULAR%g
2360s%@TMP_DIR@%$TMP_DIR%g
2361s%@TEXI2DVI@%$TEXI2DVI%g
2362s%@MAKEINFO@%$MAKEINFO%g
2363s%@TEXINDEX@%$TEXINDEX%g
2364s%@SET_MAKE@%$SET_MAKE%g
2365s%@SUBDIRS@%$SUBDIRS%g
2366s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g
2367s%@subdirs@%$subdirs%g
2368
2369CEOF
2370EOF
2371
2372cat >> $CONFIG_STATUS <<\EOF
2373
2374# Split the substitutions into bite-sized pieces for seds with
2375# small command number limits, like on Digital OSF/1 and HP-UX.
2376ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2377ac_file=1 # Number of current file.
2378ac_beg=1 # First line for current file.
2379ac_end=$ac_max_sed_cmds # Line after last line for current file.
2380ac_more_lines=:
2381ac_sed_cmds=""
2382while $ac_more_lines; do
2383  if test $ac_beg -gt 1; then
2384    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2385  else
2386    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2387  fi
2388  if test ! -s conftest.s$ac_file; then
2389    ac_more_lines=false
2390    rm -f conftest.s$ac_file
2391  else
2392    if test -z "$ac_sed_cmds"; then
2393      ac_sed_cmds="sed -f conftest.s$ac_file"
2394    else
2395      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2396    fi
2397    ac_file=`expr $ac_file + 1`
2398    ac_beg=$ac_end
2399    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2400  fi
2401done
2402if test -z "$ac_sed_cmds"; then
2403  ac_sed_cmds=cat
2404fi
2405EOF
2406
2407cat >> $CONFIG_STATUS <<EOF
2408
2409CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"}
2410EOF
2411cat >> $CONFIG_STATUS <<\EOF
2412for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2413  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2414  case "$ac_file" in
2415  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2416       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2417  *) ac_file_in="${ac_file}.in" ;;
2418  esac
2419
2420  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2421
2422  # Remove last slash and all that follows it.  Not all systems have dirname.
2423  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2424  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2425    # The file is in a subdirectory.
2426    test ! -d "$ac_dir" && mkdir "$ac_dir"
2427    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2428    # A "../" for each directory in $ac_dir_suffix.
2429    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2430  else
2431    ac_dir_suffix= ac_dots=
2432  fi
2433
2434  case "$ac_given_srcdir" in
2435  .)  srcdir=.
2436      if test -z "$ac_dots"; then top_srcdir=.
2437      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2438  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2439  *) # Relative path.
2440    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2441    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2442  esac
2443
2444
2445  echo creating "$ac_file"
2446  rm -f "$ac_file"
2447  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2448  case "$ac_file" in
2449  *Makefile*) ac_comsub="1i\\
2450# $configure_input" ;;
2451  *) ac_comsub= ;;
2452  esac
2453
2454  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2455  sed -e "$ac_comsub
2456s%@configure_input@%$configure_input%g
2457s%@srcdir@%$srcdir%g
2458s%@top_srcdir@%$top_srcdir%g
2459" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2460fi; done
2461rm -f conftest.s*
2462
2463EOF
2464cat >> $CONFIG_STATUS <<EOF
2465
2466EOF
2467cat >> $CONFIG_STATUS <<\EOF
2468
2469exit 0
2470EOF
2471chmod +x $CONFIG_STATUS
2472rm -fr confdefs* $ac_clean_files
2473test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2474
2475if test "$no_recursion" != yes; then
2476
2477  # Remove --cache-file and --srcdir arguments so they do not pile up.
2478  ac_sub_configure_args=
2479  ac_prev=
2480  for ac_arg in $ac_configure_args; do
2481    if test -n "$ac_prev"; then
2482      ac_prev=
2483      continue
2484    fi
2485    case "$ac_arg" in
2486    -cache-file | --cache-file | --cache-fil | --cache-fi \
2487    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2488      ac_prev=cache_file ;;
2489    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2490    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2491      ;;
2492    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2493      ac_prev=srcdir ;;
2494    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2495      ;;
2496    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2497    esac
2498  done
2499
2500  for ac_config_dir in $CONFIG_SUBDIRS; do
2501
2502    # Do not complain, so a configure script can configure whichever
2503    # parts of a large source tree are present.
2504    if test ! -d $srcdir/$ac_config_dir; then
2505      continue
2506    fi
2507
2508    echo configuring in $ac_config_dir
2509
2510    case "$srcdir" in
2511    .) ;;
2512    *)
2513      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2514      else
2515        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2516      fi
2517      ;;
2518    esac
2519
2520    ac_popdir=`pwd`
2521    cd $ac_config_dir
2522
2523      # A "../" for each directory in /$ac_config_dir.
2524      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2525
2526    case "$srcdir" in
2527    .) # No --srcdir option.  We are building in place.
2528      ac_sub_srcdir=$srcdir ;;
2529    /*) # Absolute path.
2530      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2531    *) # Relative path.
2532      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2533    esac
2534
2535    # Check for guested configure; otherwise get Cygnus style configure.
2536    if test -f $ac_sub_srcdir/configure; then
2537      ac_sub_configure=$ac_sub_srcdir/configure
2538    elif test -f $ac_sub_srcdir/configure.in; then
2539      ac_sub_configure=$ac_configure
2540    else
2541      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2542      ac_sub_configure=
2543    fi
2544
2545    # The recursion is here.
2546    if test -n "$ac_sub_configure"; then
2547
2548      # Make the cache file name correct relative to the subdirectory.
2549      case "$cache_file" in
2550      /*) ac_sub_cache_file=$cache_file ;;
2551      *) # Relative path.
2552        ac_sub_cache_file="$ac_dots$cache_file" ;;
2553      esac
2554
2555      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2556      # The eval makes quoting arguments work.
2557      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2558      then :
2559      else
2560        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2561      fi
2562    fi
2563
2564    cd $ac_popdir
2565  done
2566fi
2567
Note: See TracBrowser for help on using the repository browser.