Changeset 916


Ignore:
Timestamp:
Feb 1, 2007 3:21:06 PM (14 years ago)
Author:
andreasw
Message:

reran autotools with latest coin.m4 in stable; replaced make by $(MAKE); generate libtool in base directory

Location:
stable/1.3
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • stable/1.3/Clp/Makefile.am

    r788 r916  
    7979
    8080test: all
    81         cd test; make test
     81        cd test; $(MAKE) test
    8282
    8383unitTest: test
    8484
    8585clean-local:
    86         if test -r test/Makefile; then cd test; make clean; fi
     86        if test -r test/Makefile; then cd test; $(MAKE) clean; fi
    8787
    8888distclean-local:
    89         if test -r test/Makefile; then cd test; make distclean; fi
     89        if test -r test/Makefile; then cd test; $(MAKE) distclean; fi
    9090
    9191.PHONY: test unitTest
  • stable/1.3/Clp/Makefile.in

    r836 r916  
    191191abs_lib_dir = @abs_lib_dir@
    192192abs_source_dir = @abs_source_dir@
     193ac_c_preproc_warn_flag = @ac_c_preproc_warn_flag@
    193194ac_ct_AR = @ac_ct_AR@
    194195ac_ct_CC = @ac_ct_CC@
     
    197198ac_ct_RANLIB = @ac_ct_RANLIB@
    198199ac_ct_STRIP = @ac_ct_STRIP@
     200ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
    199201am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    200202am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     
    726728
    727729test: all
    728         cd test; make test
     730        cd test; $(MAKE) test
    729731
    730732unitTest: test
    731733
    732734clean-local:
    733         if test -r test/Makefile; then cd test; make clean; fi
     735        if test -r test/Makefile; then cd test; $(MAKE) clean; fi
    734736
    735737distclean-local:
    736         if test -r test/Makefile; then cd test; make distclean; fi
     738        if test -r test/Makefile; then cd test; $(MAKE) distclean; fi
    737739
    738740.PHONY: test unitTest
  • stable/1.3/Clp/configure

    r878 r916  
    473473#endif"
    474474
    475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LT_LDFLAGS RPATH_FLAGS COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
     475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    10781078  --enable-debug-clp compile this project (Clp) with debug options
    10791079  --enable-doscompile     Under Cygwin, compile so that executables run under
    1080                           DOS (default: disabled)
     1080                          DOS. Set to mingw to use gcc/g++/ld with
     1081                          -mno-cygwin. Set to msvc to use cl/link. Default
     1082                          when mentioned: mingw. Default when not mentioned:
     1083                          disabled.
    10811084  --enable-static[=PKGS]
    10821085                          build static libraries [default=no]
     
    16661669# retrieved by svn if they are not there yet.
    16671670# Initialize the ADDLIBS variable
    1668 ADDLIBS='-lm'
     1671ADDLIBS="-lm $LIBS"
    16691672
    16701673
    16711674# Initialize the FADDLIBS variable (which is to be used with a fortran
    16721675# compiler and will not include FLIBS)
    1673 FADDLIBS=
     1676FADDLIBS="$LIBS"
    16741677
    16751678
     
    17861789    fi
    17871790    ;;
    1788 esac
    1789 
    1790 # Check whether --enable-doscompile or --disable-doscompile was given.
     1791 esac
     1792 case $enable_doscompile in
     1793   msvc)
     1794     if test "x${LD+set}" = xset; then :; else
     1795       LD=link
     1796     fi
     1797     ;;
     1798 esac
     1799
     1800
     1801 # Check whether --enable-doscompile or --disable-doscompile was given.
    17911802if test "${enable_doscompile+set}" = set; then
    17921803  enableval="$enable_doscompile"
    1793   if test "$enable_doscompile = yes"; then
    1794   case $build in
    1795     *-cygwin*) ;;
    1796     *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes only sense under Cygwin" >&5
    1797 echo "$as_me: error: --enable-doscompile option makes only sense under Cygwin" >&2;}
     1804  if test "$enable_doscompile" != no; then
     1805     case $build in
     1806       *-cygwin*) ;;
     1807       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
     1808echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
    17981809   { (exit 1); exit 1; }; } ;;
    1799   esac
    1800 fi
     1810     esac
     1811   fi
    18011812else
    18021813  enable_doscompile=no
    18031814fi;
     1815 case "$enable_doscompile" in
     1816   msvc|mingw|no) ;;
     1817   yes) enable_doscompile=mingw ;;
     1818   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
     1819                    Try configure --help=recursive." >&5
     1820echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
     1821                    Try configure --help=recursive." >&2;}
     1822   { (exit 1); exit 1; }; }
     1823      ;;
     1824  esac
     1825  if test "$enable_doscompile" != no ; then
     1826    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
     1827echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
     1828  fi
    18041829
    18051830
     
    18171842if test x"$CXX" != x; then
    18181843  case "$CXX" in
    1819     cl*)
     1844    cl* | */cl* | CL* | */CL*)
    18201845      if test x"$CC" = x; then
    18211846        CC="$CXX"
     
    18351860
    18361861save_cflags="$CFLAGS"
     1862# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
     1863# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
     1864# is likely to be a non-functional shell. But many installations will have
     1865# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
    18371866case $build in
    18381867  *-cygwin* | *-mingw*)
    1839              comps="gcc cl" ;;
     1868             if test "$enable_doscompile" = msvc ; then
     1869               comps="cl"
     1870             else
     1871               comps="gcc cl"
     1872             fi ;;
     1873  sparc-sun-solaris*)
     1874             comps="cc xlc gcc pgcc icc" ;;
    18401875  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
    18411876  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
     
    18431878
    18441879# We delete the cached value, since the test might not have been
    1845 # performed with out choise of compilers earlier
     1880# performed with our choice of compilers earlier
    18461881$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
     1882# AC_MSG_NOTICE([C compiler candidates: $comps])
    18471883ac_ext=c
    18481884ac_cpp='$CPP $CPPFLAGS'
     
    25582594ac_compiler_gnu=$ac_cv_c_compiler_gnu
    25592595
     2596if test -z "$CC" ; then
     2597  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
     2598echo "$as_me: error: Failed to find a C compiler!" >&2;}
     2599   { (exit 1); exit 1; }; }
     2600fi
     2601# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
     2602case "$CC" in
     2603  cl* | */cl* | CL* | */CL* )
     2604    if test "$ac_cv_prog_cc_g" = yes ; then
     2605      ac_cv_prog_cc_g=no
     2606      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
     2607echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
     2608    fi ;;
     2609esac
    25602610CFLAGS="$save_cflags"
    25612611
     
    25842634        coin_dbg_cflags="-g"
    25852635        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
    2586         if test "$enable_doscompile" = yes; then
    2587           case $build in
    2588             *-cygwin*)
    2589               CFLAGS="-mno-cygwin"
    2590               cat >conftest.$ac_ext <<_ACEOF
     2636        case $enable_doscompile in
     2637          mingw)
     2638            CFLAGS="-mno-cygwin"
     2639            cat >conftest.$ac_ext <<_ACEOF
    25912640/* confdefs.h.  */
    25922641_ACEOF
     
    26332682rm -f conftest.err conftest.$ac_objext \
    26342683      conftest$ac_exeext conftest.$ac_ext
    2635               CFLAGS=
    2636             ;;
    2637           esac
    2638         fi
     2684            CFLAGS=
     2685          ;;
     2686        esac
    26392687    esac
    26402688  fi
     
    26432691      *-cygwin* | *-mingw*)
    26442692        case "$CC" in
    2645           cl* | */cl*)
    2646             coin_opt_cflags='-O2'
    2647             coin_add_cflags='-nologo'
    2648             coin_dbg_cflags='-Yd'
     2693          cl* | */cl* | CL* | */CL*)
     2694            coin_opt_cflags='-MT -O2'
     2695            coin_add_cflags='-nologo -wd4996'
     2696            coin_dbg_cflags='-MTd'
    26492697            ;;
    26502698        esac
     
    27912839  fi
    27922840
     2841  # if PM doesn't want the warning messages, take them out
     2842  if test x"$coin_skip_warn_cflags" = xyes; then
     2843    coin_warn_cflags=
     2844  fi
     2845
    27932846  if test x${DBG_CFLAGS+set} != xset; then
    27942847    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
     
    28162869fi
    28172870
    2818 # Check if user wants to have additional CFLAGS options
    2819 
    2820 if test x"$ADD_CFLAGS" != x; then
    2821   CFLAGS="$CFLAGS $ADD_CFLAGS"
    2822 fi
     2871# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
     2872
     2873case "$CFLAGS" in
     2874  *-mno-cygwin*)
     2875    if test x${CPPFLAGS+set} != xset ; then
     2876      CPPFLAGS="-mno-cygwin"
     2877    else
     2878      case "$CPPFLAGS" in
     2879        *-mno-cygwin*)
     2880          ;;
     2881        *)
     2882          CPPFLAGS="$CPPFLAGS -mno-cygwin"
     2883          ;;
     2884      esac
     2885    fi ;;
     2886esac
    28232887
    28242888# Try if CFLAGS works
     
    29383002# Correct ADDLIBS initialization if we are using the MS compiler
    29393003case "$CC" in
    2940   cl*)
     3004  cl* | */cl* | CL* | */CL*)
    29413005    ADDLIBS=
    29423006    case $build in
     
    29463010    fi
    29473011    ;;
    2948 esac
     3012 esac
     3013 case $enable_doscompile in
     3014   msvc)
     3015     if test "x${LD+set}" = xset; then :; else
     3016       LD=link
     3017     fi
     3018     ;;
     3019 esac
    29493020
    29503021    ;;
     
    29763047
    29773048save_cxxflags="$CXXFLAGS"
     3049# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
    29783050case $build in
    29793051  *-cygwin* | *-mingw*)
    2980              comps="g++ cl" ;;
     3052             if test "$enable_doscompile" = msvc ; then
     3053               comps="cl"
     3054             else
     3055               comps="g++ cl"
     3056             fi ;;
     3057  sparc-sun-solaris*)
     3058             comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
    29813059  *-darwin*) comps="g++ c++ CC" ;;
    29823060          *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
     
    29843062
    29853063# We delete the cached value, since the test might not have been
    2986 # performed with out choise of compilers earlier
     3064# performed with our choice of compilers earlier
    29873065$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
     3066# AC_MSG_NOTICE([C++ compiler candidates: $comps])
    29883067ac_ext=cc
    29893068ac_cpp='$CXXCPP $CPPFLAGS'
     
    33413420ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    33423421
     3422if test -z "$CXX" ; then
     3423  { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5
     3424echo "$as_me: error: Failed to find a C++ compiler!" >&2;}
     3425   { (exit 1); exit 1; }; }
     3426fi
     3427
     3428# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
     3429case "$CXX" in
     3430  cl* | */cl* | CL* | */CL* )
     3431    if test "$ac_cv_prog_cxx_g" = yes ; then
     3432      ac_cv_prog_cxx_g=no
     3433      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
     3434echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
     3435    fi ;;
     3436esac
    33433437CXXFLAGS="$save_cxxflags"
    33443438
     
    33693463        coin_dbg_cxxflags="-g"
    33703464        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
    3371         if test "$enable_doscompile" = yes; then
    3372           case $build in
    3373             *-cygwin*)
    3374               CXXFLAGS="-mno-cygwin"
    3375               cat >conftest.$ac_ext <<_ACEOF
     3465        case $enable_doscompile in
     3466          mingw)
     3467            CXXFLAGS="-mno-cygwin"
     3468            cat >conftest.$ac_ext <<_ACEOF
    33763469/* confdefs.h.  */
    33773470_ACEOF
     
    34183511rm -f conftest.err conftest.$ac_objext \
    34193512      conftest$ac_exeext conftest.$ac_ext
    3420               CXXFLAGS=
    3421               ;;
    3422           esac
    3423         fi
     3513            CXXFLAGS=
     3514            ;;
     3515        esac
    34243516    esac
    34253517  fi
     3518
     3519# Note that we do not need to cover GCC in the following tests.
     3520
    34263521  if test -z "$coin_opt_cxxflags"; then
    34273522    case $build in
    34283523      *-cygwin* | *-mingw*)
    34293524        case "$CXX" in
    3430           cl* | */cl*)
    3431             coin_opt_cxxflags='-O2'
    3432             coin_add_cxxflags='-nologo -EHsc -GR -MT'
    3433             coin_dbg_cxxflags='-Yd'
     3525          cl* | */cl* | CL* | */CL*)
     3526            # The MT and MTd options are mutually exclusive
     3527            coin_opt_cxxflags='-MT -O2'
     3528            coin_add_cxxflags='-nologo -EHsc -GR -wd4996'
     3529            coin_dbg_cxxflags='-MTd'
    34343530            ;;
    34353531        esac
     
    35223618  fi
    35233619
     3620# Generic flag settings. If these don't work, add a case above.
     3621
    35243622  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
    35253623    coin_dbg_cxxflags="-g"
     
    35763674  fi
    35773675
     3676  # if PM doesn't want the warning messages, take them out
     3677  if test x"$coin_skip_warn_cxxflags" = xyes; then
     3678    coin_warn_cxxflags=
     3679  fi
     3680
     3681# Do final setup of flags based on values determined above.
     3682
    35783683  if test x${DBG_CXXFLAGS+set} != xset; then
    35793684    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
     
    35913696    CXXFLAGS="$OPT_CXXFLAGS"
    35923697  fi
     3698
     3699# Handle the case where CXXFLAGS was set externally.
    35933700else
    35943701  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
     
    36003707  fi
    36013708fi
     3709
     3710# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
     3711
     3712case "$CXXFLAGS" in
     3713  *-mno-cygwin*)
     3714    if test x${CPPFLAGS+set} != xset ; then
     3715      CPPFLAGS="-mno-cygwin"
     3716    else
     3717      case "$CPPFLAGS" in
     3718        *-mno-cygwin*)
     3719          ;;
     3720        *)
     3721          CPPFLAGS="$CPPFLAGS -mno-cygwin"
     3722          ;;
     3723      esac
     3724    fi ;;
     3725esac
    36023726
    36033727# Try if CXXFLAGS works
     
    37163840
    37173841case "$CXX" in
    3718   cl*)
     3842  cl* | */cl* | CL* | */CL* )
    37193843    case $build in
    37203844  *-mingw*)
     
    37233847    fi
    37243848    ;;
    3725 esac
     3849 esac
     3850 case $enable_doscompile in
     3851   msvc)
     3852     if test "x${LD+set}" = xset; then :; else
     3853       LD=link
     3854     fi
     3855     ;;
     3856 esac
    37263857
    37273858    ;;
     
    37373868
    37383869# Initialize automake and libtool
     3870{
     3871
     3872
     3873
     3874# START
    37393875
    37403876# On Cygwin, building DLLs doesn't work
     
    37893925
    37903926
     3927
     3928# Initialize automake
    37913929echo "$as_me:$LINENO: checking for egrep" >&5
    37923930echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     
    41314269
    41324270
    4133 ac_ext=c
    4134 ac_cpp='$CPP $CPPFLAGS'
    4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    4138 
    4139 if test x"" = x; then
    4140   hdr="#include <dlfcn.h>"
    4141 else
    4142   hdr=""
    4143 fi
    4144 
    4145 for ac_header in dlfcn.h
     4271
     4272
     4273# AC_MSG_NOTICE([Beginning automake initialisation.])
     4274# Stuff for automake
     4275# test to see if srcdir already configured
     4276if test "`cd $srcdir && pwd`" != "`pwd`" &&
     4277   test -f $srcdir/config.status; then
     4278  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
     4279echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
     4280   { (exit 1); exit 1; }; }
     4281fi
     4282
     4283# test whether we have cygpath
     4284if test -z "$CYGPATH_W"; then
     4285  if (cygpath --version) >/dev/null 2>/dev/null; then
     4286    CYGPATH_W='cygpath -w'
     4287  else
     4288    CYGPATH_W=echo
     4289  fi
     4290fi
     4291
     4292
     4293# Define the identity of the package.
     4294 PACKAGE='clp'
     4295 VERSION='0.1'
     4296
     4297
     4298cat >>confdefs.h <<_ACEOF
     4299#define PACKAGE "$PACKAGE"
     4300_ACEOF
     4301
     4302
     4303cat >>confdefs.h <<_ACEOF
     4304#define VERSION "$VERSION"
     4305_ACEOF
     4306
     4307# Some tools Automake needs.
     4308
     4309ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
     4310
     4311
     4312AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
     4313
     4314
     4315AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
     4316
     4317
     4318AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
     4319
     4320
     4321MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
     4322
     4323install_sh=${install_sh-"$am_aux_dir/install-sh"}
     4324
     4325# Installed binaries are usually stripped using `strip' when the user
     4326# run `make install-strip'.  However `strip' might not be the right
     4327# tool to use in cross-compilation environments, therefore Automake
     4328# will honor the `STRIP' environment variable to overrule this program.
     4329if test "$cross_compiling" != no; then
     4330  if test -n "$ac_tool_prefix"; then
     4331  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
     4332set dummy ${ac_tool_prefix}strip; ac_word=$2
     4333echo "$as_me:$LINENO: checking for $ac_word" >&5
     4334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4335if test "${ac_cv_prog_STRIP+set}" = set; then
     4336  echo $ECHO_N "(cached) $ECHO_C" >&6
     4337else
     4338  if test -n "$STRIP"; then
     4339  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
     4340else
     4341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4342for as_dir in $PATH
    41464343do
    4147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    4148 echo "$as_me:$LINENO: checking for $ac_header" >&5
    4149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    4150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4344  IFS=$as_save_IFS
     4345  test -z "$as_dir" && as_dir=.
     4346  for ac_exec_ext in '' $ac_executable_extensions; do
     4347  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4348    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
     4349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4350    break 2
     4351  fi
     4352done
     4353done
     4354
     4355fi
     4356fi
     4357STRIP=$ac_cv_prog_STRIP
     4358if test -n "$STRIP"; then
     4359  echo "$as_me:$LINENO: result: $STRIP" >&5
     4360echo "${ECHO_T}$STRIP" >&6
     4361else
     4362  echo "$as_me:$LINENO: result: no" >&5
     4363echo "${ECHO_T}no" >&6
     4364fi
     4365
     4366fi
     4367if test -z "$ac_cv_prog_STRIP"; then
     4368  ac_ct_STRIP=$STRIP
     4369  # Extract the first word of "strip", so it can be a program name with args.
     4370set dummy strip; ac_word=$2
     4371echo "$as_me:$LINENO: checking for $ac_word" >&5
     4372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4373if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
    41514374  echo $ECHO_N "(cached) $ECHO_C" >&6
    41524375else
    4153   cat >conftest.$ac_ext <<_ACEOF
    4154 /* confdefs.h.  */
    4155 _ACEOF
    4156 cat confdefs.h >>conftest.$ac_ext
    4157 cat >>conftest.$ac_ext <<_ACEOF
    4158 /* end confdefs.h.  */
    4159 $hdr
    4160 
    4161 #include <$ac_header>
    4162 _ACEOF
    4163 rm -f conftest.$ac_objext
    4164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4165   (eval $ac_compile) 2>conftest.er1
    4166   ac_status=$?
    4167   grep -v '^ *+' conftest.er1 >conftest.err
    4168   rm -f conftest.er1
    4169   cat conftest.err >&5
    4170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4171   (exit $ac_status); } &&
    4172          { ac_try='test -z "$ac_c_werror_flag"
    4173                          || test ! -s conftest.err'
    4174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4175   (eval $ac_try) 2>&5
    4176   ac_status=$?
    4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4178   (exit $ac_status); }; } &&
    4179          { ac_try='test -s conftest.$ac_objext'
    4180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4181   (eval $ac_try) 2>&5
    4182   ac_status=$?
    4183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4184   (exit $ac_status); }; }; then
    4185   eval "$as_ac_Header=yes"
    4186 else
    4187   echo "$as_me: failed program was:" >&5
    4188 sed 's/^/| /' conftest.$ac_ext >&5
    4189 
    4190 eval "$as_ac_Header=no"
    4191 fi
    4192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4193 fi
    4194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    4197   cat >>confdefs.h <<_ACEOF
    4198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    4199 _ACEOF
    4200 
    4201 fi
    4202 
     4376  if test -n "$ac_ct_STRIP"; then
     4377  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
     4378else
     4379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4380for as_dir in $PATH
     4381do
     4382  IFS=$as_save_IFS
     4383  test -z "$as_dir" && as_dir=.
     4384  for ac_exec_ext in '' $ac_executable_extensions; do
     4385  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4386    ac_cv_prog_ac_ct_STRIP="strip"
     4387    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4388    break 2
     4389  fi
    42034390done
    4204 
    4205 
    4206 ac_ext=c
    4207 ac_cpp='$CPP $CPPFLAGS'
    4208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    4211 
    4212 
    4213 # Check whether --enable-shared or --disable-shared was given.
     4391done
     4392
     4393  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
     4394fi
     4395fi
     4396ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
     4397if test -n "$ac_ct_STRIP"; then
     4398  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
     4399echo "${ECHO_T}$ac_ct_STRIP" >&6
     4400else
     4401  echo "$as_me:$LINENO: result: no" >&5
     4402echo "${ECHO_T}no" >&6
     4403fi
     4404
     4405  STRIP=$ac_ct_STRIP
     4406else
     4407  STRIP="$ac_cv_prog_STRIP"
     4408fi
     4409
     4410fi
     4411INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
     4412
     4413# We need awk for the "check" target.  The system "awk" is bad on
     4414# some platforms.
     4415# Always define AMTAR for backward compatibility.
     4416
     4417AMTAR=${AMTAR-"${am_missing_run}tar"}
     4418
     4419am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
     4420
     4421
     4422
     4423
     4424depcc="$CC"   am_compiler_list=
     4425
     4426echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
     4427echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
     4428if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
     4429  echo $ECHO_N "(cached) $ECHO_C" >&6
     4430else
     4431  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     4432  # We make a subdir and do the tests there.  Otherwise we can end up
     4433  # making bogus files that we don't know about and never remove.  For
     4434  # instance it was reported that on HP-UX the gcc test will end up
     4435  # making a dummy file named `D' -- because `-MD' means `put the output
     4436  # in D'.
     4437  mkdir conftest.dir
     4438  # Copy depcomp to subdir because otherwise we won't find it if we're
     4439  # using a relative directory.
     4440  cp "$am_depcomp" conftest.dir
     4441  cd conftest.dir
     4442  # We will build objects and dependencies in a subdirectory because
     4443  # it helps to detect inapplicable dependency modes.  For instance
     4444  # both Tru64's cc and ICC support -MD to output dependencies as a
     4445  # side effect of compilation, but ICC will put the dependencies in
     4446  # the current directory while Tru64 will put them in the object
     4447  # directory.
     4448  mkdir sub
     4449
     4450  am_cv_CC_dependencies_compiler_type=none
     4451  if test "$am_compiler_list" = ""; then
     4452     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     4453  fi
     4454  for depmode in $am_compiler_list; do
     4455    # Setup a source with many dependencies, because some compilers
     4456    # like to wrap large dependency lists on column 80 (with \), and
     4457    # we should not choose a depcomp mode which is confused by this.
     4458    #
     4459    # We need to recreate these files for each test, as the compiler may
     4460    # overwrite some of them when testing with obscure command lines.
     4461    # This happens at least with the AIX C compiler.
     4462    : > sub/conftest.c
     4463    for i in 1 2 3 4 5 6; do
     4464      echo '#include "conftst'$i'.h"' >> sub/conftest.c
     4465      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     4466      # Solaris 8's {/usr,}/bin/sh.
     4467      touch sub/conftst$i.h
     4468    done
     4469    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     4470
     4471    case $depmode in
     4472    nosideeffect)
     4473      # after this tag, mechanisms are not by side-effect, so they'll
     4474      # only be used when explicitly requested
     4475      if test "x$enable_dependency_tracking" = xyes; then
     4476        continue
     4477      else
     4478        break
     4479      fi
     4480      ;;
     4481    none) break ;;
     4482    esac
     4483    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     4484    # mode.  It turns out that the SunPro C++ compiler does not properly
     4485    # handle `-M -o', and we need to detect this.
     4486    if depmode=$depmode \
     4487       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
     4488       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
     4489       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
     4490         >/dev/null 2>conftest.err &&
     4491       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
     4492       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     4493       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     4494      # icc doesn't choke on unknown options, it will just issue warnings
     4495      # or remarks (even with -Werror).  So we grep stderr for any message
     4496      # that says an option was ignored or not supported.
     4497      # When given -MP, icc 7.0 and 7.1 complain thusly:
     4498      #   icc: Command line warning: ignoring option '-M'; no argument required
     4499      # The diagnosis changed in icc 8.0:
     4500      #   icc: Command line remark: option '-MP' not supported
     4501      if (grep 'ignoring option' conftest.err ||
     4502          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
     4503        am_cv_CC_dependencies_compiler_type=$depmode
     4504        break
     4505      fi
     4506    fi
     4507  done
     4508
     4509  cd ..
     4510  rm -rf conftest.dir
     4511else
     4512  am_cv_CC_dependencies_compiler_type=none
     4513fi
     4514
     4515fi
     4516echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
     4517echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
     4518CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
     4519
     4520
     4521
     4522if
     4523  test "x$enable_dependency_tracking" != xno \
     4524  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
     4525  am__fastdepCC_TRUE=
     4526  am__fastdepCC_FALSE='#'
     4527else
     4528  am__fastdepCC_TRUE='#'
     4529  am__fastdepCC_FALSE=
     4530fi
     4531
     4532
     4533depcc="$CXX"  am_compiler_list=
     4534
     4535echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
     4536echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
     4537if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
     4538  echo $ECHO_N "(cached) $ECHO_C" >&6
     4539else
     4540  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     4541  # We make a subdir and do the tests there.  Otherwise we can end up
     4542  # making bogus files that we don't know about and never remove.  For
     4543  # instance it was reported that on HP-UX the gcc test will end up
     4544  # making a dummy file named `D' -- because `-MD' means `put the output
     4545  # in D'.
     4546  mkdir conftest.dir
     4547  # Copy depcomp to subdir because otherwise we won't find it if we're
     4548  # using a relative directory.
     4549  cp "$am_depcomp" conftest.dir
     4550  cd conftest.dir
     4551  # We will build objects and dependencies in a subdirectory because
     4552  # it helps to detect inapplicable dependency modes.  For instance
     4553  # both Tru64's cc and ICC support -MD to output dependencies as a
     4554  # side effect of compilation, but ICC will put the dependencies in
     4555  # the current directory while Tru64 will put them in the object
     4556  # directory.
     4557  mkdir sub
     4558
     4559  am_cv_CXX_dependencies_compiler_type=none
     4560  if test "$am_compiler_list" = ""; then
     4561     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     4562  fi
     4563  for depmode in $am_compiler_list; do
     4564    # Setup a source with many dependencies, because some compilers
     4565    # like to wrap large dependency lists on column 80 (with \), and
     4566    # we should not choose a depcomp mode which is confused by this.
     4567    #
     4568    # We need to recreate these files for each test, as the compiler may
     4569    # overwrite some of them when testing with obscure command lines.
     4570    # This happens at least with the AIX C compiler.
     4571    : > sub/conftest.c
     4572    for i in 1 2 3 4 5 6; do
     4573      echo '#include "conftst'$i'.h"' >> sub/conftest.c
     4574      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     4575      # Solaris 8's {/usr,}/bin/sh.
     4576      touch sub/conftst$i.h
     4577    done
     4578    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     4579
     4580    case $depmode in
     4581    nosideeffect)
     4582      # after this tag, mechanisms are not by side-effect, so they'll
     4583      # only be used when explicitly requested
     4584      if test "x$enable_dependency_tracking" = xyes; then
     4585        continue
     4586      else
     4587        break
     4588      fi
     4589      ;;
     4590    none) break ;;
     4591    esac
     4592    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     4593    # mode.  It turns out that the SunPro C++ compiler does not properly
     4594    # handle `-M -o', and we need to detect this.
     4595    if depmode=$depmode \
     4596       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
     4597       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
     4598       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
     4599         >/dev/null 2>conftest.err &&
     4600       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
     4601       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     4602       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     4603      # icc doesn't choke on unknown options, it will just issue warnings
     4604      # or remarks (even with -Werror).  So we grep stderr for any message
     4605      # that says an option was ignored or not supported.
     4606      # When given -MP, icc 7.0 and 7.1 complain thusly:
     4607      #   icc: Command line warning: ignoring option '-M'; no argument required
     4608      # The diagnosis changed in icc 8.0:
     4609      #   icc: Command line remark: option '-MP' not supported
     4610      if (grep 'ignoring option' conftest.err ||
     4611          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
     4612        am_cv_CXX_dependencies_compiler_type=$depmode
     4613        break
     4614      fi
     4615    fi
     4616  done
     4617
     4618  cd ..
     4619  rm -rf conftest.dir
     4620else
     4621  am_cv_CXX_dependencies_compiler_type=none
     4622fi
     4623
     4624fi
     4625echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
     4626echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
     4627CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
     4628
     4629
     4630
     4631if
     4632  test "x$enable_dependency_tracking" != xno \
     4633  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
     4634  am__fastdepCXX_TRUE=
     4635  am__fastdepCXX_FALSE='#'
     4636else
     4637  am__fastdepCXX_TRUE='#'
     4638  am__fastdepCXX_FALSE=
     4639fi
     4640
     4641
     4642
     4643echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
     4644echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
     4645    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
     4646if test "${enable_maintainer_mode+set}" = set; then
     4647  enableval="$enable_maintainer_mode"
     4648  USE_MAINTAINER_MODE=$enableval
     4649else
     4650  USE_MAINTAINER_MODE=no
     4651fi;
     4652  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
     4653echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
     4654
     4655
     4656if test $USE_MAINTAINER_MODE = yes; then
     4657  MAINTAINER_MODE_TRUE=
     4658  MAINTAINER_MODE_FALSE='#'
     4659else
     4660  MAINTAINER_MODE_TRUE='#'
     4661  MAINTAINER_MODE_FALSE=
     4662fi
     4663
     4664  MAINT=$MAINTAINER_MODE_TRUE
     4665
     4666
     4667
     4668coin_have_externals=no
     4669if test "$enable_maintainer_mode" = yes; then
     4670
     4671  # If maintainer mode is chosen, we make sure that the correct versions
     4672  # of the tools are used, and that we know where libtool.m4 is (to
     4673  # recreate acinclude.m4)
     4674
     4675
     4676  LIBTOOLM4=
     4677  # Normally, $HOME
     4678  AUTOTOOLS_DFLT=$HOME
     4679
     4680  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
     4681echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
     4682if test "${ac_cv_use_correct_autotools+set}" = set; then
     4683  echo $ECHO_N "(cached) $ECHO_C" >&6
     4684else
     4685  ac_cv_use_correct_autotools=check
     4686fi
     4687echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
     4688echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
     4689
     4690  if test $ac_cv_use_correct_autotools = check; then
     4691    ac_cv_use_correct_autotools=yes
     4692    # Check if we have autoconf
     4693    # Extract the first word of "autoconf", so it can be a program name with args.
     4694set dummy autoconf; ac_word=$2
     4695echo "$as_me:$LINENO: checking for $ac_word" >&5
     4696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4697if test "${ac_cv_prog_have_autoconf+set}" = set; then
     4698  echo $ECHO_N "(cached) $ECHO_C" >&6
     4699else
     4700  if test -n "$have_autoconf"; then
     4701  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
     4702else
     4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4704for as_dir in $PATH
     4705do
     4706  IFS=$as_save_IFS
     4707  test -z "$as_dir" && as_dir=.
     4708  for ac_exec_ext in '' $ac_executable_extensions; do
     4709  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4710    ac_cv_prog_have_autoconf="yes"
     4711    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4712    break 2
     4713  fi
     4714done
     4715done
     4716
     4717  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
     4718fi
     4719fi
     4720have_autoconf=$ac_cv_prog_have_autoconf
     4721if test -n "$have_autoconf"; then
     4722  echo "$as_me:$LINENO: result: $have_autoconf" >&5
     4723echo "${ECHO_T}$have_autoconf" >&6
     4724else
     4725  echo "$as_me:$LINENO: result: no" >&5
     4726echo "${ECHO_T}no" >&6
     4727fi
     4728
     4729    if test $have_autoconf = no; then
     4730      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
     4731echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
     4732   { (exit 1); exit 1; }; }
     4733    fi
     4734
     4735    # Check whether autoconf is the correct version
     4736    correct_version='2.59'
     4737    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
     4738    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
     4739echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
     4740    autoconf --version > confauto.out 2>&1
     4741    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
     4742      echo "$as_me:$LINENO: result: yes" >&5
     4743echo "${ECHO_T}yes" >&6
     4744    else
     4745      rm -f confauto.out
     4746      echo "$as_me:$LINENO: result: no" >&5
     4747echo "${ECHO_T}no" >&6
     4748      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
     4749echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
     4750   { (exit 1); exit 1; }; }
     4751    fi
     4752    rm -f confauto.out
     4753
     4754    # Check if the executable autoconf is picked up from the correct location
     4755    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
     4756echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
     4757    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
     4758    autoconf_dir=`cd $autoconf_dir; pwd`
     4759    if test x$AUTOTOOLS_DIR = x; then
     4760      want_dir=$AUTOTOOLS_DFLT/bin
     4761    else
     4762      want_dir=$AUTOTOOLS_DIR/bin
     4763    fi
     4764    if test $autoconf_dir = `cd $want_dir; pwd`; then
     4765      echo "$as_me:$LINENO: result: yes" >&5
     4766echo "${ECHO_T}yes" >&6
     4767    else
     4768      rm -f confauto.out
     4769      echo "$as_me:$LINENO: result: no" >&5
     4770echo "${ECHO_T}no" >&6
     4771      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
     4772echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
     4773   { (exit 1); exit 1; }; }
     4774    fi
     4775
     4776    # Check if we have automake
     4777    # Extract the first word of "automake", so it can be a program name with args.
     4778set dummy automake; ac_word=$2
     4779echo "$as_me:$LINENO: checking for $ac_word" >&5
     4780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4781if test "${ac_cv_prog_have_automake+set}" = set; then
     4782  echo $ECHO_N "(cached) $ECHO_C" >&6
     4783else
     4784  if test -n "$have_automake"; then
     4785  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
     4786else
     4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4788for as_dir in $PATH
     4789do
     4790  IFS=$as_save_IFS
     4791  test -z "$as_dir" && as_dir=.
     4792  for ac_exec_ext in '' $ac_executable_extensions; do
     4793  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4794    ac_cv_prog_have_automake="yes"
     4795    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4796    break 2
     4797  fi
     4798done
     4799done
     4800
     4801  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
     4802fi
     4803fi
     4804have_automake=$ac_cv_prog_have_automake
     4805if test -n "$have_automake"; then
     4806  echo "$as_me:$LINENO: result: $have_automake" >&5
     4807echo "${ECHO_T}$have_automake" >&6
     4808else
     4809  echo "$as_me:$LINENO: result: no" >&5
     4810echo "${ECHO_T}no" >&6
     4811fi
     4812
     4813    if test $have_automake = no; then
     4814      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
     4815echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
     4816   { (exit 1); exit 1; }; }
     4817    fi
     4818
     4819    # Check whether automake is the correct version
     4820    correct_version='1.9.6'
     4821    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
     4822    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
     4823echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
     4824    automake --version > confauto.out 2>&1
     4825    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
     4826      echo "$as_me:$LINENO: result: yes" >&5
     4827echo "${ECHO_T}yes" >&6
     4828    else
     4829      rm -f confauto.out
     4830      echo "$as_me:$LINENO: result: no" >&5
     4831echo "${ECHO_T}no" >&6
     4832      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
     4833echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
     4834   { (exit 1); exit 1; }; }
     4835    fi
     4836    rm -f confauto.out
     4837
     4838    # Check if the executable automake is picked up from the correct location
     4839    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
     4840echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
     4841    automake_dir=`which automake | sed -e 's=/automake=='`
     4842    automake_dir=`cd $automake_dir; pwd`
     4843    if test x$AUTOTOOLS_DIR = x; then
     4844      want_dir=$AUTOTOOLS_DFLT/bin
     4845    else
     4846      want_dir=$AUTOTOOLS_DIR/bin
     4847    fi
     4848    if test $automake_dir = `cd $want_dir; pwd`; then
     4849      echo "$as_me:$LINENO: result: yes" >&5
     4850echo "${ECHO_T}yes" >&6
     4851    else
     4852      rm -f confauto.out
     4853      echo "$as_me:$LINENO: result: no" >&5
     4854echo "${ECHO_T}no" >&6
     4855      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
     4856echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
     4857   { (exit 1); exit 1; }; }
     4858    fi
     4859
     4860    # Check if this is the correct version of libtool (with escaped dots)
     4861    if test x$AUTOTOOLS_DIR = x; then
     4862      want_dir=$AUTOTOOLS_DFLT/share
     4863    else
     4864      want_dir=$AUTOTOOLS_DIR/share
     4865    fi
     4866    correct_version='1.5.22'
     4867    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
     4868    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
     4869echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
     4870echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
     4871if eval "test \"\${$as_ac_File+set}\" = set"; then
     4872  echo $ECHO_N "(cached) $ECHO_C" >&6
     4873else
     4874  test "$cross_compiling" = yes &&
     4875  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
     4876echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
     4877   { (exit 1); exit 1; }; }
     4878if test -r "$want_dir/libtool/ltmain.sh"; then
     4879  eval "$as_ac_File=yes"
     4880else
     4881  eval "$as_ac_File=no"
     4882fi
     4883fi
     4884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
     4885echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
     4886if test `eval echo '${'$as_ac_File'}'` = yes; then
     4887  have_ltmain=yes
     4888else
     4889  have_ltmain=no
     4890fi
     4891
     4892    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
     4893echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
     4894    if test $have_ltmain = yes; then
     4895    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
     4896        echo "$as_me:$LINENO: result: yes" >&5
     4897echo "${ECHO_T}yes" >&6
     4898      else
     4899        echo "$as_me:$LINENO: result: no" >&5
     4900echo "${ECHO_T}no" >&6
     4901        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
     4902echo "$as_me: error: You don't have the correct version of libtool." >&2;}
     4903   { (exit 1); exit 1; }; }
     4904      fi
     4905    else
     4906      echo "$as_me:$LINENO: result: no" >&5
     4907echo "${ECHO_T}no" >&6
     4908      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
     4909echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
     4910   { (exit 1); exit 1; }; }
     4911    fi
     4912  fi
     4913
     4914  # Check if we can find the libtool file
     4915  if test x$AUTOTOOLS_DIR = x; then
     4916    want_dir=$AUTOTOOLS_DFLT/share
     4917  else
     4918    want_dir=$AUTOTOOLS_DIR/share
     4919  fi
     4920  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
     4921echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
     4922echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
     4923if eval "test \"\${$as_ac_File+set}\" = set"; then
     4924  echo $ECHO_N "(cached) $ECHO_C" >&6
     4925else
     4926  test "$cross_compiling" = yes &&
     4927  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
     4928echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
     4929   { (exit 1); exit 1; }; }
     4930if test -r "$want_dir/aclocal/libtool.m4"; then
     4931  eval "$as_ac_File=yes"
     4932else
     4933  eval "$as_ac_File=no"
     4934fi
     4935fi
     4936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
     4937echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
     4938if test `eval echo '${'$as_ac_File'}'` = yes; then
     4939  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
     4940else
     4941  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
     4942echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
     4943   { (exit 1); exit 1; }; }
     4944fi
     4945
     4946
     4947  # Check if we have an Externals file
     4948  if test -r $srcdir/Externals; then
     4949    coin_have_externals=yes
     4950  fi
     4951  # Check if subversion is installed and understands https
     4952  # Extract the first word of "svn", so it can be a program name with args.
     4953set dummy svn; ac_word=$2
     4954echo "$as_me:$LINENO: checking for $ac_word" >&5
     4955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     4956if test "${ac_cv_prog_have_svn+set}" = set; then
     4957  echo $ECHO_N "(cached) $ECHO_C" >&6
     4958else
     4959  if test -n "$have_svn"; then
     4960  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
     4961else
     4962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     4963for as_dir in $PATH
     4964do
     4965  IFS=$as_save_IFS
     4966  test -z "$as_dir" && as_dir=.
     4967  for ac_exec_ext in '' $ac_executable_extensions; do
     4968  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     4969    ac_cv_prog_have_svn="yes"
     4970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     4971    break 2
     4972  fi
     4973done
     4974done
     4975
     4976  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
     4977fi
     4978fi
     4979have_svn=$ac_cv_prog_have_svn
     4980if test -n "$have_svn"; then
     4981  echo "$as_me:$LINENO: result: $have_svn" >&5
     4982echo "${ECHO_T}$have_svn" >&6
     4983else
     4984  echo "$as_me:$LINENO: result: no" >&5
     4985echo "${ECHO_T}no" >&6
     4986fi
     4987
     4988  if test x$have_svn = xyes; then
     4989    echo "$as_me:$LINENO: checking whether svn understands https" >&5
     4990echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
     4991if test "${ac_cv_svn_understands_https+set}" = set; then
     4992  echo $ECHO_N "(cached) $ECHO_C" >&6
     4993else
     4994  svn --version > confauto.out 2>&1
     4995                    if $EGREP https confauto.out >/dev/null 2>&1; then
     4996                      ac_cv_svn_understands_https=yes
     4997                    else
     4998                      ac_cv_svn_understands_https=no
     4999                      have_svn=no
     5000                      ac_cv_prog_have_svn=no
     5001                    fi
     5002                    rm -f confauto.out
     5003fi
     5004echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
     5005echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
     5006  fi
     5007
     5008  # Find the location of the BuildTools directory
     5009  BUILDTOOLSDIR=
     5010  if test -r $srcdir/BuildTools/coin.m4; then
     5011    BUILDTOOLSDIR=$srcdir/BuildTools
     5012  else
     5013    if test -r $srcdir/../BuildTools/coin.m4; then
     5014      BUILDTOOLSDIR=$srcdir/../BuildTools
     5015    else
     5016      if test -r $srcdir/../../BuildTools/coin.m4; then
     5017        BUILDTOOLSDIR=$srcdir/../../BuildTools
     5018      else
     5019        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
     5020echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
     5021   { (exit 1); exit 1; }; }
     5022      fi
     5023    fi
     5024  fi
     5025
     5026
     5027  # The following variable is set to the name of the directory where
     5028  # the autotool scripts are located
     5029
     5030  AUX_DIR=$ac_aux_dir
     5031fi
     5032
     5033# helpful variable for the base directory of this package
     5034abs_source_dir=`cd $srcdir; pwd`
     5035
     5036
     5037# Stuff for example Makefiles
     5038if test x$prefix = xNONE; then
     5039  full_prefix=$ac_default_prefix
     5040else
     5041  full_prefix=$prefix
     5042fi
     5043full_prefix=`cd $full_prefix ; pwd`
     5044
     5045abs_lib_dir=$full_prefix/lib
     5046
     5047abs_include_dir=$full_prefix/include
     5048
     5049abs_bin_dir=$full_prefix/bin
     5050
     5051
     5052
     5053if test $coin_have_externals = yes && test x$have_svn = xyes; then
     5054  HAVE_EXTERNALS_TRUE=
     5055  HAVE_EXTERNALS_FALSE='#'
     5056else
     5057  HAVE_EXTERNALS_TRUE='#'
     5058  HAVE_EXTERNALS_FALSE=
     5059fi
     5060
     5061
     5062# AC_MSG_NOTICE([End automake initialisation.])
     5063
     5064
     5065
     5066unset ac_cv_file__________libtool
     5067unset ac_cv_file_______libtool
     5068unset ac_cv_file____libtool
     5069
     5070LIBTOOL=
     5071echo "$as_me:$LINENO: checking for ../libtool" >&5
     5072echo $ECHO_N "checking for ../libtool... $ECHO_C" >&6
     5073if test "${ac_cv_file____libtool+set}" = set; then
     5074  echo $ECHO_N "(cached) $ECHO_C" >&6
     5075else
     5076  test "$cross_compiling" = yes &&
     5077  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
     5078echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
     5079   { (exit 1); exit 1; }; }
     5080if test -r "../libtool"; then
     5081  ac_cv_file____libtool=yes
     5082else
     5083  ac_cv_file____libtool=no
     5084fi
     5085fi
     5086echo "$as_me:$LINENO: result: $ac_cv_file____libtool" >&5
     5087echo "${ECHO_T}$ac_cv_file____libtool" >&6
     5088if test $ac_cv_file____libtool = yes; then
     5089  coin_config_dir=..
     5090               LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
     5091fi
     5092
     5093if test "x$LIBTOOL" = x; then
     5094  echo "$as_me:$LINENO: checking for ../../libtool" >&5
     5095echo $ECHO_N "checking for ../../libtool... $ECHO_C" >&6
     5096if test "${ac_cv_file_______libtool+set}" = set; then
     5097  echo $ECHO_N "(cached) $ECHO_C" >&6
     5098else
     5099  test "$cross_compiling" = yes &&
     5100  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
     5101echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
     5102   { (exit 1); exit 1; }; }
     5103if test -r "../../libtool"; then
     5104  ac_cv_file_______libtool=yes
     5105else
     5106  ac_cv_file_______libtool=no
     5107fi
     5108fi
     5109echo "$as_me:$LINENO: result: $ac_cv_file_______libtool" >&5
     5110echo "${ECHO_T}$ac_cv_file_______libtool" >&6
     5111if test $ac_cv_file_______libtool = yes; then
     5112  coin_config_dir=../..
     5113                 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
     5114fi
     5115
     5116fi
     5117# if test "x$LIBTOOL" = x; then
     5118#   AC_CHECK_FILE([../../../libtool],
     5119#                 [coin_config_dir=../../..
     5120#                  LIBTOOL='$(SHELL) $(top_builddir)/../../../libtool'])
     5121# fi
     5122
     5123if test "x$LIBTOOL" = x; then
     5124# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
     5125  # Stuff for libtool
     5126  # Check whether --enable-shared or --disable-shared was given.
    42145127if test "${enable_shared+set}" = set; then
    42155128  enableval="$enable_shared"
     
    47595672*-*-irix6*)
    47605673  # Find out which ABI we are using.
    4761   echo '#line 4761 "configure"' > conftest.$ac_ext
     5674  echo '#line 5674 "configure"' > conftest.$ac_ext
    47625675  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    47635676  (eval $ac_compile) 2>&5
     
    58936806
    58946807# Provide some information about the compiler.
    5895 echo "$as_me:5895:" \
     6808echo "$as_me:6808:" \
    58966809     "checking for Fortran 77 compiler version" >&5
    58976810ac_compiler=`set X $ac_compile; echo $2`
     
    69607873   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    69617874   -e 's:$: $lt_compiler_flag:'`
    6962    (eval echo "\"\$as_me:6962: $lt_compile\"" >&5)
     7875   (eval echo "\"\$as_me:7875: $lt_compile\"" >&5)
    69637876   (eval "$lt_compile" 2>conftest.err)
    69647877   ac_status=$?
    69657878   cat conftest.err >&5
    6966    echo "$as_me:6966: \$? = $ac_status" >&5
     7879   echo "$as_me:7879: \$? = $ac_status" >&5
    69677880   if (exit $ac_status) && test -s "$ac_outfile"; then
    69687881     # The compiler can only warn and ignore the option if not recognized
     
    72288141   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    72298142   -e 's:$: $lt_compiler_flag:'`
    7230    (eval echo "\"\$as_me:7230: $lt_compile\"" >&5)
     8143   (eval echo "\"\$as_me:8143: $lt_compile\"" >&5)
    72318144   (eval "$lt_compile" 2>conftest.err)
    72328145   ac_status=$?
    72338146   cat conftest.err >&5
    7234    echo "$as_me:7234: \$? = $ac_status" >&5
     8147   echo "$as_me:8147: \$? = $ac_status" >&5
    72358148   if (exit $ac_status) && test -s "$ac_outfile"; then
    72368149     # The compiler can only warn and ignore the option if not recognized
     
    73328245   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    73338246   -e 's:$: $lt_compiler_flag:'`
    7334    (eval echo "\"\$as_me:7334: $lt_compile\"" >&5)
     8247   (eval echo "\"\$as_me:8247: $lt_compile\"" >&5)
    73358248   (eval "$lt_compile" 2>out/conftest.err)
    73368249   ac_status=$?
    73378250   cat out/conftest.err >&5
    7338    echo "$as_me:7338: \$? = $ac_status" >&5
     8251   echo "$as_me:8251: \$? = $ac_status" >&5
    73398252   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    73408253   then
     
    967710590  lt_status=$lt_dlunknown
    967810591  cat > conftest.$ac_ext <<EOF
    9679 #line 9679 "configure"
     10592#line 10592 "configure"
    968010593#include "confdefs.h"
    968110594
     
    977710690  lt_status=$lt_dlunknown
    977810691  cat > conftest.$ac_ext <<EOF
    9779 #line 9779 "configure"
     10692#line 10692 "configure"
    978010693#include "confdefs.h"
    978110694
     
    1212113034   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1212213035   -e 's:$: $lt_compiler_flag:'`
    12123    (eval echo "\"\$as_me:12123: $lt_compile\"" >&5)
     13036   (eval echo "\"\$as_me:13036: $lt_compile\"" >&5)
    1212413037   (eval "$lt_compile" 2>conftest.err)
    1212513038   ac_status=$?
    1212613039   cat conftest.err >&5
    12127    echo "$as_me:12127: \$? = $ac_status" >&5
     13040   echo "$as_me:13040: \$? = $ac_status" >&5
    1212813041   if (exit $ac_status) && test -s "$ac_outfile"; then
    1212913042     # The compiler can only warn and ignore the option if not recognized
     
    1222513138   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1222613139   -e 's:$: $lt_compiler_flag:'`
    12227    (eval echo "\"\$as_me:12227: $lt_compile\"" >&5)
     13140   (eval echo "\"\$as_me:13140: $lt_compile\"" >&5)
    1222813141   (eval "$lt_compile" 2>out/conftest.err)
    1222913142   ac_status=$?
    1223013143   cat out/conftest.err >&5
    12231    echo "$as_me:12231: \$? = $ac_status" >&5
     13144   echo "$as_me:13144: \$? = $ac_status" >&5
    1223213145   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1223313146   then
     
    1379514708   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1379614709   -e 's:$: $lt_compiler_flag:'`
    13797    (eval echo "\"\$as_me:13797: $lt_compile\"" >&5)
     14710   (eval echo "\"\$as_me:14710: $lt_compile\"" >&5)
    1379814711   (eval "$lt_compile" 2>conftest.err)
    1379914712   ac_status=$?
    1380014713   cat conftest.err >&5
    13801    echo "$as_me:13801: \$? = $ac_status" >&5
     14714   echo "$as_me:14714: \$? = $ac_status" >&5
    1380214715   if (exit $ac_status) && test -s "$ac_outfile"; then
    1380314716     # The compiler can only warn and ignore the option if not recognized
     
    1389914812   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1390014813   -e 's:$: $lt_compiler_flag:'`
    13901    (eval echo "\"\$as_me:13901: $lt_compile\"" >&5)
     14814   (eval echo "\"\$as_me:14814: $lt_compile\"" >&5)
    1390214815   (eval "$lt_compile" 2>out/conftest.err)
    1390314816   ac_status=$?
    1390414817   cat out/conftest.err >&5
    13905    echo "$as_me:13905: \$? = $ac_status" >&5
     14818   echo "$as_me:14818: \$? = $ac_status" >&5
    1390614819   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1390714820   then
     
    1610617019   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1610717020   -e 's:$: $lt_compiler_flag:'`
    16108    (eval echo "\"\$as_me:16108: $lt_compile\"" >&5)
     17021   (eval echo "\"\$as_me:17021: $lt_compile\"" >&5)
    1610917022   (eval "$lt_compile" 2>conftest.err)
    1611017023   ac_status=$?
    1611117024   cat conftest.err >&5
    16112    echo "$as_me:16112: \$? = $ac_status" >&5
     17025   echo "$as_me:17025: \$? = $ac_status" >&5
    1611317026   if (exit $ac_status) && test -s "$ac_outfile"; then
    1611417027     # The compiler can only warn and ignore the option if not recognized
     
    1637417287   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1637517288   -e 's:$: $lt_compiler_flag:'`
    16376    (eval echo "\"\$as_me:16376: $lt_compile\"" >&5)
     17289   (eval echo "\"\$as_me:17289: $lt_compile\"" >&5)
    1637717290   (eval "$lt_compile" 2>conftest.err)
    1637817291   ac_status=$?
    1637917292   cat conftest.err >&5
    16380    echo "$as_me:16380: \$? = $ac_status" >&5
     17293   echo "$as_me:17293: \$? = $ac_status" >&5
    1638117294   if (exit $ac_status) && test -s "$ac_outfile"; then
    1638217295     # The compiler can only warn and ignore the option if not recognized
     
    1647817391   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1647917392   -e 's:$: $lt_compiler_flag:'`
    16480    (eval echo "\"\$as_me:16480: $lt_compile\"" >&5)
     17393   (eval echo "\"\$as_me:17393: $lt_compile\"" >&5)
    1648117394   (eval "$lt_compile" 2>out/conftest.err)
    1648217395   ac_status=$?
    1648317396   cat out/conftest.err >&5
    16484    echo "$as_me:16484: \$? = $ac_status" >&5
     17397   echo "$as_me:17397: \$? = $ac_status" >&5
    1648517398   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1648617399   then
     
    1913620049
    1913720050
    19138 
    19139 
    19140 
    19141 
    19142 
    19143 # Initialize automake
    19144 
    19145 # Stuff for automake
    19146 # test to see if srcdir already configured
    19147 if test "`cd $srcdir && pwd`" != "`pwd`" &&
    19148    test -f $srcdir/config.status; then
    19149   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
    19150 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
    19151    { (exit 1); exit 1; }; }
    19152 fi
    19153 
    19154 # test whether we have cygpath
    19155 if test -z "$CYGPATH_W"; then
    19156   if (cygpath --version) >/dev/null 2>/dev/null; then
    19157     CYGPATH_W='cygpath -w'
    19158   else
    19159     CYGPATH_W=echo
    19160   fi
    19161 fi
    19162 
    19163 
    19164 # Define the identity of the package.
    19165  PACKAGE='clp'
    19166  VERSION='0.1'
    19167 
    19168 
    19169 cat >>confdefs.h <<_ACEOF
    19170 #define PACKAGE "$PACKAGE"
    19171 _ACEOF
    19172 
    19173 
    19174 cat >>confdefs.h <<_ACEOF
    19175 #define VERSION "$VERSION"
    19176 _ACEOF
    19177 
    19178 # Some tools Automake needs.
    19179 
    19180 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
    19181 
    19182 
    19183 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
    19184 
    19185 
    19186 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
    19187 
    19188 
    19189 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
    19190 
    19191 
    19192 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
    19193 
    19194 install_sh=${install_sh-"$am_aux_dir/install-sh"}
    19195 
    19196 # Installed binaries are usually stripped using `strip' when the user
    19197 # run `make install-strip'.  However `strip' might not be the right
    19198 # tool to use in cross-compilation environments, therefore Automake
    19199 # will honor the `STRIP' environment variable to overrule this program.
    19200 if test "$cross_compiling" != no; then
    19201   if test -n "$ac_tool_prefix"; then
    19202   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
    19203 set dummy ${ac_tool_prefix}strip; ac_word=$2
    19204 echo "$as_me:$LINENO: checking for $ac_word" >&5
    19205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    19206 if test "${ac_cv_prog_STRIP+set}" = set; then
    19207   echo $ECHO_N "(cached) $ECHO_C" >&6
    19208 else
    19209   if test -n "$STRIP"; then
    19210   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
    19211 else
    19212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    19213 for as_dir in $PATH
    19214 do
    19215   IFS=$as_save_IFS
    19216   test -z "$as_dir" && as_dir=.
    19217   for ac_exec_ext in '' $ac_executable_extensions; do
    19218   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    19219     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    19220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    19221     break 2
    19222   fi
    19223 done
    19224 done
    19225 
    19226 fi
    19227 fi
    19228 STRIP=$ac_cv_prog_STRIP
    19229 if test -n "$STRIP"; then
    19230   echo "$as_me:$LINENO: result: $STRIP" >&5
    19231 echo "${ECHO_T}$STRIP" >&6
    19232 else
    19233   echo "$as_me:$LINENO: result: no" >&5
    19234 echo "${ECHO_T}no" >&6
    19235 fi
    19236 
    19237 fi
    19238 if test -z "$ac_cv_prog_STRIP"; then
    19239   ac_ct_STRIP=$STRIP
    19240   # Extract the first word of "strip", so it can be a program name with args.
    19241 set dummy strip; ac_word=$2
    19242 echo "$as_me:$LINENO: checking for $ac_word" >&5
    19243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    19244 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
    19245   echo $ECHO_N "(cached) $ECHO_C" >&6
    19246 else
    19247   if test -n "$ac_ct_STRIP"; then
    19248   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
    19249 else
    19250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    19251 for as_dir in $PATH
    19252 do
    19253   IFS=$as_save_IFS
    19254   test -z "$as_dir" && as_dir=.
    19255   for ac_exec_ext in '' $ac_executable_extensions; do
    19256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    19257     ac_cv_prog_ac_ct_STRIP="strip"
    19258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    19259     break 2
    19260   fi
    19261 done
    19262 done
    19263 
    19264   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
    19265 fi
    19266 fi
    19267 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
    19268 if test -n "$ac_ct_STRIP"; then
    19269   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
    19270 echo "${ECHO_T}$ac_ct_STRIP" >&6
    19271 else
    19272   echo "$as_me:$LINENO: result: no" >&5
    19273 echo "${ECHO_T}no" >&6
    19274 fi
    19275 
    19276   STRIP=$ac_ct_STRIP
    19277 else
    19278   STRIP="$ac_cv_prog_STRIP"
    19279 fi
    19280 
    19281 fi
    19282 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
    19283 
    19284 # We need awk for the "check" target.  The system "awk" is bad on
    19285 # some platforms.
    19286 # Always define AMTAR for backward compatibility.
    19287 
    19288 AMTAR=${AMTAR-"${am_missing_run}tar"}
    19289 
    19290 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
    19291 
    19292 
    19293 
    19294 
    19295 depcc="$CC"   am_compiler_list=
    19296 
    19297 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
    19298 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
    19299 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
    19300   echo $ECHO_N "(cached) $ECHO_C" >&6
    19301 else
    19302   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
    19303   # We make a subdir and do the tests there.  Otherwise we can end up
    19304   # making bogus files that we don't know about and never remove.  For
    19305   # instance it was reported that on HP-UX the gcc test will end up
    19306   # making a dummy file named `D' -- because `-MD' means `put the output
    19307   # in D'.
    19308   mkdir conftest.dir
    19309   # Copy depcomp to subdir because otherwise we won't find it if we're
    19310   # using a relative directory.
    19311   cp "$am_depcomp" conftest.dir
    19312   cd conftest.dir
    19313   # We will build objects and dependencies in a subdirectory because
    19314   # it helps to detect inapplicable dependency modes.  For instance
    19315   # both Tru64's cc and ICC support -MD to output dependencies as a
    19316   # side effect of compilation, but ICC will put the dependencies in
    19317   # the current directory while Tru64 will put them in the object
    19318   # directory.
    19319   mkdir sub
    19320 
    19321   am_cv_CC_dependencies_compiler_type=none
    19322   if test "$am_compiler_list" = ""; then
    19323      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
    19324   fi
    19325   for depmode in $am_compiler_list; do
    19326     # Setup a source with many dependencies, because some compilers
    19327     # like to wrap large dependency lists on column 80 (with \), and
    19328     # we should not choose a depcomp mode which is confused by this.
    19329     #
    19330     # We need to recreate these files for each test, as the compiler may
    19331     # overwrite some of them when testing with obscure command lines.
    19332     # This happens at least with the AIX C compiler.
    19333     : > sub/conftest.c
    19334     for i in 1 2 3 4 5 6; do
    19335       echo '#include "conftst'$i'.h"' >> sub/conftest.c
    19336       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
    19337       # Solaris 8's {/usr,}/bin/sh.
    19338       touch sub/conftst$i.h
    19339     done
    19340     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    19341 
    19342     case $depmode in
    19343     nosideeffect)
    19344       # after this tag, mechanisms are not by side-effect, so they'll
    19345       # only be used when explicitly requested
    19346       if test "x$enable_dependency_tracking" = xyes; then
    19347         continue
    19348       else
    19349         break
    19350       fi
    19351       ;;
    19352     none) break ;;
    19353     esac
    19354     # We check with `-c' and `-o' for the sake of the "dashmstdout"
    19355     # mode.  It turns out that the SunPro C++ compiler does not properly
    19356     # handle `-M -o', and we need to detect this.
    19357     if depmode=$depmode \
    19358        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
    19359        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
    19360        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
    19361          >/dev/null 2>conftest.err &&
    19362        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
    19363        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
    19364        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    19365       # icc doesn't choke on unknown options, it will just issue warnings
    19366       # or remarks (even with -Werror).  So we grep stderr for any message
    19367       # that says an option was ignored or not supported.
    19368       # When given -MP, icc 7.0 and 7.1 complain thusly:
    19369       #   icc: Command line warning: ignoring option '-M'; no argument required
    19370       # The diagnosis changed in icc 8.0:
    19371       #   icc: Command line remark: option '-MP' not supported
    19372       if (grep 'ignoring option' conftest.err ||
    19373           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
    19374         am_cv_CC_dependencies_compiler_type=$depmode
    19375         break
    19376       fi
    19377     fi
    19378   done
    19379 
    19380   cd ..
    19381   rm -rf conftest.dir
    19382 else
    19383   am_cv_CC_dependencies_compiler_type=none
    19384 fi
    19385 
    19386 fi
    19387 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
    19388 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
    19389 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
    19390 
    19391 
    19392 
    19393 if
    19394   test "x$enable_dependency_tracking" != xno \
    19395   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
    19396   am__fastdepCC_TRUE=
    19397   am__fastdepCC_FALSE='#'
    19398 else
    19399   am__fastdepCC_TRUE='#'
    19400   am__fastdepCC_FALSE=
    19401 fi
    19402 
    19403 
    19404 depcc="$CXX"  am_compiler_list=
    19405 
    19406 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
    19407 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
    19408 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
    19409   echo $ECHO_N "(cached) $ECHO_C" >&6
    19410 else
    19411   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
    19412   # We make a subdir and do the tests there.  Otherwise we can end up
    19413   # making bogus files that we don't know about and never remove.  For
    19414   # instance it was reported that on HP-UX the gcc test will end up
    19415   # making a dummy file named `D' -- because `-MD' means `put the output
    19416   # in D'.
    19417   mkdir conftest.dir
    19418   # Copy depcomp to subdir because otherwise we won't find it if we're
    19419   # using a relative directory.
    19420   cp "$am_depcomp" conftest.dir
    19421   cd conftest.dir
    19422   # We will build objects and dependencies in a subdirectory because
    19423   # it helps to detect inapplicable dependency modes.  For instance
    19424   # both Tru64's cc and ICC support -MD to output dependencies as a
    19425   # side effect of compilation, but ICC will put the dependencies in
    19426   # the current directory while Tru64 will put them in the object
    19427   # directory.
    19428   mkdir sub
    19429 
    19430   am_cv_CXX_dependencies_compiler_type=none
    19431   if test "$am_compiler_list" = ""; then
    19432      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
    19433   fi
    19434   for depmode in $am_compiler_list; do
    19435     # Setup a source with many dependencies, because some compilers
    19436     # like to wrap large dependency lists on column 80 (with \), and
    19437     # we should not choose a depcomp mode which is confused by this.
    19438     #
    19439     # We need to recreate these files for each test, as the compiler may
    19440     # overwrite some of them when testing with obscure command lines.
    19441     # This happens at least with the AIX C compiler.
    19442     : > sub/conftest.c
    19443     for i in 1 2 3 4 5 6; do
    19444       echo '#include "conftst'$i'.h"' >> sub/conftest.c
    19445       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
    19446       # Solaris 8's {/usr,}/bin/sh.
    19447       touch sub/conftst$i.h
    19448     done
    19449     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    19450 
    19451     case $depmode in
    19452     nosideeffect)
    19453       # after this tag, mechanisms are not by side-effect, so they'll
    19454       # only be used when explicitly requested
    19455       if test "x$enable_dependency_tracking" = xyes; then
    19456         continue
    19457       else
    19458         break
    19459       fi
    19460       ;;
    19461     none) break ;;
    19462     esac
    19463     # We check with `-c' and `-o' for the sake of the "dashmstdout"
    19464     # mode.  It turns out that the SunPro C++ compiler does not properly
    19465     # handle `-M -o', and we need to detect this.
    19466     if depmode=$depmode \
    19467        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
    19468        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
    19469        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
    19470          >/dev/null 2>conftest.err &&
    19471        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
    19472        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
    19473        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    19474       # icc doesn't choke on unknown options, it will just issue warnings
    19475       # or remarks (even with -Werror).  So we grep stderr for any message
    19476       # that says an option was ignored or not supported.
    19477       # When given -MP, icc 7.0 and 7.1 complain thusly:
    19478       #   icc: Command line warning: ignoring option '-M'; no argument required
    19479       # The diagnosis changed in icc 8.0:
    19480       #   icc: Command line remark: option '-MP' not supported
    19481       if (grep 'ignoring option' conftest.err ||
    19482           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
    19483         am_cv_CXX_dependencies_compiler_type=$depmode
    19484         break
    19485       fi
    19486     fi
    19487   done
    19488 
    19489   cd ..
    19490   rm -rf conftest.dir
    19491 else
    19492   am_cv_CXX_dependencies_compiler_type=none
    19493 fi
    19494 
    19495 fi
    19496 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
    19497 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
    19498 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
    19499 
    19500 
    19501 
    19502 if
    19503   test "x$enable_dependency_tracking" != xno \
    19504   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
    19505   am__fastdepCXX_TRUE=
    19506   am__fastdepCXX_FALSE='#'
    19507 else
    19508   am__fastdepCXX_TRUE='#'
    19509   am__fastdepCXX_FALSE=
    19510 fi
    19511 
    19512 
    19513 
    19514 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
    19515 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
    19516     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
    19517 if test "${enable_maintainer_mode+set}" = set; then
    19518   enableval="$enable_maintainer_mode"
    19519   USE_MAINTAINER_MODE=$enableval
    19520 else
    19521   USE_MAINTAINER_MODE=no
    19522 fi;
    19523   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
    19524 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
    19525 
    19526 
    19527 if test $USE_MAINTAINER_MODE = yes; then
    19528   MAINTAINER_MODE_TRUE=
    19529   MAINTAINER_MODE_FALSE='#'
    19530 else
    19531   MAINTAINER_MODE_TRUE='#'
    19532   MAINTAINER_MODE_FALSE=
    19533 fi
    19534 
    19535   MAINT=$MAINTAINER_MODE_TRUE
    19536 
    19537 
    19538 
    19539 coin_have_externals=no
    19540 if test "$enable_maintainer_mode" = yes; then
    19541 
    19542   # If maintainer mode is chosen, we make sure that the correct versions
    19543   # of the tools are used, and that we know where libtoo.m4 is (to
    19544   # recreate acinclude.m4)
    19545 
    19546 
    19547   LIBTOOLM4=
    19548 
    19549   # Check if we have autoconf
    19550   # Extract the first word of "autoconf", so it can be a program name with args.
    19551 set dummy autoconf; ac_word=$2
    19552 echo "$as_me:$LINENO: checking for $ac_word" >&5
    19553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    19554 if test "${ac_cv_prog_have_autoconf+set}" = set; then
    19555   echo $ECHO_N "(cached) $ECHO_C" >&6
    19556 else
    19557   if test -n "$have_autoconf"; then
    19558   ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
    19559 else
    19560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    19561 for as_dir in $PATH
    19562 do
    19563   IFS=$as_save_IFS
    19564   test -z "$as_dir" && as_dir=.
    19565   for ac_exec_ext in '' $ac_executable_extensions; do
    19566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    19567     ac_cv_prog_have_autoconf="yes"
    19568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    19569     break 2
    19570   fi
    19571 done
    19572 done
    19573 
    19574   test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
    19575 fi
    19576 fi
    19577 have_autoconf=$ac_cv_prog_have_autoconf
    19578 if test -n "$have_autoconf"; then
    19579   echo "$as_me:$LINENO: result: $have_autoconf" >&5
    19580 echo "${ECHO_T}$have_autoconf" >&6
    19581 else
    19582   echo "$as_me:$LINENO: result: no" >&5
    19583 echo "${ECHO_T}no" >&6
    19584 fi
    19585 
    19586   if test $have_autoconf = no; then
    19587     { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
    19588 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
    19589    { (exit 1); exit 1; }; }
    19590   fi
    19591 
    19592   # Check whether autoconf is the correct version
    19593   correct_version='2.59'
    19594   grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
    19595   echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
    19596 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
    19597   autoconf --version > confauto.out 2>&1
    19598   if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
    19599     echo "$as_me:$LINENO: result: yes" >&5
    19600 echo "${ECHO_T}yes" >&6
    19601   else
    19602     rm -f confauto.out
    19603     echo "$as_me:$LINENO: result: no" >&5
    19604 echo "${ECHO_T}no" >&6
    19605     { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
    19606 echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
    19607    { (exit 1); exit 1; }; }
    19608   fi
    19609   rm -f confauto.out
    19610 
    19611   # Check if the executable autoconf is picked up from the correct location
    19612   echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
    19613 echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
    19614   autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
    19615   autoconf_dir=`cd $autoconf_dir; pwd`
    19616   if test x$AUTOTOOLS_DIR = x; then
    19617     want_dir=$HOME/bin
    19618   else
    19619     want_dir=$AUTOTOOLS_DIR/bin
    19620   fi
    19621   if test $autoconf_dir = `cd $want_dir; pwd`; then
    19622     echo "$as_me:$LINENO: result: yes" >&5
    19623 echo "${ECHO_T}yes" >&6
    19624   else
    19625     rm -f confauto.out
    19626     echo "$as_me:$LINENO: result: no" >&5
    19627 echo "${ECHO_T}no" >&6
    19628     { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&5
    19629 echo "$as_me: error: The autoconf executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&2;}
    19630    { (exit 1); exit 1; }; }
    19631   fi
    19632 
    19633   # Check if we have automake
    19634   # Extract the first word of "automake", so it can be a program name with args.
    19635 set dummy automake; ac_word=$2
    19636 echo "$as_me:$LINENO: checking for $ac_word" >&5
    19637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    19638 if test "${ac_cv_prog_have_automake+set}" = set; then
    19639   echo $ECHO_N "(cached) $ECHO_C" >&6
    19640 else
    19641   if test -n "$have_automake"; then
    19642   ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
    19643 else
    19644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    19645 for as_dir in $PATH
    19646 do
    19647   IFS=$as_save_IFS
    19648   test -z "$as_dir" && as_dir=.
    19649   for ac_exec_ext in '' $ac_executable_extensions; do
    19650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    19651     ac_cv_prog_have_automake="yes"
    19652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    19653     break 2
    19654   fi
    19655 done
    19656 done
    19657 
    19658   test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
    19659 fi
    19660 fi
    19661 have_automake=$ac_cv_prog_have_automake
    19662 if test -n "$have_automake"; then
    19663   echo "$as_me:$LINENO: result: $have_automake" >&5
    19664 echo "${ECHO_T}$have_automake" >&6
    19665 else
    19666   echo "$as_me:$LINENO: result: no" >&5
    19667 echo "${ECHO_T}no" >&6
    19668 fi
    19669 
    19670   if test $have_automake = no; then
    19671     { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
    19672 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
    19673    { (exit 1); exit 1; }; }
    19674   fi
    19675 
    19676   # Check whether automake is the correct version
    19677   correct_version='1.9.6'
    19678   grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
    19679   echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
    19680 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
    19681   automake --version > confauto.out 2>&1
    19682   if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
    19683     echo "$as_me:$LINENO: result: yes" >&5
    19684 echo "${ECHO_T}yes" >&6
    19685   else
    19686     rm -f confauto.out
    19687     echo "$as_me:$LINENO: result: no" >&5
    19688 echo "${ECHO_T}no" >&6
    19689     { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
    19690 echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
    19691    { (exit 1); exit 1; }; }
    19692   fi
    19693   rm -f confauto.out
    19694 
    19695   # Check if the executable automake is picked up from the correct location
    19696   echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
    19697 echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
    19698   automake_dir=`which automake | sed -e 's=/automake=='`
    19699   automake_dir=`cd $automake_dir; pwd`
    19700   if test x$AUTOTOOLS_DIR = x; then
    19701     want_dir=$HOME/bin
    19702   else
    19703     want_dir=$AUTOTOOLS_DIR/bin
    19704   fi
    19705   if test $automake_dir = `cd $want_dir; pwd`; then
    19706     echo "$as_me:$LINENO: result: yes" >&5
    19707 echo "${ECHO_T}yes" >&6
    19708   else
    19709     rm -f confauto.out
    19710     echo "$as_me:$LINENO: result: no" >&5
    19711 echo "${ECHO_T}no" >&6
    19712     { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&5
    19713 echo "$as_me: error: The automake executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&2;}
    19714    { (exit 1); exit 1; }; }
    19715   fi
    19716 
    19717   # Check if we can find the libtool file
    19718   if test x$AUTOTOOLS_DIR = x; then
    19719     want_dir=$HOME/share
    19720   else
    19721     want_dir=$AUTOTOOLS_DIR/share
    19722   fi
    19723   as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
    19724 echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
    19725 echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
    19726 if eval "test \"\${$as_ac_File+set}\" = set"; then
    19727   echo $ECHO_N "(cached) $ECHO_C" >&6
    19728 else
    19729   test "$cross_compiling" = yes &&
    19730   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    19731 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    19732    { (exit 1); exit 1; }; }
    19733 if test -r "$want_dir/aclocal/libtool.m4"; then
    19734   eval "$as_ac_File=yes"
    19735 else
    19736   eval "$as_ac_File=no"
    19737 fi
    19738 fi
    19739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
    19740 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    19741 if test `eval echo '${'$as_ac_File'}'` = yes; then
    19742   LIBTOOLM4="$want_dir/aclocal/libtool.m4"
    19743 else
    19744   { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
    19745 echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
    19746    { (exit 1); exit 1; }; }
    19747 fi
    19748 
    19749 
    19750   # Check if this is the correct version of libtool (with escaped dots)
    19751   correct_version='1.5.22'
    19752   grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
    19753   as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
    19754 echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
    19755 echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
    19756 if eval "test \"\${$as_ac_File+set}\" = set"; then
    19757   echo $ECHO_N "(cached) $ECHO_C" >&6
    19758 else
    19759   test "$cross_compiling" = yes &&
    19760   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    19761 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    19762    { (exit 1); exit 1; }; }
    19763 if test -r "$want_dir/libtool/ltmain.sh"; then
    19764   eval "$as_ac_File=yes"
    19765 else
    19766   eval "$as_ac_File=no"
    19767 fi
    19768 fi
    19769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
    19770 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    19771 if test `eval echo '${'$as_ac_File'}'` = yes; then
    19772   have_ltmain=yes
    19773 else
    19774   have_ltmain=no
    19775 fi
    19776 
    19777   echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
    19778 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
    19779   if test $have_ltmain = yes; then
    19780     if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
    19781       echo "$as_me:$LINENO: result: yes" >&5
    19782 echo "${ECHO_T}yes" >&6
    19783     else
    19784       echo "$as_me:$LINENO: result: no" >&5
    19785 echo "${ECHO_T}no" >&6
    19786       { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
    19787 echo "$as_me: error: You don't have the correct version of libtool." >&2;}
    19788    { (exit 1); exit 1; }; }
    19789     fi
    19790   else
    19791     echo "$as_me:$LINENO: result: no" >&5
    19792 echo "${ECHO_T}no" >&6
    19793     { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
    19794 echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
    19795    { (exit 1); exit 1; }; }
    19796   fi
    19797 
    19798   # Check if we have an Externals file
    19799   if test -r $srcdir/Externals; then
    19800     coin_have_externals=yes
    19801   fi
    19802   # Check if subversion is installed and understands https
    19803   # Extract the first word of "svn", so it can be a program name with args.
    19804 set dummy svn; ac_word=$2
    19805 echo "$as_me:$LINENO: checking for $ac_word" >&5
    19806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    19807 if test "${ac_cv_prog_have_svn+set}" = set; then
    19808   echo $ECHO_N "(cached) $ECHO_C" >&6
    19809 else
    19810   if test -n "$have_svn"; then
    19811   ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
    19812 else
    19813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    19814 for as_dir in $PATH
    19815 do
    19816   IFS=$as_save_IFS
    19817   test -z "$as_dir" && as_dir=.
    19818   for ac_exec_ext in '' $ac_executable_extensions; do
    19819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    19820     ac_cv_prog_have_svn="yes"
    19821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    19822     break 2
    19823   fi
    19824 done
    19825 done
    19826 
    19827   test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
    19828 fi
    19829 fi
    19830 have_svn=$ac_cv_prog_have_svn
    19831 if test -n "$have_svn"; then
    19832   echo "$as_me:$LINENO: result: $have_svn" >&5
    19833 echo "${ECHO_T}$have_svn" >&6
    19834 else
    19835   echo "$as_me:$LINENO: result: no" >&5
    19836 echo "${ECHO_T}no" >&6
    19837 fi
    19838 
    19839   if test x$have_svn = xyes; then
    19840     echo "$as_me:$LINENO: checking svn understands https" >&5
    19841 echo $ECHO_N "checking svn understands https... $ECHO_C" >&6
    19842     svn --version > confauto.out 2>&1
    19843     if $EGREP https confauto.out >/dev/null 2>&1; then
    19844       echo "$as_me:$LINENO: result: yes" >&5
    19845 echo "${ECHO_T}yes" >&6
    19846     else
    19847       echo "$as_me:$LINENO: result: no" >&5
    19848 echo "${ECHO_T}no" >&6
    19849       have_svn=no
    19850     fi
    19851     rm -f confauto.out
    19852   fi
    19853 
    19854   # Find the location of the BuildTools directory
    19855   BUILDTOOLSDIR=
    19856   if test -r $srcdir/BuildTools/coin.m4; then
    19857     BUILDTOOLSDIR=$srcdir/BuildTools
    19858   else
    19859     if test -r $srcdir/../BuildTools/coin.m4; then
    19860       BUILDTOOLSDIR=$srcdir/../BuildTools
    19861     else
    19862       if test -r $srcdir/../../BuildTools/coin.m4; then
    19863         BUILDTOOLSDIR=$srcdir/../../BuildTools
    19864       else
    19865         { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
    19866 echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
    19867    { (exit 1); exit 1; }; }
    19868       fi
    19869     fi
    19870   fi
    19871 
    19872 
    19873   # The following variable is set to the name of the directory where
    19874   # the autotool scripts are located
    19875 
    19876   AUX_DIR=$ac_aux_dir
    19877 fi
    19878 
    19879 # helpful variable for the base directory of this package
    19880 abs_source_dir=`cd $srcdir; pwd`
    19881 
    19882 
    19883 # Stuff for example Makefiles
    19884 if test x$prefix = xNONE; then
    19885   full_prefix=$ac_default_prefix
    19886 else
    19887   full_prefix=$prefix
    19888 fi
    19889 full_prefix=`cd $full_prefix ; pwd`
    19890 
    19891 abs_lib_dir=$full_prefix/lib
    19892 
    19893 abs_include_dir=$full_prefix/include
    19894 
    19895 abs_bin_dir=$full_prefix/bin
    19896 
    19897 
    19898 
    19899 if test $coin_have_externals = yes && test x$have_svn = xyes; then
    19900   HAVE_EXTERNALS_TRUE=
    19901   HAVE_EXTERNALS_FALSE='#'
    19902 else
    19903   HAVE_EXTERNALS_TRUE='#'
    19904   HAVE_EXTERNALS_FALSE=
    19905 fi
    19906 
    19907 
    19908 
    19909 # Stuff for libtool
    19910 
    19911 
    19912 # We check for this header here in a non-standard way to avoid warning
    19913 # messages
    19914 
    19915 
    19916 
    19917 
    19918 
    19919 
    19920 
     20051# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
     20052 # AC_REQUIRE([AC_COIN_DLFCN_H])
     20053
     20054# NEW: If libtool exists in the directory higher up, we use that one
     20055#      instead of creating a new one
     20056
     20057# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
     20058# out in front of this macro body. You'll notice that LIBTOOL is already
     20059# defined here.  We'll have to count on this macro not being called if libtool
     20060# already exists, or at least move the libtool fixes outside the conditional.
     20061# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
     20062# This test is therefore removed.  -- lh, 061214 --
     20063# if test "x$LIBTOOL" = x; then
     20064
     20065# AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
     20066
     20067
     20068
     20069
     20070
     20071
     20072
     20073
     20074
     20075# AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
    1992120076
    1992220077
     
    1994020095#          -e 'sYcompile_command=`\$echo "X\$compile_command" | \$Xsed -e '"'"'s%@OUTPUT@%'"'"'"\$output"'"'"'%g'"'"'`Ycompile_command=`\$echo "X\$compile_command" | \$Xsed -e '"'"'s%@OUTPUT@%'"'"'"\$output"'"'"'%g'"'"' | \$Xsed -e '"'"'s%@BACKSLASH@%\\\\\\\\\\\\\\\\%g'"'"'`Y' \
    1994120096
    19942 # Correct cygpath for minGW (ToDo!)
    19943 case $build in
    19944   *-mingw*)
    19945     CYGPATH_W=echo
    19946     ;;
    19947 esac
    19948 
    19949 case $build in
    19950   *-cygwin* | *-mingw*)
    19951   case "$CXX" in
    19952     cl* | */cl*)
    19953       { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
     20097  # Correct cygpath for minGW (ToDo!)
     20098  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
     20099echo "$as_me: Build is \"$build\"." >&6;}
     20100  case $build in
     20101    *-mingw*)
     20102      CYGPATH_W=echo
     20103      ;;
     20104  esac
     20105
     20106  case $build in
     20107    *-cygwin* | *-mingw*)
     20108    case "$CXX" in
     20109      cl* | */cl* | CL* | */CL*)
     20110        { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
    1995420111echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
    19955       sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
    19956           -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
    19957           -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
    19958           -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
    19959           -e 's%lib /OUT:%lib -OUT:%' \
    19960           -e "s%cygpath -w%$CYGPATH_W%" \
    19961           -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\`lib -nologo -list \\$f_ex_an_ar_oldlib | xargs echo\\`; echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$f_ex_an_ar_oldlib; done%' \
    19962           -e 's/$AR t/lib -nologo -list/' \
    19963           -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
    19964           -e  's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
    19965       libtool > conftest.bla
    19966 
    19967       mv conftest.bla libtool
    19968       chmod 755 libtool
    19969       ;;
    19970     *)
    19971       { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
     20112        sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
     20113            -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
     20114            -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
     20115            -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
     20116            -e 's%lib /OUT:%lib -OUT:%' \
     20117            -e "s%cygpath -w%$CYGPATH_W%" \
     20118            -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\`lib -nologo -list \\$f_ex_an_ar_oldlib | xargs echo\\`; echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$f_ex_an_ar_oldlib; done%' \
     20119            -e 's/$AR t/lib -nologo -list/' \
     20120            -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
     20121            -e  's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
     20122        libtool > conftest.bla
     20123
     20124        mv conftest.bla libtool
     20125        chmod 755 libtool
     20126        ;;
     20127      *)
     20128        { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
    1997220129echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
    19973       sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
    19974           -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
    19975           -e 's|libext="lib"|libext="a"|' \
    19976       libtool > conftest.bla
    19977 
    19978       mv conftest.bla libtool
    19979       chmod 755 libtool
    19980       ;;
     20130        sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
     20131            -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
     20132            -e 's|libext="lib"|libext="a"|' \
     20133        libtool > conftest.bla
     20134
     20135        mv conftest.bla libtool
     20136        chmod 755 libtool
     20137        ;;
     20138    esac
    1998120139  esac
    19982 esac
    19983 
    19984 # ToDo
    19985 # For now, don't use the -no-undefined flag, since the Makefiles are
    19986 # not yet set up that way.  But we need to fix this, when we want
    19987 # to comile DLLs under Windows.
    19988 LT_LDFLAGS=
    19989 
    19990 
    19991 
    19992 # set RPATH_FLAGS to the compiler link flags required to hardcode location
    19993 # of the shared objects
    19994 RPATH_FLAGS=
     20140# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
     20141# the macro. -- lh, 061214 --
     20142# fi
     20143
     20144# AC_MSG_NOTICE([End libtool initialisation.])
     20145
     20146# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
     20147  # set RPATH_FLAGS to the compiler link flags required to hardcode location
     20148  # of the shared objects
     20149  RPATH_FLAGS=
    1999520150
    1999620151if test $enable_shared = yes; then
     
    2003320188
    2003420189
     20190else
     20191
     20192  { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
     20193echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
     20194  # get all missing information from the config.log file
     20195
     20196  # output variables and defines
     20197  as_save_IFS=$IFS
     20198  IFS='
     20199'
     20200  for oneline in `cat $coin_config_dir/config.status`; do
     20201    case "$oneline" in
     20202         # First some automake conditionals
     20203      s,@am__fastdep* | s,@AR@* | s,@CPP@*  | s,@CPPFLAGS@* | s,@CXXCPP@*  | \
     20204      s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
     20205      s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
     20206      s,@ac_c_preproc_warn_flag@* |  s,@ac_cxx_preproc_warn_flag@* )
     20207        command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
     20208#        echo "$command"
     20209        eval "$command"
     20210        ;;
     20211      s,@DEFS@* )
     20212        command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
     20213#        echo "$command"
     20214        eval "$command"
     20215        ;;
     20216    esac
     20217  done
     20218  IFS=$as_save_IFS
     20219
     20220  # And some defines (assuming here that the packages base dir
     20221  # doesn't have a config.h file
     20222  for word in $defsline; do
     20223#    echo word $word
     20224    case $word in
     20225      -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
     20226        i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
     20227#        echo dd $i
     20228        echo $i >>confdefs.h
     20229        ;;
     20230    esac
     20231  done
     20232fi
     20233
     20234# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
     20235
     20236# ToDo
     20237# For now, don't use the -no-undefined flag, since the Makefiles are
     20238# not yet set up that way.  But we need to fix this, when we want
     20239# to comile DLLs under Windows.
     20240LT_LDFLAGS=
     20241
     20242
     20243#END
     20244}
    2003520245
    2003620246#############################################################################
     
    2017120381coin_has_readline=no
    2017220382if test $coin_enable_gnu = yes; then
    20173   if test x"#include <stdio.h>" = x; then
    20174   hdr="#include <readline/readline.h>"
    20175 else
    20176   hdr="#include <stdio.h>"
    20177 fi
     20383  # if test x"#include <stdio.h>" = x; then
     20384 # hdr="#include <readline/readline.h>"
     20385 # else
     20386  hdr="#include <stdio.h>"
     20387 # fi
    2017820388
    2017920389for ac_header in readline/readline.h
     
    2019120401cat >>conftest.$ac_ext <<_ACEOF
    2019220402/* end confdefs.h.  */
    20193 $hdr
     20403#include <stdio.h>
    2019420404
    2019520405#include <$ac_header>
     
    2051020720
    2051120721case "$CC" in
    20512   cl*) LIBEXT=lib ;;
     20722  cl* | */cl* | CL* | */CL*)
     20723       LIBEXT=lib ;;
    2051320724    *) LIBEXT=a ;;
    2051420725esac
     
    2129621507s,@ac_ct_F77@,$ac_ct_F77,;t t
    2129721508s,@LIBTOOL@,$LIBTOOL,;t t
     21509s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
     21510s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
     21511s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2129821512s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
    21299 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2130021513s,@COINUTILSSRCDIR@,$COINUTILSSRCDIR,;t t
    2130121514s,@COINUTILSOBJDIR@,$COINUTILSOBJDIR,;t t
     
    2202722240
    2202822241if test x"$coin_vpath_link_files" = x; then : ; else
    22029   { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
     22242  lnkcmd=
     22243  if test "$enable_doscompile" = yes; then
     22244    lnkcmd=cp
     22245  fi
     22246  case "$CC" in
     22247    cl* | */cl* | CL* | */CL*)
     22248      lnkcmd=cp ;;
     22249  esac
     22250  if test "$lnkcmd" = cp; then
     22251    { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
     22252echo "$as_me: Copying data files for VPATH configuration" >&6;}
     22253  else
     22254    echo "$as_me:$LINENO: checking whether ln -s works" >&5
     22255echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     22256LN_S=$as_ln_s
     22257if test "$LN_S" = "ln -s"; then
     22258  echo "$as_me:$LINENO: result: yes" >&5
     22259echo "${ECHO_T}yes" >&6
     22260else
     22261  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
     22262echo "${ECHO_T}no, using $LN_S" >&6
     22263fi
     22264
     22265    { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
    2203022266echo "$as_me: Creating VPATH links for data files" >&6;}
     22267    lnkcmd="$LN_S"
     22268  fi
    2203122269  for file in $coin_vpath_link_files; do
     22270    dir=`(dirname "./$file") 2>/dev/null ||
     22271$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     22272         X"./$file" : 'X\(//\)[^/]' \| \
     22273         X"./$file" : 'X\(//\)$' \| \
     22274         X"./$file" : 'X\(/\)' \| \
     22275         .     : '\(.\)' 2>/dev/null ||
     22276echo X"./$file" |
     22277    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     22278          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     22279          /^X\(\/\/\)$/{ s//\1/; q; }
     22280          /^X\(\/\).*/{ s//\1/; q; }
     22281          s/.*/./; q'`
     22282    if test -d $dir; then : ; else
     22283      { if $as_mkdir_p; then
     22284    mkdir -p $dir
     22285  else
     22286    as_dir=$dir
     22287    as_dirs=
     22288    while test ! -d "$as_dir"; do
     22289      as_dirs="$as_dir $as_dirs"
     22290      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     22291$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     22292         X"$as_dir" : 'X\(//\)[^/]' \| \
     22293         X"$as_dir" : 'X\(//\)$' \| \
     22294         X"$as_dir" : 'X\(/\)' \| \
     22295         .     : '\(.\)' 2>/dev/null ||
     22296echo X"$as_dir" |
     22297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     22298          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     22299          /^X\(\/\/\)$/{ s//\1/; q; }
     22300          /^X\(\/\).*/{ s//\1/; q; }
     22301          s/.*/./; q'`
     22302    done
     22303    test ! -n "$as_dirs" || mkdir $as_dirs
     22304  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
     22305echo "$as_me: error: cannot create directory $dir" >&2;}
     22306   { (exit 1); exit 1; }; }; }
     22307
     22308    fi
    2203222309    rm -f $file
    22033     $LN_S $abs_source_dir/$file $file
     22310    $lnkcmd $abs_source_dir/$file $file
    2203422311  done
    2203522312fi
  • stable/1.3/Clp/src/Makefile.in

    r836 r916  
    210210abs_lib_dir = @abs_lib_dir@
    211211abs_source_dir = @abs_source_dir@
     212ac_c_preproc_warn_flag = @ac_c_preproc_warn_flag@
    212213ac_ct_AR = @ac_ct_AR@
    213214ac_ct_CC = @ac_ct_CC@
     
    216217ac_ct_RANLIB = @ac_ct_RANLIB@
    217218ac_ct_STRIP = @ac_ct_STRIP@
     219ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
    218220am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    219221am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  • stable/1.3/Clp/test/Makefile.am

    r784 r916  
    1515# We are using the CLP solver executable to do the unit test
    1616test: ../src/clp$(EXEEXT)
    17         cd ../../Data/Netlib; make uncompress
     17        cd ../../Data/Netlib; $(MAKE) uncompress
    1818        ../src/clp$(EXEEXT) -unitTest -netlib -netlibp
    1919
  • stable/1.3/Clp/test/Makefile.in

    r836 r916  
    146146abs_lib_dir = @abs_lib_dir@
    147147abs_source_dir = @abs_source_dir@
     148ac_c_preproc_warn_flag = @ac_c_preproc_warn_flag@
    148149ac_ct_AR = @ac_ct_AR@
    149150ac_ct_CC = @ac_ct_CC@
     
    152153ac_ct_RANLIB = @ac_ct_RANLIB@
    153154ac_ct_STRIP = @ac_ct_STRIP@
     155ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
    154156am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    155157am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     
    369371# We are using the CLP solver executable to do the unit test
    370372test: ../src/clp$(EXEEXT)
    371         cd ../../Data/Netlib; make uncompress
     373        cd ../../Data/Netlib; $(MAKE) uncompress
    372374        ../src/clp$(EXEEXT) -unitTest -netlib -netlibp
    373375
  • stable/1.3/Makefile.am

    r788 r916  
    2424
    2525test: all
    26         cd Clp; make test
     26        cd Clp; $(MAKE) test
    2727
    2828unitTest: test
     
    3131        for dir in $(subdirs); do \
    3232          if test -r $$dir/test/Makefile; then \
    33             (cd $$dir; make test) \
     33            (cd $$dir; $(MAKE) test) \
    3434          fi; \
    3535        done
  • stable/1.3/Makefile.in

    r879 r916  
    5050PRE_UNINSTALL = :
    5151POST_UNINSTALL = :
     52build_triplet = @build@
     53host_triplet = @host@
    5254DIST_COMMON = README $(am__configure_deps) \
    5355        $(srcdir)/BuildTools/Makemain.inc $(srcdir)/Makefile.am \
     
    8991distcleancheck_listfiles = find . -type f -print
    9092ACLOCAL = @ACLOCAL@
     93ADD_CFLAGS = @ADD_CFLAGS@
     94ADD_CXXFLAGS = @ADD_CXXFLAGS@
     95ADD_FFLAGS = @ADD_FFLAGS@
     96AMDEP_FALSE = @AMDEP_FALSE@
     97AMDEP_TRUE = @AMDEP_TRUE@
    9198AMTAR = @AMTAR@
     99AR = @AR@
    92100AUTOCONF = @AUTOCONF@
    93101AUTOHEADER = @AUTOHEADER@
     
    96104AWK = @AWK@
    97105BUILDTOOLSDIR = @BUILDTOOLSDIR@
     106CC = @CC@
     107CCDEPMODE = @CCDEPMODE@
     108CDEFS = @CDEFS@
     109CFLAGS = @CFLAGS@
    98110COIN_SKIP_PROJECTS = @COIN_SKIP_PROJECTS@
     111CPP = @CPP@
     112CPPFLAGS = @CPPFLAGS@
     113CXX = @CXX@
     114CXXCPP = @CXXCPP@
     115CXXDEFS = @CXXDEFS@
     116CXXDEPMODE = @CXXDEPMODE@
     117CXXFLAGS = @CXXFLAGS@
    99118CYGPATH_W = @CYGPATH_W@
     119DBG_CFLAGS = @DBG_CFLAGS@
     120DBG_CXXFLAGS = @DBG_CXXFLAGS@
     121DBG_FFLAGS = @DBG_FFLAGS@
    100122DEFS = @DEFS@
     123DEPDIR = @DEPDIR@
     124ECHO = @ECHO@
    101125ECHO_C = @ECHO_C@
    102126ECHO_N = @ECHO_N@
    103127ECHO_T = @ECHO_T@
    104128EGREP = @EGREP@
     129EXEEXT = @EXEEXT@
     130F77 = @F77@
     131FFLAGS = @FFLAGS@
    105132HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    106133HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
     
    109136INSTALL_SCRIPT = @INSTALL_SCRIPT@
    110137INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
     138LDFLAGS = @LDFLAGS@
    111139LIBEXT = @LIBEXT@
    112140LIBOBJS = @LIBOBJS@
    113141LIBS = @LIBS@
     142LIBTOOL = @LIBTOOL@
    114143LIBTOOLM4 = @LIBTOOLM4@
     144LN_S = @LN_S@
    115145LTLIBOBJS = @LTLIBOBJS@
     146LT_LDFLAGS = @LT_LDFLAGS@
    116147MAINT = @MAINT@
    117148MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
    118149MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    119150MAKEINFO = @MAKEINFO@
     151MPICC = @MPICC@
     152MPICXX = @MPICXX@
     153MPIF77 = @MPIF77@
     154OBJEXT = @OBJEXT@
     155OPT_CFLAGS = @OPT_CFLAGS@
     156OPT_CXXFLAGS = @OPT_CXXFLAGS@
     157OPT_FFLAGS = @OPT_FFLAGS@
    120158PACKAGE = @PACKAGE@
    121159PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
     
    125163PACKAGE_VERSION = @PACKAGE_VERSION@
    126164PATH_SEPARATOR = @PATH_SEPARATOR@
     165RANLIB = @RANLIB@
     166RPATH_FLAGS = @RPATH_FLAGS@
    127167SET_MAKE = @SET_MAKE@
    128168SHELL = @SHELL@
     
    134174abs_lib_dir = @abs_lib_dir@
    135175abs_source_dir = @abs_source_dir@
     176ac_c_preproc_warn_flag = @ac_c_preproc_warn_flag@
     177ac_ct_AR = @ac_ct_AR@
     178ac_ct_CC = @ac_ct_CC@
     179ac_ct_CXX = @ac_ct_CXX@
     180ac_ct_F77 = @ac_ct_F77@
     181ac_ct_RANLIB = @ac_ct_RANLIB@
    136182ac_ct_STRIP = @ac_ct_STRIP@
     183ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
     184am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
     185am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     186am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
     187am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
     188am__include = @am__include@
    137189am__leading_dot = @am__leading_dot@
     190am__quote = @am__quote@
    138191am__tar = @am__tar@
    139192am__untar = @am__untar@
    140193bindir = @bindir@
     194build = @build@
    141195build_alias = @build_alias@
     196build_cpu = @build_cpu@
     197build_os = @build_os@
     198build_vendor = @build_vendor@
    142199datadir = @datadir@
    143200exec_prefix = @exec_prefix@
     
    145202have_automake = @have_automake@
    146203have_svn = @have_svn@
     204host = @host@
    147205host_alias = @host_alias@
     206host_cpu = @host_cpu@
     207host_os = @host_os@
     208host_vendor = @host_vendor@
    148209includedir = @includedir@
    149210infodir = @infodir@
     
    215276$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
    216277        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
     278
     279mostlyclean-libtool:
     280        -rm -f *.lo
     281
     282clean-libtool:
     283        -rm -rf .libs _libs
     284
     285distclean-libtool:
     286        -rm -f libtool
    217287uninstall-info-am:
    218288
     
    523593clean: clean-recursive
    524594
    525 clean-am: clean-generic mostlyclean-am
     595clean-am: clean-generic clean-libtool mostlyclean-am
    526596
    527597distclean: distclean-recursive
    528598        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
    529599        -rm -f Makefile
    530 distclean-am: clean-am distclean-generic distclean-tags
     600distclean-am: clean-am distclean-generic distclean-libtool \
     601        distclean-tags
    531602
    532603dvi: dvi-recursive
     
    558629mostlyclean: mostlyclean-recursive
    559630
    560 mostlyclean-am: mostlyclean-generic
     631mostlyclean-am: mostlyclean-generic mostlyclean-libtool
    561632
    562633pdf: pdf-recursive
     
    573644
    574645.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
    575         check-am clean clean-generic clean-recursive ctags \
    576         ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \
    577         dist-tarZ dist-zip distcheck distclean distclean-generic \
    578         distclean-recursive distclean-tags distcleancheck distdir \
    579         distuninstallcheck dvi dvi-am html html-am info info-am \
    580         install install-am install-data install-data-am install-exec \
    581         install-exec-am install-info install-info-am install-man \
    582         install-strip installcheck installcheck-am installdirs \
    583         installdirs-am maintainer-clean maintainer-clean-generic \
     646        check-am clean clean-generic clean-libtool clean-recursive \
     647        ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
     648        dist-shar dist-tarZ dist-zip distcheck distclean \
     649        distclean-generic distclean-libtool distclean-recursive \
     650        distclean-tags distcleancheck distdir distuninstallcheck dvi \
     651        dvi-am html html-am info info-am install install-am \
     652        install-data install-data-am install-exec install-exec-am \
     653        install-info install-info-am install-man install-strip \
     654        installcheck installcheck-am installdirs installdirs-am \
     655        maintainer-clean maintainer-clean-generic \
    584656        maintainer-clean-recursive mostlyclean mostlyclean-generic \
    585         mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
    586         uninstall uninstall-am uninstall-info-am
     657        mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
     658        tags tags-recursive uninstall uninstall-am uninstall-info-am
    587659
    588660
     
    592664
    593665test: all
    594         cd Clp; make test
     666        cd Clp; $(MAKE) test
    595667
    596668unitTest: test
     
    599671        for dir in $(subdirs); do \
    600672          if test -r $$dir/test/Makefile; then \
    601             (cd $$dir; make test) \
     673            (cd $$dir; $(MAKE) test) \
    602674          fi; \
    603675        done
  • stable/1.3/configure

    r879 r916  
    251251
    252252
     253
     254# Check that we are running under the correct shell.
     255SHELL=${CONFIG_SHELL-/bin/sh}
     256
     257case X$ECHO in
     258X*--fallback-echo)
     259  # Remove one level of quotation (which was required for Make).
     260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
     261  ;;
     262esac
     263
     264echo=${ECHO-echo}
     265if test "X$1" = X--no-reexec; then
     266  # Discard the --no-reexec flag, and continue.
     267  shift
     268elif test "X$1" = X--fallback-echo; then
     269  # Avoid inline document here, it may be left over
     270  :
     271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
     272  # Yippee, $echo works!
     273  :
     274else
     275  # Restart under the correct shell.
     276  exec $SHELL "$0" --no-reexec ${1+"$@"}
     277fi
     278
     279if test "X$1" = X--fallback-echo; then
     280  # used as fallback echo
     281  shift
     282  cat <<EOF
     283$*
     284EOF
     285  exit 0
     286fi
     287
     288# The HP-UX ksh and POSIX shell print the target directory to stdout
     289# if CDPATH is set.
     290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     291
     292if test -z "$ECHO"; then
     293if test "X${echo_test_string+set}" != Xset; then
     294# find a string as large as possible, as long as the shell can cope with it
     295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
     296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
     297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
     298       echo_test_string=`eval $cmd` &&
     299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
     300    then
     301      break
     302    fi
     303  done
     304fi
     305
     306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
     307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
     308   test "X$echo_testing_string" = "X$echo_test_string"; then
     309  :
     310else
     311  # The Solaris, AIX, and Digital Unix default echo programs unquote
     312  # backslashes.  This makes it impossible to quote backslashes using
     313  #   echo "$something" | sed 's/\\/\\\\/g'
     314  #
     315  # So, first we look for a working echo in the user's PATH.
     316
     317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     318  for dir in $PATH /usr/ucb; do
     319    IFS="$lt_save_ifs"
     320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
     321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
     322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
     323       test "X$echo_testing_string" = "X$echo_test_string"; then
     324      echo="$dir/echo"
     325      break
     326    fi
     327  done
     328  IFS="$lt_save_ifs"
     329
     330  if test "X$echo" = Xecho; then
     331    # We didn't find a better echo, so look for alternatives.
     332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
     333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
     334       test "X$echo_testing_string" = "X$echo_test_string"; then
     335      # This shell has a builtin print -r that does the trick.
     336      echo='print -r'
     337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
     338         test "X$CONFIG_SHELL" != X/bin/ksh; then
     339      # If we have ksh, try running configure again with it.
     340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
     341      export ORIGINAL_CONFIG_SHELL
     342      CONFIG_SHELL=/bin/ksh
     343      export CONFIG_SHELL
     344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
     345    else
     346      # Try using printf.
     347      echo='printf %s\n'
     348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
     349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
     350         test "X$echo_testing_string" = "X$echo_test_string"; then
     351        # Cool, printf works
     352        :
     353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
     354           test "X$echo_testing_string" = 'X\t' &&
     355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
     356           test "X$echo_testing_string" = "X$echo_test_string"; then
     357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
     358        export CONFIG_SHELL
     359        SHELL="$CONFIG_SHELL"
     360        export SHELL
     361        echo="$CONFIG_SHELL $0 --fallback-echo"
     362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
     363           test "X$echo_testing_string" = 'X\t' &&
     364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
     365           test "X$echo_testing_string" = "X$echo_test_string"; then
     366        echo="$CONFIG_SHELL $0 --fallback-echo"
     367      else
     368        # maybe with a smaller string...
     369        prev=:
     370
     371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
     372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
     373          then
     374            break
     375          fi
     376          prev="$cmd"
     377        done
     378
     379        if test "$prev" != 'sed 50q "$0"'; then
     380          echo_test_string=`eval $prev`
     381          export echo_test_string
     382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
     383        else
     384          # Oops.  We lost completely, so just stick with echo.
     385          echo=echo
     386        fi
     387      fi
     388    fi
     389  fi
     390fi
     391fi
     392
     393# Copy echo and quote the copy suitably for passing to libtool from
     394# the Makefile, instead of quoting the original, which is used later.
     395ECHO=$echo
     396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
     397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
     398fi
     399
     400
     401
     402
     403tagnames=${tagnames+${tagnames},}CXX
     404
     405tagnames=${tagnames+${tagnames},}F77
     406
    253407# Name of the host.
    254408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     
    283437ac_unique_file="configure.ac"
    284438ac_default_prefix=`pwd`
     439# Factoring default headers for most tests.
     440ac_includes_default="\
     441#include <stdio.h>
     442#if HAVE_SYS_TYPES_H
     443# include <sys/types.h>
     444#endif
     445#if HAVE_SYS_STAT_H
     446# include <sys/stat.h>
     447#endif
     448#if STDC_HEADERS
     449# include <stdlib.h>
     450# include <stddef.h>
     451#else
     452# if HAVE_STDLIB_H
     453#  include <stdlib.h>
     454# endif
     455#endif
     456#if HAVE_STRING_H
     457# if !STDC_HEADERS && HAVE_MEMORY_H
     458#  include <memory.h>
     459# endif
     460# include <string.h>
     461#endif
     462#if HAVE_STRINGS_H
     463# include <strings.h>
     464#endif
     465#if HAVE_INTTYPES_H
     466# include <inttypes.h>
     467#else
     468# if HAVE_STDINT_H
     469#  include <stdint.h>
     470# endif
     471#endif
     472#if HAVE_UNISTD_H
     473# include <unistd.h>
     474#endif"
     475
    285476ac_subdirs_all="$ac_subdirs_all CoinUtils"
    286477ac_subdirs_all="$ac_subdirs_all Data/Netlib"
    287478ac_subdirs_all="$ac_subdirs_all Data/Sample"
    288479ac_subdirs_all="$ac_subdirs_all Clp"
    289 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE COIN_SKIP_PROJECTS subdirs LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
     480ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_SKIP_PROJECTS subdirs LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    290481ac_subst_files=''
    291482
     
    728919ac_cv_env_target_alias_set=${target_alias+set}
    729920ac_cv_env_target_alias_value=$target_alias
     921ac_env_CDEFS_set=${CDEFS+set}
     922ac_env_CDEFS_value=$CDEFS
     923ac_cv_env_CDEFS_set=${CDEFS+set}
     924ac_cv_env_CDEFS_value=$CDEFS
     925ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
     926ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
     927ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
     928ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
     929ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
     930ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
     931ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
     932ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
     933ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
     934ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
     935ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
     936ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
     937ac_env_CC_set=${CC+set}
     938ac_env_CC_value=$CC
     939ac_cv_env_CC_set=${CC+set}
     940ac_cv_env_CC_value=$CC
     941ac_env_CFLAGS_set=${CFLAGS+set}
     942ac_env_CFLAGS_value=$CFLAGS
     943ac_cv_env_CFLAGS_set=${CFLAGS+set}
     944ac_cv_env_CFLAGS_value=$CFLAGS
     945ac_env_LDFLAGS_set=${LDFLAGS+set}
     946ac_env_LDFLAGS_value=$LDFLAGS
     947ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     948ac_cv_env_LDFLAGS_value=$LDFLAGS
     949ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     950ac_env_CPPFLAGS_value=$CPPFLAGS
     951ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     952ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     953ac_env_MPICC_set=${MPICC+set}
     954ac_env_MPICC_value=$MPICC
     955ac_cv_env_MPICC_set=${MPICC+set}
     956ac_cv_env_MPICC_value=$MPICC
     957ac_env_CXXDEFS_set=${CXXDEFS+set}
     958ac_env_CXXDEFS_value=$CXXDEFS
     959ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
     960ac_cv_env_CXXDEFS_value=$CXXDEFS
     961ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
     962ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
     963ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
     964ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
     965ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
     966ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
     967ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
     968ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
     969ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
     970ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
     971ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
     972ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
     973ac_env_CXX_set=${CXX+set}
     974ac_env_CXX_value=$CXX
     975ac_cv_env_CXX_set=${CXX+set}
     976ac_cv_env_CXX_value=$CXX
     977ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     978ac_env_CXXFLAGS_value=$CXXFLAGS
     979ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     980ac_cv_env_CXXFLAGS_value=$CXXFLAGS
     981ac_env_MPICXX_set=${MPICXX+set}
     982ac_env_MPICXX_value=$MPICXX
     983ac_cv_env_MPICXX_set=${MPICXX+set}
     984ac_cv_env_MPICXX_value=$MPICXX
     985ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
     986ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
     987ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
     988ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
     989ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
     990ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
     991ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
     992ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
     993ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
     994ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
     995ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
     996ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
     997ac_env_F77_set=${F77+set}
     998ac_env_F77_value=$F77
     999ac_cv_env_F77_set=${F77+set}
     1000ac_cv_env_F77_value=$F77
     1001ac_env_FFLAGS_set=${FFLAGS+set}
     1002ac_env_FFLAGS_value=$FFLAGS
     1003ac_cv_env_FFLAGS_set=${FFLAGS+set}
     1004ac_cv_env_FFLAGS_value=$FFLAGS
     1005ac_env_MPIF77_set=${MPIF77+set}
     1006ac_env_MPIF77_value=$MPIF77
     1007ac_cv_env_MPIF77_set=${MPIF77+set}
     1008ac_cv_env_MPIF77_value=$MPIF77
     1009ac_env_CPP_set=${CPP+set}
     1010ac_env_CPP_value=$CPP
     1011ac_cv_env_CPP_set=${CPP+set}
     1012ac_cv_env_CPP_value=$CPP
     1013ac_env_CXXCPP_set=${CXXCPP+set}
     1014ac_env_CXXCPP_value=$CXXCPP
     1015ac_cv_env_CXXCPP_set=${CXXCPP+set}
     1016ac_cv_env_CXXCPP_value=$CXXCPP
    7301017ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
    7311018ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
     
    7971084  --program-suffix=SUFFIX            append SUFFIX to installed program names
    7981085  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
     1086
     1087System types:
     1088  --build=BUILD     configure for building on BUILD [guessed]
     1089  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    7991090_ACEOF
    8001091fi
     
    8091100  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    8101101  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     1102  --enable-debug          compile all projects with debug options tests
     1103  --enable-doscompile     Under Cygwin, compile so that executables run under
     1104                          DOS. Set to mingw to use gcc/g++/ld with
     1105                          -mno-cygwin. Set to msvc to use cl/link. Default
     1106                          when mentioned: mingw. Default when not mentioned:
     1107                          disabled.
     1108  --enable-static[=PKGS]
     1109                          build static libraries [default=no]
     1110  --disable-dependency-tracking  speeds up one-time build
     1111  --enable-dependency-tracking   do not reject slow dependency extractors
    8111112  --enable-maintainer-mode  enable make rules and dependencies not useful
    8121113                          (and sometimes confusing) to the casual installer
     1114  --enable-shared[=PKGS]
     1115                          build shared libraries [default=yes]
     1116  --enable-fast-install[=PKGS]
     1117                          optimize for fast installation [default=yes]
     1118  --disable-libtool-lock  avoid locking (might break parallel builds)
     1119
     1120Optional Packages:
     1121  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     1122  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     1123  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
     1124  --with-pic              try to use only PIC/non-PIC objects [default=use
     1125                          both]
     1126  --with-tags[=TAGS]
     1127                          include additional configurations [automatic]
    8131128
    8141129Some influential environment variables:
     1130  CDEFS       Additional -D flags to be used when compiling C code.
     1131  ADD_CFLAGS  Additional C compiler options
     1132  DBG_CFLAGS  Debug C compiler options
     1133  OPT_CFLAGS  Optimize C compiler options
     1134  CC          C compiler command
     1135  CFLAGS      C compiler flags
     1136  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     1137              nonstandard directory <lib dir>
     1138  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     1139              headers in a nonstandard directory <include dir>
     1140  MPICC       C MPI Compiler
     1141  CXXDEFS     Additional -D flags to be used when compiling C++ code.
     1142  ADD_CXXFLAGS
     1143              Additional C++ compiler options
     1144  DBG_CXXFLAGS
     1145              Debug C++ compiler options
     1146  OPT_CXXFLAGS
     1147              Optimize C++ compiler options
     1148  CXX         C++ compiler command
     1149  CXXFLAGS    C++ compiler flags
     1150  MPICXX      C++ MPI Compiler
     1151  ADD_FFLAGS  Additional Fortran compiler options
     1152  DBG_FFLAGS  Debug Fortran compiler options
     1153  OPT_FFLAGS  Optimize Fortran compiler options
     1154  F77         Fortran 77 compiler command
     1155  FFLAGS      Fortran 77 compiler flags
     1156  MPIF77      Fortran MPI Compiler
     1157  CPP         C preprocessor
     1158  CXXCPP      C++ preprocessor
    8151159  COIN_SKIP_PROJECTS
    8161160              Set to the subdirectories of projects that should be skipped in
     
    12881632
    12891633#############################################################################
    1290 #     We only need automake to generate Makefiles for the distribution      #
     1634#              Create the libtool script for the subdirectories             #
    12911635#############################################################################
    12921636
    1293 # Initialize automake
    1294 echo "$as_me:$LINENO: checking for egrep" >&5
    1295 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    1296 if test "${ac_cv_prog_egrep+set}" = set; then
    1297   echo $ECHO_N "(cached) $ECHO_C" >&6
    1298 else
    1299   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    1300     then ac_cv_prog_egrep='grep -E'
    1301     else ac_cv_prog_egrep='egrep'
    1302     fi
    1303 fi
    1304 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    1305 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    1306  EGREP=$ac_cv_prog_egrep
    1307 
    1308 
    1309 am__api_version="1.9"
    13101637ac_aux_dir=
    13111638for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     
    13331660ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    13341661
     1662# Make sure we can run config.sub.
     1663$ac_config_sub sun4 >/dev/null 2>&1 ||
     1664  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
     1665echo "$as_me: error: cannot run $ac_config_sub" >&2;}
     1666   { (exit 1); exit 1; }; }
     1667
     1668echo "$as_me:$LINENO: checking build system type" >&5
     1669echo $ECHO_N "checking build system type... $ECHO_C" >&6
     1670if test "${ac_cv_build+set}" = set; then
     1671  echo $ECHO_N "(cached) $ECHO_C" >&6
     1672else
     1673  ac_cv_build_alias=$build_alias
     1674test -z "$ac_cv_build_alias" &&
     1675  ac_cv_build_alias=`$ac_config_guess`
     1676test -z "$ac_cv_build_alias" &&
     1677  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
     1678echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
     1679   { (exit 1); exit 1; }; }
     1680ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
     1681  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
     1682echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
     1683   { (exit 1); exit 1; }; }
     1684
     1685fi
     1686echo "$as_me:$LINENO: result: $ac_cv_build" >&5
     1687echo "${ECHO_T}$ac_cv_build" >&6
     1688build=$ac_cv_build
     1689build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1690build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1691build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1692
     1693
     1694
     1695# Check if user wants to produce debugging code
     1696
     1697echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
     1698echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
     1699
     1700# Check whether --enable-debug or --disable-debug was given.
     1701if test "${enable_debug+set}" = set; then
     1702  enableval="$enable_debug"
     1703  case "${enableval}" in
     1704   yes) coin_debug_compile=true
     1705        enable_shared=no
     1706        ;;
     1707   no)  coin_debug_compile=false
     1708        ;;
     1709   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
     1710echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
     1711   { (exit 1); exit 1; }; }
     1712        ;;
     1713esac
     1714else
     1715  coin_debug_compile=false
     1716fi;
     1717
     1718 # m4_ifvaln([],
     1719
     1720if test $coin_debug_compile = true; then
     1721  echo "$as_me:$LINENO: result: yes" >&5
     1722echo "${ECHO_T}yes" >&6
     1723else
     1724  echo "$as_me:$LINENO: result: no" >&5
     1725echo "${ECHO_T}no" >&6
     1726fi
     1727
     1728 # m4_ifvaln([],
     1729
     1730
     1731
     1732# Get the name of the C compiler and appropriate compiler options
     1733case $build in
     1734  *-mingw*)
     1735    if test "${LD+set}" = set; then :; else
     1736      LD=link
     1737    fi
     1738    ;;
     1739 esac
     1740 case $enable_doscompile in
     1741   msvc)
     1742     if test "x${LD+set}" = xset; then :; else
     1743       LD=link
     1744     fi
     1745     ;;
     1746 esac
     1747
     1748
     1749 # Check whether --enable-doscompile or --disable-doscompile was given.
     1750if test "${enable_doscompile+set}" = set; then
     1751  enableval="$enable_doscompile"
     1752  if test "$enable_doscompile" != no; then
     1753     case $build in
     1754       *-cygwin*) ;;
     1755       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
     1756echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
     1757   { (exit 1); exit 1; }; } ;;
     1758     esac
     1759   fi
     1760else
     1761  enable_doscompile=no
     1762fi;
     1763 case "$enable_doscompile" in
     1764   msvc|mingw|no) ;;
     1765   yes) enable_doscompile=mingw ;;
     1766   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
     1767                    Try configure --help=recursive." >&5
     1768echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
     1769                    Try configure --help=recursive." >&2;}
     1770   { (exit 1); exit 1; }; }
     1771      ;;
     1772  esac
     1773  if test "$enable_doscompile" != no ; then
     1774    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
     1775echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
     1776  fi
     1777
     1778
     1779
     1780
     1781ac_ext=c
     1782ac_cpp='$CPP $CPPFLAGS'
     1783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1785ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1786
     1787
     1788# For consistency, we set the C compiler to the same value of the C++
     1789# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
     1790if test x"$CXX" != x; then
     1791  case "$CXX" in
     1792    cl* | */cl* | CL* | */CL*)
     1793      if test x"$CC" = x; then
     1794        CC="$CXX"
     1795        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
     1796echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
     1797      fi
     1798      ;;
     1799  esac
     1800fi
     1801
     1802
     1803
     1804
     1805
     1806
     1807coin_has_cc=yes
     1808
     1809save_cflags="$CFLAGS"
     1810# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
     1811# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
     1812# is likely to be a non-functional shell. But many installations will have
     1813# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
     1814case $build in
     1815  *-cygwin* | *-mingw*)
     1816             if test "$enable_doscompile" = msvc ; then
     1817               comps="cl"
     1818             else
     1819               comps="gcc cl"
     1820             fi ;;
     1821  sparc-sun-solaris*)
     1822             comps="cc xlc gcc pgcc icc" ;;
     1823  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
     1824  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
     1825esac
     1826
     1827# We delete the cached value, since the test might not have been
     1828# performed with our choice of compilers earlier
     1829$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
     1830# AC_MSG_NOTICE([C compiler candidates: $comps])
     1831ac_ext=c
     1832ac_cpp='$CPP $CPPFLAGS'
     1833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1835ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1836if test -n "$ac_tool_prefix"; then
     1837  for ac_prog in $comps
     1838  do
     1839    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1840set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1841echo "$as_me:$LINENO: checking for $ac_word" >&5
     1842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1843if test "${ac_cv_prog_CC+set}" = set; then
     1844  echo $ECHO_N "(cached) $ECHO_C" >&6
     1845else
     1846  if test -n "$CC"; then
     1847  ac_cv_prog_CC="$CC" # Let the user override the test.
     1848else
     1849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1850for as_dir in $PATH
     1851do
     1852  IFS=$as_save_IFS
     1853  test -z "$as_dir" && as_dir=.
     1854  for ac_exec_ext in '' $ac_executable_extensions; do
     1855  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1856    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     1857    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1858    break 2
     1859  fi
     1860done
     1861done
     1862
     1863fi
     1864fi
     1865CC=$ac_cv_prog_CC
     1866if test -n "$CC"; then
     1867  echo "$as_me:$LINENO: result: $CC" >&5
     1868echo "${ECHO_T}$CC" >&6
     1869else
     1870  echo "$as_me:$LINENO: result: no" >&5
     1871echo "${ECHO_T}no" >&6
     1872fi
     1873
     1874    test -n "$CC" && break
     1875  done
     1876fi
     1877if test -z "$CC"; then
     1878  ac_ct_CC=$CC
     1879  for ac_prog in $comps
     1880do
     1881  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1882set dummy $ac_prog; ac_word=$2
     1883echo "$as_me:$LINENO: checking for $ac_word" >&5
     1884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1885if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1886  echo $ECHO_N "(cached) $ECHO_C" >&6
     1887else
     1888  if test -n "$ac_ct_CC"; then
     1889  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1890else
     1891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1892for as_dir in $PATH
     1893do
     1894  IFS=$as_save_IFS
     1895  test -z "$as_dir" && as_dir=.
     1896  for ac_exec_ext in '' $ac_executable_extensions; do
     1897  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1898    ac_cv_prog_ac_ct_CC="$ac_prog"
     1899    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1900    break 2
     1901  fi
     1902done
     1903done
     1904
     1905fi
     1906fi
     1907ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1908if test -n "$ac_ct_CC"; then
     1909  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1910echo "${ECHO_T}$ac_ct_CC" >&6
     1911else
     1912  echo "$as_me:$LINENO: result: no" >&5
     1913echo "${ECHO_T}no" >&6
     1914fi
     1915
     1916  test -n "$ac_ct_CC" && break
     1917done
     1918
     1919  CC=$ac_ct_CC
     1920fi
     1921
     1922
     1923test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     1924See \`config.log' for more details." >&5
     1925echo "$as_me: error: no acceptable C compiler found in \$PATH
     1926See \`config.log' for more details." >&2;}
     1927   { (exit 1); exit 1; }; }
     1928
     1929# Provide some information about the compiler.
     1930echo "$as_me:$LINENO:" \
     1931     "checking for C compiler version" >&5
     1932ac_compiler=`set X $ac_compile; echo $2`
     1933{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     1934  (eval $ac_compiler --version </dev/null >&5) 2>&5
     1935  ac_status=$?
     1936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1937  (exit $ac_status); }
     1938{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     1939  (eval $ac_compiler -v </dev/null >&5) 2>&5
     1940  ac_status=$?
     1941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1942  (exit $ac_status); }
     1943{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     1944  (eval $ac_compiler -V </dev/null >&5) 2>&5
     1945  ac_status=$?
     1946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1947  (exit $ac_status); }
     1948
     1949cat >conftest.$ac_ext <<_ACEOF
     1950/* confdefs.h.  */
     1951_ACEOF
     1952cat confdefs.h >>conftest.$ac_ext
     1953cat >>conftest.$ac_ext <<_ACEOF
     1954/* end confdefs.h.  */
     1955
     1956int
     1957main ()
     1958{
     1959
     1960  ;
     1961  return 0;
     1962}
     1963_ACEOF
     1964ac_clean_files_save=$ac_clean_files
     1965ac_clean_files="$ac_clean_files a.out a.exe b.out"
     1966# Try to create an executable without -o first, disregard a.out.
     1967# It will help us diagnose broken compilers, and finding out an intuition
     1968# of exeext.
     1969echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     1970echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
     1971ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     1972if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     1973  (eval $ac_link_default) 2>&5
     1974  ac_status=$?
     1975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1976  (exit $ac_status); }; then
     1977  # Find the output, starting from the most likely.  This scheme is
     1978# not robust to junk in `.', hence go to wildcards (a.*) only as a last
     1979# resort.
     1980
     1981# Be careful to initialize this variable, since it used to be cached.
     1982# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
     1983ac_cv_exeext=
     1984# b.out is created by i960 compilers.
     1985for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
     1986do
     1987  test -f "$ac_file" || continue
     1988  case $ac_file in
     1989    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
     1990        ;;
     1991    conftest.$ac_ext )
     1992        # This is the source file.
     1993        ;;
     1994    [ab].out )
     1995        # We found the default executable, but exeext='' is most
     1996        # certainly right.
     1997        break;;
     1998    *.* )
     1999        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2000        # FIXME: I believe we export ac_cv_exeext for Libtool,
     2001        # but it would be cool to find out if it's true.  Does anybody
     2002        # maintain Libtool? --akim.
     2003        export ac_cv_exeext
     2004        break;;
     2005    * )
     2006        break;;
     2007  esac
     2008done
     2009else
     2010  echo "$as_me: failed program was:" >&5
     2011sed 's/^/| /' conftest.$ac_ext >&5
     2012
     2013{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
     2014See \`config.log' for more details." >&5
     2015echo "$as_me: error: C compiler cannot create executables
     2016See \`config.log' for more details." >&2;}
     2017   { (exit 77); exit 77; }; }
     2018fi
     2019
     2020ac_exeext=$ac_cv_exeext
     2021echo "$as_me:$LINENO: result: $ac_file" >&5
     2022echo "${ECHO_T}$ac_file" >&6
     2023
     2024# Check the compiler produces executables we can run.  If not, either
     2025# the compiler is broken, or we cross compile.
     2026echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     2027echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
     2028# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     2029# If not cross compiling, check that we can run a simple program.
     2030if test "$cross_compiling" != yes; then
     2031  if { ac_try='./$ac_file'
     2032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2033  (eval $ac_try) 2>&5
     2034  ac_status=$?
     2035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2036  (exit $ac_status); }; }; then
     2037    cross_compiling=no
     2038  else
     2039    if test "$cross_compiling" = maybe; then
     2040        cross_compiling=yes
     2041    else
     2042        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
     2043If you meant to cross compile, use \`--host'.
     2044See \`config.log' for more details." >&5
     2045echo "$as_me: error: cannot run C compiled programs.
     2046If you meant to cross compile, use \`--host'.
     2047See \`config.log' for more details." >&2;}
     2048   { (exit 1); exit 1; }; }
     2049    fi
     2050  fi
     2051fi
     2052echo "$as_me:$LINENO: result: yes" >&5
     2053echo "${ECHO_T}yes" >&6
     2054
     2055rm -f a.out a.exe conftest$ac_cv_exeext b.out
     2056ac_clean_files=$ac_clean_files_save
     2057# Check the compiler produces executables we can run.  If not, either
     2058# the compiler is broken, or we cross compile.
     2059echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
     2060echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
     2061echo "$as_me:$LINENO: result: $cross_compiling" >&5
     2062echo "${ECHO_T}$cross_compiling" >&6
     2063
     2064echo "$as_me:$LINENO: checking for suffix of executables" >&5
     2065echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
     2066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2067  (eval $ac_link) 2>&5
     2068  ac_status=$?
     2069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2070  (exit $ac_status); }; then
     2071  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     2072# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     2073# work properly (i.e., refer to `conftest.exe'), while it won't with
     2074# `rm'.
     2075for ac_file in conftest.exe conftest conftest.*; do
     2076  test -f "$ac_file" || continue
     2077  case $ac_file in
     2078    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
     2079    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2080          export ac_cv_exeext
     2081          break;;
     2082    * ) break;;
     2083  esac
     2084done
     2085else
     2086  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     2087See \`config.log' for more details." >&5
     2088echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     2089See \`config.log' for more details." >&2;}
     2090   { (exit 1); exit 1; }; }
     2091fi
     2092
     2093rm -f conftest$ac_cv_exeext
     2094echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
     2095echo "${ECHO_T}$ac_cv_exeext" >&6
     2096
     2097rm -f conftest.$ac_ext
     2098EXEEXT=$ac_cv_exeext
     2099ac_exeext=$EXEEXT
     2100echo "$as_me:$LINENO: checking for suffix of object files" >&5
     2101echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
     2102if test "${ac_cv_objext+set}" = set; then
     2103  echo $ECHO_N "(cached) $ECHO_C" >&6
     2104else
     2105  cat >conftest.$ac_ext <<_ACEOF
     2106/* confdefs.h.  */
     2107_ACEOF
     2108cat confdefs.h >>conftest.$ac_ext
     2109cat >>conftest.$ac_ext <<_ACEOF
     2110/* end confdefs.h.  */
     2111
     2112int
     2113main ()
     2114{
     2115
     2116  ;
     2117  return 0;
     2118}
     2119_ACEOF
     2120rm -f conftest.o conftest.obj
     2121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2122  (eval $ac_compile) 2>&5
     2123  ac_status=$?
     2124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2125  (exit $ac_status); }; then
     2126  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     2127  case $ac_file in
     2128    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
     2129    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     2130       break;;
     2131  esac
     2132done
     2133else
     2134  echo "$as_me: failed program was:" >&5
     2135sed 's/^/| /' conftest.$ac_ext >&5
     2136
     2137{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     2138See \`config.log' for more details." >&5
     2139echo "$as_me: error: cannot compute suffix of object files: cannot compile
     2140See \`config.log' for more details." >&2;}
     2141   { (exit 1); exit 1; }; }
     2142fi
     2143
     2144rm -f conftest.$ac_cv_objext conftest.$ac_ext
     2145fi
     2146echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
     2147echo "${ECHO_T}$ac_cv_objext" >&6
     2148OBJEXT=$ac_cv_objext
     2149ac_objext=$OBJEXT
     2150echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
     2151echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     2152if test "${ac_cv_c_compiler_gnu+set}" = set; then
     2153  echo $ECHO_N "(cached) $ECHO_C" >&6
     2154else
     2155  cat >conftest.$ac_ext <<_ACEOF
     2156/* confdefs.h.  */
     2157_ACEOF
     2158cat confdefs.h >>conftest.$ac_ext
     2159cat >>conftest.$ac_ext <<_ACEOF
     2160/* end confdefs.h.  */
     2161
     2162int
     2163main ()
     2164{
     2165#ifndef __GNUC__
     2166       choke me
     2167#endif
     2168
     2169  ;
     2170  return 0;
     2171}
     2172_ACEOF
     2173rm -f conftest.$ac_objext
     2174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2175  (eval $ac_compile) 2>conftest.er1
     2176  ac_status=$?
     2177  grep -v '^ *+' conftest.er1 >conftest.err
     2178  rm -f conftest.er1
     2179  cat conftest.err >&5
     2180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2181  (exit $ac_status); } &&
     2182         { ac_try='test -z "$ac_c_werror_flag"
     2183                         || test ! -s conftest.err'
     2184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2185  (eval $ac_try) 2>&5
     2186  ac_status=$?
     2187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2188  (exit $ac_status); }; } &&
     2189         { ac_try='test -s conftest.$ac_objext'
     2190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2191  (eval $ac_try) 2>&5
     2192  ac_status=$?
     2193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2194  (exit $ac_status); }; }; then
     2195  ac_compiler_gnu=yes
     2196else
     2197  echo "$as_me: failed program was:" >&5
     2198sed 's/^/| /' conftest.$ac_ext >&5
     2199
     2200ac_compiler_gnu=no
     2201fi
     2202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2203ac_cv_c_compiler_gnu=$ac_compiler_gnu
     2204
     2205fi
     2206echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
     2207echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     2208GCC=`test $ac_compiler_gnu = yes && echo yes`
     2209ac_test_CFLAGS=${CFLAGS+set}
     2210ac_save_CFLAGS=$CFLAGS
     2211CFLAGS="-g"
     2212echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
     2213echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     2214if test "${ac_cv_prog_cc_g+set}" = set; then
     2215  echo $ECHO_N "(cached) $ECHO_C" >&6
     2216else
     2217  cat >conftest.$ac_ext <<_ACEOF
     2218/* confdefs.h.  */
     2219_ACEOF
     2220cat confdefs.h >>conftest.$ac_ext
     2221cat >>conftest.$ac_ext <<_ACEOF
     2222/* end confdefs.h.  */
     2223
     2224int
     2225main ()
     2226{
     2227
     2228  ;
     2229  return 0;
     2230}
     2231_ACEOF
     2232rm -f conftest.$ac_objext
     2233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2234  (eval $ac_compile) 2>conftest.er1
     2235  ac_status=$?
     2236  grep -v '^ *+' conftest.er1 >conftest.err
     2237  rm -f conftest.er1
     2238  cat conftest.err >&5
     2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2240  (exit $ac_status); } &&
     2241         { ac_try='test -z "$ac_c_werror_flag"
     2242                         || test ! -s conftest.err'
     2243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2244  (eval $ac_try) 2>&5
     2245  ac_status=$?
     2246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2247  (exit $ac_status); }; } &&
     2248         { ac_try='test -s conftest.$ac_objext'
     2249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2250  (eval $ac_try) 2>&5
     2251  ac_status=$?
     2252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2253  (exit $ac_status); }; }; then
     2254  ac_cv_prog_cc_g=yes
     2255else
     2256  echo "$as_me: failed program was:" >&5
     2257sed 's/^/| /' conftest.$ac_ext >&5
     2258
     2259ac_cv_prog_cc_g=no
     2260fi
     2261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2262fi
     2263echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     2264echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     2265if test "$ac_test_CFLAGS" = set; then
     2266  CFLAGS=$ac_save_CFLAGS
     2267elif test $ac_cv_prog_cc_g = yes; then
     2268  if test "$GCC" = yes; then
     2269    CFLAGS="-g -O2"
     2270  else
     2271    CFLAGS="-g"
     2272  fi
     2273else
     2274  if test "$GCC" = yes; then
     2275    CFLAGS="-O2"
     2276  else
     2277    CFLAGS=
     2278  fi
     2279fi
     2280echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
     2281echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
     2282if test "${ac_cv_prog_cc_stdc+set}" = set; then
     2283  echo $ECHO_N "(cached) $ECHO_C" >&6
     2284else
     2285  ac_cv_prog_cc_stdc=no
     2286ac_save_CC=$CC
     2287cat >conftest.$ac_ext <<_ACEOF
     2288/* confdefs.h.  */
     2289_ACEOF
     2290cat confdefs.h >>conftest.$ac_ext
     2291cat >>conftest.$ac_ext <<_ACEOF
     2292/* end confdefs.h.  */
     2293#include <stdarg.h>
     2294#include <stdio.h>
     2295#include <sys/types.h>
     2296#include <sys/stat.h>
     2297/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     2298struct buf { int x; };
     2299FILE * (*rcsopen) (struct buf *, struct stat *, int);
     2300static char *e (p, i)
     2301     char **p;
     2302     int i;
     2303{
     2304  return p[i];
     2305}
     2306static char *f (char * (*g) (char **, int), char **p, ...)
     2307{
     2308  char *s;
     2309  va_list v;
     2310  va_start (v,p);
     2311  s = g (p, va_arg (v,int));
     2312  va_end (v);
     2313  return s;
     2314}
     2315
     2316/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     2317   function prototypes and stuff, but not '\xHH' hex character constants.
     2318   These don't provoke an error unfortunately, instead are silently treated
     2319   as 'x'.  The following induces an error, until -std1 is added to get
     2320   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
     2321   array size at least.  It's necessary to write '\x00'==0 to get something
     2322   that's true only with -std1.  */
     2323int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     2324
     2325int test (int i, double x);
     2326struct s1 {int (*f) (int a);};
     2327struct s2 {int (*f) (double a);};
     2328int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
     2329int argc;
     2330char **argv;
     2331int
     2332main ()
     2333{
     2334return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
     2335  ;
     2336  return 0;
     2337}
     2338_ACEOF
     2339# Don't try gcc -ansi; that turns off useful extensions and
     2340# breaks some systems' header files.
     2341# AIX                   -qlanglvl=ansi
     2342# Ultrix and OSF/1      -std1
     2343# HP-UX 10.20 and later -Ae
     2344# HP-UX older versions  -Aa -D_HPUX_SOURCE
     2345# SVR4                  -Xc -D__EXTENSIONS__
     2346for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     2347do
     2348  CC="$ac_save_CC $ac_arg"
     2349  rm -f conftest.$ac_objext
     2350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2351  (eval $ac_compile) 2>conftest.er1
     2352  ac_status=$?
     2353  grep -v '^ *+' conftest.er1 >conftest.err
     2354  rm -f conftest.er1
     2355  cat conftest.err >&5
     2356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2357  (exit $ac_status); } &&
     2358         { ac_try='test -z "$ac_c_werror_flag"
     2359                         || test ! -s conftest.err'
     2360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2361  (eval $ac_try) 2>&5
     2362  ac_status=$?
     2363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2364  (exit $ac_status); }; } &&
     2365         { ac_try='test -s conftest.$ac_objext'
     2366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2367  (eval $ac_try) 2>&5
     2368  ac_status=$?
     2369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2370  (exit $ac_status); }; }; then
     2371  ac_cv_prog_cc_stdc=$ac_arg
     2372break
     2373else
     2374  echo "$as_me: failed program was:" >&5
     2375sed 's/^/| /' conftest.$ac_ext >&5
     2376
     2377fi
     2378rm -f conftest.err conftest.$ac_objext
     2379done
     2380rm -f conftest.$ac_ext conftest.$ac_objext
     2381CC=$ac_save_CC
     2382
     2383fi
     2384
     2385case "x$ac_cv_prog_cc_stdc" in
     2386  x|xno)
     2387    echo "$as_me:$LINENO: result: none needed" >&5
     2388echo "${ECHO_T}none needed" >&6 ;;
     2389  *)
     2390    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     2391echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     2392    CC="$CC $ac_cv_prog_cc_stdc" ;;
     2393esac
     2394
     2395# Some people use a C++ compiler to compile C.  Since we use `exit',
     2396# in C++ we need to declare it.  In case someone uses the same compiler
     2397# for both compiling C and C++ we need to have the C++ compiler decide
     2398# the declaration of exit, since it's the most demanding environment.
     2399cat >conftest.$ac_ext <<_ACEOF
     2400#ifndef __cplusplus
     2401  choke me
     2402#endif
     2403_ACEOF
     2404rm -f conftest.$ac_objext
     2405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2406  (eval $ac_compile) 2>conftest.er1
     2407  ac_status=$?
     2408  grep -v '^ *+' conftest.er1 >conftest.err
     2409  rm -f conftest.er1
     2410  cat conftest.err >&5
     2411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2412  (exit $ac_status); } &&
     2413         { ac_try='test -z "$ac_c_werror_flag"
     2414                         || test ! -s conftest.err'
     2415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2416  (eval $ac_try) 2>&5
     2417  ac_status=$?
     2418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2419  (exit $ac_status); }; } &&
     2420         { ac_try='test -s conftest.$ac_objext'
     2421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2422  (eval $ac_try) 2>&5
     2423  ac_status=$?
     2424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2425  (exit $ac_status); }; }; then
     2426  for ac_declaration in \
     2427   '' \
     2428   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2429   'extern "C" void std::exit (int); using std::exit;' \
     2430   'extern "C" void exit (int) throw ();' \
     2431   'extern "C" void exit (int);' \
     2432   'void exit (int);'
     2433do
     2434  cat >conftest.$ac_ext <<_ACEOF
     2435/* confdefs.h.  */
     2436_ACEOF
     2437cat confdefs.h >>conftest.$ac_ext
     2438cat >>conftest.$ac_ext <<_ACEOF
     2439/* end confdefs.h.  */
     2440$ac_declaration
     2441#include <stdlib.h>
     2442int
     2443main ()
     2444{
     2445exit (42);
     2446  ;
     2447  return 0;
     2448}
     2449_ACEOF
     2450rm -f conftest.$ac_objext
     2451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2452  (eval $ac_compile) 2>conftest.er1
     2453  ac_status=$?
     2454  grep -v '^ *+' conftest.er1 >conftest.err
     2455  rm -f conftest.er1
     2456  cat conftest.err >&5
     2457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2458  (exit $ac_status); } &&
     2459         { ac_try='test -z "$ac_c_werror_flag"
     2460                         || test ! -s conftest.err'
     2461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2462  (eval $ac_try) 2>&5
     2463  ac_status=$?
     2464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2465  (exit $ac_status); }; } &&
     2466         { ac_try='test -s conftest.$ac_objext'
     2467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2468  (eval $ac_try) 2>&5
     2469  ac_status=$?
     2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2471  (exit $ac_status); }; }; then
     2472  :
     2473else
     2474  echo "$as_me: failed program was:" >&5
     2475sed 's/^/| /' conftest.$ac_ext >&5
     2476
     2477continue
     2478fi
     2479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2480  cat >conftest.$ac_ext <<_ACEOF
     2481/* confdefs.h.  */
     2482_ACEOF
     2483cat confdefs.h >>conftest.$ac_ext
     2484cat >>conftest.$ac_ext <<_ACEOF
     2485/* end confdefs.h.  */
     2486$ac_declaration
     2487int
     2488main ()
     2489{
     2490exit (42);
     2491  ;
     2492  return 0;
     2493}
     2494_ACEOF
     2495rm -f conftest.$ac_objext
     2496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2497  (eval $ac_compile) 2>conftest.er1
     2498  ac_status=$?
     2499  grep -v '^ *+' conftest.er1 >conftest.err
     2500  rm -f conftest.er1
     2501  cat conftest.err >&5
     2502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2503  (exit $ac_status); } &&
     2504         { ac_try='test -z "$ac_c_werror_flag"
     2505                         || test ! -s conftest.err'
     2506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2507  (eval $ac_try) 2>&5
     2508  ac_status=$?
     2509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2510  (exit $ac_status); }; } &&
     2511         { ac_try='test -s conftest.$ac_objext'
     2512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2513  (eval $ac_try) 2>&5
     2514  ac_status=$?
     2515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2516  (exit $ac_status); }; }; then
     2517  break
     2518else
     2519  echo "$as_me: failed program was:" >&5
     2520sed 's/^/| /' conftest.$ac_ext >&5
     2521
     2522fi
     2523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2524done
     2525rm -f conftest*
     2526if test -n "$ac_declaration"; then
     2527  echo '#ifdef __cplusplus' >>confdefs.h
     2528  echo $ac_declaration      >>confdefs.h
     2529  echo '#endif'             >>confdefs.h
     2530fi
     2531
     2532else
     2533  echo "$as_me: failed program was:" >&5
     2534sed 's/^/| /' conftest.$ac_ext >&5
     2535
     2536fi
     2537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2538ac_ext=c
     2539ac_cpp='$CPP $CPPFLAGS'
     2540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2542ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2543
     2544if test -z "$CC" ; then
     2545  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
     2546echo "$as_me: error: Failed to find a C compiler!" >&2;}
     2547   { (exit 1); exit 1; }; }
     2548fi
     2549# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
     2550case "$CC" in
     2551  cl* | */cl* | CL* | */CL* )
     2552    if test "$ac_cv_prog_cc_g" = yes ; then
     2553      ac_cv_prog_cc_g=no
     2554      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
     2555echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
     2556    fi ;;
     2557esac
     2558CFLAGS="$save_cflags"
     2559
     2560# Check if a project specific CFLAGS variable has been set
     2561if test x$COIN_PRJCT != x; then
     2562  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
     2563  if test x$coin_tmp = xset; then
     2564    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
     2565  fi
     2566fi
     2567
     2568if test x"$CFLAGS" = x; then
     2569
     2570  coin_add_cflags=
     2571  coin_opt_cflags=
     2572  coin_dbg_cflags=
     2573  coin_warn_cflags=
     2574
     2575  if test "$GCC" = "yes"; then
     2576    case "$CC" in
     2577      icc* | */icc*)
     2578        ;;
     2579      *)
     2580        coin_opt_cflags="-O3 -fomit-frame-pointer"
     2581        coin_add_cflags="-pipe"
     2582        coin_dbg_cflags="-g"
     2583        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
     2584        case $enable_doscompile in
     2585          mingw)
     2586            CFLAGS="-mno-cygwin"
     2587            cat >conftest.$ac_ext <<_ACEOF
     2588/* confdefs.h.  */
     2589_ACEOF
     2590cat confdefs.h >>conftest.$ac_ext
     2591cat >>conftest.$ac_ext <<_ACEOF
     2592/* end confdefs.h.  */
     2593
     2594int
     2595main ()
     2596{
     2597int i=0; i++;
     2598  ;
     2599  return 0;
     2600}
     2601_ACEOF
     2602rm -f conftest.$ac_objext conftest$ac_exeext
     2603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2604  (eval $ac_link) 2>conftest.er1
     2605  ac_status=$?
     2606  grep -v '^ *+' conftest.er1 >conftest.err
     2607  rm -f conftest.er1
     2608  cat conftest.err >&5
     2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2610  (exit $ac_status); } &&
     2611         { ac_try='test -z "$ac_c_werror_flag"
     2612                         || test ! -s conftest.err'
     2613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2614  (eval $ac_try) 2>&5
     2615  ac_status=$?
     2616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2617  (exit $ac_status); }; } &&
     2618         { ac_try='test -s conftest$ac_exeext'
     2619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2620  (eval $ac_try) 2>&5
     2621  ac_status=$?
     2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2623  (exit $ac_status); }; }; then
     2624  coin_add_cflags="-mno-cygwin $coin_add_cflags"
     2625else
     2626  echo "$as_me: failed program was:" >&5
     2627sed 's/^/| /' conftest.$ac_ext >&5
     2628
     2629fi
     2630rm -f conftest.err conftest.$ac_objext \
     2631      conftest$ac_exeext conftest.$ac_ext
     2632            CFLAGS=
     2633          ;;
     2634        esac
     2635    esac
     2636  fi
     2637  if test -z "$coin_opt_cflags"; then
     2638    case $build in
     2639      *-cygwin* | *-mingw*)
     2640        case "$CC" in
     2641          cl* | */cl* | CL* | */CL*)
     2642            coin_opt_cflags='-MT -O2'
     2643            coin_add_cflags='-nologo -wd4996'
     2644            coin_dbg_cflags='-MTd'
     2645            ;;
     2646        esac
     2647        ;;
     2648      *-linux-*)
     2649        case "$CC" in
     2650          icc* | */icc*)
     2651            coin_opt_cflags="-O3 -ip"
     2652            coin_add_cflags=""
     2653            coin_dbg_cflags="-g"
     2654            # Check if -i_dynamic is necessary (for new glibc library)
     2655            CFLAGS=
     2656            cat >conftest.$ac_ext <<_ACEOF
     2657/* confdefs.h.  */
     2658_ACEOF
     2659cat confdefs.h >>conftest.$ac_ext
     2660cat >>conftest.$ac_ext <<_ACEOF
     2661/* end confdefs.h.  */
     2662
     2663int
     2664main ()
     2665{
     2666int i=0; i++;
     2667  ;
     2668  return 0;
     2669}
     2670_ACEOF
     2671rm -f conftest.$ac_objext conftest$ac_exeext
     2672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2673  (eval $ac_link) 2>conftest.er1
     2674  ac_status=$?
     2675  grep -v '^ *+' conftest.er1 >conftest.err
     2676  rm -f conftest.er1
     2677  cat conftest.err >&5
     2678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2679  (exit $ac_status); } &&
     2680         { ac_try='test -z "$ac_c_werror_flag"
     2681                         || test ! -s conftest.err'
     2682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2683  (eval $ac_try) 2>&5
     2684  ac_status=$?
     2685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2686  (exit $ac_status); }; } &&
     2687         { ac_try='test -s conftest$ac_exeext'
     2688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2689  (eval $ac_try) 2>&5
     2690  ac_status=$?
     2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2692  (exit $ac_status); }; }; then
     2693  :
     2694else
     2695  echo "$as_me: failed program was:" >&5
     2696sed 's/^/| /' conftest.$ac_ext >&5
     2697
     2698coin_add_cflags="-i_dynamic $coin_add_cflags"
     2699fi
     2700rm -f conftest.err conftest.$ac_objext \
     2701      conftest$ac_exeext conftest.$ac_ext
     2702            ;;
     2703          pgcc* | */pgcc*)
     2704            coin_opt_cflags="-fast"
     2705            coin_add_cflags="-Kieee -pc 64"
     2706            coin_dbg_cflags="-g"
     2707            ;;
     2708        esac
     2709        ;;
     2710      *-ibm-*)
     2711        case "$CC" in
     2712          xlc* | */xlc* | mpxlc* | */mpxlc*)
     2713            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
     2714            coin_add_cflags="-bmaxdata:0x80000000"
     2715            coin_dbg_cflags="-g"
     2716          ;;
     2717        esac
     2718        ;;
     2719      *-hp-*)
     2720        coin_opt_cflags="-O"
     2721        coin_add_cflags="-Ae"
     2722        coin_dbg_cflags="-g"
     2723        ;;
     2724      *-sun-*)
     2725        coin_opt_cflags="-xO4"
     2726        coin_dbg_cflags="-g"
     2727        ;;
     2728      *-sgi-*)
     2729        coin_opt_cflags="-O -OPT:Olimit=0"
     2730        coin_dbg_cflags="-g"
     2731        ;;
     2732    esac
     2733  fi
     2734
     2735  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
     2736    coin_dbg_cflags="-g"
     2737  fi
     2738
     2739  if test -z "$coin_opt_cflags"; then
     2740    # Try if -O option works if nothing else is set
     2741    CFLAGS="-O"
     2742    cat >conftest.$ac_ext <<_ACEOF
     2743/* confdefs.h.  */
     2744_ACEOF
     2745cat confdefs.h >>conftest.$ac_ext
     2746cat >>conftest.$ac_ext <<_ACEOF
     2747/* end confdefs.h.  */
     2748
     2749int
     2750main ()
     2751{
     2752int i=0; i++;
     2753  ;
     2754  return 0;
     2755}
     2756_ACEOF
     2757rm -f conftest.$ac_objext conftest$ac_exeext
     2758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2759  (eval $ac_link) 2>conftest.er1
     2760  ac_status=$?
     2761  grep -v '^ *+' conftest.er1 >conftest.err
     2762  rm -f conftest.er1
     2763  cat conftest.err >&5
     2764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2765  (exit $ac_status); } &&
     2766         { ac_try='test -z "$ac_c_werror_flag"
     2767                         || test ! -s conftest.err'
     2768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2769  (eval $ac_try) 2>&5
     2770  ac_status=$?
     2771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2772  (exit $ac_status); }; } &&
     2773         { ac_try='test -s conftest$ac_exeext'
     2774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2775  (eval $ac_try) 2>&5
     2776  ac_status=$?
     2777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2778  (exit $ac_status); }; }; then
     2779  coin_opt_cflags="-O"
     2780else
     2781  echo "$as_me: failed program was:" >&5
     2782sed 's/^/| /' conftest.$ac_ext >&5
     2783
     2784fi
     2785rm -f conftest.err conftest.$ac_objext \
     2786      conftest$ac_exeext conftest.$ac_ext
     2787  fi
     2788
     2789  # if PM doesn't want the warning messages, take them out
     2790  if test x"$coin_skip_warn_cflags" = xyes; then
     2791    coin_warn_cflags=
     2792  fi
     2793
     2794  if test x${DBG_CFLAGS+set} != xset; then
     2795    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
     2796  fi
     2797  if test x${OPT_CFLAGS+set} != xset; then
     2798    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
     2799  fi
     2800
     2801  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
     2802  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
     2803
     2804  if test "$coin_debug_compile" = "true"; then
     2805    CFLAGS="$DBG_CFLAGS"
     2806  else
     2807    CFLAGS="$OPT_CFLAGS"
     2808  fi
     2809else
     2810  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
     2811  if test x${DBG_CFLAGS+set} != xset; then
     2812    DBG_CFLAGS="$CFLAGS"
     2813  fi
     2814  if test x${OPT_CFLAGS+set} != xset; then
     2815    OPT_CFLAGS="$CFLAGS"
     2816  fi
     2817fi
     2818
     2819# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
     2820
     2821case "$CFLAGS" in
     2822  *-mno-cygwin*)
     2823    if test x${CPPFLAGS+set} != xset ; then
     2824      CPPFLAGS="-mno-cygwin"
     2825    else
     2826      case "$CPPFLAGS" in
     2827        *-mno-cygwin*)
     2828          ;;
     2829        *)
     2830          CPPFLAGS="$CPPFLAGS -mno-cygwin"
     2831          ;;
     2832      esac
     2833    fi ;;
     2834esac
     2835
     2836# Try if CFLAGS works
     2837save_CFLAGS="$CFLAGS"
     2838cat >conftest.$ac_ext <<_ACEOF
     2839/* confdefs.h.  */
     2840_ACEOF
     2841cat confdefs.h >>conftest.$ac_ext
     2842cat >>conftest.$ac_ext <<_ACEOF
     2843/* end confdefs.h.  */
     2844
     2845int
     2846main ()
     2847{
     2848int i=0; i++;
     2849  ;
     2850  return 0;
     2851}
     2852_ACEOF
     2853rm -f conftest.$ac_objext conftest$ac_exeext
     2854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2855  (eval $ac_link) 2>conftest.er1
     2856  ac_status=$?
     2857  grep -v '^ *+' conftest.er1 >conftest.err
     2858  rm -f conftest.er1
     2859  cat conftest.err >&5
     2860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2861  (exit $ac_status); } &&
     2862         { ac_try='test -z "$ac_c_werror_flag"
     2863                         || test ! -s conftest.err'
     2864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2865  (eval $ac_try) 2>&5
     2866  ac_status=$?
     2867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2868  (exit $ac_status); }; } &&
     2869         { ac_try='test -s conftest$ac_exeext'
     2870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2871  (eval $ac_try) 2>&5
     2872  ac_status=$?
     2873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2874  (exit $ac_status); }; }; then
     2875  :
     2876else
     2877  echo "$as_me: failed program was:" >&5
     2878sed 's/^/| /' conftest.$ac_ext >&5
     2879
     2880CFLAGS=
     2881fi
     2882rm -f conftest.err conftest.$ac_objext \
     2883      conftest$ac_exeext conftest.$ac_ext
     2884if test -z "$CFLAGS"; then
     2885  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
     2886echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
     2887  CFLAGS='-O'
     2888  cat >conftest.$ac_ext <<_ACEOF
     2889/* confdefs.h.  */
     2890_ACEOF
     2891cat confdefs.h >>conftest.$ac_ext
     2892cat >>conftest.$ac_ext <<_ACEOF
     2893/* end confdefs.h.  */
     2894
     2895int
     2896main ()
     2897{
     2898int i=0; i++;
     2899  ;
     2900  return 0;
     2901}
     2902_ACEOF
     2903rm -f conftest.$ac_objext conftest$ac_exeext
     2904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2905  (eval $ac_link) 2>conftest.er1
     2906  ac_status=$?
     2907  grep -v '^ *+' conftest.er1 >conftest.err
     2908  rm -f conftest.er1
     2909  cat conftest.err >&5
     2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2911  (exit $ac_status); } &&
     2912         { ac_try='test -z "$ac_c_werror_flag"
     2913                         || test ! -s conftest.err'
     2914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2915  (eval $ac_try) 2>&5
     2916  ac_status=$?
     2917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2918  (exit $ac_status); }; } &&
     2919         { ac_try='test -s conftest$ac_exeext'
     2920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2921  (eval $ac_try) 2>&5
     2922  ac_status=$?
     2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2924  (exit $ac_status); }; }; then
     2925  :
     2926else
     2927  echo "$as_me: failed program was:" >&5
     2928sed 's/^/| /' conftest.$ac_ext >&5
     2929
     2930CFLAGS=
     2931fi
     2932rm -f conftest.err conftest.$ac_objext \
     2933      conftest$ac_exeext conftest.$ac_ext
     2934  if test -z "$CFLAGS"; then
     2935    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
     2936echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
     2937  fi
     2938fi
     2939
     2940{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
     2941echo "$as_me: C compiler options are: $CFLAGS" >&6;}
     2942
     2943
     2944if test x"$MPICC" = x; then :; else
     2945  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
     2946echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
     2947  CC="$MPICC"
     2948fi
     2949
     2950# Correct ADDLIBS initialization if we are using the MS compiler
     2951case "$CC" in
     2952  cl* | */cl* | CL* | */CL*)
     2953    ADDLIBS=
     2954    case $build in
     2955  *-mingw*)
     2956    if test "${LD+set}" = set; then :; else
     2957      LD=link
     2958    fi
     2959    ;;
     2960 esac
     2961 case $enable_doscompile in
     2962   msvc)
     2963     if test "x${LD+set}" = xset; then :; else
     2964       LD=link
     2965     fi
     2966     ;;
     2967 esac
     2968
     2969    ;;
     2970esac
     2971
     2972ac_ext=c
     2973ac_cpp='$CPP $CPPFLAGS'
     2974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2976ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2977
     2978
     2979
     2980# Get the name of the C++ compiler and appropriate compiler options
     2981
     2982 #Let's try if that overcomes configuration problem with VC++ 6.0
     2983
     2984ac_ext=cc
     2985ac_cpp='$CXXCPP $CPPFLAGS'
     2986ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2987ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2988ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     2989
     2990
     2991
     2992
     2993
     2994
     2995
     2996coin_has_cxx=yes
     2997
     2998save_cxxflags="$CXXFLAGS"
     2999# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
     3000case $build in
     3001  *-cygwin* | *-mingw*)
     3002             if test "$enable_doscompile" = msvc ; then
     3003               comps="cl"
     3004             else
     3005               comps="g++ cl"
     3006             fi ;;
     3007  sparc-sun-solaris*)
     3008             comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
     3009  *-darwin*) comps="g++ c++ CC" ;;
     3010          *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
     3011esac
     3012
     3013# We delete the cached value, since the test might not have been
     3014# performed with our choice of compilers earlier
     3015$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
     3016# AC_MSG_NOTICE([C++ compiler candidates: $comps])
     3017ac_ext=cc
     3018ac_cpp='$CXXCPP $CPPFLAGS'
     3019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     3022if test -n "$ac_tool_prefix"; then
     3023  for ac_prog in $CCC $comps
     3024  do
     3025    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     3026set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     3027echo "$as_me:$LINENO: checking for $ac_word" >&5
     3028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3029if test "${ac_cv_prog_CXX+set}" = set; then
     3030  echo $ECHO_N "(cached) $ECHO_C" >&6
     3031else
     3032  if test -n "$CXX"; then
     3033  ac_cv_prog_CXX="$CXX" # Let the user override the test.
     3034else
     3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3036for as_dir in $PATH
     3037do
     3038  IFS=$as_save_IFS
     3039  test -z "$as_dir" && as_dir=.
     3040  for ac_exec_ext in '' $ac_executable_extensions; do
     3041  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3042    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     3043    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3044    break 2
     3045  fi
     3046done
     3047done
     3048
     3049fi
     3050fi
     3051CXX=$ac_cv_prog_CXX
     3052if test -n "$CXX"; then
     3053  echo "$as_me:$LINENO: result: $CXX" >&5
     3054echo "${ECHO_T}$CXX" >&6
     3055else
     3056  echo "$as_me:$LINENO: result: no" >&5
     3057echo "${ECHO_T}no" >&6
     3058fi
     3059
     3060    test -n "$CXX" && break
     3061  done
     3062fi
     3063if test -z "$CXX"; then
     3064  ac_ct_CXX=$CXX
     3065  for ac_prog in $CCC $comps
     3066do
     3067  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3068set dummy $ac_prog; ac_word=$2
     3069echo "$as_me:$LINENO: checking for $ac_word" >&5
     3070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3071if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     3072  echo $ECHO_N "(cached) $ECHO_C" >&6
     3073else
     3074  if test -n "$ac_ct_CXX"; then
     3075  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     3076else
     3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3078for as_dir in $PATH
     3079do
     3080  IFS=$as_save_IFS
     3081  test -z "$as_dir" && as_dir=.
     3082  for ac_exec_ext in '' $ac_executable_extensions; do
     3083  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3084    ac_cv_prog_ac_ct_CXX="$ac_prog"
     3085    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3086    break 2
     3087  fi
     3088done
     3089done
     3090
     3091fi
     3092fi
     3093ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     3094if test -n "$ac_ct_CXX"; then
     3095  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     3096echo "${ECHO_T}$ac_ct_CXX" >&6
     3097else
     3098  echo "$as_me:$LINENO: result: no" >&5
     3099echo "${ECHO_T}no" >&6
     3100fi
     3101
     3102  test -n "$ac_ct_CXX" && break
     3103done
     3104test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     3105
     3106  CXX=$ac_ct_CXX
     3107fi
     3108
     3109
     3110# Provide some information about the compiler.
     3111echo "$as_me:$LINENO:" \
     3112     "checking for C++ compiler version" >&5
     3113ac_compiler=`set X $ac_compile; echo $2`
     3114{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     3115  (eval $ac_compiler --version </dev/null >&5) 2>&5
     3116  ac_status=$?
     3117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3118  (exit $ac_status); }
     3119{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     3120  (eval $ac_compiler -v </dev/null >&5) 2>&5
     3121  ac_status=$?
     3122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3123  (exit $ac_status); }
     3124{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     3125  (eval $ac_compiler -V </dev/null >&5) 2>&5
     3126  ac_status=$?
     3127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3128  (exit $ac_status); }
     3129
     3130echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     3131echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     3132if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     3133  echo $ECHO_N "(cached) $ECHO_C" >&6
     3134else
     3135  cat >conftest.$ac_ext <<_ACEOF
     3136/* confdefs.h.  */
     3137_ACEOF
     3138cat confdefs.h >>conftest.$ac_ext
     3139cat >>conftest.$ac_ext <<_ACEOF
     3140/* end confdefs.h.  */
     3141
     3142int
     3143main ()
     3144{
     3145#ifndef __GNUC__
     3146       choke me
     3147#endif
     3148
     3149  ;
     3150  return 0;
     3151}
     3152_ACEOF
     3153rm -f conftest.$ac_objext
     3154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3155  (eval $ac_compile) 2>conftest.er1
     3156  ac_status=$?
     3157  grep -v '^ *+' conftest.er1 >conftest.err
     3158  rm -f conftest.er1
     3159  cat conftest.err >&5
     3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3161  (exit $ac_status); } &&
     3162         { ac_try='test -z "$ac_cxx_werror_flag"
     3163                         || test ! -s conftest.err'
     3164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3165  (eval $ac_try) 2>&5
     3166  ac_status=$?
     3167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3168  (exit $ac_status); }; } &&
     3169         { ac_try='test -s conftest.$ac_objext'
     3170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3171  (eval $ac_try) 2>&5
     3172  ac_status=$?
     3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3174  (exit $ac_status); }; }; then
     3175  ac_compiler_gnu=yes
     3176else
     3177  echo "$as_me: failed program was:" >&5
     3178sed 's/^/| /' conftest.$ac_ext >&5
     3179
     3180ac_compiler_gnu=no
     3181fi
     3182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3183ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     3184
     3185fi
     3186echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     3187echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     3188GXX=`test $ac_compiler_gnu = yes && echo yes`
     3189ac_test_CXXFLAGS=${CXXFLAGS+set}
     3190ac_save_CXXFLAGS=$CXXFLAGS
     3191CXXFLAGS="-g"
     3192echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     3193echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     3194if test "${ac_cv_prog_cxx_g+set}" = set; then
     3195  echo $ECHO_N "(cached) $ECHO_C" >&6
     3196else
     3197  cat >conftest.$ac_ext <<_ACEOF
     3198/* confdefs.h.  */
     3199_ACEOF
     3200cat confdefs.h >>conftest.$ac_ext
     3201cat >>conftest.$ac_ext <<_ACEOF
     3202/* end confdefs.h.  */
     3203
     3204int
     3205main ()
     3206{
     3207
     3208  ;
     3209  return 0;
     3210}
     3211_ACEOF
     3212rm -f conftest.$ac_objext
     3213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3214  (eval $ac_compile) 2>conftest.er1
     3215  ac_status=$?
     3216  grep -v '^ *+' conftest.er1 >conftest.err
     3217  rm -f conftest.er1
     3218  cat conftest.err >&5
     3219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3220  (exit $ac_status); } &&
     3221         { ac_try='test -z "$ac_cxx_werror_flag"
     3222                         || test ! -s conftest.err'
     3223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3224  (eval $ac_try) 2>&5
     3225  ac_status=$?
     3226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3227  (exit $ac_status); }; } &&
     3228         { ac_try='test -s conftest.$ac_objext'
     3229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3230  (eval $ac_try) 2>&5
     3231  ac_status=$?
     3232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3233  (exit $ac_status); }; }; then
     3234  ac_cv_prog_cxx_g=yes
     3235else
     3236  echo "$as_me: failed program was:" >&5
     3237sed 's/^/| /' conftest.$ac_ext >&5
     3238
     3239ac_cv_prog_cxx_g=no
     3240fi
     3241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3242fi
     3243echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     3244echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     3245if test "$ac_test_CXXFLAGS" = set; then
     3246  CXXFLAGS=$ac_save_CXXFLAGS
     3247elif test $ac_cv_prog_cxx_g = yes; then
     3248  if test "$GXX" = yes; then
     3249    CXXFLAGS="-g -O2"
     3250  else
     3251    CXXFLAGS="-g"
     3252  fi
     3253else
     3254  if test "$GXX" = yes; then
     3255    CXXFLAGS="-O2"
     3256  else
     3257    CXXFLAGS=
     3258  fi
     3259fi
     3260for ac_declaration in \
     3261   '' \
     3262   'extern "C" void std::exit (int) throw (); using std::exit;' \
     3263   'extern "C" void std::exit (int); using std::exit;' \
     3264   'extern "C" void exit (int) throw ();' \
     3265   'extern "C" void exit (int);' \
     3266   'void exit (int);'
     3267do
     3268  cat >conftest.$ac_ext <<_ACEOF
     3269/* confdefs.h.  */
     3270_ACEOF
     3271cat confdefs.h >>conftest.$ac_ext
     3272cat >>conftest.$ac_ext <<_ACEOF
     3273/* end confdefs.h.  */
     3274$ac_declaration
     3275#include <stdlib.h>
     3276int
     3277main ()
     3278{
     3279exit (42);
     3280  ;
     3281  return 0;
     3282}
     3283_ACEOF
     3284rm -f conftest.$ac_objext
     3285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3286  (eval $ac_compile) 2>conftest.er1
     3287  ac_status=$?
     3288  grep -v '^ *+' conftest.er1 >conftest.err
     3289  rm -f conftest.er1
     3290  cat conftest.err >&5
     3291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3292  (exit $ac_status); } &&
     3293         { ac_try='test -z "$ac_cxx_werror_flag"
     3294                         || test ! -s conftest.err'
     3295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3296  (eval $ac_try) 2>&5
     3297  ac_status=$?
     3298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3299  (exit $ac_status); }; } &&
     3300         { ac_try='test -s conftest.$ac_objext'
     3301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3302  (eval $ac_try) 2>&5
     3303  ac_status=$?
     3304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3305  (exit $ac_status); }; }; then
     3306  :
     3307else
     3308  echo "$as_me: failed program was:" >&5
     3309sed 's/^/| /' conftest.$ac_ext >&5
     3310
     3311continue
     3312fi
     3313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3314  cat >conftest.$ac_ext <<_ACEOF
     3315/* confdefs.h.  */
     3316_ACEOF
     3317cat confdefs.h >>conftest.$ac_ext
     3318cat >>conftest.$ac_ext <<_ACEOF
     3319/* end confdefs.h.  */
     3320$ac_declaration
     3321int
     3322main ()
     3323{
     3324exit (42);
     3325  ;
     3326  return 0;
     3327}
     3328_ACEOF
     3329rm -f conftest.$ac_objext
     3330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3331  (eval $ac_compile) 2>conftest.er1
     3332  ac_status=$?
     3333  grep -v '^ *+' conftest.er1 >conftest.err
     3334  rm -f conftest.er1
     3335  cat conftest.err >&5
     3336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3337  (exit $ac_status); } &&
     3338         { ac_try='test -z "$ac_cxx_werror_flag"
     3339                         || test ! -s conftest.err'
     3340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3341  (eval $ac_try) 2>&5
     3342  ac_status=$?
     3343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3344  (exit $ac_status); }; } &&
     3345         { ac_try='test -s conftest.$ac_objext'
     3346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3347  (eval $ac_try) 2>&5
     3348  ac_status=$?
     3349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3350  (exit $ac_status); }; }; then
     3351  break
     3352else
     3353  echo "$as_me: failed program was:" >&5
     3354sed 's/^/| /' conftest.$ac_ext >&5
     3355
     3356fi
     3357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3358done
     3359rm -f conftest*
     3360if test -n "$ac_declaration"; then
     3361  echo '#ifdef __cplusplus' >>confdefs.h
     3362  echo $ac_declaration      >>confdefs.h
     3363  echo '#endif'             >>confdefs.h
     3364fi
     3365
     3366ac_ext=cc
     3367ac_cpp='$CXXCPP $CPPFLAGS'
     3368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     3371
     3372if test -z "$CXX" ; then
     3373  { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5
     3374echo "$as_me: error: Failed to find a C++ compiler!" >&2;}
     3375   { (exit 1); exit 1; }; }
     3376fi
     3377
     3378# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
     3379case "$CXX" in
     3380  cl* | */cl* | CL* | */CL* )
     3381    if test "$ac_cv_prog_cxx_g" = yes ; then
     3382      ac_cv_prog_cxx_g=no
     3383      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
     3384echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
     3385    fi ;;
     3386esac
     3387CXXFLAGS="$save_cxxflags"
     3388
     3389# Check if a project specific CXXFLAGS variable has been set
     3390if test x$COIN_PRJCT != x; then
     3391  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
     3392  if test x$coin_tmp = xset; then
     3393    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
     3394  fi
     3395fi
     3396
     3397if test x"$CXXFLAGS" = x; then
     3398
     3399# ToDo decide whether we want -DNDEBUG for optimization
     3400  coin_add_cxxflags=
     3401  coin_opt_cxxflags=
     3402  coin_dbg_cxxflags=
     3403  coin_warn_cxxflags=
     3404
     3405  if test "$GXX" = "yes"; then
     3406    case "$CXX" in
     3407      icpc* | */icpc*)
     3408        ;;
     3409      *)
     3410# ToDo decide about unroll-loops
     3411        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
     3412        coin_add_cxxflags="-pipe"
     3413        coin_dbg_cxxflags="-g"
     3414        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
     3415        case $enable_doscompile in
     3416          mingw)
     3417            CXXFLAGS="-mno-cygwin"
     3418            cat >conftest.$ac_ext <<_ACEOF
     3419/* confdefs.h.  */
     3420_ACEOF
     3421cat confdefs.h >>conftest.$ac_ext
     3422cat >>conftest.$ac_ext <<_ACEOF
     3423/* end confdefs.h.  */
     3424
     3425int
     3426main ()
     3427{
     3428int i=0; i++;
     3429  ;
     3430  return 0;
     3431}
     3432_ACEOF
     3433rm -f conftest.$ac_objext conftest$ac_exeext
     3434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3435  (eval $ac_link) 2>conftest.er1
     3436  ac_status=$?
     3437  grep -v '^ *+' conftest.er1 >conftest.err
     3438  rm -f conftest.er1
     3439  cat conftest.err >&5
     3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3441  (exit $ac_status); } &&
     3442         { ac_try='test -z "$ac_cxx_werror_flag"
     3443                         || test ! -s conftest.err'
     3444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3445  (eval $ac_try) 2>&5
     3446  ac_status=$?
     3447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3448  (exit $ac_status); }; } &&
     3449         { ac_try='test -s conftest$ac_exeext'
     3450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3451  (eval $ac_try) 2>&5
     3452  ac_status=$?
     3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3454  (exit $ac_status); }; }; then
     3455  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
     3456else
     3457  echo "$as_me: failed program was:" >&5
     3458sed 's/^/| /' conftest.$ac_ext >&5
     3459
     3460fi
     3461rm -f conftest.err conftest.$ac_objext \
     3462      conftest$ac_exeext conftest.$ac_ext
     3463            CXXFLAGS=
     3464            ;;
     3465        esac
     3466    esac
     3467  fi
     3468
     3469# Note that we do not need to cover GCC in the following tests.
     3470
     3471  if test -z "$coin_opt_cxxflags"; then
     3472    case $build in
     3473      *-cygwin* | *-mingw*)
     3474        case "$CXX" in
     3475          cl* | */cl* | CL* | */CL*)
     3476            # The MT and MTd options are mutually exclusive
     3477            coin_opt_cxxflags='-MT -O2'
     3478            coin_add_cxxflags='-nologo -EHsc -GR -wd4996'
     3479            coin_dbg_cxxflags='-MTd'
     3480            ;;
     3481        esac
     3482        ;;
     3483      *-linux-*)
     3484        case "$CXX" in
     3485          icpc* | */icpc*)
     3486            coin_opt_cxxflags="-O3 -ip"
     3487            coin_add_cxxflags=""
     3488            coin_dbg_cxxflags="-g"
     3489            # Check if -i_dynamic is necessary (for new glibc library)
     3490            CXXFLAGS=
     3491            cat >conftest.$ac_ext <<_ACEOF
     3492/* confdefs.h.  */
     3493_ACEOF
     3494cat confdefs.h >>conftest.$ac_ext
     3495cat >>conftest.$ac_ext <<_ACEOF
     3496/* end confdefs.h.  */
     3497
     3498int
     3499main ()
     3500{
     3501int i=0; i++;
     3502  ;
     3503  return 0;
     3504}
     3505_ACEOF
     3506rm -f conftest.$ac_objext conftest$ac_exeext
     3507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3508  (eval $ac_link) 2>conftest.er1
     3509  ac_status=$?
     3510  grep -v '^ *+' conftest.er1 >conftest.err
     3511  rm -f conftest.er1
     3512  cat conftest.err >&5
     3513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3514  (exit $ac_status); } &&
     3515         { ac_try='test -z "$ac_cxx_werror_flag"
     3516                         || test ! -s conftest.err'
     3517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3518  (eval $ac_try) 2>&5
     3519  ac_status=$?
     3520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3521  (exit $ac_status); }; } &&
     3522         { ac_try='test -s conftest$ac_exeext'
     3523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3524  (eval $ac_try) 2>&5
     3525  ac_status=$?
     3526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3527  (exit $ac_status); }; }; then
     3528  :
     3529else
     3530  echo "$as_me: failed program was:" >&5
     3531sed 's/^/| /' conftest.$ac_ext >&5
     3532
     3533coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
     3534fi
     3535rm -f conftest.err conftest.$ac_objext \
     3536      conftest$ac_exeext conftest.$ac_ext
     3537            ;;
     3538          pgCC* | */pgCC*)
     3539            coin_opt_cxxflags="-fast"
     3540            coin_add_cxxflags="-Kieee -pc 64"
     3541            coin_dbg_cxxflags="-g"
     3542            ;;
     3543        esac
     3544        ;;
     3545      *-ibm-*)
     3546        case "$CXX" in
     3547          xlC* | */xlC* | mpxlC* | */mpxlC*)
     3548            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
     3549            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
     3550            coin_dbg_cxxflags="-g"
     3551            ;;
     3552        esac
     3553        ;;
     3554      *-hp-*)
     3555        case "$CXX" in
     3556          aCC* | */aCC* )
     3557            coin_opt_cxxflags="-O"
     3558            coin_add_cxxflags="-AA"
     3559            coin_dbg_cxxflags="-g"
     3560            ;;
     3561        esac
     3562        ;;
     3563      *-sun-*)
     3564          coin_opt_cxxflags="-O4"
     3565          coin_dbg_cxxflags="-g"
     3566        ;;
     3567    esac
     3568  fi
     3569
     3570# Generic flag settings. If these don't work, add a case above.
     3571
     3572  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
     3573    coin_dbg_cxxflags="-g"
     3574  fi
     3575
     3576  if test -z "$coin_opt_cxxflags"; then
     3577    # Try if -O option works if nothing else is set
     3578    CXXFLAGS=-O
     3579    cat >conftest.$ac_ext <<_ACEOF
     3580/* confdefs.h.  */
     3581_ACEOF
     3582cat confdefs.h >>conftest.$ac_ext
     3583cat >>conftest.$ac_ext <<_ACEOF
     3584/* end confdefs.h.  */
     3585
     3586int
     3587main ()
     3588{
     3589int i=0; i++;
     3590  ;
     3591  return 0;
     3592}
     3593_ACEOF
     3594rm -f conftest.$ac_objext conftest$ac_exeext
     3595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3596  (eval $ac_link) 2>conftest.er1
     3597  ac_status=$?
     3598  grep -v '^ *+' conftest.er1 >conftest.err
     3599  rm -f conftest.er1
     3600  cat conftest.err >&5
     3601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3602  (exit $ac_status); } &&
     3603         { ac_try='test -z "$ac_cxx_werror_flag"
     3604                         || test ! -s conftest.err'
     3605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3606  (eval $ac_try) 2>&5
     3607  ac_status=$?
     3608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3609  (exit $ac_status); }; } &&
     3610         { ac_try='test -s conftest$ac_exeext'
     3611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3612  (eval $ac_try) 2>&5
     3613  ac_status=$?
     3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3615  (exit $ac_status); }; }; then
     3616  coin_opt_cxxflags="-O"
     3617else
     3618  echo "$as_me: failed program was:" >&5
     3619sed 's/^/| /' conftest.$ac_ext >&5
     3620
     3621fi
     3622rm -f conftest.err conftest.$ac_objext \
     3623      conftest$ac_exeext conftest.$ac_ext
     3624  fi
     3625
     3626  # if PM doesn't want the warning messages, take them out
     3627  if test x"$coin_skip_warn_cxxflags" = xyes; then
     3628    coin_warn_cxxflags=
     3629  fi
     3630
     3631# Do final setup of flags based on values determined above.
     3632
     3633  if test x${DBG_CXXFLAGS+set} != xset; then
     3634    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
     3635  fi
     3636  if test x${OPT_CXXFLAGS+set} != xset; then
     3637    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
     3638  fi
     3639
     3640  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
     3641  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
     3642
     3643  if test "$coin_debug_compile" = "true"; then
     3644    CXXFLAGS="$DBG_CXXFLAGS"
     3645  else
     3646    CXXFLAGS="$OPT_CXXFLAGS"
     3647  fi
     3648
     3649# Handle the case where CXXFLAGS was set externally.
     3650else
     3651  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
     3652  if test x${DBG_CXXFLAGS+set} != xset; then
     3653    DBG_CXXFLAGS="$CXXFLAGS"
     3654  fi
     3655  if test x${OPT_CXXFLAGS+set} != xset; then
     3656    OPT_CXXFLAGS="$CXXFLAGS"
     3657  fi
     3658fi
     3659
     3660# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
     3661
     3662case "$CXXFLAGS" in
     3663  *-mno-cygwin*)
     3664    if test x${CPPFLAGS+set} != xset ; then
     3665      CPPFLAGS="-mno-cygwin"
     3666    else
     3667      case "$CPPFLAGS" in
     3668        *-mno-cygwin*)
     3669          ;;
     3670        *)
     3671          CPPFLAGS="$CPPFLAGS -mno-cygwin"
     3672          ;;
     3673      esac
     3674    fi ;;
     3675esac
     3676
     3677# Try if CXXFLAGS works
     3678save_CXXFLAGS="$CXXFLAGS"
     3679cat >conftest.$ac_ext <<_ACEOF
     3680/* confdefs.h.  */
     3681_ACEOF
     3682cat confdefs.h >>conftest.$ac_ext
     3683cat >>conftest.$ac_ext <<_ACEOF
     3684/* end confdefs.h.  */
     3685
     3686int
     3687main ()
     3688{
     3689int i=0; i++;
     3690  ;
     3691  return 0;
     3692}
     3693_ACEOF
     3694rm -f conftest.$ac_objext conftest$ac_exeext
     3695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3696  (eval $ac_link) 2>conftest.er1
     3697  ac_status=$?
     3698  grep -v '^ *+' conftest.er1 >conftest.err
     3699  rm -f conftest.er1
     3700  cat conftest.err >&5
     3701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3702  (exit $ac_status); } &&
     3703         { ac_try='test -z "$ac_cxx_werror_flag"
     3704                         || test ! -s conftest.err'
     3705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3706  (eval $ac_try) 2>&5
     3707  ac_status=$?
     3708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3709  (exit $ac_status); }; } &&
     3710         { ac_try='test -s conftest$ac_exeext'
     3711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3712  (eval $ac_try) 2>&5
     3713  ac_status=$?
     3714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3715  (exit $ac_status); }; }; then
     3716  :
     3717else
     3718  echo "$as_me: failed program was:" >&5
     3719sed 's/^/| /' conftest.$ac_ext >&5
     3720
     3721CXXFLAGS=
     3722fi
     3723rm -f conftest.err conftest.$ac_objext \
     3724      conftest$ac_exeext conftest.$ac_ext
     3725if test -z "$CXXFLAGS"; then
     3726  { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
     3727echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
     3728  CXXFLAGS='-O'
     3729  cat >conftest.$ac_ext <<_ACEOF
     3730/* confdefs.h.  */
     3731_ACEOF
     3732cat confdefs.h >>conftest.$ac_ext
     3733cat >>conftest.$ac_ext <<_ACEOF
     3734/* end confdefs.h.  */
     3735
     3736int
     3737main ()
     3738{
     3739int i=0; i++;
     3740  ;
     3741  return 0;
     3742}
     3743_ACEOF
     3744rm -f conftest.$ac_objext conftest$ac_exeext
     3745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3746  (eval $ac_link) 2>conftest.er1
     3747  ac_status=$?
     3748  grep -v '^ *+' conftest.er1 >conftest.err
     3749  rm -f conftest.er1
     3750  cat conftest.err >&5
     3751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3752  (exit $ac_status); } &&
     3753         { ac_try='test -z "$ac_cxx_werror_flag"
     3754                         || test ! -s conftest.err'
     3755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3756  (eval $ac_try) 2>&5
     3757  ac_status=$?
     3758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3759  (exit $ac_status); }; } &&
     3760         { ac_try='test -s conftest$ac_exeext'
     3761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3762  (eval $ac_try) 2>&5
     3763  ac_status=$?
     3764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3765  (exit $ac_status); }; }; then
     3766  :
     3767else
     3768  echo "$as_me: failed program was:" >&5
     3769sed 's/^/| /' conftest.$ac_ext >&5
     3770
     3771CXXFLAGS=
     3772fi
     3773rm -f conftest.err conftest.$ac_objext \
     3774      conftest$ac_exeext conftest.$ac_ext
     3775  if test -z "$CXXFLAGS"; then
     3776    { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
     3777echo "$as_me: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
     3778  fi
     3779fi
     3780
     3781{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
     3782echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
     3783
     3784
     3785if test x"$MPICXX" = x; then :; else
     3786  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
     3787echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
     3788  CXX="$MPICXX"
     3789fi
     3790
     3791case "$CXX" in
     3792  cl* | */cl* | CL* | */CL* )
     3793    case $build in
     3794  *-mingw*)
     3795    if test "${LD+set}" = set; then :; else
     3796      LD=link
     3797    fi
     3798    ;;
     3799 esac
     3800 case $enable_doscompile in
     3801   msvc)
     3802     if test "x${LD+set}" = xset; then :; else
     3803       LD=link
     3804     fi
     3805     ;;
     3806 esac
     3807
     3808    ;;
     3809esac
     3810
     3811ac_ext=c
     3812ac_cpp='$CPP $CPPFLAGS'
     3813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3815ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3816
     3817
     3818
     3819# Get the name of the Fortran compiler and appropriate compiler options
     3820case $build in
     3821  *-cygwin* | *-mingw*)
     3822     if test "$enable_doscompile" = msvc ; then
     3823       coin_f77_comps="ifort fl32"
     3824     else
     3825       coin_f77_comps="gfortran g77 ifort fl32"
     3826     fi ;;
     3827  sparc-sun-solaris*)
     3828     coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
     3829  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
     3830 esac
     3831
     3832
     3833
     3834
     3835
     3836
     3837ac_ext=f
     3838ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     3839ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3840ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     3841
     3842
     3843
     3844
     3845
     3846
     3847coin_has_f77=yes
     3848
     3849save_fflags="$FFLAGS"
     3850
     3851# We delete the cached value, since the test might not have been
     3852# performed with our choice of compilers earlier
     3853$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
     3854
     3855# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
     3856# coin_f77_comps to see if there's a program that matches one of the names.
     3857# If there's no such program, F77 = unavailable. If we match the name,
     3858# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
     3859# compiler.
     3860# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
     3861
     3862
     3863{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
     3864echo "$as_me: Trying to determine Fortran compiler name" >&6;}
     3865for ac_prog in $coin_f77_comps
     3866do
     3867  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3868set dummy $ac_prog; ac_word=$2
     3869echo "$as_me:$LINENO: checking for $ac_word" >&5
     3870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3871if test "${ac_cv_prog_F77+set}" = set; then
     3872  echo $ECHO_N "(cached) $ECHO_C" >&6
     3873else
     3874  if test -n "$F77"; then
     3875  ac_cv_prog_F77="$F77" # Let the user override the test.
     3876else
     3877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3878for as_dir in $PATH
     3879do
     3880  IFS=$as_save_IFS
     3881  test -z "$as_dir" && as_dir=.
     3882  for ac_exec_ext in '' $ac_executable_extensions; do
     3883  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3884    ac_cv_prog_F77="$ac_prog"
     3885    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3886    break 2
     3887  fi
     3888done
     3889done
     3890
     3891fi
     3892fi
     3893F77=$ac_cv_prog_F77
     3894if test -n "$F77"; then
     3895  echo "$as_me:$LINENO: result: $F77" >&5
     3896echo "${ECHO_T}$F77" >&6
     3897else
     3898  echo "$as_me:$LINENO: result: no" >&5
     3899echo "${ECHO_T}no" >&6
     3900fi
     3901
     3902  test -n "$F77" && break
     3903done
     3904test -n "$F77" || F77="unavailable"
     3905
     3906
     3907if test "$F77" != "unavailable" ; then
     3908  ac_ext=f
     3909ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     3910ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3911ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     3912if test -n "$ac_tool_prefix"; then
     3913  for ac_prog in $coin_f77_comps
     3914  do
     3915    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     3916set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     3917echo "$as_me:$LINENO: checking for $ac_word" >&5
     3918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3919if test "${ac_cv_prog_F77+set}" = set; then
     3920  echo $ECHO_N "(cached) $ECHO_C" >&6
     3921else
     3922  if test -n "$F77"; then
     3923  ac_cv_prog_F77="$F77" # Let the user override the test.
     3924else
     3925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3926for as_dir in $PATH
     3927do
     3928  IFS=$as_save_IFS
     3929  test -z "$as_dir" && as_dir=.
     3930  for ac_exec_ext in '' $ac_executable_extensions; do
     3931  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3932    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
     3933    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3934    break 2
     3935  fi
     3936done
     3937done
     3938
     3939fi
     3940fi
     3941F77=$ac_cv_prog_F77
     3942if test -n "$F77"; then
     3943  echo "$as_me:$LINENO: result: $F77" >&5
     3944echo "${ECHO_T}$F77" >&6
     3945else
     3946  echo "$as_me:$LINENO: result: no" >&5
     3947echo "${ECHO_T}no" >&6
     3948fi
     3949
     3950    test -n "$F77" && break
     3951  done
     3952fi
     3953if test -z "$F77"; then
     3954  ac_ct_F77=$F77
     3955  for ac_prog in $coin_f77_comps
     3956do
     3957  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3958set dummy $ac_prog; ac_word=$2
     3959echo "$as_me:$LINENO: checking for $ac_word" >&5
     3960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3961if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
     3962  echo $ECHO_N "(cached) $ECHO_C" >&6
     3963else
     3964  if test -n "$ac_ct_F77"; then
     3965  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
     3966else
     3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3968for as_dir in $PATH
     3969do
     3970  IFS=$as_save_IFS
     3971  test -z "$as_dir" && as_dir=.
     3972  for ac_exec_ext in '' $ac_executable_extensions; do
     3973  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3974    ac_cv_prog_ac_ct_F77="$ac_prog"
     3975    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3976    break 2
     3977  fi
     3978done
     3979done
     3980
     3981fi
     3982fi
     3983ac_ct_F77=$ac_cv_prog_ac_ct_F77
     3984if test -n "$ac_ct_F77"; then
     3985  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
     3986echo "${ECHO_T}$ac_ct_F77" >&6
     3987else
     3988  echo "$as_me:$LINENO: result: no" >&5
     3989echo "${ECHO_T}no" >&6
     3990fi
     3991
     3992  test -n "$ac_ct_F77" && break
     3993done
     3994
     3995  F77=$ac_ct_F77
     3996fi
     3997
     3998
     3999# Provide some information about the compiler.
     4000echo "$as_me:4000:" \
     4001     "checking for Fortran 77 compiler version" >&5
     4002ac_compiler=`set X $ac_compile; echo $2`
     4003{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     4004  (eval $ac_compiler --version </dev/null >&5) 2>&5
     4005  ac_status=$?
     4006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4007  (exit $ac_status); }
     4008{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     4009  (eval $ac_compiler -v </dev/null >&5) 2>&5
     4010  ac_status=$?
     4011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4012  (exit $ac_status); }
     4013{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     4014  (eval $ac_compiler -V </dev/null >&5) 2>&5
     4015  ac_status=$?
     4016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4017  (exit $ac_status); }
     4018rm -f a.out
     4019
     4020# If we don't use `.F' as extension, the preprocessor is not run on the
     4021# input file.  (Note that this only needs to work for GNU compilers.)
     4022ac_save_ext=$ac_ext
     4023ac_ext=F
     4024echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
     4025echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
     4026if test "${ac_cv_f77_compiler_gnu+set}" = set; then
     4027  echo $ECHO_N "(cached) $ECHO_C" >&6
     4028else
     4029  cat >conftest.$ac_ext <<_ACEOF
     4030      program main
     4031#ifndef __GNUC__
     4032       choke me
     4033#endif
     4034
     4035      end
     4036_ACEOF
     4037rm -f conftest.$ac_objext
     4038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4039  (eval $ac_compile) 2>conftest.er1
     4040  ac_status=$?
     4041  grep -v '^ *+' conftest.er1 >conftest.err
     4042  rm -f conftest.er1
     4043  cat conftest.err >&5
     4044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4045  (exit $ac_status); } &&
     4046         { ac_try='test -z "$ac_f77_werror_flag"
     4047                         || test ! -s conftest.err'
     4048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4049  (eval $ac_try) 2>&5
     4050  ac_status=$?
     4051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4052  (exit $ac_status); }; } &&
     4053         { ac_try='test -s conftest.$ac_objext'
     4054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4055  (eval $ac_try) 2>&5
     4056  ac_status=$?
     4057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4058  (exit $ac_status); }; }; then
     4059  ac_compiler_gnu=yes
     4060else
     4061  echo "$as_me: failed program was:" >&5
     4062sed 's/^/| /' conftest.$ac_ext >&5
     4063
     4064ac_compiler_gnu=no
     4065fi
     4066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4067ac_cv_f77_compiler_gnu=$ac_compiler_gnu
     4068
     4069fi
     4070echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
     4071echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
     4072ac_ext=$ac_save_ext
     4073ac_test_FFLAGS=${FFLAGS+set}
     4074ac_save_FFLAGS=$FFLAGS
     4075FFLAGS=
     4076echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
     4077echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
     4078if test "${ac_cv_prog_f77_g+set}" = set; then
     4079  echo $ECHO_N "(cached) $ECHO_C" >&6
     4080else
     4081  FFLAGS=-g
     4082cat >conftest.$ac_ext <<_ACEOF
     4083      program main
     4084
     4085      end
     4086_ACEOF
     4087rm -f conftest.$ac_objext
     4088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4089  (eval $ac_compile) 2>conftest.er1
     4090  ac_status=$?
     4091  grep -v '^ *+' conftest.er1 >conftest.err
     4092  rm -f conftest.er1
     4093  cat conftest.err >&5
     4094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4095  (exit $ac_status); } &&
     4096         { ac_try='test -z "$ac_f77_werror_flag"
     4097                         || test ! -s conftest.err'
     4098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4099  (eval $ac_try) 2>&5
     4100  ac_status=$?
     4101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4102  (exit $ac_status); }; } &&
     4103         { ac_try='test -s conftest.$ac_objext'
     4104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4105  (eval $ac_try) 2>&5
     4106  ac_status=$?
     4107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4108  (exit $ac_status); }; }; then
     4109  ac_cv_prog_f77_g=yes
     4110else
     4111  echo "$as_me: failed program was:" >&5
     4112sed 's/^/| /' conftest.$ac_ext >&5
     4113
     4114ac_cv_prog_f77_g=no
     4115fi
     4116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4117
     4118fi
     4119echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
     4120echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
     4121if test "$ac_test_FFLAGS" = set; then
     4122  FFLAGS=$ac_save_FFLAGS
     4123elif test $ac_cv_prog_f77_g = yes; then
     4124  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
     4125    FFLAGS="-g -O2"
     4126  else
     4127    FFLAGS="-g"
     4128  fi
     4129else
     4130  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
     4131    FFLAGS="-O2"
     4132  else
     4133    FFLAGS=
     4134  fi
     4135fi
     4136
     4137G77=`test $ac_compiler_gnu = yes && echo yes`
     4138ac_ext=f
     4139ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4140ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4141ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4142
     4143else
     4144  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
     4145echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
     4146fi
     4147
     4148FFLAGS="$save_fflags"
     4149
     4150# Check if a project specific FFLAGS variable has been set
     4151if test x$COIN_PRJCT != x; then
     4152  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
     4153  if test x$coin_tmp = xset; then
     4154    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
     4155  fi
     4156fi
     4157
     4158if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
     4159
     4160  coin_add_fflags=
     4161  coin_opt_fflags=
     4162  coin_dbg_fflags=
     4163  coin_warn_fflags=
     4164
     4165  if test "$G77" = "yes"; then
     4166    coin_opt_fflags="-O3 -fomit-frame-pointer"
     4167    coin_add_fflags="-pipe"
     4168    coin_dbg_fflags="-g"
     4169    case $enable_doscompile in
     4170      mingw)
     4171        FFLAGS="-mno-cygwin"
     4172        cat >conftest.$ac_ext <<_ACEOF
     4173      program main
     4174      write(*,*) 'Hello world'
     4175      end
     4176_ACEOF
     4177rm -f conftest.$ac_objext conftest$ac_exeext
     4178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4179  (eval $ac_link) 2>conftest.er1
     4180  ac_status=$?
     4181  grep -v '^ *+' conftest.er1 >conftest.err
     4182  rm -f conftest.er1
     4183  cat conftest.err >&5
     4184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4185  (exit $ac_status); } &&
     4186         { ac_try='test -z "$ac_f77_werror_flag"
     4187                         || test ! -s conftest.err'
     4188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4189  (eval $ac_try) 2>&5
     4190  ac_status=$?
     4191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4192  (exit $ac_status); }; } &&
     4193         { ac_try='test -s conftest$ac_exeext'
     4194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4195  (eval $ac_try) 2>&5
     4196  ac_status=$?
     4197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4198  (exit $ac_status); }; }; then
     4199  coin_add_fflags="-mno-cygwin $coin_add_fflags"
     4200else
     4201  echo "$as_me: failed program was:" >&5
     4202sed 's/^/| /' conftest.$ac_ext >&5
     4203
     4204fi
     4205rm -f conftest.err conftest.$ac_objext \
     4206      conftest$ac_exeext conftest.$ac_ext
     4207        FFLAGS=
     4208      ;;
     4209    esac
     4210  else
     4211    case $build in
     4212      *-cygwin* | *-mingw*)
     4213        case $F77 in
     4214          ifort* | */ifort* | IFORT* | */IFORT* )
     4215            coin_opt_fflags='-O3'
     4216            coin_add_fflags='-nologo -MT'
     4217            coin_dbg_fflags='-debug'
     4218          ;;
     4219        esac
     4220        ;;
     4221      *-linux-*)
     4222        case $F77 in
     4223          ifc* | */ifc* | ifort* | */ifort*)
     4224            coin_opt_fflags="-O3 -ip"
     4225            coin_add_fflags="-cm -w90 -w95"
     4226            coin_dbg_fflags="-g -CA -CB -CS"
     4227            # Check if -i_dynamic is necessary (for new glibc library)
     4228            FFLAGS=
     4229            cat >conftest.$ac_ext <<_ACEOF
     4230      program main
     4231      write(*,*) 'Hello world'
     4232      end
     4233_ACEOF
     4234rm -f conftest.$ac_objext conftest$ac_exeext
     4235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4236  (eval $ac_link) 2>conftest.er1
     4237  ac_status=$?
     4238  grep -v '^ *+' conftest.er1 >conftest.err
     4239  rm -f conftest.er1
     4240  cat conftest.err >&5
     4241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4242  (exit $ac_status); } &&
     4243         { ac_try='test -z "$ac_f77_werror_flag"
     4244                         || test ! -s conftest.err'
     4245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4246  (eval $ac_try) 2>&5
     4247  ac_status=$?
     4248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4249  (exit $ac_status); }; } &&
     4250         { ac_try='test -s conftest$ac_exeext'
     4251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4252  (eval $ac_try) 2>&5
     4253  ac_status=$?
     4254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4255  (exit $ac_status); }; }; then
     4256  :
     4257else
     4258  echo "$as_me: failed program was:" >&5
     4259sed 's/^/| /' conftest.$ac_ext >&5
     4260
     4261coin_add_fflags="-i_dynamic $coin_add_fflags"
     4262fi
     4263rm -f conftest.err conftest.$ac_objext \
     4264      conftest$ac_exeext conftest.$ac_ext
     4265            ;;
     4266          pgf77* | */pgf77* | pgf90* | */pgf90*)
     4267            coin_opt_fflags="-fast"
     4268            coin_add_fflags="-Kieee -pc 64"
     4269            coin_dbg_fflags="-g"
     4270          ;;
     4271        esac
     4272        ;;
     4273      *-ibm-*)
     4274        case "$F77" in
     4275          xlf* | */xlf* | mpxlf* | */mpxlf* )
     4276            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
     4277            coin_add_fflags="-bmaxdata:0x80000000"
     4278            coin_dbg_fflags="-g -C"
     4279            ;;
     4280        esac
     4281        ;;
     4282      *-hp-*)
     4283        coin_opt_fflags="+O3"
     4284        coin_add_fflags="+U77"
     4285        coin_dbg_fflags="-C -g"
     4286        ;;
     4287      *-sun-*)
     4288        coin_opt_fflags="-O4"
     4289        coin_dbg_fflags="-g"
     4290        ;;
     4291      *-sgi-*)
     4292        coin_opt_fflags="-O5 -OPT:Olimit=0"
     4293        coin_dbg_fflags="-g"
     4294        ;;
     4295    esac
     4296  fi
     4297
     4298  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
     4299    coin_dbg_fflags="-g"
     4300  fi
     4301
     4302  if test -z "$coin_opt_fflags"; then
     4303    # Try if -O option works if nothing else is set
     4304    FFLAGS=-O
     4305    cat >conftest.$ac_ext <<_ACEOF
     4306      program main
     4307      integer i
     4308      end
     4309_ACEOF
     4310rm -f conftest.$ac_objext conftest$ac_exeext
     4311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4312  (eval $ac_link) 2>conftest.er1
     4313  ac_status=$?
     4314  grep -v '^ *+' conftest.er1 >conftest.err
     4315  rm -f conftest.er1
     4316  cat conftest.err >&5
     4317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4318  (exit $ac_status); } &&
     4319         { ac_try='test -z "$ac_f77_werror_flag"
     4320                         || test ! -s conftest.err'
     4321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4322  (eval $ac_try) 2>&5
     4323  ac_status=$?
     4324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4325  (exit $ac_status); }; } &&
     4326         { ac_try='test -s conftest$ac_exeext'
     4327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4328  (eval $ac_try) 2>&5
     4329  ac_status=$?
     4330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4331  (exit $ac_status); }; }; then
     4332  coin_opt_fflags="-O"
     4333else
     4334  echo "$as_me: failed program was:" >&5
     4335sed 's/^/| /' conftest.$ac_ext >&5
     4336
     4337fi
     4338rm -f conftest.err conftest.$ac_objext \
     4339      conftest$ac_exeext conftest.$ac_ext
     4340  fi
     4341
     4342  # if PM doesn't want the warning messages, take them out
     4343  if test x"$coin_skip_warn_fflags" = xyes; then
     4344    coin_warn_fflags=
     4345  fi
     4346
     4347  if test x${DBG_FFLAGS+set} != xset; then
     4348    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
     4349  fi
     4350  if test x${OPT_FFLAGS+set} != xset; then
     4351    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
     4352  fi
     4353
     4354  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
     4355  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
     4356
     4357  if test "$coin_debug_compile" = "true"; then
     4358    FFLAGS="$DBG_FFLAGS"
     4359  else
     4360    FFLAGS="$OPT_FFLAGS"
     4361  fi
     4362else
     4363  FFLAGS="$FFLAGS $ADD_FFLAGS"
     4364  if test x${DBG_FFLAGS+set} != xset; then
     4365    DBG_FFLAGS="$FFLAGS"
     4366  fi
     4367  if test x${OPT_FFLAGS+set} != xset; then
     4368    OPT_FFLAGS="$FFLAGS"
     4369  fi
     4370fi
     4371
     4372# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
     4373case "$FFLAGS" in
     4374  *-mno-cygwin*)
     4375    if test x${CPPFLAGS+set} != xset ; then
     4376      CPPFLAGS="-mno-cygwin"
     4377    else
     4378      case "$CPPFLAGS" in
     4379        *-mno-cygwin*)
     4380          ;;
     4381        *)
     4382          CPPFLAGS="$CPPFLAGS -mno-cygwin"
     4383          ;;
     4384      esac
     4385    fi ;;
     4386esac
     4387
     4388# Try if FFLAGS works
     4389if test "$F77" != "unavailable" ; then
     4390  cat >conftest.$ac_ext <<_ACEOF
     4391      program main
     4392      integer i
     4393      end
     4394_ACEOF
     4395rm -f conftest.$ac_objext conftest$ac_exeext
     4396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4397  (eval $ac_link) 2>conftest.er1
     4398  ac_status=$?
     4399  grep -v '^ *+' conftest.er1 >conftest.err
     4400  rm -f conftest.er1
     4401  cat conftest.err >&5
     4402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4403  (exit $ac_status); } &&
     4404         { ac_try='test -z "$ac_f77_werror_flag"
     4405                         || test ! -s conftest.err'
     4406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4407  (eval $ac_try) 2>&5
     4408  ac_status=$?
     4409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4410  (exit $ac_status); }; } &&
     4411         { ac_try='test -s conftest$ac_exeext'
     4412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4413  (eval $ac_try) 2>&5
     4414  ac_status=$?
     4415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4416  (exit $ac_status); }; }; then
     4417  :
     4418else
     4419  echo "$as_me: failed program was:" >&5
     4420sed 's/^/| /' conftest.$ac_ext >&5
     4421
     4422FFLAGS=
     4423fi
     4424rm -f conftest.err conftest.$ac_objext \
     4425      conftest$ac_exeext conftest.$ac_ext
     4426  if test -z "$FFLAGS"; then
     4427    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
     4428echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
     4429    FFLAGS='-O'
     4430    cat >conftest.$ac_ext <<_ACEOF
     4431      program main
     4432      integer i
     4433      end
     4434_ACEOF
     4435rm -f conftest.$ac_objext conftest$ac_exeext
     4436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4437  (eval $ac_link) 2>conftest.er1
     4438  ac_status=$?
     4439  grep -v '^ *+' conftest.er1 >conftest.err
     4440  rm -f conftest.er1
     4441  cat conftest.err >&5
     4442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4443  (exit $ac_status); } &&
     4444         { ac_try='test -z "$ac_f77_werror_flag"
     4445                         || test ! -s conftest.err'
     4446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4447  (eval $ac_try) 2>&5
     4448  ac_status=$?
     4449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4450  (exit $ac_status); }; } &&
     4451         { ac_try='test -s conftest$ac_exeext'
     4452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4453  (eval $ac_try) 2>&5
     4454  ac_status=$?
     4455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4456  (exit $ac_status); }; }; then
     4457  :
     4458else
     4459  echo "$as_me: failed program was:" >&5
     4460sed 's/^/| /' conftest.$ac_ext >&5
     4461
     4462FFLAGS=
     4463fi
     4464rm -f conftest.err conftest.$ac_objext \
     4465      conftest$ac_exeext conftest.$ac_ext
     4466    if test -z "$FFLAGS"; then
     4467      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
     4468echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
     4469    fi
     4470  fi
     4471fi
     4472
     4473{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
     4474echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
     4475
     4476
     4477if test x"$MPIF77" = x; then :; else
     4478  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
     4479echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
     4480  F77="$MPIF77"
     4481fi
     4482
     4483case "$F77" in
     4484  ifort* | */ifort* | IFORT* | */IFORT*)
     4485    case $build in
     4486  *-mingw*)
     4487    if test "${LD+set}" = set; then :; else
     4488      LD=link
     4489    fi
     4490    ;;
     4491 esac
     4492 case $enable_doscompile in
     4493   msvc)
     4494     if test "x${LD+set}" = xset; then :; else
     4495       LD=link
     4496     fi
     4497     ;;
     4498 esac
     4499
     4500    ;;
     4501esac
     4502
     4503ac_ext=c
     4504ac_cpp='$CPP $CPPFLAGS'
     4505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4507ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4508
     4509
     4510
     4511# Initialize automake and libtool
     4512# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
     4513{
     4514
     4515
     4516
     4517# START
     4518
     4519# On Cygwin, building DLLs doesn't work
     4520case $build in
     4521  *-cygwin*)
     4522    coin_disable_shared=yes
     4523    platform=Cygwin
     4524  ;;
     4525  *-mingw*)
     4526    coin_disable_shared=yes
     4527    platform="Msys"
     4528#    case "$CXX" in
     4529#      cl*)
     4530#        coin_disable_shared=yes
     4531#        platform="Msys with cl"
     4532#    ;;
     4533#    esac
     4534  ;;
     4535esac
     4536if test x"$coin_disable_shared" = xyes; then
     4537  if test x"$enable_shared" = xyes; then
     4538    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
     4539echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
     4540  fi
     4541  enable_shared=no
     4542fi
     4543# By default, we only want the shared objects to be compiled
     4544# Check whether --enable-static or --disable-static was given.
     4545if test "${enable_static+set}" = set; then
     4546  enableval="$enable_static"
     4547  p=${PACKAGE-default}
     4548    case $enableval in
     4549    yes) enable_static=yes ;;
     4550    no) enable_static=no ;;
     4551    *)
     4552     enable_static=no
     4553      # Look at the argument we got.  We use all the common list separators.
     4554      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     4555      for pkg in $enableval; do
     4556        IFS="$lt_save_ifs"
     4557        if test "X$pkg" = "X$p"; then
     4558          enable_static=yes
     4559        fi
     4560      done
     4561      IFS="$lt_save_ifs"
     4562      ;;
     4563    esac
     4564else
     4565  enable_static=no
     4566fi;
     4567
     4568
     4569
     4570
     4571# Initialize automake
     4572echo "$as_me:$LINENO: checking for egrep" >&5
     4573echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     4574if test "${ac_cv_prog_egrep+set}" = set; then
     4575  echo $ECHO_N "(cached) $ECHO_C" >&6
     4576else
     4577  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     4578    then ac_cv_prog_egrep='grep -E'
     4579    else ac_cv_prog_egrep='egrep'
     4580    fi
     4581fi
     4582echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     4583echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     4584 EGREP=$ac_cv_prog_egrep
     4585
     4586
     4587am__api_version="1.9"
    13354588# Find a good install program.  We prefer a C program (faster),
    13364589# so one script is as good as another.  But avoid the broken or
     
    15944847rmdir .tst 2>/dev/null
    15954848
    1596 
     4849DEPDIR="${am__leading_dot}deps"
     4850
     4851          ac_config_commands="$ac_config_commands depfiles"
     4852
     4853
     4854am_make=${MAKE-make}
     4855cat > confinc << 'END'
     4856am__doit:
     4857        @echo done
     4858.PHONY: am__doit
     4859END
     4860# If we don't find an include directive, just comment out the code.
     4861echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
     4862echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
     4863am__include="#"
     4864am__quote=
     4865_am_result=none
     4866# First try GNU make style include.
     4867echo "include confinc" > confmf
     4868# We grep out `Entering directory' and `Leaving directory'
     4869# messages which can occur if `w' ends up in MAKEFLAGS.
     4870# In particular we don't look at `^make:' because GNU make might
     4871# be invoked under some other name (usually "gmake"), in which
     4872# case it prints its new name instead of `make'.
     4873if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
     4874   am__include=include
     4875   am__quote=
     4876   _am_result=GNU
     4877fi
     4878# Now try BSD make style include.
     4879if test "$am__include" = "#"; then
     4880   echo '.include "confinc"' > confmf
     4881   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
     4882      am__include=.include
     4883      am__quote="\""
     4884      _am_result=BSD
     4885   fi
     4886fi
     4887
     4888
     4889echo "$as_me:$LINENO: result: $_am_result" >&5
     4890echo "${ECHO_T}$_am_result" >&6
     4891rm -f confinc confmf
     4892
     4893# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
     4894if test "${enable_dependency_tracking+set}" = set; then
     4895  enableval="$enable_dependency_tracking"
     4896
     4897fi;
     4898if test "x$enable_dependency_tracking" != xno; then
     4899  am_depcomp="$ac_aux_dir/depcomp"
     4900  AMDEPBACKSLASH='\'
     4901fi
     4902
     4903
     4904if test "x$enable_dependency_tracking" != xno; then
     4905  AMDEP_TRUE=
     4906  AMDEP_FALSE='#'
     4907else
     4908  AMDEP_TRUE='#'
     4909  AMDEP_FALSE=
     4910fi
     4911
     4912
     4913
     4914
     4915
     4916# AC_MSG_NOTICE([Beginning automake initialisation.])
    15974917# Stuff for automake
    15984918# test to see if srcdir already configured
     
    17455065
    17465066
     5067depcc="$CC"   am_compiler_list=
     5068
     5069echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
     5070echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
     5071if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
     5072  echo $ECHO_N "(cached) $ECHO_C" >&6
     5073else
     5074  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     5075  # We make a subdir and do the tests there.  Otherwise we can end up
     5076  # making bogus files that we don't know about and never remove.  For
     5077  # instance it was reported that on HP-UX the gcc test will end up
     5078  # making a dummy file named `D' -- because `-MD' means `put the output
     5079  # in D'.
     5080  mkdir conftest.dir
     5081  # Copy depcomp to subdir because otherwise we won't find it if we're
     5082  # using a relative directory.
     5083  cp "$am_depcomp" conftest.dir
     5084  cd conftest.dir
     5085  # We will build objects and dependencies in a subdirectory because
     5086  # it helps to detect inapplicable dependency modes.  For instance
     5087  # both Tru64's cc and ICC support -MD to output dependencies as a
     5088  # side effect of compilation, but ICC will put the dependencies in
     5089  # the current directory while Tru64 will put them in the object
     5090  # directory.
     5091  mkdir sub
     5092
     5093  am_cv_CC_dependencies_compiler_type=none
     5094  if test "$am_compiler_list" = ""; then
     5095     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     5096  fi
     5097  for depmode in $am_compiler_list; do
     5098    # Setup a source with many dependencies, because some compilers
     5099    # like to wrap large dependency lists on column 80 (with \), and
     5100    # we should not choose a depcomp mode which is confused by this.
     5101    #
     5102    # We need to recreate these files for each test, as the compiler may
     5103    # overwrite some of them when testing with obscure command lines.
     5104    # This happens at least with the AIX C compiler.
     5105    : > sub/conftest.c
     5106    for i in 1 2 3 4 5 6; do
     5107      echo '#include "conftst'$i'.h"' >> sub/conftest.c
     5108      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     5109      # Solaris 8's {/usr,}/bin/sh.
     5110      touch sub/conftst$i.h
     5111    done
     5112    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     5113
     5114    case $depmode in
     5115    nosideeffect)
     5116      # after this tag, mechanisms are not by side-effect, so they'll
     5117      # only be used when explicitly requested
     5118      if test "x$enable_dependency_tracking" = xyes; then
     5119        continue
     5120      else
     5121        break
     5122      fi
     5123      ;;
     5124    none) break ;;
     5125    esac
     5126    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     5127    # mode.  It turns out that the SunPro C++ compiler does not properly
     5128    # handle `-M -o', and we need to detect this.
     5129    if depmode=$depmode \
     5130       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
     5131       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
     5132       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
     5133         >/dev/null 2>conftest.err &&
     5134       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
     5135       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     5136       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     5137      # icc doesn't choke on unknown options, it will just issue warnings
     5138      # or remarks (even with -Werror).  So we grep stderr for any message
     5139      # that says an option was ignored or not supported.
     5140      # When given -MP, icc 7.0 and 7.1 complain thusly:
     5141      #   icc: Command line warning: ignoring option '-M'; no argument required
     5142      # The diagnosis changed in icc 8.0:
     5143      #   icc: Command line remark: option '-MP' not supported
     5144      if (grep 'ignoring option' conftest.err ||
     5145          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
     5146        am_cv_CC_dependencies_compiler_type=$depmode
     5147        break
     5148      fi
     5149    fi
     5150  done
     5151
     5152  cd ..
     5153  rm -rf conftest.dir
     5154else
     5155  am_cv_CC_dependencies_compiler_type=none
     5156fi
     5157
     5158fi
     5159echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
     5160echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
     5161CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
     5162
     5163
     5164
     5165if
     5166  test "x$enable_dependency_tracking" != xno \
     5167  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
     5168  am__fastdepCC_TRUE=
     5169  am__fastdepCC_FALSE='#'
     5170else
     5171  am__fastdepCC_TRUE='#'
     5172  am__fastdepCC_FALSE=
     5173fi
     5174
     5175
     5176depcc="$CXX"  am_compiler_list=
     5177
     5178echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
     5179echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
     5180if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
     5181  echo $ECHO_N "(cached) $ECHO_C" >&6
     5182else
     5183  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     5184  # We make a subdir and do the tests there.  Otherwise we can end up
     5185  # making bogus files that we don't know about and never remove.  For
     5186  # instance it was reported that on HP-UX the gcc test will end up
     5187  # making a dummy file named `D' -- because `-MD' means `put the output
     5188  # in D'.
     5189  mkdir conftest.dir
     5190  # Copy depcomp to subdir because otherwise we won't find it if we're
     5191  # using a relative directory.
     5192  cp "$am_depcomp" conftest.dir
     5193  cd conftest.dir
     5194  # We will build objects and dependencies in a subdirectory because
     5195  # it helps to detect inapplicable dependency modes.  For instance
     5196  # both Tru64's cc and ICC support -MD to output dependencies as a
     5197  # side effect of compilation, but ICC will put the dependencies in
     5198  # the current directory while Tru64 will put them in the object
     5199  # directory.
     5200  mkdir sub
     5201
     5202  am_cv_CXX_dependencies_compiler_type=none
     5203  if test "$am_compiler_list" = ""; then
     5204     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     5205  fi
     5206  for depmode in $am_compiler_list; do
     5207    # Setup a source with many dependencies, because some compilers
     5208    # like to wrap large dependency lists on column 80 (with \), and
     5209    # we should not choose a depcomp mode which is confused by this.
     5210    #
     5211    # We need to recreate these files for each test, as the compiler may
     5212    # overwrite some of them when testing with obscure command lines.
     5213    # This happens at least with the AIX C compiler.
     5214    : > sub/conftest.c
     5215    for i in 1 2 3 4 5 6; do
     5216      echo '#include "conftst'$i'.h"' >> sub/conftest.c
     5217      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     5218      # Solaris 8's {/usr,}/bin/sh.
     5219      touch sub/conftst$i.h
     5220    done
     5221    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     5222
     5223    case $depmode in
     5224    nosideeffect)
     5225      # after this tag, mechanisms are not by side-effect, so they'll
     5226      # only be used when explicitly requested
     5227      if test "x$enable_dependency_tracking" = xyes; then
     5228        continue
     5229      else
     5230        break
     5231      fi
     5232      ;;
     5233    none) break ;;
     5234    esac
     5235    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     5236    # mode.  It turns out that the SunPro C++ compiler does not properly
     5237    # handle `-M -o', and we need to detect this.
     5238    if depmode=$depmode \
     5239       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
     5240       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
     5241       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
     5242         >/dev/null 2>conftest.err &&
     5243       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
     5244       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     5245       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     5246      # icc doesn't choke on unknown options, it will just issue warnings
     5247      # or remarks (even with -Werror).  So we grep stderr for any message
     5248      # that says an option was ignored or not supported.
     5249      # When given -MP, icc 7.0 and 7.1 complain thusly:
     5250      #   icc: Command line warning: ignoring option '-M'; no argument required
     5251      # The diagnosis changed in icc 8.0:
     5252      #   icc: Command line remark: option '-MP' not supported
     5253      if (grep 'ignoring option' conftest.err ||
     5254          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
     5255        am_cv_CXX_dependencies_compiler_type=$depmode
     5256        break
     5257      fi
     5258    fi
     5259  done
     5260
     5261  cd ..
     5262  rm -rf conftest.dir
     5263else
     5264  am_cv_CXX_dependencies_compiler_type=none
     5265fi
     5266
     5267fi
     5268echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
     5269echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
     5270CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
     5271
     5272
     5273
     5274if
     5275  test "x$enable_dependency_tracking" != xno \
     5276  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
     5277  am__fastdepCXX_TRUE=
     5278  am__fastdepCXX_FALSE='#'
     5279else
     5280  am__fastdepCXX_TRUE='#'
     5281  am__fastdepCXX_FALSE=
     5282fi
     5283
     5284
    17475285
    17485286echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
     
    17755313
    17765314  # If maintainer mode is chosen, we make sure that the correct versions
    1777   # of the tools are used, and that we know where libtoo.m4 is (to
     5315  # of the tools are used, and that we know where libtool.m4 is (to
    17785316  # recreate acinclude.m4)
    17795317
    17805318
    17815319  LIBTOOLM4=
    1782 
    1783   # Check if we have autoconf
    1784   # Extract the first word of "autoconf", so it can be a program name with args.
     5320  # Normally, $HOME
     5321  AUTOTOOLS_DFLT=$HOME
     5322
     5323  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
     5324echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
     5325if test "${ac_cv_use_correct_autotools+set}" = set; then
     5326  echo $ECHO_N "(cached) $ECHO_C" >&6
     5327else
     5328  ac_cv_use_correct_autotools=check
     5329fi
     5330echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
     5331echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
     5332
     5333  if test $ac_cv_use_correct_autotools = check; then
     5334    ac_cv_use_correct_autotools=yes
     5335    # Check if we have autoconf
     5336    # Extract the first word of "autoconf", so it can be a program name with args.
    17855337set dummy autoconf; ac_word=$2
    17865338echo "$as_me:$LINENO: checking for $ac_word" >&5
     
    18185370fi
    18195371
    1820   if test $have_autoconf = no; then
    1821     { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
     5372    if test $have_autoconf = no; then
     5373      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
    18225374echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
    18235375   { (exit 1); exit 1; }; }
    1824   fi
    1825 
    1826   # Check whether autoconf is the correct version
    1827   correct_version='2.59'
    1828   grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
    1829   echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
     5376    fi
     5377
     5378    # Check whether autoconf is the correct version
     5379    correct_version='2.59'
     5380    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
     5381&nb