source: git/configure @ dcc635

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