source: git/configure @ 439ba8

fieker-DuValspielwiese
Last change on this file since 439ba8 was 99b3777, checked in by Kai Krüger <krueger@…>, 21 years ago
Added directory modules git-svn-id: file:///usr/local/Singular/svn/trunk@6797 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 176.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.53.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10if expr a : '\(a\)' >/dev/null 2>&1; then
11  as_expr=expr
12else
13  as_expr=false
14fi
15
16
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26  set -o posix
27fi
28
29# NLS nuisances.
30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32  as_unset=unset
33else
34  as_unset=false
35fi
36
37(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38    { $as_unset LANG || test "${LANG+set}" != set; } ||
39      { LANG=C; export LANG; }
40(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42      { LC_ALL=C; export LC_ALL; }
43(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45      { LC_TIME=C; export LC_TIME; }
46(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48      { LC_CTYPE=C; export LC_CTYPE; }
49(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51      { LANGUAGE=C; export LANGUAGE; }
52(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54      { LC_COLLATE=C; export LC_COLLATE; }
55(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57      { LC_NUMERIC=C; export LC_NUMERIC; }
58(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60      { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63# Name of the executable.
64as_me=`(basename "$0") 2>/dev/null ||
65$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66         X"$0" : 'X\(//\)$' \| \
67         X"$0" : 'X\(/\)$' \| \
68         .     : '\(.\)' 2>/dev/null ||
69echo X/"$0" |
70    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71          /^X\/\(\/\/\)$/{ s//\1/; q; }
72          /^X\/\(\/\).*/{ s//\1/; q; }
73          s/.*/./; q'`
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
85  echo "#! /bin/sh" >conftest.sh
86  echo  "exit 0"   >>conftest.sh
87  chmod +x conftest.sh
88  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89    PATH_SEPARATOR=';'
90  else
91    PATH_SEPARATOR=:
92  fi
93  rm -f conftest.sh
94fi
95
96
97  as_lineno_1=$LINENO
98  as_lineno_2=$LINENO
99  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100  test "x$as_lineno_1" != "x$as_lineno_2" &&
101  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102  # Find who we are.  Look in the path if we contain no path at all
103  # relative or not.
104  case $0 in
105    *[\\/]* ) as_myself=$0 ;;
106    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109  IFS=$as_save_IFS
110  test -z "$as_dir" && as_dir=.
111  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114       ;;
115  esac
116  # We did not find ourselves, most probably we were run as `sh COMMAND'
117  # in which case we are not to be found in the path.
118  if test "x$as_myself" = x; then
119    as_myself=$0
120  fi
121  if test ! -f "$as_myself"; then
122    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123   { (exit 1); exit 1; }; }
124  fi
125  case $CONFIG_SHELL in
126  '')
127    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130  IFS=$as_save_IFS
131  test -z "$as_dir" && as_dir=.
132  for as_base in sh bash ksh sh5; do
133         case $as_dir in
134         /*)
135           if ("$as_dir/$as_base" -c '
136  as_lineno_1=$LINENO
137  as_lineno_2=$LINENO
138  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139  test "x$as_lineno_1" != "x$as_lineno_2" &&
140  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141             CONFIG_SHELL=$as_dir/$as_base
142             export CONFIG_SHELL
143             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144           fi;;
145         esac
146       done
147done
148;;
149  esac
150
151  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152  # uniformly replaced by the line number.  The first 'sed' inserts a
153  # line-number line before each line; the second 'sed' does the real
154  # work.  The second script uses 'N' to pair each line-number line
155  # with the numbered line, and appends trailing '-' during
156  # substitution so that $LINENO is not a special case at line end.
157  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159  sed '=' <$as_myself |
160    sed '
161      N
162      s,$,-,
163      : loop
164      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165      t loop
166      s,-$,,
167      s,^['$as_cr_digits']*\n,,
168    ' >$as_me.lineno &&
169  chmod +x $as_me.lineno ||
170    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171   { (exit 1); exit 1; }; }
172
173  # Don't try to exec as it changes $[0], causing all sort of problems
174  # (the dirname of $[0] is not the place where we might find the
175  # original and so on.  Autoconf is especially sensible to this).
176  . ./$as_me.lineno
177  # Exit status is that of the last command.
178  exit
179}
180
181
182case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183  *c*,-n*) ECHO_N= ECHO_C='
184' ECHO_T='      ' ;;
185  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187esac
188
189if expr a : '\(a\)' >/dev/null 2>&1; then
190  as_expr=expr
191else
192  as_expr=false
193fi
194
195rm -f conf$$ conf$$.exe conf$$.file
196echo >conf$$.file
197if ln -s conf$$.file conf$$ 2>/dev/null; then
198  # We could just check for DJGPP; but this test a) works b) is more generic
199  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200  if test -f conf$$.exe; then
201    # Don't use ln at all; we don't have any links
202    as_ln_s='cp -p'
203  else
204    as_ln_s='ln -s'
205  fi
206elif ln conf$$.file conf$$ 2>/dev/null; then
207  as_ln_s=ln
208else
209  as_ln_s='cp -p'
210fi
211rm -f conf$$ conf$$.exe conf$$.file
212
213as_executable_p="test -f"
214
215# Sed expression to map a string onto a valid CPP name.
216as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218# Sed expression to map a string onto a valid variable name.
219as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222# IFS
223# We need space, tab and new line, in precisely that order.
224as_nl='
225'
226IFS="   $as_nl"
227
228# CDPATH.
229$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232# Name of the host.
233# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234# so uname gets run too.
235ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237exec 6>&1
238
239#
240# Initializations.
241#
242ac_default_prefix=/usr/local
243cross_compiling=no
244subdirs=
245MFLAGS=
246MAKEFLAGS=
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249# Maximum number of lines to put in a shell here document.
250# This variable seems obsolete.  It should probably be removed, and
251# only ac_max_sed_lines should be used.
252: ${ac_max_here_lines=38}
253
254# Identity of this package.
255PACKAGE_NAME=
256PACKAGE_TARNAME=
257PACKAGE_VERSION=
258PACKAGE_STRING=
259PACKAGE_BUGREPORT=
260
261ac_unique_file="Singular/matpol.h"
262ac_default_prefix=`pwd`
263# Factoring default headers for most tests.
264ac_includes_default="\
265#include <stdio.h>
266#if HAVE_SYS_TYPES_H
267# include <sys/types.h>
268#endif
269#if HAVE_SYS_STAT_H
270# include <sys/stat.h>
271#endif
272#if STDC_HEADERS
273# include <stdlib.h>
274# include <stddef.h>
275#else
276# if HAVE_STDLIB_H
277#  include <stdlib.h>
278# endif
279#endif
280#if HAVE_STRING_H
281# if !STDC_HEADERS && HAVE_MEMORY_H
282#  include <memory.h>
283# endif
284# include <string.h>
285#endif
286#if HAVE_STRINGS_H
287# include <strings.h>
288#endif
289#if HAVE_INTTYPES_H
290# include <inttypes.h>
291#else
292# if HAVE_STDINT_H
293#  include <stdint.h>
294# endif
295#endif
296#if HAVE_UNISTD_H
297# include <unistd.h>
298#endif"
299
300ac_subdirs_all="$ac_subdirs_all $CONFIG_SUBDIRS"
301
302# Initialize some variables set by options.
303ac_init_help=
304ac_init_version=false
305# The variables have the same names as the options, with
306# dashes changed to underlines.
307cache_file=/dev/null
308exec_prefix=NONE
309no_create=
310no_recursion=
311prefix=NONE
312program_prefix=NONE
313program_suffix=NONE
314program_transform_name=s,x,x,
315silent=
316site=
317srcdir=
318verbose=
319x_includes=NONE
320x_libraries=NONE
321
322# Installation directory options.
323# These are left unexpanded so users can "make install exec_prefix=/foo"
324# and all the variables that are supposed to be based on exec_prefix
325# by default will actually change.
326# Use braces instead of parens because sh, perl, etc. also accept them.
327bindir='${exec_prefix}/bin'
328sbindir='${exec_prefix}/sbin'
329libexecdir='${exec_prefix}/libexec'
330datadir='${prefix}/share'
331sysconfdir='${prefix}/etc'
332sharedstatedir='${prefix}/com'
333localstatedir='${prefix}/var'
334libdir='${exec_prefix}/lib'
335includedir='${prefix}/include'
336oldincludedir='/usr/include'
337infodir='${prefix}/info'
338mandir='${prefix}/man'
339
340ac_prev=
341for ac_option
342do
343  # If the previous option needs an argument, assign it.
344  if test -n "$ac_prev"; then
345    eval "$ac_prev=\$ac_option"
346    ac_prev=
347    continue
348  fi
349
350  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
351
352  # Accept the important Cygnus configure options, so we can diagnose typos.
353
354  case $ac_option in
355
356  -bindir | --bindir | --bindi | --bind | --bin | --bi)
357    ac_prev=bindir ;;
358  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359    bindir=$ac_optarg ;;
360
361  -build | --build | --buil | --bui | --bu)
362    ac_prev=build_alias ;;
363  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
364    build_alias=$ac_optarg ;;
365
366  -cache-file | --cache-file | --cache-fil | --cache-fi \
367  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
368    ac_prev=cache_file ;;
369  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
370  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
371    cache_file=$ac_optarg ;;
372
373  --config-cache | -C)
374    cache_file=config.cache ;;
375
376  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
377    ac_prev=datadir ;;
378  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
379  | --da=*)
380    datadir=$ac_optarg ;;
381
382  -disable-* | --disable-*)
383    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
384    # Reject names that are not valid shell variable names.
385    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
386      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
387   { (exit 1); exit 1; }; }
388    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
389    eval "enable_$ac_feature=no" ;;
390
391  -enable-* | --enable-*)
392    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
393    # Reject names that are not valid shell variable names.
394    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396   { (exit 1); exit 1; }; }
397    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398    case $ac_option in
399      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400      *) ac_optarg=yes ;;
401    esac
402    eval "enable_$ac_feature='$ac_optarg'" ;;
403
404  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
405  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
406  | --exec | --exe | --ex)
407    ac_prev=exec_prefix ;;
408  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
409  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
410  | --exec=* | --exe=* | --ex=*)
411    exec_prefix=$ac_optarg ;;
412
413  -gas | --gas | --ga | --g)
414    # Obsolete; use --with-gas.
415    with_gas=yes ;;
416
417  -help | --help | --hel | --he | -h)
418    ac_init_help=long ;;
419  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
420    ac_init_help=recursive ;;
421  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
422    ac_init_help=short ;;
423
424  -host | --host | --hos | --ho)
425    ac_prev=host_alias ;;
426  -host=* | --host=* | --hos=* | --ho=*)
427    host_alias=$ac_optarg ;;
428
429  -includedir | --includedir | --includedi | --included | --include \
430  | --includ | --inclu | --incl | --inc)
431    ac_prev=includedir ;;
432  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
433  | --includ=* | --inclu=* | --incl=* | --inc=*)
434    includedir=$ac_optarg ;;
435
436  -infodir | --infodir | --infodi | --infod | --info | --inf)
437    ac_prev=infodir ;;
438  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
439    infodir=$ac_optarg ;;
440
441  -libdir | --libdir | --libdi | --libd)
442    ac_prev=libdir ;;
443  -libdir=* | --libdir=* | --libdi=* | --libd=*)
444    libdir=$ac_optarg ;;
445
446  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
447  | --libexe | --libex | --libe)
448    ac_prev=libexecdir ;;
449  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
450  | --libexe=* | --libex=* | --libe=*)
451    libexecdir=$ac_optarg ;;
452
453  -localstatedir | --localstatedir | --localstatedi | --localstated \
454  | --localstate | --localstat | --localsta | --localst \
455  | --locals | --local | --loca | --loc | --lo)
456    ac_prev=localstatedir ;;
457  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
458  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
459  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
460    localstatedir=$ac_optarg ;;
461
462  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
463    ac_prev=mandir ;;
464  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
465    mandir=$ac_optarg ;;
466
467  -nfp | --nfp | --nf)
468    # Obsolete; use --without-fp.
469    with_fp=no ;;
470
471  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
472  | --no-cr | --no-c | -n)
473    no_create=yes ;;
474
475  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477    no_recursion=yes ;;
478
479  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
480  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
481  | --oldin | --oldi | --old | --ol | --o)
482    ac_prev=oldincludedir ;;
483  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
484  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
485  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
486    oldincludedir=$ac_optarg ;;
487
488  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
489    ac_prev=prefix ;;
490  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491    prefix=$ac_optarg ;;
492
493  -program-prefix | --program-prefix | --program-prefi | --program-pref \
494  | --program-pre | --program-pr | --program-p)
495    ac_prev=program_prefix ;;
496  -program-prefix=* | --program-prefix=* | --program-prefi=* \
497  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
498    program_prefix=$ac_optarg ;;
499
500  -program-suffix | --program-suffix | --program-suffi | --program-suff \
501  | --program-suf | --program-su | --program-s)
502    ac_prev=program_suffix ;;
503  -program-suffix=* | --program-suffix=* | --program-suffi=* \
504  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
505    program_suffix=$ac_optarg ;;
506
507  -program-transform-name | --program-transform-name \
508  | --program-transform-nam | --program-transform-na \
509  | --program-transform-n | --program-transform- \
510  | --program-transform | --program-transfor \
511  | --program-transfo | --program-transf \
512  | --program-trans | --program-tran \
513  | --progr-tra | --program-tr | --program-t)
514    ac_prev=program_transform_name ;;
515  -program-transform-name=* | --program-transform-name=* \
516  | --program-transform-nam=* | --program-transform-na=* \
517  | --program-transform-n=* | --program-transform-=* \
518  | --program-transform=* | --program-transfor=* \
519  | --program-transfo=* | --program-transf=* \
520  | --program-trans=* | --program-tran=* \
521  | --progr-tra=* | --program-tr=* | --program-t=*)
522    program_transform_name=$ac_optarg ;;
523
524  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
525  | -silent | --silent | --silen | --sile | --sil)
526    silent=yes ;;
527
528  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
529    ac_prev=sbindir ;;
530  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
531  | --sbi=* | --sb=*)
532    sbindir=$ac_optarg ;;
533
534  -sharedstatedir | --sharedstatedir | --sharedstatedi \
535  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
536  | --sharedst | --shareds | --shared | --share | --shar \
537  | --sha | --sh)
538    ac_prev=sharedstatedir ;;
539  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
540  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
541  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
542  | --sha=* | --sh=*)
543    sharedstatedir=$ac_optarg ;;
544
545  -site | --site | --sit)
546    ac_prev=site ;;
547  -site=* | --site=* | --sit=*)
548    site=$ac_optarg ;;
549
550  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
551    ac_prev=srcdir ;;
552  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553    srcdir=$ac_optarg ;;
554
555  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
556  | --syscon | --sysco | --sysc | --sys | --sy)
557    ac_prev=sysconfdir ;;
558  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
559  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
560    sysconfdir=$ac_optarg ;;
561
562  -target | --target | --targe | --targ | --tar | --ta | --t)
563    ac_prev=target_alias ;;
564  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
565    target_alias=$ac_optarg ;;
566
567  -v | -verbose | --verbose | --verbos | --verbo | --verb)
568    verbose=yes ;;
569
570  -version | --version | --versio | --versi | --vers | -V)
571    ac_init_version=: ;;
572
573  -with-* | --with-*)
574    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
575    # Reject names that are not valid shell variable names.
576    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
577      { echo "$as_me: error: invalid package name: $ac_package" >&2
578   { (exit 1); exit 1; }; }
579    ac_package=`echo $ac_package| sed 's/-/_/g'`
580    case $ac_option in
581      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582      *) ac_optarg=yes ;;
583    esac
584    eval "with_$ac_package='$ac_optarg'" ;;
585
586  -without-* | --without-*)
587    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package | sed 's/-/_/g'`
593    eval "with_$ac_package=no" ;;
594
595  --x)
596    # Obsolete; use --with-x.
597    with_x=yes ;;
598
599  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
600  | --x-incl | --x-inc | --x-in | --x-i)
601    ac_prev=x_includes ;;
602  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
603  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
604    x_includes=$ac_optarg ;;
605
606  -x-libraries | --x-libraries | --x-librarie | --x-librari \
607  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
608    ac_prev=x_libraries ;;
609  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
610  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
611    x_libraries=$ac_optarg ;;
612
613  -*) { echo "$as_me: error: unrecognized option: $ac_option
614Try \`$0 --help' for more information." >&2
615   { (exit 1); exit 1; }; }
616    ;;
617
618  *=*)
619    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
620    # Reject names that are not valid shell variable names.
621    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
622      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
623   { (exit 1); exit 1; }; }
624    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
625    eval "$ac_envvar='$ac_optarg'"
626    export $ac_envvar ;;
627
628  *)
629    # FIXME: should be removed in autoconf 3.0.
630    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
631    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
632      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
633    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
634    ;;
635
636  esac
637done
638
639if test -n "$ac_prev"; then
640  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
641  { echo "$as_me: error: missing argument to $ac_option" >&2
642   { (exit 1); exit 1; }; }
643fi
644
645# Be sure to have absolute paths.
646for ac_var in exec_prefix prefix
647do
648  eval ac_val=$`echo $ac_var`
649  case $ac_val in
650    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
651    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
652   { (exit 1); exit 1; }; };;
653  esac
654done
655
656# Be sure to have absolute paths.
657for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
658              localstatedir libdir includedir oldincludedir infodir mandir
659do
660  eval ac_val=$`echo $ac_var`
661  case $ac_val in
662    [\\/$]* | ?:[\\/]* ) ;;
663    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664   { (exit 1); exit 1; }; };;
665  esac
666done
667
668# There might be people who depend on the old broken behavior: `$host'
669# used to hold the argument of --host etc.
670# FIXME: To remove some day.
671build=$build_alias
672host=$host_alias
673target=$target_alias
674
675# FIXME: To remove some day.
676if test "x$host_alias" != x; then
677  if test "x$build_alias" = x; then
678    cross_compiling=maybe
679    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
680    If a cross compiler is detected then cross compile mode will be used." >&2
681  elif test "x$build_alias" != "x$host_alias"; then
682    cross_compiling=yes
683  fi
684fi
685
686ac_tool_prefix=
687test -n "$host_alias" && ac_tool_prefix=$host_alias-
688
689test "$silent" = yes && exec 6>/dev/null
690
691
692# Find the source files, if location was not specified.
693if test -z "$srcdir"; then
694  ac_srcdir_defaulted=yes
695  # Try the directory containing this script, then its parent.
696  ac_confdir=`(dirname "$0") 2>/dev/null ||
697$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
698         X"$0" : 'X\(//\)[^/]' \| \
699         X"$0" : 'X\(//\)$' \| \
700         X"$0" : 'X\(/\)' \| \
701         .     : '\(.\)' 2>/dev/null ||
702echo X"$0" |
703    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
704          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
705          /^X\(\/\/\)$/{ s//\1/; q; }
706          /^X\(\/\).*/{ s//\1/; q; }
707          s/.*/./; q'`
708  srcdir=$ac_confdir
709  if test ! -r $srcdir/$ac_unique_file; then
710    srcdir=..
711  fi
712else
713  ac_srcdir_defaulted=no
714fi
715if test ! -r $srcdir/$ac_unique_file; then
716  if test "$ac_srcdir_defaulted" = yes; then
717    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
718   { (exit 1); exit 1; }; }
719  else
720    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
721   { (exit 1); exit 1; }; }
722  fi
723fi
724srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
725ac_env_build_alias_set=${build_alias+set}
726ac_env_build_alias_value=$build_alias
727ac_cv_env_build_alias_set=${build_alias+set}
728ac_cv_env_build_alias_value=$build_alias
729ac_env_host_alias_set=${host_alias+set}
730ac_env_host_alias_value=$host_alias
731ac_cv_env_host_alias_set=${host_alias+set}
732ac_cv_env_host_alias_value=$host_alias
733ac_env_target_alias_set=${target_alias+set}
734ac_env_target_alias_value=$target_alias
735ac_cv_env_target_alias_set=${target_alias+set}
736ac_cv_env_target_alias_value=$target_alias
737ac_env_CC_set=${CC+set}
738ac_env_CC_value=$CC
739ac_cv_env_CC_set=${CC+set}
740ac_cv_env_CC_value=$CC
741ac_env_CFLAGS_set=${CFLAGS+set}
742ac_env_CFLAGS_value=$CFLAGS
743ac_cv_env_CFLAGS_set=${CFLAGS+set}
744ac_cv_env_CFLAGS_value=$CFLAGS
745ac_env_LDFLAGS_set=${LDFLAGS+set}
746ac_env_LDFLAGS_value=$LDFLAGS
747ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
748ac_cv_env_LDFLAGS_value=$LDFLAGS
749ac_env_CPPFLAGS_set=${CPPFLAGS+set}
750ac_env_CPPFLAGS_value=$CPPFLAGS
751ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
752ac_cv_env_CPPFLAGS_value=$CPPFLAGS
753ac_env_CPP_set=${CPP+set}
754ac_env_CPP_value=$CPP
755ac_cv_env_CPP_set=${CPP+set}
756ac_cv_env_CPP_value=$CPP
757ac_env_CXX_set=${CXX+set}
758ac_env_CXX_value=$CXX
759ac_cv_env_CXX_set=${CXX+set}
760ac_cv_env_CXX_value=$CXX
761ac_env_CXXFLAGS_set=${CXXFLAGS+set}
762ac_env_CXXFLAGS_value=$CXXFLAGS
763ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
764ac_cv_env_CXXFLAGS_value=$CXXFLAGS
765
766#
767# Report the --help message.
768#
769if test "$ac_init_help" = "long"; then
770  # Omit some internal or obsolete options to make the list less imposing.
771  # This message is too long to be a string in the A/UX 3.1 sh.
772  cat <<_ACEOF
773\`configure' configures this package to adapt to many kinds of systems.
774
775Usage: $0 [OPTION]... [VAR=VALUE]...
776
777To assign environment variables (e.g., CC, CFLAGS...), specify them as
778VAR=VALUE.  See below for descriptions of some of the useful variables.
779
780Defaults for the options are specified in brackets.
781
782Configuration:
783  -h, --help              display this help and exit
784      --help=short        display options specific to this package
785      --help=recursive    display the short help of all the included packages
786  -V, --version           display version information and exit
787  -q, --quiet, --silent   do not print \`checking...' messages
788      --cache-file=FILE   cache test results in FILE [disabled]
789  -C, --config-cache      alias for \`--cache-file=config.cache'
790  -n, --no-create         do not create output files
791      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
792
793_ACEOF
794
795  cat <<_ACEOF
796Installation directories:
797  --prefix=PREFIX         install architecture-independent files in PREFIX
798                          [$ac_default_prefix]
799  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
800                          [PREFIX]
801
802By default, \`make install' will install all the files in
803\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
804an installation prefix other than \`$ac_default_prefix' using \`--prefix',
805for instance \`--prefix=\$HOME'.
806
807For better control, use the options below.
808
809Fine tuning of the installation directories:
810  --bindir=DIR           user executables [EPREFIX/bin]
811  --sbindir=DIR          system admin executables [EPREFIX/sbin]
812  --libexecdir=DIR       program executables [EPREFIX/libexec]
813  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
814  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
815  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
816  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
817  --libdir=DIR           object code libraries [EPREFIX/lib]
818  --includedir=DIR       C header files [PREFIX/include]
819  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
820  --infodir=DIR          info documentation [PREFIX/info]
821  --mandir=DIR           man documentation [PREFIX/man]
822_ACEOF
823
824  cat <<\_ACEOF
825_ACEOF
826fi
827
828if test -n "$ac_init_help"; then
829
830  cat <<\_ACEOF
831
832Optional Features:
833  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
834  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
835\
836  --enable-PACKAGE        configure and/or build PACKAGE
837  --disable-PACKAGE       do not configure and/or build PACKAGE
838   where PACKAGE can be:
839     smallgmp             minimal version of gmp written in C only
840\
841     omalloc              omalloc memory managment
842\
843     gmp                  Gnu Multiple Precision package
844\
845     MP                   Multi Protocol library
846\
847     factory              polynomial factorization library
848\
849     libfac               char set and modp poly factorization library
850\
851     sgroup               numerical semigroup computations
852\
853     Singular             CAS for Polynomial Computations
854\
855     IntegerProgramming   IntegerProgramming
856\
857     Plural               Plural
858\
859     Texinfo              Texinfo for info, texi2dvi, makeinfo
860\
861     Texi2html            Texinfo to HTML converter
862\
863     doc                  Singular documentation
864\
865     emacs                emacs completion files
866
867Optional Packages:
868  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
869  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
870\
871  --with-tmpdir=DIR       use DIR as temporary directory
872\
873  --with-PACKAGE          use PACKAGE, provide dependent functionality
874  --without-PACKAGE       do not use PACKAGE, disable dependent functionality
875   where PACKAGE can be:
876     MP                   Multi Protocol library
877\
878     factory              polynomial factorization library
879\
880     libfac               char set and modp poly factorization library
881\
882  --with-apint=PACKAGE    use PACKAGE for arbitary integer arithmetic
883                          where PACKAGE can be gmp or smallgmp
884All additional --enable and --with options are passed to subsequent calls
885to configure of the packages to be built. See also configure --help in
886these packages (resp. subdirs).
887
888Some influential environment variables:
889  CC          C compiler command
890  CFLAGS      C compiler flags
891  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
892              nonstandard directory <lib dir>
893  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
894              headers in a nonstandard directory <include dir>
895  CPP         C preprocessor
896  CXX         C++ compiler command
897  CXXFLAGS    C++ compiler flags
898
899Use these variables to override the choices made by `configure' or to help
900it to find libraries and programs with nonstandard names/locations.
901
902_ACEOF
903fi
904
905if test "$ac_init_help" = "recursive"; then
906  # If there are subdirs, report their specific --help.
907  ac_popdir=`pwd`
908  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
909    test -d $ac_dir || continue
910    ac_builddir=.
911
912if test "$ac_dir" != .; then
913  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
914  # A "../" for each directory in $ac_dir_suffix.
915  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
916else
917  ac_dir_suffix= ac_top_builddir=
918fi
919
920case $srcdir in
921  .)  # No --srcdir option.  We are building in place.
922    ac_srcdir=.
923    if test -z "$ac_top_builddir"; then
924       ac_top_srcdir=.
925    else
926       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
927    fi ;;
928  [\\/]* | ?:[\\/]* )  # Absolute path.
929    ac_srcdir=$srcdir$ac_dir_suffix;
930    ac_top_srcdir=$srcdir ;;
931  *) # Relative path.
932    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
933    ac_top_srcdir=$ac_top_builddir$srcdir ;;
934esac
935# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
936# absolute.
937ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
938ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
939ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
940ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
941
942    cd $ac_dir
943    # Check for guested configure; otherwise get Cygnus style configure.
944    if test -f $ac_srcdir/configure.gnu; then
945      echo
946      $SHELL $ac_srcdir/configure.gnu  --help=recursive
947    elif test -f $ac_srcdir/configure; then
948      echo
949      $SHELL $ac_srcdir/configure  --help=recursive
950    elif test -f $ac_srcdir/configure.ac ||
951           test -f $ac_srcdir/configure.in; then
952      echo
953      $ac_configure --help
954    else
955      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
956    fi
957    cd $ac_popdir
958  done
959fi
960
961test -n "$ac_init_help" && exit 0
962if $ac_init_version; then
963  cat <<\_ACEOF
964
965Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
966Free Software Foundation, Inc.
967This configure script is free software; the Free Software Foundation
968gives unlimited permission to copy, distribute and modify it.
969_ACEOF
970  exit 0
971fi
972exec 5>config.log
973cat >&5 <<_ACEOF
974This file contains any messages produced by compilers while
975running configure, to aid debugging if configure makes a mistake.
976
977It was created by $as_me, which was
978generated by GNU Autoconf 2.53.  Invocation command line was
979
980  $ $0 $@
981
982_ACEOF
983{
984cat <<_ASUNAME
985## --------- ##
986## Platform. ##
987## --------- ##
988
989hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990uname -m = `(uname -m) 2>/dev/null || echo unknown`
991uname -r = `(uname -r) 2>/dev/null || echo unknown`
992uname -s = `(uname -s) 2>/dev/null || echo unknown`
993uname -v = `(uname -v) 2>/dev/null || echo unknown`
994
995/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
996/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
997
998/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
999/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1000/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1001hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1002/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1003/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1004/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1005
1006_ASUNAME
1007
1008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1009for as_dir in $PATH
1010do
1011  IFS=$as_save_IFS
1012  test -z "$as_dir" && as_dir=.
1013  echo "PATH: $as_dir"
1014done
1015
1016} >&5
1017
1018cat >&5 <<_ACEOF
1019
1020
1021## ----------- ##
1022## Core tests. ##
1023## ----------- ##
1024
1025_ACEOF
1026
1027
1028# Keep a trace of the command line.
1029# Strip out --no-create and --no-recursion so they do not pile up.
1030# Also quote any args containing shell meta-characters.
1031ac_configure_args=
1032ac_sep=
1033for ac_arg
1034do
1035  case $ac_arg in
1036  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037  | --no-cr | --no-c | -n ) continue ;;
1038  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040    continue ;;
1041  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1042    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1043  esac
1044  case " $ac_configure_args " in
1045    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1046    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1047       ac_sep=" " ;;
1048  esac
1049  # Get rid of the leading space.
1050done
1051
1052# When interrupted or exit'd, cleanup temporary files, and complete
1053# config.log.  We remove comments because anyway the quotes in there
1054# would cause problems or look ugly.
1055# WARNING: Be sure not to use single quotes in there, as some shells,
1056# such as our DU 5.0 friend, will then `close' the trap.
1057trap 'exit_status=$?
1058  # Save into config.log some information that might help in debugging.
1059  {
1060    echo
1061    cat <<\_ASBOX
1062## ---------------- ##
1063## Cache variables. ##
1064## ---------------- ##
1065_ASBOX
1066    echo
1067    # The following way of writing the cache mishandles newlines in values,
1068{
1069  (set) 2>&1 |
1070    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071    *ac_space=\ *)
1072      sed -n \
1073        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1074          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1075      ;;
1076    *)
1077      sed -n \
1078        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1079      ;;
1080    esac;
1081}
1082    echo
1083    if test -s confdefs.h; then
1084      cat <<\_ASBOX
1085## ----------- ##
1086## confdefs.h. ##
1087## ----------- ##
1088_ASBOX
1089      echo
1090      sed "/^$/d" confdefs.h
1091      echo
1092    fi
1093    test "$ac_signal" != 0 &&
1094      echo "$as_me: caught signal $ac_signal"
1095    echo "$as_me: exit $exit_status"
1096  } >&5
1097  rm -f core core.* *.core &&
1098  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1099    exit $exit_status
1100     ' 0
1101for ac_signal in 1 2 13 15; do
1102  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1103done
1104ac_signal=0
1105
1106# confdefs.h avoids OS command line length limits that DEFS can exceed.
1107rm -rf conftest* confdefs.h
1108# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1109echo >confdefs.h
1110
1111# Predefined preprocessor variables.
1112
1113cat >>confdefs.h <<_ACEOF
1114#define PACKAGE_NAME "$PACKAGE_NAME"
1115_ACEOF
1116
1117
1118cat >>confdefs.h <<_ACEOF
1119#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1120_ACEOF
1121
1122
1123cat >>confdefs.h <<_ACEOF
1124#define PACKAGE_VERSION "$PACKAGE_VERSION"
1125_ACEOF
1126
1127
1128cat >>confdefs.h <<_ACEOF
1129#define PACKAGE_STRING "$PACKAGE_STRING"
1130_ACEOF
1131
1132
1133cat >>confdefs.h <<_ACEOF
1134#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1135_ACEOF
1136
1137
1138# Let the site file select an alternate cache file if it wants to.
1139# Prefer explicitly selected file to automatically selected ones.
1140if test -z "$CONFIG_SITE"; then
1141  if test "x$prefix" != xNONE; then
1142    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1143  else
1144    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1145  fi
1146fi
1147for ac_site_file in $CONFIG_SITE; do
1148  if test -r "$ac_site_file"; then
1149    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1150echo "$as_me: loading site script $ac_site_file" >&6;}
1151    sed 's/^/| /' "$ac_site_file" >&5
1152    . "$ac_site_file"
1153  fi
1154done
1155
1156if test -r "$cache_file"; then
1157  # Some versions of bash will fail to source /dev/null (special
1158  # files actually), so we avoid doing that.
1159  if test -f "$cache_file"; then
1160    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1161echo "$as_me: loading cache $cache_file" >&6;}
1162    case $cache_file in
1163      [\\/]* | ?:[\\/]* ) . $cache_file;;
1164      *)                      . ./$cache_file;;
1165    esac
1166  fi
1167else
1168  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1169echo "$as_me: creating cache $cache_file" >&6;}
1170  >$cache_file
1171fi
1172
1173# Check that the precious variables saved in the cache have kept the same
1174# value.
1175ac_cache_corrupted=false
1176for ac_var in `(set) 2>&1 |
1177               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1178  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1179  eval ac_new_set=\$ac_env_${ac_var}_set
1180  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1181  eval ac_new_val="\$ac_env_${ac_var}_value"
1182  case $ac_old_set,$ac_new_set in
1183    set,)
1184      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1185echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1186      ac_cache_corrupted=: ;;
1187    ,set)
1188      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1189echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1190      ac_cache_corrupted=: ;;
1191    ,);;
1192    *)
1193      if test "x$ac_old_val" != "x$ac_new_val"; then
1194        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1195echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1196        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1197echo "$as_me:   former value:  $ac_old_val" >&2;}
1198        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1199echo "$as_me:   current value: $ac_new_val" >&2;}
1200        ac_cache_corrupted=:
1201      fi;;
1202  esac
1203  # Pass precious variables to config.status.
1204  if test "$ac_new_set" = set; then
1205    case $ac_new_val in
1206    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1208    *) ac_arg=$ac_var=$ac_new_val ;;
1209    esac
1210    case " $ac_configure_args " in
1211      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1212      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1213    esac
1214  fi
1215done
1216if $ac_cache_corrupted; then
1217  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1218echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1219  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1220echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1221   { (exit 1); exit 1; }; }
1222fi
1223
1224ac_ext=c
1225ac_cpp='$CPP $CPPFLAGS'
1226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1228ac_compiler_gnu=$ac_cv_c_compiler_gnu
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248pwd=`pwd`
1249
1250# make them to env variables
1251# pass them indirectly to subsequent configures
1252SINGULAR_MAJOR_VERSION=2
1253SINGULAR_MINOR_VERSION=1
1254SINGULAR_SUB_VERSION=2
1255VERSION_SEP="-"
1256SINGULAR_SHORT_VERSION="${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}"
1257SINGULAR_VERSION="${SINGULAR_SHORT_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}"
1258SINGULAR_RPM_VERSION="${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.${SINGULAR_SUB_VERSION}"
1259VERSION_DATE="August 2001"
1260SINGULAR_ROOT_DIR=$pwd
1261
1262export SINGULAR_MINOR_VERSION
1263export SINGULAR_MAJOR_VERSION
1264export SINGULAR_SUB_VERSION
1265export SINGULAR_VERSION
1266export SINGULAR_RPM_VERSION
1267export VERSION_DATE
1268export SINGULAR_ROOT_DIR
1269
1270
1271
1272
1273
1274
1275
1276
1277# determine Makefiles to output
1278OUTPUT_MAKEFILES="Makefile"
1279if test -d "doc"; then
1280   OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES doc/Makefile doc/version.texi doc/uname.texi"
1281fi
1282if test -d "modules"; then
1283   CONFIG_SUBDIRS=$CONFIG_SUBDIRS" modules"
1284fi
1285if test -d "emacs"; then
1286   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" emacs/Makefile"
1287fi
1288if test -d "IntegerProgramming"; then
1289   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" IntegerProgramming/Makefile"
1290fi
1291if test -d "Plural"; then
1292   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" Plural/Makefile"
1293fi
1294if test -d "InstallShield"; then
1295   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" InstallShield/Makefile InstallShield/Etc/Makefile InstallShield/Cygwin/Makefile InstallShield/Singular/Makefile InstallShield/Xemacs/Makefile"
1296fi
1297
1298
1299echo "$as_me:$LINENO: checking uname for singular" >&5
1300echo $ECHO_N "checking uname for singular... $ECHO_C" >&6
1301if test "${ac_cv_singuname+set}" = set; then
1302  echo $ECHO_N "(cached) $ECHO_C" >&6
1303else
1304  ac_cv_singuname="unknown"
1305if test -r "singuname.sh"; then
1306  if (/bin/sh singuname.sh >/dev/null 2>&1) then
1307    ac_cv_singuname=`/bin/sh singuname.sh`
1308  fi
1309fi
1310
1311fi
1312
1313echo "$as_me:$LINENO: result: $ac_cv_singuname" >&5
1314echo "${ECHO_T}$ac_cv_singuname" >&6
1315if test "$ac_cv_singuname" = unknown; then
1316  { { echo "$as_me:$LINENO: error: Unknown architecture: Check singuname.sh" >&5
1317echo "$as_me: error: Unknown architecture: Check singuname.sh" >&2;}
1318   { (exit 1); exit 1; }; }
1319else
1320  SINGUNAME=$ac_cv_singuname
1321
1322fi
1323
1324SING_UNAME=`echo $SINGUNAME | tr '-' '_' `
1325
1326
1327
1328ac_ext=c
1329ac_cpp='$CPP $CPPFLAGS'
1330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333if test -n "$ac_tool_prefix"; then
1334  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1335set dummy ${ac_tool_prefix}gcc; ac_word=$2
1336echo "$as_me:$LINENO: checking for $ac_word" >&5
1337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1338if test "${ac_cv_prog_CC+set}" = set; then
1339  echo $ECHO_N "(cached) $ECHO_C" >&6
1340else
1341  if test -n "$CC"; then
1342  ac_cv_prog_CC="$CC" # Let the user override the test.
1343else
1344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1345for as_dir in $PATH
1346do
1347  IFS=$as_save_IFS
1348  test -z "$as_dir" && as_dir=.
1349  for ac_exec_ext in '' $ac_executable_extensions; do
1350  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1351    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1352    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1353    break 2
1354  fi
1355done
1356done
1357
1358fi
1359fi
1360CC=$ac_cv_prog_CC
1361if test -n "$CC"; then
1362  echo "$as_me:$LINENO: result: $CC" >&5
1363echo "${ECHO_T}$CC" >&6
1364else
1365  echo "$as_me:$LINENO: result: no" >&5
1366echo "${ECHO_T}no" >&6
1367fi
1368
1369fi
1370if test -z "$ac_cv_prog_CC"; then
1371  ac_ct_CC=$CC
1372  # Extract the first word of "gcc", so it can be a program name with args.
1373set dummy gcc; ac_word=$2
1374echo "$as_me:$LINENO: checking for $ac_word" >&5
1375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1376if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1377  echo $ECHO_N "(cached) $ECHO_C" >&6
1378else
1379  if test -n "$ac_ct_CC"; then
1380  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1381else
1382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383for as_dir in $PATH
1384do
1385  IFS=$as_save_IFS
1386  test -z "$as_dir" && as_dir=.
1387  for ac_exec_ext in '' $ac_executable_extensions; do
1388  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389    ac_cv_prog_ac_ct_CC="gcc"
1390    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1391    break 2
1392  fi
1393done
1394done
1395
1396fi
1397fi
1398ac_ct_CC=$ac_cv_prog_ac_ct_CC
1399if test -n "$ac_ct_CC"; then
1400  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1401echo "${ECHO_T}$ac_ct_CC" >&6
1402else
1403  echo "$as_me:$LINENO: result: no" >&5
1404echo "${ECHO_T}no" >&6
1405fi
1406
1407  CC=$ac_ct_CC
1408else
1409  CC="$ac_cv_prog_CC"
1410fi
1411
1412if test -z "$CC"; then
1413  if test -n "$ac_tool_prefix"; then
1414  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1415set dummy ${ac_tool_prefix}cc; ac_word=$2
1416echo "$as_me:$LINENO: checking for $ac_word" >&5
1417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418if test "${ac_cv_prog_CC+set}" = set; then
1419  echo $ECHO_N "(cached) $ECHO_C" >&6
1420else
1421  if test -n "$CC"; then
1422  ac_cv_prog_CC="$CC" # Let the user override the test.
1423else
1424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425for as_dir in $PATH
1426do
1427  IFS=$as_save_IFS
1428  test -z "$as_dir" && as_dir=.
1429  for ac_exec_ext in '' $ac_executable_extensions; do
1430  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1431    ac_cv_prog_CC="${ac_tool_prefix}cc"
1432    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1433    break 2
1434  fi
1435done
1436done
1437
1438fi
1439fi
1440CC=$ac_cv_prog_CC
1441if test -n "$CC"; then
1442  echo "$as_me:$LINENO: result: $CC" >&5
1443echo "${ECHO_T}$CC" >&6
1444else
1445  echo "$as_me:$LINENO: result: no" >&5
1446echo "${ECHO_T}no" >&6
1447fi
1448
1449fi
1450if test -z "$ac_cv_prog_CC"; then
1451  ac_ct_CC=$CC
1452  # Extract the first word of "cc", so it can be a program name with args.
1453set dummy cc; ac_word=$2
1454echo "$as_me:$LINENO: checking for $ac_word" >&5
1455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1456if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1457  echo $ECHO_N "(cached) $ECHO_C" >&6
1458else
1459  if test -n "$ac_ct_CC"; then
1460  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1461else
1462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1463for as_dir in $PATH
1464do
1465  IFS=$as_save_IFS
1466  test -z "$as_dir" && as_dir=.
1467  for ac_exec_ext in '' $ac_executable_extensions; do
1468  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1469    ac_cv_prog_ac_ct_CC="cc"
1470    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1471    break 2
1472  fi
1473done
1474done
1475
1476fi
1477fi
1478ac_ct_CC=$ac_cv_prog_ac_ct_CC
1479if test -n "$ac_ct_CC"; then
1480  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1481echo "${ECHO_T}$ac_ct_CC" >&6
1482else
1483  echo "$as_me:$LINENO: result: no" >&5
1484echo "${ECHO_T}no" >&6
1485fi
1486
1487  CC=$ac_ct_CC
1488else
1489  CC="$ac_cv_prog_CC"
1490fi
1491
1492fi
1493if test -z "$CC"; then
1494  # Extract the first word of "cc", so it can be a program name with args.
1495set dummy cc; ac_word=$2
1496echo "$as_me:$LINENO: checking for $ac_word" >&5
1497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498if test "${ac_cv_prog_CC+set}" = set; then
1499  echo $ECHO_N "(cached) $ECHO_C" >&6
1500else
1501  if test -n "$CC"; then
1502  ac_cv_prog_CC="$CC" # Let the user override the test.
1503else
1504  ac_prog_rejected=no
1505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506for as_dir in $PATH
1507do
1508  IFS=$as_save_IFS
1509  test -z "$as_dir" && as_dir=.
1510  for ac_exec_ext in '' $ac_executable_extensions; do
1511  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1512    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1513       ac_prog_rejected=yes
1514       continue
1515     fi
1516    ac_cv_prog_CC="cc"
1517    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1518    break 2
1519  fi
1520done
1521done
1522
1523if test $ac_prog_rejected = yes; then
1524  # We found a bogon in the path, so make sure we never use it.
1525  set dummy $ac_cv_prog_CC
1526  shift
1527  if test $# != 0; then
1528    # We chose a different compiler from the bogus one.
1529    # However, it has the same basename, so the bogon will be chosen
1530    # first if we set CC to just the basename; use the full file name.
1531    shift
1532    set dummy "$as_dir/$ac_word" ${1+"$@"}
1533    shift
1534    ac_cv_prog_CC="$@"
1535  fi
1536fi
1537fi
1538fi
1539CC=$ac_cv_prog_CC
1540if test -n "$CC"; then
1541  echo "$as_me:$LINENO: result: $CC" >&5
1542echo "${ECHO_T}$CC" >&6
1543else
1544  echo "$as_me:$LINENO: result: no" >&5
1545echo "${ECHO_T}no" >&6
1546fi
1547
1548fi
1549if test -z "$CC"; then
1550  if test -n "$ac_tool_prefix"; then
1551  for ac_prog in cl
1552  do
1553    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1554set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1555echo "$as_me:$LINENO: checking for $ac_word" >&5
1556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557if test "${ac_cv_prog_CC+set}" = set; then
1558  echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
1560  if test -n "$CC"; then
1561  ac_cv_prog_CC="$CC" # Let the user override the test.
1562else
1563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH
1565do
1566  IFS=$as_save_IFS
1567  test -z "$as_dir" && as_dir=.
1568  for ac_exec_ext in '' $ac_executable_extensions; do
1569  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1571    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572    break 2
1573  fi
1574done
1575done
1576
1577fi
1578fi
1579CC=$ac_cv_prog_CC
1580if test -n "$CC"; then
1581  echo "$as_me:$LINENO: result: $CC" >&5
1582echo "${ECHO_T}$CC" >&6
1583else
1584  echo "$as_me:$LINENO: result: no" >&5
1585echo "${ECHO_T}no" >&6
1586fi
1587
1588    test -n "$CC" && break
1589  done
1590fi
1591if test -z "$CC"; then
1592  ac_ct_CC=$CC
1593  for ac_prog in cl
1594do
1595  # Extract the first word of "$ac_prog", so it can be a program name with args.
1596set dummy $ac_prog; ac_word=$2
1597echo "$as_me:$LINENO: checking for $ac_word" >&5
1598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1600  echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602  if test -n "$ac_ct_CC"; then
1603  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1604else
1605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606for as_dir in $PATH
1607do
1608  IFS=$as_save_IFS
1609  test -z "$as_dir" && as_dir=.
1610  for ac_exec_ext in '' $ac_executable_extensions; do
1611  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612    ac_cv_prog_ac_ct_CC="$ac_prog"
1613    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614    break 2
1615  fi
1616done
1617done
1618
1619fi
1620fi
1621ac_ct_CC=$ac_cv_prog_ac_ct_CC
1622if test -n "$ac_ct_CC"; then
1623  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1624echo "${ECHO_T}$ac_ct_CC" >&6
1625else
1626  echo "$as_me:$LINENO: result: no" >&5
1627echo "${ECHO_T}no" >&6
1628fi
1629
1630  test -n "$ac_ct_CC" && break
1631done
1632
1633  CC=$ac_ct_CC
1634fi
1635
1636fi
1637
1638
1639test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1640echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1641   { (exit 1); exit 1; }; }
1642
1643# Provide some information about the compiler.
1644echo "$as_me:$LINENO:" \
1645     "checking for C compiler version" >&5
1646ac_compiler=`set X $ac_compile; echo $2`
1647{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1648  (eval $ac_compiler --version </dev/null >&5) 2>&5
1649  ac_status=$?
1650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1651  (exit $ac_status); }
1652{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1653  (eval $ac_compiler -v </dev/null >&5) 2>&5
1654  ac_status=$?
1655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1656  (exit $ac_status); }
1657{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1658  (eval $ac_compiler -V </dev/null >&5) 2>&5
1659  ac_status=$?
1660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1661  (exit $ac_status); }
1662
1663cat >conftest.$ac_ext <<_ACEOF
1664#line $LINENO "configure"
1665#include "confdefs.h"
1666
1667#ifdef F77_DUMMY_MAIN
1668#  ifdef __cplusplus
1669     extern "C"
1670#  endif
1671   int F77_DUMMY_MAIN() { return 1; }
1672#endif
1673int
1674main ()
1675{
1676
1677  ;
1678  return 0;
1679}
1680_ACEOF
1681ac_clean_files_save=$ac_clean_files
1682ac_clean_files="$ac_clean_files a.out a.exe"
1683# Try to create an executable without -o first, disregard a.out.
1684# It will help us diagnose broken compilers, and finding out an intuition
1685# of exeext.
1686echo "$as_me:$LINENO: checking for C compiler default output" >&5
1687echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1688ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1689if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1690  (eval $ac_link_default) 2>&5
1691  ac_status=$?
1692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693  (exit $ac_status); }; then
1694  # Find the output, starting from the most likely.  This scheme is
1695# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1696# resort.
1697
1698# Be careful to initialize this variable, since it used to be cached.
1699# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1700ac_cv_exeext=
1701for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1702                ls a.out conftest 2>/dev/null;
1703                ls a.* conftest.* 2>/dev/null`; do
1704  case $ac_file in
1705    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1706    a.out ) # We found the default executable, but exeext='' is most
1707            # certainly right.
1708            break;;
1709    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1710          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1711          export ac_cv_exeext
1712          break;;
1713    * ) break;;
1714  esac
1715done
1716else
1717  echo "$as_me: failed program was:" >&5
1718cat conftest.$ac_ext >&5
1719{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1720echo "$as_me: error: C compiler cannot create executables" >&2;}
1721   { (exit 77); exit 77; }; }
1722fi
1723
1724ac_exeext=$ac_cv_exeext
1725echo "$as_me:$LINENO: result: $ac_file" >&5
1726echo "${ECHO_T}$ac_file" >&6
1727
1728# Check the compiler produces executables we can run.  If not, either
1729# the compiler is broken, or we cross compile.
1730echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1731echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1732# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1733# If not cross compiling, check that we can run a simple program.
1734if test "$cross_compiling" != yes; then
1735  if { ac_try='./$ac_file'
1736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1737  (eval $ac_try) 2>&5
1738  ac_status=$?
1739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1740  (exit $ac_status); }; }; then
1741    cross_compiling=no
1742  else
1743    if test "$cross_compiling" = maybe; then
1744        cross_compiling=yes
1745    else
1746        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1747If you meant to cross compile, use \`--host'." >&5
1748echo "$as_me: error: cannot run C compiled programs.
1749If you meant to cross compile, use \`--host'." >&2;}
1750   { (exit 1); exit 1; }; }
1751    fi
1752  fi
1753fi
1754echo "$as_me:$LINENO: result: yes" >&5
1755echo "${ECHO_T}yes" >&6
1756
1757rm -f a.out a.exe conftest$ac_cv_exeext
1758ac_clean_files=$ac_clean_files_save
1759# Check the compiler produces executables we can run.  If not, either
1760# the compiler is broken, or we cross compile.
1761echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1762echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1763echo "$as_me:$LINENO: result: $cross_compiling" >&5
1764echo "${ECHO_T}$cross_compiling" >&6
1765
1766echo "$as_me:$LINENO: checking for suffix of executables" >&5
1767echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1769  (eval $ac_link) 2>&5
1770  ac_status=$?
1771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1772  (exit $ac_status); }; then
1773  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1774# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1775# work properly (i.e., refer to `conftest.exe'), while it won't with
1776# `rm'.
1777for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1778  case $ac_file in
1779    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1780    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1781          export ac_cv_exeext
1782          break;;
1783    * ) break;;
1784  esac
1785done
1786else
1787  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1788echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1789   { (exit 1); exit 1; }; }
1790fi
1791
1792rm -f conftest$ac_cv_exeext
1793echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1794echo "${ECHO_T}$ac_cv_exeext" >&6
1795
1796rm -f conftest.$ac_ext
1797EXEEXT=$ac_cv_exeext
1798ac_exeext=$EXEEXT
1799echo "$as_me:$LINENO: checking for suffix of object files" >&5
1800echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1801if test "${ac_cv_objext+set}" = set; then
1802  echo $ECHO_N "(cached) $ECHO_C" >&6
1803else
1804  cat >conftest.$ac_ext <<_ACEOF
1805#line $LINENO "configure"
1806#include "confdefs.h"
1807
1808#ifdef F77_DUMMY_MAIN
1809#  ifdef __cplusplus
1810     extern "C"
1811#  endif
1812   int F77_DUMMY_MAIN() { return 1; }
1813#endif
1814int
1815main ()
1816{
1817
1818  ;
1819  return 0;
1820}
1821_ACEOF
1822rm -f conftest.o conftest.obj
1823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1824  (eval $ac_compile) 2>&5
1825  ac_status=$?
1826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827  (exit $ac_status); }; then
1828  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1829  case $ac_file in
1830    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1831    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1832       break;;
1833  esac
1834done
1835else
1836  echo "$as_me: failed program was:" >&5
1837cat conftest.$ac_ext >&5
1838{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1839echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1840   { (exit 1); exit 1; }; }
1841fi
1842
1843rm -f conftest.$ac_cv_objext conftest.$ac_ext
1844fi
1845echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1846echo "${ECHO_T}$ac_cv_objext" >&6
1847OBJEXT=$ac_cv_objext
1848ac_objext=$OBJEXT
1849echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1850echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1851if test "${ac_cv_c_compiler_gnu+set}" = set; then
1852  echo $ECHO_N "(cached) $ECHO_C" >&6
1853else
1854  cat >conftest.$ac_ext <<_ACEOF
1855#line $LINENO "configure"
1856#include "confdefs.h"
1857
1858#ifdef F77_DUMMY_MAIN
1859#  ifdef __cplusplus
1860     extern "C"
1861#  endif
1862   int F77_DUMMY_MAIN() { return 1; }
1863#endif
1864int
1865main ()
1866{
1867#ifndef __GNUC__
1868       choke me
1869#endif
1870
1871  ;
1872  return 0;
1873}
1874_ACEOF
1875rm -f conftest.$ac_objext
1876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1877  (eval $ac_compile) 2>&5
1878  ac_status=$?
1879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880  (exit $ac_status); } &&
1881         { ac_try='test -s conftest.$ac_objext'
1882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1883  (eval $ac_try) 2>&5
1884  ac_status=$?
1885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886  (exit $ac_status); }; }; then
1887  ac_compiler_gnu=yes
1888else
1889  echo "$as_me: failed program was:" >&5
1890cat conftest.$ac_ext >&5
1891ac_compiler_gnu=no
1892fi
1893rm -f conftest.$ac_objext conftest.$ac_ext
1894ac_cv_c_compiler_gnu=$ac_compiler_gnu
1895
1896fi
1897echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1898echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1899GCC=`test $ac_compiler_gnu = yes && echo yes`
1900ac_test_CFLAGS=${CFLAGS+set}
1901ac_save_CFLAGS=$CFLAGS
1902CFLAGS="-g"
1903echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1904echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1905if test "${ac_cv_prog_cc_g+set}" = set; then
1906  echo $ECHO_N "(cached) $ECHO_C" >&6
1907else
1908  cat >conftest.$ac_ext <<_ACEOF
1909#line $LINENO "configure"
1910#include "confdefs.h"
1911
1912#ifdef F77_DUMMY_MAIN
1913#  ifdef __cplusplus
1914     extern "C"
1915#  endif
1916   int F77_DUMMY_MAIN() { return 1; }
1917#endif
1918int
1919main ()
1920{
1921
1922  ;
1923  return 0;
1924}
1925_ACEOF
1926rm -f conftest.$ac_objext
1927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1928  (eval $ac_compile) 2>&5
1929  ac_status=$?
1930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931  (exit $ac_status); } &&
1932         { ac_try='test -s conftest.$ac_objext'
1933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934  (eval $ac_try) 2>&5
1935  ac_status=$?
1936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937  (exit $ac_status); }; }; then
1938  ac_cv_prog_cc_g=yes
1939else
1940  echo "$as_me: failed program was:" >&5
1941cat conftest.$ac_ext >&5
1942ac_cv_prog_cc_g=no
1943fi
1944rm -f conftest.$ac_objext conftest.$ac_ext
1945fi
1946echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1947echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1948if test "$ac_test_CFLAGS" = set; then
1949  CFLAGS=$ac_save_CFLAGS
1950elif test $ac_cv_prog_cc_g = yes; then
1951  if test "$GCC" = yes; then
1952    CFLAGS="-g -O2"
1953  else
1954    CFLAGS="-g"
1955  fi
1956else
1957  if test "$GCC" = yes; then
1958    CFLAGS="-O2"
1959  else
1960    CFLAGS=
1961  fi
1962fi
1963# Some people use a C++ compiler to compile C.  Since we use `exit',
1964# in C++ we need to declare it.  In case someone uses the same compiler
1965# for both compiling C and C++ we need to have the C++ compiler decide
1966# the declaration of exit, since it's the most demanding environment.
1967cat >conftest.$ac_ext <<_ACEOF
1968#ifndef __cplusplus
1969  choke me
1970#endif
1971_ACEOF
1972rm -f conftest.$ac_objext
1973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1974  (eval $ac_compile) 2>&5
1975  ac_status=$?
1976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977  (exit $ac_status); } &&
1978         { ac_try='test -s conftest.$ac_objext'
1979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1980  (eval $ac_try) 2>&5
1981  ac_status=$?
1982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983  (exit $ac_status); }; }; then
1984  for ac_declaration in \
1985   ''\
1986   '#include <stdlib.h>' \
1987   'extern "C" void std::exit (int) throw (); using std::exit;' \
1988   'extern "C" void std::exit (int); using std::exit;' \
1989   'extern "C" void exit (int) throw ();' \
1990   'extern "C" void exit (int);' \
1991   'void exit (int);'
1992do
1993  cat >conftest.$ac_ext <<_ACEOF
1994#line $LINENO "configure"
1995#include "confdefs.h"
1996#include <stdlib.h>
1997$ac_declaration
1998#ifdef F77_DUMMY_MAIN
1999#  ifdef __cplusplus
2000     extern "C"
2001#  endif
2002   int F77_DUMMY_MAIN() { return 1; }
2003#endif
2004int
2005main ()
2006{
2007exit (42);
2008  ;
2009  return 0;
2010}
2011_ACEOF
2012rm -f conftest.$ac_objext
2013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2014  (eval $ac_compile) 2>&5
2015  ac_status=$?
2016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017  (exit $ac_status); } &&
2018         { ac_try='test -s conftest.$ac_objext'
2019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2020  (eval $ac_try) 2>&5
2021  ac_status=$?
2022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023  (exit $ac_status); }; }; then
2024  :
2025else
2026  echo "$as_me: failed program was:" >&5
2027cat conftest.$ac_ext >&5
2028continue
2029fi
2030rm -f conftest.$ac_objext conftest.$ac_ext
2031  cat >conftest.$ac_ext <<_ACEOF
2032#line $LINENO "configure"
2033#include "confdefs.h"
2034$ac_declaration
2035#ifdef F77_DUMMY_MAIN
2036#  ifdef __cplusplus
2037     extern "C"
2038#  endif
2039   int F77_DUMMY_MAIN() { return 1; }
2040#endif
2041int
2042main ()
2043{
2044exit (42);
2045  ;
2046  return 0;
2047}
2048_ACEOF
2049rm -f conftest.$ac_objext
2050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2051  (eval $ac_compile) 2>&5
2052  ac_status=$?
2053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054  (exit $ac_status); } &&
2055         { ac_try='test -s conftest.$ac_objext'
2056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057  (eval $ac_try) 2>&5
2058  ac_status=$?
2059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060  (exit $ac_status); }; }; then
2061  break
2062else
2063  echo "$as_me: failed program was:" >&5
2064cat conftest.$ac_ext >&5
2065fi
2066rm -f conftest.$ac_objext conftest.$ac_ext
2067done
2068rm -f conftest*
2069if test -n "$ac_declaration"; then
2070  echo '#ifdef __cplusplus' >>confdefs.h
2071  echo $ac_declaration      >>confdefs.h
2072  echo '#endif'             >>confdefs.h
2073fi
2074
2075else
2076  echo "$as_me: failed program was:" >&5
2077cat conftest.$ac_ext >&5
2078fi
2079rm -f conftest.$ac_objext conftest.$ac_ext
2080ac_ext=c
2081ac_cpp='$CPP $CPPFLAGS'
2082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2084ac_compiler_gnu=$ac_cv_c_compiler_gnu
2085
2086ac_ext=c
2087ac_cpp='$CPP $CPPFLAGS'
2088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2090ac_compiler_gnu=$ac_cv_c_compiler_gnu
2091echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2092echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2093# On Suns, sometimes $CPP names a directory.
2094if test -n "$CPP" && test -d "$CPP"; then
2095  CPP=
2096fi
2097if test -z "$CPP"; then
2098  if test "${ac_cv_prog_CPP+set}" = set; then
2099  echo $ECHO_N "(cached) $ECHO_C" >&6
2100else
2101      # Double quotes because CPP needs to be expanded
2102    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2103    do
2104      ac_preproc_ok=false
2105for ac_c_preproc_warn_flag in '' yes
2106do
2107  # Use a header file that comes with gcc, so configuring glibc
2108  # with a fresh cross-compiler works.
2109  # On the NeXT, cc -E runs the code through the compiler's parser,
2110  # not just through cpp. "Syntax error" is here to catch this case.
2111  cat >conftest.$ac_ext <<_ACEOF
2112#line $LINENO "configure"
2113#include "confdefs.h"
2114#include <assert.h>
2115                     Syntax error
2116_ACEOF
2117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2118  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2119  ac_status=$?
2120  egrep -v '^ *\+' conftest.er1 >conftest.err
2121  rm -f conftest.er1
2122  cat conftest.err >&5
2123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124  (exit $ac_status); } >/dev/null; then
2125  if test -s conftest.err; then
2126    ac_cpp_err=$ac_c_preproc_warn_flag
2127  else
2128    ac_cpp_err=
2129  fi
2130else
2131  ac_cpp_err=yes
2132fi
2133if test -z "$ac_cpp_err"; then
2134  :
2135else
2136  echo "$as_me: failed program was:" >&5
2137  cat conftest.$ac_ext >&5
2138  # Broken: fails on valid input.
2139continue
2140fi
2141rm -f conftest.err conftest.$ac_ext
2142
2143  # OK, works on sane cases.  Now check whether non-existent headers
2144  # can be detected and how.
2145  cat >conftest.$ac_ext <<_ACEOF
2146#line $LINENO "configure"
2147#include "confdefs.h"
2148#include <ac_nonexistent.h>
2149_ACEOF
2150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2151  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2152  ac_status=$?
2153  egrep -v '^ *\+' conftest.er1 >conftest.err
2154  rm -f conftest.er1
2155  cat conftest.err >&5
2156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157  (exit $ac_status); } >/dev/null; then
2158  if test -s conftest.err; then
2159    ac_cpp_err=$ac_c_preproc_warn_flag
2160  else
2161    ac_cpp_err=
2162  fi
2163else
2164  ac_cpp_err=yes
2165fi
2166if test -z "$ac_cpp_err"; then
2167  # Broken: success on invalid input.
2168continue
2169else
2170  echo "$as_me: failed program was:" >&5
2171  cat conftest.$ac_ext >&5
2172  # Passes both tests.
2173ac_preproc_ok=:
2174break
2175fi
2176rm -f conftest.err conftest.$ac_ext
2177
2178done
2179# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2180rm -f conftest.err conftest.$ac_ext
2181if $ac_preproc_ok; then
2182  break
2183fi
2184
2185    done
2186    ac_cv_prog_CPP=$CPP
2187
2188fi
2189  CPP=$ac_cv_prog_CPP
2190else
2191  ac_cv_prog_CPP=$CPP
2192fi
2193echo "$as_me:$LINENO: result: $CPP" >&5
2194echo "${ECHO_T}$CPP" >&6
2195ac_preproc_ok=false
2196for ac_c_preproc_warn_flag in '' yes
2197do
2198  # Use a header file that comes with gcc, so configuring glibc
2199  # with a fresh cross-compiler works.
2200  # On the NeXT, cc -E runs the code through the compiler's parser,
2201  # not just through cpp. "Syntax error" is here to catch this case.
2202  cat >conftest.$ac_ext <<_ACEOF
2203#line $LINENO "configure"
2204#include "confdefs.h"
2205#include <assert.h>
2206                     Syntax error
2207_ACEOF
2208if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2209  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2210  ac_status=$?
2211  egrep -v '^ *\+' conftest.er1 >conftest.err
2212  rm -f conftest.er1
2213  cat conftest.err >&5
2214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215  (exit $ac_status); } >/dev/null; then
2216  if test -s conftest.err; then
2217    ac_cpp_err=$ac_c_preproc_warn_flag
2218  else
2219    ac_cpp_err=
2220  fi
2221else
2222  ac_cpp_err=yes
2223fi
2224if test -z "$ac_cpp_err"; then
2225  :
2226else
2227  echo "$as_me: failed program was:" >&5
2228  cat conftest.$ac_ext >&5
2229  # Broken: fails on valid input.
2230continue
2231fi
2232rm -f conftest.err conftest.$ac_ext
2233
2234  # OK, works on sane cases.  Now check whether non-existent headers
2235  # can be detected and how.
2236  cat >conftest.$ac_ext <<_ACEOF
2237#line $LINENO "configure"
2238#include "confdefs.h"
2239#include <ac_nonexistent.h>
2240_ACEOF
2241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2242  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2243  ac_status=$?
2244  egrep -v '^ *\+' conftest.er1 >conftest.err
2245  rm -f conftest.er1
2246  cat conftest.err >&5
2247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248  (exit $ac_status); } >/dev/null; then
2249  if test -s conftest.err; then
2250    ac_cpp_err=$ac_c_preproc_warn_flag
2251  else
2252    ac_cpp_err=
2253  fi
2254else
2255  ac_cpp_err=yes
2256fi
2257if test -z "$ac_cpp_err"; then
2258  # Broken: success on invalid input.
2259continue
2260else
2261  echo "$as_me: failed program was:" >&5
2262  cat conftest.$ac_ext >&5
2263  # Passes both tests.
2264ac_preproc_ok=:
2265break
2266fi
2267rm -f conftest.err conftest.$ac_ext
2268
2269done
2270# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2271rm -f conftest.err conftest.$ac_ext
2272if $ac_preproc_ok; then
2273  :
2274else
2275  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2276echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2277   { (exit 1); exit 1; }; }
2278fi
2279
2280ac_ext=c
2281ac_cpp='$CPP $CPPFLAGS'
2282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2284ac_compiler_gnu=$ac_cv_c_compiler_gnu
2285
2286ac_aux_dir=
2287for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2288  if test -f $ac_dir/install-sh; then
2289    ac_aux_dir=$ac_dir
2290    ac_install_sh="$ac_aux_dir/install-sh -c"
2291    break
2292  elif test -f $ac_dir/install.sh; then
2293    ac_aux_dir=$ac_dir
2294    ac_install_sh="$ac_aux_dir/install.sh -c"
2295    break
2296  elif test -f $ac_dir/shtool; then
2297    ac_aux_dir=$ac_dir
2298    ac_install_sh="$ac_aux_dir/shtool install -c"
2299    break
2300  fi
2301done
2302if test -z "$ac_aux_dir"; then
2303  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2304echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2305   { (exit 1); exit 1; }; }
2306fi
2307ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2308ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2309ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2310
2311# Find a good install program.  We prefer a C program (faster),
2312# so one script is as good as another.  But avoid the broken or
2313# incompatible versions:
2314# SysV /etc/install, /usr/sbin/install
2315# SunOS /usr/etc/install
2316# IRIX /sbin/install
2317# AIX /bin/install
2318# AmigaOS /C/install, which installs bootblocks on floppy discs
2319# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2320# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2321# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2322# ./install, which can be erroneously created by make from ./install.sh.
2323echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2324echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2325if test -z "$INSTALL"; then
2326if test "${ac_cv_path_install+set}" = set; then
2327  echo $ECHO_N "(cached) $ECHO_C" >&6
2328else
2329  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330for as_dir in $PATH
2331do
2332  IFS=$as_save_IFS
2333  test -z "$as_dir" && as_dir=.
2334  # Account for people who put trailing slashes in PATH elements.
2335case $as_dir/ in
2336  ./ | .// | /cC/* | \
2337  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2338  /usr/ucb/* ) ;;
2339  *)
2340    # OSF1 and SCO ODT 3.0 have their own names for install.
2341    # Don't use installbsd from OSF since it installs stuff as root
2342    # by default.
2343    for ac_prog in ginstall scoinst install; do
2344      for ac_exec_ext in '' $ac_executable_extensions; do
2345        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2346          if test $ac_prog = install &&
2347            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2348            # AIX install.  It has an incompatible calling convention.
2349            :
2350          elif test $ac_prog = install &&
2351            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2352            # program-specific install script used by HP pwplus--don't use.
2353            :
2354          else
2355            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2356            break 3
2357          fi
2358        fi
2359      done
2360    done
2361    ;;
2362esac
2363done
2364
2365
2366fi
2367  if test "${ac_cv_path_install+set}" = set; then
2368    INSTALL=$ac_cv_path_install
2369  else
2370    # As a last resort, use the slow shell script.  We don't cache a
2371    # path for INSTALL within a source directory, because that will
2372    # break other packages using the cache if that directory is
2373    # removed, or if the path is relative.
2374    INSTALL=$ac_install_sh
2375  fi
2376fi
2377echo "$as_me:$LINENO: result: $INSTALL" >&5
2378echo "${ECHO_T}$INSTALL" >&6
2379
2380# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2381# It thinks the first close brace ends the variable substitution.
2382test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2383
2384test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2385
2386test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2387
2388
2389
2390
2391echo "$as_me:$LINENO: checking for AIX" >&5
2392echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2393cat >conftest.$ac_ext <<_ACEOF
2394#line $LINENO "configure"
2395#include "confdefs.h"
2396#ifdef _AIX
2397  yes
2398#endif
2399
2400_ACEOF
2401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2402  egrep "yes" >/dev/null 2>&1; then
2403  echo "$as_me:$LINENO: result: yes" >&5
2404echo "${ECHO_T}yes" >&6
2405cat >>confdefs.h <<\_ACEOF
2406#define _ALL_SOURCE 1
2407_ACEOF
2408
2409else
2410  echo "$as_me:$LINENO: result: no" >&5
2411echo "${ECHO_T}no" >&6
2412fi
2413rm -f conftest*
2414
2415
2416ac_ext=cc
2417ac_cpp='$CXXCPP $CPPFLAGS'
2418ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2421if test -n "$ac_tool_prefix"; then
2422  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2423  do
2424    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2425set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2426echo "$as_me:$LINENO: checking for $ac_word" >&5
2427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2428if test "${ac_cv_prog_CXX+set}" = set; then
2429  echo $ECHO_N "(cached) $ECHO_C" >&6
2430else
2431  if test -n "$CXX"; then
2432  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2433else
2434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435for as_dir in $PATH
2436do
2437  IFS=$as_save_IFS
2438  test -z "$as_dir" && as_dir=.
2439  for ac_exec_ext in '' $ac_executable_extensions; do
2440  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2441    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2442    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443    break 2
2444  fi
2445done
2446done
2447
2448fi
2449fi
2450CXX=$ac_cv_prog_CXX
2451if test -n "$CXX"; then
2452  echo "$as_me:$LINENO: result: $CXX" >&5
2453echo "${ECHO_T}$CXX" >&6
2454else
2455  echo "$as_me:$LINENO: result: no" >&5
2456echo "${ECHO_T}no" >&6
2457fi
2458
2459    test -n "$CXX" && break
2460  done
2461fi
2462if test -z "$CXX"; then
2463  ac_ct_CXX=$CXX
2464  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2465do
2466  # Extract the first word of "$ac_prog", so it can be a program name with args.
2467set dummy $ac_prog; ac_word=$2
2468echo "$as_me:$LINENO: checking for $ac_word" >&5
2469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2470if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2471  echo $ECHO_N "(cached) $ECHO_C" >&6
2472else
2473  if test -n "$ac_ct_CXX"; then
2474  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2475else
2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477for as_dir in $PATH
2478do
2479  IFS=$as_save_IFS
2480  test -z "$as_dir" && as_dir=.
2481  for ac_exec_ext in '' $ac_executable_extensions; do
2482  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2483    ac_cv_prog_ac_ct_CXX="$ac_prog"
2484    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485    break 2
2486  fi
2487done
2488done
2489
2490fi
2491fi
2492ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2493if test -n "$ac_ct_CXX"; then
2494  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2495echo "${ECHO_T}$ac_ct_CXX" >&6
2496else
2497  echo "$as_me:$LINENO: result: no" >&5
2498echo "${ECHO_T}no" >&6
2499fi
2500
2501  test -n "$ac_ct_CXX" && break
2502done
2503test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2504
2505  CXX=$ac_ct_CXX
2506fi
2507
2508
2509# Provide some information about the compiler.
2510echo "$as_me:$LINENO:" \
2511     "checking for C++ compiler version" >&5
2512ac_compiler=`set X $ac_compile; echo $2`
2513{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2514  (eval $ac_compiler --version </dev/null >&5) 2>&5
2515  ac_status=$?
2516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517  (exit $ac_status); }
2518{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2519  (eval $ac_compiler -v </dev/null >&5) 2>&5
2520  ac_status=$?
2521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522  (exit $ac_status); }
2523{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2524  (eval $ac_compiler -V </dev/null >&5) 2>&5
2525  ac_status=$?
2526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527  (exit $ac_status); }
2528
2529echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2530echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2531if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2532  echo $ECHO_N "(cached) $ECHO_C" >&6
2533else
2534  cat >conftest.$ac_ext <<_ACEOF
2535#line $LINENO "configure"
2536#include "confdefs.h"
2537
2538#ifdef F77_DUMMY_MAIN
2539#  ifdef __cplusplus
2540     extern "C"
2541#  endif
2542   int F77_DUMMY_MAIN() { return 1; }
2543#endif
2544int
2545main ()
2546{
2547#ifndef __GNUC__
2548       choke me
2549#endif
2550
2551  ;
2552  return 0;
2553}
2554_ACEOF
2555rm -f conftest.$ac_objext
2556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557  (eval $ac_compile) 2>&5
2558  ac_status=$?
2559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560  (exit $ac_status); } &&
2561         { ac_try='test -s conftest.$ac_objext'
2562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563  (eval $ac_try) 2>&5
2564  ac_status=$?
2565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566  (exit $ac_status); }; }; then
2567  ac_compiler_gnu=yes
2568else
2569  echo "$as_me: failed program was:" >&5
2570cat conftest.$ac_ext >&5
2571ac_compiler_gnu=no
2572fi
2573rm -f conftest.$ac_objext conftest.$ac_ext
2574ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2575
2576fi
2577echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2578echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2579GXX=`test $ac_compiler_gnu = yes && echo yes`
2580ac_test_CXXFLAGS=${CXXFLAGS+set}
2581ac_save_CXXFLAGS=$CXXFLAGS
2582CXXFLAGS="-g"
2583echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2584echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2585if test "${ac_cv_prog_cxx_g+set}" = set; then
2586  echo $ECHO_N "(cached) $ECHO_C" >&6
2587else
2588  cat >conftest.$ac_ext <<_ACEOF
2589#line $LINENO "configure"
2590#include "confdefs.h"
2591
2592#ifdef F77_DUMMY_MAIN
2593#  ifdef __cplusplus
2594     extern "C"
2595#  endif
2596   int F77_DUMMY_MAIN() { return 1; }
2597#endif
2598int
2599main ()
2600{
2601
2602  ;
2603  return 0;
2604}
2605_ACEOF
2606rm -f conftest.$ac_objext
2607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608  (eval $ac_compile) 2>&5
2609  ac_status=$?
2610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611  (exit $ac_status); } &&
2612         { ac_try='test -s conftest.$ac_objext'
2613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614  (eval $ac_try) 2>&5
2615  ac_status=$?
2616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617  (exit $ac_status); }; }; then
2618  ac_cv_prog_cxx_g=yes
2619else
2620  echo "$as_me: failed program was:" >&5
2621cat conftest.$ac_ext >&5
2622ac_cv_prog_cxx_g=no
2623fi
2624rm -f conftest.$ac_objext conftest.$ac_ext
2625fi
2626echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2627echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2628if test "$ac_test_CXXFLAGS" = set; then
2629  CXXFLAGS=$ac_save_CXXFLAGS
2630elif test $ac_cv_prog_cxx_g = yes; then
2631  if test "$GXX" = yes; then
2632    CXXFLAGS="-g -O2"
2633  else
2634    CXXFLAGS="-g"
2635  fi
2636else
2637  if test "$GXX" = yes; then
2638    CXXFLAGS="-O2"
2639  else
2640    CXXFLAGS=
2641  fi
2642fi
2643for ac_declaration in \
2644   ''\
2645   '#include <stdlib.h>' \
2646   'extern "C" void std::exit (int) throw (); using std::exit;' \
2647   'extern "C" void std::exit (int); using std::exit;' \
2648   'extern "C" void exit (int) throw ();' \
2649   'extern "C" void exit (int);' \
2650   'void exit (int);'
2651do
2652  cat >conftest.$ac_ext <<_ACEOF
2653#line $LINENO "configure"
2654#include "confdefs.h"
2655#include <stdlib.h>
2656$ac_declaration
2657#ifdef F77_DUMMY_MAIN
2658#  ifdef __cplusplus
2659     extern "C"
2660#  endif
2661   int F77_DUMMY_MAIN() { return 1; }
2662#endif
2663int
2664main ()
2665{
2666exit (42);
2667  ;
2668  return 0;
2669}
2670_ACEOF
2671rm -f conftest.$ac_objext
2672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2673  (eval $ac_compile) 2>&5
2674  ac_status=$?
2675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676  (exit $ac_status); } &&
2677         { ac_try='test -s conftest.$ac_objext'
2678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679  (eval $ac_try) 2>&5
2680  ac_status=$?
2681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682  (exit $ac_status); }; }; then
2683  :
2684else
2685  echo "$as_me: failed program was:" >&5
2686cat conftest.$ac_ext >&5
2687continue
2688fi
2689rm -f conftest.$ac_objext conftest.$ac_ext
2690  cat >conftest.$ac_ext <<_ACEOF
2691#line $LINENO "configure"
2692#include "confdefs.h"
2693$ac_declaration
2694#ifdef F77_DUMMY_MAIN
2695#  ifdef __cplusplus
2696     extern "C"
2697#  endif
2698   int F77_DUMMY_MAIN() { return 1; }
2699#endif
2700int
2701main ()
2702{
2703exit (42);
2704  ;
2705  return 0;
2706}
2707_ACEOF
2708rm -f conftest.$ac_objext
2709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710  (eval $ac_compile) 2>&5
2711  ac_status=$?
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); } &&
2714         { ac_try='test -s conftest.$ac_objext'
2715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716  (eval $ac_try) 2>&5
2717  ac_status=$?
2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719  (exit $ac_status); }; }; then
2720  break
2721else
2722  echo "$as_me: failed program was:" >&5
2723cat conftest.$ac_ext >&5
2724fi
2725rm -f conftest.$ac_objext conftest.$ac_ext
2726done
2727rm -f conftest*
2728if test -n "$ac_declaration"; then
2729  echo '#ifdef __cplusplus' >>confdefs.h
2730  echo $ac_declaration      >>confdefs.h
2731  echo '#endif'             >>confdefs.h
2732fi
2733
2734ac_ext=c
2735ac_cpp='$CPP $CPPFLAGS'
2736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739
2740
2741# check whether the compiler accepts -pipe
2742echo "$as_me:$LINENO: checking whether compiler accepts -pipe" >&5
2743echo $ECHO_N "checking whether compiler accepts -pipe... $ECHO_C" >&6
2744temp_cflags=${CFLAGS}
2745CFLAGS="${CFLAGS} -pipe"
2746if test "${ac_cv_cxx_have_pipe+set}" = set; then
2747  echo $ECHO_N "(cached) $ECHO_C" >&6
2748else
2749  cat >conftest.$ac_ext <<_ACEOF
2750#line $LINENO "configure"
2751#include "confdefs.h"
2752
2753#ifdef F77_DUMMY_MAIN
2754#  ifdef __cplusplus
2755     extern "C"
2756#  endif
2757   int F77_DUMMY_MAIN() { return 1; }
2758#endif
2759int
2760main ()
2761{
2762
2763  ;
2764  return 0;
2765}
2766_ACEOF
2767rm -f conftest.$ac_objext
2768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2769  (eval $ac_compile) 2>&5
2770  ac_status=$?
2771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772  (exit $ac_status); } &&
2773         { ac_try='test -s conftest.$ac_objext'
2774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775  (eval $ac_try) 2>&5
2776  ac_status=$?
2777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778  (exit $ac_status); }; }; then
2779  ac_cv_cxx_have_pipe=yes
2780else
2781  echo "$as_me: failed program was:" >&5
2782cat conftest.$ac_ext >&5
2783ac_cv_cxx_have_pipe=no
2784fi
2785rm -f conftest.$ac_objext conftest.$ac_ext
2786
2787fi
2788
2789echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_pipe}" >&5
2790echo "${ECHO_T}${ac_cv_cxx_have_pipe}" >&6
2791CFLAGS=${temp_cflags}
2792if test "${ac_cv_cxx_have_pipe}" != yes; then
2793  PIPE=
2794else
2795  PIPE="-pipe"
2796fi
2797
2798
2799for ac_prog in perl5 perl
2800do
2801  # Extract the first word of "$ac_prog", so it can be a program name with args.
2802set dummy $ac_prog; ac_word=$2
2803echo "$as_me:$LINENO: checking for $ac_word" >&5
2804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2805if test "${ac_cv_prog_PERL+set}" = set; then
2806  echo $ECHO_N "(cached) $ECHO_C" >&6
2807else
2808  if test -n "$PERL"; then
2809  ac_cv_prog_PERL="$PERL" # Let the user override the test.
2810else
2811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812for as_dir in $PATH
2813do
2814  IFS=$as_save_IFS
2815  test -z "$as_dir" && as_dir=.
2816  for ac_exec_ext in '' $ac_executable_extensions; do
2817  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2818    ac_cv_prog_PERL="$ac_prog"
2819    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820    break 2
2821  fi
2822done
2823done
2824
2825fi
2826fi
2827PERL=$ac_cv_prog_PERL
2828if test -n "$PERL"; then
2829  echo "$as_me:$LINENO: result: $PERL" >&5
2830echo "${ECHO_T}$PERL" >&6
2831else
2832  echo "$as_me:$LINENO: result: no" >&5
2833echo "${ECHO_T}no" >&6
2834fi
2835
2836  test -n "$PERL" && break
2837done
2838
2839for ac_prog in uudecode "uudeview -i"
2840do
2841  # Extract the first word of "$ac_prog", so it can be a program name with args.
2842set dummy $ac_prog; ac_word=$2
2843echo "$as_me:$LINENO: checking for $ac_word" >&5
2844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2845if test "${ac_cv_prog_UUDECODE+set}" = set; then
2846  echo $ECHO_N "(cached) $ECHO_C" >&6
2847else
2848  if test -n "$UUDECODE"; then
2849  ac_cv_prog_UUDECODE="$UUDECODE" # Let the user override the test.
2850else
2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH
2853do
2854  IFS=$as_save_IFS
2855  test -z "$as_dir" && as_dir=.
2856  for ac_exec_ext in '' $ac_executable_extensions; do
2857  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858    ac_cv_prog_UUDECODE="$ac_prog"
2859    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860    break 2
2861  fi
2862done
2863done
2864
2865fi
2866fi
2867UUDECODE=$ac_cv_prog_UUDECODE
2868if test -n "$UUDECODE"; then
2869  echo "$as_me:$LINENO: result: $UUDECODE" >&5
2870echo "${ECHO_T}$UUDECODE" >&6
2871else
2872  echo "$as_me:$LINENO: result: no" >&5
2873echo "${ECHO_T}no" >&6
2874fi
2875
2876  test -n "$UUDECODE" && break
2877done
2878
2879for ac_prog in gunzip
2880do
2881  # Extract the first word of "$ac_prog", so it can be a program name with args.
2882set dummy $ac_prog; ac_word=$2
2883echo "$as_me:$LINENO: checking for $ac_word" >&5
2884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2885if test "${ac_cv_prog_GUNZIP+set}" = set; then
2886  echo $ECHO_N "(cached) $ECHO_C" >&6
2887else
2888  if test -n "$GUNZIP"; then
2889  ac_cv_prog_GUNZIP="$GUNZIP" # Let the user override the test.
2890else
2891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892for as_dir in $PATH
2893do
2894  IFS=$as_save_IFS
2895  test -z "$as_dir" && as_dir=.
2896  for ac_exec_ext in '' $ac_executable_extensions; do
2897  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898    ac_cv_prog_GUNZIP="$ac_prog"
2899    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2900    break 2
2901  fi
2902done
2903done
2904
2905fi
2906fi
2907GUNZIP=$ac_cv_prog_GUNZIP
2908if test -n "$GUNZIP"; then
2909  echo "$as_me:$LINENO: result: $GUNZIP" >&5
2910echo "${ECHO_T}$GUNZIP" >&6
2911else
2912  echo "$as_me:$LINENO: result: no" >&5
2913echo "${ECHO_T}no" >&6
2914fi
2915
2916  test -n "$GUNZIP" && break
2917done
2918test -n "$GUNZIP" || GUNZIP="${pwd}/warn_not_found.sh gunzip"
2919
2920# don't use GZIP this breaks configure
2921for ac_prog in gzip
2922do
2923  # Extract the first word of "$ac_prog", so it can be a program name with args.
2924set dummy $ac_prog; ac_word=$2
2925echo "$as_me:$LINENO: checking for $ac_word" >&5
2926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2927if test "${ac_cv_prog_MYGZIP+set}" = set; then
2928  echo $ECHO_N "(cached) $ECHO_C" >&6
2929else
2930  if test -n "$MYGZIP"; then
2931  ac_cv_prog_MYGZIP="$MYGZIP" # Let the user override the test.
2932else
2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934for as_dir in $PATH
2935do
2936  IFS=$as_save_IFS
2937  test -z "$as_dir" && as_dir=.
2938  for ac_exec_ext in '' $ac_executable_extensions; do
2939  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940    ac_cv_prog_MYGZIP="$ac_prog"
2941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2942    break 2
2943  fi
2944done
2945done
2946
2947fi
2948fi
2949MYGZIP=$ac_cv_prog_MYGZIP
2950if test -n "$MYGZIP"; then
2951  echo "$as_me:$LINENO: result: $MYGZIP" >&5
2952echo "${ECHO_T}$MYGZIP" >&6
2953else
2954  echo "$as_me:$LINENO: result: no" >&5
2955echo "${ECHO_T}no" >&6
2956fi
2957
2958  test -n "$MYGZIP" && break
2959done
2960test -n "$MYGZIP" || MYGZIP="${pwd}/warn_not_found.sh gzip"
2961
2962# Extract the first word of "latex2html", so it can be a program name with args.
2963set dummy latex2html; ac_word=$2
2964echo "$as_me:$LINENO: checking for $ac_word" >&5
2965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2966if test "${ac_cv_prog_LATEX2HTML+set}" = set; then
2967  echo $ECHO_N "(cached) $ECHO_C" >&6
2968else
2969  if test -n "$LATEX2HTML"; then
2970  ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
2971else
2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975  IFS=$as_save_IFS
2976  test -z "$as_dir" && as_dir=.
2977  for ac_exec_ext in '' $ac_executable_extensions; do
2978  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979    ac_cv_prog_LATEX2HTML="latex2html"
2980    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2981    break 2
2982  fi
2983done
2984done
2985
2986fi
2987fi
2988LATEX2HTML=$ac_cv_prog_LATEX2HTML
2989if test -n "$LATEX2HTML"; then
2990  echo "$as_me:$LINENO: result: $LATEX2HTML" >&5
2991echo "${ECHO_T}$LATEX2HTML" >&6
2992else
2993  echo "$as_me:$LINENO: result: no" >&5
2994echo "${ECHO_T}no" >&6
2995fi
2996
2997echo "$as_me:$LINENO: checking whether ln -s works" >&5
2998echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2999LN_S=$as_ln_s
3000if test "$LN_S" = "ln -s"; then
3001  echo "$as_me:$LINENO: result: yes" >&5
3002echo "${ECHO_T}yes" >&6
3003else
3004  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3005echo "${ECHO_T}no, using $LN_S" >&6
3006fi
3007
3008
3009if test -r "${pwd}/mkinstalldirs"; then
3010  MKINSTALLDIRS=${pwd}/mkinstalldirs
3011
3012else
3013  { { echo "$as_me:$LINENO: error: mkinstalldirs not foind in ${pwd}" >&5
3014echo "$as_me: error: mkinstalldirs not foind in ${pwd}" >&2;}
3015   { (exit 1); exit 1; }; }
3016fi
3017
3018# expand prefix and pass it to subsequent configures
3019if test "x$prefix" = xNONE; then
3020  prefix=${ac_default_prefix}
3021  ac_configure_args="$ac_configure_args --prefix=${prefix}"
3022fi
3023
3024# expand exec_prefix
3025if test "x$exec_prefix" = xNONE; then
3026 exec_prefix=${prefix}/${ac_cv_singuname}
3027 ac_configure_args="$ac_configure_args --exec_prefix=${exec_prefix}"
3028fi
3029
3030# expand bindir
3031if test "x$bindir" = 'x${exec_prefix}/bin'; then
3032  bindir="${exec_prefix}"
3033  ac_configure_args="$ac_configure_args --bindir=${bindir}"
3034fi
3035
3036# expand libdir
3037if test "x$libdir" = 'x${exec_prefix}/lib'; then
3038  libdir="${exec_prefix}/lib"
3039  ac_configure_args="$ac_configure_args --libdir=${libdir}"
3040fi
3041
3042# expand includedir
3043if test "x$includedir" = 'x${prefix}/include'; then
3044  includedir="${exec_prefix}/include"
3045  ac_configure_args="$ac_configure_args --includedir=${includedir}"
3046fi
3047
3048# construct name of installed Singular executable
3049SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}
3050export SINGULAR
3051
3052
3053
3054# add -I to CPPFLAGS and -L to LDFLAGS, just to be sure
3055LDFLAGS="-L${libdir} ${LDFLAGS}"
3056CPPFLAGS="-I${includedir} ${CPPFLAGS}"
3057
3058# check for AIX
3059echo "$as_me:$LINENO: checking whether _AIX is defined" >&5
3060echo $ECHO_N "checking whether _AIX is defined... $ECHO_C" >&6
3061if test "${ac_cv_is_aix+set}" = set; then
3062  echo $ECHO_N "(cached) $ECHO_C" >&6
3063else
3064  cat >conftest.$ac_ext <<_ACEOF
3065#line $LINENO "configure"
3066#include "confdefs.h"
3067#ifdef _AIX
3068    yes
3069#endif
3070
3071_ACEOF
3072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3073  egrep "yes" >/dev/null 2>&1; then
3074  ac_cv_is_aix=yes
3075else
3076  ac_cv_is_aix=no
3077fi
3078rm -f conftest*
3079
3080fi
3081
3082if test "$ac_cv_is_aix" = yes; then
3083  echo "$as_me:$LINENO: result: yes" >&5
3084echo "${ECHO_T}yes" >&6
3085else
3086  echo "$as_me:$LINENO: result: no" >&5
3087echo "${ECHO_T}no" >&6
3088fi
3089
3090
3091echo "$as_me:$LINENO: checking for atof in -lm" >&5
3092echo $ECHO_N "checking for atof in -lm... $ECHO_C" >&6
3093if test "${ac_cv_lib_m_atof+set}" = set; then
3094  echo $ECHO_N "(cached) $ECHO_C" >&6
3095else
3096  ac_check_lib_save_LIBS=$LIBS
3097LIBS="-lm  $LIBS"
3098cat >conftest.$ac_ext <<_ACEOF
3099#line $LINENO "configure"
3100#include "confdefs.h"
3101
3102/* Override any gcc2 internal prototype to avoid an error.  */
3103#ifdef __cplusplus
3104extern "C"
3105#endif
3106/* We use char because int might match the return type of a gcc2
3107   builtin and then its argument prototype would still apply.  */
3108char atof ();
3109#ifdef F77_DUMMY_MAIN
3110#  ifdef __cplusplus
3111     extern "C"
3112#  endif
3113   int F77_DUMMY_MAIN() { return 1; }
3114#endif
3115int
3116main ()
3117{
3118atof ();
3119  ;
3120  return 0;
3121}
3122_ACEOF
3123rm -f conftest.$ac_objext conftest$ac_exeext
3124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3125  (eval $ac_link) 2>&5
3126  ac_status=$?
3127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128  (exit $ac_status); } &&
3129         { ac_try='test -s conftest$ac_exeext'
3130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131  (eval $ac_try) 2>&5
3132  ac_status=$?
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); }; }; then
3135  ac_cv_lib_m_atof=yes
3136else
3137  echo "$as_me: failed program was:" >&5
3138cat conftest.$ac_ext >&5
3139ac_cv_lib_m_atof=no
3140fi
3141rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3142LIBS=$ac_check_lib_save_LIBS
3143fi
3144echo "$as_me:$LINENO: result: $ac_cv_lib_m_atof" >&5
3145echo "${ECHO_T}$ac_cv_lib_m_atof" >&6
3146if test $ac_cv_lib_m_atof = yes; then
3147  cat >>confdefs.h <<_ACEOF
3148#define HAVE_LIBM 1
3149_ACEOF
3150
3151  LIBS="-lm $LIBS"
3152
3153fi
3154
3155
3156echo "$as_me:$LINENO: checking for socket in -lbsd" >&5
3157echo $ECHO_N "checking for socket in -lbsd... $ECHO_C" >&6
3158if test "${ac_cv_lib_bsd_socket+set}" = set; then
3159  echo $ECHO_N "(cached) $ECHO_C" >&6
3160else
3161  ac_check_lib_save_LIBS=$LIBS
3162LIBS="-lbsd  $LIBS"
3163cat >conftest.$ac_ext <<_ACEOF
3164#line $LINENO "configure"
3165#include "confdefs.h"
3166
3167/* Override any gcc2 internal prototype to avoid an error.  */
3168#ifdef __cplusplus
3169extern "C"
3170#endif
3171/* We use char because int might match the return type of a gcc2
3172   builtin and then its argument prototype would still apply.  */
3173char socket ();
3174#ifdef F77_DUMMY_MAIN
3175#  ifdef __cplusplus
3176     extern "C"
3177#  endif
3178   int F77_DUMMY_MAIN() { return 1; }
3179#endif
3180int
3181main ()
3182{
3183socket ();
3184  ;
3185  return 0;
3186}
3187_ACEOF
3188rm -f conftest.$ac_objext conftest$ac_exeext
3189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3190  (eval $ac_link) 2>&5
3191  ac_status=$?
3192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193  (exit $ac_status); } &&
3194         { ac_try='test -s conftest$ac_exeext'
3195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196  (eval $ac_try) 2>&5
3197  ac_status=$?
3198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); }; }; then
3200  ac_cv_lib_bsd_socket=yes
3201else
3202  echo "$as_me: failed program was:" >&5
3203cat conftest.$ac_ext >&5
3204ac_cv_lib_bsd_socket=no
3205fi
3206rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3207LIBS=$ac_check_lib_save_LIBS
3208fi
3209echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_socket" >&5
3210echo "${ECHO_T}$ac_cv_lib_bsd_socket" >&6
3211if test $ac_cv_lib_bsd_socket = yes; then
3212  cat >>confdefs.h <<_ACEOF
3213#define HAVE_LIBBSD 1
3214_ACEOF
3215
3216  LIBS="-lbsd $LIBS"
3217
3218fi
3219
3220
3221echo "$as_me:$LINENO: checking for listen in -lsocket" >&5
3222echo $ECHO_N "checking for listen in -lsocket... $ECHO_C" >&6
3223if test "${ac_cv_lib_socket_listen+set}" = set; then
3224  echo $ECHO_N "(cached) $ECHO_C" >&6
3225else
3226  ac_check_lib_save_LIBS=$LIBS
3227LIBS="-lsocket  $LIBS"
3228cat >conftest.$ac_ext <<_ACEOF
3229#line $LINENO "configure"
3230#include "confdefs.h"
3231
3232/* Override any gcc2 internal prototype to avoid an error.  */
3233#ifdef __cplusplus
3234extern "C"
3235#endif
3236/* We use char because int might match the return type of a gcc2
3237   builtin and then its argument prototype would still apply.  */
3238char listen ();
3239#ifdef F77_DUMMY_MAIN
3240#  ifdef __cplusplus
3241     extern "C"
3242#  endif
3243   int F77_DUMMY_MAIN() { return 1; }
3244#endif
3245int
3246main ()
3247{
3248listen ();
3249  ;
3250  return 0;
3251}
3252_ACEOF
3253rm -f conftest.$ac_objext conftest$ac_exeext
3254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3255  (eval $ac_link) 2>&5
3256  ac_status=$?
3257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258  (exit $ac_status); } &&
3259         { ac_try='test -s conftest$ac_exeext'
3260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261  (eval $ac_try) 2>&5
3262  ac_status=$?
3263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264  (exit $ac_status); }; }; then
3265  ac_cv_lib_socket_listen=yes
3266else
3267  echo "$as_me: failed program was:" >&5
3268cat conftest.$ac_ext >&5
3269ac_cv_lib_socket_listen=no
3270fi
3271rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3272LIBS=$ac_check_lib_save_LIBS
3273fi
3274echo "$as_me:$LINENO: result: $ac_cv_lib_socket_listen" >&5
3275echo "${ECHO_T}$ac_cv_lib_socket_listen" >&6
3276if test $ac_cv_lib_socket_listen = yes; then
3277  cat >>confdefs.h <<_ACEOF
3278#define HAVE_LIBSOCKET 1
3279_ACEOF
3280
3281  LIBS="-lsocket $LIBS"
3282
3283fi
3284
3285
3286echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3287echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3288if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3289  echo $ECHO_N "(cached) $ECHO_C" >&6
3290else
3291  ac_check_lib_save_LIBS=$LIBS
3292LIBS="-lnsl  $LIBS"
3293cat >conftest.$ac_ext <<_ACEOF
3294#line $LINENO "configure"
3295#include "confdefs.h"
3296
3297/* Override any gcc2 internal prototype to avoid an error.  */
3298#ifdef __cplusplus
3299extern "C"
3300#endif
3301/* We use char because int might match the return type of a gcc2
3302   builtin and then its argument prototype would still apply.  */
3303char gethostbyname ();
3304#ifdef F77_DUMMY_MAIN
3305#  ifdef __cplusplus
3306     extern "C"
3307#  endif
3308   int F77_DUMMY_MAIN() { return 1; }
3309#endif
3310int
3311main ()
3312{
3313gethostbyname ();
3314  ;
3315  return 0;
3316}
3317_ACEOF
3318rm -f conftest.$ac_objext conftest$ac_exeext
3319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3320  (eval $ac_link) 2>&5
3321  ac_status=$?
3322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323  (exit $ac_status); } &&
3324         { ac_try='test -s conftest$ac_exeext'
3325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326  (eval $ac_try) 2>&5
3327  ac_status=$?
3328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); }; }; then
3330  ac_cv_lib_nsl_gethostbyname=yes
3331else
3332  echo "$as_me: failed program was:" >&5
3333cat conftest.$ac_ext >&5
3334ac_cv_lib_nsl_gethostbyname=no
3335fi
3336rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3337LIBS=$ac_check_lib_save_LIBS
3338fi
3339echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3340echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3341if test $ac_cv_lib_nsl_gethostbyname = yes; then
3342  cat >>confdefs.h <<_ACEOF
3343#define HAVE_LIBNSL 1
3344_ACEOF
3345
3346  LIBS="-lnsl $LIBS"
3347
3348fi
3349
3350
3351echo "$as_me:$LINENO: checking for main in -lgmp" >&5
3352echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6
3353if test "${ac_cv_lib_gmp_main+set}" = set; then
3354  echo $ECHO_N "(cached) $ECHO_C" >&6
3355else
3356  ac_check_lib_save_LIBS=$LIBS
3357LIBS="-lgmp  $LIBS"
3358cat >conftest.$ac_ext <<_ACEOF
3359#line $LINENO "configure"
3360#include "confdefs.h"
3361
3362
3363#ifdef F77_DUMMY_MAIN
3364#  ifdef __cplusplus
3365     extern "C"
3366#  endif
3367   int F77_DUMMY_MAIN() { return 1; }
3368#endif
3369int
3370main ()
3371{
3372main ();
3373  ;
3374  return 0;
3375}
3376_ACEOF
3377rm -f conftest.$ac_objext conftest$ac_exeext
3378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3379  (eval $ac_link) 2>&5
3380  ac_status=$?
3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); } &&
3383         { ac_try='test -s conftest$ac_exeext'
3384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385  (eval $ac_try) 2>&5
3386  ac_status=$?
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); }; }; then
3389  ac_cv_lib_gmp_main=yes
3390else
3391  echo "$as_me: failed program was:" >&5
3392cat conftest.$ac_ext >&5
3393ac_cv_lib_gmp_main=no
3394fi
3395rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3396LIBS=$ac_check_lib_save_LIBS
3397fi
3398echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5
3399echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6
3400if test $ac_cv_lib_gmp_main = yes; then
3401  cat >>confdefs.h <<_ACEOF
3402#define HAVE_LIBGMP 1
3403_ACEOF
3404
3405  LIBS="-lgmp $LIBS"
3406
3407fi
3408
3409
3410echo "$as_me:$LINENO: checking for mpz_init in -lsmallgmp" >&5
3411echo $ECHO_N "checking for mpz_init in -lsmallgmp... $ECHO_C" >&6
3412if test "${ac_cv_lib_smallgmp_mpz_init+set}" = set; then
3413  echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415  ac_check_lib_save_LIBS=$LIBS
3416LIBS="-lsmallgmp  $LIBS"
3417cat >conftest.$ac_ext <<_ACEOF
3418#line $LINENO "configure"
3419#include "confdefs.h"
3420
3421/* Override any gcc2 internal prototype to avoid an error.  */
3422#ifdef __cplusplus
3423extern "C"
3424#endif
3425/* We use char because int might match the return type of a gcc2
3426   builtin and then its argument prototype would still apply.  */
3427char mpz_init ();
3428#ifdef F77_DUMMY_MAIN
3429#  ifdef __cplusplus
3430     extern "C"
3431#  endif
3432   int F77_DUMMY_MAIN() { return 1; }
3433#endif
3434int
3435main ()
3436{
3437mpz_init ();
3438  ;
3439  return 0;
3440}
3441_ACEOF
3442rm -f conftest.$ac_objext conftest$ac_exeext
3443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3444  (eval $ac_link) 2>&5
3445  ac_status=$?
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); } &&
3448         { ac_try='test -s conftest$ac_exeext'
3449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450  (eval $ac_try) 2>&5
3451  ac_status=$?
3452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453  (exit $ac_status); }; }; then
3454  ac_cv_lib_smallgmp_mpz_init=yes
3455else
3456  echo "$as_me: failed program was:" >&5
3457cat conftest.$ac_ext >&5
3458ac_cv_lib_smallgmp_mpz_init=no
3459fi
3460rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3461LIBS=$ac_check_lib_save_LIBS
3462fi
3463echo "$as_me:$LINENO: result: $ac_cv_lib_smallgmp_mpz_init" >&5
3464echo "${ECHO_T}$ac_cv_lib_smallgmp_mpz_init" >&6
3465if test $ac_cv_lib_smallgmp_mpz_init = yes; then
3466  cat >>confdefs.h <<_ACEOF
3467#define HAVE_LIBSMALLGMP 1
3468_ACEOF
3469
3470  LIBS="-lsmallgmp $LIBS"
3471
3472fi
3473
3474
3475echo "$as_me:$LINENO: checking for IMP_PutGmpInt in -lMP" >&5
3476echo $ECHO_N "checking for IMP_PutGmpInt in -lMP... $ECHO_C" >&6
3477if test "${ac_cv_lib_MP_IMP_PutGmpInt+set}" = set; then
3478  echo $ECHO_N "(cached) $ECHO_C" >&6
3479else
3480  ac_check_lib_save_LIBS=$LIBS
3481LIBS="-lMP  $LIBS"
3482cat >conftest.$ac_ext <<_ACEOF
3483#line $LINENO "configure"
3484#include "confdefs.h"
3485
3486/* Override any gcc2 internal prototype to avoid an error.  */
3487#ifdef __cplusplus
3488extern "C"
3489#endif
3490/* We use char because int might match the return type of a gcc2
3491   builtin and then its argument prototype would still apply.  */
3492char IMP_PutGmpInt ();
3493#ifdef F77_DUMMY_MAIN
3494#  ifdef __cplusplus
3495     extern "C"
3496#  endif
3497   int F77_DUMMY_MAIN() { return 1; }
3498#endif
3499int
3500main ()
3501{
3502IMP_PutGmpInt ();
3503  ;
3504  return 0;
3505}
3506_ACEOF
3507rm -f conftest.$ac_objext conftest$ac_exeext
3508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3509  (eval $ac_link) 2>&5
3510  ac_status=$?
3511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512  (exit $ac_status); } &&
3513         { ac_try='test -s conftest$ac_exeext'
3514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515  (eval $ac_try) 2>&5
3516  ac_status=$?
3517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518  (exit $ac_status); }; }; then
3519  ac_cv_lib_MP_IMP_PutGmpInt=yes
3520else
3521  echo "$as_me: failed program was:" >&5
3522cat conftest.$ac_ext >&5
3523ac_cv_lib_MP_IMP_PutGmpInt=no
3524fi
3525rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3526LIBS=$ac_check_lib_save_LIBS
3527fi
3528echo "$as_me:$LINENO: result: $ac_cv_lib_MP_IMP_PutGmpInt" >&5
3529echo "${ECHO_T}$ac_cv_lib_MP_IMP_PutGmpInt" >&6
3530if test $ac_cv_lib_MP_IMP_PutGmpInt = yes; then
3531  cat >>confdefs.h <<_ACEOF
3532#define HAVE_LIBMP 1
3533_ACEOF
3534
3535  LIBS="-lMP $LIBS"
3536
3537fi
3538
3539
3540echo "$as_me:$LINENO: checking for MPT_GetTree in -lMPT" >&5
3541echo $ECHO_N "checking for MPT_GetTree in -lMPT... $ECHO_C" >&6
3542if test "${ac_cv_lib_MPT_MPT_GetTree+set}" = set; then
3543  echo $ECHO_N "(cached) $ECHO_C" >&6
3544else
3545  ac_check_lib_save_LIBS=$LIBS
3546LIBS="-lMPT  $LIBS"
3547cat >conftest.$ac_ext <<_ACEOF
3548#line $LINENO "configure"
3549#include "confdefs.h"
3550
3551/* Override any gcc2 internal prototype to avoid an error.  */
3552#ifdef __cplusplus
3553extern "C"
3554#endif
3555/* We use char because int might match the return type of a gcc2
3556   builtin and then its argument prototype would still apply.  */
3557char MPT_GetTree ();
3558#ifdef F77_DUMMY_MAIN
3559#  ifdef __cplusplus
3560     extern "C"
3561#  endif
3562   int F77_DUMMY_MAIN() { return 1; }
3563#endif
3564int
3565main ()
3566{
3567MPT_GetTree ();
3568  ;
3569  return 0;
3570}
3571_ACEOF
3572rm -f conftest.$ac_objext conftest$ac_exeext
3573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3574  (eval $ac_link) 2>&5
3575  ac_status=$?
3576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577  (exit $ac_status); } &&
3578         { ac_try='test -s conftest$ac_exeext'
3579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580  (eval $ac_try) 2>&5
3581  ac_status=$?
3582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583  (exit $ac_status); }; }; then
3584  ac_cv_lib_MPT_MPT_GetTree=yes
3585else
3586  echo "$as_me: failed program was:" >&5
3587cat conftest.$ac_ext >&5
3588ac_cv_lib_MPT_MPT_GetTree=no
3589fi
3590rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3591LIBS=$ac_check_lib_save_LIBS
3592fi
3593echo "$as_me:$LINENO: result: $ac_cv_lib_MPT_MPT_GetTree" >&5
3594echo "${ECHO_T}$ac_cv_lib_MPT_MPT_GetTree" >&6
3595if test $ac_cv_lib_MPT_MPT_GetTree = yes; then
3596  cat >>confdefs.h <<_ACEOF
3597#define HAVE_LIBMPT 1
3598_ACEOF
3599
3600  LIBS="-lMPT $LIBS"
3601
3602fi
3603
3604
3605echo "$as_me:$LINENO: checking for atof in -lsingcf" >&5
3606echo $ECHO_N "checking for atof in -lsingcf... $ECHO_C" >&6
3607if test "${ac_cv_lib_singcf_atof+set}" = set; then
3608  echo $ECHO_N "(cached) $ECHO_C" >&6
3609else
3610  ac_check_lib_save_LIBS=$LIBS
3611LIBS="-lsingcf  $LIBS"
3612cat >conftest.$ac_ext <<_ACEOF
3613#line $LINENO "configure"
3614#include "confdefs.h"
3615
3616/* Override any gcc2 internal prototype to avoid an error.  */
3617#ifdef __cplusplus
3618extern "C"
3619#endif
3620/* We use char because int might match the return type of a gcc2
3621   builtin and then its argument prototype would still apply.  */
3622char atof ();
3623#ifdef F77_DUMMY_MAIN
3624#  ifdef __cplusplus
3625     extern "C"
3626#  endif
3627   int F77_DUMMY_MAIN() { return 1; }
3628#endif
3629int
3630main ()
3631{
3632atof ();
3633  ;
3634  return 0;
3635}
3636_ACEOF
3637rm -f conftest.$ac_objext conftest$ac_exeext
3638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3639  (eval $ac_link) 2>&5
3640  ac_status=$?
3641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642  (exit $ac_status); } &&
3643         { ac_try='test -s conftest$ac_exeext'
3644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645  (eval $ac_try) 2>&5
3646  ac_status=$?
3647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648  (exit $ac_status); }; }; then
3649  ac_cv_lib_singcf_atof=yes
3650else
3651  echo "$as_me: failed program was:" >&5
3652cat conftest.$ac_ext >&5
3653ac_cv_lib_singcf_atof=no
3654fi
3655rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3656LIBS=$ac_check_lib_save_LIBS
3657fi
3658echo "$as_me:$LINENO: result: $ac_cv_lib_singcf_atof" >&5
3659echo "${ECHO_T}$ac_cv_lib_singcf_atof" >&6
3660if test $ac_cv_lib_singcf_atof = yes; then
3661  cat >>confdefs.h <<_ACEOF
3662#define HAVE_LIBSINGCF 1
3663_ACEOF
3664
3665  LIBS="-lsingcf $LIBS"
3666
3667fi
3668
3669
3670echo "$as_me:$LINENO: checking for atof in -lsingfac" >&5
3671echo $ECHO_N "checking for atof in -lsingfac... $ECHO_C" >&6
3672if test "${ac_cv_lib_singfac_atof+set}" = set; then
3673  echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
3675  ac_check_lib_save_LIBS=$LIBS
3676LIBS="-lsingfac  $LIBS"
3677cat >conftest.$ac_ext <<_ACEOF
3678#line $LINENO "configure"
3679#include "confdefs.h"
3680
3681/* Override any gcc2 internal prototype to avoid an error.  */
3682#ifdef __cplusplus
3683extern "C"
3684#endif
3685/* We use char because int might match the return type of a gcc2
3686   builtin and then its argument prototype would still apply.  */
3687char atof ();
3688#ifdef F77_DUMMY_MAIN
3689#  ifdef __cplusplus
3690     extern "C"
3691#  endif
3692   int F77_DUMMY_MAIN() { return 1; }
3693#endif
3694int
3695main ()
3696{
3697atof ();
3698  ;
3699  return 0;
3700}
3701_ACEOF
3702rm -f conftest.$ac_objext conftest$ac_exeext
3703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3704  (eval $ac_link) 2>&5
3705  ac_status=$?
3706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707  (exit $ac_status); } &&
3708         { ac_try='test -s conftest$ac_exeext'
3709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710  (eval $ac_try) 2>&5
3711  ac_status=$?
3712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713  (exit $ac_status); }; }; then
3714  ac_cv_lib_singfac_atof=yes
3715else
3716  echo "$as_me: failed program was:" >&5
3717cat conftest.$ac_ext >&5
3718ac_cv_lib_singfac_atof=no
3719fi
3720rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3721LIBS=$ac_check_lib_save_LIBS
3722fi
3723echo "$as_me:$LINENO: result: $ac_cv_lib_singfac_atof" >&5
3724echo "${ECHO_T}$ac_cv_lib_singfac_atof" >&6
3725if test $ac_cv_lib_singfac_atof = yes; then
3726  cat >>confdefs.h <<_ACEOF
3727#define HAVE_LIBSINGFAC 1
3728_ACEOF
3729
3730  LIBS="-lsingfac $LIBS"
3731
3732fi
3733
3734
3735echo "$as_me:$LINENO: checking for omTestAddr in -lomalloc" >&5
3736echo $ECHO_N "checking for omTestAddr in -lomalloc... $ECHO_C" >&6
3737if test "${ac_cv_lib_omalloc_omTestAddr+set}" = set; then
3738  echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740  ac_check_lib_save_LIBS=$LIBS
3741LIBS="-lomalloc  $LIBS"
3742cat >conftest.$ac_ext <<_ACEOF
3743#line $LINENO "configure"
3744#include "confdefs.h"
3745
3746/* Override any gcc2 internal prototype to avoid an error.  */
3747#ifdef __cplusplus
3748extern "C"
3749#endif
3750/* We use char because int might match the return type of a gcc2
3751   builtin and then its argument prototype would still apply.  */
3752char omTestAddr ();
3753#ifdef F77_DUMMY_MAIN
3754#  ifdef __cplusplus
3755     extern "C"
3756#  endif
3757   int F77_DUMMY_MAIN() { return 1; }
3758#endif
3759int
3760main ()
3761{
3762omTestAddr ();
3763  ;
3764  return 0;
3765}
3766_ACEOF
3767rm -f conftest.$ac_objext conftest$ac_exeext
3768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3769  (eval $ac_link) 2>&5
3770  ac_status=$?
3771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772  (exit $ac_status); } &&
3773         { ac_try='test -s conftest$ac_exeext'
3774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775  (eval $ac_try) 2>&5
3776  ac_status=$?
3777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778  (exit $ac_status); }; }; then
3779  ac_cv_lib_omalloc_omTestAddr=yes
3780else
3781  echo "$as_me: failed program was:" >&5
3782cat conftest.$ac_ext >&5
3783ac_cv_lib_omalloc_omTestAddr=no
3784fi
3785rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3786LIBS=$ac_check_lib_save_LIBS
3787fi
3788echo "$as_me:$LINENO: result: $ac_cv_lib_omalloc_omTestAddr" >&5
3789echo "${ECHO_T}$ac_cv_lib_omalloc_omTestAddr" >&6
3790if test $ac_cv_lib_omalloc_omTestAddr = yes; then
3791  cat >>confdefs.h <<_ACEOF
3792#define HAVE_LIBOMALLOC 1
3793_ACEOF
3794
3795  LIBS="-lomalloc $LIBS"
3796
3797fi
3798
3799
3800echo "$as_me:$LINENO: checking for main in -lomalloc_ndebug" >&5
3801echo $ECHO_N "checking for main in -lomalloc_ndebug... $ECHO_C" >&6
3802if test "${ac_cv_lib_omalloc_ndebug_main+set}" = set; then
3803  echo $ECHO_N "(cached) $ECHO_C" >&6
3804else
3805  ac_check_lib_save_LIBS=$LIBS
3806LIBS="-lomalloc_ndebug  $LIBS"
3807cat >conftest.$ac_ext <<_ACEOF
3808#line $LINENO "configure"
3809#include "confdefs.h"
3810
3811
3812#ifdef F77_DUMMY_MAIN
3813#  ifdef __cplusplus
3814     extern "C"
3815#  endif
3816   int F77_DUMMY_MAIN() { return 1; }
3817#endif
3818int
3819main ()
3820{
3821main ();
3822  ;
3823  return 0;
3824}
3825_ACEOF
3826rm -f conftest.$ac_objext conftest$ac_exeext
3827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3828  (eval $ac_link) 2>&5
3829  ac_status=$?
3830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831  (exit $ac_status); } &&
3832         { ac_try='test -s conftest$ac_exeext'
3833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834  (eval $ac_try) 2>&5
3835  ac_status=$?
3836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837  (exit $ac_status); }; }; then
3838  ac_cv_lib_omalloc_ndebug_main=yes
3839else
3840  echo "$as_me: failed program was:" >&5
3841cat conftest.$ac_ext >&5
3842ac_cv_lib_omalloc_ndebug_main=no
3843fi
3844rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3845LIBS=$ac_check_lib_save_LIBS
3846fi
3847echo "$as_me:$LINENO: result: $ac_cv_lib_omalloc_ndebug_main" >&5
3848echo "${ECHO_T}$ac_cv_lib_omalloc_ndebug_main" >&6
3849if test $ac_cv_lib_omalloc_ndebug_main = yes; then
3850  cat >>confdefs.h <<_ACEOF
3851#define HAVE_LIBOMALLOC_NDEBUG 1
3852_ACEOF
3853
3854  LIBS="-lomalloc_ndebug $LIBS"
3855
3856fi
3857
3858
3859echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3860echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3861if test "${ac_cv_header_stdc+set}" = set; then
3862  echo $ECHO_N "(cached) $ECHO_C" >&6
3863else
3864  cat >conftest.$ac_ext <<_ACEOF
3865#line $LINENO "configure"
3866#include "confdefs.h"
3867#include <stdlib.h>
3868#include <stdarg.h>
3869#include <string.h>
3870#include <float.h>
3871
3872_ACEOF
3873if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3874  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3875  ac_status=$?
3876  egrep -v '^ *\+' conftest.er1 >conftest.err
3877  rm -f conftest.er1
3878  cat conftest.err >&5
3879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880  (exit $ac_status); } >/dev/null; then
3881  if test -s conftest.err; then
3882    ac_cpp_err=$ac_c_preproc_warn_flag
3883  else
3884    ac_cpp_err=
3885  fi
3886else
3887  ac_cpp_err=yes
3888fi
3889if test -z "$ac_cpp_err"; then
3890  ac_cv_header_stdc=yes
3891else
3892  echo "$as_me: failed program was:" >&5
3893  cat conftest.$ac_ext >&5
3894  ac_cv_header_stdc=no
3895fi
3896rm -f conftest.err conftest.$ac_ext
3897
3898if test $ac_cv_header_stdc = yes; then
3899  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3900  cat >conftest.$ac_ext <<_ACEOF
3901#line $LINENO "configure"
3902#include "confdefs.h"
3903#include <string.h>
3904
3905_ACEOF
3906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3907  egrep "memchr" >/dev/null 2>&1; then
3908  :
3909else
3910  ac_cv_header_stdc=no
3911fi
3912rm -f conftest*
3913
3914fi
3915
3916if test $ac_cv_header_stdc = yes; then
3917  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3918  cat >conftest.$ac_ext <<_ACEOF
3919#line $LINENO "configure"
3920#include "confdefs.h"
3921#include <stdlib.h>
3922
3923_ACEOF
3924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3925  egrep "free" >/dev/null 2>&1; then
3926  :
3927else
3928  ac_cv_header_stdc=no
3929fi
3930rm -f conftest*
3931
3932fi
3933
3934if test $ac_cv_header_stdc = yes; then
3935  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3936  if test "$cross_compiling" = yes; then
3937  :
3938else
3939  cat >conftest.$ac_ext <<_ACEOF
3940#line $LINENO "configure"
3941#include "confdefs.h"
3942#include <ctype.h>
3943#if ((' ' & 0x0FF) == 0x020)
3944# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3945# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3946#else
3947# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3948                     || ('j' <= (c) && (c) <= 'r') \
3949                     || ('s' <= (c) && (c) <= 'z'))
3950# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3951#endif
3952
3953#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3954int
3955main ()
3956{
3957  int i;
3958  for (i = 0; i < 256; i++)
3959    if (XOR (islower (i), ISLOWER (i))
3960        || toupper (i) != TOUPPER (i))
3961      exit(2);
3962  exit (0);
3963}
3964_ACEOF
3965rm -f conftest$ac_exeext
3966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3967  (eval $ac_link) 2>&5
3968  ac_status=$?
3969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972  (eval $ac_try) 2>&5
3973  ac_status=$?
3974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975  (exit $ac_status); }; }; then
3976  :
3977else
3978  echo "$as_me: program exited with status $ac_status" >&5
3979echo "$as_me: failed program was:" >&5
3980cat conftest.$ac_ext >&5
3981( exit $ac_status )
3982ac_cv_header_stdc=no
3983fi
3984rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3985fi
3986fi
3987fi
3988echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3989echo "${ECHO_T}$ac_cv_header_stdc" >&6
3990if test $ac_cv_header_stdc = yes; then
3991
3992cat >>confdefs.h <<\_ACEOF
3993#define STDC_HEADERS 1
3994_ACEOF
3995
3996fi
3997
3998# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4009                  inttypes.h stdint.h unistd.h
4010do
4011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4012echo "$as_me:$LINENO: checking for $ac_header" >&5
4013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4014if eval "test \"\${$as_ac_Header+set}\" = set"; then
4015  echo $ECHO_N "(cached) $ECHO_C" >&6
4016else
4017  cat >conftest.$ac_ext <<_ACEOF
4018#line $LINENO "configure"
4019#include "confdefs.h"
4020$ac_includes_default
4021
4022#include <$ac_header>
4023_ACEOF
4024rm -f conftest.$ac_objext
4025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4026  (eval $ac_compile) 2>&5
4027  ac_status=$?
4028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029  (exit $ac_status); } &&
4030         { ac_try='test -s conftest.$ac_objext'
4031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032  (eval $ac_try) 2>&5
4033  ac_status=$?
4034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035  (exit $ac_status); }; }; then
4036  eval "$as_ac_Header=yes"
4037else
4038  echo "$as_me: failed program was:" >&5
4039cat conftest.$ac_ext >&5
4040eval "$as_ac_Header=no"
4041fi
4042rm -f conftest.$ac_objext conftest.$ac_ext
4043fi
4044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4046if test `eval echo '${'$as_ac_Header'}'` = yes; then
4047  cat >>confdefs.h <<_ACEOF
4048#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4049_ACEOF
4050
4051fi
4052
4053done
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063for ac_header in gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h omalloc.h
4064do
4065as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4066if eval "test \"\${$as_ac_Header+set}\" = set"; then
4067  echo "$as_me:$LINENO: checking for $ac_header" >&5
4068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4069if eval "test \"\${$as_ac_Header+set}\" = set"; then
4070  echo $ECHO_N "(cached) $ECHO_C" >&6
4071fi
4072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4074else
4075  # Is the header compilable?
4076echo "$as_me:$LINENO: checking $ac_header usability" >&5
4077echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4078cat >conftest.$ac_ext <<_ACEOF
4079#line $LINENO "configure"
4080#include "confdefs.h"
4081$ac_includes_default
4082#include <$ac_header>
4083_ACEOF
4084rm -f conftest.$ac_objext
4085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4086  (eval $ac_compile) 2>&5
4087  ac_status=$?
4088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089  (exit $ac_status); } &&
4090         { ac_try='test -s conftest.$ac_objext'
4091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092  (eval $ac_try) 2>&5
4093  ac_status=$?
4094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095  (exit $ac_status); }; }; then
4096  ac_header_compiler=yes
4097else
4098  echo "$as_me: failed program was:" >&5
4099cat conftest.$ac_ext >&5
4100ac_header_compiler=no
4101fi
4102rm -f conftest.$ac_objext conftest.$ac_ext
4103echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4104echo "${ECHO_T}$ac_header_compiler" >&6
4105
4106# Is the header present?
4107echo "$as_me:$LINENO: checking $ac_header presence" >&5
4108echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4109cat >conftest.$ac_ext <<_ACEOF
4110#line $LINENO "configure"
4111#include "confdefs.h"
4112#include <$ac_header>
4113_ACEOF
4114if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4115  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4116  ac_status=$?
4117  egrep -v '^ *\+' conftest.er1 >conftest.err
4118  rm -f conftest.er1
4119  cat conftest.err >&5
4120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121  (exit $ac_status); } >/dev/null; then
4122  if test -s conftest.err; then
4123    ac_cpp_err=$ac_c_preproc_warn_flag
4124  else
4125    ac_cpp_err=
4126  fi
4127else
4128  ac_cpp_err=yes
4129fi
4130if test -z "$ac_cpp_err"; then
4131  ac_header_preproc=yes
4132else
4133  echo "$as_me: failed program was:" >&5
4134  cat conftest.$ac_ext >&5
4135  ac_header_preproc=no
4136fi
4137rm -f conftest.err conftest.$ac_ext
4138echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4139echo "${ECHO_T}$ac_header_preproc" >&6
4140
4141# So?  What about this header?
4142case $ac_header_compiler:$ac_header_preproc in
4143  yes:no )
4144    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4145echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4146    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4147echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4148  no:yes )
4149    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4151    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4152echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4153    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4154echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4155esac
4156echo "$as_me:$LINENO: checking for $ac_header" >&5
4157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4158if eval "test \"\${$as_ac_Header+set}\" = set"; then
4159  echo $ECHO_N "(cached) $ECHO_C" >&6
4160else
4161  eval "$as_ac_Header=$ac_header_preproc"
4162fi
4163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4164echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4165
4166fi
4167if test `eval echo '${'$as_ac_Header'}'` = yes; then
4168  cat >>confdefs.h <<_ACEOF
4169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4170_ACEOF
4171
4172fi
4173
4174done
4175
4176
4177if test "$ac_cv_lib_gmp_main" = yes && \
4178 test "$ac_cv_header_gmp_h" = yes; then
4179  ac_gmp_ok=yes
4180fi
4181
4182if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \
4183 test "$ac_cv_header_smallgmp_h" = yes && \
4184 test "$ac_cv_header_gmp_h" = yes; then
4185  ac_smallgmp_ok=yes
4186fi
4187
4188if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \
4189 test "$ac_cv_lib_MPT_MPT_GetTree" && \
4190 test "$ac_cv_header_MP_h" = yes && \
4191 test "$ac_cv_header_MPT_h" = yes; then
4192  ac_MP_ok=yes
4193fi
4194
4195if test "$ac_cv_lib_singcf_atof" = yes && \
4196 test "$ac_cv_header_factory_h" = yes; then
4197  ac_factory_ok=yes
4198fi
4199
4200if test "$ac_cv_lib_singfac_atof" = yes && \
4201 test "$ac_cv_header_factor_h" = yes; then
4202  ac_libfac_ok=yes
4203fi
4204
4205if test "$ac_cv_lib_omalloc_omTestAddr" = yes && \
4206   test "$ac_cv_lib_omalloc_ndebug_main" = yes && \
4207   test "$ac_cv_header_omalloc_c" = yes && \
4208   test "$ac_cv_header_omalloc_h" = yes; then
4209  ac_cv_omalloc_ok=yes
4210fi
4211
4212
4213# Check whether --with-tmpdir or --without-tmpdir was given.
4214if test "${with_tmpdir+set}" = set; then
4215  withval="$with_tmpdir"
4216
4217fi;
4218# Check whether --enable-smallgmp or --disable-smallgmp was given.
4219if test "${enable_smallgmp+set}" = set; then
4220  enableval="$enable_smallgmp"
4221
4222fi;
4223# Check whether --enable-omalloc or --disable-omalloc was given.
4224if test "${enable_omalloc+set}" = set; then
4225  enableval="$enable_omalloc"
4226
4227fi;
4228# Check whether --enable-gmp or --disable-gmp was given.
4229if test "${enable_gmp+set}" = set; then
4230  enableval="$enable_gmp"
4231
4232fi;
4233# Check whether --enable-MP or --disable-MP was given.
4234if test "${enable_MP+set}" = set; then
4235  enableval="$enable_MP"
4236
4237fi;
4238# Check whether --enable-factory or --disable-factory was given.
4239if test "${enable_factory+set}" = set; then
4240  enableval="$enable_factory"
4241
4242fi;
4243# Check whether --enable-libfac or --disable-libfac was given.
4244if test "${enable_libfac+set}" = set; then
4245  enableval="$enable_libfac"
4246
4247fi;
4248# Check whether --enable-sgroup or --disable-sgroup was given.
4249if test "${enable_sgroup+set}" = set; then
4250  enableval="$enable_sgroup"
4251
4252fi;
4253# Check whether --enable-Singular or --disable-Singular was given.
4254if test "${enable_Singular+set}" = set; then
4255  enableval="$enable_Singular"
4256
4257fi;
4258# Check whether --enable-IntegerProgramming or --disable-IntegerProgramming was given.
4259if test "${enable_IntegerProgramming+set}" = set; then
4260  enableval="$enable_IntegerProgramming"
4261
4262fi;
4263# Check whether --enable-Plural or --disable-Plural was given.
4264if test "${enable_Plural+set}" = set; then
4265  enableval="$enable_Plural"
4266
4267fi;
4268# Check whether --enable-Texinfo or --disable-Texinfo was given.
4269if test "${enable_Texinfo+set}" = set; then
4270  enableval="$enable_Texinfo"
4271
4272fi;
4273# Check whether --enable-Texi2html or --disable-Texi2html was given.
4274if test "${enable_Texi2html+set}" = set; then
4275  enableval="$enable_Texi2html"
4276
4277fi;
4278# Check whether --enable-doc or --disable-doc was given.
4279if test "${enable_doc+set}" = set; then
4280  enableval="$enable_doc"
4281
4282fi;
4283# Check whether --enable-emacs or --disable-emacs was given.
4284if test "${enable_emacs+set}" = set; then
4285  enableval="$enable_emacs"
4286
4287fi;
4288
4289# Check whether --with-MP or --without-MP was given.
4290if test "${with_MP+set}" = set; then
4291  withval="$with_MP"
4292
4293fi;
4294
4295# Check whether --with-factory or --without-factory was given.
4296if test "${with_factory+set}" = set; then
4297  withval="$with_factory"
4298
4299fi;
4300
4301# Check whether --with-libfac or --without-libfac was given.
4302if test "${with_libfac+set}" = set; then
4303  withval="$with_libfac"
4304
4305fi;
4306
4307# Check whether --with-gmp or --without-gmp was given.
4308if test "${with_gmp+set}" = set; then
4309  withval="$with_gmp"
4310
4311fi;
4312
4313echo "$as_me:$LINENO: checking which tmp dir to use" >&5
4314echo $ECHO_N "checking which tmp dir to use... $ECHO_C" >&6
4315if test "${with_tmpdir+set}" = set && test -d ${with_tmpdir}; then
4316  if (echo "${with_tmpdir}" | egrep "\." >/dev/null 2>&1)
4317  then
4318    TMP_DIR="${pwd}/tmp"
4319  else
4320    TMP_DIR=${with_tmpdir}
4321  fi
4322else
4323  TMP_DIR="${pwd}/tmp"
4324fi
4325echo "$as_me:$LINENO: result: $TMP_DIR" >&5
4326echo "${ECHO_T}$TMP_DIR" >&6
4327
4328
4329echo "$as_me:$LINENO: checking whether to configure and build omalloc" >&5
4330echo $ECHO_N "checking whether to configure and build omalloc... $ECHO_C" >&6
4331if test "${enable_omalloc+set}" != set; then
4332   if test "$ac_cv_omalloc_ok" = yes; then
4333     enable_omalloc=no
4334   fi
4335   enable_omalloc_not_set=yes
4336fi
4337if test "$enable_omalloc" = no; then
4338  if test "$ac_cv_omalloc_ok" != yes; then
4339    { { echo "$as_me:$LINENO: error: can not build without omalloc" >&5
4340echo "$as_me: error: can not build without omalloc" >&2;}
4341   { (exit 1); exit 1; }; }
4342  fi
4343  echo "$as_me:$LINENO: result: no" >&5
4344echo "${ECHO_T}no" >&6
4345else
4346  if test -d omalloc; then
4347    echo "$as_me:$LINENO: result: yes" >&5
4348echo "${ECHO_T}yes" >&6
4349    if test "$enable_omalloc_not_set" = yes; then
4350      ac_configure_args="$ac_configure_args --enable-omalloc --with-external-config_h='$pwd/Singular/omSingularConfig.h' --with-track-custom"
4351    fi
4352    CONFIG_SUBDIRS="$CONFIG_SUBDIRS omalloc"
4353    if test "${with_malloc+set}" != set; then
4354case "$ac_cv_singuname" in
4355# under windows, it is best to use the provided malloc
4356        ix86-Win*)
4357        with_malloc=system
4358        ac_configure_args="$ac_configure_args --with-malloc=system"
4359        ;;
4360        PowerMacintosh-darwin*)
4361        with_malloc=system
4362        ac_configure_args="$ac_configure_args --with-malloc=system"
4363        ;;
4364esac
4365fi
4366  else
4367    { { echo "$as_me:$LINENO: error: need omalloc subdir" >&5
4368echo "$as_me: error: need omalloc subdir" >&2;}
4369   { (exit 1); exit 1; }; }
4370  fi
4371fi
4372
4373echo "$as_me:$LINENO: checking whether to configure and build gmp lib" >&5
4374echo $ECHO_N "checking whether to configure and build gmp lib... $ECHO_C" >&6
4375if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
4376  if test "$ac_gmp_ok" != yes && test -d gmp; then
4377    echo "$as_me:$LINENO: result: yes" >&5
4378echo "${ECHO_T}yes" >&6
4379    enable_gmp=yes
4380    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
4381    ac_configure_args="$ac_configure_args --enable-gmp"
4382    enable_gmp=yes
4383#    This we used to need for our patched version of gmp 2.x
4384#    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
4385  else
4386    echo "$as_me:$LINENO: result: no" >&5
4387echo "${ECHO_T}no" >&6
4388    enable_gmp=no
4389  fi
4390elif test "$enable_gmp" = yes; then
4391  if test ! -d gmp; then
4392    echo "$as_me:$LINENO: result: no" >&5
4393echo "${ECHO_T}no" >&6
4394    { { echo "$as_me:$LINENO: error: Can not find gmp subdir" >&5
4395echo "$as_me: error: Can not find gmp subdir" >&2;}
4396   { (exit 1); exit 1; }; }
4397  else
4398    echo "$as_me:$LINENO: result: yes" >&5
4399echo "${ECHO_T}yes" >&6
4400    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
4401#    This we used to need for our patched version of gmp 2.x
4402#    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
4403  fi
4404else
4405  echo "$as_me:$LINENO: result: no" >&5
4406echo "${ECHO_T}no" >&6
4407fi
4408
4409if test "$enable_gmp" = yes; then
4410# for gmp-3.0 to work for all ix86 processors, set generic target
4411if test "$target" = NONE; then
4412case "$ac_cv_singuname" in
4413        ix86*)
4414        gmp_target=`./config.guess | sed 's/^\w*-/i386-/'`
4415        ac_configure_args="$ac_configure_args --target=$gmp_target"
4416        ;;
4417esac
4418fi
4419# furthermore, disable building of dynamic libraries, for we want to
4420# link against the static ones
4421if test "$enable_shared" != no; then
4422  ac_configure_args="$ac_configure_args --disable-shared"
4423fi
4424fi
4425
4426echo "$as_me:$LINENO: checking whether to configure and build smallgmp lib" >&5
4427echo $ECHO_N "checking whether to configure and build smallgmp lib... $ECHO_C" >&6
4428if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
4429  if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
4430     test "$enable_gmp" != yes && test -d smallgmp; then
4431    echo "$as_me:$LINENO: result: yes" >&5
4432echo "${ECHO_T}yes" >&6
4433    enable_smallgmp=yes
4434    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
4435    ac_configure_args="$ac_configure_args --enable-smallgmp --enable-gmp"
4436    enable_gmp=yes
4437  else
4438    echo "$as_me:$LINENO: result: no" >&5
4439echo "${ECHO_T}no" >&6
4440    enable_smallgmp=no
4441  fi
4442elif test "$enable_smallgmp" = yes; then
4443  if test ! -d smallgmp; then
4444    echo "$as_me:$LINENO: result: no" >&5
4445echo "${ECHO_T}no" >&6
4446    { { echo "$as_me:$LINENO: error: Can not find smallgmp subdir" >&5
4447echo "$as_me: error: Can not find smallgmp subdir" >&2;}
4448   { (exit 1); exit 1; }; }
4449  else
4450    echo "$as_me:$LINENO: result: yes" >&5
4451echo "${ECHO_T}yes" >&6
4452    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
4453    if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
4454      ac_configure_args="$ac_configure_args --enable-gmp"
4455      enable_gmp=yes
4456    fi
4457  fi
4458else
4459  echo "$as_me:$LINENO: result: ${enable_smallgmp}" >&5
4460echo "${ECHO_T}${enable_smallgmp}" >&6
4461fi
4462
4463# Check whether we have at least one of smallgmp or gmp
4464if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
4465   test "$enable_smallgmp" != yes && test "$enable_gmp" != yes; then
4466  { { echo "$as_me:$LINENO: error: can neither find nor built gmp or smallgmp" >&5
4467echo "$as_me: error: can neither find nor built gmp or smallgmp" >&2;}
4468   { (exit 1); exit 1; }; }
4469fi
4470
4471# Check whether we need to cheat subsequent configures with --enable-gmp
4472if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
4473  ac_configure_args="$ac_configure_args --enable-gmp"
4474fi
4475
4476echo "$as_me:$LINENO: checking whether to configure and build MP lib" >&5
4477echo $ECHO_N "checking whether to configure and build MP lib... $ECHO_C" >&6
4478if test "$enable_MP" != yes && test "$enable_MP" != no; then
4479  if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
4480     (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then
4481    echo "$as_me:$LINENO: result: yes" >&5
4482echo "${ECHO_T}yes" >&6
4483    enable_MP=yes
4484    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
4485    ac_configure_args="$ac_configure_args --enable-MP"
4486  else
4487    echo "$as_me:$LINENO: result: no" >&5
4488echo "${ECHO_T}no" >&6
4489    enable_MP=no
4490  fi
4491elif test "$enable_MP" = yes; then
4492  if test ! -d MP; then
4493    echo "$as_me:$LINENO: result: no" >&5
4494echo "${ECHO_T}no" >&6
4495    { { echo "$as_me:$LINENO: error: can not build MP without MP directory" >&5
4496echo "$as_me: error: can not build MP without MP directory" >&2;}
4497   { (exit 1); exit 1; }; }
4498  fi
4499  if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then
4500    echo "$as_me:$LINENO: result: yes" >&5
4501echo "${ECHO_T}yes" >&6
4502    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
4503  else
4504    echo "$as_me:$LINENO: result: no" >&5
4505echo "${ECHO_T}no" >&6
4506    { { echo "$as_me:$LINENO: error: can not build MP without gmp" >&5
4507echo "$as_me: error: can not build MP without gmp" >&2;}
4508   { (exit 1); exit 1; }; }
4509  fi
4510else
4511  echo "$as_me:$LINENO: result: no" >&5
4512echo "${ECHO_T}no" >&6
4513fi
4514
4515# need MP code to be compiled with -fPIC, should not hurt anybody else
4516if test "$enable_MP" = yes && test "${with_extra_cflags+set}" != set; then
4517ac_configure_args="$ac_configure_args --with-extra_cflags=-fPIC"
4518fi
4519
4520echo "$as_me:$LINENO: checking whether to configure and build NTL lib" >&5
4521echo $ECHO_N "checking whether to configure and build NTL lib... $ECHO_C" >&6
4522if test "$enable_NTL" != yes && test "$enable_NTL" != no; then
4523  if test "$with_NTL" != no && test "$ac_NTL_ok" != yes && \
4524     test -d ntl; then
4525    enable_NTL=yes
4526    echo "$as_me:$LINENO: result: yes" >&5
4527echo "${ECHO_T}yes" >&6
4528    CONFIG_SUBDIRS="$CONFIG_SUBDIRS ntl"
4529    ac_configure_args="$ac_configure_args --enable-NTL"
4530  else
4531    enable_NTL=no
4532    echo "$as_me:$LINENO: result: no" >&5
4533echo "${ECHO_T}no" >&6
4534  fi
4535elif test "$enable_NTL" = yes; then
4536  if test -d ntl; then
4537    echo "$as_me:$LINENO: result: yes" >&5
4538echo "${ECHO_T}yes" >&6
4539    CONFIG_SUBDIRS="$CONFIG_SUBDIRS ntl"
4540  else
4541    echo "$as_me:$LINENO: result: no" >&5
4542echo "${ECHO_T}no" >&6
4543    { { echo "$as_me:$LINENO: error: can not build NTL without ntl directory" >&5
4544echo "$as_me: error: can not build NTL without ntl directory" >&2;}
4545   { (exit 1); exit 1; }; }
4546  fi
4547else
4548  echo "$as_me:$LINENO: result: no" >&5
4549echo "${ECHO_T}no" >&6
4550fi
4551
4552echo "$as_me:$LINENO: checking whether to configure and build factory lib" >&5
4553echo $ECHO_N "checking whether to configure and build factory lib... $ECHO_C" >&6
4554if test "$enable_factory" != yes && test "$enable_factory" != no; then
4555  if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
4556     test -d factory; then
4557    enable_factory=yes
4558    echo "$as_me:$LINENO: result: yes" >&5
4559echo "${ECHO_T}yes" >&6
4560    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
4561    ac_configure_args="$ac_configure_args --enable-factory"
4562  else
4563    enable_factory=no
4564    echo "$as_me:$LINENO: result: no" >&5
4565echo "${ECHO_T}no" >&6
4566  fi
4567elif test "$enable_factory" = yes; then
4568  if test -d factory; then
4569    echo "$as_me:$LINENO: result: yes" >&5
4570echo "${ECHO_T}yes" >&6
4571    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
4572  else
4573    echo "$as_me:$LINENO: result: no" >&5
4574echo "${ECHO_T}no" >&6
4575    { { echo "$as_me:$LINENO: error: can not build factory without factory directory" >&5
4576echo "$as_me: error: can not build factory without factory directory" >&2;}
4577   { (exit 1); exit 1; }; }
4578  fi
4579else
4580  echo "$as_me:$LINENO: result: no" >&5
4581echo "${ECHO_T}no" >&6
4582fi
4583
4584echo "$as_me:$LINENO: checking whether to configure and build libfac lib" >&5
4585echo $ECHO_N "checking whether to configure and build libfac lib... $ECHO_C" >&6
4586if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
4587  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
4588     test -d libfac && \
4589     (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then
4590    enable_libfac=yes
4591    echo "$as_me:$LINENO: result: yes" >&5
4592echo "${ECHO_T}yes" >&6
4593    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
4594    ac_configure_args="$ac_configure_args --enable-libfac"
4595  else
4596    enable_libfac=no
4597    echo "$as_me:$LINENO: result: no" >&5
4598echo "${ECHO_T}no" >&6
4599  fi
4600elif  test "$enable_libfac" = yes; then
4601  if test ! -d libfac; then
4602    echo "$as_me:$LINENO: result: no" >&5
4603echo "${ECHO_T}no" >&6
4604    { { echo "$as_me:$LINENO: error: can not build libfac without libfac directory" >&5
4605echo "$as_me: error: can not build libfac without libfac directory" >&2;}
4606   { (exit 1); exit 1; }; }
4607  fi
4608  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
4609    echo "$as_me:$LINENO: result: yes" >&5
4610echo "${ECHO_T}yes" >&6
4611    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
4612  else
4613    echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615    { { echo "$as_me:$LINENO: error: Can not build libfac without factory" >&5
4616echo "$as_me: error: Can not build libfac without factory" >&2;}
4617   { (exit 1); exit 1; }; }
4618  fi
4619else
4620  echo "$as_me:$LINENO: result: no" >&5
4621echo "${ECHO_T}no" >&6
4622fi
4623
4624echo "$as_me:$LINENO: checking whether to configure and build sgroup lib" >&5
4625echo $ECHO_N "checking whether to configure and build sgroup lib... $ECHO_C" >&6
4626if test "$enable_sgroup" = yes; then
4627  if test ! -d sgroup; then
4628    echo "$as_me:$LINENO: result: no" >&5
4629echo "${ECHO_T}no" >&6
4630    { { echo "$as_me:$LINENO: error: can not build sgroup without sgroup directory" >&5
4631echo "$as_me: error: can not build sgroup without sgroup directory" >&2;}
4632   { (exit 1); exit 1; }; }
4633  fi
4634  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
4635    echo "$as_me:$LINENO: result: yes" >&5
4636echo "${ECHO_T}yes" >&6
4637    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
4638  else
4639    echo "$as_me:$LINENO: result: no" >&5
4640echo "${ECHO_T}no" >&6
4641    { { echo "$as_me:$LINENO: error: Can not build sgroup without MP" >&5
4642echo "$as_me: error: Can not build sgroup without MP" >&2;}
4643   { (exit 1); exit 1; }; }
4644  fi
4645else
4646  echo "$as_me:$LINENO: result: no" >&5
4647echo "${ECHO_T}no" >&6
4648fi
4649
4650BUILD_SUBDIRS="$CONFIG_SUBDIRS"
4651
4652echo "$as_me:$LINENO: checking whether to configure and build Singular" >&5
4653echo $ECHO_N "checking whether to configure and build Singular... $ECHO_C" >&6
4654if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
4655  if test "$with_Singular" != no && test -d Singular; then
4656    enable_Singular=yes
4657    echo "$as_me:$LINENO: result: yes" >&5
4658echo "${ECHO_T}yes" >&6
4659    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
4660    BUILD_SUBDIRS="$BUILD_SUBDIRS Singular"
4661    ac_configure_args="$ac_configure_args --enable-Singular"
4662  else
4663    enable_Singular=no
4664    echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6
4666  fi
4667elif test "$enable_Singular" = yes; then
4668  if test -d Singular; then
4669    echo "$as_me:$LINENO: result: yes" >&5
4670echo "${ECHO_T}yes" >&6
4671    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
4672    BUILD_SUBDIRS="$BUILD_SUBDIRS Singular"
4673  else
4674    echo "$as_me:$LINENO: result: no" >&5
4675echo "${ECHO_T}no" >&6
4676    { { echo "$as_me:$LINENO: error: can not build Singular without Singular directory" >&5
4677echo "$as_me: error: can not build Singular without Singular directory" >&2;}
4678   { (exit 1); exit 1; }; }
4679  fi
4680else
4681  echo "$as_me:$LINENO: result: no" >&5
4682echo "${ECHO_T}no" >&6
4683fi
4684
4685
4686# test if IntegerProgramming should be built:
4687
4688echo "$as_me:$LINENO: checking whether to build IntegerProgramming" >&5
4689echo $ECHO_N "checking whether to build IntegerProgramming... $ECHO_C" >&6
4690if test "$enable_IntegerProgramming" != no && test -d "IntegerProgramming"; then
4691   BUILD_SUBDIRS="$BUILD_SUBDIRS IntegerProgramming"
4692   echo "$as_me:$LINENO: result: yes" >&5
4693echo "${ECHO_T}yes" >&6
4694   if test "$enable_IntegerProgramming" != yes; then
4695     ac_configure_args="$ac_configure_args --enable-IntegerProgramming"
4696   fi
4697else
4698   echo "$as_me:$LINENO: result: no" >&5
4699echo "${ECHO_T}no" >&6
4700fi
4701
4702echo "$as_me:$LINENO: checking whether to build Plural" >&5
4703echo $ECHO_N "checking whether to build Plural... $ECHO_C" >&6
4704if test "$enable_Plural" != no || test "$with_Plural" != no; then
4705   echo "$as_me:$LINENO: result: yes" >&5
4706echo "${ECHO_T}yes" >&6
4707   if test "$enable_Plural" != yes; then
4708     ac_configure_args="$ac_configure_args --enable-Plural"
4709   fi
4710else
4711   echo "$as_me:$LINENO: result: no" >&5
4712echo "${ECHO_T}no" >&6
4713fi
4714
4715
4716echo "$as_me:$LINENO: checking whether to configure and build Texinfo" >&5
4717echo $ECHO_N "checking whether to configure and build Texinfo... $ECHO_C" >&6
4718if test "$enable_Texinfo" != no && test -d Texinfo; then
4719  echo "$as_me:$LINENO: result: yes" >&5
4720echo "${ECHO_T}yes" >&6
4721  enable_texinfo=yes
4722  CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texinfo"
4723  BUILD_SUBDIRS="$BUILD_SUBDIRS Texinfo"
4724  TEXI2DVI=${bindir}/texi2dvi
4725  MAKEINFO="${bindir}/makeinfo"
4726  TEXINDEX=${bindir}/texindex
4727
4728
4729
4730  if test "$enable_Texinfo" != yes; then
4731    ac_configure_args="$ac_configure_args --enable-Texinfo"
4732  fi
4733else
4734  echo "$as_me:$LINENO: result: no" >&5
4735echo "${ECHO_T}no" >&6
4736  { echo "$as_me:$LINENO: WARNING: Building of doc might fail. Need Texinfo" >&5
4737echo "$as_me: WARNING: Building of doc might fail. Need Texinfo" >&2;}
4738  enable_texinfo=no
4739  # Extract the first word of "makeinfo", so it can be a program name with args.
4740set dummy makeinfo; ac_word=$2
4741echo "$as_me:$LINENO: checking for $ac_word" >&5
4742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4744  echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746  if test -n "$MAKEINFO"; then
4747  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4748else
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752  IFS=$as_save_IFS
4753  test -z "$as_dir" && as_dir=.
4754  for ac_exec_ext in '' $ac_executable_extensions; do
4755  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756    ac_cv_prog_MAKEINFO="makeinfo"
4757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758    break 2
4759  fi
4760done
4761done
4762
4763  test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="${pwd}/warn_not_found.sh makeinfo"
4764fi
4765fi
4766MAKEINFO=$ac_cv_prog_MAKEINFO
4767if test -n "$MAKEINFO"; then
4768  echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4769echo "${ECHO_T}$MAKEINFO" >&6
4770else
4771  echo "$as_me:$LINENO: result: no" >&5
4772echo "${ECHO_T}no" >&6
4773fi
4774
4775  # Extract the first word of "texi2dvi", so it can be a program name with args.
4776set dummy texi2dvi; ac_word=$2
4777echo "$as_me:$LINENO: checking for $ac_word" >&5
4778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4779if test "${ac_cv_prog_TEXI2DVI+set}" = set; then
4780  echo $ECHO_N "(cached) $ECHO_C" >&6
4781else
4782  if test -n "$TEXI2DVI"; then
4783  ac_cv_prog_TEXI2DVI="$TEXI2DVI" # Let the user override the test.
4784else
4785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786for as_dir in $PATH
4787do
4788  IFS=$as_save_IFS
4789  test -z "$as_dir" && as_dir=.
4790  for ac_exec_ext in '' $ac_executable_extensions; do
4791  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4792    ac_cv_prog_TEXI2DVI="texi2dvi"
4793    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794    break 2
4795  fi
4796done
4797done
4798
4799  test -z "$ac_cv_prog_TEXI2DVI" && ac_cv_prog_TEXI2DVI="${pwd}/warn_not_found.sh texi2dvi"
4800fi
4801fi
4802TEXI2DVI=$ac_cv_prog_TEXI2DVI
4803if test -n "$TEXI2DVI"; then
4804  echo "$as_me:$LINENO: result: $TEXI2DVI" >&5
4805echo "${ECHO_T}$TEXI2DVI" >&6
4806else
4807  echo "$as_me:$LINENO: result: no" >&5
4808echo "${ECHO_T}no" >&6
4809fi
4810
4811  # Extract the first word of "texindex", so it can be a program name with args.
4812set dummy texindex; ac_word=$2
4813echo "$as_me:$LINENO: checking for $ac_word" >&5
4814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4815if test "${ac_cv_prog_TEXINDEX+set}" = set; then
4816  echo $ECHO_N "(cached) $ECHO_C" >&6
4817else
4818  if test -n "$TEXINDEX"; then
4819  ac_cv_prog_TEXINDEX="$TEXINDEX" # Let the user override the test.
4820else
4821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824  IFS=$as_save_IFS
4825  test -z "$as_dir" && as_dir=.
4826  for ac_exec_ext in '' $ac_executable_extensions; do
4827  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828    ac_cv_prog_TEXINDEX="texindex"
4829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830    break 2
4831  fi
4832done
4833done
4834
4835  test -z "$ac_cv_prog_TEXINDEX" && ac_cv_prog_TEXINDEX="${pwd}/warn_not_found.sh texindex"
4836fi
4837fi
4838TEXINDEX=$ac_cv_prog_TEXINDEX
4839if test -n "$TEXINDEX"; then
4840  echo "$as_me:$LINENO: result: $TEXINDEX" >&5
4841echo "${ECHO_T}$TEXINDEX" >&6
4842else
4843  echo "$as_me:$LINENO: result: no" >&5
4844echo "${ECHO_T}no" >&6
4845fi
4846
4847fi
4848
4849echo "$as_me:$LINENO: checking whether to configure and build Texi2html" >&5
4850echo $ECHO_N "checking whether to configure and build Texi2html... $ECHO_C" >&6
4851if test "$enable_Texi2html" != no && test -d Texi2html; then
4852 echo "$as_me:$LINENO: result: yes" >&5
4853echo "${ECHO_T}yes" >&6
4854 CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texi2html"
4855 BUILD_SUBDIRS="$BUILD_SUBDIRS Texi2html"
4856 if test "$enable_Texi2html" != yes; then
4857   ac_configure_args="$ac_configure_args --enable-Texi2html"
4858 fi
4859 TEXI2HTML=${bindir}/texi2html
4860
4861else
4862 echo "$as_me:$LINENO: result: no" >&5
4863echo "${ECHO_T}no" >&6
4864 # Extract the first word of "texi2html", so it can be a program name with args.
4865set dummy texi2html; ac_word=$2
4866echo "$as_me:$LINENO: checking for $ac_word" >&5
4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
4869  echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871  if test -n "$TEXI2HTML"; then
4872  ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877  IFS=$as_save_IFS
4878  test -z "$as_dir" && as_dir=.
4879  for ac_exec_ext in '' $ac_executable_extensions; do
4880  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4881    ac_cv_prog_TEXI2HTML="texi2html"
4882    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883    break 2
4884  fi
4885done
4886done
4887
4888fi
4889fi
4890TEXI2HTML=$ac_cv_prog_TEXI2HTML
4891if test -n "$TEXI2HTML"; then
4892  echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
4893echo "${ECHO_T}$TEXI2HTML" >&6
4894else
4895  echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6
4897fi
4898
4899fi
4900
4901if test "${TEXI2HTML+set}" != set; then
4902{ echo "$as_me:$LINENO: WARNING: texi2html not found. HTML doc generation will fail" >&5
4903echo "$as_me: WARNING: texi2html not found. HTML doc generation will fail" >&2;}
4904fi
4905if test "$ac_cv_prog_LATEX2HTML" = latex2html; then
4906  TEXI2HTML_OPTS="-l2h"
4907fi
4908
4909
4910
4911echo "$as_me:$LINENO: checking whether to build doc" >&5
4912echo $ECHO_N "checking whether to build doc... $ECHO_C" >&6
4913if test "$enable_doc" != no && test -d doc; then
4914 echo "$as_me:$LINENO: result: yes" >&5
4915echo "${ECHO_T}yes" >&6
4916 BUILD_SUBDIRS="$BUILD_SUBDIRS doc"
4917 if test "$enable_doc" != yes; then
4918   enable_doc=yes
4919   ac_configure_args="$ac_configure_args --enable-doc"
4920 fi
4921else
4922 enable_doc=no
4923 echo "$as_me:$LINENO: result: no" >&5
4924echo "${ECHO_T}no" >&6
4925fi
4926
4927echo "$as_me:$LINENO: checking whether to build emacs" >&5
4928echo $ECHO_N "checking whether to build emacs... $ECHO_C" >&6
4929if test "$enable_doc" = yes && test "$enable_emacs" != no && test -d emacs; then
4930 echo "$as_me:$LINENO: result: yes" >&5
4931echo "${ECHO_T}yes" >&6
4932 BUILD_SUBDIRS="$BUILD_SUBDIRS emacs"
4933 if test "$enable_emacs" != yes; then
4934   ac_configure_args="$ac_configure_args --enable-emacs"
4935 fi
4936else
4937 echo "$as_me:$LINENO: result: no" >&5
4938echo "${ECHO_T}no" >&6
4939fi
4940
4941echo "$as_me:$LINENO: checking which apint package to use" >&5
4942echo $ECHO_N "checking which apint package to use... $ECHO_C" >&6
4943if test "$with_apint" = gmp; then
4944  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
4945    echo "$as_me:$LINENO: result: gmp" >&5
4946echo "${ECHO_T}gmp" >&6
4947  else
4948    echo "$as_me:$LINENO: result: none" >&5
4949echo "${ECHO_T}none" >&6
4950    { { echo "$as_me:$LINENO: error: can not use with gmp without finding or building it" >&5
4951echo "$as_me: error: can not use with gmp without finding or building it" >&2;}
4952   { (exit 1); exit 1; }; }
4953  fi
4954elif test "$with_apint" = smallgmp; then
4955  if test "$ac_smallgmp_ok" = yes || test "$enable_smallgmp" = yes; then
4956    echo "$as_me:$LINENO: result: smallgmp" >&5
4957echo "${ECHO_T}smallgmp" >&6
4958  else
4959    echo "$as_me:$LINENO: result: none" >&5
4960echo "${ECHO_T}none" >&6
4961    { { echo "$as_me:$LINENO: error: can not use with smallgmp without finding or building it" >&5
4962echo "$as_me: error: can not use with smallgmp without finding or building it" >&2;}
4963   { (exit 1); exit 1; }; }
4964  fi
4965elif test "$ac_gmp_ok" = yes || test "$enable_gmp"; then
4966    echo "$as_me:$LINENO: result: gmp" >&5
4967echo "${ECHO_T}gmp" >&6
4968    ac_configure_args="$ac_configure_args --with-apint=gmp"
4969else
4970   echo "$as_me:$LINENO: result: smallgmp" >&5
4971echo "${ECHO_T}smallgmp" >&6
4972   ac_configure_args="$ac_configure_args --with-apint=smallgmp"
4973fi
4974
4975echo "$as_me:$LINENO: checking whether to use with MP" >&5
4976echo $ECHO_N "checking whether to use with MP... $ECHO_C" >&6
4977if test "$with_MP" = yes; then
4978  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
4979    echo "$as_me:$LINENO: result: yes" >&5
4980echo "${ECHO_T}yes" >&6
4981  else
4982    echo "$as_me:$LINENO: result: none" >&5
4983echo "${ECHO_T}none" >&6
4984    { { echo "$as_me:$LINENO: error: can not use with MP without finding or building it" >&5
4985echo "$as_me: error: can not use with MP without finding or building it" >&2;}
4986   { (exit 1); exit 1; }; }
4987  fi
4988elif test "$with_MP" = no; then
4989  echo "$as_me:$LINENO: result: no" >&5
4990echo "${ECHO_T}no" >&6
4991elif test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
4992  echo "$as_me:$LINENO: result: yes" >&5
4993echo "${ECHO_T}yes" >&6
4994  ac_configure_args="$ac_configure_args --with-MP"
4995else
4996  echo "$as_me:$LINENO: result: no" >&5
4997echo "${ECHO_T}no" >&6
4998  ac_configure_args="$ac_configure_args --without-MP"
4999fi
5000
5001echo "$as_me:$LINENO: checking whether to use with factory" >&5
5002echo $ECHO_N "checking whether to use with factory... $ECHO_C" >&6
5003if test "$with_factory" = yes; then
5004  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
5005    echo "$as_me:$LINENO: result: yes" >&5
5006echo "${ECHO_T}yes" >&6
5007  else
5008    echo "$as_me:$LINENO: result: none" >&5
5009echo "${ECHO_T}none" >&6
5010    { { echo "$as_me:$LINENO: error: can not use with factory without finding or building it" >&5
5011echo "$as_me: error: can not use with factory without finding or building it" >&2;}
5012   { (exit 1); exit 1; }; }
5013  fi
5014elif test "$with_factory" = no; then
5015  echo "$as_me:$LINENO: result: no" >&5
5016echo "${ECHO_T}no" >&6
5017elif test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
5018  echo "$as_me:$LINENO: result: yes" >&5
5019echo "${ECHO_T}yes" >&6
5020  ac_configure_args="$ac_configure_args --with-factory"
5021else
5022  echo "$as_me:$LINENO: result: no" >&5
5023echo "${ECHO_T}no" >&6
5024  ac_configure_args="$ac_configure_args --without-factory"
5025fi
5026
5027echo "$as_me:$LINENO: checking whether to use with libfac" >&5
5028echo $ECHO_N "checking whether to use with libfac... $ECHO_C" >&6
5029if test "$with_libfac" = yes; then
5030  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
5031    echo "$as_me:$LINENO: result: yes" >&5
5032echo "${ECHO_T}yes" >&6
5033  else
5034    echo "$as_me:$LINENO: result: none" >&5
5035echo "${ECHO_T}none" >&6
5036    { { echo "$as_me:$LINENO: error: can not use with libfac without finding or building it" >&5
5037echo "$as_me: error: can not use with libfac without finding or building it" >&2;}
5038   { (exit 1); exit 1; }; }
5039  fi
5040elif test "$with_libfac" = no; then
5041  echo "$as_me:$LINENO: result: no" >&5
5042echo "${ECHO_T}no" >&6
5043elif test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
5044  echo "$as_me:$LINENO: result: yes" >&5
5045echo "${ECHO_T}yes" >&6
5046  ac_configure_args="$ac_configure_args --with-libfac"
5047else
5048  echo "$as_me:$LINENO: result: no" >&5
5049echo "${ECHO_T}no" >&6
5050  ac_configure_args="$ac_configure_args --without-libfac"
5051fi
5052
5053
5054
5055echo "$as_me:$LINENO: checking whether to use with Singular" >&5
5056echo $ECHO_N "checking whether to use with Singular... $ECHO_C" >&6
5057if test "$with_Singular" != no && test "$with_Singular" != yes; then
5058  if test "$enable_Singular" = yes; then
5059    with_Singular=yes
5060  else
5061    with_Singular=no
5062  fi
5063  ac_configure_args="$ac_configure_args --with-Singular=$with_Singular"
5064fi
5065
5066if test "$with_Singular" != no; then
5067  echo "$as_me:$LINENO: result: yes" >&5
5068echo "${ECHO_T}yes" >&6
5069else
5070  echo "$as_me:$LINENO: result: no" >&5
5071echo "${ECHO_T}no" >&6
5072fi
5073
5074
5075SUBDIRS=""
5076if test -d omalloc; then
5077  SUBDIRS="$SUBDIRS omalloc"
5078fi
5079if test -d smallgmp; then
5080  SUBDIRS="$SUBDIRS smallgmp"
5081fi
5082if test -d gmp; then
5083  SUBDIRS="$SUBDIRS gmp"
5084fi
5085if test -d MP; then
5086  SUBDIRS="$SUBDIRS MP"
5087fi
5088if test -d ntl; then
5089  SUBDIRS="$SUBDIRS ntl"
5090fi
5091if test -d factory; then
5092  SUBDIRS="$SUBDIRS factory"
5093fi
5094if test -d libfac; then
5095  SUBDIRS="$SUBDIRS libfac"
5096fi
5097if test -d sgroup; then
5098  SUBDIRS="$SUBDIRS sgroup"
5099fi
5100if test -d Singular; then
5101  SUBDIRS="$SUBDIRS Singular"
5102fi
5103if test -d Texinfo; then
5104  SUBDIRS="$SUBDIRS Texinfo"
5105fi
5106if test -d Texi2html; then
5107  SUBDIRS="$SUBDIRS Texi2html"
5108fi
5109if test -d doc; then
5110  SUBDIRS="$SUBDIRS doc"
5111fi
5112if test -d emacs; then
5113  SUBDIRS="$SUBDIRS emacs"
5114fi
5115if test -d modules; then
5116  SUBDIRS="$SUBDIRS modules"
5117fi
5118
5119echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
5120echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5121set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5122if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5123  echo $ECHO_N "(cached) $ECHO_C" >&6
5124else
5125  cat >conftest.make <<\_ACEOF
5126all:
5127        @echo 'ac_maketemp="${MAKE}"'
5128_ACEOF
5129# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5130eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5131if test -n "$ac_maketemp"; then
5132  eval ac_cv_prog_make_${ac_make}_set=yes
5133else
5134  eval ac_cv_prog_make_${ac_make}_set=no
5135fi
5136rm -f conftest.make
5137fi
5138if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5139  echo "$as_me:$LINENO: result: yes" >&5
5140echo "${ECHO_T}yes" >&6
5141  SET_MAKE=
5142else
5143  echo "$as_me:$LINENO: result: no" >&5
5144echo "${ECHO_T}no" >&6
5145  SET_MAKE="MAKE=${MAKE-make}"
5146fi
5147
5148
5149
5150
5151
5152
5153subdirs="$subdirs $CONFIG_SUBDIRS"
5154
5155
5156ac_config_files="$ac_config_files ${OUTPUT_MAKEFILES}"
5157cat >confcache <<\_ACEOF
5158# This file is a shell script that caches the results of configure
5159# tests run on this system so they can be shared between configure
5160# scripts and configure runs, see configure's option --config-cache.
5161# It is not useful on other systems.  If it contains results you don't
5162# want to keep, you may remove or edit it.
5163#
5164# config.status only pays attention to the cache file if you give it
5165# the --recheck option to rerun configure.
5166#
5167# `ac_cv_env_foo' variables (set or unset) will be overriden when
5168# loading this file, other *unset* `ac_cv_foo' will be assigned the
5169# following values.
5170
5171_ACEOF
5172
5173# The following way of writing the cache mishandles newlines in values,
5174# but we know of no workaround that is simple, portable, and efficient.
5175# So, don't put newlines in cache variables' values.
5176# Ultrix sh set writes to stderr and can't be redirected directly,
5177# and sets the high bit in the cache file unless we assign to the vars.
5178{
5179  (set) 2>&1 |
5180    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5181    *ac_space=\ *)
5182      # `set' does not quote correctly, so add quotes (double-quote
5183      # substitution turns \\\\ into \\, and sed turns \\ into \).
5184      sed -n \
5185        "s/'/'\\\\''/g;
5186          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5187      ;;
5188    *)
5189      # `set' quotes correctly as required by POSIX, so do not add quotes.
5190      sed -n \
5191        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5192      ;;
5193    esac;
5194} |
5195  sed '
5196     t clear
5197     : clear
5198     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5199     t end
5200     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5201     : end' >>confcache
5202if cmp -s $cache_file confcache; then :; else
5203  if test -w $cache_file; then
5204    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5205    cat confcache >$cache_file
5206  else
5207    echo "not updating unwritable cache $cache_file"
5208  fi
5209fi
5210rm -f confcache
5211
5212test "x$prefix" = xNONE && prefix=$ac_default_prefix
5213# Let make expand exec_prefix.
5214test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5215
5216# VPATH may cause trouble with some makes, so we remove $(srcdir),
5217# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5218# trailing colons and then remove the whole line if VPATH becomes empty
5219# (actually we leave an empty line to preserve line numbers).
5220if test "x$srcdir" = x.; then
5221  ac_vpsub='/^[         ]*VPATH[        ]*=/{
5222s/:*\$(srcdir):*/:/;
5223s/:*\${srcdir}:*/:/;
5224s/:*@srcdir@:*/:/;
5225s/^\([^=]*=[    ]*\):*/\1/;
5226s/:*$//;
5227s/^[^=]*=[      ]*$//;
5228}'
5229fi
5230
5231# Transform confdefs.h into DEFS.
5232# Protect against shell expansion while executing Makefile rules.
5233# Protect against Makefile macro expansion.
5234#
5235# If the first sed substitution is executed (which looks for macros that
5236# take arguments), then we branch to the quote section.  Otherwise,
5237# look for a macro that doesn't take arguments.
5238cat >confdef2opt.sed <<\_ACEOF
5239t clear
5240: clear
5241s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
5242t quote
5243s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
5244t quote
5245d
5246: quote
5247s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
5248s,\[,\\&,g
5249s,\],\\&,g
5250s,\$,$$,g
5251p
5252_ACEOF
5253# We use echo to avoid assuming a particular line-breaking character.
5254# The extra dot is to prevent the shell from consuming trailing
5255# line-breaks from the sub-command output.  A line-break within
5256# single-quotes doesn't work because, if this script is created in a
5257# platform that uses two characters for line-breaks (e.g., DOS), tr
5258# would break.
5259ac_LF_and_DOT=`echo; echo .`
5260DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5261rm -f confdef2opt.sed
5262
5263
5264
5265: ${CONFIG_STATUS=./config.status}
5266ac_clean_files_save=$ac_clean_files
5267ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5268{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5269echo "$as_me: creating $CONFIG_STATUS" >&6;}
5270cat >$CONFIG_STATUS <<_ACEOF
5271#! $SHELL
5272# Generated by $as_me.
5273# Run this file to recreate the current configuration.
5274# Compiler output produced by configure, useful for debugging
5275# configure, is in config.log if it exists.
5276
5277debug=false
5278SHELL=\${CONFIG_SHELL-$SHELL}
5279_ACEOF
5280
5281cat >>$CONFIG_STATUS <<\_ACEOF
5282
5283## --------------------- ##
5284## M4sh Initialization.  ##
5285## --------------------- ##
5286
5287# Be Bourne compatible
5288if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5289  emulate sh
5290  NULLCMD=:
5291elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5292  set -o posix
5293fi
5294
5295# NLS nuisances.
5296# Support unset when possible.
5297if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5298  as_unset=unset
5299else
5300  as_unset=false
5301fi
5302
5303(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
5304    { $as_unset LANG || test "${LANG+set}" != set; } ||
5305      { LANG=C; export LANG; }
5306(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
5307    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
5308      { LC_ALL=C; export LC_ALL; }
5309(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
5310    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
5311      { LC_TIME=C; export LC_TIME; }
5312(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
5313    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
5314      { LC_CTYPE=C; export LC_CTYPE; }
5315(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
5316    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
5317      { LANGUAGE=C; export LANGUAGE; }
5318(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
5319    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
5320      { LC_COLLATE=C; export LC_COLLATE; }
5321(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
5322    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
5323      { LC_NUMERIC=C; export LC_NUMERIC; }
5324(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
5325    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
5326      { LC_MESSAGES=C; export LC_MESSAGES; }
5327
5328
5329# Name of the executable.
5330as_me=`(basename "$0") 2>/dev/null ||
5331$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5332         X"$0" : 'X\(//\)$' \| \
5333         X"$0" : 'X\(/\)$' \| \
5334         .     : '\(.\)' 2>/dev/null ||
5335echo X/"$0" |
5336    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5337          /^X\/\(\/\/\)$/{ s//\1/; q; }
5338          /^X\/\(\/\).*/{ s//\1/; q; }
5339          s/.*/./; q'`
5340
5341# PATH needs CR, and LINENO needs CR and PATH.
5342# Avoid depending upon Character Ranges.
5343as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5344as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5345as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5346as_cr_digits='0123456789'
5347as_cr_alnum=$as_cr_Letters$as_cr_digits
5348
5349# The user is always right.
5350if test "${PATH_SEPARATOR+set}" != set; then
5351  echo "#! /bin/sh" >conftest.sh
5352  echo  "exit 0"   >>conftest.sh
5353  chmod +x conftest.sh
5354  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
5355    PATH_SEPARATOR=';'
5356  else
5357    PATH_SEPARATOR=:
5358  fi
5359  rm -f conftest.sh
5360fi
5361
5362
5363  as_lineno_1=$LINENO
5364  as_lineno_2=$LINENO
5365  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5366  test "x$as_lineno_1" != "x$as_lineno_2" &&
5367  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5368  # Find who we are.  Look in the path if we contain no path at all
5369  # relative or not.
5370  case $0 in
5371    *[\\/]* ) as_myself=$0 ;;
5372    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375  IFS=$as_save_IFS
5376  test -z "$as_dir" && as_dir=.
5377  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5378done
5379
5380       ;;
5381  esac
5382  # We did not find ourselves, most probably we were run as `sh COMMAND'
5383  # in which case we are not to be found in the path.
5384  if test "x$as_myself" = x; then
5385    as_myself=$0
5386  fi
5387  if test ! -f "$as_myself"; then
5388    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5389echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5390   { (exit 1); exit 1; }; }
5391  fi
5392  case $CONFIG_SHELL in
5393  '')
5394    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5396do
5397  IFS=$as_save_IFS
5398  test -z "$as_dir" && as_dir=.
5399  for as_base in sh bash ksh sh5; do
5400         case $as_dir in
5401         /*)
5402           if ("$as_dir/$as_base" -c '
5403  as_lineno_1=$LINENO
5404  as_lineno_2=$LINENO
5405  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5406  test "x$as_lineno_1" != "x$as_lineno_2" &&
5407  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5408             CONFIG_SHELL=$as_dir/$as_base
5409             export CONFIG_SHELL
5410             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5411           fi;;
5412         esac
5413       done
5414done
5415;;
5416  esac
5417
5418  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5419  # uniformly replaced by the line number.  The first 'sed' inserts a
5420  # line-number line before each line; the second 'sed' does the real
5421  # work.  The second script uses 'N' to pair each line-number line
5422  # with the numbered line, and appends trailing '-' during
5423  # substitution so that $LINENO is not a special case at line end.
5424  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5425  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5426  sed '=' <$as_myself |
5427    sed '
5428      N
5429      s,$,-,
5430      : loop
5431      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5432      t loop
5433      s,-$,,
5434      s,^['$as_cr_digits']*\n,,
5435    ' >$as_me.lineno &&
5436  chmod +x $as_me.lineno ||
5437    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5438echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5439   { (exit 1); exit 1; }; }
5440
5441  # Don't try to exec as it changes $[0], causing all sort of problems
5442  # (the dirname of $[0] is not the place where we might find the
5443  # original and so on.  Autoconf is especially sensible to this).
5444  . ./$as_me.lineno
5445  # Exit status is that of the last command.
5446  exit
5447}
5448
5449
5450case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5451  *c*,-n*) ECHO_N= ECHO_C='
5452' ECHO_T='      ' ;;
5453  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5454  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5455esac
5456
5457if expr a : '\(a\)' >/dev/null 2>&1; then
5458  as_expr=expr
5459else
5460  as_expr=false
5461fi
5462
5463rm -f conf$$ conf$$.exe conf$$.file
5464echo >conf$$.file
5465if ln -s conf$$.file conf$$ 2>/dev/null; then
5466  # We could just check for DJGPP; but this test a) works b) is more generic
5467  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5468  if test -f conf$$.exe; then
5469    # Don't use ln at all; we don't have any links
5470    as_ln_s='cp -p'
5471  else
5472    as_ln_s='ln -s'
5473  fi
5474elif ln conf$$.file conf$$ 2>/dev/null; then
5475  as_ln_s=ln
5476else
5477  as_ln_s='cp -p'
5478fi
5479rm -f conf$$ conf$$.exe conf$$.file
5480
5481as_executable_p="test -f"
5482
5483# Sed expression to map a string onto a valid CPP name.
5484as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5485
5486# Sed expression to map a string onto a valid variable name.
5487as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5488
5489
5490# IFS
5491# We need space, tab and new line, in precisely that order.
5492as_nl='
5493'
5494IFS="   $as_nl"
5495
5496# CDPATH.
5497$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
5498
5499exec 6>&1
5500
5501# Open the log real soon, to keep \$[0] and so on meaningful, and to
5502# report actual input values of CONFIG_FILES etc. instead of their
5503# values after options handling.  Logging --version etc. is OK.
5504exec 5>>config.log
5505{
5506  echo
5507  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5508## Running $as_me. ##
5509_ASBOX
5510} >&5
5511cat >&5 <<_CSEOF
5512
5513This file was extended by $as_me, which was
5514generated by GNU Autoconf 2.53.  Invocation command line was
5515
5516  CONFIG_FILES    = $CONFIG_FILES
5517  CONFIG_HEADERS  = $CONFIG_HEADERS
5518  CONFIG_LINKS    = $CONFIG_LINKS
5519  CONFIG_COMMANDS = $CONFIG_COMMANDS
5520  $ $0 $@
5521
5522_CSEOF
5523echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5524echo >&5
5525_ACEOF
5526
5527# Files that config.status was made for.
5528if test -n "$ac_config_files"; then
5529  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5530fi
5531
5532if test -n "$ac_config_headers"; then
5533  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5534fi
5535
5536if test -n "$ac_config_links"; then
5537  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5538fi
5539
5540if test -n "$ac_config_commands"; then
5541  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5542fi
5543
5544cat >>$CONFIG_STATUS <<\_ACEOF
5545
5546ac_cs_usage="\
5547\`$as_me' instantiates files from templates according to the
5548current configuration.
5549
5550Usage: $0 [OPTIONS] [FILE]...
5551
5552  -h, --help       print this help, then exit
5553  -V, --version    print version number, then exit
5554  -d, --debug      don't remove temporary files
5555      --recheck    update $as_me by reconfiguring in the same conditions
5556  --file=FILE[:TEMPLATE]
5557                   instantiate the configuration file FILE
5558
5559Configuration files:
5560$config_files
5561
5562Report bugs to <bug-autoconf@gnu.org>."
5563_ACEOF
5564
5565cat >>$CONFIG_STATUS <<_ACEOF
5566ac_cs_version="\\
5567config.status
5568configured by $0, generated by GNU Autoconf 2.53,
5569  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5570
5571Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5572Free Software Foundation, Inc.
5573This config.status script is free software; the Free Software Foundation
5574gives unlimited permission to copy, distribute and modify it."
5575srcdir=$srcdir
5576INSTALL="$INSTALL"
5577_ACEOF
5578
5579cat >>$CONFIG_STATUS <<\_ACEOF
5580# If no file are specified by the user, then we need to provide default
5581# value.  By we need to know if files were specified by the user.
5582ac_need_defaults=:
5583while test $# != 0
5584do
5585  case $1 in
5586  --*=*)
5587    ac_option=`expr "x$1" : 'x\([^=]*\)='`
5588    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5589    shift
5590    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5591    shift
5592    ;;
5593  -*);;
5594  *) # This is not an option, so the user has probably given explicit
5595     # arguments.
5596     ac_need_defaults=false;;
5597  esac
5598
5599  case $1 in
5600  # Handling of the options.
5601_ACEOF
5602cat >>$CONFIG_STATUS <<_ACEOF
5603  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5604    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5605    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5606_ACEOF
5607cat >>$CONFIG_STATUS <<\_ACEOF
5608  --version | --vers* | -V )
5609    echo "$ac_cs_version"; exit 0 ;;
5610  --he | --h)
5611    # Conflict between --help and --header
5612    { { echo "$as_me:$LINENO: error: ambiguous option: $1
5613Try \`$0 --help' for more information." >&5
5614echo "$as_me: error: ambiguous option: $1
5615Try \`$0 --help' for more information." >&2;}
5616   { (exit 1); exit 1; }; };;
5617  --help | --hel | -h )
5618    echo "$ac_cs_usage"; exit 0 ;;
5619  --debug | --d* | -d )
5620    debug=: ;;
5621  --file | --fil | --fi | --f )
5622    shift
5623    CONFIG_FILES="$CONFIG_FILES $1"
5624    ac_need_defaults=false;;
5625  --header | --heade | --head | --hea )
5626    shift
5627    CONFIG_HEADERS="$CONFIG_HEADERS $1"
5628    ac_need_defaults=false;;
5629
5630  # This is an error.
5631  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5632Try \`$0 --help' for more information." >&5
5633echo "$as_me: error: unrecognized option: $1
5634Try \`$0 --help' for more information." >&2;}
5635   { (exit 1); exit 1; }; } ;;
5636
5637  *) ac_config_targets="$ac_config_targets $1" ;;
5638
5639  esac
5640  shift
5641done
5642
5643_ACEOF
5644
5645
5646
5647
5648
5649cat >>$CONFIG_STATUS <<\_ACEOF
5650for ac_config_target in $ac_config_targets
5651do
5652  case "$ac_config_target" in
5653  # Handling of arguments.
5654  "${OUTPUT_MAKEFILES}" ) CONFIG_FILES="$CONFIG_FILES ${OUTPUT_MAKEFILES}" ;;
5655  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5656echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5657   { (exit 1); exit 1; }; };;
5658  esac
5659done
5660
5661# If the user did not use the arguments to specify the items to instantiate,
5662# then the envvar interface is used.  Set only those that are not.
5663# We use the long form for the default assignment because of an extremely
5664# bizarre bug on SunOS 4.1.3.
5665if $ac_need_defaults; then
5666  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5667fi
5668
5669# Create a temporary directory, and hook for its removal unless debugging.
5670$debug ||
5671{
5672  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5673  trap '{ (exit 1); exit 1; }' 1 2 13 15
5674}
5675
5676# Create a (secure) tmp directory for tmp files.
5677: ${TMPDIR=/tmp}
5678{
5679  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5680  test -n "$tmp" && test -d "$tmp"
5681}  ||
5682{
5683  tmp=$TMPDIR/cs$$-$RANDOM
5684  (umask 077 && mkdir $tmp)
5685} ||
5686{
5687   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5688   { (exit 1); exit 1; }
5689}
5690
5691_ACEOF
5692
5693cat >>$CONFIG_STATUS <<_ACEOF
5694
5695#
5696# CONFIG_FILES section.
5697#
5698
5699# No need to generate the scripts if there are no CONFIG_FILES.
5700# This happens for instance when ./config.status config.h
5701if test -n "\$CONFIG_FILES"; then
5702  # Protect against being on the right side of a sed subst in config.status.
5703  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5704   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5705s,@SHELL@,$SHELL,;t t
5706s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5707s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5708s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5709s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5710s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5711s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5712s,@exec_prefix@,$exec_prefix,;t t
5713s,@prefix@,$prefix,;t t
5714s,@program_transform_name@,$program_transform_name,;t t
5715s,@bindir@,$bindir,;t t
5716s,@sbindir@,$sbindir,;t t
5717s,@libexecdir@,$libexecdir,;t t
5718s,@datadir@,$datadir,;t t
5719s,@sysconfdir@,$sysconfdir,;t t
5720s,@sharedstatedir@,$sharedstatedir,;t t
5721s,@localstatedir@,$localstatedir,;t t
5722s,@libdir@,$libdir,;t t
5723s,@includedir@,$includedir,;t t
5724s,@oldincludedir@,$oldincludedir,;t t
5725s,@infodir@,$infodir,;t t
5726s,@mandir@,$mandir,;t t
5727s,@build_alias@,$build_alias,;t t
5728s,@host_alias@,$host_alias,;t t
5729s,@target_alias@,$target_alias,;t t
5730s,@DEFS@,$DEFS,;t t
5731s,@ECHO_C@,$ECHO_C,;t t
5732s,@ECHO_N@,$ECHO_N,;t t
5733s,@ECHO_T@,$ECHO_T,;t t
5734s,@LIBS@,$LIBS,;t t
5735s,@SINGULAR_VERSION@,$SINGULAR_VERSION,;t t
5736s,@VERSION_DATE@,$VERSION_DATE,;t t
5737s,@SINGULAR_SHORT_VERSION@,$SINGULAR_SHORT_VERSION,;t t
5738s,@SINGULAR_RPM_VERSION@,$SINGULAR_RPM_VERSION,;t t
5739s,@SINGULAR_ROOT_DIR@,$SINGULAR_ROOT_DIR,;t t
5740s,@SINGUNAME@,$SINGUNAME,;t t
5741s,@SING_UNAME@,$SING_UNAME,;t t
5742s,@CC@,$CC,;t t
5743s,@CFLAGS@,$CFLAGS,;t t
5744s,@LDFLAGS@,$LDFLAGS,;t t
5745s,@CPPFLAGS@,$CPPFLAGS,;t t
5746s,@ac_ct_CC@,$ac_ct_CC,;t t
5747s,@EXEEXT@,$EXEEXT,;t t
5748s,@OBJEXT@,$OBJEXT,;t t
5749s,@CPP@,$CPP,;t t
5750s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5751s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5752s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5753s,@CXX@,$CXX,;t t
5754s,@CXXFLAGS@,$CXXFLAGS,;t t
5755s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5756s,@PIPE@,$PIPE,;t t
5757s,@PERL@,$PERL,;t t
5758s,@UUDECODE@,$UUDECODE,;t t
5759s,@GUNZIP@,$GUNZIP,;t t
5760s,@MYGZIP@,$MYGZIP,;t t
5761s,@LATEX2HTML@,$LATEX2HTML,;t t
5762s,@LN_S@,$LN_S,;t t
5763s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
5764s,@SINGULAR@,$SINGULAR,;t t
5765s,@TMP_DIR@,$TMP_DIR,;t t
5766s,@TEXI2DVI@,$TEXI2DVI,;t t
5767s,@MAKEINFO@,$MAKEINFO,;t t
5768s,@TEXINDEX@,$TEXINDEX,;t t
5769s,@TEXI2HTML@,$TEXI2HTML,;t t
5770s,@TEXI2HTML_OPTS@,$TEXI2HTML_OPTS,;t t
5771s,@SET_MAKE@,$SET_MAKE,;t t
5772s,@SUBDIRS@,$SUBDIRS,;t t
5773s,@BUILD_SUBDIRS@,$BUILD_SUBDIRS,;t t
5774s,@CONFIG_SUBDIRS@,$CONFIG_SUBDIRS,;t t
5775s,@subdirs@,$subdirs,;t t
5776CEOF
5777
5778_ACEOF
5779
5780  cat >>$CONFIG_STATUS <<\_ACEOF
5781  # Split the substitutions into bite-sized pieces for seds with
5782  # small command number limits, like on Digital OSF/1 and HP-UX.
5783  ac_max_sed_lines=48
5784  ac_sed_frag=1 # Number of current file.
5785  ac_beg=1 # First line for current file.
5786  ac_end=$ac_max_sed_lines # Line after last line for current file.
5787  ac_more_lines=:
5788  ac_sed_cmds=
5789  while $ac_more_lines; do
5790    if test $ac_beg -gt 1; then
5791      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5792    else
5793      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5794    fi
5795    if test ! -s $tmp/subs.frag; then
5796      ac_more_lines=false
5797    else
5798      # The purpose of the label and of the branching condition is to
5799      # speed up the sed processing (if there are no `@' at all, there
5800      # is no need to browse any of the substitutions).
5801      # These are the two extra sed commands mentioned above.
5802      (echo ':t
5803  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5804      if test -z "$ac_sed_cmds"; then
5805        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5806      else
5807        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5808      fi
5809      ac_sed_frag=`expr $ac_sed_frag + 1`
5810      ac_beg=$ac_end
5811      ac_end=`expr $ac_end + $ac_max_sed_lines`
5812    fi
5813  done
5814  if test -z "$ac_sed_cmds"; then
5815    ac_sed_cmds=cat
5816  fi
5817fi # test -n "$CONFIG_FILES"
5818
5819_ACEOF
5820cat >>$CONFIG_STATUS <<\_ACEOF
5821for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5822  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5823  case $ac_file in
5824  - | *:- | *:-:* ) # input from stdin
5825        cat >$tmp/stdin
5826        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5827        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5828  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5829        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5830  * )   ac_file_in=$ac_file.in ;;
5831  esac
5832
5833  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5834  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5835$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5836         X"$ac_file" : 'X\(//\)[^/]' \| \
5837         X"$ac_file" : 'X\(//\)$' \| \
5838         X"$ac_file" : 'X\(/\)' \| \
5839         .     : '\(.\)' 2>/dev/null ||
5840echo X"$ac_file" |
5841    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5842          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5843          /^X\(\/\/\)$/{ s//\1/; q; }
5844          /^X\(\/\).*/{ s//\1/; q; }
5845          s/.*/./; q'`
5846  { case "$ac_dir" in
5847  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5848  *)                      as_incr_dir=.;;
5849esac
5850as_dummy="$ac_dir"
5851for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5852  case $as_mkdir_dir in
5853    # Skip DOS drivespec
5854    ?:) as_incr_dir=$as_mkdir_dir ;;
5855    *)
5856      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5857      test -d "$as_incr_dir" ||
5858        mkdir "$as_incr_dir" ||
5859        { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5860echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5861   { (exit 1); exit 1; }; }
5862    ;;
5863  esac
5864done; }
5865
5866  ac_builddir=.
5867
5868if test "$ac_dir" != .; then
5869  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5870  # A "../" for each directory in $ac_dir_suffix.
5871  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5872else
5873  ac_dir_suffix= ac_top_builddir=
5874fi
5875
5876case $srcdir in
5877  .)  # No --srcdir option.  We are building in place.
5878    ac_srcdir=.
5879    if test -z "$ac_top_builddir"; then
5880       ac_top_srcdir=.
5881    else
5882       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5883    fi ;;
5884  [\\/]* | ?:[\\/]* )  # Absolute path.
5885    ac_srcdir=$srcdir$ac_dir_suffix;
5886    ac_top_srcdir=$srcdir ;;
5887  *) # Relative path.
5888    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5889    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5890esac
5891# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5892# absolute.
5893ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5894ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
5895ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5896ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5897
5898
5899  case $INSTALL in
5900  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5901  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5902  esac
5903
5904  if test x"$ac_file" != x-; then
5905    { echo "$as_me:$LINENO: creating $ac_file" >&5
5906echo "$as_me: creating $ac_file" >&6;}
5907    rm -f "$ac_file"
5908  fi
5909  # Let's still pretend it is `configure' which instantiates (i.e., don't
5910  # use $as_me), people would be surprised to read:
5911  #    /* config.h.  Generated by config.status.  */
5912  if test x"$ac_file" = x-; then
5913    configure_input=
5914  else
5915    configure_input="$ac_file.  "
5916  fi
5917  configure_input=$configure_input"Generated from `echo $ac_file_in |
5918                                     sed 's,.*/,,'` by configure."
5919
5920  # First look for the input files in the build tree, otherwise in the
5921  # src tree.
5922  ac_file_inputs=`IFS=:
5923    for f in $ac_file_in; do
5924      case $f in
5925      -) echo $tmp/stdin ;;
5926      [\\/$]*)
5927         # Absolute (can't be DOS-style, as IFS=:)
5928         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5929echo "$as_me: error: cannot find input file: $f" >&2;}
5930   { (exit 1); exit 1; }; }
5931         echo $f;;
5932      *) # Relative
5933         if test -f "$f"; then
5934           # Build tree
5935           echo $f
5936         elif test -f "$srcdir/$f"; then
5937           # Source tree
5938           echo $srcdir/$f
5939         else
5940           # /dev/null tree
5941           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5942echo "$as_me: error: cannot find input file: $f" >&2;}
5943   { (exit 1); exit 1; }; }
5944         fi;;
5945      esac
5946    done` || { (exit 1); exit 1; }
5947_ACEOF
5948cat >>$CONFIG_STATUS <<_ACEOF
5949  sed "$ac_vpsub
5950$extrasub
5951_ACEOF
5952cat >>$CONFIG_STATUS <<\_ACEOF
5953:t
5954/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5955s,@configure_input@,$configure_input,;t t
5956s,@srcdir@,$ac_srcdir,;t t
5957s,@abs_srcdir@,$ac_abs_srcdir,;t t
5958s,@top_srcdir@,$ac_top_srcdir,;t t
5959s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5960s,@builddir@,$ac_builddir,;t t
5961s,@abs_builddir@,$ac_abs_builddir,;t t
5962s,@top_builddir@,$ac_top_builddir,;t t
5963s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5964s,@INSTALL@,$ac_INSTALL,;t t
5965" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5966  rm -f $tmp/stdin
5967  if test x"$ac_file" != x-; then
5968    mv $tmp/out $ac_file
5969  else
5970    cat $tmp/out
5971    rm -f $tmp/out
5972  fi
5973
5974done
5975_ACEOF
5976
5977cat >>$CONFIG_STATUS <<\_ACEOF
5978
5979{ (exit 0); exit 0; }
5980_ACEOF
5981chmod +x $CONFIG_STATUS
5982ac_clean_files=$ac_clean_files_save
5983
5984
5985# configure is writing to config.log, and then calls config.status.
5986# config.status does its own redirection, appending to config.log.
5987# Unfortunately, on DOS this fails, as config.log is still kept open
5988# by configure, so config.status won't be able to write to it; its
5989# output is simply discarded.  So we exec the FD to /dev/null,
5990# effectively closing config.log, so it can be properly (re)opened and
5991# appended to by config.status.  When coming back to configure, we
5992# need to make the FD available again.
5993if test "$no_create" != yes; then
5994  ac_cs_success=:
5995  exec 5>/dev/null
5996  $SHELL $CONFIG_STATUS || ac_cs_success=false
5997  exec 5>>config.log
5998  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5999  # would make configure fail if this is the last instruction.
6000  $ac_cs_success || { (exit 1); exit 1; }
6001fi
6002
6003#
6004# CONFIG_SUBDIRS section.
6005#
6006if test "$no_recursion" != yes; then
6007
6008  # Remove --cache-file and --srcdir arguments so they do not pile up.
6009  ac_sub_configure_args=
6010  ac_prev=
6011  for ac_arg in $ac_configure_args; do
6012    if test -n "$ac_prev"; then
6013      ac_prev=
6014      continue
6015    fi
6016    case $ac_arg in
6017    -cache-file | --cache-file | --cache-fil | --cache-fi \
6018    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6019      ac_prev=cache_file ;;
6020    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6021    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
6022    | --c=*)
6023      ;;
6024    --config-cache | -C)
6025      ;;
6026    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6027      ac_prev=srcdir ;;
6028    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6029      ;;
6030    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
6031      ac_prev=prefix ;;
6032    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6033      ;;
6034    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6035    esac
6036  done
6037
6038  # Always prepend --prefix to ensure using the same prefix
6039  # in subdir configurations.
6040  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
6041
6042  ac_popdir=`pwd`
6043  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
6044
6045    # Do not complain, so a configure script can configure whichever
6046    # parts of a large source tree are present.
6047    test -d $srcdir/$ac_dir || continue
6048
6049    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
6050echo "$as_me: configuring in $ac_dir" >&6;}
6051    { case "$ac_dir" in
6052  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6053  *)                      as_incr_dir=.;;
6054esac
6055as_dummy="$ac_dir"
6056for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6057  case $as_mkdir_dir in
6058    # Skip DOS drivespec
6059    ?:) as_incr_dir=$as_mkdir_dir ;;
6060    *)
6061      as_incr_dir=$as_incr_dir/$as_mkdir_dir
6062      test -d "$as_incr_dir" ||
6063        mkdir "$as_incr_dir" ||
6064        { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
6065echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
6066   { (exit 1); exit 1; }; }
6067    ;;
6068  esac
6069done; }
6070
6071    ac_builddir=.
6072
6073if test "$ac_dir" != .; then
6074  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6075  # A "../" for each directory in $ac_dir_suffix.
6076  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6077else
6078  ac_dir_suffix= ac_top_builddir=
6079fi
6080
6081case $srcdir in
6082  .)  # No --srcdir option.  We are building in place.
6083    ac_srcdir=.
6084    if test -z "$ac_top_builddir"; then
6085       ac_top_srcdir=.
6086    else
6087       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6088    fi ;;
6089  [\\/]* | ?:[\\/]* )  # Absolute path.
6090    ac_srcdir=$srcdir$ac_dir_suffix;
6091    ac_top_srcdir=$srcdir ;;
6092  *) # Relative path.
6093    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6094    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6095esac
6096# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6097# absolute.
6098ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6099ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
6100ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6101ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6102
6103
6104    cd $ac_dir
6105
6106    # Check for guested configure; otherwise get Cygnus style configure.
6107    if test -f $ac_srcdir/configure.gnu; then
6108      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
6109    elif test -f $ac_srcdir/configure; then
6110      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
6111    elif test -f $ac_srcdir/configure.in; then
6112      ac_sub_configure=$ac_configure
6113    else
6114      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
6115echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
6116      ac_sub_configure=
6117    fi
6118
6119    # The recursion is here.
6120    if test -n "$ac_sub_configure"; then
6121      # Make the cache file name correct relative to the subdirectory.
6122      case $cache_file in
6123      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
6124      *) # Relative path.
6125        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
6126      esac
6127
6128      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
6129echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6130      # The eval makes quoting arguments work.
6131      eval $ac_sub_configure $ac_sub_configure_args \
6132           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
6133        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
6134echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
6135   { (exit 1); exit 1; }; }
6136    fi
6137
6138    cd $ac_popdir
6139  done
6140fi
6141
Note: See TracBrowser for help on using the repository browser.