source: git/configure @ 43bcc5

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