source: git/configure @ 7b4121

spielwiese
Last change on this file since 7b4121 was 7b4121, checked in by Hans Schönemann <hannes@…>, 24 years ago
* hannes: optimisations, GMG's requests, update of Tsts (part 1), bug_13 git-svn-id: file:///usr/local/Singular/svn/trunk@3269 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 76.3 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.12
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_default_prefix=`pwd`
15ac_help="$ac_help
16\
17  --with-tmpdir=DIR       use DIR as temporary directory"
18ac_help="$ac_help
19  --with-perl5=[PERL5,no] uses PERL5 as perl5 program, default is perl5"
20ac_help="$ac_help
21\
22  --enable-PACKAGE        configure and build PACKAGE
23  --disable-PACKAGE       do not configure and build PACKAGE
24   where PACKAGE can be:
25     smallgmp             minimal version of gmp written in C only"
26ac_help="$ac_help
27\
28     gmp                  Gnu Multiple Precision package"
29ac_help="$ac_help
30\
31     MP                   Multi Protocol library"
32ac_help="$ac_help
33\
34     factory              polynomial factorization library"
35ac_help="$ac_help
36\
37     libfac               char set and modp poly factorization library"
38ac_help="$ac_help
39\
40     sgroup               numerical semigroup computations"
41ac_help="$ac_help
42\
43     Singular             CAS for Polynomial Computations"
44ac_help="$ac_help
45\
46     Texinfo              Texinfo for info, texi2dvi, makeinfo"
47ac_help="$ac_help
48\
49  --with-PACKAGE          use PACKAGE, provide dependent functionality
50  --without-PACKAGE       do not use PACKAGE, disable dependent functionality
51   where PACKAGE can be:
52     MP                   Multi Protocol library"
53ac_help="$ac_help
54\
55     factory              polynomial factorization library"
56ac_help="$ac_help
57\
58     libfac               char set and modp poly factorization library"
59ac_help="$ac_help
60\
61  --with-apint=PACKAGE    use PACKAGE for arbitary integer arithmetic
62                          where PACKAGE can be gmp or smallgmp
63All additional --enable and --with options are passed to subsequent calls
64to configure of the packages to be built. See also configure --help in
65these packages (resp. subdirs). "
66
67# Initialize some variables set by options.
68# The variables have the same names as the options, with
69# dashes changed to underlines.
70build=NONE
71cache_file=./config.cache
72exec_prefix=NONE
73host=NONE
74no_create=
75nonopt=NONE
76no_recursion=
77prefix=NONE
78program_prefix=NONE
79program_suffix=NONE
80program_transform_name=s,x,x,
81silent=
82site=
83srcdir=
84target=NONE
85verbose=
86x_includes=NONE
87x_libraries=NONE
88bindir='${exec_prefix}/bin'
89sbindir='${exec_prefix}/sbin'
90libexecdir='${exec_prefix}/libexec'
91datadir='${prefix}/share'
92sysconfdir='${prefix}/etc'
93sharedstatedir='${prefix}/com'
94localstatedir='${prefix}/var'
95libdir='${exec_prefix}/lib'
96includedir='${prefix}/include'
97oldincludedir='/usr/include'
98infodir='${prefix}/info'
99mandir='${prefix}/man'
100
101# Initialize some other variables.
102subdirs=
103MFLAGS= MAKEFLAGS=
104# Maximum number of lines to put in a shell here document.
105ac_max_here_lines=12
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)
387    echo "configure generated by autoconf version 2.12"
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.
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.
493if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
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
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'
557ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
558cross_compiling=$ac_cv_prog_cc_cross
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
574OUTPUT_MAKEFILES="Makefile doc/Makefile doc/version.texi"
575if test -d "mpr"; then
576   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" mpr/Makefile"
577fi
578if test -d "rpm"; then
579   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" rpm/Makefile"
580   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" rpm/rpmrc rpm/Singular.spec"
581fi
582if test -d "modules"; then
583   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" modules/Makefile"
584fi
585if test -d "modules/tools"; then
586   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" modules/tools/Makefile"
587fi
588
589echo $ac_n "checking uname for singular""... $ac_c" 1>&6
590echo "configure:591: checking uname for singular" >&5
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
600
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
610
611VERSION_SEP="-"
612
613# make them to env variables
614# pass them indirectly to subsequent configures
615SINGULAR_MAJOR_VERSION=1
616SINGULAR_MINOR_VERSION=3
617SINGULAR_SUB_VERSION=3
618SINGULAR_SHORT_VERSION="${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}"
619SINGULAR_VERSION="${SINGULAR_SHORT_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}"
620VERSION_DATE="February 1999"
621
622export SINGULAR_MINOR_VERSION
623export SINGULAR_MAJOR_VERSION
624export SINGULAR_SUB_VERSION
625export SINGULAR_VERSION
626export VERSION_DATE
627
628
629
630
631
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
635echo "configure:636: checking for $ac_word" >&5
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
642  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
643  for ac_dir in $PATH; do
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
664echo "configure:665: checking for $ac_word" >&5
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
671  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
672  ac_prog_rejected=no
673  for ac_dir in $PATH; do
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
711echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
712echo "configure:713: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
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'
718ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
719cross_compiling=$ac_cv_prog_cc_cross
720
721cat > conftest.$ac_ext <<EOF
722#line 723 "configure"
723#include "confdefs.h"
724main(){return(0);}
725EOF
726if { (eval echo configure:727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
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
746echo "configure:747: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
747echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
748cross_compiling=$ac_cv_prog_cc_cross
749
750echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
751echo "configure:752: checking whether we are using GNU C" >&5
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
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
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
768
769if test $ac_cv_prog_gcc = yes; then
770  GCC=yes
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
776if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
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
781  ac_cv_prog_cc_g=yes
782else
783  ac_cv_prog_cc_g=no
784fi
785rm -f conftest*
786
787fi
788
789echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
790  if test "$ac_test_CFLAGS" = set; then
791    CFLAGS="$ac_save_CFLAGS"
792  elif test $ac_cv_prog_cc_g = yes; then
793    CFLAGS="-g -O2"
794  else
795    CFLAGS="-O2"
796  fi
797else
798  GCC=
799  test "${CFLAGS+set}" = set || CFLAGS="-g"
800fi
801
802echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
803echo "configure:804: checking how to run the C preprocessor" >&5
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
818#line 819 "configure"
819#include "confdefs.h"
820#include <assert.h>
821Syntax Error
822EOF
823ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
824{ (eval echo configure:825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
825ac_err=`grep -v '^ *+' conftest.out`
826if test -z "$ac_err"; then
827  :
828else
829  echo "$ac_err" >&5
830  echo "configure: failed program was:" >&5
831  cat conftest.$ac_ext >&5
832  rm -rf conftest*
833  CPP="${CC-cc} -E -traditional-cpp"
834  cat > conftest.$ac_ext <<EOF
835#line 836 "configure"
836#include "confdefs.h"
837#include <assert.h>
838Syntax Error
839EOF
840ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
841{ (eval echo configure:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
842ac_err=`grep -v '^ *+' conftest.out`
843if test -z "$ac_err"; then
844  :
845else
846  echo "$ac_err" >&5
847  echo "configure: failed program was:" >&5
848  cat conftest.$ac_ext >&5
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
863echo $ac_n "checking for AIX""... $ac_c" 1>&6
864echo "configure:865: checking for AIX" >&5
865cat > conftest.$ac_ext <<EOF
866#line 867 "configure"
867#include "confdefs.h"
868#ifdef _AIX
869  yes
870#endif
871
872EOF
873if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
874  egrep "yes" >/dev/null 2>&1; then
875  rm -rf conftest*
876  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
877#define _ALL_SOURCE 1
878EOF
879
880else
881  rm -rf conftest*
882  echo "$ac_t""no" 1>&6
883fi
884rm -f conftest*
885
886
887
888for ac_prog in perl5 perl
889do
890# Extract the first word of "$ac_prog", so it can be a program name with args.
891set dummy $ac_prog; ac_word=$2
892echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
893echo "configure:894: checking for $ac_word" >&5
894if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
895  echo $ac_n "(cached) $ac_c" 1>&6
896else
897  if test -n "$PERL"; then
898  ac_cv_prog_PERL="$PERL" # Let the user override the test.
899else
900  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
901  for ac_dir in $PATH; do
902    test -z "$ac_dir" && ac_dir=.
903    if test -f $ac_dir/$ac_word; then
904      ac_cv_prog_PERL="$ac_prog"
905      break
906    fi
907  done
908  IFS="$ac_save_ifs"
909fi
910fi
911PERL="$ac_cv_prog_PERL"
912if test -n "$PERL"; then
913  echo "$ac_t""$PERL" 1>&6
914else
915  echo "$ac_t""no" 1>&6
916fi
917
918test -n "$PERL" && break
919done
920
921# Extract the first word of "latex2html", so it can be a program name with args.
922set dummy latex2html; ac_word=$2
923echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
924echo "configure:925: checking for $ac_word" >&5
925if eval "test \"`echo '$''{'ac_cv_prog_LATEX2HTML'+set}'`\" = set"; then
926  echo $ac_n "(cached) $ac_c" 1>&6
927else
928  if test -n "$LATEX2HTML"; then
929  ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
930else
931  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
932  for ac_dir in $PATH; do
933    test -z "$ac_dir" && ac_dir=.
934    if test -f $ac_dir/$ac_word; then
935      ac_cv_prog_LATEX2HTML="latex2html"
936      break
937    fi
938  done
939  IFS="$ac_save_ifs"
940fi
941fi
942LATEX2HTML="$ac_cv_prog_LATEX2HTML"
943if test -n "$LATEX2HTML"; then
944  echo "$ac_t""$LATEX2HTML" 1>&6
945else
946  echo "$ac_t""no" 1>&6
947fi
948
949echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
950echo "configure:951: checking whether ln -s works" >&5
951if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
952  echo $ac_n "(cached) $ac_c" 1>&6
953else
954  rm -f conftestdata
955if ln -s X conftestdata 2>/dev/null
956then
957  rm -f conftestdata
958  ac_cv_prog_LN_S="ln -s"
959else
960  ac_cv_prog_LN_S=ln
961fi
962fi
963LN_S="$ac_cv_prog_LN_S"
964if test "$ac_cv_prog_LN_S" = "ln -s"; then
965  echo "$ac_t""yes" 1>&6
966else
967  echo "$ac_t""no" 1>&6
968fi
969
970if test -x Texi2html/texi2html; then
971TEXI2HTML=`pwd`/Texi2html/texi2html
972
973else
974echo "configure: warning: could not find Texi2html/texi2html HTML generation might fail" 1>&2
975# Extract the first word of "texi2html", so it can be a program name with args.
976set dummy texi2html; ac_word=$2
977echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
978echo "configure:979: checking for $ac_word" >&5
979if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then
980  echo $ac_n "(cached) $ac_c" 1>&6
981else
982  if test -n "$TEXI2HTML"; then
983  ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
984else
985  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
986  for ac_dir in $PATH; do
987    test -z "$ac_dir" && ac_dir=.
988    if test -f $ac_dir/$ac_word; then
989      ac_cv_prog_TEXI2HTML="texi2html"
990      break
991    fi
992  done
993  IFS="$ac_save_ifs"
994fi
995fi
996TEXI2HTML="$ac_cv_prog_TEXI2HTML"
997if test -n "$TEXI2HTML"; then
998  echo "$ac_t""$TEXI2HTML" 1>&6
999else
1000  echo "$ac_t""no" 1>&6
1001fi
1002
1003fi
1004if test "$ac_cv_prog_LATEX2HTML" = latex2html; then
1005  TEXI2HTML_OPTS="-l2h"
1006else
1007 TEXI2HTML_OPTS="-expandinfo"
1008fi
1009
1010
1011# expand prefix and pass it to subsequent configures
1012if test "x$prefix" = xNONE; then
1013  prefix=${ac_default_prefix}
1014  ac_configure_args="$ac_configure_args --prefix=${prefix}"
1015fi
1016
1017# expand exec_prefix
1018if test "x$exec_prefix" = xNONE; then
1019 exec_prefix=${prefix}/${ac_cv_singuname}
1020 ac_configure_args="$ac_configure_args --exec_prefix=${exec_prefix}"
1021fi
1022
1023# expand bindir
1024if test "x$bindir" = 'x${exec_prefix}/bin'; then
1025  bindir="${exec_prefix}/bin"
1026  ac_configure_args="$ac_configure_args --bindir=${bindir}"
1027fi
1028
1029# expand libdir
1030if test "x$libdir" = 'x${exec_prefix}/lib'; then
1031  libdir="${exec_prefix}/lib/${SINGULAR_VERSION}"
1032  ac_configure_args="$ac_configure_args --libdir=${libdir}"
1033fi
1034
1035# expand includedir
1036if test "x$includedir" = 'x${prefix}/include'; then
1037  includedir="${exec_prefix}/include/${SINGULAR_VERSION}"
1038  ac_configure_args="$ac_configure_args --includedir=${includedir}"
1039fi
1040
1041# construct name of installed Singular executable
1042SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}
1043export SINGULAR
1044
1045
1046
1047# add -I to CPPFLAGS and -L to LDFLAGS, just to be sure
1048LDFLAGS="-L${libdir} ${LDFLAGS}"
1049CPPFLAGS="-I${includedir} ${CPPFLAGS}"
1050
1051# check for AIX
1052echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
1053echo "configure:1054: checking whether _AIX is defined" >&5
1054if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
1055  echo $ac_n "(cached) $ac_c" 1>&6
1056else
1057  cat > conftest.$ac_ext <<EOF
1058#line 1059 "configure"
1059#include "confdefs.h"
1060#ifdef _AIX
1061    yes
1062#endif
1063
1064EOF
1065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1066  egrep "yes" >/dev/null 2>&1; then
1067  rm -rf conftest*
1068  ac_cv_is_aix=yes
1069else
1070  rm -rf conftest*
1071  ac_cv_is_aix=no
1072fi
1073rm -f conftest*
1074
1075fi
1076
1077if test "$ac_cv_is_aix" = yes; then
1078  echo "$ac_t""yes" 1>&6
1079else
1080  echo "$ac_t""no" 1>&6
1081fi
1082
1083echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
1084echo "configure:1085: checking for atof in -lm" >&5
1085ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
1086if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1087  echo $ac_n "(cached) $ac_c" 1>&6
1088else
1089  ac_save_LIBS="$LIBS"
1090LIBS="-lm  $LIBS"
1091cat > conftest.$ac_ext <<EOF
1092#line 1093 "configure"
1093#include "confdefs.h"
1094/* Override any gcc2 internal prototype to avoid an error.  */
1095/* We use char because int might match the return type of a gcc2
1096    builtin and then its argument prototype would still apply.  */
1097char atof();
1098
1099int main() {
1100atof()
1101; return 0; }
1102EOF
1103if { (eval echo configure:1104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1104  rm -rf conftest*
1105  eval "ac_cv_lib_$ac_lib_var=yes"
1106else
1107  echo "configure: failed program was:" >&5
1108  cat conftest.$ac_ext >&5
1109  rm -rf conftest*
1110  eval "ac_cv_lib_$ac_lib_var=no"
1111fi
1112rm -f conftest*
1113LIBS="$ac_save_LIBS"
1114
1115fi
1116if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1117  echo "$ac_t""yes" 1>&6
1118    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1119    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1120  cat >> confdefs.h <<EOF
1121#define $ac_tr_lib 1
1122EOF
1123
1124  LIBS="-lm $LIBS"
1125
1126else
1127  echo "$ac_t""no" 1>&6
1128fi
1129
1130echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
1131echo "configure:1132: checking for socket in -lbsd" >&5
1132ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
1133if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1134  echo $ac_n "(cached) $ac_c" 1>&6
1135else
1136  ac_save_LIBS="$LIBS"
1137LIBS="-lbsd  $LIBS"
1138cat > conftest.$ac_ext <<EOF
1139#line 1140 "configure"
1140#include "confdefs.h"
1141/* Override any gcc2 internal prototype to avoid an error.  */
1142/* We use char because int might match the return type of a gcc2
1143    builtin and then its argument prototype would still apply.  */
1144char socket();
1145
1146int main() {
1147socket()
1148; return 0; }
1149EOF
1150if { (eval echo configure:1151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1151  rm -rf conftest*
1152  eval "ac_cv_lib_$ac_lib_var=yes"
1153else
1154  echo "configure: failed program was:" >&5
1155  cat conftest.$ac_ext >&5
1156  rm -rf conftest*
1157  eval "ac_cv_lib_$ac_lib_var=no"
1158fi
1159rm -f conftest*
1160LIBS="$ac_save_LIBS"
1161
1162fi
1163if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1164  echo "$ac_t""yes" 1>&6
1165    ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1166    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1167  cat >> confdefs.h <<EOF
1168#define $ac_tr_lib 1
1169EOF
1170
1171  LIBS="-lbsd $LIBS"
1172
1173else
1174  echo "$ac_t""no" 1>&6
1175fi
1176
1177echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6
1178echo "configure:1179: checking for listen in -lsocket" >&5
1179ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'`
1180if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1181  echo $ac_n "(cached) $ac_c" 1>&6
1182else
1183  ac_save_LIBS="$LIBS"
1184LIBS="-lsocket  $LIBS"
1185cat > conftest.$ac_ext <<EOF
1186#line 1187 "configure"
1187#include "confdefs.h"
1188/* Override any gcc2 internal prototype to avoid an error.  */
1189/* We use char because int might match the return type of a gcc2
1190    builtin and then its argument prototype would still apply.  */
1191char listen();
1192
1193int main() {
1194listen()
1195; return 0; }
1196EOF
1197if { (eval echo configure:1198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1198  rm -rf conftest*
1199  eval "ac_cv_lib_$ac_lib_var=yes"
1200else
1201  echo "configure: failed program was:" >&5
1202  cat conftest.$ac_ext >&5
1203  rm -rf conftest*
1204  eval "ac_cv_lib_$ac_lib_var=no"
1205fi
1206rm -f conftest*
1207LIBS="$ac_save_LIBS"
1208
1209fi
1210if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1211  echo "$ac_t""yes" 1>&6
1212    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1213    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1214  cat >> confdefs.h <<EOF
1215#define $ac_tr_lib 1
1216EOF
1217
1218  LIBS="-lsocket $LIBS"
1219
1220else
1221  echo "$ac_t""no" 1>&6
1222fi
1223
1224echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1225echo "configure:1226: checking for gethostbyname in -lnsl" >&5
1226ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1227if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1228  echo $ac_n "(cached) $ac_c" 1>&6
1229else
1230  ac_save_LIBS="$LIBS"
1231LIBS="-lnsl  $LIBS"
1232cat > conftest.$ac_ext <<EOF
1233#line 1234 "configure"
1234#include "confdefs.h"
1235/* Override any gcc2 internal prototype to avoid an error.  */
1236/* We use char because int might match the return type of a gcc2
1237    builtin and then its argument prototype would still apply.  */
1238char gethostbyname();
1239
1240int main() {
1241gethostbyname()
1242; return 0; }
1243EOF
1244if { (eval echo configure:1245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1245  rm -rf conftest*
1246  eval "ac_cv_lib_$ac_lib_var=yes"
1247else
1248  echo "configure: failed program was:" >&5
1249  cat conftest.$ac_ext >&5
1250  rm -rf conftest*
1251  eval "ac_cv_lib_$ac_lib_var=no"
1252fi
1253rm -f conftest*
1254LIBS="$ac_save_LIBS"
1255
1256fi
1257if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1258  echo "$ac_t""yes" 1>&6
1259    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1260    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1261  cat >> confdefs.h <<EOF
1262#define $ac_tr_lib 1
1263EOF
1264
1265  LIBS="-lnsl $LIBS"
1266
1267else
1268  echo "$ac_t""no" 1>&6
1269fi
1270
1271echo $ac_n "checking for mpq_init in -lgmp""... $ac_c" 1>&6
1272echo "configure:1273: checking for mpq_init in -lgmp" >&5
1273ac_lib_var=`echo gmp'_'mpq_init | sed 'y%./+-%__p_%'`
1274if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1275  echo $ac_n "(cached) $ac_c" 1>&6
1276else
1277  ac_save_LIBS="$LIBS"
1278LIBS="-lgmp  $LIBS"
1279cat > conftest.$ac_ext <<EOF
1280#line 1281 "configure"
1281#include "confdefs.h"
1282/* Override any gcc2 internal prototype to avoid an error.  */
1283/* We use char because int might match the return type of a gcc2
1284    builtin and then its argument prototype would still apply.  */
1285char mpq_init();
1286
1287int main() {
1288mpq_init()
1289; return 0; }
1290EOF
1291if { (eval echo configure:1292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1292  rm -rf conftest*
1293  eval "ac_cv_lib_$ac_lib_var=yes"
1294else
1295  echo "configure: failed program was:" >&5
1296  cat conftest.$ac_ext >&5
1297  rm -rf conftest*
1298  eval "ac_cv_lib_$ac_lib_var=no"
1299fi
1300rm -f conftest*
1301LIBS="$ac_save_LIBS"
1302
1303fi
1304if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1305  echo "$ac_t""yes" 1>&6
1306    ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1307    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1308  cat >> confdefs.h <<EOF
1309#define $ac_tr_lib 1
1310EOF
1311
1312  LIBS="-lgmp $LIBS"
1313
1314else
1315  echo "$ac_t""no" 1>&6
1316fi
1317
1318echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6
1319echo "configure:1320: checking for mpz_init in -lsmallgmp" >&5
1320ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'`
1321if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1322  echo $ac_n "(cached) $ac_c" 1>&6
1323else
1324  ac_save_LIBS="$LIBS"
1325LIBS="-lsmallgmp  $LIBS"
1326cat > conftest.$ac_ext <<EOF
1327#line 1328 "configure"
1328#include "confdefs.h"
1329/* Override any gcc2 internal prototype to avoid an error.  */
1330/* We use char because int might match the return type of a gcc2
1331    builtin and then its argument prototype would still apply.  */
1332char mpz_init();
1333
1334int main() {
1335mpz_init()
1336; return 0; }
1337EOF
1338if { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1339  rm -rf conftest*
1340  eval "ac_cv_lib_$ac_lib_var=yes"
1341else
1342  echo "configure: failed program was:" >&5
1343  cat conftest.$ac_ext >&5
1344  rm -rf conftest*
1345  eval "ac_cv_lib_$ac_lib_var=no"
1346fi
1347rm -f conftest*
1348LIBS="$ac_save_LIBS"
1349
1350fi
1351if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1352  echo "$ac_t""yes" 1>&6
1353    ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1354    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1355  cat >> confdefs.h <<EOF
1356#define $ac_tr_lib 1
1357EOF
1358
1359  LIBS="-lsmallgmp $LIBS"
1360
1361else
1362  echo "$ac_t""no" 1>&6
1363fi
1364
1365echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
1366echo "configure:1367: checking for IMP_PutGmpInt in -lMP" >&5
1367ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
1368if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1369  echo $ac_n "(cached) $ac_c" 1>&6
1370else
1371  ac_save_LIBS="$LIBS"
1372LIBS="-lMP  $LIBS"
1373cat > conftest.$ac_ext <<EOF
1374#line 1375 "configure"
1375#include "confdefs.h"
1376/* Override any gcc2 internal prototype to avoid an error.  */
1377/* We use char because int might match the return type of a gcc2
1378    builtin and then its argument prototype would still apply.  */
1379char IMP_PutGmpInt();
1380
1381int main() {
1382IMP_PutGmpInt()
1383; return 0; }
1384EOF
1385if { (eval echo configure:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1386  rm -rf conftest*
1387  eval "ac_cv_lib_$ac_lib_var=yes"
1388else
1389  echo "configure: failed program was:" >&5
1390  cat conftest.$ac_ext >&5
1391  rm -rf conftest*
1392  eval "ac_cv_lib_$ac_lib_var=no"
1393fi
1394rm -f conftest*
1395LIBS="$ac_save_LIBS"
1396
1397fi
1398if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1399  echo "$ac_t""yes" 1>&6
1400    ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1401    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1402  cat >> confdefs.h <<EOF
1403#define $ac_tr_lib 1
1404EOF
1405
1406  LIBS="-lMP $LIBS"
1407
1408else
1409  echo "$ac_t""no" 1>&6
1410fi
1411
1412echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
1413echo "configure:1414: checking for MPT_GetTree in -lMPT" >&5
1414ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
1415if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1416  echo $ac_n "(cached) $ac_c" 1>&6
1417else
1418  ac_save_LIBS="$LIBS"
1419LIBS="-lMPT  $LIBS"
1420cat > conftest.$ac_ext <<EOF
1421#line 1422 "configure"
1422#include "confdefs.h"
1423/* Override any gcc2 internal prototype to avoid an error.  */
1424/* We use char because int might match the return type of a gcc2
1425    builtin and then its argument prototype would still apply.  */
1426char MPT_GetTree();
1427
1428int main() {
1429MPT_GetTree()
1430; return 0; }
1431EOF
1432if { (eval echo configure:1433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1433  rm -rf conftest*
1434  eval "ac_cv_lib_$ac_lib_var=yes"
1435else
1436  echo "configure: failed program was:" >&5
1437  cat conftest.$ac_ext >&5
1438  rm -rf conftest*
1439  eval "ac_cv_lib_$ac_lib_var=no"
1440fi
1441rm -f conftest*
1442LIBS="$ac_save_LIBS"
1443
1444fi
1445if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1446  echo "$ac_t""yes" 1>&6
1447    ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1448    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1449  cat >> confdefs.h <<EOF
1450#define $ac_tr_lib 1
1451EOF
1452
1453  LIBS="-lMPT $LIBS"
1454
1455else
1456  echo "$ac_t""no" 1>&6
1457fi
1458
1459echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
1460echo "configure:1461: checking for atof in -lsingcf" >&5
1461ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
1462if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1463  echo $ac_n "(cached) $ac_c" 1>&6
1464else
1465  ac_save_LIBS="$LIBS"
1466LIBS="-lsingcf  $LIBS"
1467cat > conftest.$ac_ext <<EOF
1468#line 1469 "configure"
1469#include "confdefs.h"
1470/* Override any gcc2 internal prototype to avoid an error.  */
1471/* We use char because int might match the return type of a gcc2
1472    builtin and then its argument prototype would still apply.  */
1473char atof();
1474
1475int main() {
1476atof()
1477; return 0; }
1478EOF
1479if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1480  rm -rf conftest*
1481  eval "ac_cv_lib_$ac_lib_var=yes"
1482else
1483  echo "configure: failed program was:" >&5
1484  cat conftest.$ac_ext >&5
1485  rm -rf conftest*
1486  eval "ac_cv_lib_$ac_lib_var=no"
1487fi
1488rm -f conftest*
1489LIBS="$ac_save_LIBS"
1490
1491fi
1492if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1493  echo "$ac_t""yes" 1>&6
1494    ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1495    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1496  cat >> confdefs.h <<EOF
1497#define $ac_tr_lib 1
1498EOF
1499
1500  LIBS="-lsingcf $LIBS"
1501
1502else
1503  echo "$ac_t""no" 1>&6
1504fi
1505
1506echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
1507echo "configure:1508: checking for atof in -lsingfac" >&5
1508ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
1509if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1510  echo $ac_n "(cached) $ac_c" 1>&6
1511else
1512  ac_save_LIBS="$LIBS"
1513LIBS="-lsingfac  $LIBS"
1514cat > conftest.$ac_ext <<EOF
1515#line 1516 "configure"
1516#include "confdefs.h"
1517/* Override any gcc2 internal prototype to avoid an error.  */
1518/* We use char because int might match the return type of a gcc2
1519    builtin and then its argument prototype would still apply.  */
1520char atof();
1521
1522int main() {
1523atof()
1524; return 0; }
1525EOF
1526if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1527  rm -rf conftest*
1528  eval "ac_cv_lib_$ac_lib_var=yes"
1529else
1530  echo "configure: failed program was:" >&5
1531  cat conftest.$ac_ext >&5
1532  rm -rf conftest*
1533  eval "ac_cv_lib_$ac_lib_var=no"
1534fi
1535rm -f conftest*
1536LIBS="$ac_save_LIBS"
1537
1538fi
1539if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1540  echo "$ac_t""yes" 1>&6
1541    ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1542    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1543  cat >> confdefs.h <<EOF
1544#define $ac_tr_lib 1
1545EOF
1546
1547  LIBS="-lsingfac $LIBS"
1548
1549else
1550  echo "$ac_t""no" 1>&6
1551fi
1552
1553
1554for ac_hdr in gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h
1555do
1556ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1557echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1558echo "configure:1559: checking for $ac_hdr" >&5
1559if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1560  echo $ac_n "(cached) $ac_c" 1>&6
1561else
1562  cat > conftest.$ac_ext <<EOF
1563#line 1564 "configure"
1564#include "confdefs.h"
1565#include <$ac_hdr>
1566EOF
1567ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1568{ (eval echo configure:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1569ac_err=`grep -v '^ *+' conftest.out`
1570if test -z "$ac_err"; then
1571  rm -rf conftest*
1572  eval "ac_cv_header_$ac_safe=yes"
1573else
1574  echo "$ac_err" >&5
1575  echo "configure: failed program was:" >&5
1576  cat conftest.$ac_ext >&5
1577  rm -rf conftest*
1578  eval "ac_cv_header_$ac_safe=no"
1579fi
1580rm -f conftest*
1581fi
1582if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1583  echo "$ac_t""yes" 1>&6
1584    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1585  cat >> confdefs.h <<EOF
1586#define $ac_tr_hdr 1
1587EOF
1588 
1589else
1590  echo "$ac_t""no" 1>&6
1591fi
1592done
1593
1594
1595if test "$ac_cv_lib_gmp_mpq_init" = yes && \
1596 test "$ac_cv_header_gmp_h" = yes; then
1597  ac_gmp_ok=yes
1598fi
1599
1600if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \
1601 test "$ac_cv_header_smallgmp_h" = yes && \
1602 test "$ac_cv_header_gmp_h" = yes; then
1603  ac_smallgmp_ok=yes
1604fi
1605
1606if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \
1607 test "$ac_cv_lib_MPT_MPT_GetTree" && \
1608 test "$ac_cv_header_MP_h" = yes && \
1609 test "$ac_cv_header_MPT_h" = yes; then
1610  ac_MP_ok=yes
1611fi
1612
1613if test "$ac_cv_lib_singcf_atof" = yes && \
1614 test "$ac_cv_header_factory_h" = yes; then
1615  ac_factory_ok=yes
1616fi
1617
1618if test "$ac_cv_lib_singfac_atof" = yes && \
1619 test "$ac_cv_header_factor_h" = yes; then
1620  ac_libfac_ok=yes
1621fi
1622
1623 
1624# Check whether --with-tmpdir or --without-tmpdir was given.
1625if test "${with_tmpdir+set}" = set; then
1626  withval="$with_tmpdir"
1627  :
1628fi
1629
1630# Check whether --with-perl5 or --without-perl5 was given.
1631if test "${with_perl5+set}" = set; then
1632  withval="$with_perl5"
1633  :
1634fi
1635
1636# Check whether --enable-smallgmp or --disable-smallgmp was given.
1637if test "${enable_smallgmp+set}" = set; then
1638  enableval="$enable_smallgmp"
1639  :
1640fi
1641
1642# Check whether --enable-gmp or --disable-gmp was given.
1643if test "${enable_gmp+set}" = set; then
1644  enableval="$enable_gmp"
1645  :
1646fi
1647
1648# Check whether --enable-MP or --disable-MP was given.
1649if test "${enable_MP+set}" = set; then
1650  enableval="$enable_MP"
1651  :
1652fi
1653
1654# Check whether --enable-factory or --disable-factory was given.
1655if test "${enable_factory+set}" = set; then
1656  enableval="$enable_factory"
1657  :
1658fi
1659
1660# Check whether --enable-libfac or --disable-libfac was given.
1661if test "${enable_libfac+set}" = set; then
1662  enableval="$enable_libfac"
1663  :
1664fi
1665
1666# Check whether --enable-sgroup or --disable-sgroup was given.
1667if test "${enable_sgroup+set}" = set; then
1668  enableval="$enable_sgroup"
1669  :
1670fi
1671
1672# Check whether --enable-Singular or --disable-Singular was given.
1673if test "${enable_Singular+set}" = set; then
1674  enableval="$enable_Singular"
1675  :
1676fi
1677
1678# Check whether --enable-Texinfo or --disable-Texinfo was given.
1679if test "${enable_Texinfo+set}" = set; then
1680  enableval="$enable_Texinfo"
1681  :
1682fi
1683
1684# Check whether --with-MP or --without-MP was given.
1685if test "${with_MP+set}" = set; then
1686  withval="$with_MP"
1687  :
1688fi
1689
1690# Check whether --with-factory or --without-factory was given.
1691if test "${with_factory+set}" = set; then
1692  withval="$with_factory"
1693  :
1694fi
1695
1696# Check whether --with-libfac or --without-libfac was given.
1697if test "${with_libfac+set}" = set; then
1698  withval="$with_libfac"
1699  :
1700fi
1701
1702# Check whether --with-gmp or --without-gmp was given.
1703if test "${with_gmp+set}" = set; then
1704  withval="$with_gmp"
1705  :
1706fi
1707
1708
1709echo $ac_n "checking which tmp dir to use""... $ac_c" 1>&6
1710echo "configure:1711: checking which tmp dir to use" >&5
1711if test "${with_tmpdir+set}" = set && test -d ${with_tmpdir}; then
1712  if (echo "${with_tmpdir}" | egrep "\." >/dev/null 2>&1)
1713  then
1714    TMP_DIR="/tmp"
1715  else
1716    TMP_DIR=${with_tmpdir}
1717  fi
1718else
1719  TMP_DIR="/tmp"
1720fi
1721echo "$ac_t""$TMP_DIR" 1>&6
1722
1723
1724# perl version 5
1725if test "${with_perl5+set}" != set; then
1726  echo $ac_n "checking for perl5""... $ac_c" 1>&6
1727echo "configure:1728: checking for perl5" >&5
1728    if eval "test \"`echo '$''{'ac_cv_prog_perl5'+set}'`\" = set"; then
1729  echo $ac_n "(cached) $ac_c" 1>&6
1730else
1731  if (perl5 -v >/dev/null 2>&1)
1732  then
1733   if (perl5 -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )
1734    then
1735    ac_cv_prog_perl5=perl5
1736   fi
1737  elif (perl -v >/dev/null 2>&1)
1738  then
1739    if (perl -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )
1740    then
1741      ac_cv_prog_perl5=perl
1742    fi
1743  fi
1744 
1745fi
1746
1747    if test "${ac_cv_prog_perl5+set}" = set; then
1748    echo "$ac_t""${ac_cv_prog_perl5}" 1>&6
1749    PERL5=${ac_cv_prog_perl5}
1750   
1751  else
1752    { echo "configure: error: can not find perl version 5" 1>&2; exit 1; }
1753  fi
1754elif test "${with_perl5}" = no; then
1755  echo "configure: warning: building without perl5 --  make might fail" 1>&2
1756else
1757  unset PERL5
1758  unset ac_cv_prog_PERL5
1759  for ac_prog in ${with_perl5}
1760do
1761# Extract the first word of "$ac_prog", so it can be a program name with args.
1762set dummy $ac_prog; ac_word=$2
1763echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1764echo "configure:1765: checking for $ac_word" >&5
1765if eval "test \"`echo '$''{'ac_cv_prog_PERL5'+set}'`\" = set"; then
1766  echo $ac_n "(cached) $ac_c" 1>&6
1767else
1768  if test -n "$PERL5"; then
1769  ac_cv_prog_PERL5="$PERL5" # Let the user override the test.
1770else
1771  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1772  for ac_dir in $PATH; do
1773    test -z "$ac_dir" && ac_dir=.
1774    if test -f $ac_dir/$ac_word; then
1775      ac_cv_prog_PERL5="$ac_prog"
1776      break
1777    fi
1778  done
1779  IFS="$ac_save_ifs"
1780fi
1781fi
1782PERL5="$ac_cv_prog_PERL5"
1783if test -n "$PERL5"; then
1784  echo "$ac_t""$PERL5" 1>&6
1785else
1786  echo "$ac_t""no" 1>&6
1787fi
1788
1789test -n "$PERL5" && break
1790done
1791
1792  if test "x${PERL5}" = x; then
1793    echo "configure: warning: building without perl5 -- make might fail" 1>&2
1794  fi
1795fi
1796
1797
1798echo $ac_n "checking whether to configure and build texinfo""... $ac_c" 1>&6
1799echo "configure:1800: checking whether to configure and build texinfo" >&5
1800if test "$enable_texinfo" != no && test -d Texinfo; then
1801  echo "$ac_t""yes" 1>&6
1802  enable_texinfo=yes
1803  CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texinfo"
1804  TEXI2DVI=${bindir}/texi2dvi
1805  MAKEINFO="${bindir}/makeinfo --force"
1806  TEXINDEX=${bindir}/texindex
1807else
1808  echo "$ac_t""no" 1>&6
1809  echo "configure: warning: Building of doc might fail. Need Texinfo" 1>&2
1810  enable_texinfo=no
1811  TEXI2DVI=texi2dvi
1812  MAKEINFO=makeinfo
1813  TEXINDEX=${bindir}/texindex
1814fi 
1815
1816
1817
1818
1819
1820echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6
1821echo "configure:1822: checking whether to configure and build gmp lib" >&5
1822if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
1823  if test "$ac_gmp_ok" != yes && test -d gmp; then
1824    echo "$ac_t""yes" 1>&6
1825    enable_gmp=yes
1826    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
1827    ac_configure_args="$ac_configure_args --enable-gmp"
1828    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
1829  else
1830    echo "$ac_t""no" 1>&6
1831    enable_gmp=no
1832  fi
1833elif test "$enable_gmp" = yes; then
1834  if test ! -d gmp; then
1835    echo "$ac_t""no" 1>&6
1836    { echo "configure: error: Can not find gmp subdir" 1>&2; exit 1; }
1837  else
1838    echo "$ac_t""yes" 1>&6
1839    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
1840    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
1841  fi
1842else
1843  echo "$ac_t""no" 1>&6
1844fi
1845
1846echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6
1847echo "configure:1848: checking whether to configure and build smallgmp lib" >&5
1848if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
1849  if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
1850     test "$enable_gmp" != yes && test -d smallgmp; then
1851    echo "$ac_t""yes" 1>&6
1852    enable_smallgmp=yes
1853    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
1854    ac_configure_args="$ac_configure_args --enable-smallgmp --enable-gmp"
1855  else
1856    echo "$ac_t""no" 1>&6
1857    enable_smallgmp=no
1858  fi
1859elif test "$enable_smallgmp" = yes; then
1860  if test ! -d smallgmp; then
1861    echo "$ac_t""no" 1>&6
1862    { echo "configure: error: Can not find smallgmp subdir" 1>&2; exit 1; }
1863  else
1864    echo "$ac_t""yes" 1>&6
1865    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
1866    if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
1867      ac_configure_args="$ac_configure_args --enable-gmp"
1868    fi
1869  fi
1870else
1871  echo "$ac_t""${enable_smallgmp}" 1>&6
1872fi
1873
1874# Check whether we have at least one of smallgmp or gmp
1875if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
1876   test "$enable_smallgmp" != yes && test "$enable_gmp" != yes; then
1877  { echo "configure: error: can neither find nor built gmp or smallgmp" 1>&2; exit 1; }
1878fi
1879
1880# Check whether we need to cheat subsequent configures with --enable-gmp
1881if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes; then
1882  ac_configure_args="$ac_configure_args --enable-gmp"
1883fi
1884
1885echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6
1886echo "configure:1887: checking whether to configure and build MP lib" >&5
1887if test "$enable_MP" != yes && test "$enable_MP" != no; then
1888  if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
1889     (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then
1890    echo "$ac_t""yes" 1>&6
1891    enable_MP=yes
1892    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
1893    ac_configure_args="$ac_configure_args --enable-MP"
1894  else
1895    echo "$ac_t""no" 1>&6
1896    enable_MP=no
1897  fi
1898elif test "$enable_MP" = yes; then
1899  if test ! -d MP; then
1900    echo "$ac_t""no" 1>&6
1901    { echo "configure: error: can not build MP without MP directory" 1>&2; exit 1; }
1902  fi
1903  if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then
1904    echo "$ac_t""yes" 1>&6
1905    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
1906  else
1907    echo "$ac_t""no" 1>&6
1908    { echo "configure: error: can not build MP without gmp" 1>&2; exit 1; }
1909  fi
1910else
1911  echo "$ac_t""no" 1>&6
1912fi
1913 
1914echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
1915echo "configure:1916: checking whether to configure and build factory lib" >&5
1916if test "$enable_factory" != yes && test "$enable_factory" != no; then
1917  if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
1918     test -d factory; then
1919    enable_factory=yes
1920    echo "$ac_t""yes" 1>&6
1921    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
1922    ac_configure_args="$ac_configure_args --enable-factory"
1923  else
1924    enable_factory=no
1925    echo "$ac_t""no" 1>&6
1926  fi
1927elif test "$enable_factory" = yes; then
1928  if test -d factory; then
1929    echo "$ac_t""yes" 1>&6
1930    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
1931  else
1932    echo "$ac_t""no" 1>&6
1933    { echo "configure: error: can not build factory without factory directory" 1>&2; exit 1; }
1934  fi
1935else
1936  echo "$ac_t""no" 1>&6
1937fi
1938
1939echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
1940echo "configure:1941: checking whether to configure and build libfac lib" >&5
1941if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
1942  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
1943     test -d libfac && \
1944     (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then
1945    enable_libfac=yes
1946    echo "$ac_t""yes" 1>&6
1947    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
1948    ac_configure_args="$ac_configure_args --enable-libfac"
1949  else
1950    enable_libfac=no
1951    echo "$ac_t""no" 1>&6
1952  fi
1953elif  test "$enable_libfac" = yes; then
1954  if test ! -d libfac; then
1955    echo "$ac_t""no" 1>&6
1956    { echo "configure: error: can not build libfac without libfac directory" 1>&2; exit 1; }
1957  fi
1958  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
1959    echo "$ac_t""yes" 1>&6
1960    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
1961  else
1962    echo "$ac_t""no" 1>&6
1963    { echo "configure: error: Can not build libfac without factory" 1>&2; exit 1; }
1964  fi
1965else
1966  echo "$ac_t""no" 1>&6
1967fi
1968
1969echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6
1970echo "configure:1971: checking whether to configure and build sgroup lib" >&5
1971if test "$enable_sgroup" != yes && test "$enable_sgroup" != no; then
1972  if test "$with_sgroup" != no && test "$ac_sgroup_ok" != yes && \
1973     test -d sgroup && \
1974     (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then
1975    enable_sgroup=yes
1976    echo "$ac_t""yes" 1>&6
1977    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
1978    ac_configure_args="$ac_configure_args --enable-sgroup"
1979  else
1980    enable_sgroup=no
1981    echo "$ac_t""no" 1>&6
1982  fi
1983elif  test "$enable_sgroup" = yes; then
1984  if test ! -d sgroup; then
1985    echo "$ac_t""no" 1>&6
1986    { echo "configure: error: can not build sgroup without sgroup directory" 1>&2; exit 1; }
1987  fi
1988  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
1989    echo "$ac_t""yes" 1>&6
1990    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
1991  else
1992    echo "$ac_t""no" 1>&6
1993    { echo "configure: error: Can not build sgroup without MP" 1>&2; exit 1; }
1994  fi
1995else
1996  echo "$ac_t""no" 1>&6
1997fi
1998
1999echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
2000echo "configure:2001: checking whether to configure and build Singular" >&5
2001if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
2002  if test "$with_Singular" != no && test -d Singular; then
2003    enable_Singular=yes
2004    echo "$ac_t""yes" 1>&6
2005    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
2006    ac_configure_args="$ac_configure_args --enable-Singular"
2007  else
2008    enable_Singular=no
2009    echo "$ac_t""no" 1>&6
2010  fi
2011elif test "$enable_Singular" = yes; then
2012  if test -d Singular; then
2013    echo "$ac_t""yes" 1>&6
2014    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
2015  else
2016    echo "$ac_t""no" 1>&6
2017    { echo "configure: error: can not build Singular without Singular directory" 1>&2; exit 1; }
2018  fi
2019else
2020  echo "$ac_t""no" 1>&6
2021fi
2022
2023
2024echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
2025echo "configure:2026: checking which apint package to use" >&5
2026if test "$with_apint" = gmp; then
2027  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
2028    echo "$ac_t""gmp" 1>&6
2029  else
2030    echo "$ac_t""none" 1>&6
2031    { echo "configure: error: can not use with gmp without finding or building it" 1>&2; exit 1; }
2032  fi
2033elif test "$with_apint" = smallgmp; then
2034  if test "$ac_smallgmp_ok" = yes || test "$enable_smallgmp" = yes; then
2035    echo "$ac_t""smallgmp" 1>&6
2036  else
2037    echo "$ac_t""none" 1>&6
2038    { echo "configure: error: can not use with smallgmp without finding or building it" 1>&2; exit 1; }
2039  fi
2040elif test "$ac_gmp_ok" = yes || test "$enable_gmp"; then
2041    echo "$ac_t""gmp" 1>&6
2042    ac_configure_args="$ac_configure_args --with-apint=gmp"
2043else
2044   echo "$ac_t""smallgmp" 1>&6
2045   ac_configure_args="$ac_configure_args --with-apint=smallgmp"
2046fi
2047
2048echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
2049echo "configure:2050: checking whether to use with MP" >&5
2050if test "$with_MP" = yes; then
2051  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2052    echo "$ac_t""yes" 1>&6
2053  else
2054    echo "$ac_t""none" 1>&6
2055    { echo "configure: error: can not use with MP without finding or building it" 1>&2; exit 1; }
2056  fi
2057elif test "$with_MP" = no; then
2058  echo "$ac_t""no" 1>&6
2059elif test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2060  echo "$ac_t""yes" 1>&6
2061  ac_configure_args="$ac_configure_args --with-MP"
2062else
2063  echo "$ac_t""no" 1>&6
2064  ac_configure_args="$ac_configure_args --without-MP"
2065fi
2066
2067echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
2068echo "configure:2069: checking whether to use with factory" >&5
2069if test "$with_factory" = yes; then
2070  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2071    echo "$ac_t""yes" 1>&6
2072  else
2073    echo "$ac_t""none" 1>&6
2074    { echo "configure: error: can not use with factory without finding or building it" 1>&2; exit 1; }
2075  fi
2076elif test "$with_factory" = no; then
2077  echo "$ac_t""no" 1>&6
2078elif test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2079  echo "$ac_t""yes" 1>&6
2080  ac_configure_args="$ac_configure_args --with-factory"
2081else
2082  echo "$ac_t""no" 1>&6
2083  ac_configure_args="$ac_configure_args --without-factory"
2084fi
2085 
2086echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
2087echo "configure:2088: checking whether to use with libfac" >&5
2088if test "$with_libfac" = yes; then
2089  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
2090    echo "$ac_t""yes" 1>&6
2091  else
2092    echo "$ac_t""none" 1>&6
2093    { echo "configure: error: can not use with libfac without finding or building it" 1>&2; exit 1; }
2094  fi
2095elif test "$with_libfac" = no; then
2096  echo "$ac_t""no" 1>&6
2097elif test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
2098  echo "$ac_t""yes" 1>&6
2099  ac_configure_args="$ac_configure_args --with-libfac"
2100else
2101  echo "$ac_t""no" 1>&6
2102  ac_configure_args="$ac_configure_args --without-libfac"
2103fi
2104
2105echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
2106echo "configure:2107: checking whether to use with Singular" >&5
2107if test "$with_Singular" != no && test "$with_Singular" != yes; then
2108  if test "$enable_Singular" = yes; then
2109    with_Singular=yes
2110  else
2111    with_Singular=no
2112  fi
2113  ac_configure_args="$ac_configure_args --with-Singular=$with_Singular"
2114fi
2115
2116if test "$with_Singular" != no; then
2117  echo "$ac_t""yes" 1>&6
2118else
2119  echo "$ac_t""no" 1>&6
2120fi
2121
2122
2123SUBDIRS=""
2124if test -d doc; then
2125  SUBDIRS="$SUBDIRS doc"
2126fi
2127if test -d smallgmp; then
2128  SUBDIRS="$SUBDIRS smallgmp"
2129fi
2130if test -d gmp; then
2131  SUBDIRS="$SUBDIRS gmp"
2132fi
2133if test -d MP; then
2134  SUBDIRS="$SUBDIRS MP"
2135fi
2136if test -d factory; then
2137  SUBDIRS="$SUBDIRS factory"
2138fi
2139if test -d libfac; then
2140  SUBDIRS="$SUBDIRS libfac"
2141fi
2142if test -d sgroup; then
2143  SUBDIRS="$SUBDIRS sgroup"
2144fi
2145if test -d Singular; then
2146  SUBDIRS="$SUBDIRS Singular"
2147fi
2148if test -d rpm; then
2149  SUBDIRS="$SUBDIRS rpm"
2150fi
2151if test -d mpr; then
2152  CONFIG_SUBDIRS="$CONFIG_SUBDIRS mpr"
2153  SUBDIRS="$SUBDIRS mpr"
2154fi
2155 
2156
2157echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2158echo "configure:2159: checking whether ${MAKE-make} sets \${MAKE}" >&5
2159set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2160if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2161  echo $ac_n "(cached) $ac_c" 1>&6
2162else
2163  cat > conftestmake <<\EOF
2164all:
2165        @echo 'ac_maketemp="${MAKE}"'
2166EOF
2167# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2168eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2169if test -n "$ac_maketemp"; then
2170  eval ac_cv_prog_make_${ac_make}_set=yes
2171else
2172  eval ac_cv_prog_make_${ac_make}_set=no
2173fi
2174rm -f conftestmake
2175fi
2176if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2177  echo "$ac_t""yes" 1>&6
2178  SET_MAKE=
2179else
2180  echo "$ac_t""no" 1>&6
2181  SET_MAKE="MAKE=${MAKE-make}"
2182fi
2183
2184
2185
2186ac_aux_dir=
2187for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2188  if test -f $ac_dir/install-sh; then
2189    ac_aux_dir=$ac_dir
2190    ac_install_sh="$ac_aux_dir/install-sh -c"
2191    break
2192  elif test -f $ac_dir/install.sh; then
2193    ac_aux_dir=$ac_dir
2194    ac_install_sh="$ac_aux_dir/install.sh -c"
2195    break
2196  fi
2197done
2198if test -z "$ac_aux_dir"; then
2199  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
2200fi
2201ac_config_guess=$ac_aux_dir/config.guess
2202ac_config_sub=$ac_aux_dir/config.sub
2203ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
2204
2205subdirs="$CONFIG_SUBDIRS"
2206 
2207
2208trap '' 1 2 15
2209cat > confcache <<\EOF
2210# This file is a shell script that caches the results of configure
2211# tests run on this system so they can be shared between configure
2212# scripts and configure runs.  It is not useful on other systems.
2213# If it contains results you don't want to keep, you may remove or edit it.
2214#
2215# By default, configure uses ./config.cache as the cache file,
2216# creating it if it does not exist already.  You can give configure
2217# the --cache-file=FILE option to use a different cache file; that is
2218# what configure does when it calls configure scripts in
2219# subdirectories, so they share the cache.
2220# Giving --cache-file=/dev/null disables caching, for debugging configure.
2221# config.status only pays attention to the cache file if you give it the
2222# --recheck option to rerun configure.
2223#
2224EOF
2225# The following way of writing the cache mishandles newlines in values,
2226# but we know of no workaround that is simple, portable, and efficient.
2227# So, don't put newlines in cache variables' values.
2228# Ultrix sh set writes to stderr and can't be redirected directly,
2229# and sets the high bit in the cache file unless we assign to the vars.
2230(set) 2>&1 |
2231  case `(ac_space=' '; set) 2>&1` in
2232  *ac_space=\ *)
2233    # `set' does not quote correctly, so add quotes (double-quote substitution
2234    # turns \\\\ into \\, and sed turns \\ into \).
2235    sed -n \
2236      -e "s/'/'\\\\''/g" \
2237      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2238    ;;
2239  *)
2240    # `set' quotes correctly as required by POSIX, so do not add quotes.
2241    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2242    ;;
2243  esac >> confcache
2244if cmp -s $cache_file confcache; then
2245  :
2246else
2247  if test -w $cache_file; then
2248    echo "updating cache $cache_file"
2249    cat confcache > $cache_file
2250  else
2251    echo "not updating unwritable cache $cache_file"
2252  fi
2253fi
2254rm -f confcache
2255
2256trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2257
2258test "x$prefix" = xNONE && prefix=$ac_default_prefix
2259# Let make expand exec_prefix.
2260test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2261
2262# Any assignment to VPATH causes Sun make to only execute
2263# the first set of double-colon rules, so remove it if not needed.
2264# If there is a colon in the path, we need to keep it.
2265if test "x$srcdir" = x.; then
2266  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2267fi
2268
2269trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2270
2271# Transform confdefs.h into DEFS.
2272# Protect against shell expansion while executing Makefile rules.
2273# Protect against Makefile macro expansion.
2274cat > conftest.defs <<\EOF
2275s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2276s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2277s%\[%\\&%g
2278s%\]%\\&%g
2279s%\$%$$%g
2280EOF
2281DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2282rm -f conftest.defs
2283
2284
2285# Without the "./", some shells look in PATH for config.status.
2286: ${CONFIG_STATUS=./config.status}
2287
2288echo creating $CONFIG_STATUS
2289rm -f $CONFIG_STATUS
2290cat > $CONFIG_STATUS <<EOF
2291#! /bin/sh
2292# Generated automatically by configure.
2293# Run this file to recreate the current configuration.
2294# This directory was configured as follows,
2295# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2296#
2297# $0 $ac_configure_args
2298#
2299# Compiler output produced by configure, useful for debugging
2300# configure, is in ./config.log if it exists.
2301
2302ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2303for ac_option
2304do
2305  case "\$ac_option" in
2306  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2307    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2308    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2309  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2310    echo "$CONFIG_STATUS generated by autoconf version 2.12"
2311    exit 0 ;;
2312  -help | --help | --hel | --he | --h)
2313    echo "\$ac_cs_usage"; exit 0 ;;
2314  *) echo "\$ac_cs_usage"; exit 1 ;;
2315  esac
2316done
2317
2318ac_given_srcdir=$srcdir
2319
2320trap 'rm -fr `echo "${OUTPUT_MAKEFILES}" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2321EOF
2322cat >> $CONFIG_STATUS <<EOF
2323
2324# Protect against being on the right side of a sed subst in config.status.
2325sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2326 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2327$ac_vpsub
2328$extrasub
2329s%@CFLAGS@%$CFLAGS%g
2330s%@CPPFLAGS@%$CPPFLAGS%g
2331s%@CXXFLAGS@%$CXXFLAGS%g
2332s%@DEFS@%$DEFS%g
2333s%@LDFLAGS@%$LDFLAGS%g
2334s%@LIBS@%$LIBS%g
2335s%@exec_prefix@%$exec_prefix%g
2336s%@prefix@%$prefix%g
2337s%@program_transform_name@%$program_transform_name%g
2338s%@bindir@%$bindir%g
2339s%@sbindir@%$sbindir%g
2340s%@libexecdir@%$libexecdir%g
2341s%@datadir@%$datadir%g
2342s%@sysconfdir@%$sysconfdir%g
2343s%@sharedstatedir@%$sharedstatedir%g
2344s%@localstatedir@%$localstatedir%g
2345s%@libdir@%$libdir%g
2346s%@includedir@%$includedir%g
2347s%@oldincludedir@%$oldincludedir%g
2348s%@infodir@%$infodir%g
2349s%@mandir@%$mandir%g
2350s%@SINGUNAME@%$SINGUNAME%g
2351s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g
2352s%@VERSION_DATE@%$VERSION_DATE%g
2353s%@SINGULAR_SHORT_VERSION@%$SINGULAR_SHORT_VERSION%g
2354s%@CC@%$CC%g
2355s%@CPP@%$CPP%g
2356s%@PERL@%$PERL%g
2357s%@LATEX2HTML@%$LATEX2HTML%g
2358s%@LN_S@%$LN_S%g
2359s%@TEXI2HTML@%$TEXI2HTML%g
2360s%@TEXI2HTML_OPTS@%$TEXI2HTML_OPTS%g
2361s%@SINGULAR@%$SINGULAR%g
2362s%@TMP_DIR@%$TMP_DIR%g
2363s%@PERL5@%$PERL5%g
2364s%@TEXI2DVI@%$TEXI2DVI%g
2365s%@MAKEINFO@%$MAKEINFO%g
2366s%@TEXINDEX@%$TEXINDEX%g
2367s%@SET_MAKE@%$SET_MAKE%g
2368s%@SUBDIRS@%$SUBDIRS%g
2369s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g
2370s%@subdirs@%$subdirs%g
2371
2372CEOF
2373EOF
2374
2375cat >> $CONFIG_STATUS <<\EOF
2376
2377# Split the substitutions into bite-sized pieces for seds with
2378# small command number limits, like on Digital OSF/1 and HP-UX.
2379ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2380ac_file=1 # Number of current file.
2381ac_beg=1 # First line for current file.
2382ac_end=$ac_max_sed_cmds # Line after last line for current file.
2383ac_more_lines=:
2384ac_sed_cmds=""
2385while $ac_more_lines; do
2386  if test $ac_beg -gt 1; then
2387    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2388  else
2389    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2390  fi
2391  if test ! -s conftest.s$ac_file; then
2392    ac_more_lines=false
2393    rm -f conftest.s$ac_file
2394  else
2395    if test -z "$ac_sed_cmds"; then
2396      ac_sed_cmds="sed -f conftest.s$ac_file"
2397    else
2398      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2399    fi
2400    ac_file=`expr $ac_file + 1`
2401    ac_beg=$ac_end
2402    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2403  fi
2404done
2405if test -z "$ac_sed_cmds"; then
2406  ac_sed_cmds=cat
2407fi
2408EOF
2409
2410cat >> $CONFIG_STATUS <<EOF
2411
2412CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"}
2413EOF
2414cat >> $CONFIG_STATUS <<\EOF
2415for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2416  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2417  case "$ac_file" in
2418  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2419       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2420  *) ac_file_in="${ac_file}.in" ;;
2421  esac
2422
2423  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2424
2425  # Remove last slash and all that follows it.  Not all systems have dirname.
2426  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2427  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2428    # The file is in a subdirectory.
2429    test ! -d "$ac_dir" && mkdir "$ac_dir"
2430    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2431    # A "../" for each directory in $ac_dir_suffix.
2432    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2433  else
2434    ac_dir_suffix= ac_dots=
2435  fi
2436
2437  case "$ac_given_srcdir" in
2438  .)  srcdir=.
2439      if test -z "$ac_dots"; then top_srcdir=.
2440      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2441  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2442  *) # Relative path.
2443    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2444    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2445  esac
2446
2447
2448  echo creating "$ac_file"
2449  rm -f "$ac_file"
2450  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2451  case "$ac_file" in
2452  *Makefile*) ac_comsub="1i\\
2453# $configure_input" ;;
2454  *) ac_comsub= ;;
2455  esac
2456
2457  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2458  sed -e "$ac_comsub
2459s%@configure_input@%$configure_input%g
2460s%@srcdir@%$srcdir%g
2461s%@top_srcdir@%$top_srcdir%g
2462" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2463fi; done
2464rm -f conftest.s*
2465
2466EOF
2467cat >> $CONFIG_STATUS <<EOF
2468
2469EOF
2470cat >> $CONFIG_STATUS <<\EOF
2471
2472exit 0
2473EOF
2474chmod +x $CONFIG_STATUS
2475rm -fr confdefs* $ac_clean_files
2476test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2477
2478if test "$no_recursion" != yes; then
2479
2480  # Remove --cache-file and --srcdir arguments so they do not pile up.
2481  ac_sub_configure_args=
2482  ac_prev=
2483  for ac_arg in $ac_configure_args; do
2484    if test -n "$ac_prev"; then
2485      ac_prev=
2486      continue
2487    fi
2488    case "$ac_arg" in
2489    -cache-file | --cache-file | --cache-fil | --cache-fi \
2490    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2491      ac_prev=cache_file ;;
2492    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2493    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2494      ;;
2495    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2496      ac_prev=srcdir ;;
2497    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2498      ;;
2499    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2500    esac
2501  done
2502
2503  for ac_config_dir in $CONFIG_SUBDIRS; do
2504
2505    # Do not complain, so a configure script can configure whichever
2506    # parts of a large source tree are present.
2507    if test ! -d $srcdir/$ac_config_dir; then
2508      continue
2509    fi
2510
2511    echo configuring in $ac_config_dir
2512
2513    case "$srcdir" in
2514    .) ;;
2515    *)
2516      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2517      else
2518        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2519      fi
2520      ;;
2521    esac
2522
2523    ac_popdir=`pwd`
2524    cd $ac_config_dir
2525
2526      # A "../" for each directory in /$ac_config_dir.
2527      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2528
2529    case "$srcdir" in
2530    .) # No --srcdir option.  We are building in place.
2531      ac_sub_srcdir=$srcdir ;;
2532    /*) # Absolute path.
2533      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2534    *) # Relative path.
2535      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2536    esac
2537
2538    # Check for guested configure; otherwise get Cygnus style configure.
2539    if test -f $ac_sub_srcdir/configure; then
2540      ac_sub_configure=$ac_sub_srcdir/configure
2541    elif test -f $ac_sub_srcdir/configure.in; then
2542      ac_sub_configure=$ac_configure
2543    else
2544      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2545      ac_sub_configure=
2546    fi
2547
2548    # The recursion is here.
2549    if test -n "$ac_sub_configure"; then
2550
2551      # Make the cache file name correct relative to the subdirectory.
2552      case "$cache_file" in
2553      /*) ac_sub_cache_file=$cache_file ;;
2554      *) # Relative path.
2555        ac_sub_cache_file="$ac_dots$cache_file" ;;
2556      esac
2557
2558      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2559      # The eval makes quoting arguments work.
2560      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2561      then :
2562      else
2563        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2564      fi
2565    fi
2566
2567    cd $ac_popdir
2568  done
2569fi
2570
Note: See TracBrowser for help on using the repository browser.