source: git/Singular/configure @ fd7acf

spielwiese
Last change on this file since fd7acf was fd7acf, checked in by Hans Schönemann <hannes@…>, 21 years ago
*hannes: readlin/gcc3 stuff git-svn-id: file:///usr/local/Singular/svn/trunk@6691 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 143.8 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_default_prefix=`pwd`/..
15ac_help="$ac_help
16  --with-rootdir=DIR      use DIR ass compiled-in root directory
17                             (default is PREFIX)"
18ac_help="$ac_help
19  --with-lex=[LEX,no]     uses LEX as lex program, default is flex"
20ac_help="$ac_help
21  --with-readline=[dynamic,static,no]         
22                          do use dynamic/static/no readline for fancy display"
23ac_help="$ac_help
24  --without-MP            do not use MP (no MP links)"
25ac_help="$ac_help
26  --without-dbm           do not use dbm (no DBM links)"
27ac_help="$ac_help
28  --without-factory       do not use factory (no poly factorization)"
29ac_help="$ac_help
30  --without-libfac        do not use libfac (no primary decompositions)"
31ac_help="$ac_help
32  --with-namespaces       do compile namespace support"
33ac_help="$ac_help
34  --without-dl            do not use dynamic linking, modules, and kernel"
35ac_help="$ac_help
36  --with-dynamic-modules  do compile with dynamic modules support"
37ac_help="$ac_help
38  --without-dynamic-kernel               
39                          do not compile with dynamic kernel parts"
40ac_help="$ac_help
41  --with-apint=PACKAGE    use PACKAGE for arbitary integer arithmetic"
42ac_help="$ac_help
43  --with-Plural           do compile with Plural support"
44ac_help="$ac_help
45  --with-NTL              build for use with NTL."
46
47# Initialize some variables set by options.
48# The variables have the same names as the options, with
49# dashes changed to underlines.
50build=NONE
51cache_file=./config.cache
52exec_prefix=NONE
53host=NONE
54no_create=
55nonopt=NONE
56no_recursion=
57prefix=NONE
58program_prefix=NONE
59program_suffix=NONE
60program_transform_name=s,x,x,
61silent=
62site=
63srcdir=
64target=NONE
65verbose=
66x_includes=NONE
67x_libraries=NONE
68bindir='${exec_prefix}/bin'
69sbindir='${exec_prefix}/sbin'
70libexecdir='${exec_prefix}/libexec'
71datadir='${prefix}/share'
72sysconfdir='${prefix}/etc'
73sharedstatedir='${prefix}/com'
74localstatedir='${prefix}/var'
75libdir='${exec_prefix}/lib'
76includedir='${prefix}/include'
77oldincludedir='/usr/include'
78infodir='${prefix}/info'
79mandir='${prefix}/man'
80
81# Initialize some other variables.
82subdirs=
83MFLAGS= MAKEFLAGS=
84SHELL=${CONFIG_SHELL-/bin/sh}
85# Maximum number of lines to put in a shell here document.
86ac_max_here_lines=12
87
88ac_prev=
89for ac_option
90do
91
92  # If the previous option needs an argument, assign it.
93  if test -n "$ac_prev"; then
94    eval "$ac_prev=\$ac_option"
95    ac_prev=
96    continue
97  fi
98
99  case "$ac_option" in
100  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
101  *) ac_optarg= ;;
102  esac
103
104  # Accept the important Cygnus configure options, so we can diagnose typos.
105
106  case "$ac_option" in
107
108  -bindir | --bindir | --bindi | --bind | --bin | --bi)
109    ac_prev=bindir ;;
110  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
111    bindir="$ac_optarg" ;;
112
113  -build | --build | --buil | --bui | --bu)
114    ac_prev=build ;;
115  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
116    build="$ac_optarg" ;;
117
118  -cache-file | --cache-file | --cache-fil | --cache-fi \
119  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
120    ac_prev=cache_file ;;
121  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
122  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
123    cache_file="$ac_optarg" ;;
124
125  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
126    ac_prev=datadir ;;
127  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
128  | --da=*)
129    datadir="$ac_optarg" ;;
130
131  -disable-* | --disable-*)
132    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
133    # Reject names that are not valid shell variable names.
134    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
135      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136    fi
137    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138    eval "enable_${ac_feature}=no" ;;
139
140  -enable-* | --enable-*)
141    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
142    # Reject names that are not valid shell variable names.
143    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
144      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145    fi
146    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147    case "$ac_option" in
148      *=*) ;;
149      *) ac_optarg=yes ;;
150    esac
151    eval "enable_${ac_feature}='$ac_optarg'" ;;
152
153  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
154  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
155  | --exec | --exe | --ex)
156    ac_prev=exec_prefix ;;
157  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
158  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
159  | --exec=* | --exe=* | --ex=*)
160    exec_prefix="$ac_optarg" ;;
161
162  -gas | --gas | --ga | --g)
163    # Obsolete; use --with-gas.
164    with_gas=yes ;;
165
166  -help | --help | --hel | --he)
167    # Omit some internal or obsolete options to make the list less imposing.
168    # This message is too long to be a string in the A/UX 3.1 sh.
169    cat << EOF
170Usage: configure [options] [host]
171Options: [defaults in brackets after descriptions]
172Configuration:
173  --cache-file=FILE       cache test results in FILE
174  --help                  print this message
175  --no-create             do not create output files
176  --quiet, --silent       do not print \`checking...' messages
177  --version               print the version of autoconf that created configure
178Directory and file names:
179  --prefix=PREFIX         install architecture-independent files in PREFIX
180                          [$ac_default_prefix]
181  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
182                          [same as prefix]
183  --bindir=DIR            user executables in DIR [EPREFIX/bin]
184  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
185  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
186  --datadir=DIR           read-only architecture-independent data in DIR
187                          [PREFIX/share]
188  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
189  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
190                          [PREFIX/com]
191  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
192  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
193  --includedir=DIR        C header files in DIR [PREFIX/include]
194  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
195  --infodir=DIR           info documentation in DIR [PREFIX/info]
196  --mandir=DIR            man documentation in DIR [PREFIX/man]
197  --srcdir=DIR            find the sources in DIR [configure dir or ..]
198  --program-prefix=PREFIX prepend PREFIX to installed program names
199  --program-suffix=SUFFIX append SUFFIX to installed program names
200  --program-transform-name=PROGRAM
201                          run sed PROGRAM on installed program names
202EOF
203    cat << EOF
204Host type:
205  --build=BUILD           configure for building on BUILD [BUILD=HOST]
206  --host=HOST             configure for HOST [guessed]
207  --target=TARGET         configure for TARGET [TARGET=HOST]
208Features and packages:
209  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
210  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
211  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
212  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
213  --x-includes=DIR        X include files are in DIR
214  --x-libraries=DIR       X library files are in DIR
215EOF
216    if test -n "$ac_help"; then
217      echo "--enable and --with options recognized:$ac_help"
218    fi
219    exit 0 ;;
220
221  -host | --host | --hos | --ho)
222    ac_prev=host ;;
223  -host=* | --host=* | --hos=* | --ho=*)
224    host="$ac_optarg" ;;
225
226  -includedir | --includedir | --includedi | --included | --include \
227  | --includ | --inclu | --incl | --inc)
228    ac_prev=includedir ;;
229  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
230  | --includ=* | --inclu=* | --incl=* | --inc=*)
231    includedir="$ac_optarg" ;;
232
233  -infodir | --infodir | --infodi | --infod | --info | --inf)
234    ac_prev=infodir ;;
235  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
236    infodir="$ac_optarg" ;;
237
238  -libdir | --libdir | --libdi | --libd)
239    ac_prev=libdir ;;
240  -libdir=* | --libdir=* | --libdi=* | --libd=*)
241    libdir="$ac_optarg" ;;
242
243  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
244  | --libexe | --libex | --libe)
245    ac_prev=libexecdir ;;
246  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
247  | --libexe=* | --libex=* | --libe=*)
248    libexecdir="$ac_optarg" ;;
249
250  -localstatedir | --localstatedir | --localstatedi | --localstated \
251  | --localstate | --localstat | --localsta | --localst \
252  | --locals | --local | --loca | --loc | --lo)
253    ac_prev=localstatedir ;;
254  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
255  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
256  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
257    localstatedir="$ac_optarg" ;;
258
259  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
260    ac_prev=mandir ;;
261  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
262    mandir="$ac_optarg" ;;
263
264  -nfp | --nfp | --nf)
265    # Obsolete; use --without-fp.
266    with_fp=no ;;
267
268  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
269  | --no-cr | --no-c)
270    no_create=yes ;;
271
272  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
273  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
274    no_recursion=yes ;;
275
276  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
277  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
278  | --oldin | --oldi | --old | --ol | --o)
279    ac_prev=oldincludedir ;;
280  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
281  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
282  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
283    oldincludedir="$ac_optarg" ;;
284
285  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
286    ac_prev=prefix ;;
287  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
288    prefix="$ac_optarg" ;;
289
290  -program-prefix | --program-prefix | --program-prefi | --program-pref \
291  | --program-pre | --program-pr | --program-p)
292    ac_prev=program_prefix ;;
293  -program-prefix=* | --program-prefix=* | --program-prefi=* \
294  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
295    program_prefix="$ac_optarg" ;;
296
297  -program-suffix | --program-suffix | --program-suffi | --program-suff \
298  | --program-suf | --program-su | --program-s)
299    ac_prev=program_suffix ;;
300  -program-suffix=* | --program-suffix=* | --program-suffi=* \
301  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
302    program_suffix="$ac_optarg" ;;
303
304  -program-transform-name | --program-transform-name \
305  | --program-transform-nam | --program-transform-na \
306  | --program-transform-n | --program-transform- \
307  | --program-transform | --program-transfor \
308  | --program-transfo | --program-transf \
309  | --program-trans | --program-tran \
310  | --progr-tra | --program-tr | --program-t)
311    ac_prev=program_transform_name ;;
312  -program-transform-name=* | --program-transform-name=* \
313  | --program-transform-nam=* | --program-transform-na=* \
314  | --program-transform-n=* | --program-transform-=* \
315  | --program-transform=* | --program-transfor=* \
316  | --program-transfo=* | --program-transf=* \
317  | --program-trans=* | --program-tran=* \
318  | --progr-tra=* | --program-tr=* | --program-t=*)
319    program_transform_name="$ac_optarg" ;;
320
321  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
322  | -silent | --silent | --silen | --sile | --sil)
323    silent=yes ;;
324
325  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
326    ac_prev=sbindir ;;
327  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
328  | --sbi=* | --sb=*)
329    sbindir="$ac_optarg" ;;
330
331  -sharedstatedir | --sharedstatedir | --sharedstatedi \
332  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
333  | --sharedst | --shareds | --shared | --share | --shar \
334  | --sha | --sh)
335    ac_prev=sharedstatedir ;;
336  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
337  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
338  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
339  | --sha=* | --sh=*)
340    sharedstatedir="$ac_optarg" ;;
341
342  -site | --site | --sit)
343    ac_prev=site ;;
344  -site=* | --site=* | --sit=*)
345    site="$ac_optarg" ;;
346
347  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
348    ac_prev=srcdir ;;
349  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
350    srcdir="$ac_optarg" ;;
351
352  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
353  | --syscon | --sysco | --sysc | --sys | --sy)
354    ac_prev=sysconfdir ;;
355  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
356  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
357    sysconfdir="$ac_optarg" ;;
358
359  -target | --target | --targe | --targ | --tar | --ta | --t)
360    ac_prev=target ;;
361  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
362    target="$ac_optarg" ;;
363
364  -v | -verbose | --verbose | --verbos | --verbo | --verb)
365    verbose=yes ;;
366
367  -version | --version | --versio | --versi | --vers)
368    echo "configure generated by autoconf version 2.13"
369    exit 0 ;;
370
371  -with-* | --with-*)
372    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373    # Reject names that are not valid shell variable names.
374    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376    fi
377    ac_package=`echo $ac_package| sed 's/-/_/g'`
378    case "$ac_option" in
379      *=*) ;;
380      *) ac_optarg=yes ;;
381    esac
382    eval "with_${ac_package}='$ac_optarg'" ;;
383
384  -without-* | --without-*)
385    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
386    # Reject names that are not valid shell variable names.
387    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389    fi
390    ac_package=`echo $ac_package| sed 's/-/_/g'`
391    eval "with_${ac_package}=no" ;;
392
393  --x)
394    # Obsolete; use --with-x.
395    with_x=yes ;;
396
397  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
398  | --x-incl | --x-inc | --x-in | --x-i)
399    ac_prev=x_includes ;;
400  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
401  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
402    x_includes="$ac_optarg" ;;
403
404  -x-libraries | --x-libraries | --x-librarie | --x-librari \
405  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
406    ac_prev=x_libraries ;;
407  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
408  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
409    x_libraries="$ac_optarg" ;;
410
411  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
412    ;;
413
414  *)
415    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416      echo "configure: warning: $ac_option: invalid host type" 1>&2
417    fi
418    if test "x$nonopt" != xNONE; then
419      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420    fi
421    nonopt="$ac_option"
422    ;;
423
424  esac
425done
426
427if test -n "$ac_prev"; then
428  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
429fi
430
431trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432
433# File descriptor usage:
434# 0 standard input
435# 1 file creation
436# 2 errors and warnings
437# 3 some systems may open it to /dev/tty
438# 4 used on the Kubota Titan
439# 6 checking for... messages and results
440# 5 compiler messages saved in config.log
441if test "$silent" = yes; then
442  exec 6>/dev/null
443else
444  exec 6>&1
445fi
446exec 5>./config.log
447
448echo "\
449This file contains any messages produced by compilers while
450running configure, to aid debugging if configure makes a mistake.
451" 1>&5
452
453# Strip out --no-create and --no-recursion so they do not pile up.
454# Also quote any args containing shell metacharacters.
455ac_configure_args=
456for ac_arg
457do
458  case "$ac_arg" in
459  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
460  | --no-cr | --no-c) ;;
461  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
462  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
463  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
465  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
466  esac
467done
468
469# NLS nuisances.
470# Only set these to C if already set.  These must not be set unconditionally
471# because not all systems understand e.g. LANG=C (notably SCO).
472# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473# Non-C LC_CTYPE values break the ctype check.
474if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
475if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
476if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
477if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
478
479# confdefs.h avoids OS command line length limits that DEFS can exceed.
480rm -rf conftest* confdefs.h
481# AIX cpp loses on an empty file, so make sure it contains at least a newline.
482echo > confdefs.h
483
484# A filename unique to this package, relative to the directory that
485# configure is in, which we can look for to find out if srcdir is correct.
486ac_unique_file=mmalloc.cc
487
488# Find the source files, if location was not specified.
489if test -z "$srcdir"; then
490  ac_srcdir_defaulted=yes
491  # Try the directory containing this script, then its parent.
492  ac_prog=$0
493  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
495  srcdir=$ac_confdir
496  if test ! -r $srcdir/$ac_unique_file; then
497    srcdir=..
498  fi
499else
500  ac_srcdir_defaulted=no
501fi
502if test ! -r $srcdir/$ac_unique_file; then
503  if test "$ac_srcdir_defaulted" = yes; then
504    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
505  else
506    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
507  fi
508fi
509srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510
511# Prefer explicitly selected file to automatically selected ones.
512if test -z "$CONFIG_SITE"; then
513  if test "x$prefix" != xNONE; then
514    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
515  else
516    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
517  fi
518fi
519for ac_site_file in $CONFIG_SITE; do
520  if test -r "$ac_site_file"; then
521    echo "loading site script $ac_site_file"
522    . "$ac_site_file"
523  fi
524done
525
526if test -r "$cache_file"; then
527  echo "loading cache $cache_file"
528  . $cache_file
529else
530  echo "creating cache $cache_file"
531  > $cache_file
532fi
533
534ac_ext=c
535# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536ac_cpp='$CPP $CPPFLAGS'
537ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539cross_compiling=$ac_cv_prog_cc_cross
540
541ac_exeext=
542ac_objext=o
543if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
544  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
546    ac_n= ac_c='
547' ac_t='        '
548  else
549    ac_n=-n ac_c= ac_t=
550  fi
551else
552  ac_n= ac_c='\c' ac_t=
553fi
554
555
556
557
558
559echo $ac_n "checking uname for singular""... $ac_c" 1>&6
560echo "configure:561: checking uname for singular" >&5
561if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
562  echo $ac_n "(cached) $ac_c" 1>&6
563else
564  ac_cv_singuname="unknown"
565if test -r "singuname.sh"; then
566  if (/bin/sh singuname.sh >/dev/null 2>&1) then
567    ac_cv_singuname=`/bin/sh singuname.sh`
568  fi
569fi
570if test "$ac_cv_singuname" = unknown && test -r "../singuname.sh"; then
571  if (/bin/sh ../singuname.sh >/dev/null 2>&1) then
572    ac_cv_singuname=`/bin/sh ../singuname.sh`
573  fi
574fi
575
576fi
577
578echo "$ac_t""$ac_cv_singuname" 1>&6
579if test "$ac_cv_singuname" = unknown; then
580  echo "configure: warning: Unknown architecture: Check singuname.sh" 1>&2
581  ac_cv_singuname="unknown"
582fi
583cat >> confdefs.h <<EOF
584#define S_UNAME "$ac_cv_singuname"
585EOF
586
587SINGUNAME=$ac_cv_singuname
588
589
590if test "$ac_cv_singuname" = ix86-Win; then
591  EXEC_EXT=".exe"
592fi
593
594
595SING_UNAME=`echo $SINGUNAME | tr '-' '_' `
596
597
598# stupid Win programs do not like dots in their pathnames
599VERSION_SEP="-"
600
601
602SINGULAR_MAJOR_VERSION=${SINGULAR_MAJOR_VERSION:-2}
603SINGULAR_MINOR_VERSION=${SINGULAR_MINOR_VERSION:-1}
604SINGULAR_SUB_VERSION=${SINGULAR_SUB_VERSION:-2}
605SINGULAR_VERSION="${SINGULAR_VERSION:-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION}"
606VERSION_DATE=${VERSION_DATE:-"August 2001"}
607
608
609
610
611
612
613cat >> confdefs.h <<EOF
614#define SINGULAR_MAJOR_VERSION ${SINGULAR_MAJOR_VERSION}
615EOF
616
617cat >> confdefs.h <<EOF
618#define SINGULAR_MINOR_VERSION ${SINGULAR_MINOR_VERSION}
619EOF
620
621cat >> confdefs.h <<EOF
622#define SINGULAR_SUB_VERSION ${SINGULAR_SUB_VERSION}
623EOF
624
625cat >> confdefs.h <<EOF
626#define S_VERSION1 "${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}"
627EOF
628
629cat >> confdefs.h <<EOF
630#define S_VERSION2 "${VERSION_DATE}"
631EOF
632
633cat >> confdefs.h <<EOF
634#define SINGULAR_SUB_VERSION ${SINGULAR_SUB_VERSION}
635EOF
636
637
638
639if test "${CXXFLAGS+set}" != set; then
640  ac_cxxflags_set=no
641  CXXFLAGS="-O"
642fi
643if test "${CFLAGS+set}" != set; then
644  CFLAGS="-O"
645  ac_cflags_set=no
646fi
647
648# check whether CXX was set by user as env variable
649if test "${CXX+set}" != set; then
650  ac_cxx_set=no
651else
652  ac_cxx_set=yes
653fi
654# Extract the first word of "gcc", so it can be a program name with args.
655set dummy gcc; ac_word=$2
656echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
657echo "configure:658: checking for $ac_word" >&5
658if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
659  echo $ac_n "(cached) $ac_c" 1>&6
660else
661  if test -n "$CC"; then
662  ac_cv_prog_CC="$CC" # Let the user override the test.
663else
664  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
665  ac_dummy="$PATH"
666  for ac_dir in $ac_dummy; do
667    test -z "$ac_dir" && ac_dir=.
668    if test -f $ac_dir/$ac_word; then
669      ac_cv_prog_CC="gcc"
670      break
671    fi
672  done
673  IFS="$ac_save_ifs"
674fi
675fi
676CC="$ac_cv_prog_CC"
677if test -n "$CC"; then
678  echo "$ac_t""$CC" 1>&6
679else
680  echo "$ac_t""no" 1>&6
681fi
682
683if test -z "$CC"; then
684  # Extract the first word of "cc", so it can be a program name with args.
685set dummy cc; ac_word=$2
686echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
687echo "configure:688: checking for $ac_word" >&5
688if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
689  echo $ac_n "(cached) $ac_c" 1>&6
690else
691  if test -n "$CC"; then
692  ac_cv_prog_CC="$CC" # Let the user override the test.
693else
694  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
695  ac_prog_rejected=no
696  ac_dummy="$PATH"
697  for ac_dir in $ac_dummy; do
698    test -z "$ac_dir" && ac_dir=.
699    if test -f $ac_dir/$ac_word; then
700      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
701        ac_prog_rejected=yes
702        continue
703      fi
704      ac_cv_prog_CC="cc"
705      break
706    fi
707  done
708  IFS="$ac_save_ifs"
709if test $ac_prog_rejected = yes; then
710  # We found a bogon in the path, so make sure we never use it.
711  set dummy $ac_cv_prog_CC
712  shift
713  if test $# -gt 0; then
714    # We chose a different compiler from the bogus one.
715    # However, it has the same basename, so the bogon will be chosen
716    # first if we set CC to just the basename; use the full file name.
717    shift
718    set dummy "$ac_dir/$ac_word" "$@"
719    shift
720    ac_cv_prog_CC="$@"
721  fi
722fi
723fi
724fi
725CC="$ac_cv_prog_CC"
726if test -n "$CC"; then
727  echo "$ac_t""$CC" 1>&6
728else
729  echo "$ac_t""no" 1>&6
730fi
731
732  if test -z "$CC"; then
733    case "`uname -s`" in
734    *win32* | *WIN32*)
735      # Extract the first word of "cl", so it can be a program name with args.
736set dummy cl; ac_word=$2
737echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
738echo "configure:739: checking for $ac_word" >&5
739if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
740  echo $ac_n "(cached) $ac_c" 1>&6
741else
742  if test -n "$CC"; then
743  ac_cv_prog_CC="$CC" # Let the user override the test.
744else
745  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
746  ac_dummy="$PATH"
747  for ac_dir in $ac_dummy; do
748    test -z "$ac_dir" && ac_dir=.
749    if test -f $ac_dir/$ac_word; then
750      ac_cv_prog_CC="cl"
751      break
752    fi
753  done
754  IFS="$ac_save_ifs"
755fi
756fi
757CC="$ac_cv_prog_CC"
758if test -n "$CC"; then
759  echo "$ac_t""$CC" 1>&6
760else
761  echo "$ac_t""no" 1>&6
762fi
763 ;;
764    esac
765  fi
766  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
767fi
768
769echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
770echo "configure:771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
771
772ac_ext=c
773# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
774ac_cpp='$CPP $CPPFLAGS'
775ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
776ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
777cross_compiling=$ac_cv_prog_cc_cross
778
779cat > conftest.$ac_ext << EOF
780
781#line 782 "configure"
782#include "confdefs.h"
783
784main(){return(0);}
785EOF
786if { (eval echo configure:787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
787  ac_cv_prog_cc_works=yes
788  # If we can't run a trivial program, we are probably using a cross compiler.
789  if (./conftest; exit) 2>/dev/null; then
790    ac_cv_prog_cc_cross=no
791  else
792    ac_cv_prog_cc_cross=yes
793  fi
794else
795  echo "configure: failed program was:" >&5
796  cat conftest.$ac_ext >&5
797  ac_cv_prog_cc_works=no
798fi
799rm -fr conftest*
800ac_ext=c
801# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
802ac_cpp='$CPP $CPPFLAGS'
803ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
804ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
805cross_compiling=$ac_cv_prog_cc_cross
806
807echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
808if test $ac_cv_prog_cc_works = no; then
809  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
810fi
811echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
812echo "configure:813: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
813echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
814cross_compiling=$ac_cv_prog_cc_cross
815
816echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
817echo "configure:818: checking whether we are using GNU C" >&5
818if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
819  echo $ac_n "(cached) $ac_c" 1>&6
820else
821  cat > conftest.c <<EOF
822#ifdef __GNUC__
823  yes;
824#endif
825EOF
826if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
827  ac_cv_prog_gcc=yes
828else
829  ac_cv_prog_gcc=no
830fi
831fi
832
833echo "$ac_t""$ac_cv_prog_gcc" 1>&6
834
835if test $ac_cv_prog_gcc = yes; then
836  GCC=yes
837else
838  GCC=
839fi
840
841ac_test_CFLAGS="${CFLAGS+set}"
842ac_save_CFLAGS="$CFLAGS"
843CFLAGS=
844echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
845echo "configure:846: checking whether ${CC-cc} accepts -g" >&5
846if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
847  echo $ac_n "(cached) $ac_c" 1>&6
848else
849  echo 'void f(){}' > conftest.c
850if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
851  ac_cv_prog_cc_g=yes
852else
853  ac_cv_prog_cc_g=no
854fi
855rm -f conftest*
856
857fi
858
859echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
860if test "$ac_test_CFLAGS" = set; then
861  CFLAGS="$ac_save_CFLAGS"
862elif test $ac_cv_prog_cc_g = yes; then
863  if test "$GCC" = yes; then
864    CFLAGS="-g -O2"
865  else
866    CFLAGS="-g"
867  fi
868else
869  if test "$GCC" = yes; then
870    CFLAGS="-O2"
871  else
872    CFLAGS=
873  fi
874fi
875
876echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
877echo "configure:878: checking how to run the C preprocessor" >&5
878# On Suns, sometimes $CPP names a directory.
879if test -n "$CPP" && test -d "$CPP"; then
880  CPP=
881fi
882if test -z "$CPP"; then
883if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
884  echo $ac_n "(cached) $ac_c" 1>&6
885else
886    # This must be in double quotes, not single quotes, because CPP may get
887  # substituted into the Makefile and "${CC-cc}" will confuse make.
888  CPP="${CC-cc} -E"
889  # On the NeXT, cc -E runs the code through the compiler's parser,
890  # not just through cpp.
891  cat > conftest.$ac_ext <<EOF
892#line 893 "configure"
893#include "confdefs.h"
894#include <assert.h>
895Syntax Error
896EOF
897ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
898{ (eval echo configure:899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
899ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
900if test -z "$ac_err"; then
901  :
902else
903  echo "$ac_err" >&5
904  echo "configure: failed program was:" >&5
905  cat conftest.$ac_ext >&5
906  rm -rf conftest*
907  CPP="${CC-cc} -E -traditional-cpp"
908  cat > conftest.$ac_ext <<EOF
909#line 910 "configure"
910#include "confdefs.h"
911#include <assert.h>
912Syntax Error
913EOF
914ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
915{ (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
916ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
917if test -z "$ac_err"; then
918  :
919else
920  echo "$ac_err" >&5
921  echo "configure: failed program was:" >&5
922  cat conftest.$ac_ext >&5
923  rm -rf conftest*
924  CPP="${CC-cc} -nologo -E"
925  cat > conftest.$ac_ext <<EOF
926#line 927 "configure"
927#include "confdefs.h"
928#include <assert.h>
929Syntax Error
930EOF
931ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
932{ (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
933ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
934if test -z "$ac_err"; then
935  :
936else
937  echo "$ac_err" >&5
938  echo "configure: failed program was:" >&5
939  cat conftest.$ac_ext >&5
940  rm -rf conftest*
941  CPP=/lib/cpp
942fi
943rm -f conftest*
944fi
945rm -f conftest*
946fi
947rm -f conftest*
948  ac_cv_prog_CPP="$CPP"
949fi
950  CPP="$ac_cv_prog_CPP"
951else
952  ac_cv_prog_CPP="$CPP"
953fi
954echo "$ac_t""$CPP" 1>&6
955
956for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
957do
958# Extract the first word of "$ac_prog", so it can be a program name with args.
959set dummy $ac_prog; ac_word=$2
960echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
961echo "configure:962: checking for $ac_word" >&5
962if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
963  echo $ac_n "(cached) $ac_c" 1>&6
964else
965  if test -n "$CXX"; then
966  ac_cv_prog_CXX="$CXX" # Let the user override the test.
967else
968  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
969  ac_dummy="$PATH"
970  for ac_dir in $ac_dummy; do
971    test -z "$ac_dir" && ac_dir=.
972    if test -f $ac_dir/$ac_word; then
973      ac_cv_prog_CXX="$ac_prog"
974      break
975    fi
976  done
977  IFS="$ac_save_ifs"
978fi
979fi
980CXX="$ac_cv_prog_CXX"
981if test -n "$CXX"; then
982  echo "$ac_t""$CXX" 1>&6
983else
984  echo "$ac_t""no" 1>&6
985fi
986
987test -n "$CXX" && break
988done
989test -n "$CXX" || CXX="gcc"
990
991
992echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
993echo "configure:994: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
994
995ac_ext=C
996# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
997ac_cpp='$CXXCPP $CPPFLAGS'
998ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
999ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1000cross_compiling=$ac_cv_prog_cxx_cross
1001
1002cat > conftest.$ac_ext << EOF
1003
1004#line 1005 "configure"
1005#include "confdefs.h"
1006
1007int main(){return(0);}
1008EOF
1009if { (eval echo configure:1010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1010  ac_cv_prog_cxx_works=yes
1011  # If we can't run a trivial program, we are probably using a cross compiler.
1012  if (./conftest; exit) 2>/dev/null; then
1013    ac_cv_prog_cxx_cross=no
1014  else
1015    ac_cv_prog_cxx_cross=yes
1016  fi
1017else
1018  echo "configure: failed program was:" >&5
1019  cat conftest.$ac_ext >&5
1020  ac_cv_prog_cxx_works=no
1021fi
1022rm -fr conftest*
1023ac_ext=c
1024# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1025ac_cpp='$CPP $CPPFLAGS'
1026ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1027ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1028cross_compiling=$ac_cv_prog_cc_cross
1029
1030echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1031if test $ac_cv_prog_cxx_works = no; then
1032  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1033fi
1034echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1035echo "configure:1036: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1036echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1037cross_compiling=$ac_cv_prog_cxx_cross
1038
1039echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1040echo "configure:1041: checking whether we are using GNU C++" >&5
1041if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1042  echo $ac_n "(cached) $ac_c" 1>&6
1043else
1044  cat > conftest.C <<EOF
1045#ifdef __GNUC__
1046  yes;
1047#endif
1048EOF
1049if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1050  ac_cv_prog_gxx=yes
1051else
1052  ac_cv_prog_gxx=no
1053fi
1054fi
1055
1056echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1057
1058if test $ac_cv_prog_gxx = yes; then
1059  GXX=yes
1060else
1061  GXX=
1062fi
1063
1064ac_test_CXXFLAGS="${CXXFLAGS+set}"
1065ac_save_CXXFLAGS="$CXXFLAGS"
1066CXXFLAGS=
1067echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1068echo "configure:1069: checking whether ${CXX-g++} accepts -g" >&5
1069if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1070  echo $ac_n "(cached) $ac_c" 1>&6
1071else
1072  echo 'void f(){}' > conftest.cc
1073if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1074  ac_cv_prog_cxx_g=yes
1075else
1076  ac_cv_prog_cxx_g=no
1077fi
1078rm -f conftest*
1079
1080fi
1081
1082echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1083if test "$ac_test_CXXFLAGS" = set; then
1084  CXXFLAGS="$ac_save_CXXFLAGS"
1085elif test $ac_cv_prog_cxx_g = yes; then
1086  if test "$GXX" = yes; then
1087    CXXFLAGS="-g -O2"
1088  else
1089    CXXFLAGS="-g"
1090  fi
1091else
1092  if test "$GXX" = yes; then
1093    CXXFLAGS="-O2"
1094  else
1095    CXXFLAGS=
1096  fi
1097fi
1098
1099ac_aux_dir=
1100for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1101  if test -f $ac_dir/install-sh; then
1102    ac_aux_dir=$ac_dir
1103    ac_install_sh="$ac_aux_dir/install-sh -c"
1104    break
1105  elif test -f $ac_dir/install.sh; then
1106    ac_aux_dir=$ac_dir
1107    ac_install_sh="$ac_aux_dir/install.sh -c"
1108    break
1109  fi
1110done
1111if test -z "$ac_aux_dir"; then
1112  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1113fi
1114ac_config_guess=$ac_aux_dir/config.guess
1115ac_config_sub=$ac_aux_dir/config.sub
1116ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1117
1118# Find a good install program.  We prefer a C program (faster),
1119# so one script is as good as another.  But avoid the broken or
1120# incompatible versions:
1121# SysV /etc/install, /usr/sbin/install
1122# SunOS /usr/etc/install
1123# IRIX /sbin/install
1124# AIX /bin/install
1125# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1126# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1127# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1128# ./install, which can be erroneously created by make from ./install.sh.
1129echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1130echo "configure:1131: checking for a BSD compatible install" >&5
1131if test -z "$INSTALL"; then
1132if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1133  echo $ac_n "(cached) $ac_c" 1>&6
1134else
1135    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1136  for ac_dir in $PATH; do
1137    # Account for people who put trailing slashes in PATH elements.
1138    case "$ac_dir/" in
1139    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1140    *)
1141      # OSF1 and SCO ODT 3.0 have their own names for install.
1142      # Don't use installbsd from OSF since it installs stuff as root
1143      # by default.
1144      for ac_prog in ginstall scoinst install; do
1145        if test -f $ac_dir/$ac_prog; then
1146          if test $ac_prog = install &&
1147            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1148            # AIX install.  It has an incompatible calling convention.
1149            :
1150          else
1151            ac_cv_path_install="$ac_dir/$ac_prog -c"
1152            break 2
1153          fi
1154        fi
1155      done
1156      ;;
1157    esac
1158  done
1159  IFS="$ac_save_IFS"
1160
1161fi
1162  if test "${ac_cv_path_install+set}" = set; then
1163    INSTALL="$ac_cv_path_install"
1164  else
1165    # As a last resort, use the slow shell script.  We don't cache a
1166    # path for INSTALL within a source directory, because that will
1167    # break other packages using the cache if that directory is
1168    # removed, or if the path is relative.
1169    INSTALL="$ac_install_sh"
1170  fi
1171fi
1172echo "$ac_t""$INSTALL" 1>&6
1173
1174# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1175# It thinks the first close brace ends the variable substitution.
1176test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1177
1178test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1179
1180test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1181
1182echo $ac_n "checking for AIX""... $ac_c" 1>&6
1183echo "configure:1184: checking for AIX" >&5
1184cat > conftest.$ac_ext <<EOF
1185#line 1186 "configure"
1186#include "confdefs.h"
1187#ifdef _AIX
1188  yes
1189#endif
1190
1191EOF
1192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1193  egrep "yes" >/dev/null 2>&1; then
1194  rm -rf conftest*
1195  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1196#define _ALL_SOURCE 1
1197EOF
1198
1199else
1200  rm -rf conftest*
1201  echo "$ac_t""no" 1>&6
1202fi
1203rm -f conftest*
1204
1205
1206
1207# test for gcc-version: gcc2: prefer CC=gcc, CXX=gcc
1208#                       gcc3:        CC=gcc  CXX=g++
1209#                       other:       CC=cc   CXX=c++
1210echo $ac_n "checking can CC compile C++ files""... $ac_c" 1>&6
1211echo "configure:1212: checking can CC compile C++ files" >&5
1212if eval "test \"`echo '$''{'ac_cv_c_cpp'+set}'`\" = set"; then
1213  echo $ac_n "(cached) $ac_c" 1>&6
1214else
1215  if test "$cross_compiling" = yes; then
1216  ac_cv_c_cpp=unknown
1217else
1218  cat > conftest.$ac_ext <<EOF
1219#line 1220 "configure"
1220#include "confdefs.h"
1221int main() {
1222FILE *f=fopen("conftestval", "w");
1223#ifdef __GNUC__
1224char *p=__VERSION__;
1225if (!f) exit(1);
1226if (p0=='2') fprintf(f, "gcc2\n");
1227else if (p0=='3') fprintf(f, "gcc3\n");
1228else fprintf(f, "gcc_unknown\n");
1229#else
1230if (!f) exit(1);
1231fprintf(f, "unknown\n");
1232#endif
1233fclose(f);exit(0); }
1234EOF
1235if { (eval echo configure:1236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1236then
1237  ac_cv_c_cpp=`cat conftestval`
1238else
1239  echo "configure: failed program was:" >&5
1240  cat conftest.$ac_ext >&5
1241  rm -fr conftest*
1242  ac_cv_c_cpp=unknown
1243fi
1244rm -fr conftest*
1245fi
1246
1247fi
1248
1249
1250# we prefer using gcc for compiling C++ files, provided the user did
1251# not overwrite it explicitely
1252if test "${GXX}" = yes && test "${ac_cxx_set}" = no; then
1253if test "${ac_cv_c_cpp}" = gcc2; then
1254  CXX=gcc
1255fi
1256temp_cflags=${CXXFLAGS}
1257
1258ac_ext=C
1259# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1260ac_cpp='$CXXCPP $CPPFLAGS'
1261ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1262ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1263cross_compiling=$ac_cv_prog_cxx_cross
1264
1265# check whether gcc accepts --no-rtti
1266echo $ac_n "checking whether gcc accepts --no-rtti""... $ac_c" 1>&6
1267echo "configure:1268: checking whether gcc accepts --no-rtti" >&5
1268CXXFLAGS="${CXXFLAGS} --no-rtti"
1269if eval "test \"`echo '$''{'ac_cv_cxx_have_rtti'+set}'`\" = set"; then
1270  echo $ac_n "(cached) $ac_c" 1>&6
1271else
1272  cat > conftest.$ac_ext <<EOF
1273#line 1274 "configure"
1274#include "confdefs.h"
1275
1276int main() {
1277
1278; return 0; }
1279EOF
1280if { (eval echo configure:1281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1281  rm -rf conftest*
1282  ac_cv_cxx_have_rtti=yes
1283else
1284  echo "configure: failed program was:" >&5
1285  cat conftest.$ac_ext >&5
1286  rm -rf conftest*
1287  ac_cv_cxx_have_rtti=no
1288fi
1289rm -f conftest*
1290
1291fi
1292
1293echo "$ac_t""${ac_cv_cxx_have_rtti}" 1>&6
1294if test "${ac_cv_cxx_have_rtti}" != yes; then
1295CXXFLAGS=$temp_flags
1296else
1297CXX="${CXX} --no-rtti"
1298fi
1299
1300# check whether gcc accepts --no-exceptions
1301echo $ac_n "checking whether gcc accepts --no-exceptions""... $ac_c" 1>&6
1302echo "configure:1303: checking whether gcc accepts --no-exceptions" >&5
1303CXXFLAGS="${CXXFLAGS} --no-exceptions"
1304if eval "test \"`echo '$''{'ac_cv_cxx_have_exceptions'+set}'`\" = set"; then
1305  echo $ac_n "(cached) $ac_c" 1>&6
1306else
1307  cat > conftest.$ac_ext <<EOF
1308#line 1309 "configure"
1309#include "confdefs.h"
1310
1311int main() {
1312
1313; return 0; }
1314EOF
1315if { (eval echo configure:1316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1316  rm -rf conftest*
1317  ac_cv_cxx_have_exceptions=yes
1318else
1319  echo "configure: failed program was:" >&5
1320  cat conftest.$ac_ext >&5
1321  rm -rf conftest*
1322  ac_cv_cxx_have_exceptions=no
1323fi
1324rm -f conftest*
1325
1326fi
1327
1328echo "$ac_t""${ac_cv_cxx_have_exceptions}" 1>&6
1329if test "${ac_cv_cxx_have_exceptions}" != yes; then
1330CXXFLAGS=$temp_flags
1331else
1332CXX="${CXX} --no-exceptions"
1333fi
1334
1335ac_ext=c
1336# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1337ac_cpp='$CPP $CPPFLAGS'
1338ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1339ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1340cross_compiling=$ac_cv_prog_cc_cross
1341
1342CXXFLAGS=$temp_flags
1343
1344fi
1345
1346# check whether the compiler accepts -pipe
1347echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6
1348echo "configure:1349: checking whether compiler accepts -pipe" >&5
1349temp_cflags=${CFLAGS}
1350CFLAGS="${CFLAGS} -pipe"
1351if eval "test \"`echo '$''{'ac_cv_cxx_have_pipe'+set}'`\" = set"; then
1352  echo $ac_n "(cached) $ac_c" 1>&6
1353else
1354  cat > conftest.$ac_ext <<EOF
1355#line 1356 "configure"
1356#include "confdefs.h"
1357
1358int main() {
1359
1360; return 0; }
1361EOF
1362if { (eval echo configure:1363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1363  rm -rf conftest*
1364  ac_cv_cxx_have_pipe=yes
1365else
1366  echo "configure: failed program was:" >&5
1367  cat conftest.$ac_ext >&5
1368  rm -rf conftest*
1369  ac_cv_cxx_have_pipe=no
1370fi
1371rm -f conftest*
1372
1373fi
1374
1375echo "$ac_t""${ac_cv_cxx_have_pipe}" 1>&6
1376CFLAGS=${temp_cflags}
1377if test "${ac_cv_cxx_have_pipe}" != yes; then
1378  PIPE=
1379else
1380  PIPE="-pipe"
1381fi
1382
1383
1384# Customize CFLAGS
1385echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
1386echo "configure:1387: checking whether _AIX is defined" >&5
1387if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
1388  echo $ac_n "(cached) $ac_c" 1>&6
1389else
1390  cat > conftest.$ac_ext <<EOF
1391#line 1392 "configure"
1392#include "confdefs.h"
1393#ifdef _AIX
1394    yes
1395#endif
1396
1397EOF
1398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1399  egrep "yes" >/dev/null 2>&1; then
1400  rm -rf conftest*
1401  ac_cv_is_aix=yes
1402else
1403  rm -rf conftest*
1404  ac_cv_is_aix=no
1405fi
1406rm -f conftest*
1407
1408fi
1409
1410if test "$ac_cv_is_aix" = yes; then
1411  echo "$ac_t""yes" 1>&6
1412else
1413  echo "$ac_t""no" 1>&6
1414fi
1415
1416# we know best when compiling with gcc
1417if test "${GXX}" = yes; then
1418  if test "$ac_cxxflags_set" = no; then
1419    CXXFLAGS="-O3 -w -fomit-frame-pointer"
1420  fi
1421  CXXTEMPLFLAGS="-fno-implicit-templates"
1422  if test "$ac_cv_is_aix" = yes; then
1423    CXXNOOPTFLAGS="-w"
1424  else
1425    CXXNOOPTFLAGS=$CXXFLAGS
1426  fi
1427  STATIC_LDFLAGS="-static"
1428else
1429  CXXTEMPFLAGS=""
1430  CXXNOOPTFLAGS=$CXXFLAGS
1431  STATIC_LDFLAGS=""
1432fi
1433
1434
1435
1436
1437if test "${GCC}" = yes && test "$ac_cflags_set" = no ; then
1438  CFLAGS="-O3 -w -fomit-frame-pointer"
1439fi
1440
1441echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1442echo "configure:1443: checking whether ${MAKE-make} sets \${MAKE}" >&5
1443set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1444if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1445  echo $ac_n "(cached) $ac_c" 1>&6
1446else
1447  cat > conftestmake <<\EOF
1448all:
1449        @echo 'ac_maketemp="${MAKE}"'
1450EOF
1451# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1452eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1453if test -n "$ac_maketemp"; then
1454  eval ac_cv_prog_make_${ac_make}_set=yes
1455else
1456  eval ac_cv_prog_make_${ac_make}_set=no
1457fi
1458rm -f conftestmake
1459fi
1460if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1461  echo "$ac_t""yes" 1>&6
1462  SET_MAKE=
1463else
1464  echo "$ac_t""no" 1>&6
1465  SET_MAKE="MAKE=${MAKE-make}"
1466fi
1467
1468
1469
1470
1471
1472# expand prefix
1473test "x$prefix" = xNONE && prefix=$ac_default_prefix
1474if test "${with_rootdir+set}" != set; then
1475  cat >> confdefs.h <<EOF
1476#define S_ROOT_DIR "${prefix}"
1477EOF
1478
1479else
1480  cat >> confdefs.h <<EOF
1481#define S_ROOT_DIR "${with_rootdir}"
1482EOF
1483
1484fi
1485
1486# expand exec_prefixad
1487if test "x$exec_prefix" = xNONE; then
1488 exec_prefix=${prefix}/${ac_cv_singuname}
1489fi
1490
1491# expand bindir
1492test "x$bindir" = 'x${exec_prefix}/bin' && bindir="${exec_prefix}"
1493SINGULAR=${SINGULAR:-$bindir/Singular-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION}
1494
1495cat >> confdefs.h <<EOF
1496#define S_BIN_DIR "${bindir}"
1497EOF
1498
1499
1500# expand libdir
1501test "x$libdir" = 'x${exec_prefix}/lib'&& libdir="${exec_prefix}/lib"
1502
1503# expand includedir
1504test "x$includedir" = 'x${prefix}/include' && includedir="${exec_prefix}/include"
1505
1506# add to -I to CPPFLAGS and and -L to LDFLAGS, just to be sure
1507LDFLAGS="-L${libdir} ${LDFLAGS} -L/usr/local/lib"
1508CPPFLAGS="-I${includedir} ${CPPFLAGS} -I/usr/local/include"
1509
1510# this is a work-around to include the right term.h
1511if test "$ac_cv_singuname" = SunOS-5; then
1512CPPFLAGS="-I/usr/xpg4/include ${CPPFLAGS}"
1513fi
1514
1515
1516
1517# lex
1518if test "${with_lex+set}" != set; then
1519  echo $ac_n "checking for flex""... $ac_c" 1>&6
1520echo "configure:1521: checking for flex" >&5
1521    if eval "test \"`echo '$''{'ac_cv_prog_flex'+set}'`\" = set"; then
1522  echo $ac_n "(cached) $ac_c" 1>&6
1523else
1524  if (flex --version >/dev/null 2>&1)
1525  then
1526    if (flex --version | egrep "[2-9]\.[5-9]" >/dev/null 2>&1)
1527    then
1528      ac_cv_prog_flex=flex
1529    fi
1530  fi
1531 
1532fi
1533
1534    if test "${ac_cv_prog_flex+set}" = set; then
1535    echo "$ac_t""flex" 1>&6
1536    LEX=flex
1537   
1538  else
1539    { echo "configure: error: can not find flex with version greater 2.4" 1>&2; exit 1; }
1540  fi
1541elif test "${with_lex}" = no; then
1542  echo "configure: warning: building without lex -- make might fail" 1>&2
1543else
1544  unset LEX
1545  unset ac_cv_prog_LEX
1546  for ac_prog in ${with_lex}
1547do
1548# Extract the first word of "$ac_prog", so it can be a program name with args.
1549set dummy $ac_prog; ac_word=$2
1550echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1551echo "configure:1552: checking for $ac_word" >&5
1552if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1553  echo $ac_n "(cached) $ac_c" 1>&6
1554else
1555  if test -n "$LEX"; then
1556  ac_cv_prog_LEX="$LEX" # Let the user override the test.
1557else
1558  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1559  ac_dummy="$PATH"
1560  for ac_dir in $ac_dummy; do
1561    test -z "$ac_dir" && ac_dir=.
1562    if test -f $ac_dir/$ac_word; then
1563      ac_cv_prog_LEX="$ac_prog"
1564      break
1565    fi
1566  done
1567  IFS="$ac_save_ifs"
1568fi
1569fi
1570LEX="$ac_cv_prog_LEX"
1571if test -n "$LEX"; then
1572  echo "$ac_t""$LEX" 1>&6
1573else
1574  echo "$ac_t""no" 1>&6
1575fi
1576
1577test -n "$LEX" && break
1578done
1579
1580  if test "x${LEX}" = x; then
1581    echo "configure: warning: building without lex -- make might fail" 1>&2
1582  fi
1583fi
1584
1585# bison
1586for ac_prog in bison
1587do
1588# Extract the first word of "$ac_prog", so it can be a program name with args.
1589set dummy $ac_prog; ac_word=$2
1590echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1591echo "configure:1592: checking for $ac_word" >&5
1592if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1593  echo $ac_n "(cached) $ac_c" 1>&6
1594else
1595  if test -n "$BISON"; then
1596  ac_cv_prog_BISON="$BISON" # Let the user override the test.
1597else
1598  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1599  ac_dummy="$PATH"
1600  for ac_dir in $ac_dummy; do
1601    test -z "$ac_dir" && ac_dir=.
1602    if test -f $ac_dir/$ac_word; then
1603      ac_cv_prog_BISON="$ac_prog"
1604      break
1605    fi
1606  done
1607  IFS="$ac_save_ifs"
1608fi
1609fi
1610BISON="$ac_cv_prog_BISON"
1611if test -n "$BISON"; then
1612  echo "$ac_t""$BISON" 1>&6
1613else
1614  echo "$ac_t""no" 1>&6
1615fi
1616
1617test -n "$BISON" && break
1618done
1619
1620if test "${BISON+set}" != set; then
1621  echo "configure: warning: did not find bison -- make might fail" 1>&2
1622fi
1623
1624# ln -s
1625echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1626echo "configure:1627: checking whether ln -s works" >&5
1627if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1628  echo $ac_n "(cached) $ac_c" 1>&6
1629else
1630  rm -f conftestdata
1631if ln -s X conftestdata 2>/dev/null
1632then
1633  rm -f conftestdata
1634  ac_cv_prog_LN_S="ln -s"
1635else
1636  ac_cv_prog_LN_S=ln
1637fi
1638fi
1639LN_S="$ac_cv_prog_LN_S"
1640if test "$ac_cv_prog_LN_S" = "ln -s"; then
1641  echo "$ac_t""yes" 1>&6
1642else
1643  echo "$ac_t""no" 1>&6
1644fi
1645
1646
1647for ac_prog in perl5 perl
1648do
1649# Extract the first word of "$ac_prog", so it can be a program name with args.
1650set dummy $ac_prog; ac_word=$2
1651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1652echo "configure:1653: checking for $ac_word" >&5
1653if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
1654  echo $ac_n "(cached) $ac_c" 1>&6
1655else
1656  if test -n "$PERL"; then
1657  ac_cv_prog_PERL="$PERL" # Let the user override the test.
1658else
1659  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1660  ac_dummy="$PATH"
1661  for ac_dir in $ac_dummy; do
1662    test -z "$ac_dir" && ac_dir=.
1663    if test -f $ac_dir/$ac_word; then
1664      ac_cv_prog_PERL="$ac_prog"
1665      break
1666    fi
1667  done
1668  IFS="$ac_save_ifs"
1669fi
1670fi
1671PERL="$ac_cv_prog_PERL"
1672if test -n "$PERL"; then
1673  echo "$ac_t""$PERL" 1>&6
1674else
1675  echo "$ac_t""no" 1>&6
1676fi
1677
1678test -n "$PERL" && break
1679done
1680
1681
1682# lib checks
1683# under cygwin, we should not explicitly link with -lm, except for
1684# it really is the last thing to link with
1685if test "$ac_cv_singuname" != ix86-Win; then
1686echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
1687echo "configure:1688: checking for atof in -lm" >&5
1688ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
1689if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1690  echo $ac_n "(cached) $ac_c" 1>&6
1691else
1692  ac_save_LIBS="$LIBS"
1693LIBS="-lm  $LIBS"
1694cat > conftest.$ac_ext <<EOF
1695#line 1696 "configure"
1696#include "confdefs.h"
1697/* Override any gcc2 internal prototype to avoid an error.  */
1698/* We use char because int might match the return type of a gcc2
1699    builtin and then its argument prototype would still apply.  */
1700char atof();
1701
1702int main() {
1703atof()
1704; return 0; }
1705EOF
1706if { (eval echo configure:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1707  rm -rf conftest*
1708  eval "ac_cv_lib_$ac_lib_var=yes"
1709else
1710  echo "configure: failed program was:" >&5
1711  cat conftest.$ac_ext >&5
1712  rm -rf conftest*
1713  eval "ac_cv_lib_$ac_lib_var=no"
1714fi
1715rm -f conftest*
1716LIBS="$ac_save_LIBS"
1717
1718fi
1719if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1720  echo "$ac_t""yes" 1>&6
1721    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1722    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1723  cat >> confdefs.h <<EOF
1724#define $ac_tr_lib 1
1725EOF
1726
1727  LIBS="-lm $LIBS"
1728
1729else
1730  echo "$ac_t""no" 1>&6
1731fi
1732
1733fi
1734SAVE_LIBS=${LIBS}
1735LIBS=
1736
1737# check for dl lib
1738case "$ac_cv_singuname" in
1739        HPUX*)
1740          echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
1741echo "configure:1742: checking for shl_load in -ldld" >&5
1742ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
1743if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1744  echo $ac_n "(cached) $ac_c" 1>&6
1745else
1746  ac_save_LIBS="$LIBS"
1747LIBS="-ldld  $LIBS"
1748cat > conftest.$ac_ext <<EOF
1749#line 1750 "configure"
1750#include "confdefs.h"
1751/* Override any gcc2 internal prototype to avoid an error.  */
1752/* We use char because int might match the return type of a gcc2
1753    builtin and then its argument prototype would still apply.  */
1754char shl_load();
1755
1756int main() {
1757shl_load()
1758; return 0; }
1759EOF
1760if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1761  rm -rf conftest*
1762  eval "ac_cv_lib_$ac_lib_var=yes"
1763else
1764  echo "configure: failed program was:" >&5
1765  cat conftest.$ac_ext >&5
1766  rm -rf conftest*
1767  eval "ac_cv_lib_$ac_lib_var=no"
1768fi
1769rm -f conftest*
1770LIBS="$ac_save_LIBS"
1771
1772fi
1773if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1774  echo "$ac_t""yes" 1>&6
1775    ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1776    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1777  cat >> confdefs.h <<EOF
1778#define $ac_tr_lib 1
1779EOF
1780
1781  LIBS="-ldld $LIBS"
1782
1783else
1784  echo "$ac_t""no" 1>&6
1785fi
1786
1787          if test "$ac_cv_lib_dld_shl_load" = yes; then
1788                LD_DYN_FLAGS="-ldld -Xlinker -E"
1789                SFLAGS="-fpic -fPIC -DPIC"
1790                SLDFLAGS="-fPIC -DPIC -shared"
1791                LD=gcc
1792                ac_lib_dl=yes
1793          fi
1794        ;;
1795        *Linux*)
1796          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1797echo "configure:1798: checking for dlopen in -ldl" >&5
1798ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1799if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1800  echo $ac_n "(cached) $ac_c" 1>&6
1801else
1802  ac_save_LIBS="$LIBS"
1803LIBS="-ldl  $LIBS"
1804cat > conftest.$ac_ext <<EOF
1805#line 1806 "configure"
1806#include "confdefs.h"
1807/* Override any gcc2 internal prototype to avoid an error.  */
1808/* We use char because int might match the return type of a gcc2
1809    builtin and then its argument prototype would still apply.  */
1810char dlopen();
1811
1812int main() {
1813dlopen()
1814; return 0; }
1815EOF
1816if { (eval echo configure:1817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1817  rm -rf conftest*
1818  eval "ac_cv_lib_$ac_lib_var=yes"
1819else
1820  echo "configure: failed program was:" >&5
1821  cat conftest.$ac_ext >&5
1822  rm -rf conftest*
1823  eval "ac_cv_lib_$ac_lib_var=no"
1824fi
1825rm -f conftest*
1826LIBS="$ac_save_LIBS"
1827
1828fi
1829if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1830  echo "$ac_t""yes" 1>&6
1831    ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1832    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1833  cat >> confdefs.h <<EOF
1834#define $ac_tr_lib 1
1835EOF
1836
1837  LIBS="-ldl $LIBS"
1838
1839else
1840  echo "$ac_t""no" 1>&6
1841fi
1842
1843          if test "$ac_cv_lib_dl_dlopen" = yes; then
1844                LD_DYN_FLAGS="-ldl -rdynamic"
1845                SFLAGS="-fpic -DPIC"
1846                SLDFLAGS=-shared
1847                LD=ld
1848                ac_lib_dl=yes
1849          fi
1850        ;;
1851        IRIX-6)
1852          LD_DYN_FLAGS="-lc"
1853          SFLAGS="-fPIC -DPIC"
1854          SLDFLAGS="-w -no_unresolved -_SYSTYPE_SVR4 -n32 -shared"
1855          LD=ld
1856          ac_lib_dl=yes
1857        ;;
1858        SunOS-5)
1859          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1860echo "configure:1861: checking for dlopen in -ldl" >&5
1861ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1862if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1863  echo $ac_n "(cached) $ac_c" 1>&6
1864else
1865  ac_save_LIBS="$LIBS"
1866LIBS="-ldl  $LIBS"
1867cat > conftest.$ac_ext <<EOF
1868#line 1869 "configure"
1869#include "confdefs.h"
1870/* Override any gcc2 internal prototype to avoid an error.  */
1871/* We use char because int might match the return type of a gcc2
1872    builtin and then its argument prototype would still apply.  */
1873char dlopen();
1874
1875int main() {
1876dlopen()
1877; return 0; }
1878EOF
1879if { (eval echo configure:1880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1880  rm -rf conftest*
1881  eval "ac_cv_lib_$ac_lib_var=yes"
1882else
1883  echo "configure: failed program was:" >&5
1884  cat conftest.$ac_ext >&5
1885  rm -rf conftest*
1886  eval "ac_cv_lib_$ac_lib_var=no"
1887fi
1888rm -f conftest*
1889LIBS="$ac_save_LIBS"
1890
1891fi
1892if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1893  echo "$ac_t""yes" 1>&6
1894    ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1895    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1896  cat >> confdefs.h <<EOF
1897#define $ac_tr_lib 1
1898EOF
1899
1900  LIBS="-ldl $LIBS"
1901
1902else
1903  echo "$ac_t""no" 1>&6
1904fi
1905
1906          if test "$ac_cv_lib_dl_dlopen" = yes; then
1907                LD_DYN_FLAGS="-ldl -Xlinker -E"
1908                SFLAGS="-fpic -DPIC"
1909                SLDFLAGS=-shared
1910                LD=ld
1911                ac_lib_dl=yes
1912          fi
1913        ;;
1914esac
1915
1916
1917
1918
1919LIBS=${SAVE_LIBS}
1920
1921
1922# heder file checks
1923echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1924echo "configure:1925: checking for ANSI C header files" >&5
1925if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1926  echo $ac_n "(cached) $ac_c" 1>&6
1927else
1928  cat > conftest.$ac_ext <<EOF
1929#line 1930 "configure"
1930#include "confdefs.h"
1931#include <stdlib.h>
1932#include <stdarg.h>
1933#include <string.h>
1934#include <float.h>
1935EOF
1936ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1937{ (eval echo configure:1938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1938ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1939if test -z "$ac_err"; then
1940  rm -rf conftest*
1941  ac_cv_header_stdc=yes
1942else
1943  echo "$ac_err" >&5
1944  echo "configure: failed program was:" >&5
1945  cat conftest.$ac_ext >&5
1946  rm -rf conftest*
1947  ac_cv_header_stdc=no
1948fi
1949rm -f conftest*
1950
1951if test $ac_cv_header_stdc = yes; then
1952  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1953cat > conftest.$ac_ext <<EOF
1954#line 1955 "configure"
1955#include "confdefs.h"
1956#include <string.h>
1957EOF
1958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1959  egrep "memchr" >/dev/null 2>&1; then
1960  :
1961else
1962  rm -rf conftest*
1963  ac_cv_header_stdc=no
1964fi
1965rm -f conftest*
1966
1967fi
1968
1969if test $ac_cv_header_stdc = yes; then
1970  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1971cat > conftest.$ac_ext <<EOF
1972#line 1973 "configure"
1973#include "confdefs.h"
1974#include <stdlib.h>
1975EOF
1976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1977  egrep "free" >/dev/null 2>&1; then
1978  :
1979else
1980  rm -rf conftest*
1981  ac_cv_header_stdc=no
1982fi
1983rm -f conftest*
1984
1985fi
1986
1987if test $ac_cv_header_stdc = yes; then
1988  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1989if test "$cross_compiling" = yes; then
1990  :
1991else
1992  cat > conftest.$ac_ext <<EOF
1993#line 1994 "configure"
1994#include "confdefs.h"
1995#include <ctype.h>
1996#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1997#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1998#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1999int main () { int i; for (i = 0; i < 256; i++)
2000if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2001exit (0); }
2002
2003EOF
2004if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2005then
2006  :
2007else
2008  echo "configure: failed program was:" >&5
2009  cat conftest.$ac_ext >&5
2010  rm -fr conftest*
2011  ac_cv_header_stdc=no
2012fi
2013rm -fr conftest*
2014fi
2015
2016fi
2017fi
2018
2019echo "$ac_t""$ac_cv_header_stdc" 1>&6
2020if test $ac_cv_header_stdc = yes; then
2021  cat >> confdefs.h <<\EOF
2022#define STDC_HEADERS 1
2023EOF
2024
2025fi
2026
2027for ac_hdr in limits.h unistd.h
2028do
2029ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2030echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2031echo "configure:2032: checking for $ac_hdr" >&5
2032if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2033  echo $ac_n "(cached) $ac_c" 1>&6
2034else
2035  cat > conftest.$ac_ext <<EOF
2036#line 2037 "configure"
2037#include "confdefs.h"
2038#include <$ac_hdr>
2039EOF
2040ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2041{ (eval echo configure:2042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2042ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2043if test -z "$ac_err"; then
2044  rm -rf conftest*
2045  eval "ac_cv_header_$ac_safe=yes"
2046else
2047  echo "$ac_err" >&5
2048  echo "configure: failed program was:" >&5
2049  cat conftest.$ac_ext >&5
2050  rm -rf conftest*
2051  eval "ac_cv_header_$ac_safe=no"
2052fi
2053rm -f conftest*
2054fi
2055if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2056  echo "$ac_t""yes" 1>&6
2057    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2058  cat >> confdefs.h <<EOF
2059#define $ac_tr_hdr 1
2060EOF
2061 
2062else
2063  echo "$ac_t""no" 1>&6
2064{ echo "configure: error: Can not compile without limits.h unistd.h" 1>&2; exit 1; }
2065fi
2066done
2067
2068
2069for ac_hdr in sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h sys/stat.h fcntl.h sys/param.h pwd.h asm/sigcontext.h pwd.h termcap.h termios.h term.h readline/readline.h
2070do
2071ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2072echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2073echo "configure:2074: checking for $ac_hdr" >&5
2074if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2075  echo $ac_n "(cached) $ac_c" 1>&6
2076else
2077  cat > conftest.$ac_ext <<EOF
2078#line 2079 "configure"
2079#include "confdefs.h"
2080#include <$ac_hdr>
2081EOF
2082ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2083{ (eval echo configure:2084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2084ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2085if test -z "$ac_err"; then
2086  rm -rf conftest*
2087  eval "ac_cv_header_$ac_safe=yes"
2088else
2089  echo "$ac_err" >&5
2090  echo "configure: failed program was:" >&5
2091  cat conftest.$ac_ext >&5
2092  rm -rf conftest*
2093  eval "ac_cv_header_$ac_safe=no"
2094fi
2095rm -f conftest*
2096fi
2097if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2098  echo "$ac_t""yes" 1>&6
2099    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2100  cat >> confdefs.h <<EOF
2101#define $ac_tr_hdr 1
2102EOF
2103 
2104else
2105  echo "$ac_t""no" 1>&6
2106fi
2107done
2108
2109
2110# typedefs, structures
2111echo $ac_n "checking for working const""... $ac_c" 1>&6
2112echo "configure:2113: checking for working const" >&5
2113if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2114  echo $ac_n "(cached) $ac_c" 1>&6
2115else
2116  cat > conftest.$ac_ext <<EOF
2117#line 2118 "configure"
2118#include "confdefs.h"
2119
2120int main() {
2121
2122/* Ultrix mips cc rejects this.  */
2123typedef int charset[2]; const charset x;
2124/* SunOS 4.1.1 cc rejects this.  */
2125char const *const *ccp;
2126char **p;
2127/* NEC SVR4.0.2 mips cc rejects this.  */
2128struct point {int x, y;};
2129static struct point const zero = {0,0};
2130/* AIX XL C 1.02.0.0 rejects this.
2131   It does not let you subtract one const X* pointer from another in an arm
2132   of an if-expression whose if-part is not a constant expression */
2133const char *g = "string";
2134ccp = &g + (g ? g-g : 0);
2135/* HPUX 7.0 cc rejects these. */
2136++ccp;
2137p = (char**) ccp;
2138ccp = (char const *const *) p;
2139{ /* SCO 3.2v4 cc rejects this.  */
2140  char *t;
2141  char const *s = 0 ? (char *) 0 : (char const *) 0;
2142
2143  *t++ = 0;
2144}
2145{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2146  int x[] = {25, 17};
2147  const int *foo = &x[0];
2148  ++foo;
2149}
2150{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2151  typedef const int *iptr;
2152  iptr p = 0;
2153  ++p;
2154}
2155{ /* AIX XL C 1.02.0.0 rejects this saying
2156     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2157  struct s { int j; const int *ap[3]; };
2158  struct s *b; b->j = 5;
2159}
2160{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2161  const int foo = 10;
2162}
2163
2164; return 0; }
2165EOF
2166if { (eval echo configure:2167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2167  rm -rf conftest*
2168  ac_cv_c_const=yes
2169else
2170  echo "configure: failed program was:" >&5
2171  cat conftest.$ac_ext >&5
2172  rm -rf conftest*
2173  ac_cv_c_const=no
2174fi
2175rm -f conftest*
2176fi
2177
2178echo "$ac_t""$ac_cv_c_const" 1>&6
2179if test $ac_cv_c_const = no; then
2180  cat >> confdefs.h <<\EOF
2181#define const
2182EOF
2183
2184fi
2185
2186echo $ac_n "checking for inline""... $ac_c" 1>&6
2187echo "configure:2188: checking for inline" >&5
2188if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2189  echo $ac_n "(cached) $ac_c" 1>&6
2190else
2191  ac_cv_c_inline=no
2192for ac_kw in inline __inline__ __inline; do
2193  cat > conftest.$ac_ext <<EOF
2194#line 2195 "configure"
2195#include "confdefs.h"
2196
2197int main() {
2198} $ac_kw foo() {
2199; return 0; }
2200EOF
2201if { (eval echo configure:2202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2202  rm -rf conftest*
2203  ac_cv_c_inline=$ac_kw; break
2204else
2205  echo "configure: failed program was:" >&5
2206  cat conftest.$ac_ext >&5
2207fi
2208rm -f conftest*
2209done
2210
2211fi
2212
2213echo "$ac_t""$ac_cv_c_inline" 1>&6
2214case "$ac_cv_c_inline" in
2215  inline | yes) ;;
2216  no) cat >> confdefs.h <<\EOF
2217#define inline
2218EOF
2219 ;;
2220  *)  cat >> confdefs.h <<EOF
2221#define inline $ac_cv_c_inline
2222EOF
2223 ;;
2224esac
2225
2226echo $ac_n "checking for size_t""... $ac_c" 1>&6
2227echo "configure:2228: checking for size_t" >&5
2228if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2229  echo $ac_n "(cached) $ac_c" 1>&6
2230else
2231  cat > conftest.$ac_ext <<EOF
2232#line 2233 "configure"
2233#include "confdefs.h"
2234#include <sys/types.h>
2235#if STDC_HEADERS
2236#include <stdlib.h>
2237#include <stddef.h>
2238#endif
2239EOF
2240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2241  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2242  rm -rf conftest*
2243  ac_cv_type_size_t=yes
2244else
2245  rm -rf conftest*
2246  ac_cv_type_size_t=no
2247fi
2248rm -f conftest*
2249
2250fi
2251echo "$ac_t""$ac_cv_type_size_t" 1>&6
2252if test $ac_cv_type_size_t = no; then
2253  cat >> confdefs.h <<\EOF
2254#define size_t unsigned
2255EOF
2256
2257fi
2258
2259echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2260echo "configure:2261: checking whether time.h and sys/time.h may both be included" >&5
2261if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2262  echo $ac_n "(cached) $ac_c" 1>&6
2263else
2264  cat > conftest.$ac_ext <<EOF
2265#line 2266 "configure"
2266#include "confdefs.h"
2267#include <sys/types.h>
2268#include <sys/time.h>
2269#include <time.h>
2270int main() {
2271struct tm *tp;
2272; return 0; }
2273EOF
2274if { (eval echo configure:2275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2275  rm -rf conftest*
2276  ac_cv_header_time=yes
2277else
2278  echo "configure: failed program was:" >&5
2279  cat conftest.$ac_ext >&5
2280  rm -rf conftest*
2281  ac_cv_header_time=no
2282fi
2283rm -f conftest*
2284fi
2285
2286echo "$ac_t""$ac_cv_header_time" 1>&6
2287if test $ac_cv_header_time = yes; then
2288  cat >> confdefs.h <<\EOF
2289#define TIME_WITH_SYS_TIME 1
2290EOF
2291
2292fi
2293
2294echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2295echo "configure:2296: checking whether struct tm is in sys/time.h or time.h" >&5
2296if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2297  echo $ac_n "(cached) $ac_c" 1>&6
2298else
2299  cat > conftest.$ac_ext <<EOF
2300#line 2301 "configure"
2301#include "confdefs.h"
2302#include <sys/types.h>
2303#include <time.h>
2304int main() {
2305struct tm *tp; tp->tm_sec;
2306; return 0; }
2307EOF
2308if { (eval echo configure:2309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2309  rm -rf conftest*
2310  ac_cv_struct_tm=time.h
2311else
2312  echo "configure: failed program was:" >&5
2313  cat conftest.$ac_ext >&5
2314  rm -rf conftest*
2315  ac_cv_struct_tm=sys/time.h
2316fi
2317rm -f conftest*
2318fi
2319
2320echo "$ac_t""$ac_cv_struct_tm" 1>&6
2321if test $ac_cv_struct_tm = sys/time.h; then
2322  cat >> confdefs.h <<\EOF
2323#define TM_IN_SYS_TIME 1
2324EOF
2325
2326fi
2327
2328
2329# library functions.
2330# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2331# for constant arguments.  Useless!
2332echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2333echo "configure:2334: checking for working alloca.h" >&5
2334if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2335  echo $ac_n "(cached) $ac_c" 1>&6
2336else
2337  cat > conftest.$ac_ext <<EOF
2338#line 2339 "configure"
2339#include "confdefs.h"
2340#include <alloca.h>
2341int main() {
2342char *p = alloca(2 * sizeof(int));
2343; return 0; }
2344EOF
2345if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2346  rm -rf conftest*
2347  ac_cv_header_alloca_h=yes
2348else
2349  echo "configure: failed program was:" >&5
2350  cat conftest.$ac_ext >&5
2351  rm -rf conftest*
2352  ac_cv_header_alloca_h=no
2353fi
2354rm -f conftest*
2355fi
2356
2357echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2358if test $ac_cv_header_alloca_h = yes; then
2359  cat >> confdefs.h <<\EOF
2360#define HAVE_ALLOCA_H 1
2361EOF
2362
2363fi
2364
2365echo $ac_n "checking for alloca""... $ac_c" 1>&6
2366echo "configure:2367: checking for alloca" >&5
2367if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2368  echo $ac_n "(cached) $ac_c" 1>&6
2369else
2370  cat > conftest.$ac_ext <<EOF
2371#line 2372 "configure"
2372#include "confdefs.h"
2373
2374#ifdef __GNUC__
2375# define alloca __builtin_alloca
2376#else
2377# ifdef _MSC_VER
2378#  include <malloc.h>
2379#  define alloca _alloca
2380# else
2381#  if HAVE_ALLOCA_H
2382#   include <alloca.h>
2383#  else
2384#   ifdef _AIX
2385 #pragma alloca
2386#   else
2387#    ifndef alloca /* predefined by HP cc +Olibcalls */
2388char *alloca ();
2389#    endif
2390#   endif
2391#  endif
2392# endif
2393#endif
2394
2395int main() {
2396char *p = (char *) alloca(1);
2397; return 0; }
2398EOF
2399if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2400  rm -rf conftest*
2401  ac_cv_func_alloca_works=yes
2402else
2403  echo "configure: failed program was:" >&5
2404  cat conftest.$ac_ext >&5
2405  rm -rf conftest*
2406  ac_cv_func_alloca_works=no
2407fi
2408rm -f conftest*
2409fi
2410
2411echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2412if test $ac_cv_func_alloca_works = yes; then
2413  cat >> confdefs.h <<\EOF
2414#define HAVE_ALLOCA 1
2415EOF
2416
2417fi
2418
2419if test $ac_cv_func_alloca_works = no; then
2420  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2421  # that cause trouble.  Some versions do not even contain alloca or
2422  # contain a buggy version.  If you still want to use their alloca,
2423  # use ar to extract alloca.o from them instead of compiling alloca.c.
2424  ALLOCA=alloca.${ac_objext}
2425  cat >> confdefs.h <<\EOF
2426#define C_ALLOCA 1
2427EOF
2428
2429
2430echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2431echo "configure:2432: checking whether alloca needs Cray hooks" >&5
2432if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2433  echo $ac_n "(cached) $ac_c" 1>&6
2434else
2435  cat > conftest.$ac_ext <<EOF
2436#line 2437 "configure"
2437#include "confdefs.h"
2438#if defined(CRAY) && ! defined(CRAY2)
2439webecray
2440#else
2441wenotbecray
2442#endif
2443
2444EOF
2445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2446  egrep "webecray" >/dev/null 2>&1; then
2447  rm -rf conftest*
2448  ac_cv_os_cray=yes
2449else
2450  rm -rf conftest*
2451  ac_cv_os_cray=no
2452fi
2453rm -f conftest*
2454
2455fi
2456
2457echo "$ac_t""$ac_cv_os_cray" 1>&6
2458if test $ac_cv_os_cray = yes; then
2459for ac_func in _getb67 GETB67 getb67; do
2460  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2461echo "configure:2462: checking for $ac_func" >&5
2462if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2463  echo $ac_n "(cached) $ac_c" 1>&6
2464else
2465  cat > conftest.$ac_ext <<EOF
2466#line 2467 "configure"
2467#include "confdefs.h"
2468/* System header to define __stub macros and hopefully few prototypes,
2469    which can conflict with char $ac_func(); below.  */
2470#include <assert.h>
2471/* Override any gcc2 internal prototype to avoid an error.  */
2472/* We use char because int might match the return type of a gcc2
2473    builtin and then its argument prototype would still apply.  */
2474char $ac_func();
2475
2476int main() {
2477
2478/* The GNU C library defines this for functions which it implements
2479    to always fail with ENOSYS.  Some functions are actually named
2480    something starting with __ and the normal name is an alias.  */
2481#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2482choke me
2483#else
2484$ac_func();
2485#endif
2486
2487; return 0; }
2488EOF
2489if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2490  rm -rf conftest*
2491  eval "ac_cv_func_$ac_func=yes"
2492else
2493  echo "configure: failed program was:" >&5
2494  cat conftest.$ac_ext >&5
2495  rm -rf conftest*
2496  eval "ac_cv_func_$ac_func=no"
2497fi
2498rm -f conftest*
2499fi
2500
2501if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2502  echo "$ac_t""yes" 1>&6
2503  cat >> confdefs.h <<EOF
2504#define CRAY_STACKSEG_END $ac_func
2505EOF
2506
2507  break
2508else
2509  echo "$ac_t""no" 1>&6
2510fi
2511
2512done
2513fi
2514
2515echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2516echo "configure:2517: checking stack direction for C alloca" >&5
2517if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2518  echo $ac_n "(cached) $ac_c" 1>&6
2519else
2520  if test "$cross_compiling" = yes; then
2521  ac_cv_c_stack_direction=0
2522else
2523  cat > conftest.$ac_ext <<EOF
2524#line 2525 "configure"
2525#include "confdefs.h"
2526find_stack_direction ()
2527{
2528  static char *addr = 0;
2529  auto char dummy;
2530  if (addr == 0)
2531    {
2532      addr = &dummy;
2533      return find_stack_direction ();
2534    }
2535  else
2536    return (&dummy > addr) ? 1 : -1;
2537}
2538main ()
2539{
2540  exit (find_stack_direction() < 0);
2541}
2542EOF
2543if { (eval echo configure:2544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2544then
2545  ac_cv_c_stack_direction=1
2546else
2547  echo "configure: failed program was:" >&5
2548  cat conftest.$ac_ext >&5
2549  rm -fr conftest*
2550  ac_cv_c_stack_direction=-1
2551fi
2552rm -fr conftest*
2553fi
2554
2555fi
2556
2557echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2558cat >> confdefs.h <<EOF
2559#define STACK_DIRECTION $ac_cv_c_stack_direction
2560EOF
2561
2562fi
2563
2564if test $ac_cv_prog_gcc = yes; then
2565    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2566echo "configure:2567: checking whether ${CC-cc} needs -traditional" >&5
2567if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2568  echo $ac_n "(cached) $ac_c" 1>&6
2569else
2570    ac_pattern="Autoconf.*'x'"
2571  cat > conftest.$ac_ext <<EOF
2572#line 2573 "configure"
2573#include "confdefs.h"
2574#include <sgtty.h>
2575Autoconf TIOCGETP
2576EOF
2577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2578  egrep "$ac_pattern" >/dev/null 2>&1; then
2579  rm -rf conftest*
2580  ac_cv_prog_gcc_traditional=yes
2581else
2582  rm -rf conftest*
2583  ac_cv_prog_gcc_traditional=no
2584fi
2585rm -f conftest*
2586
2587
2588  if test $ac_cv_prog_gcc_traditional = no; then
2589    cat > conftest.$ac_ext <<EOF
2590#line 2591 "configure"
2591#include "confdefs.h"
2592#include <termio.h>
2593Autoconf TCGETA
2594EOF
2595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2596  egrep "$ac_pattern" >/dev/null 2>&1; then
2597  rm -rf conftest*
2598  ac_cv_prog_gcc_traditional=yes
2599fi
2600rm -f conftest*
2601
2602  fi
2603fi
2604
2605echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2606  if test $ac_cv_prog_gcc_traditional = yes; then
2607    CC="$CC -traditional"
2608  fi
2609fi
2610
2611for ac_hdr in unistd.h
2612do
2613ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2614echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2615echo "configure:2616: checking for $ac_hdr" >&5
2616if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2617  echo $ac_n "(cached) $ac_c" 1>&6
2618else
2619  cat > conftest.$ac_ext <<EOF
2620#line 2621 "configure"
2621#include "confdefs.h"
2622#include <$ac_hdr>
2623EOF
2624ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2625{ (eval echo configure:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2626ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2627if test -z "$ac_err"; then
2628  rm -rf conftest*
2629  eval "ac_cv_header_$ac_safe=yes"
2630else
2631  echo "$ac_err" >&5
2632  echo "configure: failed program was:" >&5
2633  cat conftest.$ac_ext >&5
2634  rm -rf conftest*
2635  eval "ac_cv_header_$ac_safe=no"
2636fi
2637rm -f conftest*
2638fi
2639if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2640  echo "$ac_t""yes" 1>&6
2641    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2642  cat >> confdefs.h <<EOF
2643#define $ac_tr_hdr 1
2644EOF
2645 
2646else
2647  echo "$ac_t""no" 1>&6
2648fi
2649done
2650
2651for ac_func in getpagesize
2652do
2653echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2654echo "configure:2655: checking for $ac_func" >&5
2655if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2656  echo $ac_n "(cached) $ac_c" 1>&6
2657else
2658  cat > conftest.$ac_ext <<EOF
2659#line 2660 "configure"
2660#include "confdefs.h"
2661/* System header to define __stub macros and hopefully few prototypes,
2662    which can conflict with char $ac_func(); below.  */
2663#include <assert.h>
2664/* Override any gcc2 internal prototype to avoid an error.  */
2665/* We use char because int might match the return type of a gcc2
2666    builtin and then its argument prototype would still apply.  */
2667char $ac_func();
2668
2669int main() {
2670
2671/* The GNU C library defines this for functions which it implements
2672    to always fail with ENOSYS.  Some functions are actually named
2673    something starting with __ and the normal name is an alias.  */
2674#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2675choke me
2676#else
2677$ac_func();
2678#endif
2679
2680; return 0; }
2681EOF
2682if { (eval echo configure:2683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2683  rm -rf conftest*
2684  eval "ac_cv_func_$ac_func=yes"
2685else
2686  echo "configure: failed program was:" >&5
2687  cat conftest.$ac_ext >&5
2688  rm -rf conftest*
2689  eval "ac_cv_func_$ac_func=no"
2690fi
2691rm -f conftest*
2692fi
2693
2694if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2695  echo "$ac_t""yes" 1>&6
2696    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2697  cat >> confdefs.h <<EOF
2698#define $ac_tr_func 1
2699EOF
2700 
2701else
2702  echo "$ac_t""no" 1>&6
2703fi
2704done
2705
2706echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2707echo "configure:2708: checking for working mmap" >&5
2708if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2709  echo $ac_n "(cached) $ac_c" 1>&6
2710else
2711  if test "$cross_compiling" = yes; then
2712  ac_cv_func_mmap_fixed_mapped=no
2713else
2714  cat > conftest.$ac_ext <<EOF
2715#line 2716 "configure"
2716#include "confdefs.h"
2717
2718/* Thanks to Mike Haertel and Jim Avera for this test.
2719   Here is a matrix of mmap possibilities:
2720        mmap private not fixed
2721        mmap private fixed at somewhere currently unmapped
2722        mmap private fixed at somewhere already mapped
2723        mmap shared not fixed
2724        mmap shared fixed at somewhere currently unmapped
2725        mmap shared fixed at somewhere already mapped
2726   For private mappings, we should verify that changes cannot be read()
2727   back from the file, nor mmap's back from the file at a different
2728   address.  (There have been systems where private was not correctly
2729   implemented like the infamous i386 svr4.0, and systems where the
2730   VM page cache was not coherent with the filesystem buffer cache
2731   like early versions of FreeBSD and possibly contemporary NetBSD.)
2732   For shared mappings, we should conversely verify that changes get
2733   propogated back to all the places they're supposed to be.
2734
2735   Grep wants private fixed already mapped.
2736   The main things grep needs to know about mmap are:
2737   * does it exist and is it safe to write into the mmap'd area
2738   * how to use it (BSD variants)  */
2739#include <sys/types.h>
2740#include <fcntl.h>
2741#include <sys/mman.h>
2742
2743/* This mess was copied from the GNU getpagesize.h.  */
2744#ifndef HAVE_GETPAGESIZE
2745# ifdef HAVE_UNISTD_H
2746#  include <unistd.h>
2747# endif
2748
2749/* Assume that all systems that can run configure have sys/param.h.  */
2750# ifndef HAVE_SYS_PARAM_H
2751#  define HAVE_SYS_PARAM_H 1
2752# endif
2753
2754# ifdef _SC_PAGESIZE
2755#  define getpagesize() sysconf(_SC_PAGESIZE)
2756# else /* no _SC_PAGESIZE */
2757#  ifdef HAVE_SYS_PARAM_H
2758#   include <sys/param.h>
2759#   ifdef EXEC_PAGESIZE
2760#    define getpagesize() EXEC_PAGESIZE
2761#   else /* no EXEC_PAGESIZE */
2762#    ifdef NBPG
2763#     define getpagesize() NBPG * CLSIZE
2764#     ifndef CLSIZE
2765#      define CLSIZE 1
2766#     endif /* no CLSIZE */
2767#    else /* no NBPG */
2768#     ifdef NBPC
2769#      define getpagesize() NBPC
2770#     else /* no NBPC */
2771#      ifdef PAGESIZE
2772#       define getpagesize() PAGESIZE
2773#      endif /* PAGESIZE */
2774#     endif /* no NBPC */
2775#    endif /* no NBPG */
2776#   endif /* no EXEC_PAGESIZE */
2777#  else /* no HAVE_SYS_PARAM_H */
2778#   define getpagesize() 8192   /* punt totally */
2779#  endif /* no HAVE_SYS_PARAM_H */
2780# endif /* no _SC_PAGESIZE */
2781
2782#endif /* no HAVE_GETPAGESIZE */
2783
2784#ifdef __cplusplus
2785extern "C" { void *malloc(unsigned); }
2786#else
2787char *malloc();
2788#endif
2789
2790int
2791main()
2792{
2793        char *data, *data2, *data3;
2794        int i, pagesize;
2795        int fd;
2796
2797        pagesize = getpagesize();
2798
2799        /*
2800         * First, make a file with some known garbage in it.
2801         */
2802        data = malloc(pagesize);
2803        if (!data)
2804                exit(1);
2805        for (i = 0; i < pagesize; ++i)
2806                *(data + i) = rand();
2807        umask(0);
2808        fd = creat("conftestmmap", 0600);
2809        if (fd < 0)
2810                exit(1);
2811        if (write(fd, data, pagesize) != pagesize)
2812                exit(1);
2813        close(fd);
2814
2815        /*
2816         * Next, try to mmap the file at a fixed address which
2817         * already has something else allocated at it.  If we can,
2818         * also make sure that we see the same garbage.
2819         */
2820        fd = open("conftestmmap", O_RDWR);
2821        if (fd < 0)
2822                exit(1);
2823        data2 = malloc(2 * pagesize);
2824        if (!data2)
2825                exit(1);
2826        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2827        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2828            MAP_PRIVATE | MAP_FIXED, fd, 0L))
2829                exit(1);
2830        for (i = 0; i < pagesize; ++i)
2831                if (*(data + i) != *(data2 + i))
2832                        exit(1);
2833
2834        /*
2835         * Finally, make sure that changes to the mapped area
2836         * do not percolate back to the file as seen by read().
2837         * (This is a bug on some variants of i386 svr4.0.)
2838         */
2839        for (i = 0; i < pagesize; ++i)
2840                *(data2 + i) = *(data2 + i) + 1;
2841        data3 = malloc(pagesize);
2842        if (!data3)
2843                exit(1);
2844        if (read(fd, data3, pagesize) != pagesize)
2845                exit(1);
2846        for (i = 0; i < pagesize; ++i)
2847                if (*(data + i) != *(data3 + i))
2848                        exit(1);
2849        close(fd);
2850        unlink("conftestmmap");
2851        exit(0);
2852}
2853
2854EOF
2855if { (eval echo configure:2856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2856then
2857  ac_cv_func_mmap_fixed_mapped=yes
2858else
2859  echo "configure: failed program was:" >&5
2860  cat conftest.$ac_ext >&5
2861  rm -fr conftest*
2862  ac_cv_func_mmap_fixed_mapped=no
2863fi
2864rm -fr conftest*
2865fi
2866
2867fi
2868
2869echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2870if test $ac_cv_func_mmap_fixed_mapped = yes; then
2871  cat >> confdefs.h <<\EOF
2872#define HAVE_MMAP 1
2873EOF
2874
2875fi
2876
2877echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2878echo "configure:2879: checking return type of signal handlers" >&5
2879if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2880  echo $ac_n "(cached) $ac_c" 1>&6
2881else
2882  cat > conftest.$ac_ext <<EOF
2883#line 2884 "configure"
2884#include "confdefs.h"
2885#include <sys/types.h>
2886#include <signal.h>
2887#ifdef signal
2888#undef signal
2889#endif
2890#ifdef __cplusplus
2891extern "C" void (*signal (int, void (*)(int)))(int);
2892#else
2893void (*signal ()) ();
2894#endif
2895
2896int main() {
2897int i;
2898; return 0; }
2899EOF
2900if { (eval echo configure:2901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2901  rm -rf conftest*
2902  ac_cv_type_signal=void
2903else
2904  echo "configure: failed program was:" >&5
2905  cat conftest.$ac_ext >&5
2906  rm -rf conftest*
2907  ac_cv_type_signal=int
2908fi
2909rm -f conftest*
2910fi
2911
2912echo "$ac_t""$ac_cv_type_signal" 1>&6
2913cat >> confdefs.h <<EOF
2914#define RETSIGTYPE $ac_cv_type_signal
2915EOF
2916
2917
2918echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2919echo "configure:2920: checking for vprintf" >&5
2920if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2921  echo $ac_n "(cached) $ac_c" 1>&6
2922else
2923  cat > conftest.$ac_ext <<EOF
2924#line 2925 "configure"
2925#include "confdefs.h"
2926/* System header to define __stub macros and hopefully few prototypes,
2927    which can conflict with char vprintf(); below.  */
2928#include <assert.h>
2929/* Override any gcc2 internal prototype to avoid an error.  */
2930/* We use char because int might match the return type of a gcc2
2931    builtin and then its argument prototype would still apply.  */
2932char vprintf();
2933
2934int main() {
2935
2936/* The GNU C library defines this for functions which it implements
2937    to always fail with ENOSYS.  Some functions are actually named
2938    something starting with __ and the normal name is an alias.  */
2939#if defined (__stub_vprintf) || defined (__stub___vprintf)
2940choke me
2941#else
2942vprintf();
2943#endif
2944
2945; return 0; }
2946EOF
2947if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2948  rm -rf conftest*
2949  eval "ac_cv_func_vprintf=yes"
2950else
2951  echo "configure: failed program was:" >&5
2952  cat conftest.$ac_ext >&5
2953  rm -rf conftest*
2954  eval "ac_cv_func_vprintf=no"
2955fi
2956rm -f conftest*
2957fi
2958
2959if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2960  echo "$ac_t""yes" 1>&6
2961  cat >> confdefs.h <<\EOF
2962#define HAVE_VPRINTF 1
2963EOF
2964
2965else
2966  echo "$ac_t""no" 1>&6
2967fi
2968
2969if test "$ac_cv_func_vprintf" != yes; then
2970echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2971echo "configure:2972: checking for _doprnt" >&5
2972if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2973  echo $ac_n "(cached) $ac_c" 1>&6
2974else
2975  cat > conftest.$ac_ext <<EOF
2976#line 2977 "configure"
2977#include "confdefs.h"
2978/* System header to define __stub macros and hopefully few prototypes,
2979    which can conflict with char _doprnt(); below.  */
2980#include <assert.h>
2981/* Override any gcc2 internal prototype to avoid an error.  */
2982/* We use char because int might match the return type of a gcc2
2983    builtin and then its argument prototype would still apply.  */
2984char _doprnt();
2985
2986int main() {
2987
2988/* The GNU C library defines this for functions which it implements
2989    to always fail with ENOSYS.  Some functions are actually named
2990    something starting with __ and the normal name is an alias.  */
2991#if defined (__stub__doprnt) || defined (__stub____doprnt)
2992choke me
2993#else
2994_doprnt();
2995#endif
2996
2997; return 0; }
2998EOF
2999if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3000  rm -rf conftest*
3001  eval "ac_cv_func__doprnt=yes"
3002else
3003  echo "configure: failed program was:" >&5
3004  cat conftest.$ac_ext >&5
3005  rm -rf conftest*
3006  eval "ac_cv_func__doprnt=no"
3007fi
3008rm -f conftest*
3009fi
3010
3011if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3012  echo "$ac_t""yes" 1>&6
3013  cat >> confdefs.h <<\EOF
3014#define HAVE_DOPRNT 1
3015EOF
3016
3017else
3018  echo "$ac_t""no" 1>&6
3019fi
3020
3021fi
3022
3023
3024echo $ac_n "checking for library containing setenv""... $ac_c" 1>&6
3025echo "configure:3026: checking for library containing setenv" >&5
3026if eval "test \"`echo '$''{'ac_cv_search_setenv'+set}'`\" = set"; then
3027  echo $ac_n "(cached) $ac_c" 1>&6
3028else
3029  ac_func_search_save_LIBS="$LIBS"
3030ac_cv_search_setenv="no"
3031cat > conftest.$ac_ext <<EOF
3032#line 3033 "configure"
3033#include "confdefs.h"
3034/* Override any gcc2 internal prototype to avoid an error.  */
3035/* We use char because int might match the return type of a gcc2
3036    builtin and then its argument prototype would still apply.  */
3037char setenv();
3038
3039int main() {
3040setenv()
3041; return 0; }
3042EOF
3043if { (eval echo configure:3044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3044  rm -rf conftest*
3045  ac_cv_search_setenv="none required"
3046else
3047  echo "configure: failed program was:" >&5
3048  cat conftest.$ac_ext >&5
3049fi
3050rm -f conftest*
3051test "$ac_cv_search_setenv" = "no" && for i in bsd; do
3052LIBS="-l$i  $ac_func_search_save_LIBS"
3053cat > conftest.$ac_ext <<EOF
3054#line 3055 "configure"
3055#include "confdefs.h"
3056/* Override any gcc2 internal prototype to avoid an error.  */
3057/* We use char because int might match the return type of a gcc2
3058    builtin and then its argument prototype would still apply.  */
3059char setenv();
3060
3061int main() {
3062setenv()
3063; return 0; }
3064EOF
3065if { (eval echo configure:3066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3066  rm -rf conftest*
3067  ac_cv_search_setenv="-l$i"
3068break
3069else
3070  echo "configure: failed program was:" >&5
3071  cat conftest.$ac_ext >&5
3072fi
3073rm -f conftest*
3074done
3075LIBS="$ac_func_search_save_LIBS"
3076fi
3077
3078echo "$ac_t""$ac_cv_search_setenv" 1>&6
3079if test "$ac_cv_search_setenv" != "no"; then
3080  test "$ac_cv_search_setenv" = "none required" || LIBS="$ac_cv_search_setenv $LIBS"
3081 
3082else :
3083 
3084fi
3085for ac_func in gettimeofday atexit bcopy getcwd getwd vsnprintf readlink sleep usleep getpwnam popen setenv
3086do
3087echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3088echo "configure:3089: checking for $ac_func" >&5
3089if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3090  echo $ac_n "(cached) $ac_c" 1>&6
3091else
3092  cat > conftest.$ac_ext <<EOF
3093#line 3094 "configure"
3094#include "confdefs.h"
3095/* System header to define __stub macros and hopefully few prototypes,
3096    which can conflict with char $ac_func(); below.  */
3097#include <assert.h>
3098/* Override any gcc2 internal prototype to avoid an error.  */
3099/* We use char because int might match the return type of a gcc2
3100    builtin and then its argument prototype would still apply.  */
3101char $ac_func();
3102
3103int main() {
3104
3105/* The GNU C library defines this for functions which it implements
3106    to always fail with ENOSYS.  Some functions are actually named
3107    something starting with __ and the normal name is an alias.  */
3108#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3109choke me
3110#else
3111$ac_func();
3112#endif
3113
3114; return 0; }
3115EOF
3116if { (eval echo configure:3117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3117  rm -rf conftest*
3118  eval "ac_cv_func_$ac_func=yes"
3119else
3120  echo "configure: failed program was:" >&5
3121  cat conftest.$ac_ext >&5
3122  rm -rf conftest*
3123  eval "ac_cv_func_$ac_func=no"
3124fi
3125rm -f conftest*
3126fi
3127
3128if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3129  echo "$ac_t""yes" 1>&6
3130    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3131  cat >> confdefs.h <<EOF
3132#define $ac_tr_func 1
3133EOF
3134 
3135else
3136  echo "$ac_t""no" 1>&6
3137fi
3138done
3139
3140
3141
3142
3143# arithmetic shifts
3144echo $ac_n "checking whether your machine has correct arithmetic shifts""... $ac_c" 1>&6
3145echo "configure:3146: checking whether your machine has correct arithmetic shifts" >&5
3146if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then
3147  echo $ac_n "(cached) $ac_c" 1>&6
3148else
3149  if test "$cross_compiling" = yes; then
3150  if test "$ac_c_cross_dos" = yes; then
3151     ac_cv_shift=yes;
3152   else
3153     echo "$ac_t""no" 1>&6
3154     { echo "configure: error: cross compilation without default value" 1>&2; exit 1; }
3155   fi
3156else
3157  cat > conftest.$ac_ext <<EOF
3158#line 3159 "configure"
3159#include "confdefs.h"
3160 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); }
3161EOF
3162if { (eval echo configure:3163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3163then
3164  ac_cv_shift=yes
3165else
3166  echo "configure: failed program was:" >&5
3167  cat conftest.$ac_ext >&5
3168  rm -fr conftest*
3169  ac_cv_shift=no
3170fi
3171rm -fr conftest*
3172fi
3173
3174fi
3175
3176
3177if test "$ac_cv_shift" = yes; then
3178  echo "$ac_t""yes" 1>&6
3179else
3180  echo "$ac_t""no" 1>&6
3181  { echo "configure: error: need  -2 >> 1 == -1" 1>&2; exit 1; }
3182fi
3183
3184
3185# check for a peculiar constructor initialization
3186echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&6
3187echo "configure:3188: checking whether explicit C++ constructor calls are allowed" >&5
3188
3189ac_ext=C
3190# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3191ac_cpp='$CXXCPP $CPPFLAGS'
3192ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3193ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3194cross_compiling=$ac_cv_prog_cxx_cross
3195
3196if eval "test \"`echo '$''{'ac_cv_explicit_const'+set}'`\" = set"; then
3197  echo $ac_n "(cached) $ac_c" 1>&6
3198else
3199  cat > conftest.$ac_ext <<EOF
3200#line 3201 "configure"
3201#include "confdefs.h"
3202
3203int main() {
3204class testclass
3205  {
3206  public:
3207    int value;
3208    testclass() : value(0) {}
3209    testclass( int i ) : value(i) {}
3210    ~testclass() { value = 0; }
3211  };
3212
3213  testclass ptr;
3214  ptr.testclass(1);
3215
3216; return 0; }
3217EOF
3218if { (eval echo configure:3219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3219  rm -rf conftest*
3220  ac_cv_explicit_const=yes
3221else
3222  echo "configure: failed program was:" >&5
3223  cat conftest.$ac_ext >&5
3224  rm -rf conftest*
3225  ac_cv_explicit_const=no
3226fi
3227rm -f conftest*
3228fi
3229
3230ac_ext=c
3231# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3232ac_cpp='$CPP $CPPFLAGS'
3233ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3234ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3235cross_compiling=$ac_cv_prog_cc_cross
3236
3237echo "$ac_t""$ac_cv_explicit_const" 1>&6
3238if test "$ac_cv_explicit_const" = yes; then
3239  cat >> confdefs.h <<\EOF
3240#define HAVE_EXPLICIT_CONSTR 1
3241EOF
3242
3243fi
3244
3245# sprintf returns number of printed chars
3246echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6
3247echo "configure:3248: checking whether vsprintf returns number of printed chars" >&5
3248if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then
3249  echo $ac_n "(cached) $ac_c" 1>&6
3250else
3251  if test "$cross_compiling" = yes; then
3252  ac_cv_returns_n_of_chars=no
3253else
3254  cat > conftest.$ac_ext <<EOF
3255#line 3256 "configure"
3256#include "confdefs.h"
3257#include <stdio.h>
3258 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); }
3259EOF
3260if { (eval echo configure:3261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3261then
3262  ac_cv_returns_n_of_chars=yes
3263else
3264  echo "configure: failed program was:" >&5
3265  cat conftest.$ac_ext >&5
3266  rm -fr conftest*
3267  ac_cv_returns_n_of_chars=no
3268fi
3269rm -fr conftest*
3270fi
3271
3272fi
3273
3274if test "$ac_cv_returns_n_of_chars" = yes; then
3275  echo "$ac_t""yes" 1>&6
3276else
3277  echo "$ac_t""no" 1>&6
3278  cat >> confdefs.h <<\EOF
3279#define BSD_SPRINTF 1
3280EOF
3281
3282fi
3283
3284# determine ALIGN_8
3285echo $ac_n "checking size of char""... $ac_c" 1>&6
3286echo "configure:3287: checking size of char" >&5
3287if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
3288  echo $ac_n "(cached) $ac_c" 1>&6
3289else
3290  if test "$cross_compiling" = yes; then
3291  ac_cv_sizeof_char=1
3292else
3293  cat > conftest.$ac_ext <<EOF
3294#line 3295 "configure"
3295#include "confdefs.h"
3296#include <stdio.h>
3297main()
3298{
3299  FILE *f=fopen("conftestval", "w");
3300  if (!f) exit(1);
3301  fprintf(f, "%d\n", sizeof(char));
3302  exit(0);
3303}
3304EOF
3305if { (eval echo configure:3306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3306then
3307  ac_cv_sizeof_char=`cat conftestval`
3308else
3309  echo "configure: failed program was:" >&5
3310  cat conftest.$ac_ext >&5
3311  rm -fr conftest*
3312  ac_cv_sizeof_char=0
3313fi
3314rm -fr conftest*
3315fi
3316
3317fi
3318echo "$ac_t""$ac_cv_sizeof_char" 1>&6
3319cat >> confdefs.h <<EOF
3320#define SIZEOF_CHAR $ac_cv_sizeof_char
3321EOF
3322
3323
3324echo $ac_n "checking size of short""... $ac_c" 1>&6
3325echo "configure:3326: checking size of short" >&5
3326if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3327  echo $ac_n "(cached) $ac_c" 1>&6
3328else
3329  if test "$cross_compiling" = yes; then
3330  ac_cv_sizeof_short=2
3331else
3332  cat > conftest.$ac_ext <<EOF
3333#line 3334 "configure"
3334#include "confdefs.h"
3335#include <stdio.h>
3336main()
3337{
3338  FILE *f=fopen("conftestval", "w");
3339  if (!f) exit(1);
3340  fprintf(f, "%d\n", sizeof(short));
3341  exit(0);
3342}
3343EOF
3344if { (eval echo configure:3345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3345then
3346  ac_cv_sizeof_short=`cat conftestval`
3347else
3348  echo "configure: failed program was:" >&5
3349  cat conftest.$ac_ext >&5
3350  rm -fr conftest*
3351  ac_cv_sizeof_short=0
3352fi
3353rm -fr conftest*
3354fi
3355
3356fi
3357echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3358cat >> confdefs.h <<EOF
3359#define SIZEOF_SHORT $ac_cv_sizeof_short
3360EOF
3361
3362
3363echo $ac_n "checking size of int""... $ac_c" 1>&6
3364echo "configure:3365: checking size of int" >&5
3365if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3366  echo $ac_n "(cached) $ac_c" 1>&6
3367else
3368  if test "$cross_compiling" = yes; then
3369  ac_cv_sizeof_int=4
3370else
3371  cat > conftest.$ac_ext <<EOF
3372#line 3373 "configure"
3373#include "confdefs.h"
3374#include <stdio.h>
3375main()
3376{
3377  FILE *f=fopen("conftestval", "w");
3378  if (!f) exit(1);
3379  fprintf(f, "%d\n", sizeof(int));
3380  exit(0);
3381}
3382EOF
3383if { (eval echo configure:3384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3384then
3385  ac_cv_sizeof_int=`cat conftestval`
3386else
3387  echo "configure: failed program was:" >&5
3388  cat conftest.$ac_ext >&5
3389  rm -fr conftest*
3390  ac_cv_sizeof_int=0
3391fi
3392rm -fr conftest*
3393fi
3394
3395fi
3396echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3397cat >> confdefs.h <<EOF
3398#define SIZEOF_INT $ac_cv_sizeof_int
3399EOF
3400
3401
3402echo $ac_n "checking size of long""... $ac_c" 1>&6
3403echo "configure:3404: checking size of long" >&5
3404if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3405  echo $ac_n "(cached) $ac_c" 1>&6
3406else
3407  if test "$cross_compiling" = yes; then
3408  ac_cv_sizeof_long=4
3409else
3410  cat > conftest.$ac_ext <<EOF
3411#line 3412 "configure"
3412#include "confdefs.h"
3413#include <stdio.h>
3414main()
3415{
3416  FILE *f=fopen("conftestval", "w");
3417  if (!f) exit(1);
3418  fprintf(f, "%d\n", sizeof(long));
3419  exit(0);
3420}
3421EOF
3422if { (eval echo configure:3423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3423then
3424  ac_cv_sizeof_long=`cat conftestval`
3425else
3426  echo "configure: failed program was:" >&5
3427  cat conftest.$ac_ext >&5
3428  rm -fr conftest*
3429  ac_cv_sizeof_long=0
3430fi
3431rm -fr conftest*
3432fi
3433
3434fi
3435echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3436cat >> confdefs.h <<EOF
3437#define SIZEOF_LONG $ac_cv_sizeof_long
3438EOF
3439
3440
3441echo $ac_n "checking size of void*""... $ac_c" 1>&6
3442echo "configure:3443: checking size of void*" >&5
3443if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
3444  echo $ac_n "(cached) $ac_c" 1>&6
3445else
3446  if test "$cross_compiling" = yes; then
3447  ac_cv_sizeof_voidp=4
3448else
3449  cat > conftest.$ac_ext <<EOF
3450#line 3451 "configure"
3451#include "confdefs.h"
3452#include <stdio.h>
3453main()
3454{
3455  FILE *f=fopen("conftestval", "w");
3456  if (!f) exit(1);
3457  fprintf(f, "%d\n", sizeof(void*));
3458  exit(0);
3459}
3460EOF
3461if { (eval echo configure:3462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3462then
3463  ac_cv_sizeof_voidp=`cat conftestval`
3464else
3465  echo "configure: failed program was:" >&5
3466  cat conftest.$ac_ext >&5
3467  rm -fr conftest*
3468  ac_cv_sizeof_voidp=0
3469fi
3470rm -fr conftest*
3471fi
3472
3473fi
3474echo "$ac_t""$ac_cv_sizeof_voidp" 1>&6
3475cat >> confdefs.h <<EOF
3476#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
3477EOF
3478
3479
3480echo $ac_n "checking size of double""... $ac_c" 1>&6
3481echo "configure:3482: checking size of double" >&5
3482if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
3483  echo $ac_n "(cached) $ac_c" 1>&6
3484else
3485  if test "$cross_compiling" = yes; then
3486  ac_cv_sizeof_double=8
3487else
3488  cat > conftest.$ac_ext <<EOF
3489#line 3490 "configure"
3490#include "confdefs.h"
3491#include <stdio.h>
3492main()
3493{
3494  FILE *f=fopen("conftestval", "w");
3495  if (!f) exit(1);
3496  fprintf(f, "%d\n", sizeof(double));
3497  exit(0);
3498}
3499EOF
3500if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3501then
3502  ac_cv_sizeof_double=`cat conftestval`
3503else
3504  echo "configure: failed program was:" >&5
3505  cat conftest.$ac_ext >&5
3506  rm -fr conftest*
3507  ac_cv_sizeof_double=0
3508fi
3509rm -fr conftest*
3510fi
3511
3512fi
3513echo "$ac_t""$ac_cv_sizeof_double" 1>&6
3514cat >> confdefs.h <<EOF
3515#define SIZEOF_DOUBLE $ac_cv_sizeof_double
3516EOF
3517
3518
3519echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3520echo "configure:3521: checking whether byte ordering is bigendian" >&5
3521if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3522  echo $ac_n "(cached) $ac_c" 1>&6
3523else
3524  ac_cv_c_bigendian=unknown
3525# See if sys/param.h defines the BYTE_ORDER macro.
3526cat > conftest.$ac_ext <<EOF
3527#line 3528 "configure"
3528#include "confdefs.h"
3529#include <sys/types.h>
3530#include <sys/param.h>
3531int main() {
3532
3533#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3534 bogus endian macros
3535#endif
3536; return 0; }
3537EOF
3538if { (eval echo configure:3539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3539  rm -rf conftest*
3540  # It does; now see whether it defined to BIG_ENDIAN or not.
3541cat > conftest.$ac_ext <<EOF
3542#line 3543 "configure"
3543#include "confdefs.h"
3544#include <sys/types.h>
3545#include <sys/param.h>
3546int main() {
3547
3548#if BYTE_ORDER != BIG_ENDIAN
3549 not big endian
3550#endif
3551; return 0; }
3552EOF
3553if { (eval echo configure:3554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3554  rm -rf conftest*
3555  ac_cv_c_bigendian=yes
3556else
3557  echo "configure: failed program was:" >&5
3558  cat conftest.$ac_ext >&5
3559  rm -rf conftest*
3560  ac_cv_c_bigendian=no
3561fi
3562rm -f conftest*
3563else
3564  echo "configure: failed program was:" >&5
3565  cat conftest.$ac_ext >&5
3566fi
3567rm -f conftest*
3568if test $ac_cv_c_bigendian = unknown; then
3569if test "$cross_compiling" = yes; then
3570    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3571else
3572  cat > conftest.$ac_ext <<EOF
3573#line 3574 "configure"
3574#include "confdefs.h"
3575main () {
3576  /* Are we little or big endian?  From Harbison&Steele.  */
3577  union
3578  {
3579    long l;
3580    char c[sizeof (long)];
3581  } u;
3582  u.l = 1;
3583  exit (u.c[sizeof (long) - 1] == 1);
3584}
3585EOF
3586if { (eval echo configure:3587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3587then
3588  ac_cv_c_bigendian=no
3589else
3590  echo "configure: failed program was:" >&5
3591  cat conftest.$ac_ext >&5
3592  rm -fr conftest*
3593  ac_cv_c_bigendian=yes
3594fi
3595rm -fr conftest*
3596fi
3597
3598fi
3599fi
3600
3601echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3602if test $ac_cv_c_bigendian = yes; then
3603  cat >> confdefs.h <<\EOF
3604#define WORDS_BIGENDIAN 1
3605EOF
3606
3607fi
3608
3609if test "$ac_cv_sizeof_int" != 4; then
3610  { echo "configure: error: need int to be four bytes long" 1>&2; exit 1; }
3611fi
3612if test "$ac_cv_sizeof_long" != "$ac_cv_sizeof_voidp"; then
3613  { echo "configure: error: need equal sizes for long and void*" 1>&2; exit 1; }
3614fi
3615if test "$ac_cv_sizeof_double" != 8; then
3616  { echo "configure: error: need double to b 8 bytes long" 1>&2; exit 1; }
3617fi
3618if test "$ac_cv_sizeof_voidp" != 4 && test "$ac_cv_sizeof_voidp" != 8; then
3619  { echo "configure: error: need void* to be 4 or 8 bytes long" 1>&2; exit 1; }
3620fi
3621
3622# Check whether --with-rootdir or --without-rootdir was given.
3623if test "${with_rootdir+set}" = set; then
3624  withval="$with_rootdir"
3625  :
3626fi
3627
3628# Check whether --with-lex or --without-lex was given.
3629if test "${with_lex+set}" = set; then
3630  withval="$with_lex"
3631  :
3632fi
3633
3634# Check whether --with-readline or --without-readline was given.
3635if test "${with_readline+set}" = set; then
3636  withval="$with_readline"
3637  :
3638fi
3639
3640# Check whether --with-MP or --without-MP was given.
3641if test "${with_MP+set}" = set; then
3642  withval="$with_MP"
3643  :
3644fi
3645
3646# Check whether --with-dbm or --without-dbm was given.
3647if test "${with_dbm+set}" = set; then
3648  withval="$with_dbm"
3649  :
3650fi
3651
3652# Check whether --with-factory or --without-factory was given.
3653if test "${with_factory+set}" = set; then
3654  withval="$with_factory"
3655  :
3656fi
3657
3658# Check whether --with-libfac or --without-libfac was given.
3659if test "${with_libfac+set}" = set; then
3660  withval="$with_libfac"
3661  :
3662fi
3663
3664# Check whether --with-namespaces or --without-namespaces was given.
3665if test "${with_namespaces+set}" = set; then
3666  withval="$with_namespaces"
3667  :
3668fi
3669
3670# Check whether --with-dl or --without-dl was given.
3671if test "${with_dl+set}" = set; then
3672  withval="$with_dl"
3673  :
3674fi
3675
3676# Check whether --with-dynamic-modules or --without-dynamic-modules was given.
3677if test "${with_dynamic_modules+set}" = set; then
3678  withval="$with_dynamic_modules"
3679  :
3680fi
3681 
3682# Check whether --with-dynamic-kernel or --without-dynamic-kernel was given.
3683if test "${with_dynamic_kernel+set}" = set; then
3684  withval="$with_dynamic_kernel"
3685  :
3686fi
3687
3688# Check whether --with-apint or --without-apint was given.
3689if test "${with_apint+set}" = set; then
3690  withval="$with_apint"
3691  :
3692fi
3693
3694# Check whether --with-Plural or --without-Plural was given.
3695if test "${with_Plural+set}" = set; then
3696  withval="$with_Plural"
3697  :
3698fi
3699
3700# Check whether --with-NTL or --without-NTL was given.
3701if test "${with_NTL+set}" = set; then
3702  withval="$with_NTL"
3703  :
3704else
3705  with_NTL=yes
3706fi
3707
3708
3709
3710
3711echo $ac_n "checking whether to use dynamic linking""... $ac_c" 1>&6
3712echo "configure:3713: checking whether to use dynamic linking" >&5
3713if test "$with_dl" != no && test "$ac_lib_dl" = yes; then
3714  cat >> confdefs.h <<\EOF
3715#define HAVE_DL 1
3716EOF
3717
3718  ac_have_dl=yes
3719  echo "$ac_t""yes" 1>&6
3720else
3721  echo "$ac_t""no" 1>&6
3722fi
3723
3724echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
3725echo "configure:3726: checking for tgetent in -lncurses" >&5
3726ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
3727if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3728  echo $ac_n "(cached) $ac_c" 1>&6
3729else
3730  ac_save_LIBS="$LIBS"
3731LIBS="-lncurses  $LIBS"
3732cat > conftest.$ac_ext <<EOF
3733#line 3734 "configure"
3734#include "confdefs.h"
3735/* Override any gcc2 internal prototype to avoid an error.  */
3736/* We use char because int might match the return type of a gcc2
3737    builtin and then its argument prototype would still apply.  */
3738char tgetent();
3739
3740int main() {
3741tgetent()
3742; return 0; }
3743EOF
3744if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3745  rm -rf conftest*
3746  eval "ac_cv_lib_$ac_lib_var=yes"
3747else
3748  echo "configure: failed program was:" >&5
3749  cat conftest.$ac_ext >&5
3750  rm -rf conftest*
3751  eval "ac_cv_lib_$ac_lib_var=no"
3752fi
3753rm -f conftest*
3754LIBS="$ac_save_LIBS"
3755
3756fi
3757if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3758  echo "$ac_t""yes" 1>&6
3759    ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3760    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3761  cat >> confdefs.h <<EOF
3762#define $ac_tr_lib 1
3763EOF
3764
3765  LIBS="-lncurses $LIBS"
3766
3767else
3768  echo "$ac_t""no" 1>&6
3769\
3770 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
3771echo "configure:3772: checking for tgetent in -lcurses" >&5
3772ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
3773if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3774  echo $ac_n "(cached) $ac_c" 1>&6
3775else
3776  ac_save_LIBS="$LIBS"
3777LIBS="-lcurses  $LIBS"
3778cat > conftest.$ac_ext <<EOF
3779#line 3780 "configure"
3780#include "confdefs.h"
3781/* Override any gcc2 internal prototype to avoid an error.  */
3782/* We use char because int might match the return type of a gcc2
3783    builtin and then its argument prototype would still apply.  */
3784char tgetent();
3785
3786int main() {
3787tgetent()
3788; return 0; }
3789EOF
3790if { (eval echo configure:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3791  rm -rf conftest*
3792  eval "ac_cv_lib_$ac_lib_var=yes"
3793else
3794  echo "configure: failed program was:" >&5
3795  cat conftest.$ac_ext >&5
3796  rm -rf conftest*
3797  eval "ac_cv_lib_$ac_lib_var=no"
3798fi
3799rm -f conftest*
3800LIBS="$ac_save_LIBS"
3801
3802fi
3803if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3804  echo "$ac_t""yes" 1>&6
3805    ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
3806    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3807  cat >> confdefs.h <<EOF
3808#define $ac_tr_lib 1
3809EOF
3810
3811  LIBS="-lcurses $LIBS"
3812
3813else
3814  echo "$ac_t""no" 1>&6
3815\
3816  echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
3817echo "configure:3818: checking for tgetent in -ltermcap" >&5
3818ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
3819if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3820  echo $ac_n "(cached) $ac_c" 1>&6
3821else
3822  ac_save_LIBS="$LIBS"
3823LIBS="-ltermcap  $LIBS"
3824cat > conftest.$ac_ext <<EOF
3825#line 3826 "configure"
3826#include "confdefs.h"
3827/* Override any gcc2 internal prototype to avoid an error.  */
3828/* We use char because int might match the return type of a gcc2
3829    builtin and then its argument prototype would still apply.  */
3830char tgetent();
3831
3832int main() {
3833tgetent()
3834; return 0; }
3835EOF
3836if { (eval echo configure:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3837  rm -rf conftest*
3838  eval "ac_cv_lib_$ac_lib_var=yes"
3839else
3840  echo "configure: failed program was:" >&5
3841  cat conftest.$ac_ext >&5
3842  rm -rf conftest*
3843  eval "ac_cv_lib_$ac_lib_var=no"
3844fi
3845rm -f conftest*
3846LIBS="$ac_save_LIBS"
3847
3848fi
3849if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3850  echo "$ac_t""yes" 1>&6
3851    ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/^a-zA-Z0-9_/_/g' \
3852    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3853  cat >> confdefs.h <<EOF
3854#define $ac_tr_lib 1
3855EOF
3856
3857  LIBS="-ltermcap $LIBS"
3858
3859else
3860  echo "$ac_t""no" 1>&6
3861fi
3862
3863fi
3864
3865fi
3866
3867
3868# readline
3869if test "$with_readline" = dynamic && test "$ac_have_dl" != yes; then
3870  echo "configure: warning: can not build dynamic readline without dynamic linking" 1>&2
3871  with_readline=static
3872fi
3873
3874
3875if test "$with_readline" != dynamic && test "$with_readline" != no; then
3876
3877ac_ext=C
3878# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3879ac_cpp='$CXXCPP $CPPFLAGS'
3880ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3881ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3882cross_compiling=$ac_cv_prog_cxx_cross
3883
3884   echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6
3885echo "configure:3886: checking for rl_abort in -lreadline" >&5
3886ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'`
3887if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3888  echo $ac_n "(cached) $ac_c" 1>&6
3889else
3890  ac_save_LIBS="$LIBS"
3891LIBS="-lreadline  $LIBS"
3892cat > conftest.$ac_ext <<EOF
3893#line 3894 "configure"
3894#include "confdefs.h"
3895/* Override any gcc2 internal prototype to avoid an error.  */
3896#ifdef __cplusplus
3897extern "C"
3898#endif
3899/* We use char because int might match the return type of a gcc2
3900    builtin and then its argument prototype would still apply.  */
3901char rl_abort();
3902
3903int main() {
3904rl_abort()
3905; return 0; }
3906EOF
3907if { (eval echo configure:3908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3908  rm -rf conftest*
3909  eval "ac_cv_lib_$ac_lib_var=yes"
3910else
3911  echo "configure: failed program was:" >&5
3912  cat conftest.$ac_ext >&5
3913  rm -rf conftest*
3914  eval "ac_cv_lib_$ac_lib_var=no"
3915fi
3916rm -f conftest*
3917LIBS="$ac_save_LIBS"
3918
3919fi
3920if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3921  echo "$ac_t""yes" 1>&6
3922    ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3923    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3924  cat >> confdefs.h <<EOF
3925#define $ac_tr_lib 1
3926EOF
3927
3928  LIBS="-lreadline $LIBS"
3929
3930else
3931  echo "$ac_t""no" 1>&6
3932fi
3933
3934   echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
3935echo "configure:3936: checking how to run the C++ preprocessor" >&5
3936if test -z "$CXXCPP"; then
3937if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
3938  echo $ac_n "(cached) $ac_c" 1>&6
3939else
3940  ac_ext=C
3941# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3942ac_cpp='$CXXCPP $CPPFLAGS'
3943ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3944ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3945cross_compiling=$ac_cv_prog_cxx_cross
3946  CXXCPP="${CXX-g++} -E"
3947  cat > conftest.$ac_ext <<EOF
3948#line 3949 "configure"
3949#include "confdefs.h"
3950#include <stdlib.h>
3951EOF
3952ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3953{ (eval echo configure:3954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3954ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3955if test -z "$ac_err"; then
3956  :
3957else
3958  echo "$ac_err" >&5
3959  echo "configure: failed program was:" >&5
3960  cat conftest.$ac_ext >&5
3961  rm -rf conftest*
3962  CXXCPP=/lib/cpp
3963fi
3964rm -f conftest*
3965  ac_cv_prog_CXXCPP="$CXXCPP"
3966ac_ext=C
3967# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3968ac_cpp='$CXXCPP $CPPFLAGS'
3969ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3970ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3971cross_compiling=$ac_cv_prog_cxx_cross
3972fi
3973fi
3974CXXCPP="$ac_cv_prog_CXXCPP"
3975echo "$ac_t""$CXXCPP" 1>&6
3976
3977for ac_hdr in readline/readline.h readline/history.h
3978do
3979ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3980echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3981echo "configure:3982: checking for $ac_hdr" >&5
3982if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3983  echo $ac_n "(cached) $ac_c" 1>&6
3984else
3985  cat > conftest.$ac_ext <<EOF
3986#line 3987 "configure"
3987#include "confdefs.h"
3988#include <$ac_hdr>
3989EOF
3990ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3991{ (eval echo configure:3992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3992ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3993if test -z "$ac_err"; then
3994  rm -rf conftest*
3995  eval "ac_cv_header_$ac_safe=yes"
3996else
3997  echo "$ac_err" >&5
3998  echo "configure: failed program was:" >&5
3999  cat conftest.$ac_ext >&5
4000  rm -rf conftest*
4001  eval "ac_cv_header_$ac_safe=no"
4002fi
4003rm -f conftest*
4004fi
4005if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4006  echo "$ac_t""yes" 1>&6
4007    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4008  cat >> confdefs.h <<EOF
4009#define $ac_tr_hdr 1
4010EOF
4011 
4012else
4013  echo "$ac_t""no" 1>&6
4014fi
4015done
4016
4017   if test "$ac_cv_lib_readline_rl_abort" = yes && \
4018      test "$ac_cv_header_readline_readline_h" = yes; then
4019     echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6
4020echo "configure:4021: checking whether readline.h is ok" >&5
4021     if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then
4022  echo $ac_n "(cached) $ac_c" 1>&6
4023else
4024  cat > conftest.$ac_ext <<EOF
4025#line 4026 "configure"
4026#include "confdefs.h"
4027#include<unistd.h>
4028#include<stdio.h>
4029#include<readline/readline.h>
4030#ifdef HAVE_READLINE_HISTORY_H
4031#include<readline/history.h>
4032#endif
4033
4034int main() {
4035
4036; return 0; }
4037EOF
4038if { (eval echo configure:4039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4039  rm -rf conftest*
4040  ac_cv_header_readline_readline_h_ok="yes"
4041else
4042  echo "configure: failed program was:" >&5
4043  cat conftest.$ac_ext >&5
4044  rm -rf conftest*
4045  ac_cv_header_readline_readline_h_ok="no"
4046fi
4047rm -f conftest*
4048fi
4049
4050    echo "$ac_t""$ac_cv_header_readline_readline_h_ok" 1>&6
4051    if test "$ac_cv_header_readline_readline_h_ok" != yes; then
4052#not ok -- try once more with explicitly declaring everything
4053      echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6
4054echo "configure:4055: checking whether or not we nevertheless can use readline" >&5
4055      if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then
4056  echo $ac_n "(cached) $ac_c" 1>&6
4057else
4058  cat > conftest.$ac_ext <<EOF
4059#line 4060 "configure"
4060#include "confdefs.h"
4061#include <stdio.h>
4062extern "C"
4063{
4064extern char * rl_readline_name;
4065extern char *rl_line_buffer;
4066char *filename_completion_function();
4067typedef char **CPPFunction ();
4068extern char ** completion_matches ();
4069extern CPPFunction * rl_attempted_completion_function;
4070extern FILE * rl_outstream;
4071char * readline ();
4072void add_history ();
4073int write_history ();
4074int read_history();
4075}
4076#ifndef NULL
4077#define NULL 0
4078#endif
4079
4080int main() {
4081rl_readline_name=NULL;
4082*rl_line_buffer=1;
4083completion_matches(NULL, filename_completion_function);
4084rl_attempted_completion_function = (CPPFunction *) NULL;
4085rl_outstream=NULL;
4086readline(NULL);
4087add_history(NULL);
4088read_history(NULL);
4089write_history(NULL);
4090
4091; return 0; }
4092EOF
4093if { (eval echo configure:4094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4094  rm -rf conftest*
4095  ac_cv_have_readline="yes"
4096
4097else
4098  echo "configure: failed program was:" >&5
4099  cat conftest.$ac_ext >&5
4100  rm -rf conftest*
4101  ac_cv_have_readline="no"
4102
4103fi
4104rm -f conftest*
4105fi
4106
4107      echo "$ac_t""$ac_cv_have_readline" 1>&6
4108    else
4109      cat >> confdefs.h <<\EOF
4110#define READLINE_READLINE_H_OK 1
4111EOF
4112
4113      ac_cv_have_readline="yes"
4114    fi
4115  fi
4116  if test "$ac_cv_have_readline" = yes; then
4117    cat >> confdefs.h <<\EOF
4118#define HAVE_READLINE 1
4119EOF
4120
4121  fi
4122ac_ext=c
4123# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4124ac_cpp='$CPP $CPPFLAGS'
4125ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4126ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4127cross_compiling=$ac_cv_prog_cc_cross
4128
4129fi
4130
4131echo $ac_n "checking which readline to use""... $ac_c" 1>&6
4132echo "configure:4133: checking which readline to use" >&5
4133if test "$ac_cv_with_readline" = dynamic; then
4134  echo "$ac_t""dynamic" 1>&6
4135  cat >> confdefs.h <<\EOF
4136#define HAVE_DYN_RL 1
4137EOF
4138
4139elif test "$ac_cv_have_readline" = yes; then
4140  echo "$ac_t""static" 1>&6
4141elif test "$ac_cv_singuname" = PowerMacintosh-darwin; then
4142  { echo "configure: error: building without readline impossible on PowerMacintosh-darwin" 1>&2; exit 1; }
4143else
4144  echo "$ac_t""none" 1>&6
4145  echo "configure: warning: building without readline: disabling fancy display" 1>&2
4146fi
4147 
4148NEED_LIBS=$LIBS
4149
4150# gmp, smallgmp, MP, MPT, factory, libfac
4151echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
4152echo "configure:4153: checking for main in -lgmp" >&5
4153ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
4154if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4155  echo $ac_n "(cached) $ac_c" 1>&6
4156else
4157  ac_save_LIBS="$LIBS"
4158LIBS="-lgmp  $LIBS"
4159cat > conftest.$ac_ext <<EOF
4160#line 4161 "configure"
4161#include "confdefs.h"
4162
4163int main() {
4164main()
4165; return 0; }
4166EOF
4167if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4168  rm -rf conftest*
4169  eval "ac_cv_lib_$ac_lib_var=yes"
4170else
4171  echo "configure: failed program was:" >&5
4172  cat conftest.$ac_ext >&5
4173  rm -rf conftest*
4174  eval "ac_cv_lib_$ac_lib_var=no"
4175fi
4176rm -f conftest*
4177LIBS="$ac_save_LIBS"
4178
4179fi
4180if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4181  echo "$ac_t""yes" 1>&6
4182    ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4183    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4184  cat >> confdefs.h <<EOF
4185#define $ac_tr_lib 1
4186EOF
4187
4188  LIBS="-lgmp $LIBS"
4189
4190else
4191  echo "$ac_t""no" 1>&6
4192fi
4193
4194if test "ac_cv_lib_gmp_main" = yes && test "$with-apint" = smallgmp; then
4195  LIBS=${NEED_LIBS}
4196fi
4197echo $ac_n "checking for main in -lsmallgmp""... $ac_c" 1>&6
4198echo "configure:4199: checking for main in -lsmallgmp" >&5
4199ac_lib_var=`echo smallgmp'_'main | sed 'y%./+-%__p_%'`
4200if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4201  echo $ac_n "(cached) $ac_c" 1>&6
4202else
4203  ac_save_LIBS="$LIBS"
4204LIBS="-lsmallgmp  $LIBS"
4205cat > conftest.$ac_ext <<EOF
4206#line 4207 "configure"
4207#include "confdefs.h"
4208
4209int main() {
4210main()
4211; return 0; }
4212EOF
4213if { (eval echo configure:4214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4214  rm -rf conftest*
4215  eval "ac_cv_lib_$ac_lib_var=yes"
4216else
4217  echo "configure: failed program was:" >&5
4218  cat conftest.$ac_ext >&5
4219  rm -rf conftest*
4220  eval "ac_cv_lib_$ac_lib_var=no"
4221fi
4222rm -f conftest*
4223LIBS="$ac_save_LIBS"
4224
4225fi
4226if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4227  echo "$ac_t""yes" 1>&6
4228    ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4229    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4230  cat >> confdefs.h <<EOF
4231#define $ac_tr_lib 1
4232EOF
4233
4234  LIBS="-lsmallgmp $LIBS"
4235
4236else
4237  echo "$ac_t""no" 1>&6
4238fi
4239
4240SAVE_LIBS=$LIBS
4241echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
4242echo "configure:4243: checking for IMP_PutGmpInt in -lMP" >&5
4243ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
4244if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4245  echo $ac_n "(cached) $ac_c" 1>&6
4246else
4247  ac_save_LIBS="$LIBS"
4248LIBS="-lMP $MP_LIBS $LIBS"
4249cat > conftest.$ac_ext <<EOF
4250#line 4251 "configure"
4251#include "confdefs.h"
4252/* Override any gcc2 internal prototype to avoid an error.  */
4253/* We use char because int might match the return type of a gcc2
4254    builtin and then its argument prototype would still apply.  */
4255char IMP_PutGmpInt();
4256
4257int main() {
4258IMP_PutGmpInt()
4259; return 0; }
4260EOF
4261if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4262  rm -rf conftest*
4263  eval "ac_cv_lib_$ac_lib_var=yes"
4264else
4265  echo "configure: failed program was:" >&5
4266  cat conftest.$ac_ext >&5
4267  rm -rf conftest*
4268  eval "ac_cv_lib_$ac_lib_var=no"
4269fi
4270rm -f conftest*
4271LIBS="$ac_save_LIBS"
4272
4273fi
4274if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4275  echo "$ac_t""yes" 1>&6
4276    ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4277    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4278  cat >> confdefs.h <<EOF
4279#define $ac_tr_lib 1
4280EOF
4281
4282  LIBS="-lMP $LIBS"
4283
4284else
4285  echo "$ac_t""no" 1>&6
4286fi
4287
4288echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
4289echo "configure:4290: checking for MPT_GetTree in -lMPT" >&5
4290ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
4291if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4292  echo $ac_n "(cached) $ac_c" 1>&6
4293else
4294  ac_save_LIBS="$LIBS"
4295LIBS="-lMPT $MP_LIBS $LIBS"
4296cat > conftest.$ac_ext <<EOF
4297#line 4298 "configure"
4298#include "confdefs.h"
4299/* Override any gcc2 internal prototype to avoid an error.  */
4300/* We use char because int might match the return type of a gcc2
4301    builtin and then its argument prototype would still apply.  */
4302char MPT_GetTree();
4303
4304int main() {
4305MPT_GetTree()
4306; return 0; }
4307EOF
4308if { (eval echo configure:4309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4309  rm -rf conftest*
4310  eval "ac_cv_lib_$ac_lib_var=yes"
4311else
4312  echo "configure: failed program was:" >&5
4313  cat conftest.$ac_ext >&5
4314  rm -rf conftest*
4315  eval "ac_cv_lib_$ac_lib_var=no"
4316fi
4317rm -f conftest*
4318LIBS="$ac_save_LIBS"
4319
4320fi
4321if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4322  echo "$ac_t""yes" 1>&6
4323    ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4324    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4325  cat >> confdefs.h <<EOF
4326#define $ac_tr_lib 1
4327EOF
4328
4329  LIBS="-lMPT $LIBS"
4330
4331else
4332  echo "$ac_t""no" 1>&6
4333fi
4334
4335LIBS=$SAVE_LIBS
4336echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
4337echo "configure:4338: checking for atof in -lsingcf" >&5
4338ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
4339if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4340  echo $ac_n "(cached) $ac_c" 1>&6
4341else
4342  ac_save_LIBS="$LIBS"
4343LIBS="-lsingcf  $LIBS"
4344cat > conftest.$ac_ext <<EOF
4345#line 4346 "configure"
4346#include "confdefs.h"
4347/* Override any gcc2 internal prototype to avoid an error.  */
4348/* We use char because int might match the return type of a gcc2
4349    builtin and then its argument prototype would still apply.  */
4350char atof();
4351
4352int main() {
4353atof()
4354; return 0; }
4355EOF
4356if { (eval echo configure:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4357  rm -rf conftest*
4358  eval "ac_cv_lib_$ac_lib_var=yes"
4359else
4360  echo "configure: failed program was:" >&5
4361  cat conftest.$ac_ext >&5
4362  rm -rf conftest*
4363  eval "ac_cv_lib_$ac_lib_var=no"
4364fi
4365rm -f conftest*
4366LIBS="$ac_save_LIBS"
4367
4368fi
4369if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4370  echo "$ac_t""yes" 1>&6
4371    ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4372    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4373  cat >> confdefs.h <<EOF
4374#define $ac_tr_lib 1
4375EOF
4376
4377  LIBS="-lsingcf $LIBS"
4378
4379else
4380  echo "$ac_t""no" 1>&6
4381fi
4382
4383echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
4384echo "configure:4385: checking for atof in -lsingfac" >&5
4385ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
4386if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4387  echo $ac_n "(cached) $ac_c" 1>&6
4388else
4389  ac_save_LIBS="$LIBS"
4390LIBS="-lsingfac  $LIBS"
4391cat > conftest.$ac_ext <<EOF
4392#line 4393 "configure"
4393#include "confdefs.h"
4394/* Override any gcc2 internal prototype to avoid an error.  */
4395/* We use char because int might match the return type of a gcc2
4396    builtin and then its argument prototype would still apply.  */
4397char atof();
4398
4399int main() {
4400atof()
4401; return 0; }
4402EOF
4403if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4404  rm -rf conftest*
4405  eval "ac_cv_lib_$ac_lib_var=yes"
4406else
4407  echo "configure: failed program was:" >&5
4408  cat conftest.$ac_ext >&5
4409  rm -rf conftest*
4410  eval "ac_cv_lib_$ac_lib_var=no"
4411fi
4412rm -f conftest*
4413LIBS="$ac_save_LIBS"
4414
4415fi
4416if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4417  echo "$ac_t""yes" 1>&6
4418    ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4419    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4420  cat >> confdefs.h <<EOF
4421#define $ac_tr_lib 1
4422EOF
4423
4424  LIBS="-lsingfac $LIBS"
4425
4426else
4427  echo "$ac_t""no" 1>&6
4428fi
4429
4430echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6
4431echo "configure:4432: checking for omTestAddr in -lomalloc" >&5
4432ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'`
4433if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4434  echo $ac_n "(cached) $ac_c" 1>&6
4435else
4436  ac_save_LIBS="$LIBS"
4437LIBS="-lomalloc  $LIBS"
4438cat > conftest.$ac_ext <<EOF
4439#line 4440 "configure"
4440#include "confdefs.h"
4441/* Override any gcc2 internal prototype to avoid an error.  */
4442/* We use char because int might match the return type of a gcc2
4443    builtin and then its argument prototype would still apply.  */
4444char omTestAddr();
4445
4446int main() {
4447omTestAddr()
4448; return 0; }
4449EOF
4450if { (eval echo configure:4451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4451  rm -rf conftest*
4452  eval "ac_cv_lib_$ac_lib_var=yes"
4453else
4454  echo "configure: failed program was:" >&5
4455  cat conftest.$ac_ext >&5
4456  rm -rf conftest*
4457  eval "ac_cv_lib_$ac_lib_var=no"
4458fi
4459rm -f conftest*
4460LIBS="$ac_save_LIBS"
4461
4462fi
4463if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4464  echo "$ac_t""yes" 1>&6
4465    ac_tr_lib=HAVE_LIB`echo omalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4466    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4467  cat >> confdefs.h <<EOF
4468#define $ac_tr_lib 1
4469EOF
4470
4471  LIBS="-lomalloc $LIBS"
4472
4473else
4474  echo "$ac_t""no" 1>&6
4475fi
4476
4477echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6
4478echo "configure:4479: checking for main in -lomalloc_ndebug" >&5
4479ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'`
4480if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4481  echo $ac_n "(cached) $ac_c" 1>&6
4482else
4483  ac_save_LIBS="$LIBS"
4484LIBS="-lomalloc_ndebug  $LIBS"
4485cat > conftest.$ac_ext <<EOF
4486#line 4487 "configure"
4487#include "confdefs.h"
4488
4489int main() {
4490main()
4491; return 0; }
4492EOF
4493if { (eval echo configure:4494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4494  rm -rf conftest*
4495  eval "ac_cv_lib_$ac_lib_var=yes"
4496else
4497  echo "configure: failed program was:" >&5
4498  cat conftest.$ac_ext >&5
4499  rm -rf conftest*
4500  eval "ac_cv_lib_$ac_lib_var=no"
4501fi
4502rm -f conftest*
4503LIBS="$ac_save_LIBS"
4504
4505fi
4506if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4507  echo "$ac_t""yes" 1>&6
4508    ac_tr_lib=HAVE_LIB`echo omalloc_ndebug | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4509    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4510  cat >> confdefs.h <<EOF
4511#define $ac_tr_lib 1
4512EOF
4513
4514  LIBS="-lomalloc_ndebug $LIBS"
4515
4516else
4517  echo "$ac_t""no" 1>&6
4518fi
4519
4520echo $ac_n "checking for main in -lntl""... $ac_c" 1>&6
4521echo "configure:4522: checking for main in -lntl" >&5
4522ac_lib_var=`echo ntl'_'main | sed 'y%./+-%__p_%'`
4523if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4524  echo $ac_n "(cached) $ac_c" 1>&6
4525else
4526  ac_save_LIBS="$LIBS"
4527LIBS="-lntl  $LIBS"
4528cat > conftest.$ac_ext <<EOF
4529#line 4530 "configure"
4530#include "confdefs.h"
4531
4532int main() {
4533main()
4534; return 0; }
4535EOF
4536if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4537  rm -rf conftest*
4538  eval "ac_cv_lib_$ac_lib_var=yes"
4539else
4540  echo "configure: failed program was:" >&5
4541  cat conftest.$ac_ext >&5
4542  rm -rf conftest*
4543  eval "ac_cv_lib_$ac_lib_var=no"
4544fi
4545rm -f conftest*
4546LIBS="$ac_save_LIBS"
4547
4548fi
4549if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4550  echo "$ac_t""yes" 1>&6
4551    ac_tr_lib=HAVE_LIB`echo ntl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4552    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4553  cat >> confdefs.h <<EOF
4554#define $ac_tr_lib 1
4555EOF
4556
4557  LIBS="-lntl $LIBS"
4558
4559else
4560  echo "$ac_t""no" 1>&6
4561fi
4562
4563
4564for ac_hdr in gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h omalloc.h omalloc.c
4565do
4566ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4567echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4568echo "configure:4569: checking for $ac_hdr" >&5
4569if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4570  echo $ac_n "(cached) $ac_c" 1>&6
4571else
4572  cat > conftest.$ac_ext <<EOF
4573#line 4574 "configure"
4574#include "confdefs.h"
4575#include <$ac_hdr>
4576EOF
4577ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4578{ (eval echo configure:4579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4579ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4580if test -z "$ac_err"; then
4581  rm -rf conftest*
4582  eval "ac_cv_header_$ac_safe=yes"
4583else
4584  echo "$ac_err" >&5
4585  echo "configure: failed program was:" >&5
4586  cat conftest.$ac_ext >&5
4587  rm -rf conftest*
4588  eval "ac_cv_header_$ac_safe=no"
4589fi
4590rm -f conftest*
4591fi
4592if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4593  echo "$ac_t""yes" 1>&6
4594    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4595  cat >> confdefs.h <<EOF
4596#define $ac_tr_hdr 1
4597EOF
4598 
4599else
4600  echo "$ac_t""no" 1>&6
4601fi
4602done
4603
4604
4605if test "$ac_cv_lib_gmp_main" = yes && \
4606 test "$ac_cv_header_gmp_h" = yes; then
4607    ac_gmp_ok=yes
4608fi
4609
4610if test "$ac_cv_lib_smallgmp_main" = yes && \
4611 test "$ac_cv_header_smallgmp_h" = yes && \
4612 test "$ac_cv_header_gmp_h" = yes; then
4613    ac_smallgmp_ok=yes
4614fi
4615
4616if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \
4617 test "$ac_cv_lib_MPT_MPT_GetTree" && \
4618 test "$ac_cv_header_MP_h" = yes && \
4619 test "$ac_cv_header_MPT_h" = yes; then
4620  ac_MP_ok=yes
4621fi
4622
4623if test "$ac_cv_lib_singcf_atof" = yes && \
4624 test "$ac_cv_header_factory_h" = yes; then
4625  ac_factory_ok=yes
4626fi
4627
4628if test "$ac_cv_lib_singfac_atof" = yes && \
4629 test "$ac_cv_header_factor_h" = yes; then
4630  ac_libfac_ok=yes
4631fi
4632
4633if test "$ac_cv_lib_omalloc_omTestAddr" = yes && \
4634   test "$ac_cv_lib_omalloc_ndebug_main" = yes && \
4635   test "$ac_cv_header_omalloc_c" = yes && \
4636   test "$ac_cv_header_omalloc_h" = yes; then
4637  ac_cv_omalloc_ok=yes
4638fi
4639
4640if test "$ac_cv_lib_ntl_main" = yes; then
4641  ac_cv_ntl_ok=yes
4642fi
4643
4644# evaluate results
4645if test "$ac_cv_omalloc_ok" != yes && test "$enable_omalloc" != yes; then
4646  { echo "configure: error: can not build without omalloc" 1>&2; exit 1; }
4647fi
4648
4649echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
4650echo "configure:4651: checking which apint package to use" >&5
4651if test "${with_apint}" != gmp && test "${with_apint}" != smallgmp; then
4652  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
4653    echo "$ac_t""gmp" 1>&6
4654    will_have_gmp=yes
4655    NEED_LIBS="-lgmp ${NEED_LIBS}"
4656  elif test "ac_gmp_smallgmp_ok" = yes || test "$enable_smallgmp" = "yes"; then
4657    echo "$ac_t""smallgmp" 1>&6
4658    cat >> confdefs.h <<\EOF
4659#define HAVE_SMALLGMP 1
4660EOF
4661
4662    NEED_LIBS="-lsmallgmp ${NEED_LIBS}"
4663  else
4664    echo "$ac_t""none" 1>&6
4665    { echo "configure: error: can not build without gmp or smallgmp" 1>&2; exit 1; }
4666  fi
4667elif test "${with_apint}" = gmp; then
4668  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
4669    echo "$ac_t""gmp" 1>&6
4670    will_have_gmp=yes
4671    NEED_LIBS="-lgmp ${NEED_LIBS}"
4672  else
4673    echo "$ac_t""none" 1>&6
4674    { echo "configure: error: can not build with gmp" 1>&2; exit 1; }
4675  fi
4676else
4677  if test "ac_gmp_smallgmp_ok" = yes || test "$enable_smallgmp" = "yes"; then
4678    echo "$ac_t""smallgmp" 1>&6
4679    cat >> confdefs.h <<\EOF
4680#define HAVE_SMALLGMP 1
4681EOF
4682
4683    NEED_LIBS="-lsmallgmp ${NEED_LIBS}"
4684  else
4685    echo "$ac_t""none" 1>&6
4686    { echo "configure: error: can not build with smallgmp" 1>&2; exit 1; }
4687  fi
4688fi
4689
4690#
4691echo $ac_n "checking whether to have MP""... $ac_c" 1>&6
4692echo "configure:4693: checking whether to have MP" >&5
4693if test "${with_MP}" != yes && test "${with_MP}" != no; then
4694  if (test "${will_have_gmp}" = yes) && \
4695     (test "$ac_MP_ok" =  yes || test "$enable_MP" = yes); then
4696    echo "$ac_t""yes" 1>&6
4697    cat >> confdefs.h <<\EOF
4698#define HAVE_MPSR 1
4699EOF
4700
4701    HAVE_MPSR=1
4702    MP_LIBS="-lMPT -lMP ${MP_LIBS}"
4703  else
4704    echo "$ac_t""no" 1>&6
4705  fi
4706elif  test "${with_MP}" = yes; then
4707  if (test "${will_have_gmp}" = yes) && \
4708     (test "$ac_MP_ok" =  yes || test "$enable_MP" = yes); then
4709    echo "$ac_t""yes" 1>&6
4710    cat >> confdefs.h <<\EOF
4711#define HAVE_MPSR 1
4712EOF
4713
4714    HAVE_MPSR=1
4715    MP_LIBS="-lMPT -lMP ${MP_LIBS}"
4716  else
4717    echo "$ac_t""no" 1>&6
4718    { echo "configure: error: can not build with MP" 1>&2; exit 1; }
4719  fi
4720else
4721  echo "$ac_t""no" 1>&6
4722fi
4723
4724
4725
4726echo $ac_n "checking whether to have NTL""... $ac_c" 1>&6
4727echo "configure:4728: checking whether to have NTL" >&5
4728if test "${with_NTL}" = yes ; then
4729  echo "$ac_t""yes" 1>&6
4730  NEED_LIBS="-lntl ${NEED_LIBS}"
4731else
4732  echo "$ac_t""no" 1>&6
4733fi
4734
4735echo $ac_n "checking whether to have factory""... $ac_c" 1>&6
4736echo "configure:4737: checking whether to have factory" >&5
4737if test "${with_factory}" != yes && test "${with_factory}" != no; then
4738  if test "$ac_factory_ok" =  yes || test "$enable_factory" = yes; then
4739    echo "$ac_t""yes" 1>&6
4740    cat >> confdefs.h <<\EOF
4741#define HAVE_FACTORY 1
4742EOF
4743
4744    will_have_factory=yes
4745    NEED_LIBS="-lsingcf ${NEED_LIBS}"
4746  else
4747    echo "$ac_t""no" 1>&6
4748  fi
4749elif  test "${with_factory}" = yes; then
4750  if test "$ac_factory_ok" =  yes || test "$enable_factory" = yes; then
4751    echo "$ac_t""yes" 1>&6
4752    cat >> confdefs.h <<\EOF
4753#define HAVE_FACTORY 1
4754EOF
4755
4756    will_have_factory=yes
4757    NEED_LIBS="-lsingcf ${NEED_LIBS}"
4758  else
4759    echo "$ac_t""no" 1>&6
4760    { echo "configure: error: can not build with factory" 1>&2; exit 1; }
4761  fi
4762else
4763  echo "$ac_t""no" 1>&6
4764fi
4765
4766echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6
4767echo "configure:4768: checking whether to have libfac" >&5
4768if test "${with_libfac}" != yes && test "${with_libfac}" != no; then
4769  if (test "${will_have_factory}" = yes) && \
4770     (test "$ac_libfac_ok" =  yes || test "$enable_libfac" = yes); then
4771    echo "$ac_t""yes" 1>&6
4772    cat >> confdefs.h <<\EOF
4773#define HAVE_LIBFAC_P 1
4774EOF
4775
4776    NEED_LIBS="-lsingfac ${NEED_LIBS}"
4777  else
4778    echo "$ac_t""no" 1>&6
4779  fi
4780elif  test "${with_libfac}" = yes; then
4781  if (test "${will_have_factory}" = yes) && \
4782     (test "$ac_libfac_ok" =  yes || test "$enable_libfac" = yes); then
4783    echo "$ac_t""yes" 1>&6
4784    cat >> confdefs.h <<\EOF
4785#define HAVE_LIBFAC_P 1
4786EOF
4787
4788    NEED_LIBS="-lsingfac ${NEED_LIBS}"
4789  else
4790    echo "$ac_t""no" 1>&6
4791    { echo "configure: error: can not build with libfac" 1>&2; exit 1; }
4792  fi
4793else
4794  echo "$ac_t""no" 1>&6
4795fi
4796
4797
4798
4799
4800echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6
4801echo "configure:4802: checking whether to have dbm links" >&5
4802if test "$with_dbm" != no; then
4803  cat >> confdefs.h <<\EOF
4804#define HAVE_DBM 1
4805EOF
4806
4807  echo "$ac_t""yes" 1>&6
4808else
4809  echo "$ac_t""no" 1>&6
4810fi
4811
4812echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6
4813echo "configure:4814: checking whether to have namespaces" >&5
4814if test "$with_namespaces" != no; then
4815  echo "$ac_t""yes" 1>&6
4816  cat >> confdefs.h <<\EOF
4817#define HAVE_NS 1
4818EOF
4819
4820else
4821  echo "$ac_t""no" 1>&6
4822fi
4823
4824echo $ac_n "checking whether to have dynamic modules""... $ac_c" 1>&6
4825echo "configure:4826: checking whether to have dynamic modules" >&5
4826if test "$with_dynamic_modules" = no || test "$ac_have_dl" != yes; then
4827  echo "$ac_t""no" 1>&6
4828else
4829  cat >> confdefs.h <<\EOF
4830#define HAVE_DYNAMIC_LOADING 1
4831EOF
4832
4833  echo "$ac_t""yes" 1>&6
4834fi
4835
4836echo $ac_n "checking whether to have dynamic kernel""... $ac_c" 1>&6
4837echo "configure:4838: checking whether to have dynamic kernel" >&5
4838if test "$with_dynamic_kernel" != no && test "$ac_lib_dl" = yes; then
4839  DL_KERNEL=1
4840 
4841  echo "$ac_t""yes" 1>&6
4842else
4843  echo "$ac_t""no" 1>&6
4844fi
4845
4846echo $ac_n "checking whether to have Plural""... $ac_c" 1>&6
4847echo "configure:4848: checking whether to have Plural" >&5
4848if test "$with_Plural" != yes && test "$enable_Plural" != yes; then
4849  echo "$ac_t""no" 1>&6
4850else
4851  cat >> confdefs.h <<\EOF
4852#define HAVE_PLURAL 1
4853EOF
4854
4855  echo "$ac_t""yes" 1>&6
4856fi
4857
4858
4859OUTPUT_MAKEFILES=Makefile
4860
4861if test "$ac_cv_singuname" = "ix86-Win"; then
4862  OUTPUT_MAKEFILES="${OUTPUT_MAKEFILES} Singular.rc"
4863fi
4864
4865trap '' 1 2 15
4866cat > confcache <<\EOF
4867# This file is a shell script that caches the results of configure
4868# tests run on this system so they can be shared between configure
4869# scripts and configure runs.  It is not useful on other systems.
4870# If it contains results you don't want to keep, you may remove or edit it.
4871#
4872# By default, configure uses ./config.cache as the cache file,
4873# creating it if it does not exist already.  You can give configure
4874# the --cache-file=FILE option to use a different cache file; that is
4875# what configure does when it calls configure scripts in
4876# subdirectories, so they share the cache.
4877# Giving --cache-file=/dev/null disables caching, for debugging configure.
4878# config.status only pays attention to the cache file if you give it the
4879# --recheck option to rerun configure.
4880#
4881EOF
4882# The following way of writing the cache mishandles newlines in values,
4883# but we know of no workaround that is simple, portable, and efficient.
4884# So, don't put newlines in cache variables' values.
4885# Ultrix sh set writes to stderr and can't be redirected directly,
4886# and sets the high bit in the cache file unless we assign to the vars.
4887(set) 2>&1 |
4888  case `(ac_space=' '; set | grep ac_space) 2>&1` in
4889  *ac_space=\ *)
4890    # `set' does not quote correctly, so add quotes (double-quote substitution
4891    # turns \\\\ into \\, and sed turns \\ into \).
4892    sed -n \
4893      -e "s/'/'\\\\''/g" \
4894      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4895    ;;
4896  *)
4897    # `set' quotes correctly as required by POSIX, so do not add quotes.
4898    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4899    ;;
4900  esac >> confcache
4901if cmp -s $cache_file confcache; then
4902  :
4903else
4904  if test -w $cache_file; then
4905    echo "updating cache $cache_file"
4906    cat confcache > $cache_file
4907  else
4908    echo "not updating unwritable cache $cache_file"
4909  fi
4910fi
4911rm -f confcache
4912
4913trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4914
4915test "x$prefix" = xNONE && prefix=$ac_default_prefix
4916# Let make expand exec_prefix.
4917test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4918
4919# Any assignment to VPATH causes Sun make to only execute
4920# the first set of double-colon rules, so remove it if not needed.
4921# If there is a colon in the path, we need to keep it.
4922if test "x$srcdir" = x.; then
4923  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
4924fi
4925
4926trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4927
4928DEFS=-DHAVE_CONFIG_H
4929
4930# Without the "./", some shells look in PATH for config.status.
4931: ${CONFIG_STATUS=./config.status}
4932
4933echo creating $CONFIG_STATUS
4934rm -f $CONFIG_STATUS
4935cat > $CONFIG_STATUS <<EOF
4936#! /bin/sh
4937# Generated automatically by configure.
4938# Run this file to recreate the current configuration.
4939# This directory was configured as follows,
4940# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4941#
4942# $0 $ac_configure_args
4943#
4944# Compiler output produced by configure, useful for debugging
4945# configure, is in ./config.log if it exists.
4946
4947ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4948for ac_option
4949do
4950  case "\$ac_option" in
4951  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4952    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4953    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4954  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4955    echo "$CONFIG_STATUS generated by autoconf version 2.13"
4956    exit 0 ;;
4957  -help | --help | --hel | --he | --h)
4958    echo "\$ac_cs_usage"; exit 0 ;;
4959  *) echo "\$ac_cs_usage"; exit 1 ;;
4960  esac
4961done
4962
4963ac_given_srcdir=$srcdir
4964ac_given_INSTALL="$INSTALL"
4965
4966trap 'rm -fr `echo "${OUTPUT_MAKEFILES} mod2.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4967EOF
4968cat >> $CONFIG_STATUS <<EOF
4969
4970# Protect against being on the right side of a sed subst in config.status.
4971sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4972 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4973$ac_vpsub
4974$extrasub
4975s%@SHELL@%$SHELL%g
4976s%@CFLAGS@%$CFLAGS%g
4977s%@CPPFLAGS@%$CPPFLAGS%g
4978s%@CXXFLAGS@%$CXXFLAGS%g
4979s%@FFLAGS@%$FFLAGS%g
4980s%@DEFS@%$DEFS%g
4981s%@LDFLAGS@%$LDFLAGS%g
4982s%@LIBS@%$LIBS%g
4983s%@exec_prefix@%$exec_prefix%g
4984s%@prefix@%$prefix%g
4985s%@program_transform_name@%$program_transform_name%g
4986s%@bindir@%$bindir%g
4987s%@sbindir@%$sbindir%g
4988s%@libexecdir@%$libexecdir%g
4989s%@datadir@%$datadir%g
4990s%@sysconfdir@%$sysconfdir%g
4991s%@sharedstatedir@%$sharedstatedir%g
4992s%@localstatedir@%$localstatedir%g
4993s%@libdir@%$libdir%g
4994s%@includedir@%$includedir%g
4995s%@oldincludedir@%$oldincludedir%g
4996s%@infodir@%$infodir%g
4997s%@mandir@%$mandir%g
4998s%@SINGUNAME@%$SINGUNAME%g
4999s%@EXEC_EXT@%$EXEC_EXT%g
5000s%@SING_UNAME@%$SING_UNAME%g
5001s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g
5002s%@VERSION_DATE@%$VERSION_DATE%g
5003s%@SINGULAR_MAJOR_VERSION@%$SINGULAR_MAJOR_VERSION%g
5004s%@SINGULAR_MINOR_VERSION@%$SINGULAR_MINOR_VERSION%g
5005s%@SINGULAR_SUB_VERSION@%$SINGULAR_SUB_VERSION%g
5006s%@CC@%$CC%g
5007s%@CPP@%$CPP%g
5008s%@CXX@%$CXX%g
5009s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5010s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5011s%@INSTALL_DATA@%$INSTALL_DATA%g
5012s%@PIPE@%$PIPE%g
5013s%@CXXTEMPLFLAGS@%$CXXTEMPLFLAGS%g
5014s%@CXXNOOPTFLAGS@%$CXXNOOPTFLAGS%g
5015s%@STATIC_LDFLAGS@%$STATIC_LDFLAGS%g
5016s%@SET_MAKE@%$SET_MAKE%g
5017s%@SINGULAR@%$SINGULAR%g
5018s%@LEX@%$LEX%g
5019s%@BISON@%$BISON%g
5020s%@LN_S@%$LN_S%g
5021s%@PERL@%$PERL%g
5022s%@LD_DYN_FLAGS@%$LD_DYN_FLAGS%g
5023s%@SFLAGS@%$SFLAGS%g
5024s%@SLDFLAGS@%$SLDFLAGS%g
5025s%@LD@%$LD%g
5026s%@ALLOCA@%$ALLOCA%g
5027s%@CXXCPP@%$CXXCPP%g
5028s%@HAVE_MPSR@%$HAVE_MPSR%g
5029s%@MP_LIBS@%$MP_LIBS%g
5030s%@NEED_LIBS@%$NEED_LIBS%g
5031s%@DL_KERNEL@%$DL_KERNEL%g
5032
5033CEOF
5034EOF
5035
5036cat >> $CONFIG_STATUS <<\EOF
5037
5038# Split the substitutions into bite-sized pieces for seds with
5039# small command number limits, like on Digital OSF/1 and HP-UX.
5040ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5041ac_file=1 # Number of current file.
5042ac_beg=1 # First line for current file.
5043ac_end=$ac_max_sed_cmds # Line after last line for current file.
5044ac_more_lines=:
5045ac_sed_cmds=""
5046while $ac_more_lines; do
5047  if test $ac_beg -gt 1; then
5048    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5049  else
5050    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5051  fi
5052  if test ! -s conftest.s$ac_file; then
5053    ac_more_lines=false
5054    rm -f conftest.s$ac_file
5055  else
5056    if test -z "$ac_sed_cmds"; then
5057      ac_sed_cmds="sed -f conftest.s$ac_file"
5058    else
5059      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5060    fi
5061    ac_file=`expr $ac_file + 1`
5062    ac_beg=$ac_end
5063    ac_end=`expr $ac_end + $ac_max_sed_cmds`
5064  fi
5065done
5066if test -z "$ac_sed_cmds"; then
5067  ac_sed_cmds=cat
5068fi
5069EOF
5070
5071cat >> $CONFIG_STATUS <<EOF
5072
5073CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"}
5074EOF
5075cat >> $CONFIG_STATUS <<\EOF
5076for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5077  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5078  case "$ac_file" in
5079  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5080       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5081  *) ac_file_in="${ac_file}.in" ;;
5082  esac
5083
5084  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5085
5086  # Remove last slash and all that follows it.  Not all systems have dirname.
5087  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5088  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5089    # The file is in a subdirectory.
5090    test ! -d "$ac_dir" && mkdir "$ac_dir"
5091    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5092    # A "../" for each directory in $ac_dir_suffix.
5093    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5094  else
5095    ac_dir_suffix= ac_dots=
5096  fi
5097
5098  case "$ac_given_srcdir" in
5099  .)  srcdir=.
5100      if test -z "$ac_dots"; then top_srcdir=.
5101      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5102  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5103  *) # Relative path.
5104    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5105    top_srcdir="$ac_dots$ac_given_srcdir" ;;
5106  esac
5107
5108  case "$ac_given_INSTALL" in
5109  [/$]*) INSTALL="$ac_given_INSTALL" ;;
5110  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5111  esac
5112
5113  echo creating "$ac_file"
5114  rm -f "$ac_file"
5115  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5116  case "$ac_file" in
5117  *Makefile*) ac_comsub="1i\\
5118# $configure_input" ;;
5119  *) ac_comsub= ;;
5120  esac
5121
5122  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5123  sed -e "$ac_comsub
5124s%@configure_input@%$configure_input%g
5125s%@srcdir@%$srcdir%g
5126s%@top_srcdir@%$top_srcdir%g
5127s%@INSTALL@%$INSTALL%g
5128" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5129fi; done
5130rm -f conftest.s*
5131
5132# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5133# NAME is the cpp macro being defined and VALUE is the value it is being given.
5134#
5135# ac_d sets the value in "#define NAME VALUE" lines.
5136ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
5137ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
5138ac_dC='\3'
5139ac_dD='%g'
5140# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5141ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5142ac_uB='\([      ]\)%\1#\2define\3'
5143ac_uC=' '
5144ac_uD='\4%g'
5145# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5146ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5147ac_eB='$%\1#\2define\3'
5148ac_eC=' '
5149ac_eD='%g'
5150
5151if test "${CONFIG_HEADERS+set}" != set; then
5152EOF
5153cat >> $CONFIG_STATUS <<EOF
5154  CONFIG_HEADERS="mod2.h"
5155EOF
5156cat >> $CONFIG_STATUS <<\EOF
5157fi
5158for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5159  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5160  case "$ac_file" in
5161  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5162       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5163  *) ac_file_in="${ac_file}.in" ;;
5164  esac
5165
5166  echo creating $ac_file
5167
5168  rm -f conftest.frag conftest.in conftest.out
5169  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5170  cat $ac_file_inputs > conftest.in
5171
5172EOF
5173
5174# Transform confdefs.h into a sed script conftest.vals that substitutes
5175# the proper values into config.h.in to produce config.h.  And first:
5176# Protect against being on the right side of a sed subst in config.status.
5177# Protect against being in an unquoted here document in config.status.
5178rm -f conftest.vals
5179cat > conftest.hdr <<\EOF
5180s/[\\&%]/\\&/g
5181s%[\\$`]%\\&%g
5182s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5183s%ac_d%ac_u%gp
5184s%ac_u%ac_e%gp
5185EOF
5186sed -n -f conftest.hdr confdefs.h > conftest.vals
5187rm -f conftest.hdr
5188
5189# This sed command replaces #undef with comments.  This is necessary, for
5190# example, in the case of _POSIX_SOURCE, which is predefined and required
5191# on some systems where configure will not decide to define it.
5192cat >> conftest.vals <<\EOF
5193s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5194EOF
5195
5196# Break up conftest.vals because some shells have a limit on
5197# the size of here documents, and old seds have small limits too.
5198
5199rm -f conftest.tail
5200while :
5201do
5202  ac_lines=`grep -c . conftest.vals`
5203  # grep -c gives empty output for an empty file on some AIX systems.
5204  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5205  # Write a limited-size here document to conftest.frag.
5206  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5207  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5208  echo 'CEOF
5209  sed -f conftest.frag conftest.in > conftest.out
5210  rm -f conftest.in
5211  mv conftest.out conftest.in
5212' >> $CONFIG_STATUS
5213  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5214  rm -f conftest.vals
5215  mv conftest.tail conftest.vals
5216done
5217rm -f conftest.vals
5218
5219cat >> $CONFIG_STATUS <<\EOF
5220  rm -f conftest.frag conftest.h
5221  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
5222  cat conftest.in >> conftest.h
5223  rm -f conftest.in
5224  if cmp -s $ac_file conftest.h 2>/dev/null; then
5225    echo "$ac_file is unchanged"
5226    rm -f conftest.h
5227  else
5228    # Remove last slash and all that follows it.  Not all systems have dirname.
5229      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5230      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5231      # The file is in a subdirectory.
5232      test ! -d "$ac_dir" && mkdir "$ac_dir"
5233    fi
5234    rm -f $ac_file
5235    mv conftest.h $ac_file
5236  fi
5237fi; done
5238
5239EOF
5240cat >> $CONFIG_STATUS <<EOF
5241
5242EOF
5243cat >> $CONFIG_STATUS <<\EOF
5244\
5245 if test "$CONFIG_HEADERS"; then echo timestamp > stamp-h; fi
5246exit 0
5247EOF
5248chmod +x $CONFIG_STATUS
5249rm -fr confdefs* $ac_clean_files
5250test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5251
Note: See TracBrowser for help on using the repository browser.