Ticket #13237: singular-3-1-5.p0.diff

File singular-3-1-5.p0.diff, 229.2 KB (added by jdemeyer, 9 years ago)

Diff for the singular spkg. For reference / review only.

  • .hgignore

    # HG changeset patch
    # User Jeroen Demeyer <jdemeyer@cage.ugent.be>
    # Date 1344632335 -7200
    # Node ID 9eaf1ccdcfc07e5ce82de230aac1da4f9ea05534
    # Parent  1275ac543b538d5c59d6a2dddc94cb2d1475b493
    Trac #13237: Upgrade to version 3-1-5, lots of other fixes
    
    diff --git a/.hgignore b/.hgignore
    a b  
    22syntax: glob
    33src
    44shared
    5 *~
  • SPKG.txt

    diff --git a/SPKG.txt b/SPKG.txt
    a b  
    3030See spkg-changes for how to delete unnecessary stuff under src/
    3131
    3232Several patches are applied.
    33  * assert.h: logic seems to be broken on some platforms
    34  * Minor.h needs to have <time.h> included on Cygwin
    35  * make_parallel.patch to fix parallel make
    36  * Singular.Makefile.in.shared.patch to fix the ARM build
    37  * factory_configure is the file factory/configure generated by
    38    autoconf-2.68 instead of autoconf-2.13.  This fixes a build failure
    39    on OS X 10.4 (Trac #12304).
    40  * factory.GNUmakefile.in.patch to fix a hardcoded 'g++'.
     33 * assert.patch: logic seems to be broken on some platforms
     34 * Minor.h.patch: needs to have <time.h> included on Cygwin
     35 * NTL_negate.patch: change negate() to NTL::negate() to fix a conflict
     36   with std::negate(). See
     37   http://www.singular.uni-kl.de:8002/trac/ticket/437
     38 * singular_trac_439.patch: fix taken from upstream for
     39   http://www.singular.uni-kl.de:8002/trac/ticket/439
     40 * singular_trac_440.patch: fix taken from upstream for
     41   http://www.singular.uni-kl.de:8002/trac/ticket/440
     42 * singular_trac_441.patch: fix taken from upstream for
     43   http://www.singular.uni-kl.de:8002/trac/ticket/441
     44 * singular_trac_443.patch: fix taken from upstream for
     45   http://www.singular.uni-kl.de:8002/trac/ticket/443
     46 * sage_trac_12089.patch: fix (also reported upstream) from
     47   https://github.com/alexanderdreyer/SingularSources/commit/7902222
     48 * slibdir.patch: set default slibdir to ${datarootdir}/singular
     49   instead of ${prefix}/LIB, see #13344.
    4150
    4251Other notes
    4352 * The option '--without-dynamic-kernel' is used on *all*
     
    5160   investigated as a possible cause later.
    5261 * Be sure that Singular/Singular.rc.in is present, as occasionally this
    5362   was missing, which caused problems on Cygwin (e.g., see #10235)
     63 * Due to http://www.singular.uni-kl.de:8002/trac/ticket/438, we
     64   currently always build Singular with its debug code.  Change
     65   --with-debug to $WITH_DEBUG in the configure call if this is fixed.
     66 * We build Singular without FLINT support because Singular requires
     67   FLINT 2.x.  If a sufficiently recent version of FLINT is ever added
     68   to Sage, we should make Singular use it
     69   (configure --with-flint="$SAGE_LOCAL").
    5470
    5571== ChangeLog ==
    5672
     73=== singular-3-1-5.p0 (Jeroen Demeyer, Alexander Dreyer, 10 August 2012) ===
     74 * Trac #13237: Upgrade to version 3-1-5.
     75 * Removed patches which are now upstreamed:
     76    - patches/Singular.Makefile.in.shared.patch
     77    - patches/Singular.configure.patch
     78    - patches/factory.GNUmakefile.in.patch
     79    - patches/factory_configure
     80    - patches/make_parallel.patch
     81    - patches/os_x_ppc.patch
     82 * In spkg-install, simplify apply_patches(), automatically apply all
     83   patches in patches/*.patch, move conditional patches to
     84   patches/conditional
     85 * Rename some patches such that they all have the extension '.patch'
     86 * Put the two patches for SAGE_DEBUG (Singular.Makefile.in.debug.patch
     87   and kernel.Makefile.in.debug.patch) into one file
     88   conditional/sage_debug.patch.
     89 * Add several patches (see above):
     90    - NTL_negate.patch
     91    - singular_trac_439.patch
     92    - singular_trac_440.patch
     93    - singular_trac_441.patch
     94    - singular_trac_443.patch
     95    - sage_trac_12089.patch
     96    - slibdir.patch
     97 * When building Singular, don't first make install and then
     98   make install-nolns. Instead, only do the latter.
     99 * Don't create the LIB->lib symlink, which is no longer needed.
     100 * In spkg-install, remove distclean() step; merge clean_headers() and
     101   part of the old distclean() into remove_old_version().
     102 * Only unset LD on Darwin.
     103 * Remove the unsetting of TMPDIR (bug fixed upstream).
     104 * Do not override user-set CFLAGS and CXXFLAGS.
     105 * Echo all error messages to stderr instead of stdout.
     106 * Fix various ./configure options and remove some unsupported options.
     107 * Always configure --with-debug, as --without-debug doesn't work, see
     108   http://www.singular.uni-kl.de:8002/trac/ticket/438
     109 * Don't create sage_singular symlink, which wasn't used anyway.
     110 * Replace the $SAGE_LOCAL/bin/Singular script by a symlink.
     111 * Remove workaround for GCC-4.0.x on Darwin (obsolete by the GCC spkg).
     112 * Fix formatting of spkg-install (consistent indentation, no TABs).
     113
    57114=== singular-3-1-3-3.p6 (Leif Leonhardy, March 17th 2012) ===
    58115 * #12680: Fix hardcoded 'g++' (and two typos) in factory/GNUmakefile.in.
    59116
  • new file patches/NTL_negate.patch

    diff --git a/patches/NTL_negate.patch b/patches/NTL_negate.patch
    new file mode 100644
    - +  
     1diff -ru src/factory/cf_chinese.cc b/factory/cf_chinese.cc
     2--- src/factory/cf_chinese.cc   2012-06-15 20:00:10.000000000 +0200
     3+++ b/factory/cf_chinese.cc     2012-07-25 15:48:19.893359649 +0200
     4@@ -211,12 +211,12 @@
     5             ZZ NTLc= convertFacCF2NTLZZ (c);
     6             bool lessZero= (sign (NTLc) == -1);
     7             if (lessZero)
     8-              negate (NTLc, NTLc);
     9+              NTL::negate (NTLc, NTLc);
     10             ZZ NTLnum, NTLden;
     11             if (ReconstructRational (NTLnum, NTLden, NTLc, NTLq, bound, bound))
     12             {
     13               if (lessZero)
     14-                negate (NTLnum, NTLnum);
     15+                NTL::negate (NTLnum, NTLnum);
     16               CanonicalForm num= convertNTLZZX2CF (to_ZZX (NTLnum), Variable (1));
     17               CanonicalForm den= convertNTLZZX2CF (to_ZZX (NTLden), Variable (1));
     18               On (SW_RATIONAL);
  • deleted file patches/Singular.Makefile.in.debug.patch

    diff --git a/patches/Singular.Makefile.in.debug.patch b/patches/Singular.Makefile.in.debug.patch
    deleted file mode 100644
    + -  
    1 --- src/Singular/Makefile.in    2011-09-28 17:36:50.000000000 +0100
    2 +++ patches/Singular.Makefile.in        2011-09-28 20:34:39.588439234 +0100
    3 @@ -82,10 +82,10 @@
    4  CPPFLAGS       = -I${srcdir} -I.. -I@prefix@ @CPPFLAGS@ @PYTHON_CPPFLAGS@
    5  ## -I/usr/include/python2.4 -I/usr/local/include -I../modules/python
    6  endif
    7 -DEFS           = -DNDEBUG -DOM_NDEBUG -D@SING_UNAME@ @DEFS@
    8 +DEFS           = -DOM_NDEBUG -D@SING_UNAME@ @DEFS@
    9  LDFLAGS2       = @LDFLAGS@
    10  ifneq ($(SINGUNAME),ix86-Win)
    11 -LDFLAGS                = -L@prefix@/kernel -L../kernel -lkernel @LDFLAGS@
    12 +LDFLAGS                = -L@prefix@/kernel -L../kernel -lkernel_g @LDFLAGS@
    13  LDFLAGSG       = -L@prefix@/kernel -L../kernel -lkernel_g @LD_DYN_FLAGS1@ @LDFLAGS@
    14  LDFLAGSP       = -L@prefix@/kernel -L../kernel -lkernel_p @LD_DYN_FLAGS1@ @LDFLAGS@
    15  else
  • deleted file patches/Singular.Makefile.in.shared.patch

    diff --git a/patches/Singular.Makefile.in.shared.patch b/patches/Singular.Makefile.in.shared.patch
    deleted file mode 100644
    + -  
    1 --- src/Singular/Makefile.in    2011-09-30 12:10:15.000000000 +0200
    2 +++ patches/Singular.Makefile.in        2012-01-03 09:15:40.000000000 +0100
    3 @@ -136,7 +136,7 @@
    4  
    5  SO_SUFFIX = so
    6  
    7 -#LIBSINGULAR_FLAGS = -export-dynamic
    8 +LIBSINGULAR_FLAGS = -shared
    9  LIBSINGULAR_LD = $(CXX)
    10  
    11  # correct suffix for dynamic linking
  • deleted file patches/Singular.configure.patch

    diff --git a/patches/Singular.configure.patch b/patches/Singular.configure.patch
    deleted file mode 100644
    + -  
    1 --- src/Singular/configure      2011-09-30 12:10:15.000000000 +0200
    2 +++ patches/Singular.configure  2011-10-02 15:16:49.468526670 +0200
    3 @@ -1800,7 +1800,7 @@
    4  PYTHON_PLUGIN="module"
    5  PYTHON_LINKAGE="static"
    6  
    7 -if test "${with_python+set}" == set; then
    8 +if test "${with_python+set}" = set; then
    9    case "${with_python}" in
    10      yes|static*|dynamic*|shared*|module*|embed*)
    11        python_exe_name="python"
    12 @@ -1971,7 +1971,7 @@
    13                 py_version=`$PYTHON -c "from distutils.sysconfig import *; \
    14                          from string import join; \
    15                          print join(get_config_vars('VERSION'))"`
    16 -               if test "$py_version" == "None"; then
    17 +               if test "$py_version" = "None"; then
    18                         if test -n "$PYTHON_VERSION"; then
    19                                 py_version=$PYTHON_VERSION
    20                         else
    21 @@ -2134,7 +2134,7 @@
    22  
    23          echo "$ac_t""$pythonstaticexists" 1>&6
    24  
    25 -        if test "$pythonstaticexists" == yes ; then
    26 +        if test "$pythonstaticexists" = yes ; then
    27            cat >> confdefs.h <<\EOF
    28  #define HAVE_STATIC_PYTHON 1
    29  EOF
  • (a) a/patches/assert.h.diff vs. (b) b/patches/assert.patch

    diff --git a/patches/assert.h.diff b/patches/assert.patch
    rename from patches/assert.h.diff
    rename to patches/assert.patch
    a b  
    1 --- src/factory/assert.h        2009-11-02 10:12:22.000000000 +0000
    2 +++ src/factory/assert.h        2010-07-10 14:26:29.949490152 +0100
    3 @@ -127,3 +127,13 @@
     1diff -ru src/factory/assert.h b/factory/assert.h
     2--- src/factory/assert.h        2012-02-21 20:00:09.000000000 +0100
     3+++ b/factory/assert.h  2012-08-01 12:31:09.343379875 +0200
     4@@ -128,3 +128,13 @@
    45 #define PVIRT_CHARCC(msg) = 0
    56 #endif /* NOASSERT */
    67 /* }}} */
  • (a) a/patches/IntegerProgramming-Makefile.in.diff vs. (b) b/patches/conditional/cygwin.patch

    diff --git a/patches/IntegerProgramming-Makefile.in.diff b/patches/conditional/cygwin.patch
    rename from patches/IntegerProgramming-Makefile.in.diff
    rename to patches/conditional/cygwin.patch
    a b  
    1 --- src/IntegerProgramming/Makefile.in  2010-01-29 09:10:49.000000000 +0000
    2 +++ src/IntegerProgramming/Makefile.in  2010-07-15 17:14:33.000000000 +0100
    3 @@ -58,11 +58,11 @@
     1diff -ru src/IntegerProgramming/Makefile.in b/IntegerProgramming/Makefile.in
     2--- src/IntegerProgramming/Makefile.in  2012-06-19 11:00:05.000000000 +0200
     3+++ b/IntegerProgramming/Makefile.in    2012-07-12 17:00:42.253780191 +0200
     4@@ -64,11 +64,11 @@
    45 
    5  install: $(MAIN1) $(MAIN2) $(MAIN3) $(MAIN4) $(LLL)
     6 install install-libsingular: $(MAIN1) $(MAIN2) $(MAIN3) $(MAIN4) $(LLL)
    67        ${MKINSTALLDIRS} ${bindir}
    78-       ${INSTALL_PROGRAM} $(MAIN1) ${bindir}
    89-       ${INSTALL_PROGRAM} $(MAIN2) ${bindir}
  • new file patches/conditional/sage_debug.patch

    diff --git a/patches/conditional/sage_debug.patch b/patches/conditional/sage_debug.patch
    new file mode 100644
    - +  
     1diff -ru src/Singular/Makefile.in src.debug/Singular/Makefile.in
     2--- src/Singular/Makefile.in    2012-07-11 12:00:13.000000000 +0200
     3+++ src.debug/Singular/Makefile.in      2012-07-12 16:51:29.923359810 +0200
     4@@ -82,10 +82,10 @@
     5 CPPFLAGS       = -I${srcdir} -I.. -I@prefix@ @CPPFLAGS@ @PYTHON_CPPFLAGS@
     6 ## -I/usr/include/python2.4 -I/usr/local/include -I../modules/python
     7 endif
     8-DEFS           = -DNDEBUG -DOM_NDEBUG -D@SING_UNAME@ @DEFS@
     9+DEFS           = -DOM_NDEBUG -D@SING_UNAME@ @DEFS@
     10 LDFLAGS2       = @LDFLAGS@
     11 ifneq ($(SINGUNAME),ix86-Win)
     12-LDFLAGS                = -L@prefix@/kernel -L../kernel -lkernel @LDFLAGS@
     13+LDFLAGS                = -L@prefix@/kernel -L../kernel -lkernel_g @LDFLAGS@
     14 LDFLAGSG       = -L@prefix@/kernel -L../kernel -lkernel_g @LD_DYN_FLAGS1@ @LDFLAGS@
     15 LDFLAGSP       = -L@prefix@/kernel -L../kernel -lkernel_p @LD_DYN_FLAGS1@ @LDFLAGS@
     16 else
     17diff -ru src/kernel/Makefile.in src.debug/kernel/Makefile.in
     18--- src/kernel/Makefile.in      2012-04-17 21:00:08.000000000 +0200
     19+++ src.debug/kernel/Makefile.in        2012-07-12 16:51:29.923359810 +0200
     20@@ -49,7 +49,7 @@
     21 CXXFLAGS       = @CXXFLAGS@ ${PIPE}
     22 CXXTEMPLFLAGS  = @CXXTEMPLFLAGS@
     23 CPPFLAGS       = -I${srcdir} -I.. -I@prefix@  @CPPFLAGS@
     24-DEFS           = -DNDEBUG -DOM_NDEBUG -D@SING_UNAME@ @DEFS@
     25+DEFS           = -DOM_NDEBUG -D@SING_UNAME@ @DEFS@
     26 LDFLAGS                = @LDFLAGS@
     27 LD_DYN_FLAGS   = @LD_DYN_FLAGS@
     28 SFLAGS         = @SFLAGS@
     29@@ -64,7 +64,7 @@
     30 LIBS           = -lm @NEED_LIBS@
     31 else
     32 # for the 2-0-* versions under Windows, we don't need gdbm, readline and ncurses
     33-LIBS           = -lsingfac -lsingcf -lntl -lgmp -lreadline -lncurses -lomalloc_ndebug
     34+LIBS           = -lsingfac -lsingcf -lntl -lgmp -lreadline -lncurses -lomalloc
     35 #LIBS          = -lsingfac -lsingcf -lgmp
     36 endif
     37 MP_LIBS                = @MP_LIBS@
  • deleted file patches/factory.GNUmakefile.in.patch

    diff --git a/patches/factory.GNUmakefile.in.patch b/patches/factory.GNUmakefile.in.patch
    deleted file mode 100644
    + -  
    1 --- src/factory/GNUmakefile.in  2011-09-01 15:40:30.000000000 +0200
    2 +++ src/factory/GNUmakefile.in  2012-03-17 09:10:44.136311788 +0100
    3 @@ -452,7 +452,7 @@
    4  # - pattern rules.
    5  #
    6  
    7 -# how to create library objets
    8 +# how to create library objects
    9  %.o: %.cc config.h factoryconf.h
    10         $(CXX) -c $< $(LIBCXXFLAGS) -o $@
    11  %.o: %.c config.h
    12 @@ -524,7 +524,7 @@
    13  $(srcdir)/readcf.cc: readcf.y
    14                 @./bin/gen-readcf "${BISON}"
    15  
    16 -# note that these are non-source file which are distributed!
    17 +# note that these are non-source files which are distributed!
    18  # We do not specify any dependencies except the most important ones.
    19  $(srcdir)/winnt/factory.h: factory.template
    20                 $(MAKEHEADER) $(MAKEHEADERFLAGS) $< $@
    21 @@ -799,6 +799,6 @@
    22  # create cf_gmp.h
    23  cf_gmp.h: GNUmakefile gen_cf_gmp.template
    24         echo "#!/bin/sh" >gen_cf_gmp.sh
    25 -       echo "GMP_H_T=\"`g++ $(LIBCXXFLAGS) -M gen_cf_gmp.cc|grep gmp.h` \"" >>gen_cf_gmp.sh
    26 +       echo "GMP_H_T=\"`$(CXX) $(LIBCXXFLAGS) -M gen_cf_gmp.cc|grep gmp.h` \"" >>gen_cf_gmp.sh
    27         cat gen_cf_gmp.template >>gen_cf_gmp.sh
    28         $(SHELL) gen_cf_gmp.sh
  • deleted file patches/factory_configure

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

    diff --git a/patches/kernel.Makefile.in.debug.patch b/patches/kernel.Makefile.in.debug.patch
    deleted file mode 100644
    + -  
    1 --- src/kernel/Makefile.in      2011-09-28 17:34:37.000000000 +0100
    2 +++ patches/kernel.Makefile.in  2011-09-28 20:34:57.060439241 +0100
    3 @@ -49,7 +49,7 @@
    4  CXXFLAGS       = @CXXFLAGS@ ${PIPE}
    5  CXXTEMPLFLAGS  = @CXXTEMPLFLAGS@
    6  CPPFLAGS       = -I${srcdir} -I.. -I@prefix@  @CPPFLAGS@
    7 -DEFS           = -DNDEBUG -DOM_NDEBUG -D@SING_UNAME@ @DEFS@
    8 +DEFS           = -DOM_NDEBUG -D@SING_UNAME@ @DEFS@
    9  LDFLAGS                = @LDFLAGS@
    10  LD_DYN_FLAGS   = @LD_DYN_FLAGS@
    11  SFLAGS         = @SFLAGS@
    12 @@ -64,7 +64,7 @@
    13  LIBS           = -lm @NEED_LIBS@
    14  else
    15  # for the 2-0-* versions under Windows, we don't need gdbm, readline and ncurses
    16 -LIBS           = -lsingfac -lsingcf -lntl -lgmp -lreadline -lncurses -lomalloc_ndebug
    17 +LIBS           = -lsingfac -lsingcf -lntl -lgmp -lreadline -lncurses -lomalloc
    18  #LIBS          = -lsingfac -lsingcf -lgmp
    19  endif
    20  MP_LIBS                = @MP_LIBS@
  • deleted file patches/make_parallel.patch

    diff --git a/patches/make_parallel.patch b/patches/make_parallel.patch
    deleted file mode 100644
    + -  
    1 diff -ru src/Makefile.in src.parallel/Makefile.in
    2 --- src/Makefile.in     2011-08-10 19:47:17.000000000 +0200
    3 +++ src.parallel/Makefile.in    2011-12-10 13:40:18.000000000 +0100
    4 @@ -146,14 +146,14 @@
    5         rm -rf configure
    6  
    7  clean mostlyclean: local-clean
    8 -       $(recurse)
    9 +       +$(recurse)
    10  
    11  distclean: local-distclean
    12 -       $(recurse)
    13 +       +$(recurse)
    14         rm -rf build
    15  
    16  maintainer-clean: uninstall local-maintainer-clean
    17 -       $(recurse)
    18 +       +$(recurse)
    19  
    20  ##############################################################
    21  # some extra targets for the specific packages
    22 diff -ru src/Singular/Makefile.in src.parallel/Singular/Makefile.in
    23 --- src/Singular/Makefile.in    2011-09-30 12:10:15.000000000 +0200
    24 +++ src.parallel/Singular/Makefile.in   2011-12-10 13:39:41.000000000 +0100
    25 @@ -413,7 +413,7 @@
    26  
    27  cntrlc.o cntrlc.og : feOptES.inc feOptTS.inc feOpt.inc version.h
    28  
    29 -misc_ip.o emacs.o tesths.o: version.h
    30 +misc_ip.o emacs.o tesths.o: feOpt.inc version.h
    31  
    32  claptmpl.o: claptmpl.cc mod2.h
    33         ${CXX} ${CXXFLAGS}  ${CPPFLAGS} ${DEFS} -c $<
    34 diff -ru src/kernel/Makefile.in src.parallel/kernel/Makefile.in
    35 --- src/kernel/Makefile.in      2011-05-18 09:37:59.000000000 +0200
    36 +++ src.parallel/kernel/Makefile.in     2011-12-10 13:39:41.000000000 +0100
    37 @@ -243,7 +243,7 @@
    38  
    39  # Hmm compiling with -fomit-frame-pointer resulted in access violation
    40  # under cygwin
    41 -prCopy.o: prCopy.inc
    42 +prCopy.o prCopy.og prCopy.op: prCopy.inc
    43  
    44  prCopy.inc : prCopyMacros.h prCopyTemplate.cc prCopy.pl
    45         $(PERL) prCopy.pl > prCopy.xx && mv prCopy.xx prCopy.inc
  • deleted file patches/os_x_ppc.patch

    diff --git a/patches/os_x_ppc.patch b/patches/os_x_ppc.patch
    deleted file mode 100644
    + -  
    1 diff -r -u src/kernel/mod_raw.cc src.osx/kernel/mod_raw.cc
    2 --- src/kernel/mod_raw.cc       2011-04-25 08:25:05.000000000 +0200
    3 +++ src.osx/kernel/mod_raw.cc   2011-10-10 10:47:17.000000000 +0200
    4 @@ -172,6 +172,10 @@
    5  #define HAVE_ELF_SYSTEM
    6  #endif
    7  
    8 +#if defined(ppcMac_darwin)
    9 +#define HAVE_ELF_SYSTEM
    10 +#endif
    11 +
    12  #if defined(ix86Mac_darwin)
    13  #define HAVE_ELF_SYSTEM
    14  #endif
  • new file patches/sage_trac_12089.patch

    diff --git a/patches/sage_trac_12089.patch b/patches/sage_trac_12089.patch
    new file mode 100644
    - +  
     1From 7902222c6e73d452b3d75576bd9bc0140f5e827a Mon Sep 17 00:00:00 2001
     2From: Alexander Dreyer <alexander.dreyer@itwm.fraunhofer.de>
     3Date: Sat, 4 Aug 2012 21:53:32 +0200
     4Subject: [PATCH] fix: apply LDFLAGS fixes from svn#13210/git#b1dfafe to cygwin-specific flags (Sage's trac #12089; reported by Jean-Pierre Flori)
     5
     6---
     7 Singular/Makefile.in |    6 +++---
     8 1 files changed, 3 insertions(+), 3 deletions(-)
     9
     10diff --git a/Singular/Makefile.in b/Singular/Makefile.in
     11index c4a6e78..b907085 100644
     12--- a/Singular/Makefile.in
     13+++ b/Singular/Makefile.in
     14@@ -90,9 +90,9 @@ LDFLAGSG      = -L@prefix@/kernel -L../kernel -lkernel_g @LD_DYN_FLAGS1@ @LDFLAGS@
     15 LDFLAGSP       = -L@prefix@/kernel -L../kernel -lkernel_p @LD_DYN_FLAGS1@ @LDFLAGS@
     16 else
     17 ## -L/usr/local/lib -L@prefix@/modules/python --> PySingular
     18-LDFLAGS                = -L@prefix@/kernel -L/bin -lkernel @LDFLAGS@ -L/usr/local/lib -L../modules/python
     19-LDFLAGSG       = -L@prefix@/kernel -L/bin -lkernel_g @LDFLAGS@
     20-LDFLAGSP       = -L@prefix@/kernel -L/bin -lkernel_p @LDFLAGS@
     21+LDFLAGS                = -L@prefix@/kernel -L../kernel -L/bin -lkernel @LDFLAGS@ -L/usr/local/lib -L../modules/python
     22+LDFLAGSG       = -L@prefix@/kernel -L../kernel -L/bin -lkernel_g @LDFLAGS@
     23+LDFLAGSP       = -L@prefix@/kernel -L../kernel -L/bin -lkernel_p @LDFLAGS@
     24 endif
     25 LD_DYN_FLAGS1  = @LD_DYN_FLAGS1@
     26 LD_DYN_FLAGS2  = @LD_DYN_FLAGS2@
     27--
     281.6.0.2
     29
  • (a) a/patches/sing_win.cc.diff vs. (b) b/patches/sing_win.patch

    diff --git a/patches/sing_win.cc.diff b/patches/sing_win.patch
    rename from patches/sing_win.cc.diff
    rename to patches/sing_win.patch
    a b  
    1 --- src/Singular/sing_win.cc    2009-11-02 10:12:22.000000000 +0000
    2 +++ src/Singular/sing_win.cc    2010-07-15 17:16:26.000000000 +0100
    3 @@ -38,7 +38,12 @@
     1diff -ru src/Singular/sing_win.cc c/Singular/sing_win.cc
     2--- src/Singular/sing_win.cc    2012-07-10 12:00:15.000000000 +0200
     3+++ c/Singular/sing_win.cc      2012-08-01 12:31:32.753384989 +0200
     4@@ -37,7 +37,12 @@
    45    link.pszMsgTitle =  NULL ;
    56    link.pszWindow =    NULL ;
    67    link.fIndexOnFail = TRUE ;
  • new file patches/singular_trac_439.patch

    diff --git a/patches/singular_trac_439.patch b/patches/singular_trac_439.patch
    new file mode 100644
    - +  
     1commit 53f79f794aabd5451e090764871dde7c6020d5fa
     2Author: Martin Lee <martinlee84@web.de>
     3Date:   Mon Jul 30 11:20:00 2012 +0200
     4
     5    fix: tr 439
     6
     7diff --git a/factory/facBivar.h b/factory/facBivar.h
     8index cabdff8..2d8531e 100644
     9--- a/factory/facBivar.h
     10+++ b/factory/facBivar.h
     11@@ -183,7 +183,7 @@ ratBiFactorize (const CanonicalForm & G,         ///< [in] a bivariate poly
     12       {
     13         for (CFFListIterator i= result; i.hasItem(); i++)
     14         {
     15-          LcF /= bCommonDen (i.getItem().factor());
     16+          LcF /= power (bCommonDen (i.getItem().factor()), i.getItem().exp());
     17           i.getItem()= CFFactor (i.getItem().factor()*
     18                        bCommonDen(i.getItem().factor()), i.getItem().exp());
     19         }
     20@@ -215,7 +215,7 @@ ratBiFactorize (const CanonicalForm & G,         ///< [in] a bivariate poly
     21     {
     22       for (CFFListIterator i= result; i.hasItem(); i++)
     23       {
     24-        LcF /= bCommonDen (i.getItem().factor());
     25+        LcF /= power (bCommonDen (i.getItem().factor()), i.getItem().exp());
     26         i.getItem()= CFFactor (i.getItem().factor()*
     27                      bCommonDen(i.getItem().factor()), i.getItem().exp());
     28       }
     29diff --git a/factory/facFactorize.h b/factory/facFactorize.h
     30index 5ccfe16..95bfa66 100644
     31--- a/factory/facFactorize.h
     32+++ b/factory/facFactorize.h
     33@@ -136,7 +136,7 @@ ratFactorize (const CanonicalForm& G,          ///<[in] a multivariate poly
     34     {
     35       for (CFFListIterator i= result; i.hasItem(); i++)
     36       {
     37-        LcF /= bCommonDen (i.getItem().factor());
     38+        LcF /= power (bCommonDen (i.getItem().factor()), i.getItem().exp());
     39         i.getItem()= CFFactor (i.getItem().factor()*
     40                      bCommonDen(i.getItem().factor()), i.getItem().exp());
     41       }
  • new file patches/singular_trac_440.patch

    diff --git a/patches/singular_trac_440.patch b/patches/singular_trac_440.patch
    new file mode 100644
    - +  
     1commit a315346ac7424b4a5427320fad1f4eb47dbb22ed
     2Author: Martin Lee <martinlee84@web.de>
     3Date:   Mon Jul 30 11:40:42 2012 +0200
     4
     5    fix: tr 440
     6
     7diff --git a/factory/facFqBivar.cc b/factory/facFqBivar.cc
     8index 79b968b..f526883 100644
     9--- a/factory/facFqBivar.cc
     10+++ b/factory/facFqBivar.cc
     11@@ -5928,7 +5928,7 @@ biFactorize (const CanonicalForm& F, const ExtensionInfo& info)
     12   
     13   //check trivial case
     14   if (degree (A) == 1 || degree (A, 1) == 1 ||
     15-      (size (A) == 2 && gcd (degree (A), degree (A,1)).isOne()))
     16+      (size (A) == 2 && igcd (degree (A), degree (A,1))==1))
     17   {
     18     factors.append (A);
     19 
     20commit e5e9d9dc87093af880507e242a15709368fdcf28
     21Author: Martin Lee <martinlee84@web.de>
     22Date:   Mon Jul 30 11:40:04 2012 +0200
     23
     24    chg: new command igcd to compute integer gcd
     25
     26diff --git a/factory/cf_util.cc b/factory/cf_util.cc
     27index 02ecb42..91c3303 100644
     28--- a/factory/cf_util.cc
     29+++ b/factory/cf_util.cc
     30@@ -46,6 +46,22 @@ int ilog2 (int a)
     31   return n;
     32 }
     33 
     34+int igcd( int a, int b )
     35+{
     36+    if ( a < 0 ) a = -a;
     37+    if ( b < 0 ) b = -b;
     38+
     39+    int c;
     40+
     41+    while ( b != 0 )
     42+    {
     43+        c = a % b;
     44+        a = b;
     45+        b = c;
     46+    }
     47+    return a;
     48+}
     49+
     50 #include<stdio.h>
     51 #include<stdlib.h>
     52 
     53diff --git a/factory/cf_util.h b/factory/cf_util.h
     54index 17baf35..e7309b0 100644
     55--- a/factory/cf_util.h
     56+++ b/factory/cf_util.h
     57@@ -13,6 +13,7 @@
     58 
     59 int ipower ( int b, int n );
     60 int ilog2 (int a);
     61+int igcd (int a, int b);
     62 
     63 /*BEGINPUBLIC*/
     64 void factoryError_intern(const char *s);
  • new file patches/singular_trac_441.patch

    diff --git a/patches/singular_trac_441.patch b/patches/singular_trac_441.patch
    new file mode 100644
    - +  
     1commit 0246ba4f2c356ac24a96ef92762abf72bf775fdd
     2Author: Martin Lee <martinlee84@web.de>
     3Date:   Thu Aug 2 10:49:05 2012 +0200
     4
     5    fix: tr 441
     6
     7diff --git a/factory/facFqBivar.cc b/factory/facFqBivar.cc
     8index f526883..6fad188 100644
     9--- a/factory/facFqBivar.cc
     10+++ b/factory/facFqBivar.cc
     11@@ -6102,9 +6102,7 @@ biFactorize (const CanonicalForm& F, const ExtensionInfo& info)
     12       if (extension)
     13       {
     14         CFList source, dest;
     15-        ExtensionInfo info2= ExtensionInfo (beta, alpha, delta, gamma, k,
     16-                             info.getGFName(), info.isInExtension());
     17-        appendMapDown (factors, A, info2, source, dest);
     18+        appendMapDown (factors, A, info, source, dest);
     19       }
     20       else
     21         factors.append (A);
  • new file patches/singular_trac_443.patch

    diff --git a/patches/singular_trac_443.patch b/patches/singular_trac_443.patch
    new file mode 100644
    - +  
     1diff -ru src/Singular/configure b/Singular/configure
     2--- src/Singular/configure      2012-07-11 12:00:13.000000000 +0200
     3+++ b/Singular/configure        2012-08-10 15:33:02.283359555 +0200
     4@@ -742,12 +742,8 @@
     5 LIBS
     6 CPPFLAGS
     7 CPP
     8-CPPFLAGS
     9 CXX
     10 CXXFLAGS
     11-LDFLAGS
     12-LIBS
     13-CPPFLAGS
     14 CCC
     15 CXXCPP'
     16 
     17@@ -5413,9 +5409,9 @@
     18 fi
     19 
     20 fi
     21-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for  in -lnsl" >&5
     22-$as_echo_n "checking for  in -lnsl... " >&6; }
     23-if ${ac_cv_lib_nsl_+:} false; then :
     24+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
     25+$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
     26+if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
     27   $as_echo_n "(cached) " >&6
     28 else
     29   ac_check_lib_save_LIBS=$LIBS
     30@@ -5429,27 +5425,27 @@
     31 #ifdef __cplusplus
     32 extern "C"
     33 #endif
     34-char  ();
     35+char gethostbyname ();
     36 int
     37 main ()
     38 {
     39-return  ();
     40+return gethostbyname ();
     41   ;
     42   return 0;
     43 }
     44 _ACEOF
     45 if ac_fn_c_try_link "$LINENO"; then :
     46-  ac_cv_lib_nsl_=yes
     47+  ac_cv_lib_nsl_gethostbyname=yes
     48 else
     49-  ac_cv_lib_nsl_=no
     50+  ac_cv_lib_nsl_gethostbyname=no
     51 fi
     52 rm -f core conftest.err conftest.$ac_objext \
     53     conftest$ac_exeext conftest.$ac_ext
     54 LIBS=$ac_check_lib_save_LIBS
     55 fi
     56-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_" >&5
     57-$as_echo "$ac_cv_lib_nsl_" >&6; }
     58-if test "x$ac_cv_lib_nsl_" = xyes; then :
     59+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
     60+$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
     61+if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
     62   cat >>confdefs.h <<_ACEOF
     63 #define HAVE_LIBNSL 1
     64 _ACEOF
     65@@ -5458,9 +5454,9 @@
     66 
     67 fi
     68 
     69-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for  in -lsocket" >&5
     70-$as_echo_n "checking for  in -lsocket... " >&6; }
     71-if ${ac_cv_lib_socket_+:} false; then :
     72+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept in -lsocket" >&5
     73+$as_echo_n "checking for accept in -lsocket... " >&6; }
     74+if ${ac_cv_lib_socket_accept+:} false; then :
     75   $as_echo_n "(cached) " >&6
     76 else
     77   ac_check_lib_save_LIBS=$LIBS
     78@@ -5474,27 +5470,27 @@
     79 #ifdef __cplusplus
     80 extern "C"
     81 #endif
     82-char  ();
     83+char accept ();
     84 int
     85 main ()
     86 {
     87-return  ();
     88+return accept ();
     89   ;
     90   return 0;
     91 }
     92 _ACEOF
     93 if ac_fn_c_try_link "$LINENO"; then :
     94-  ac_cv_lib_socket_=yes
     95+  ac_cv_lib_socket_accept=yes
     96 else
     97-  ac_cv_lib_socket_=no
     98+  ac_cv_lib_socket_accept=no
     99 fi
     100 rm -f core conftest.err conftest.$ac_objext \
     101     conftest$ac_exeext conftest.$ac_ext
     102 LIBS=$ac_check_lib_save_LIBS
     103 fi
     104-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_" >&5
     105-$as_echo "$ac_cv_lib_socket_" >&6; }
     106-if test "x$ac_cv_lib_socket_" = xyes; then :
     107+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_accept" >&5
     108+$as_echo "$ac_cv_lib_socket_accept" >&6; }
     109+if test "x$ac_cv_lib_socket_accept" = xyes; then :
     110   cat >>confdefs.h <<_ACEOF
     111 #define HAVE_LIBSOCKET 1
     112 _ACEOF
     113@@ -5503,6 +5499,52 @@
     114 
     115 fi
     116 
     117+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_open in -lrt" >&5
     118+$as_echo_n "checking for sem_open in -lrt... " >&6; }
     119+if ${ac_cv_lib_rt_sem_open+:} false; then :
     120+  $as_echo_n "(cached) " >&6
     121+else
     122+  ac_check_lib_save_LIBS=$LIBS
     123+LIBS="-lrt  $LIBS"
     124+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     125+/* end confdefs.h.  */
     126+
     127+/* Override any GCC internal prototype to avoid an error.
     128+   Use char because int might match the return type of a GCC
     129+   builtin and then its argument prototype would still apply.  */
     130+#ifdef __cplusplus
     131+extern "C"
     132+#endif
     133+char sem_open ();
     134+int
     135+main ()
     136+{
     137+return sem_open ();
     138+  ;
     139+  return 0;
     140+}
     141+_ACEOF
     142+if ac_fn_c_try_link "$LINENO"; then :
     143+  ac_cv_lib_rt_sem_open=yes
     144+else
     145+  ac_cv_lib_rt_sem_open=no
     146+fi
     147+rm -f core conftest.err conftest.$ac_objext \
     148+    conftest$ac_exeext conftest.$ac_ext
     149+LIBS=$ac_check_lib_save_LIBS
     150+fi
     151+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_open" >&5
     152+$as_echo "$ac_cv_lib_rt_sem_open" >&6; }
     153+if test "x$ac_cv_lib_rt_sem_open" = xyes; then :
     154+  cat >>confdefs.h <<_ACEOF
     155+#define HAVE_LIBRT 1
     156+_ACEOF
     157+
     158+  LIBS="-lrt $LIBS"
     159+
     160+fi
     161+
     162+
     163 SAVE_LIBS=${LIBS}
     164 LIBS=
     165 
     166@@ -8978,55 +9020,6 @@
     167 $as_echo "no" >&6; }
     168 fi
     169 
     170-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for  in -lrt" >&5
     171-$as_echo_n "checking for  in -lrt... " >&6; }
     172-if ${ac_cv_lib_rt_+:} false; then :
     173-  $as_echo_n "(cached) " >&6
     174-else
     175-  ac_check_lib_save_LIBS=$LIBS
     176-LIBS="-lrt  $LIBS"
     177-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     178-/* end confdefs.h.  */
     179-
     180-/* Override any GCC internal prototype to avoid an error.
     181-   Use char because int might match the return type of a GCC
     182-   builtin and then its argument prototype would still apply.  */
     183-#ifdef __cplusplus
     184-extern "C"
     185-#endif
     186-char  ();
     187-int
     188-main ()
     189-{
     190-return  ();
     191-  ;
     192-  return 0;
     193-}
     194-_ACEOF
     195-if ac_fn_c_try_link "$LINENO"; then :
     196-  ac_cv_lib_rt_=yes
     197-else
     198-  ac_cv_lib_rt_=no
     199-fi
     200-rm -f core conftest.err conftest.$ac_objext \
     201-    conftest$ac_exeext conftest.$ac_ext
     202-LIBS=$ac_check_lib_save_LIBS
     203-fi
     204-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_" >&5
     205-$as_echo "$ac_cv_lib_rt_" >&6; }
     206-if test "x$ac_cv_lib_rt_" = xyes; then :
     207-  cat >>confdefs.h <<_ACEOF
     208-#define HAVE_LIBRT 1
     209-_ACEOF
     210-
     211-  LIBS="-lrt $LIBS"
     212-
     213-fi
     214-
     215-if test "$ac_cv_lib_rt" = yes; then
     216-  NEED_LIBS="${NEED_LIBS} -lrt"
     217-fi
     218-
     219 NEED_LIBSG="${NEED_LIBS} -lpthread"
     220 
     221 if test "$ac_cv_sizeof_voidp" != 4; then
     222diff -ru src/Singular/configure.in b/Singular/configure.in
     223--- src/Singular/configure.in   2012-07-11 12:00:13.000000000 +0200
     224+++ b/Singular/configure.in     2012-08-10 15:32:54.943358842 +0200
     225@@ -799,8 +799,10 @@
     226 if test "$ac_cv_singuname" != ix86-Win; then
     227 AC_CHECK_LIB(m, atof)
     228 fi
     229-AC_CHECK_LIB(nsl)
     230-AC_CHECK_LIB(socket)
     231+AC_CHECK_LIB(nsl,gethostbyname)
     232+AC_CHECK_LIB(socket,accept)
     233+AC_CHECK_LIB(rt,sem_open)
     234+
     235 SAVE_LIBS=${LIBS}
     236 LIBS=
     237 
     238@@ -1438,11 +1440,6 @@
     239   AC_MSG_RESULT(no)
     240 fi
     241 
     242-AC_CHECK_LIB(rt)
     243-if test "$ac_cv_lib_rt" = yes; then
     244-  NEED_LIBS="${NEED_LIBS} -lrt"
     245-fi
     246-
     247 NEED_LIBSG="${NEED_LIBS} -lpthread"
     248 
     249 if test "$ac_cv_sizeof_voidp" != 4; then
  • new file patches/slibdir.patch

    diff --git a/patches/slibdir.patch b/patches/slibdir.patch
    new file mode 100644