Changeset 5417ff in git


Ignore:
Timestamp:
Feb 18, 2013, 3:37:56 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '2234726c50d679d6664181a5c72f75a6fd64a787')
Children:
c1ec9a82fe657765b7afd7c7afeff49a89b4dcc0
Parents:
81384bd682dd5f3d82dcdbb5f9b03b8e16f90d39
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-02-18 15:37:56+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-03-16 23:57:04+01:00
Message:
Added automake BuildSystem
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    r81384b r5417ff  
    11ACLOCAL_AMFLAGS = -I m4
    22
     3USE_FACTORY =
    34if ENABLE_FACTORY
    4   USE_FACTORY = factory
    5 else
    6   USE_FACTORY =
     5  USE_FACTORY += factory
    76endif
    87
    9 PACKAGES=findexec omalloc $(USE_FACTORY) libpolys kernel numeric Singular IntegerProgramming dyn_modules gfanlib
     8PACKAGES=findexec omalloc $(USE_FACTORY) libpolys kernel numeric Singular IntegerProgramming gfanlib dyn_modules
    109
    11 SUBDIRS=$(PACKAGES)
    12 
     10SUBDIRS =$(PACKAGES)
    1311TESTDIRS=$(PACKAGES)
    1412
    15 
     13 
    1614emacsdir=$(datadir)/singular/emacs
    1715
     
    2422
    2523#++ hlp-cmpl.el lib-cmpl.el ex-cmpl.el cmd-cmpl.el ??
    26 #-- emacs/BUGS     emacs/cmpl.pl     emacs/ESingular.emacs21     emacs/lib.pl     emacs/Makefile.in     emacs/singular.el.decl 
     24#-- emacs/BUGS     emacs/cmpl.pl     emacs/ESingular.emacs21     emacs/lib.pl     emacs/Makefile.in     emacs/singular.el.decl
    2725
    2826dist_emacs_DATA = $(EMACS)
     
    3432
    3533
    36 EXTRA_DIST = autogen.sh $(EMACS)
    37 
     34EXTRA_DIST = autogen.sh $(EMACS)
    3835
    3936bin_SCRIPTS = libsingular-config
  • configure.ac

    r81384b r5417ff  
    157157
    158158AC_CONFIG_SUBDIRS([libpolys])
     159
    159160AC_CONFIG_FILES([Makefile])
    160161AC_CONFIG_FILES([kernel/Makefile])
    161162AC_CONFIG_FILES([numeric/Makefile])
    162163AC_CONFIG_FILES([Singular/Makefile])
    163 AC_CONFIG_FILES([IntegerProgramming/Makefile])
    164164AC_CONFIG_FILES([dyn_modules/Makefile])
    165165AC_CONFIG_FILES([dyn_modules/bigintm/Makefile])
    166166AC_CONFIG_FILES([dyn_modules/syzextra/Makefile])
    167 if test "x$ENABLE_GFANLIB" = xyes; then
    168  AC_CONFIG_SUBDIRS([gfanlib])
    169  AC_CONFIG_FILES([dyn_modules/callgfanlib/Makefile])
    170 fi
     167AC_CONFIG_FILES([dyn_modules/callgfanlib/Makefile])
     168AC_CONFIG_FILES([IntegerProgramming/Makefile])
    171169AC_CONFIG_FILES([libsingular-config])
     170AC_CONFIG_SUBDIRS([gfanlib])
    172171
    173172AC_OUTPUT
  • dyn_modules/Makefile.am

    r81384b r5417ff  
    11ACLOCAL_AMFLAGS = -I ../m4
    22
    3 PACKAGES=bigintm syzextra callgfanlib
     3PACKAGES=bigintm syzextra callgfanlib 
    44SUBDIRS=$(PACKAGES)
    55
  • dyn_modules/callgfanlib/Makefile.am

    r81384b r5417ff  
    1 moduledir = $(bindir)/MOD
     1moduledir = $(libexecdir)/singular/MOD
    22
    33if HAVE_GFANLIB
    44if ENABLE_P_PROCS_DYNAMIC
    5   module_LTLIBRARIES=gfanlib.la gfanlib_g.la
     5  module_LTLIBRARIES=gfanlib.la
     6
     7if WANT_DEBUG
     8  module_LTLIBRARIES+=gfanlib_g.la
     9endif
     10 
    611endif
    712endif
     
    2530$(FACTORY_CFLAGS) $(NTL_CFLAGS) $(GMP_CFLAGS)
    2631
    27 AMLDFLAGS       =  -L${top_builddir}/gfanlib -lgfan
     32#AMLDFLAGS      =  -L${abs_top_builddir}/gfanlib/
    2833# -L${top_builddir}/Singular -L${top_builddir}/numeric -L${top_builddir}/kernel \
    2934# -L${top_builddir}/libpolys/polys $(USE_FACTORY) -L${top_builddir}/omalloc -L${top_builddir}/findexec
     
    4247gfanlib_la_CXXFLAGS   = ${NODEBUGCXXFLAGS}
    4348gfanlib_g_la_CXXFLAGS = ${DEBUGCXXFLAGS}
     49
     50gfanlib_la_LIBADD = ${abs_top_builddir}/gfanlib/libgfan.la
     51gfanlib_g_la_LIBADD = ${gfanlib_la_LIBADD}
    4452
    4553if ENABLE_P_PROCS_DYNAMIC
  • gfanlib/Makefile.am

    r81384b r5417ff  
    11ACLOCAL_AMFLAGS = -I ../m4
    22
     3if HAVE_GFANLIB
     4  libgfan_LTLIBRARIES=libgfan.la
    35if WANT_DEBUG
    4   LIB_G=libgfan_g.la
    5 else
    6   LIB_G=
     6  libgfan_LTLIBRARIES+=libgfan_g.la
     7endif
    78endif
    89
    9 libgfan_LTLIBRARIES = libgfan.la ${LIB_G}
    1010libgfandir = $(libdir)/
    1111
  • gfanlib/configure

    r81384b r5417ff  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.68 for libgfan 0.1.
     3# Generated by GNU Autoconf 2.69 for libgfan 0.1.
    44#
    55# Report bugs to <ren@mathematik.uni-kl.de>.
    66#
    77#
    8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
    10 # Foundation, Inc.
     8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
    119#
    1210#
     
    137135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    138136
     137# Use a proper internal environment variable to ensure we don't fall
     138  # into an infinite loop, continuously re-executing ourselves.
     139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
     140    _as_can_reexec=no; export _as_can_reexec;
     141    # We cannot yet assume a decent shell, so we have to provide a
     142# neutralization value for shells without unset; and this also
     143# works around shells that cannot unset nonexistent variables.
     144# Preserve -v and -x to the replacement shell.
     145BASH_ENV=/dev/null
     146ENV=/dev/null
     147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
     148case $- in # ((((
     149  *v*x* | *x*v* ) as_opts=-vx ;;
     150  *v* ) as_opts=-v ;;
     151  *x* ) as_opts=-x ;;
     152  * ) as_opts= ;;
     153esac
     154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
     155# Admittedly, this is quite paranoid, since all the known shells bail
     156# out after a failed `exec'.
     157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
     158as_fn_exit 255
     159  fi
     160  # We don't want this to propagate to other subprocesses.
     161          { _as_can_reexec=; unset _as_can_reexec;}
    139162if test "x$CONFIG_SHELL" = x; then
    140163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
     
    170193  exitcode=1; echo positional parameters were not saved.
    171194fi
    172 test x\$exitcode = x0 || exit 1"
     195test x\$exitcode = x0 || exit 1
     196test -x / || exit 1"
    173197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    174198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
     
    223247
    224248      if test "x$CONFIG_SHELL" != x; then :
    225   # We cannot yet assume a decent shell, so we have to provide a
    226         # neutralization value for shells without unset; and this also
    227         # works around shells that cannot unset nonexistent variables.
    228         # Preserve -v and -x to the replacement shell.
    229         BASH_ENV=/dev/null
    230         ENV=/dev/null
    231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    232         export CONFIG_SHELL
    233         case $- in # ((((
    234           *v*x* | *x*v* ) as_opts=-vx ;;
    235           *v* ) as_opts=-v ;;
    236           *x* ) as_opts=-x ;;
    237           * ) as_opts= ;;
    238         esac
    239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
     249  export CONFIG_SHELL
     250             # We cannot yet assume a decent shell, so we have to provide a
     251# neutralization value for shells without unset; and this also
     252# works around shells that cannot unset nonexistent variables.
     253# Preserve -v and -x to the replacement shell.
     254BASH_ENV=/dev/null
     255ENV=/dev/null
     256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
     257case $- in # ((((
     258  *v*x* | *x*v* ) as_opts=-vx ;;
     259  *v* ) as_opts=-v ;;
     260  *x* ) as_opts=-x ;;
     261  * ) as_opts= ;;
     262esac
     263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
     264# Admittedly, this is quite paranoid, since all the known shells bail
     265# out after a failed `exec'.
     266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
     267exit 255
    240268fi
    241269
     
    340368
    341369} # as_fn_mkdir_p
     370
     371# as_fn_executable_p FILE
     372# -----------------------
     373# Test if FILE is an executable regular file.
     374as_fn_executable_p ()
     375{
     376  test -f "$1" && test -x "$1"
     377} # as_fn_executable_p
    342378# as_fn_append VAR VALUE
    343379# ----------------------
     
    461497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    462498
     499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
     500  # already done that, so ensure we don't try to do so again and fall
     501  # in an infinite loop.  This has already happened in practice.
     502  _as_can_reexec=no; export _as_can_reexec
    463503  # Don't try to exec as it changes $[0], causing all sort of problems
    464504  # (the dirname of $[0] is not the place where we might find the
     
    495535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    496536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    497     # In both cases, we have to default to `cp -p'.
     537    # In both cases, we have to default to `cp -pR'.
    498538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    499       as_ln_s='cp -p'
     539      as_ln_s='cp -pR'
    500540  elif ln conf$$.file conf$$ 2>/dev/null; then
    501541    as_ln_s=ln
    502542  else
    503     as_ln_s='cp -p'
     543    as_ln_s='cp -pR'
    504544  fi
    505545else
    506   as_ln_s='cp -p'
     546  as_ln_s='cp -pR'
    507547fi
    508548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     
    516556fi
    517557
    518 if test -x / >/dev/null 2>&1; then
    519   as_test_x='test -x'
    520 else
    521   if ls -dL / >/dev/null 2>&1; then
    522     as_ls_L_option=L
    523   else
    524     as_ls_L_option=
    525   fi
    526   as_test_x='
    527     eval sh -c '\''
    528       if test -d "$1"; then
    529         test -d "$1/.";
    530       else
    531         case $1 in #(
    532         -*)set "./$1";;
    533         esac;
    534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
    535         ???[sx]*):;;*)false;;esac;fi
    536     '\'' sh
    537   '
    538 fi
    539 as_executable_p=$as_test_x
     558as_test_x='test -x'
     559as_executable_p=as_fn_executable_p
    540560
    541561# Sed expression to map a string onto a valid CPP name.
     
    619639WANT_DEBUG_FALSE
    620640WANT_DEBUG_TRUE
     641HAVE_GFANLIB_FALSE
     642HAVE_GFANLIB_TRUE
     643GMP_VERSION
     644GMP_LIBS
     645GMP_CFLAGS
    621646CXXCPP
    622647CPP
     
    754779with_sysroot
    755780enable_libtool_lock
     781with_gmp
     782enable_gfanlib
    756783enable_debug
    757784'
     
    12241251  if test "x$build_alias" = x; then
    12251252    cross_compiling=maybe
    1226     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
    1227     If a cross compiler is detected then cross compile mode will be used" >&2
    12281253  elif test "x$build_alias" != "x$host_alias"; then
    12291254    cross_compiling=yes
     
    13891414  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    13901415  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    1391   --enable-maintainer-mode  enable make rules and dependencies not useful
    1392                           (and sometimes confusing) to the casual installer
    1393   --enable-silent-rules          less verbose build output (undo: `make V=1')
    1394   --disable-silent-rules         verbose build output (undo: `make V=0')
    1395   --disable-dependency-tracking  speeds up one-time build
    1396   --enable-dependency-tracking   do not reject slow dependency extractors
     1416  --enable-maintainer-mode
     1417                          enable make rules and dependencies not useful (and
     1418                          sometimes confusing) to the casual installer
     1419  --enable-silent-rules   less verbose build output (undo: "make V=1")
     1420  --disable-silent-rules  verbose build output (undo: "make V=0")
     1421  --enable-dependency-tracking
     1422                          do not reject slow dependency extractors
     1423  --disable-dependency-tracking
     1424                          speeds up one-time build
    13971425  --enable-shared[=PKGS]  build shared libraries [default=yes]
    13981426  --enable-static[=PKGS]  build static libraries [default=yes]
     
    14001428                          optimize for fast installation [default=yes]
    14011429  --disable-libtool-lock  avoid locking (might break parallel builds)
     1430  --enable-gfanlib        Enables gfanlib, a package for basic convex geometry
    14021431  --enable-debug          build the debugging version of the libraries
    14031432
     
    14101439  --with-sysroot=DIR Search for dependent libraries within DIR
    14111440                        (or the compiler's sysroot if not specified).
     1441  --with-gmp= <path>|yes Use GMP library. This library is mandatory for Singular
     1442                         compilation. If argument is yes or <empty> that means
     1443                         the library is reachable with the standard search path
     1444                         "/usr" or "/usr/local" (set as default). Otherwise you
     1445                         give the <path> to the directory which contain the
     1446                         library.
     1447
    14121448
    14131449Some influential environment variables:
     
    14911527  cat <<\_ACEOF
    14921528libgfan configure 0.1
    1493 generated by GNU Autoconf 2.68
    1494 
    1495 Copyright (C) 2010 Free Software Foundation, Inc.
     1529generated by GNU Autoconf 2.69
     1530
     1531Copyright (C) 2012 Free Software Foundation, Inc.
    14961532This configure script is free software; the Free Software Foundation
    14971533gives unlimited permission to copy, distribute and modify it.
     
    16071643       } && test -s conftest$ac_exeext && {
    16081644         test "$cross_compiling" = yes ||
    1609          $as_test_x conftest$ac_exeext
     1645         test -x conftest$ac_exeext
    16101646       }; then :
    16111647  ac_retval=0
     
    18671903       } && test -s conftest$ac_exeext && {
    18681904         test "$cross_compiling" = yes ||
    1869          $as_test_x conftest$ac_exeext
     1905         test -x conftest$ac_exeext
    18701906       }; then :
    18711907  ac_retval=0
     
    19812017
    19822018It was created by libgfan $as_me 0.1, which was
    1983 generated by GNU Autoconf 2.68.  Invocation command line was
     2019generated by GNU Autoconf 2.69.  Invocation command line was
    19842020
    19852021  $ $0 $@
     
    23552391
    23562392
    2357 am__api_version='1.11'
     2393am__api_version='1.13'
    23582394
    23592395ac_aux_dir=
     
    24232459    for ac_prog in ginstall scoinst install; do
    24242460      for ac_exec_ext in '' $ac_executable_extensions; do
    2425         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
     2461        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    24262462          if test $ac_prog = install &&
    24272463            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     
    24812517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
    24822518$as_echo_n "checking whether build environment is sane... " >&6; }
    2483 # Just in case
    2484 sleep 1
    2485 echo timestamp > conftest.file
    24862519# Reject unsafe characters in $srcdir or the absolute working directory
    24872520# name.  Accept space and tab only in the latter.
     
    24942527case $srcdir in
    24952528  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
    2496     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
     2529    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
    24972530esac
    24982531
    2499 # Do `set' in a subshell so we don't clobber the current shell's
     2532# Do 'set' in a subshell so we don't clobber the current shell's
    25002533# arguments.  Must try -L first in case configure is actually a
    25012534# symlink; some systems play weird games with the mod time of symlinks
     
    25032536# directory).
    25042537if (
    2505    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
    2506    if test "$*" = "X"; then
    2507       # -L didn't work.
    2508       set X `ls -t "$srcdir/configure" conftest.file`
    2509    fi
    2510    rm -f conftest.file
    2511    if test "$*" != "X $srcdir/configure conftest.file" \
    2512       && test "$*" != "X conftest.file $srcdir/configure"; then
    2513 
    2514       # If neither matched, then we have a broken ls.  This can happen
    2515       # if, for instance, CONFIG_SHELL is bash and it inherits a
    2516       # broken ls alias from the environment.  This has actually
    2517       # happened.  Such a system could not be considered "sane".
    2518       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
    2519 alias in your environment" "$LINENO" 5
    2520    fi
    2521 
     2538   am_has_slept=no
     2539   for am_try in 1 2; do
     2540     echo "timestamp, slept: $am_has_slept" > conftest.file
     2541     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
     2542     if test "$*" = "X"; then
     2543        # -L didn't work.
     2544        set X `ls -t "$srcdir/configure" conftest.file`
     2545     fi
     2546     if test "$*" != "X $srcdir/configure conftest.file" \
     2547        && test "$*" != "X conftest.file $srcdir/configure"; then
     2548
     2549        # If neither matched, then we have a broken ls.  This can happen
     2550        # if, for instance, CONFIG_SHELL is bash and it inherits a
     2551        # broken ls alias from the environment.  This has actually
     2552        # happened.  Such a system could not be considered "sane".
     2553        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
     2554  alias in your environment" "$LINENO" 5
     2555     fi
     2556     if test "$2" = conftest.file || test $am_try -eq 2; then
     2557       break
     2558     fi
     2559     # Just in case.
     2560     sleep 1
     2561     am_has_slept=yes
     2562   done
    25222563   test "$2" = conftest.file
    25232564   )
     
    25312572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
    25322573$as_echo "yes" >&6; }
     2574# If we didn't sleep, we still need to ensure time stamps of config.status and
     2575# generated files are strictly newer.
     2576am_sleep_pid=
     2577if grep 'slept: no' conftest.file >/dev/null 2>&1; then
     2578  ( sleep 1 ) &
     2579  am_sleep_pid=$!
     2580fi
     2581
     2582rm -f conftest.file
     2583
    25332584test "$program_prefix" != NONE &&
    25342585  program_transform_name="s&^&$program_prefix&;$program_transform_name"
     
    25532604fi
    25542605# Use eval to expand $SHELL
    2555 if eval "$MISSING --run true"; then
    2556   am_missing_run="$MISSING --run "
     2606if eval "$MISSING --is-lightweight"; then
     2607  am_missing_run="$MISSING "
    25572608else
    25582609  am_missing_run=
    2559   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
    2560 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
     2610  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
     2611$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
    25612612fi
    25622613
     
    25702621fi
    25712622
    2572 # Installed binaries are usually stripped using `strip' when the user
    2573 # run `make install-strip'.  However `strip' might not be the right
     2623# Installed binaries are usually stripped using 'strip' when the user
     2624# run "make install-strip".  However 'strip' might not be the right
    25742625# tool to use in cross-compilation environments, therefore Automake
    2575 # will honor the `STRIP' environment variable to overrule this program.
     2626# will honor the 'STRIP' environment variable to overrule this program.
    25762627if test "$cross_compiling" != no; then
    25772628  if test -n "$ac_tool_prefix"; then
     
    25922643  test -z "$as_dir" && as_dir=.
    25932644    for ac_exec_ext in '' $ac_executable_extensions; do
    2594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    25952646    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    25962647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    26322683  test -z "$as_dir" && as_dir=.
    26332684    for ac_exec_ext in '' $ac_executable_extensions; do
    2634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    26352686    ac_cv_prog_ac_ct_STRIP="strip"
    26362687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    26832734    for ac_prog in mkdir gmkdir; do
    26842735         for ac_exec_ext in '' $ac_executable_extensions; do
    2685            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
     2736           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
    26862737           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
    26872738             'mkdir (GNU coreutils) '* | \
     
    27122763$as_echo "$MKDIR_P" >&6; }
    27132764
    2714 mkdir_p="$MKDIR_P"
    2715 case $mkdir_p in
    2716   [\\/$]* | ?:[\\/]*) ;;
    2717   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
    2718 esac
    2719 
    27202765for ac_prog in gawk mawk nawk awk
    27212766do
     
    27362781  test -z "$as_dir" && as_dir=.
    27372782    for ac_exec_ext in '' $ac_executable_extensions; do
    2738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    27392784    ac_cv_prog_AWK="$ac_prog"
    27402785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    28002845rmdir .tst 2>/dev/null
    28012846
     2847# Check whether --enable-silent-rules was given.
     2848if test "${enable_silent_rules+set}" = set; then :
     2849  enableval=$enable_silent_rules;
     2850fi
     2851
     2852case $enable_silent_rules in # (((
     2853  yes) AM_DEFAULT_VERBOSITY=0;;
     2854   no) AM_DEFAULT_VERBOSITY=1;;
     2855    *) AM_DEFAULT_VERBOSITY=1;;
     2856esac
     2857am_make=${MAKE-make}
     2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
     2859$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
     2860if ${am_cv_make_support_nested_variables+:} false; then :
     2861  $as_echo_n "(cached) " >&6
     2862else
     2863  if $as_echo 'TRUE=$(BAR$(V))
     2864BAR0=false
     2865BAR1=true
     2866V=1
     2867am__doit:
     2868        @$(TRUE)
     2869.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
     2870  am_cv_make_support_nested_variables=yes
     2871else
     2872  am_cv_make_support_nested_variables=no
     2873fi
     2874fi
     2875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
     2876$as_echo "$am_cv_make_support_nested_variables" >&6; }
     2877if test $am_cv_make_support_nested_variables = yes; then
     2878    AM_V='$(V)'
     2879  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
     2880else
     2881  AM_V=$AM_DEFAULT_VERBOSITY
     2882  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
     2883fi
     2884AM_BACKSLASH='\'
     2885
    28022886if test "`cd $srcdir && pwd`" != "`pwd`"; then
    28032887  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
     
    28502934MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
    28512935
     2936# For better backward compatibility.  To be removed once Automake 1.9.x
     2937# dies out for good.  For more background, see:
     2938# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
     2939# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
     2940mkdir_p='$(MKDIR_P)'
     2941
    28522942# We need awk for the "check" target.  The system "awk" is bad on
    28532943# some platforms.
     
    28672957fi
    28682958
    2869 case $enable_silent_rules in
    2870 yes) AM_DEFAULT_VERBOSITY=0;;
    2871 no) AM_DEFAULT_VERBOSITY=1;;
    2872 *)  AM_DEFAULT_VERBOSITY=1;;
     2959case $enable_silent_rules in # (((
     2960  yes) AM_DEFAULT_VERBOSITY=0;;
     2961   no) AM_DEFAULT_VERBOSITY=1;;
     2962    *) AM_DEFAULT_VERBOSITY=1;;
    28732963esac
    28742964am_make=${MAKE-make}
     
    29203010# First try GNU make style include.
    29213011echo "include confinc" > confmf
    2922 # Ignore all kinds of additional output from `make'.
     3012# Ignore all kinds of additional output from 'make'.
    29233013case `$am_make -s -f confmf 2> /dev/null` in #(
    29243014*the\ am__doit\ target*)
     
    29863076  test -z "$as_dir" && as_dir=.
    29873077    for ac_exec_ext in '' $ac_executable_extensions; do
    2988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3078  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    29893079    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    29903080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    30263116  test -z "$as_dir" && as_dir=.
    30273117    for ac_exec_ext in '' $ac_executable_extensions; do
    3028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3118  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    30293119    ac_cv_prog_ac_ct_CC="gcc"
    30303120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    30793169  test -z "$as_dir" && as_dir=.
    30803170    for ac_exec_ext in '' $ac_executable_extensions; do
    3081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3171  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    30823172    ac_cv_prog_CC="${ac_tool_prefix}cc"
    30833173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    31203210  test -z "$as_dir" && as_dir=.
    31213211    for ac_exec_ext in '' $ac_executable_extensions; do
    3122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    31233213    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    31243214       ac_prog_rejected=yes
     
    31783268  test -z "$as_dir" && as_dir=.
    31793269    for ac_exec_ext in '' $ac_executable_extensions; do
    3180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    31813271    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    31823272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    32223312  test -z "$as_dir" && as_dir=.
    32233313    for ac_exec_ext in '' $ac_executable_extensions; do
    3224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    32253315    ac_cv_prog_ac_ct_CC="$ac_prog"
    32263316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    36683758#include <stdarg.h>
    36693759#include <stdio.h>
    3670 #include <sys/types.h>
    3671 #include <sys/stat.h>
     3760struct stat;
    36723761/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    36733762struct buf { int x; };
     
    37653854  # making bogus files that we don't know about and never remove.  For
    37663855  # instance it was reported that on HP-UX the gcc test will end up
    3767   # making a dummy file named `D' -- because `-MD' means `put the output
    3768   # in D'.
     3856  # making a dummy file named 'D' -- because '-MD' means "put the output
     3857  # in D".
    37693858  rm -rf conftest.dir
    37703859  mkdir conftest.dir
     
    38013890    for i in 1 2 3 4 5 6; do
    38023891      echo '#include "conftst'$i'.h"' >> sub/conftest.c
    3803       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
    3804       # Solaris 8's {/usr,}/bin/sh.
    3805       touch sub/conftst$i.h
     3892      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
     3893      # Solaris 10 /bin/sh.
     3894      echo '/* dummy */' > sub/conftst$i.h
    38063895    done
    38073896    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    38083897
    3809     # We check with `-c' and `-o' for the sake of the "dashmstdout"
     3898    # We check with '-c' and '-o' for the sake of the "dashmstdout"
    38103899    # mode.  It turns out that the SunPro C++ compiler does not properly
    3811     # handle `-M -o', and we need to detect this.  Also, some Intel
    3812     # versions had trouble with output in subdirs
     3900    # handle '-M -o', and we need to detect this.  Also, some Intel
     3901    # versions had trouble with output in subdirs.
    38133902    am__obj=sub/conftest.${OBJEXT-o}
    38143903    am__minus_obj="-o $am__obj"
     
    38193908      ;;
    38203909    nosideeffect)
    3821       # after this tag, mechanisms are not by side-effect, so they'll
    3822       # only be used when explicitly requested
     3910      # After this tag, mechanisms are not by side-effect, so they'll
     3911      # only be used when explicitly requested.
    38233912      if test "x$enable_dependency_tracking" = xyes; then
    38243913        continue
     
    38283917      ;;
    38293918    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
    3830       # This compiler won't grok `-c -o', but also, the minuso test has
     3919      # This compiler won't grok '-c -o', but also, the minuso test has
    38313920      # not run yet.  These depmodes are late enough in the game, and
    38323921      # so weak that their functioning should not be impacted.
     
    39023991  test -z "$as_dir" && as_dir=.
    39033992    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
     3993  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    39053994    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    39063995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    39464035  test -z "$as_dir" && as_dir=.
    39474036    for ac_exec_ext in '' $ac_executable_extensions; do
    3948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    39494038    ac_cv_prog_ac_ct_AR="$ac_prog"
    39504039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    40674156  test -z "$as_dir" && as_dir=.
    40684157    for ac_exec_ext in '' $ac_executable_extensions; do
    4069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4158  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    40704159    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    40714160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    41074196  test -z "$as_dir" && as_dir=.
    41084197    for ac_exec_ext in '' $ac_executable_extensions; do
    4109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4198  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    41104199    ac_cv_prog_ac_ct_CC="gcc"
    41114200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    41604249  test -z "$as_dir" && as_dir=.
    41614250    for ac_exec_ext in '' $ac_executable_extensions; do
    4162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4251  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    41634252    ac_cv_prog_CC="${ac_tool_prefix}cc"
    41644253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    42014290  test -z "$as_dir" && as_dir=.
    42024291    for ac_exec_ext in '' $ac_executable_extensions; do
    4203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4292  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    42044293    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    42054294       ac_prog_rejected=yes
     
    42594348  test -z "$as_dir" && as_dir=.
    42604349    for ac_exec_ext in '' $ac_executable_extensions; do
    4261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4350  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    42624351    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    42634352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    43034392  test -z "$as_dir" && as_dir=.
    43044393    for ac_exec_ext in '' $ac_executable_extensions; do
    4305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    43064395    ac_cv_prog_ac_ct_CC="$ac_prog"
    43074396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    44994588#include <stdarg.h>
    45004589#include <stdio.h>
    4501 #include <sys/types.h>
    4502 #include <sys/stat.h>
     4590struct stat;
    45034591/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    45044592struct buf { int x; };
     
    45964684  # making bogus files that we don't know about and never remove.  For
    45974685  # instance it was reported that on HP-UX the gcc test will end up
    4598   # making a dummy file named `D' -- because `-MD' means `put the output
    4599   # in D'.
     4686  # making a dummy file named 'D' -- because '-MD' means "put the output
     4687  # in D".
    46004688  rm -rf conftest.dir
    46014689  mkdir conftest.dir
     
    46324720    for i in 1 2 3 4 5 6; do
    46334721      echo '#include "conftst'$i'.h"' >> sub/conftest.c
    4634       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
    4635       # Solaris 8's {/usr,}/bin/sh.
    4636       touch sub/conftst$i.h
     4722      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
     4723      # Solaris 10 /bin/sh.
     4724      echo '/* dummy */' > sub/conftst$i.h
    46374725    done
    46384726    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    46394727
    4640     # We check with `-c' and `-o' for the sake of the "dashmstdout"
     4728    # We check with '-c' and '-o' for the sake of the "dashmstdout"
    46414729    # mode.  It turns out that the SunPro C++ compiler does not properly
    4642     # handle `-M -o', and we need to detect this.  Also, some Intel
    4643     # versions had trouble with output in subdirs
     4730    # handle '-M -o', and we need to detect this.  Also, some Intel
     4731    # versions had trouble with output in subdirs.
    46444732    am__obj=sub/conftest.${OBJEXT-o}
    46454733    am__minus_obj="-o $am__obj"
     
    46504738      ;;
    46514739    nosideeffect)
    4652       # after this tag, mechanisms are not by side-effect, so they'll
    4653       # only be used when explicitly requested
     4740      # After this tag, mechanisms are not by side-effect, so they'll
     4741      # only be used when explicitly requested.
    46544742      if test "x$enable_dependency_tracking" = xyes; then
    46554743        continue
     
    46594747      ;;
    46604748    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
    4661       # This compiler won't grok `-c -o', but also, the minuso test has
     4749      # This compiler won't grok '-c -o', but also, the minuso test has
    46624750      # not run yet.  These depmodes are late enough in the game, and
    46634751      # so weak that their functioning should not be impacted.
     
    47414829  test -z "$as_dir" && as_dir=.
    47424830    for ac_exec_ext in '' $ac_executable_extensions; do
    4743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4831  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    47444832    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    47454833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    47854873  test -z "$as_dir" && as_dir=.
    47864874    for ac_exec_ext in '' $ac_executable_extensions; do
    4787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     4875  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    47884876    ac_cv_prog_ac_ct_CXX="$ac_prog"
    47894877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    49815069  # making bogus files that we don't know about and never remove.  For
    49825070  # instance it was reported that on HP-UX the gcc test will end up
    4983   # making a dummy file named `D' -- because `-MD' means `put the output
    4984   # in D'.
     5071  # making a dummy file named 'D' -- because '-MD' means "put the output
     5072  # in D".
    49855073  rm -rf conftest.dir
    49865074  mkdir conftest.dir
     
    50175105    for i in 1 2 3 4 5 6; do
    50185106      echo '#include "conftst'$i'.h"' >> sub/conftest.c
    5019       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
    5020       # Solaris 8's {/usr,}/bin/sh.
    5021       touch sub/conftst$i.h
     5107      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
     5108      # Solaris 10 /bin/sh.
     5109      echo '/* dummy */' > sub/conftst$i.h
    50225110    done
    50235111    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    50245112
    5025     # We check with `-c' and `-o' for the sake of the "dashmstdout"
     5113    # We check with '-c' and '-o' for the sake of the "dashmstdout"
    50265114    # mode.  It turns out that the SunPro C++ compiler does not properly
    5027     # handle `-M -o', and we need to detect this.  Also, some Intel
    5028     # versions had trouble with output in subdirs
     5115    # handle '-M -o', and we need to detect this.  Also, some Intel
     5116    # versions had trouble with output in subdirs.
    50295117    am__obj=sub/conftest.${OBJEXT-o}
    50305118    am__minus_obj="-o $am__obj"
     
    50355123      ;;
    50365124    nosideeffect)
    5037       # after this tag, mechanisms are not by side-effect, so they'll
    5038       # only be used when explicitly requested
     5125      # After this tag, mechanisms are not by side-effect, so they'll
     5126      # only be used when explicitly requested.
    50395127      if test "x$enable_dependency_tracking" = xyes; then
    50405128        continue
     
    50445132      ;;
    50455133    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
    5046       # This compiler won't grok `-c -o', but also, the minuso test has
     5134      # This compiler won't grok '-c -o', but also, the minuso test has
    50475135      # not run yet.  These depmodes are late enough in the game, and
    50485136      # so weak that their functioning should not be impacted.
     
    53005388    for ac_exec_ext in '' $ac_executable_extensions; do
    53015389      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
    5302       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
     5390      as_fn_executable_p "$ac_path_SED" || continue
    53035391# Check for GNU ac_path_SED and select it if it is found.
    53045392  # Check for GNU $ac_path_SED
     
    53765464    for ac_exec_ext in '' $ac_executable_extensions; do
    53775465      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
    5378       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
     5466      as_fn_executable_p "$ac_path_GREP" || continue
    53795467# Check for GNU ac_path_GREP and select it if it is found.
    53805468  # Check for GNU $ac_path_GREP
     
    54425530    for ac_exec_ext in '' $ac_executable_extensions; do
    54435531      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
    5444       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
     5532      as_fn_executable_p "$ac_path_EGREP" || continue
    54455533# Check for GNU ac_path_EGREP and select it if it is found.
    54465534  # Check for GNU $ac_path_EGREP
     
    55095597    for ac_exec_ext in '' $ac_executable_extensions; do
    55105598      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
    5511       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
     5599      as_fn_executable_p "$ac_path_FGREP" || continue
    55125600# Check for GNU ac_path_FGREP and select it if it is found.
    55135601  # Check for GNU $ac_path_FGREP
     
    57655853  test -z "$as_dir" && as_dir=.
    57665854    for ac_exec_ext in '' $ac_executable_extensions; do
    5767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     5855  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    57685856    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
    57695857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    58095897  test -z "$as_dir" && as_dir=.
    58105898    for ac_exec_ext in '' $ac_executable_extensions; do
    5811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     5899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    58125900    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
    58135901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    62226310  test -z "$as_dir" && as_dir=.
    62236311    for ac_exec_ext in '' $ac_executable_extensions; do
    6224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     6312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    62256313    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
    62266314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    62626350  test -z "$as_dir" && as_dir=.
    62636351    for ac_exec_ext in '' $ac_executable_extensions; do
    6264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     6352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    62656353    ac_cv_prog_ac_ct_OBJDUMP="objdump"
    62666354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    64346522  ;;
    64356523
    6436 netbsd* | netbsdelf*-gnu)
     6524netbsd*)
    64376525  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    64386526    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
     
    65686656  test -z "$as_dir" && as_dir=.
    65696657    for ac_exec_ext in '' $ac_executable_extensions; do
    6570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     6658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    65716659    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
    65726660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    66086696  test -z "$as_dir" && as_dir=.
    66096697    for ac_exec_ext in '' $ac_executable_extensions; do
    6610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     6698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    66116699    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
    66126700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    67116799  test -z "$as_dir" && as_dir=.
    67126800    for ac_exec_ext in '' $ac_executable_extensions; do
    6713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     6801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    67146802    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    67156803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    67556843  test -z "$as_dir" && as_dir=.
    67566844    for ac_exec_ext in '' $ac_executable_extensions; do
    6757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     6845  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    67586846    ac_cv_prog_ac_ct_AR="$ac_prog"
    67596847    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    68806968  test -z "$as_dir" && as_dir=.
    68816969    for ac_exec_ext in '' $ac_executable_extensions; do
    6882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     6970  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    68836971    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    68846972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    69207008  test -z "$as_dir" && as_dir=.
    69217009    for ac_exec_ext in '' $ac_executable_extensions; do
    6922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7010  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    69237011    ac_cv_prog_ac_ct_STRIP="strip"
    69247012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    69797067  test -z "$as_dir" && as_dir=.
    69807068    for ac_exec_ext in '' $ac_executable_extensions; do
    6981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    69827070    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    69837071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    70197107  test -z "$as_dir" && as_dir=.
    70207108    for ac_exec_ext in '' $ac_executable_extensions; do
    7021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7109  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    70227110    ac_cv_prog_ac_ct_RANLIB="ranlib"
    70237111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    76687756  test -z "$as_dir" && as_dir=.
    76697757    for ac_exec_ext in '' $ac_executable_extensions; do
    7670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    76717759    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
    76727760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    77087796  test -z "$as_dir" && as_dir=.
    77097797    for ac_exec_ext in '' $ac_executable_extensions; do
    7710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    77117799    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
    77127800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    77887876  test -z "$as_dir" && as_dir=.
    77897877    for ac_exec_ext in '' $ac_executable_extensions; do
    7790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7878  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    77917879    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
    77927880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    78287916  test -z "$as_dir" && as_dir=.
    78297917    for ac_exec_ext in '' $ac_executable_extensions; do
    7830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7918  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    78317919    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
    78327920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    78807968  test -z "$as_dir" && as_dir=.
    78817969    for ac_exec_ext in '' $ac_executable_extensions; do
    7882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     7970  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    78837971    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
    78847972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    79208008  test -z "$as_dir" && as_dir=.
    79218009    for ac_exec_ext in '' $ac_executable_extensions; do
    7922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     8010  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    79238011    ac_cv_prog_ac_ct_NMEDIT="nmedit"
    79248012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    79728060  test -z "$as_dir" && as_dir=.
    79738061    for ac_exec_ext in '' $ac_executable_extensions; do
    7974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     8062  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    79758063    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
    79768064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    80128100  test -z "$as_dir" && as_dir=.
    80138101    for ac_exec_ext in '' $ac_executable_extensions; do
    8014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     8102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    80158103    ac_cv_prog_ac_ct_LIPO="lipo"
    80168104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    80648152  test -z "$as_dir" && as_dir=.
    80658153    for ac_exec_ext in '' $ac_executable_extensions; do
    8066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     8154  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    80678155    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
    80688156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    81048192  test -z "$as_dir" && as_dir=.
    81058193    for ac_exec_ext in '' $ac_executable_extensions; do
    8106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     8194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    81078195    ac_cv_prog_ac_ct_OTOOL="otool"
    81088196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    81568244  test -z "$as_dir" && as_dir=.
    81578245    for ac_exec_ext in '' $ac_executable_extensions; do
    8158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     8246  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    81598247    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
    81608248    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    81968284  test -z "$as_dir" && as_dir=.
    81978285    for ac_exec_ext in '' $ac_executable_extensions; do
    8198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     8286  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    81998287    ac_cv_prog_ac_ct_OTOOL64="otool64"
    82008288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    98459933    with_gnu_ld=no
    98469934    ;;
    9847   linux* | k*bsd*-gnu | gnu*)
    9848     link_all_deplibs=no
    9849     ;;
    98509935  esac
    98519936
     
    1006910154      ;;
    1007010155
    10071     netbsd* | netbsdelf*-gnu)
     10156    netbsd*)
    1007210157      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    1007310158        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
     
    1024610331          shared_flag="$shared_flag "'${wl}-G'
    1024710332        fi
    10248         link_all_deplibs=no
    1024910333      else
    1025010334        # not using gcc
     
    1070010784      ;;
    1070110785
    10702     netbsd* | netbsdelf*-gnu)
     10786    netbsd*)
    1070310787      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    1070410788        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
     
    1172611810  # assume the GNU/Linux dynamic linker is in use.
    1172711811  dynamic_linker='GNU/Linux ld.so'
    11728   ;;
    11729 
    11730 netbsdelf*-gnu)
    11731   version_type=linux
    11732   need_lib_prefix=no
    11733   need_version=no
    11734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    11735   soname_spec='${libname}${release}${shared_ext}$major'
    11736   shlibpath_var=LD_LIBRARY_PATH
    11737   shlibpath_overrides_runpath=no
    11738   hardcode_into_libs=yes
    11739   dynamic_linker='NetBSD ld.elf_so'
    1174011812  ;;
    1174111813
     
    1457514647        esac
    1457614648        ;;
    14577       netbsd* | netbsdelf*-gnu)
     14649      netbsd*)
    1457814650        ;;
    1457914651      *qnx* | *nto*)
     
    1494615018    esac
    1494715019    ;;
    14948   linux* | k*bsd*-gnu | gnu*)
    14949     link_all_deplibs_CXX=no
    14950     ;;
    1495115020  *)
    1495215021    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     
    1557415643  ;;
    1557515644
    15576 netbsdelf*-gnu)
    15577   version_type=linux
    15578   need_lib_prefix=no
    15579   need_version=no
    15580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    15581   soname_spec='${libname}${release}${shared_ext}$major'
    15582   shlibpath_var=LD_LIBRARY_PATH
    15583   shlibpath_overrides_runpath=no
    15584   hardcode_into_libs=yes
    15585   dynamic_linker='NetBSD ld.elf_so'
    15586   ;;
    15587 
    1558815645netbsd*)
    1558915646  version_type=sunos
     
    1602716084fi
    1602816085
    16029 for ac_header in gmp.h
    16030 do :
    16031   ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
    16032 if test "x$ac_cv_header_gmp_h" = xyes; then :
    16033   cat >>confdefs.h <<_ACEOF
    16034 #define HAVE_GMP_H 1
     16086
     16087
     16088DEFAULT_CHECKING_PATH="/usr /usr/local /sw /opt/local"
     16089
     16090
     16091# Check whether --with-gmp was given.
     16092if test "${with_gmp+set}" = set; then :
     16093  withval=$with_gmp; if test "$withval" = yes ; then
     16094                        GMP_HOME_PATH="${DEFAULT_CHECKING_PATH}"
     16095                 elif test "$withval" != no ; then
     16096                        GMP_HOME_PATH="$withval ${DEFAULT_CHECKING_PATH}"
     16097                fi
     16098else
     16099  GMP_HOME_PATH="${DEFAULT_CHECKING_PATH}"
     16100fi
     16101
     16102
     16103min_gmp_version=3.1.1
     16104
     16105BACKUP_CFLAGS=${CFLAGS}
     16106BACKUP_LIBS=${LIBS}
     16107
     16108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP >= $min_gmp_version" >&5
     16109$as_echo_n "checking for GMP >= $min_gmp_version... " >&6; }
     16110
     16111for GMP_HOME in ${GMP_HOME_PATH}
     16112  do
     16113        if test -r "$GMP_HOME/include/gmp.h"; then
     16114
     16115                if test "x$GMP_HOME" != "x/usr"; then
     16116                        GMP_CFLAGS="-I${GMP_HOME}/include"
     16117                        GMP_LIBS="-L${GMP_HOME}/lib -lgmp"
     16118                else
     16119                        GMP_CFLAGS=
     16120                        GMP_LIBS="-lgmp"
     16121                fi
     16122
     16123                CFLAGS="${CFLAGS} ${GMP_CFLAGS}"
     16124                LIBS="${LIBS} ${GMP_LIBS}"
     16125
     16126                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16127/* end confdefs.h.  */
     16128#include <gmp.h>
     16129int
     16130main ()
     16131{
     16132mpz_t a; mpz_init (a);
     16133  ;
     16134  return 0;
     16135}
    1603516136_ACEOF
    16036 
    16037 fi
    16038 
     16137if ac_fn_c_try_link "$LINENO"; then :
     16138
     16139                        if test "$cross_compiling" = yes; then :
     16140
     16141                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
     16142$as_echo "unknown" >&6; }
     16143                                echo "WARNING: You appear to be cross compiling, so there is no way to determine"
     16144                                echo "whether your GMP version is new enough. I am assuming it is."
     16145
     16146
     16147
     16148$as_echo "#define HAVE_GMP 1" >>confdefs.h
     16149
     16150                                :
     16151                                break
     16152
     16153else
     16154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16155/* end confdefs.h.  */
     16156#include <gmp.h>
     16157                         int main () {  if (__GNU_MP_VERSION < 3) return -1; else return 0; }
     16158
     16159_ACEOF
     16160if ac_fn_c_try_run "$LINENO"; then :
     16161
     16162                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
     16163$as_echo "found" >&6; }
     16164
     16165
     16166
     16167$as_echo "#define HAVE_GMP 1" >>confdefs.h
     16168
     16169                                # See if we are running GMP 4.0
     16170                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GMP is 4.0 or greater" >&5
     16171$as_echo_n "checking whether GMP is 4.0 or greater... " >&6; }
     16172                                if test "$cross_compiling" = yes; then :
     16173
     16174                                                                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     16175$as_echo "no" >&6; }
     16176
     16177else
     16178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16179/* end confdefs.h.  */
     16180#include <gmp.h>
     16181                                int main () { if (__GNU_MP_VERSION < 4) return -1; else return 0; }
     16182
     16183_ACEOF
     16184if ac_fn_c_try_run "$LINENO"; then :
     16185
     16186                                        gmp_found="yes"
     16187                                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     16188$as_echo "yes" >&6; }
     16189                                        GMP_VERSION=""
     16190
     16191
     16192else
     16193
     16194                                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     16195$as_echo "no" >&6; }
     16196
     16197$as_echo "#define GMP_VERSION_3 1" >>confdefs.h
     16198
     16199                                        GMP_VERSION="-DGMP_VERSION_3"
     16200
     16201
     16202fi
     16203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     16204  conftest.$ac_objext conftest.beam conftest.$ac_ext
     16205fi
     16206
     16207                                :
     16208                                break
     16209
     16210else
     16211
     16212                                gmp_problem="$gmp_problem $GMP_HOME"
     16213                                unset GMP_CFLAGS
     16214                                unset GMP_LIBS
     16215
     16216fi
     16217rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     16218  conftest.$ac_objext conftest.beam conftest.$ac_ext
     16219fi
     16220
     16221
     16222else
     16223
     16224                gmp_found="no"
     16225                unset GMP_CFLAGS
     16226                unset GMP_LIBS
     16227
     16228fi
     16229rm -f core conftest.err conftest.$ac_objext \
     16230    conftest$ac_exeext conftest.$ac_ext
     16231
     16232        else
     16233                gmp_found="no"
     16234        fi
    1603916235done
    1604016236
     16237if test "x$gmp_found" != "xyes"; then
     16238        if test -n "$gmp_problem"; then
     16239                { $as_echo "$as_me:${as_lineno-$LINENO}: result: problem" >&5
     16240$as_echo "problem" >&6; }
     16241                echo "Sorry, your GMP version is too old. Disabling."
     16242        elif test "x$gmp_found" != "xno"; then
     16243                { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
     16244$as_echo "not found" >&6; }
     16245        fi
     16246        as_fn_error $? "Unable to find GMP on your machine: please use --with-gmp=PATH_TO_DIR_CONTAINING_LIB_AND_INCLUDE (see also ./configure --help if you do not understand what we are talking about)" "$LINENO" 5
     16247fi
     16248
     16249
     16250CFLAGS=${BACKUP_CFLAGS}
     16251LIBS=${BACKUP_LIBS}
     16252#unset LD_LIBRARY_PATH
     16253
     16254
     16255
     16256
     16257# Check whether --enable-gfanlib was given.
     16258if test "${enable_gfanlib+set}" = set; then :
     16259  enableval=$enable_gfanlib; ENABLE_GFANLIB="yes"
     16260else
     16261  ENABLE_GFANLIB="no"
     16262fi
     16263
     16264
     16265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with gfanlib" >&5
     16266$as_echo_n "checking whether to build with gfanlib... " >&6; }
     16267if test "x$ENABLE_GFANLIB" = xyes; then
     16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     16269$as_echo "yes" >&6; }
     16270else
     16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     16272$as_echo "no" >&6; }
     16273fi
     16274
     16275 if test "x$ENABLE_GFANLIB" = xyes; then
     16276  HAVE_GFANLIB_TRUE=
     16277  HAVE_GFANLIB_FALSE='#'
     16278else
     16279  HAVE_GFANLIB_TRUE='#'
     16280  HAVE_GFANLIB_FALSE=
     16281fi
     16282
     16283
     16284
     16285
     16286# AC_CHECK_HEADERS([gmp.h])
     16287# if test "$ac_cv_header_gmp_h" == no
     16288# then
     16289#       AC_MSG_WARN([Error, gmp.h is missing!])
     16290#       exit 1
     16291# fi
    1604116292for ac_header in setoper.h
    1604216293do :
     
    1605116302done
    1605216303
     16304if test "$ac_cv_header_setoper_h" == no
     16305then
     16306        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Error, setoper.h is missing!" >&5
     16307$as_echo "$as_me: WARNING: Error, setoper.h is missing!" >&2;}
     16308fi
     16309
    1605316310for ac_header in cdd.h
    1605416311do :
     
    1606716324
    1606816325
    16069 if test "$ac_cv_header_gmp_h" == no
    16070 then
    16071         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Error, gmp.h is missing!" >&5
    16072 $as_echo "$as_me: WARNING: Error, gmp.h is missing!" >&2;}
    16073         exit 1
    16074 fi
    16075 
    1607616326if test "$ac_cv_header_cdd_h" == no
    1607716327then
    1607816328        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Error, cdd.h is missing!" >&5
    1607916329$as_echo "$as_me: WARNING: Error, cdd.h is missing!" >&2;}
    16080         exit 1
    16081 fi
    16082 
     16330fi
     16331
     16332if test "x$ENABLE_GFANLIB" = xyes; then
    1608316333if test "$ac_cv_header_setoper_h" == no
    1608416334then
    16085         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Error, setoper.h is missing!" >&5
    16086 $as_echo "$as_me: WARNING: Error, setoper.h is missing!" >&2;}
    1608716335        exit 1
     16336fi
     16337if test "$ac_cv_header_cdd_h" == no
     16338then
     16339        exit 1
     16340fi
    1608816341fi
    1608916342
     
    1631116564Usually this means the macro was only invoked conditionally." "$LINENO" 5
    1631216565fi
     16566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
     16567$as_echo_n "checking that generated files are newer than configure... " >&6; }
     16568   if test -n "$am_sleep_pid"; then
     16569     # Hide warnings about reused PIDs.
     16570     wait $am_sleep_pid 2>/dev/null
     16571   fi
     16572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
     16573$as_echo "done" >&6; }
    1631316574 if test -n "$EXEEXT"; then
    1631416575  am__EXEEXT_TRUE=
     
    1633316594if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
    1633416595  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
     16596Usually this means the macro was only invoked conditionally." "$LINENO" 5
     16597fi
     16598if test -z "${HAVE_GFANLIB_TRUE}" && test -z "${HAVE_GFANLIB_FALSE}"; then
     16599  as_fn_error $? "conditional \"HAVE_GFANLIB\" was never defined.
    1633516600Usually this means the macro was only invoked conditionally." "$LINENO" 5
    1633616601fi
     
    1663716902    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    1663816903    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    16639     # In both cases, we have to default to `cp -p'.
     16904    # In both cases, we have to default to `cp -pR'.
    1664016905    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    16641       as_ln_s='cp -p'
     16906      as_ln_s='cp -pR'
    1664216907  elif ln conf$$.file conf$$ 2>/dev/null; then
    1664316908    as_ln_s=ln
    1664416909  else
    16645     as_ln_s='cp -p'
     16910    as_ln_s='cp -pR'
    1664616911  fi
    1664716912else
    16648   as_ln_s='cp -p'
     16913  as_ln_s='cp -pR'
    1664916914fi
    1665016915rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
     
    1670616971fi
    1670716972
    16708 if test -x / >/dev/null 2>&1; then
    16709   as_test_x='test -x'
    16710 else
    16711   if ls -dL / >/dev/null 2>&1; then
    16712     as_ls_L_option=L
    16713   else
    16714     as_ls_L_option=
    16715   fi
    16716   as_test_x='
    16717     eval sh -c '\''
    16718       if test -d "$1"; then
    16719         test -d "$1/.";
    16720       else
    16721         case $1 in #(
    16722         -*)set "./$1";;
    16723         esac;
    16724         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
    16725         ???[sx]*):;;*)false;;esac;fi
    16726     '\'' sh
    16727   '
    16728 fi
    16729 as_executable_p=$as_test_x
     16973
     16974# as_fn_executable_p FILE
     16975# -----------------------
     16976# Test if FILE is an executable regular file.
     16977as_fn_executable_p ()
     16978{
     16979  test -f "$1" && test -x "$1"
     16980} # as_fn_executable_p
     16981as_test_x='test -x'
     16982as_executable_p=as_fn_executable_p
    1673016983
    1673116984# Sed expression to map a string onto a valid CPP name.
     
    1674917002ac_log="
    1675017003This file was extended by libgfan $as_me 0.1, which was
    16751 generated by GNU Autoconf 2.68.  Invocation command line was
     17004generated by GNU Autoconf 2.69.  Invocation command line was
    1675217005
    1675317006  CONFIG_FILES    = $CONFIG_FILES
     
    1680617059ac_cs_version="\\
    1680717060libgfan config.status 0.1
    16808 configured by $0, generated by GNU Autoconf 2.68,
     17061configured by $0, generated by GNU Autoconf 2.69,
    1680917062  with options \\"\$ac_cs_config\\"
    1681017063
    16811 Copyright (C) 2010 Free Software Foundation, Inc.
     17064Copyright (C) 2012 Free Software Foundation, Inc.
    1681217065This config.status script is free software; the Free Software Foundation
    1681317066gives unlimited permission to copy, distribute and modify it."
     
    1688917142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    1689017143if \$ac_cs_recheck; then
    16891   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
     17144  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
    1689217145  shift
    1689317146  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
     
    1773117984  case $ac_file$ac_mode in
    1773217985    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
    17733   # Autoconf 2.62 quotes --file arguments for eval, but not when files
     17986  # Older Autoconf quotes --file arguments for eval, but not when files
    1773417987  # are listed without --file.  Let's play safe and only enable the eval
    1773517988  # if we detect the quoting.
     
    1774417997    mf=`echo "$mf" | sed -e 's/:.*$//'`
    1774517998    # Check whether this is an Automake generated Makefile or not.
    17746     # We used to match only the files named `Makefile.in', but
     17999    # We used to match only the files named 'Makefile.in', but
    1774718000    # some people rename them; so instead we look at the file content.
    1774818001    # Grep'ing the first line is not enough: some people post-process
     
    1777818031    fi
    1777918032    # Extract the definition of DEPDIR, am__include, and am__quote
    17780     # from the Makefile without running `make'.
     18033    # from the Makefile without running 'make'.
    1778118034    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    1778218035    test -z "$DEPDIR" && continue
     
    1778418037    test -z "am__include" && continue
    1778518038    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
    17786     # When using ansi2knr, U may be empty or an underscore; expand it
    17787     U=`sed -n 's/^U = //p' < "$mf"`
    1778818039    # Find all dependency output files, they are included files with
    1778918040    # $(DEPDIR) in their names.  We invoke sed twice because it is the
     
    1779218043    for file in `sed -n "
    1779318044      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
    17794          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
     18045         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
    1779518046      # Make sure the directory exists.
    1779618047      test -f "$dirpart/$file" && continue
  • gfanlib/configure.ac

    r81384b r5417ff  
    2525# Checks for header files.
    2626AC_HEADER_STDC
    27 AC_CHECK_HEADERS([gmp.h])
     27
     28LB_CHECK_GMP(3.1.1,,AC_MSG_ERROR([Unable to find GMP on your machine: please use --with-gmp=PATH_TO_DIR_CONTAINING_LIB_AND_INCLUDE (see also ./configure --help if you do not understand what we are talking about)]))
     29SING_CHECK_GFANLIB
     30
     31# AC_CHECK_HEADERS([gmp.h])
     32# if test "$ac_cv_header_gmp_h" == no
     33# then
     34#       AC_MSG_WARN([Error, gmp.h is missing!])
     35#       exit 1
     36# fi
    2837AC_CHECK_HEADERS([setoper.h])
     38if test "$ac_cv_header_setoper_h" == no
     39then
     40        AC_MSG_WARN([Error, setoper.h is missing!])
     41fi
     42
    2943AC_CHECK_HEADERS([cdd.h],,,
    3044[
     
    3246])
    3347
    34 if test "$ac_cv_header_gmp_h" == no
    35 then
    36         AC_MSG_WARN([Error, gmp.h is missing!])
    37         exit 1
    38 fi
    39 
    4048if test "$ac_cv_header_cdd_h" == no
    4149then
    4250        AC_MSG_WARN([Error, cdd.h is missing!])
     51fi
     52
     53if test "x$ENABLE_GFANLIB" = xyes; then
     54if test "$ac_cv_header_setoper_h" == no
     55then
    4356        exit 1
    4457fi
    45 
    46 if test "$ac_cv_header_setoper_h" == no
     58if test "$ac_cv_header_cdd_h" == no
    4759then
    48         AC_MSG_WARN([Error, setoper.h is missing!])
    4960        exit 1
     61fi
    5062fi
    5163
  • kernel/test.cc

    r81384b r5417ff  
    105105#include "shiftgb.h"
    106106// #include "mmalloc.h" // move to Singular!?
    107 #include "gfan.h"
    108107
    109108#include "kutil.h"
     
    128127#include "f5lists.h"
    129128////////#include "F5cLists.h"
    130 
    131 #include "gfan.h"
    132129
    133130
     
    619616  PrintLn();
    620617  { char* s = StringEndS(); PrintS(s); omFree(s); }
    621    
     618
    622619  TestGBEngine();
    623620  TestSimpleRingArithmetcs();
Note: See TracChangeset for help on using the changeset viewer.