Changeset 528 for stable/1.1
- Timestamp:
- Feb 1, 2007 4:28:14 PM (14 years ago)
- Location:
- stable/1.1
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
stable/1.1/Cbc/Makefile.am
r344 r528 91 91 92 92 test: all 93 cd test; maketest93 cd test; $(MAKE) test 94 94 95 95 unitTest: test 96 96 97 97 clean-local: 98 if test -r test/Makefile; then cd test; makeclean; fi98 if test -r test/Makefile; then cd test; $(MAKE) clean; fi 99 99 100 100 distclean-local: 101 if test -r test/Makefile; then cd test; makedistclean; fi101 if test -r test/Makefile; then cd test; $(MAKE) distclean; fi 102 102 103 103 .PHONY: test unitTest -
stable/1.1/Cbc/Makefile.in
r405 r528 249 249 abs_lib_dir = @abs_lib_dir@ 250 250 abs_source_dir = @abs_source_dir@ 251 ac_c_preproc_warn_flag = @ac_c_preproc_warn_flag@ 251 252 ac_ct_AR = @ac_ct_AR@ 252 253 ac_ct_CC = @ac_ct_CC@ … … 255 256 ac_ct_RANLIB = @ac_ct_RANLIB@ 256 257 ac_ct_STRIP = @ac_ct_STRIP@ 258 ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@ 257 259 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 258 260 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ … … 788 790 789 791 test: all 790 cd test; maketest792 cd test; $(MAKE) test 791 793 792 794 unitTest: test 793 795 794 796 clean-local: 795 if test -r test/Makefile; then cd test; makeclean; fi797 if test -r test/Makefile; then cd test; $(MAKE) clean; fi 796 798 797 799 distclean-local: 798 if test -r test/Makefile; then cd test; makedistclean; fi800 if test -r test/Makefile; then cd test; $(MAKE) distclean; fi 799 801 800 802 .PHONY: test unitTest -
stable/1.1/Cbc/configure
r455 r528 473 473 #endif" 474 474 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 CBCSRCDIR CBCOBJDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE CGLSRCDIR CGLOBJDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE DYLPSRCDIR DYLPOBJDIR COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE OSISRCDIR OSIOBJDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE SYMSRCDIR SYMOBJDIR COIN_HAS_SYM_TRUE COIN_HAS_SYM_FALSE VOLSRCDIR VOLOBJDIR COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE FMPINCDIR FMPLIB COIN_HAS_FMP_TRUE COIN_HAS_FMP_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE OSLINCDIR OSLLIB COIN_HAS_OSL_TRUE COIN_HAS_OSL_FALSE SPXINCDIR SPXLIB COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'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 ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS CBCSRCDIR CBCOBJDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE CGLSRCDIR CGLOBJDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE DYLPSRCDIR DYLPOBJDIR COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE OSISRCDIR OSIOBJDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE SYMSRCDIR SYMOBJDIR COIN_HAS_SYM_TRUE COIN_HAS_SYM_FALSE VOLSRCDIR VOLOBJDIR COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE FMPINCDIR FMPLIB COIN_HAS_FMP_TRUE COIN_HAS_FMP_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE OSLINCDIR OSLLIB COIN_HAS_OSL_TRUE COIN_HAS_OSL_FALSE SPXINCDIR SPXLIB COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS' 476 476 ac_subst_files='' 477 477 … … 1078 1078 --enable-debug-cbc compile this project (Cbc) with debug options 1079 1079 --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. 1081 1084 --enable-static[=PKGS] 1082 1085 build static libraries [default=no] … … 1708 1711 # retrieved by svn if they are not there yet. 1709 1712 # Initialize the ADDLIBS variable 1710 ADDLIBS= '-lm'1713 ADDLIBS="-lm $LIBS" 1711 1714 1712 1715 1713 1716 # Initialize the FADDLIBS variable (which is to be used with a fortran 1714 1717 # compiler and will not include FLIBS) 1715 FADDLIBS= 1718 FADDLIBS="$LIBS" 1716 1719 1717 1720 … … 1828 1831 fi 1829 1832 ;; 1830 esac 1831 1832 # Check whether --enable-doscompile or --disable-doscompile was given. 1833 esac 1834 case $enable_doscompile in 1835 msvc) 1836 if test "x${LD+set}" = xset; then :; else 1837 LD=link 1838 fi 1839 ;; 1840 esac 1841 1842 1843 # Check whether --enable-doscompile or --disable-doscompile was given. 1833 1844 if test "${enable_doscompile+set}" = set; then 1834 1845 enableval="$enable_doscompile" 1835 if test "$enable_doscompile = yes"; then1836 case $build in1837 *-cygwin*) ;;1838 *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes only senseunder Cygwin" >&51839 echo "$as_me: error: --enable-doscompile option makes only senseunder Cygwin" >&2;}1846 if test "$enable_doscompile" != no; then 1847 case $build in 1848 *-cygwin*) ;; 1849 *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5 1850 echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;} 1840 1851 { (exit 1); exit 1; }; } ;; 1841 esac1842 fi1852 esac 1853 fi 1843 1854 else 1844 1855 enable_doscompile=no 1845 1856 fi; 1857 case "$enable_doscompile" in 1858 msvc|mingw|no) ;; 1859 yes) enable_doscompile=mingw ;; 1860 *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile. 1861 Try configure --help=recursive." >&5 1862 echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile. 1863 Try configure --help=recursive." >&2;} 1864 { (exit 1); exit 1; }; } 1865 ;; 1866 esac 1867 if test "$enable_doscompile" != no ; then 1868 { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5 1869 echo "$as_me: DOS compile style is: $enable_doscompile" >&6;} 1870 fi 1846 1871 1847 1872 … … 1859 1884 if test x"$CXX" != x; then 1860 1885 case "$CXX" in 1861 cl* )1886 cl* | */cl* | CL* | */CL*) 1862 1887 if test x"$CC" = x; then 1863 1888 CC="$CXX" … … 1877 1902 1878 1903 save_cflags="$CFLAGS" 1904 # For sparc-sun-solaris, promote Studio/Workshop compiler to front of list. 1905 # ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which 1906 # is likely to be a non-functional shell. But many installations will have 1907 # both cc and gcc, so promoting gcc isn't good either. How to test reliably? 1879 1908 case $build in 1880 1909 *-cygwin* | *-mingw*) 1881 comps="gcc cl" ;; 1910 if test "$enable_doscompile" = msvc ; then 1911 comps="cl" 1912 else 1913 comps="gcc cl" 1914 fi ;; 1915 sparc-sun-solaris*) 1916 comps="cc xlc gcc pgcc icc" ;; 1882 1917 *-linux-*) comps="xlc gcc cc pgcc icc" ;; 1883 1918 *) comps="xlc_r xlc cc gcc pgcc icc" ;; … … 1885 1920 1886 1921 # We delete the cached value, since the test might not have been 1887 # performed with ou t choise of compilers earlier1922 # performed with our choice of compilers earlier 1888 1923 $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } 1924 # AC_MSG_NOTICE([C compiler candidates: $comps]) 1889 1925 ac_ext=c 1890 1926 ac_cpp='$CPP $CPPFLAGS' … … 2600 2636 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2601 2637 2638 if test -z "$CC" ; then 2639 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 2640 echo "$as_me: error: Failed to find a C compiler!" >&2;} 2641 { (exit 1); exit 1; }; } 2642 fi 2643 # Autoconf incorrectly concludes that cl recognises -g. It doesn't. 2644 case "$CC" in 2645 cl* | */cl* | CL* | */CL* ) 2646 if test "$ac_cv_prog_cc_g" = yes ; then 2647 ac_cv_prog_cc_g=no 2648 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 2649 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} 2650 fi ;; 2651 esac 2602 2652 CFLAGS="$save_cflags" 2603 2653 … … 2626 2676 coin_dbg_cflags="-g" 2627 2677 coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall" 2628 if test "$enable_doscompile" = yes; then 2629 case $build in 2630 *-cygwin*) 2631 CFLAGS="-mno-cygwin" 2632 cat >conftest.$ac_ext <<_ACEOF 2678 case $enable_doscompile in 2679 mingw) 2680 CFLAGS="-mno-cygwin" 2681 cat >conftest.$ac_ext <<_ACEOF 2633 2682 /* confdefs.h. */ 2634 2683 _ACEOF … … 2675 2724 rm -f conftest.err conftest.$ac_objext \ 2676 2725 conftest$ac_exeext conftest.$ac_ext 2677 CFLAGS= 2678 ;; 2679 esac 2680 fi 2726 CFLAGS= 2727 ;; 2728 esac 2681 2729 esac 2682 2730 fi … … 2685 2733 *-cygwin* | *-mingw*) 2686 2734 case "$CC" in 2687 cl* | */cl* )2688 coin_opt_cflags='- O2'2689 coin_add_cflags='-nologo '2690 coin_dbg_cflags='- Yd'2735 cl* | */cl* | CL* | */CL*) 2736 coin_opt_cflags='-MT -O2' 2737 coin_add_cflags='-nologo -wd4996' 2738 coin_dbg_cflags='-MTd' 2691 2739 ;; 2692 2740 esac … … 2833 2881 fi 2834 2882 2883 # if PM doesn't want the warning messages, take them out 2884 if test x"$coin_skip_warn_cflags" = xyes; then 2885 coin_warn_cflags= 2886 fi 2887 2835 2888 if test x${DBG_CFLAGS+set} != xset; then 2836 2889 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" … … 2858 2911 fi 2859 2912 2860 # Check if user wants to have additional CFLAGS options 2861 2862 if test x"$ADD_CFLAGS" != x; then 2863 CFLAGS="$CFLAGS $ADD_CFLAGS" 2864 fi 2913 # If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it. 2914 2915 case "$CFLAGS" in 2916 *-mno-cygwin*) 2917 if test x${CPPFLAGS+set} != xset ; then 2918 CPPFLAGS="-mno-cygwin" 2919 else 2920 case "$CPPFLAGS" in 2921 *-mno-cygwin*) 2922 ;; 2923 *) 2924 CPPFLAGS="$CPPFLAGS -mno-cygwin" 2925 ;; 2926 esac 2927 fi ;; 2928 esac 2865 2929 2866 2930 # Try if CFLAGS works … … 2980 3044 # Correct ADDLIBS initialization if we are using the MS compiler 2981 3045 case "$CC" in 2982 cl* )3046 cl* | */cl* | CL* | */CL*) 2983 3047 ADDLIBS= 2984 3048 case $build in … … 2988 3052 fi 2989 3053 ;; 2990 esac 3054 esac 3055 case $enable_doscompile in 3056 msvc) 3057 if test "x${LD+set}" = xset; then :; else 3058 LD=link 3059 fi 3060 ;; 3061 esac 2991 3062 2992 3063 ;; … … 3018 3089 3019 3090 save_cxxflags="$CXXFLAGS" 3091 # For sparc-sun-solaris, promote Studio/Workshop compiler to front of list. 3020 3092 case $build in 3021 3093 *-cygwin* | *-mingw*) 3022 comps="g++ cl" ;; 3094 if test "$enable_doscompile" = msvc ; then 3095 comps="cl" 3096 else 3097 comps="g++ cl" 3098 fi ;; 3099 sparc-sun-solaris*) 3100 comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; 3023 3101 *-darwin*) comps="g++ c++ CC" ;; 3024 3102 *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; … … 3026 3104 3027 3105 # We delete the cached value, since the test might not have been 3028 # performed with ou t choise of compilers earlier3106 # performed with our choice of compilers earlier 3029 3107 $as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; } 3108 # AC_MSG_NOTICE([C++ compiler candidates: $comps]) 3030 3109 ac_ext=cc 3031 3110 ac_cpp='$CXXCPP $CPPFLAGS' … … 3383 3462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3384 3463 3464 if test -z "$CXX" ; then 3465 { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5 3466 echo "$as_me: error: Failed to find a C++ compiler!" >&2;} 3467 { (exit 1); exit 1; }; } 3468 fi 3469 3470 # Autoconf incorrectly concludes that cl recognises -g. It doesn't. 3471 case "$CXX" in 3472 cl* | */cl* | CL* | */CL* ) 3473 if test "$ac_cv_prog_cxx_g" = yes ; then 3474 ac_cv_prog_cxx_g=no 3475 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 3476 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} 3477 fi ;; 3478 esac 3385 3479 CXXFLAGS="$save_cxxflags" 3386 3480 … … 3411 3505 coin_dbg_cxxflags="-g" 3412 3506 coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion" 3413 if test "$enable_doscompile" = yes; then 3414 case $build in 3415 *-cygwin*) 3416 CXXFLAGS="-mno-cygwin" 3417 cat >conftest.$ac_ext <<_ACEOF 3507 case $enable_doscompile in 3508 mingw) 3509 CXXFLAGS="-mno-cygwin" 3510 cat >conftest.$ac_ext <<_ACEOF 3418 3511 /* confdefs.h. */ 3419 3512 _ACEOF … … 3460 3553 rm -f conftest.err conftest.$ac_objext \ 3461 3554 conftest$ac_exeext conftest.$ac_ext 3462 CXXFLAGS= 3463 ;; 3464 esac 3465 fi 3555 CXXFLAGS= 3556 ;; 3557 esac 3466 3558 esac 3467 3559 fi 3560 3561 # Note that we do not need to cover GCC in the following tests. 3562 3468 3563 if test -z "$coin_opt_cxxflags"; then 3469 3564 case $build in 3470 3565 *-cygwin* | *-mingw*) 3471 3566 case "$CXX" in 3472 cl* | */cl*) 3473 coin_opt_cxxflags='-O2' 3474 coin_add_cxxflags='-nologo -EHsc -GR -MT' 3475 coin_dbg_cxxflags='-Yd' 3567 cl* | */cl* | CL* | */CL*) 3568 # The MT and MTd options are mutually exclusive 3569 coin_opt_cxxflags='-MT -O2' 3570 coin_add_cxxflags='-nologo -EHsc -GR -wd4996' 3571 coin_dbg_cxxflags='-MTd' 3476 3572 ;; 3477 3573 esac … … 3564 3660 fi 3565 3661 3662 # Generic flag settings. If these don't work, add a case above. 3663 3566 3664 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then 3567 3665 coin_dbg_cxxflags="-g" … … 3618 3716 fi 3619 3717 3718 # if PM doesn't want the warning messages, take them out 3719 if test x"$coin_skip_warn_cxxflags" = xyes; then 3720 coin_warn_cxxflags= 3721 fi 3722 3723 # Do final setup of flags based on values determined above. 3724 3620 3725 if test x${DBG_CXXFLAGS+set} != xset; then 3621 3726 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags" … … 3633 3738 CXXFLAGS="$OPT_CXXFLAGS" 3634 3739 fi 3740 3741 # Handle the case where CXXFLAGS was set externally. 3635 3742 else 3636 3743 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" … … 3642 3749 fi 3643 3750 fi 3751 3752 # If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it. 3753 3754 case "$CXXFLAGS" in 3755 *-mno-cygwin*) 3756 if test x${CPPFLAGS+set} != xset ; then 3757 CPPFLAGS="-mno-cygwin" 3758 else 3759 case "$CPPFLAGS" in 3760 *-mno-cygwin*) 3761 ;; 3762 *) 3763 CPPFLAGS="$CPPFLAGS -mno-cygwin" 3764 ;; 3765 esac 3766 fi ;; 3767 esac 3644 3768 3645 3769 # Try if CXXFLAGS works … … 3758 3882 3759 3883 case "$CXX" in 3760 cl* )3884 cl* | */cl* | CL* | */CL* ) 3761 3885 case $build in 3762 3886 *-mingw*) … … 3765 3889 fi 3766 3890 ;; 3767 esac 3891 esac 3892 case $enable_doscompile in 3893 msvc) 3894 if test "x${LD+set}" = xset; then :; else 3895 LD=link 3896 fi 3897 ;; 3898 esac 3768 3899 3769 3900 ;; … … 3779 3910 3780 3911 # Initialize automake and libtool 3912 { 3913 3914 3915 3916 # START 3781 3917 3782 3918 # On Cygwin, building DLLs doesn't work … … 3831 3967 3832 3968 3969 3970 # Initialize automake 3833 3971 echo "$as_me:$LINENO: checking for egrep" >&5 3834 3972 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 … … 4173 4311 4174 4312 4175 ac_ext=c 4176 ac_cpp='$CPP $CPPFLAGS' 4177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4179 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4180 4181 if test x"" = x; then 4182 hdr="#include <dlfcn.h>" 4183 else 4184 hdr="" 4185 fi 4186 4187 for ac_header in dlfcn.h 4313 4314 4315 # AC_MSG_NOTICE([Beginning automake initialisation.]) 4316 # Stuff for automake 4317 # test to see if srcdir already configured 4318 if test "`cd $srcdir && pwd`" != "`pwd`" && 4319 test -f $srcdir/config.status; then 4320 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 4321 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 4322 { (exit 1); exit 1; }; } 4323 fi 4324 4325 # test whether we have cygpath 4326 if test -z "$CYGPATH_W"; then 4327 if (cygpath --version) >/dev/null 2>/dev/null; then 4328 CYGPATH_W='cygpath -w' 4329 else 4330 CYGPATH_W=echo 4331 fi 4332 fi 4333 4334 4335 # Define the identity of the package. 4336 PACKAGE='cbc' 4337 VERSION='0.1' 4338 4339 4340 cat >>confdefs.h <<_ACEOF 4341 #define PACKAGE "$PACKAGE" 4342 _ACEOF 4343 4344 4345 cat >>confdefs.h <<_ACEOF 4346 #define VERSION "$VERSION" 4347 _ACEOF 4348 4349 # Some tools Automake needs. 4350 4351 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4352 4353 4354 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4355 4356 4357 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4358 4359 4360 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4361 4362 4363 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4364 4365 install_sh=${install_sh-"$am_aux_dir/install-sh"} 4366 4367 # Installed binaries are usually stripped using `strip' when the user 4368 # run `make install-strip'. However `strip' might not be the right 4369 # tool to use in cross-compilation environments, therefore Automake 4370 # will honor the `STRIP' environment variable to overrule this program. 4371 if test "$cross_compiling" != no; then 4372 if test -n "$ac_tool_prefix"; then 4373 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4374 set dummy ${ac_tool_prefix}strip; ac_word=$2 4375 echo "$as_me:$LINENO: checking for $ac_word" >&5 4376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4377 if test "${ac_cv_prog_STRIP+set}" = set; then 4378 echo $ECHO_N "(cached) $ECHO_C" >&6 4379 else 4380 if test -n "$STRIP"; then 4381 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4382 else 4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4384 for as_dir in $PATH 4188 4385 do 4189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4190 echo "$as_me:$LINENO: checking for $ac_header" >&5 4191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4192 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4386 IFS=$as_save_IFS 4387 test -z "$as_dir" && as_dir=. 4388 for ac_exec_ext in '' $ac_executable_extensions; do 4389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4390 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4392 break 2 4393 fi 4394 done 4395 done 4396 4397 fi 4398 fi 4399 STRIP=$ac_cv_prog_STRIP 4400 if test -n "$STRIP"; then 4401 echo "$as_me:$LINENO: result: $STRIP" >&5 4402 echo "${ECHO_T}$STRIP" >&6 4403 else 4404 echo "$as_me:$LINENO: result: no" >&5 4405 echo "${ECHO_T}no" >&6 4406 fi 4407 4408 fi 4409 if test -z "$ac_cv_prog_STRIP"; then 4410 ac_ct_STRIP=$STRIP 4411 # Extract the first word of "strip", so it can be a program name with args. 4412 set dummy strip; ac_word=$2 4413 echo "$as_me:$LINENO: checking for $ac_word" >&5 4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4415 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 4193 4416 echo $ECHO_N "(cached) $ECHO_C" >&6 4194 4417 else 4195 cat >conftest.$ac_ext <<_ACEOF 4196 /* confdefs.h. */ 4197 _ACEOF 4198 cat confdefs.h >>conftest.$ac_ext 4199 cat >>conftest.$ac_ext <<_ACEOF 4200 /* end confdefs.h. */ 4201 $hdr 4202 4203 #include <$ac_header> 4204 _ACEOF 4205 rm -f conftest.$ac_objext 4206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4207 (eval $ac_compile) 2>conftest.er1 4208 ac_status=$? 4209 grep -v '^ *+' conftest.er1 >conftest.err 4210 rm -f conftest.er1 4211 cat conftest.err >&5 4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4213 (exit $ac_status); } && 4214 { ac_try='test -z "$ac_c_werror_flag" 4215 || test ! -s conftest.err' 4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4217 (eval $ac_try) 2>&5 4218 ac_status=$? 4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4220 (exit $ac_status); }; } && 4221 { ac_try='test -s conftest.$ac_objext' 4222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4223 (eval $ac_try) 2>&5 4224 ac_status=$? 4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4226 (exit $ac_status); }; }; then 4227 eval "$as_ac_Header=yes" 4228 else 4229 echo "$as_me: failed program was:" >&5 4230 sed 's/^/| /' conftest.$ac_ext >&5 4231 4232 eval "$as_ac_Header=no" 4233 fi 4234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4235 fi 4236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4238 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4239 cat >>confdefs.h <<_ACEOF 4240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4241 _ACEOF 4242 4243 fi 4244 4418 if test -n "$ac_ct_STRIP"; then 4419 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4420 else 4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4422 for as_dir in $PATH 4423 do 4424 IFS=$as_save_IFS 4425 test -z "$as_dir" && as_dir=. 4426 for ac_exec_ext in '' $ac_executable_extensions; do 4427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4428 ac_cv_prog_ac_ct_STRIP="strip" 4429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4430 break 2 4431 fi 4245 4432 done 4246 4247 4248 ac_ext=c 4249 ac_cpp='$CPP $CPPFLAGS' 4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4253 4254 4255 # Check whether --enable-shared or --disable-shared was given. 4433 done 4434 4435 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 4436 fi 4437 fi 4438 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4439 if test -n "$ac_ct_STRIP"; then 4440 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 4441 echo "${ECHO_T}$ac_ct_STRIP" >&6 4442 else 4443 echo "$as_me:$LINENO: result: no" >&5 4444 echo "${ECHO_T}no" >&6 4445 fi 4446 4447 STRIP=$ac_ct_STRIP 4448 else 4449 STRIP="$ac_cv_prog_STRIP" 4450 fi 4451 4452 fi 4453 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 4454 4455 # We need awk for the "check" target. The system "awk" is bad on 4456 # some platforms. 4457 # Always define AMTAR for backward compatibility. 4458 4459 AMTAR=${AMTAR-"${am_missing_run}tar"} 4460 4461 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 4462 4463 4464 4465 4466 depcc="$CC" am_compiler_list= 4467 4468 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4469 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4470 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4471 echo $ECHO_N "(cached) $ECHO_C" >&6 4472 else 4473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4474 # We make a subdir and do the tests there. Otherwise we can end up 4475 # making bogus files that we don't know about and never remove. For 4476 # instance it was reported that on HP-UX the gcc test will end up 4477 # making a dummy file named `D' -- because `-MD' means `put the output 4478 # in D'. 4479 mkdir conftest.dir 4480 # Copy depcomp to subdir because otherwise we won't find it if we're 4481 # using a relative directory. 4482 cp "$am_depcomp" conftest.dir 4483 cd conftest.dir 4484 # We will build objects and dependencies in a subdirectory because 4485 # it helps to detect inapplicable dependency modes. For instance 4486 # both Tru64's cc and ICC support -MD to output dependencies as a 4487 # side effect of compilation, but ICC will put the dependencies in 4488 # the current directory while Tru64 will put them in the object 4489 # directory. 4490 mkdir sub 4491 4492 am_cv_CC_dependencies_compiler_type=none 4493 if test "$am_compiler_list" = ""; then 4494 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4495 fi 4496 for depmode in $am_compiler_list; do 4497 # Setup a source with many dependencies, because some compilers 4498 # like to wrap large dependency lists on column 80 (with \), and 4499 # we should not choose a depcomp mode which is confused by this. 4500 # 4501 # We need to recreate these files for each test, as the compiler may 4502 # overwrite some of them when testing with obscure command lines. 4503 # This happens at least with the AIX C compiler. 4504 : > sub/conftest.c 4505 for i in 1 2 3 4 5 6; do 4506 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4507 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4508 # Solaris 8's {/usr,}/bin/sh. 4509 touch sub/conftst$i.h 4510 done 4511 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4512 4513 case $depmode in 4514 nosideeffect) 4515 # after this tag, mechanisms are not by side-effect, so they'll 4516 # only be used when explicitly requested 4517 if test "x$enable_dependency_tracking" = xyes; then 4518 continue 4519 else 4520 break 4521 fi 4522 ;; 4523 none) break ;; 4524 esac 4525 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4526 # mode. It turns out that the SunPro C++ compiler does not properly 4527 # handle `-M -o', and we need to detect this. 4528 if depmode=$depmode \ 4529 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4530 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4531 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4532 >/dev/null 2>conftest.err && 4533 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4534 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4535 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4536 # icc doesn't choke on unknown options, it will just issue warnings 4537 # or remarks (even with -Werror). So we grep stderr for any message 4538 # that says an option was ignored or not supported. 4539 # When given -MP, icc 7.0 and 7.1 complain thusly: 4540 # icc: Command line warning: ignoring option '-M'; no argument required 4541 # The diagnosis changed in icc 8.0: 4542 # icc: Command line remark: option '-MP' not supported 4543 if (grep 'ignoring option' conftest.err || 4544 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4545 am_cv_CC_dependencies_compiler_type=$depmode 4546 break 4547 fi 4548 fi 4549 done 4550 4551 cd .. 4552 rm -rf conftest.dir 4553 else 4554 am_cv_CC_dependencies_compiler_type=none 4555 fi 4556 4557 fi 4558 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4559 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 4560 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4561 4562 4563 4564 if 4565 test "x$enable_dependency_tracking" != xno \ 4566 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4567 am__fastdepCC_TRUE= 4568 am__fastdepCC_FALSE='#' 4569 else 4570 am__fastdepCC_TRUE='#' 4571 am__fastdepCC_FALSE= 4572 fi 4573 4574 4575 depcc="$CXX" am_compiler_list= 4576 4577 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4578 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4579 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4580 echo $ECHO_N "(cached) $ECHO_C" >&6 4581 else 4582 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4583 # We make a subdir and do the tests there. Otherwise we can end up 4584 # making bogus files that we don't know about and never remove. For 4585 # instance it was reported that on HP-UX the gcc test will end up 4586 # making a dummy file named `D' -- because `-MD' means `put the output 4587 # in D'. 4588 mkdir conftest.dir 4589 # Copy depcomp to subdir because otherwise we won't find it if we're 4590 # using a relative directory. 4591 cp "$am_depcomp" conftest.dir 4592 cd conftest.dir 4593 # We will build objects and dependencies in a subdirectory because 4594 # it helps to detect inapplicable dependency modes. For instance 4595 # both Tru64's cc and ICC support -MD to output dependencies as a 4596 # side effect of compilation, but ICC will put the dependencies in 4597 # the current directory while Tru64 will put them in the object 4598 # directory. 4599 mkdir sub 4600 4601 am_cv_CXX_dependencies_compiler_type=none 4602 if test "$am_compiler_list" = ""; then 4603 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4604 fi 4605 for depmode in $am_compiler_list; do 4606 # Setup a source with many dependencies, because some compilers 4607 # like to wrap large dependency lists on column 80 (with \), and 4608 # we should not choose a depcomp mode which is confused by this. 4609 # 4610 # We need to recreate these files for each test, as the compiler may 4611 # overwrite some of them when testing with obscure command lines. 4612 # This happens at least with the AIX C compiler. 4613 : > sub/conftest.c 4614 for i in 1 2 3 4 5 6; do 4615 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4616 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4617 # Solaris 8's {/usr,}/bin/sh. 4618 touch sub/conftst$i.h 4619 done 4620 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4621 4622 case $depmode in 4623 nosideeffect) 4624 # after this tag, mechanisms are not by side-effect, so they'll 4625 # only be used when explicitly requested 4626 if test "x$enable_dependency_tracking" = xyes; then 4627 continue 4628 else 4629 break 4630 fi 4631 ;; 4632 none) break ;; 4633 esac 4634 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4635 # mode. It turns out that the SunPro C++ compiler does not properly 4636 # handle `-M -o', and we need to detect this. 4637 if depmode=$depmode \ 4638 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4639 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4640 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4641 >/dev/null 2>conftest.err && 4642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4643 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4645 # icc doesn't choke on unknown options, it will just issue warnings 4646 # or remarks (even with -Werror). So we grep stderr for any message 4647 # that says an option was ignored or not supported. 4648 # When given -MP, icc 7.0 and 7.1 complain thusly: 4649 # icc: Command line warning: ignoring option '-M'; no argument required 4650 # The diagnosis changed in icc 8.0: 4651 # icc: Command line remark: option '-MP' not supported 4652 if (grep 'ignoring option' conftest.err || 4653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4654 am_cv_CXX_dependencies_compiler_type=$depmode 4655 break 4656 fi 4657 fi 4658 done 4659 4660 cd .. 4661 rm -rf conftest.dir 4662 else 4663 am_cv_CXX_dependencies_compiler_type=none 4664 fi 4665 4666 fi 4667 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4668 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 4669 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4670 4671 4672 4673 if 4674 test "x$enable_dependency_tracking" != xno \ 4675 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4676 am__fastdepCXX_TRUE= 4677 am__fastdepCXX_FALSE='#' 4678 else 4679 am__fastdepCXX_TRUE='#' 4680 am__fastdepCXX_FALSE= 4681 fi 4682 4683 4684 4685 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 4686 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 4687 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 4688 if test "${enable_maintainer_mode+set}" = set; then 4689 enableval="$enable_maintainer_mode" 4690 USE_MAINTAINER_MODE=$enableval 4691 else 4692 USE_MAINTAINER_MODE=no 4693 fi; 4694 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 4695 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 4696 4697 4698 if test $USE_MAINTAINER_MODE = yes; then 4699 MAINTAINER_MODE_TRUE= 4700 MAINTAINER_MODE_FALSE='#' 4701 else 4702 MAINTAINER_MODE_TRUE='#' 4703 MAINTAINER_MODE_FALSE= 4704 fi 4705 4706 MAINT=$MAINTAINER_MODE_TRUE 4707 4708 4709 4710 coin_have_externals=no 4711 if test "$enable_maintainer_mode" = yes; then 4712 4713 # If maintainer mode is chosen, we make sure that the correct versions 4714 # of the tools are used, and that we know where libtool.m4 is (to 4715 # recreate acinclude.m4) 4716 4717 4718 LIBTOOLM4= 4719 # Normally, $HOME 4720 AUTOTOOLS_DFLT=$HOME 4721 4722 echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5 4723 echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6 4724 if test "${ac_cv_use_correct_autotools+set}" = set; then 4725 echo $ECHO_N "(cached) $ECHO_C" >&6 4726 else 4727 ac_cv_use_correct_autotools=check 4728 fi 4729 echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5 4730 echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6 4731 4732 if test $ac_cv_use_correct_autotools = check; then 4733 ac_cv_use_correct_autotools=yes 4734 # Check if we have autoconf 4735 # Extract the first word of "autoconf", so it can be a program name with args. 4736 set dummy autoconf; ac_word=$2 4737 echo "$as_me:$LINENO: checking for $ac_word" >&5 4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4739 if test "${ac_cv_prog_have_autoconf+set}" = set; then 4740 echo $ECHO_N "(cached) $ECHO_C" >&6 4741 else 4742 if test -n "$have_autoconf"; then 4743 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. 4744 else 4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4746 for as_dir in $PATH 4747 do 4748 IFS=$as_save_IFS 4749 test -z "$as_dir" && as_dir=. 4750 for ac_exec_ext in '' $ac_executable_extensions; do 4751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4752 ac_cv_prog_have_autoconf="yes" 4753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4754 break 2 4755 fi 4756 done 4757 done 4758 4759 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" 4760 fi 4761 fi 4762 have_autoconf=$ac_cv_prog_have_autoconf 4763 if test -n "$have_autoconf"; then 4764 echo "$as_me:$LINENO: result: $have_autoconf" >&5 4765 echo "${ECHO_T}$have_autoconf" >&6 4766 else 4767 echo "$as_me:$LINENO: result: no" >&5 4768 echo "${ECHO_T}no" >&6 4769 fi 4770 4771 if test $have_autoconf = no; then 4772 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 4773 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} 4774 { (exit 1); exit 1; }; } 4775 fi 4776 4777 # Check whether autoconf is the correct version 4778 correct_version='2.59' 4779 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 4780 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 4781 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 4782 autoconf --version > confauto.out 2>&1 4783 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 4784 echo "$as_me:$LINENO: result: yes" >&5 4785 echo "${ECHO_T}yes" >&6 4786 else 4787 rm -f confauto.out 4788 echo "$as_me:$LINENO: result: no" >&5 4789 echo "${ECHO_T}no" >&6 4790 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 4791 echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} 4792 { (exit 1); exit 1; }; } 4793 fi 4794 rm -f confauto.out 4795 4796 # Check if the executable autoconf is picked up from the correct location 4797 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 4798 echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 4799 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` 4800 autoconf_dir=`cd $autoconf_dir; pwd` 4801 if test x$AUTOTOOLS_DIR = x; then 4802 want_dir=$AUTOTOOLS_DFLT/bin 4803 else 4804 want_dir=$AUTOTOOLS_DIR/bin 4805 fi 4806 if test $autoconf_dir = `cd $want_dir; pwd`; then 4807 echo "$as_me:$LINENO: result: yes" >&5 4808 echo "${ECHO_T}yes" >&6 4809 else 4810 rm -f confauto.out 4811 echo "$as_me:$LINENO: result: no" >&5 4812 echo "${ECHO_T}no" >&6 4813 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 4814 echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} 4815 { (exit 1); exit 1; }; } 4816 fi 4817 4818 # Check if we have automake 4819 # Extract the first word of "automake", so it can be a program name with args. 4820 set dummy automake; ac_word=$2 4821 echo "$as_me:$LINENO: checking for $ac_word" >&5 4822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4823 if test "${ac_cv_prog_have_automake+set}" = set; then 4824 echo $ECHO_N "(cached) $ECHO_C" >&6 4825 else 4826 if test -n "$have_automake"; then 4827 ac_cv_prog_have_automake="$have_automake" # Let the user override the test. 4828 else 4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4830 for as_dir in $PATH 4831 do 4832 IFS=$as_save_IFS 4833 test -z "$as_dir" && as_dir=. 4834 for ac_exec_ext in '' $ac_executable_extensions; do 4835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4836 ac_cv_prog_have_automake="yes" 4837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4838 break 2 4839 fi 4840 done 4841 done 4842 4843 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" 4844 fi 4845 fi 4846 have_automake=$ac_cv_prog_have_automake 4847 if test -n "$have_automake"; then 4848 echo "$as_me:$LINENO: result: $have_automake" >&5 4849 echo "${ECHO_T}$have_automake" >&6 4850 else 4851 echo "$as_me:$LINENO: result: no" >&5 4852 echo "${ECHO_T}no" >&6 4853 fi 4854 4855 if test $have_automake = no; then 4856 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 4857 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} 4858 { (exit 1); exit 1; }; } 4859 fi 4860 4861 # Check whether automake is the correct version 4862 correct_version='1.9.6' 4863 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 4864 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 4865 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 4866 automake --version > confauto.out 2>&1 4867 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 4868 echo "$as_me:$LINENO: result: yes" >&5 4869 echo "${ECHO_T}yes" >&6 4870 else 4871 rm -f confauto.out 4872 echo "$as_me:$LINENO: result: no" >&5 4873 echo "${ECHO_T}no" >&6 4874 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 4875 echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} 4876 { (exit 1); exit 1; }; } 4877 fi 4878 rm -f confauto.out 4879 4880 # Check if the executable automake is picked up from the correct location 4881 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 4882 echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 4883 automake_dir=`which automake | sed -e 's=/automake=='` 4884 automake_dir=`cd $automake_dir; pwd` 4885 if test x$AUTOTOOLS_DIR = x; then 4886 want_dir=$AUTOTOOLS_DFLT/bin 4887 else 4888 want_dir=$AUTOTOOLS_DIR/bin 4889 fi 4890 if test $automake_dir = `cd $want_dir; pwd`; then 4891 echo "$as_me:$LINENO: result: yes" >&5 4892 echo "${ECHO_T}yes" >&6 4893 else 4894 rm -f confauto.out 4895 echo "$as_me:$LINENO: result: no" >&5 4896 echo "${ECHO_T}no" >&6 4897 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5 4898 echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;} 4899 { (exit 1); exit 1; }; } 4900 fi 4901 4902 # Check if this is the correct version of libtool (with escaped dots) 4903 if test x$AUTOTOOLS_DIR = x; then 4904 want_dir=$AUTOTOOLS_DFLT/share 4905 else 4906 want_dir=$AUTOTOOLS_DIR/share 4907 fi 4908 correct_version='1.5.22' 4909 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 4910 as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh` 4911 echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5 4912 echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6 4913 if eval "test \"\${$as_ac_File+set}\" = set"; then 4914 echo $ECHO_N "(cached) $ECHO_C" >&6 4915 else 4916 test "$cross_compiling" = yes && 4917 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 4918 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 4919 { (exit 1); exit 1; }; } 4920 if test -r "$want_dir/libtool/ltmain.sh"; then 4921 eval "$as_ac_File=yes" 4922 else 4923 eval "$as_ac_File=no" 4924 fi 4925 fi 4926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 4927 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 4928 if test `eval echo '${'$as_ac_File'}'` = yes; then 4929 have_ltmain=yes 4930 else 4931 have_ltmain=no 4932 fi 4933 4934 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 4935 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 4936 if test $have_ltmain = yes; then 4937 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then 4938 echo "$as_me:$LINENO: result: yes" >&5 4939 echo "${ECHO_T}yes" >&6 4940 else 4941 echo "$as_me:$LINENO: result: no" >&5 4942 echo "${ECHO_T}no" >&6 4943 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 4944 echo "$as_me: error: You don't have the correct version of libtool." >&2;} 4945 { (exit 1); exit 1; }; } 4946 fi 4947 else 4948 echo "$as_me:$LINENO: result: no" >&5 4949 echo "${ECHO_T}no" >&6 4950 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 4951 echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} 4952 { (exit 1); exit 1; }; } 4953 fi 4954 fi 4955 4956 # Check if we can find the libtool file 4957 if test x$AUTOTOOLS_DIR = x; then 4958 want_dir=$AUTOTOOLS_DFLT/share 4959 else 4960 want_dir=$AUTOTOOLS_DIR/share 4961 fi 4962 as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh` 4963 echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5 4964 echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6 4965 if eval "test \"\${$as_ac_File+set}\" = set"; then 4966 echo $ECHO_N "(cached) $ECHO_C" >&6 4967 else 4968 test "$cross_compiling" = yes && 4969 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 4970 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 4971 { (exit 1); exit 1; }; } 4972 if test -r "$want_dir/aclocal/libtool.m4"; then 4973 eval "$as_ac_File=yes" 4974 else 4975 eval "$as_ac_File=no" 4976 fi 4977 fi 4978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 4979 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 4980 if test `eval echo '${'$as_ac_File'}'` = yes; then 4981 LIBTOOLM4="$want_dir/aclocal/libtool.m4" 4982 else 4983 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 4984 echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} 4985 { (exit 1); exit 1; }; } 4986 fi 4987 4988 4989 # Check if we have an Externals file 4990 if test -r $srcdir/Externals; then 4991 coin_have_externals=yes 4992 fi 4993 # Check if subversion is installed and understands https 4994 # Extract the first word of "svn", so it can be a program name with args. 4995 set dummy svn; ac_word=$2 4996 echo "$as_me:$LINENO: checking for $ac_word" >&5 4997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4998 if test "${ac_cv_prog_have_svn+set}" = set; then 4999 echo $ECHO_N "(cached) $ECHO_C" >&6 5000 else 5001 if test -n "$have_svn"; then 5002 ac_cv_prog_have_svn="$have_svn" # Let the user override the test. 5003 else 5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5005 for as_dir in $PATH 5006 do 5007 IFS=$as_save_IFS 5008 test -z "$as_dir" && as_dir=. 5009 for ac_exec_ext in '' $ac_executable_extensions; do 5010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5011 ac_cv_prog_have_svn="yes" 5012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5013 break 2 5014 fi 5015 done 5016 done 5017 5018 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" 5019 fi 5020 fi 5021 have_svn=$ac_cv_prog_have_svn 5022 if test -n "$have_svn"; then 5023 echo "$as_me:$LINENO: result: $have_svn" >&5 5024 echo "${ECHO_T}$have_svn" >&6 5025 else 5026 echo "$as_me:$LINENO: result: no" >&5 5027 echo "${ECHO_T}no" >&6 5028 fi 5029 5030 if test x$have_svn = xyes; then 5031 echo "$as_me:$LINENO: checking whether svn understands https" >&5 5032 echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6 5033 if test "${ac_cv_svn_understands_https+set}" = set; then 5034 echo $ECHO_N "(cached) $ECHO_C" >&6 5035 else 5036 svn --version > confauto.out 2>&1 5037 if $EGREP https confauto.out >/dev/null 2>&1; then 5038 ac_cv_svn_understands_https=yes 5039 else 5040 ac_cv_svn_understands_https=no 5041 have_svn=no 5042 ac_cv_prog_have_svn=no 5043 fi 5044 rm -f confauto.out 5045 fi 5046 echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5 5047 echo "${ECHO_T}$ac_cv_svn_understands_https" >&6 5048 fi 5049 5050 # Find the location of the BuildTools directory 5051 BUILDTOOLSDIR= 5052 if test -r $srcdir/BuildTools/coin.m4; then 5053 BUILDTOOLSDIR=$srcdir/BuildTools 5054 else 5055 if test -r $srcdir/../BuildTools/coin.m4; then 5056 BUILDTOOLSDIR=$srcdir/../BuildTools 5057 else 5058 if test -r $srcdir/../../BuildTools/coin.m4; then 5059 BUILDTOOLSDIR=$srcdir/../../BuildTools 5060 else 5061 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 5062 echo "$as_me: error: Cannot find the BuildTools directory" >&2;} 5063 { (exit 1); exit 1; }; } 5064 fi 5065 fi 5066 fi 5067 5068 5069 # The following variable is set to the name of the directory where 5070 # the autotool scripts are located 5071 5072 AUX_DIR=$ac_aux_dir 5073 fi 5074 5075 # helpful variable for the base directory of this package 5076 abs_source_dir=`cd $srcdir; pwd` 5077 5078 5079 # Stuff for example Makefiles 5080 if test x$prefix = xNONE; then 5081 full_prefix=$ac_default_prefix 5082 else 5083 full_prefix=$prefix 5084 fi 5085 full_prefix=`cd $full_prefix ; pwd` 5086 5087 abs_lib_dir=$full_prefix/lib 5088 5089 abs_include_dir=$full_prefix/include 5090 5091 abs_bin_dir=$full_prefix/bin 5092 5093 5094 5095 if test $coin_have_externals = yes && test x$have_svn = xyes; then 5096 HAVE_EXTERNALS_TRUE= 5097 HAVE_EXTERNALS_FALSE='#' 5098 else 5099 HAVE_EXTERNALS_TRUE='#' 5100 HAVE_EXTERNALS_FALSE= 5101 fi 5102 5103 5104 # AC_MSG_NOTICE([End automake initialisation.]) 5105 5106 5107 5108 unset ac_cv_file__________libtool 5109 unset ac_cv_file_______libtool 5110 unset ac_cv_file____libtool 5111 5112 LIBTOOL= 5113 echo "$as_me:$LINENO: checking for ../libtool" >&5 5114 echo $ECHO_N "checking for ../libtool... $ECHO_C" >&6 5115 if test "${ac_cv_file____libtool+set}" = set; then 5116 echo $ECHO_N "(cached) $ECHO_C" >&6 5117 else 5118 test "$cross_compiling" = yes && 5119 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 5120 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 5121 { (exit 1); exit 1; }; } 5122 if test -r "../libtool"; then 5123 ac_cv_file____libtool=yes 5124 else 5125 ac_cv_file____libtool=no 5126 fi 5127 fi 5128 echo "$as_me:$LINENO: result: $ac_cv_file____libtool" >&5 5129 echo "${ECHO_T}$ac_cv_file____libtool" >&6 5130 if test $ac_cv_file____libtool = yes; then 5131 coin_config_dir=.. 5132 LIBTOOL='$(SHELL) $(top_builddir)/../libtool' 5133 fi 5134 5135 if test "x$LIBTOOL" = x; then 5136 echo "$as_me:$LINENO: checking for ../../libtool" >&5 5137 echo $ECHO_N "checking for ../../libtool... $ECHO_C" >&6 5138 if test "${ac_cv_file_______libtool+set}" = set; then 5139 echo $ECHO_N "(cached) $ECHO_C" >&6 5140 else 5141 test "$cross_compiling" = yes && 5142 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 5143 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 5144 { (exit 1); exit 1; }; } 5145 if test -r "../../libtool"; then 5146 ac_cv_file_______libtool=yes 5147 else 5148 ac_cv_file_______libtool=no 5149 fi 5150 fi 5151 echo "$as_me:$LINENO: result: $ac_cv_file_______libtool" >&5 5152 echo "${ECHO_T}$ac_cv_file_______libtool" >&6 5153 if test $ac_cv_file_______libtool = yes; then 5154 coin_config_dir=../.. 5155 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool' 5156 fi 5157 5158 fi 5159 # if test "x$LIBTOOL" = x; then 5160 # AC_CHECK_FILE([../../../libtool], 5161 # [coin_config_dir=../../.. 5162 # LIBTOOL='$(SHELL) $(top_builddir)/../../../libtool']) 5163 # fi 5164 5165 if test "x$LIBTOOL" = x; then 5166 # AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).]) 5167 # Stuff for libtool 5168 # Check whether --enable-shared or --disable-shared was given. 4256 5169 if test "${enable_shared+set}" = set; then 4257 5170 enableval="$enable_shared" … … 4801 5714 *-*-irix6*) 4802 5715 # Find out which ABI we are using. 4803 echo '#line 4803"configure"' > conftest.$ac_ext5716 echo '#line 5716 "configure"' > conftest.$ac_ext 4804 5717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4805 5718 (eval $ac_compile) 2>&5 … … 5935 6848 5936 6849 # Provide some information about the compiler. 5937 echo "$as_me: 5937:" \6850 echo "$as_me:6850:" \ 5938 6851 "checking for Fortran 77 compiler version" >&5 5939 6852 ac_compiler=`set X $ac_compile; echo $2` … … 7002 7915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7003 7916 -e 's:$: $lt_compiler_flag:'` 7004 (eval echo "\"\$as_me:7 004: $lt_compile\"" >&5)7917 (eval echo "\"\$as_me:7917: $lt_compile\"" >&5) 7005 7918 (eval "$lt_compile" 2>conftest.err) 7006 7919 ac_status=$? 7007 7920 cat conftest.err >&5 7008 echo "$as_me:7 008: \$? = $ac_status" >&57921 echo "$as_me:7921: \$? = $ac_status" >&5 7009 7922 if (exit $ac_status) && test -s "$ac_outfile"; then 7010 7923 # The compiler can only warn and ignore the option if not recognized … … 7270 8183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7271 8184 -e 's:$: $lt_compiler_flag:'` 7272 (eval echo "\"\$as_me: 7272: $lt_compile\"" >&5)8185 (eval echo "\"\$as_me:8185: $lt_compile\"" >&5) 7273 8186 (eval "$lt_compile" 2>conftest.err) 7274 8187 ac_status=$? 7275 8188 cat conftest.err >&5 7276 echo "$as_me: 7276: \$? = $ac_status" >&58189 echo "$as_me:8189: \$? = $ac_status" >&5 7277 8190 if (exit $ac_status) && test -s "$ac_outfile"; then 7278 8191 # The compiler can only warn and ignore the option if not recognized … … 7374 8287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7375 8288 -e 's:$: $lt_compiler_flag:'` 7376 (eval echo "\"\$as_me: 7376: $lt_compile\"" >&5)8289 (eval echo "\"\$as_me:8289: $lt_compile\"" >&5) 7377 8290 (eval "$lt_compile" 2>out/conftest.err) 7378 8291 ac_status=$? 7379 8292 cat out/conftest.err >&5 7380 echo "$as_me: 7380: \$? = $ac_status" >&58293 echo "$as_me:8293: \$? = $ac_status" >&5 7381 8294 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7382 8295 then … … 9719 10632 lt_status=$lt_dlunknown 9720 10633 cat > conftest.$ac_ext <<EOF 9721 #line 9721"configure"10634 #line 10634 "configure" 9722 10635 #include "confdefs.h" 9723 10636 … … 9819 10732 lt_status=$lt_dlunknown 9820 10733 cat > conftest.$ac_ext <<EOF 9821 #line 9821"configure"10734 #line 10734 "configure" 9822 10735 #include "confdefs.h" 9823 10736 … … 12163 13076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12164 13077 -e 's:$: $lt_compiler_flag:'` 12165 (eval echo "\"\$as_me:1 2165: $lt_compile\"" >&5)13078 (eval echo "\"\$as_me:13078: $lt_compile\"" >&5) 12166 13079 (eval "$lt_compile" 2>conftest.err) 12167 13080 ac_status=$? 12168 13081 cat conftest.err >&5 12169 echo "$as_me:1 2169: \$? = $ac_status" >&513082 echo "$as_me:13082: \$? = $ac_status" >&5 12170 13083 if (exit $ac_status) && test -s "$ac_outfile"; then 12171 13084 # The compiler can only warn and ignore the option if not recognized … … 12267 13180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12268 13181 -e 's:$: $lt_compiler_flag:'` 12269 (eval echo "\"\$as_me:1 2269: $lt_compile\"" >&5)13182 (eval echo "\"\$as_me:13182: $lt_compile\"" >&5) 12270 13183 (eval "$lt_compile" 2>out/conftest.err) 12271 13184 ac_status=$? 12272 13185 cat out/conftest.err >&5 12273 echo "$as_me:1 2273: \$? = $ac_status" >&513186 echo "$as_me:13186: \$? = $ac_status" >&5 12274 13187 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12275 13188 then … … 13837 14750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13838 14751 -e 's:$: $lt_compiler_flag:'` 13839 (eval echo "\"\$as_me:1 3839: $lt_compile\"" >&5)14752 (eval echo "\"\$as_me:14752: $lt_compile\"" >&5) 13840 14753 (eval "$lt_compile" 2>conftest.err) 13841 14754 ac_status=$? 13842 14755 cat conftest.err >&5 13843 echo "$as_me:1 3843: \$? = $ac_status" >&514756 echo "$as_me:14756: \$? = $ac_status" >&5 13844 14757 if (exit $ac_status) && test -s "$ac_outfile"; then 13845 14758 # The compiler can only warn and ignore the option if not recognized … … 13941 14854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13942 14855 -e 's:$: $lt_compiler_flag:'` 13943 (eval echo "\"\$as_me:1 3943: $lt_compile\"" >&5)14856 (eval echo "\"\$as_me:14856: $lt_compile\"" >&5) 13944 14857 (eval "$lt_compile" 2>out/conftest.err) 13945 14858 ac_status=$? 13946 14859 cat out/conftest.err >&5 13947 echo "$as_me:1 3947: \$? = $ac_status" >&514860 echo "$as_me:14860: \$? = $ac_status" >&5 13948 14861 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13949 14862 then … … 16148 17061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16149 17062 -e 's:$: $lt_compiler_flag:'` 16150 (eval echo "\"\$as_me:1 6150: $lt_compile\"" >&5)17063 (eval echo "\"\$as_me:17063: $lt_compile\"" >&5) 16151 17064 (eval "$lt_compile" 2>conftest.err) 16152 17065 ac_status=$? 16153 17066 cat conftest.err >&5 16154 echo "$as_me:1 6154: \$? = $ac_status" >&517067 echo "$as_me:17067: \$? = $ac_status" >&5 16155 17068 if (exit $ac_status) && test -s "$ac_outfile"; then 16156 17069 # The compiler can only warn and ignore the option if not recognized … … 16416 17329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16417 17330 -e 's:$: $lt_compiler_flag:'` 16418 (eval echo "\"\$as_me:1 6418: $lt_compile\"" >&5)17331 (eval echo "\"\$as_me:17331: $lt_compile\"" >&5) 16419 17332 (eval "$lt_compile" 2>conftest.err) 16420 17333 ac_status=$? 16421 17334 cat conftest.err >&5 16422 echo "$as_me:1 6422: \$? = $ac_status" >&517335 echo "$as_me:17335: \$? = $ac_status" >&5 16423 17336 if (exit $ac_status) && test -s "$ac_outfile"; then 16424 17337 # The compiler can only warn and ignore the option if not recognized … … 16520 17433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16521 17434 -e 's:$: $lt_compiler_flag:'` 16522 (eval echo "\"\$as_me:1 6522: $lt_compile\"" >&5)17435 (eval echo "\"\$as_me:17435: $lt_compile\"" >&5) 16523 17436 (eval "$lt_compile" 2>out/conftest.err) 16524 17437 ac_status=$? 16525 17438 cat out/conftest.err >&5 16526 echo "$as_me:1 6526: \$? = $ac_status" >&517439 echo "$as_me:17439: \$? = $ac_status" >&5 16527 17440 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16528 17441 then … … 19178 20091 19179 20092 19180 19181 19182 19183 19184 19185 # Initialize automake 19186 19187 # Stuff for automake 19188 # test to see if srcdir already configured 19189 if test "`cd $srcdir && pwd`" != "`pwd`" && 19190 test -f $srcdir/config.status; then 19191 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 19192 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 19193 { (exit 1); exit 1; }; } 19194 fi 19195 19196 # test whether we have cygpath 19197 if test -z "$CYGPATH_W"; then 19198 if (cygpath --version) >/dev/null 2>/dev/null; then 19199 CYGPATH_W='cygpath -w' 19200 else 19201 CYGPATH_W=echo 19202 fi 19203 fi 19204 19205 19206 # Define the identity of the package. 19207 PACKAGE='cbc' 19208 VERSION='0.1' 19209 19210 19211 cat >>confdefs.h <<_ACEOF 19212 #define PACKAGE "$PACKAGE" 19213 _ACEOF 19214 19215 19216 cat >>confdefs.h <<_ACEOF 19217 #define VERSION "$VERSION" 19218 _ACEOF 19219 19220 # Some tools Automake needs. 19221 19222 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 19223 19224 19225 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 19226 19227 19228 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 19229 19230 19231 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 19232 19233 19234 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 19235 19236 install_sh=${install_sh-"$am_aux_dir/install-sh"} 19237 19238 # Installed binaries are usually stripped using `strip' when the user 19239 # run `make install-strip'. However `strip' might not be the right 19240 # tool to use in cross-compilation environments, therefore Automake 19241 # will honor the `STRIP' environment variable to overrule this program. 19242 if test "$cross_compiling" != no; then 19243 if test -n "$ac_tool_prefix"; then 19244 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 19245 set dummy ${ac_tool_prefix}strip; ac_word=$2 19246 echo "$as_me:$LINENO: checking for $ac_word" >&5 19247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19248 if test "${ac_cv_prog_STRIP+set}" = set; then 19249 echo $ECHO_N "(cached) $ECHO_C" >&6 19250 else 19251 if test -n "$STRIP"; then 19252 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 19253 else 19254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19255 for as_dir in $PATH 19256 do 19257 IFS=$as_save_IFS 19258 test -z "$as_dir" && as_dir=. 19259 for ac_exec_ext in '' $ac_executable_extensions; do 19260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19261 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 19262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19263 break 2 19264 fi 19265 done 19266 done 19267 19268 fi 19269 fi 19270 STRIP=$ac_cv_prog_STRIP 19271 if test -n "$STRIP"; then 19272 echo "$as_me:$LINENO: result: $STRIP" >&5 19273 echo "${ECHO_T}$STRIP" >&6 19274 else 19275 echo "$as_me:$LINENO: result: no" >&5 19276 echo "${ECHO_T}no" >&6 19277 fi 19278 19279 fi 19280 if test -z "$ac_cv_prog_STRIP"; then 19281 ac_ct_STRIP=$STRIP 19282 # Extract the first word of "strip", so it can be a program name with args. 19283 set dummy strip; ac_word=$2 19284 echo "$as_me:$LINENO: checking for $ac_word" >&5 19285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19286 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 19287 echo $ECHO_N "(cached) $ECHO_C" >&6 19288 else 19289 if test -n "$ac_ct_STRIP"; then 19290 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 19291 else 19292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19293 for as_dir in $PATH 19294 do 19295 IFS=$as_save_IFS 19296 test -z "$as_dir" && as_dir=. 19297 for ac_exec_ext in '' $ac_executable_extensions; do 19298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19299 ac_cv_prog_ac_ct_STRIP="strip" 19300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19301 break 2 19302 fi 19303 done 19304 done 19305 19306 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 19307 fi 19308 fi 19309 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 19310 if test -n "$ac_ct_STRIP"; then 19311 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 19312 echo "${ECHO_T}$ac_ct_STRIP" >&6 19313 else 19314 echo "$as_me:$LINENO: result: no" >&5 19315 echo "${ECHO_T}no" >&6 19316 fi 19317 19318 STRIP=$ac_ct_STRIP 19319 else 19320 STRIP="$ac_cv_prog_STRIP" 19321 fi 19322 19323 fi 19324 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 19325 19326 # We need awk for the "check" target. The system "awk" is bad on 19327 # some platforms. 19328 # Always define AMTAR for backward compatibility. 19329 19330 AMTAR=${AMTAR-"${am_missing_run}tar"} 19331 19332 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 19333 19334 19335 19336 19337 depcc="$CC" am_compiler_list= 19338 19339 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 19340 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 19341 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 19342 echo $ECHO_N "(cached) $ECHO_C" >&6 19343 else 19344 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19345 # We make a subdir and do the tests there. Otherwise we can end up 19346 # making bogus files that we don't know about and never remove. For 19347 # instance it was reported that on HP-UX the gcc test will end up 19348 # making a dummy file named `D' -- because `-MD' means `put the output 19349 # in D'. 19350 mkdir conftest.dir 19351 # Copy depcomp to subdir because otherwise we won't find it if we're 19352 # using a relative directory. 19353 cp "$am_depcomp" conftest.dir 19354 cd conftest.dir 19355 # We will build objects and dependencies in a subdirectory because 19356 # it helps to detect inapplicable dependency modes. For instance 19357 # both Tru64's cc and ICC support -MD to output dependencies as a 19358 # side effect of compilation, but ICC will put the dependencies in 19359 # the current directory while Tru64 will put them in the object 19360 # directory. 19361 mkdir sub 19362 19363 am_cv_CC_dependencies_compiler_type=none 19364 if test "$am_compiler_list" = ""; then 19365 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 19366 fi 19367 for depmode in $am_compiler_list; do 19368 # Setup a source with many dependencies, because some compilers 19369 # like to wrap large dependency lists on column 80 (with \), and 19370 # we should not choose a depcomp mode which is confused by this. 19371 # 19372 # We need to recreate these files for each test, as the compiler may 19373 # overwrite some of them when testing with obscure command lines. 19374 # This happens at least with the AIX C compiler. 19375 : > sub/conftest.c 19376 for i in 1 2 3 4 5 6; do 19377 echo '#include "conftst'$i'.h"' >> sub/conftest.c 19378 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 19379 # Solaris 8's {/usr,}/bin/sh. 19380 touch sub/conftst$i.h 19381 done 19382 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 19383 19384 case $depmode in 19385 nosideeffect) 19386 # after this tag, mechanisms are not by side-effect, so they'll 19387 # only be used when explicitly requested 19388 if test "x$enable_dependency_tracking" = xyes; then 19389 continue 19390 else 19391 break 19392 fi 19393 ;; 19394 none) break ;; 19395 esac 19396 # We check with `-c' and `-o' for the sake of the "dashmstdout" 19397 # mode. It turns out that the SunPro C++ compiler does not properly 19398 # handle `-M -o', and we need to detect this. 19399 if depmode=$depmode \ 19400 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 19401 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 19402 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 19403 >/dev/null 2>conftest.err && 19404 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 19405 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 19406 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 19407 # icc doesn't choke on unknown options, it will just issue warnings 19408 # or remarks (even with -Werror). So we grep stderr for any message 19409 # that says an option was ignored or not supported. 19410 # When given -MP, icc 7.0 and 7.1 complain thusly: 19411 # icc: Command line warning: ignoring option '-M'; no argument required 19412 # The diagnosis changed in icc 8.0: 19413 # icc: Command line remark: option '-MP' not supported 19414 if (grep 'ignoring option' conftest.err || 19415 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 19416 am_cv_CC_dependencies_compiler_type=$depmode 19417 break 19418 fi 19419 fi 19420 done 19421 19422 cd .. 19423 rm -rf conftest.dir 19424 else 19425 am_cv_CC_dependencies_compiler_type=none 19426 fi 19427 19428 fi 19429 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 19430 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 19431 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 19432 19433 19434 19435 if 19436 test "x$enable_dependency_tracking" != xno \ 19437 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 19438 am__fastdepCC_TRUE= 19439 am__fastdepCC_FALSE='#' 19440 else 19441 am__fastdepCC_TRUE='#' 19442 am__fastdepCC_FALSE= 19443 fi 19444 19445 19446 depcc="$CXX" am_compiler_list= 19447 19448 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 19449 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 19450 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 19451 echo $ECHO_N "(cached) $ECHO_C" >&6 19452 else 19453 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19454 # We make a subdir and do the tests there. Otherwise we can end up 19455 # making bogus files that we don't know about and never remove. For 19456 # instance it was reported that on HP-UX the gcc test will end up 19457 # making a dummy file named `D' -- because `-MD' means `put the output 19458 # in D'. 19459 mkdir conftest.dir 19460 # Copy depcomp to subdir because otherwise we won't find it if we're 19461 # using a relative directory. 19462 cp "$am_depcomp" conftest.dir 19463 cd conftest.dir 19464 # We will build objects and dependencies in a subdirectory because 19465 # it helps to detect inapplicable dependency modes. For instance 19466 # both Tru64's cc and ICC support -MD to output dependencies as a 19467 # side effect of compilation, but ICC will put the dependencies in 19468 # the current directory while Tru64 will put them in the object 19469 # directory. 19470 mkdir sub 19471 19472 am_cv_CXX_dependencies_compiler_type=none 19473 if test "$am_compiler_list" = ""; then 19474 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 19475 fi 19476 for depmode in $am_compiler_list; do 19477 # Setup a source with many dependencies, because some compilers 19478 # like to wrap large dependency lists on column 80 (with \), and 19479 # we should not choose a depcomp mode which is confused by this. 19480 # 19481 # We need to recreate these files for each test, as the compiler may 19482 # overwrite some of them when testing with obscure command lines. 19483 # This happens at least with the AIX C compiler. 19484 : > sub/conftest.c 19485 for i in 1 2 3 4 5 6; do 19486 echo '#include "conftst'$i'.h"' >> sub/conftest.c 19487 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 19488 # Solaris 8's {/usr,}/bin/sh. 19489 touch sub/conftst$i.h 19490 done 19491 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 19492 19493 case $depmode in 19494 nosideeffect) 19495 # after this tag, mechanisms are not by side-effect, so they'll 19496 # only be used when explicitly requested 19497 if test "x$enable_dependency_tracking" = xyes; then 19498 continue 19499 else 19500 break 19501 fi 19502 ;; 19503 none) break ;; 19504 esac 19505 # We check with `-c' and `-o' for the sake of the "dashmstdout" 19506 # mode. It turns out that the SunPro C++ compiler does not properly 19507 # handle `-M -o', and we need to detect this. 19508 if depmode=$depmode \ 19509 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 19510 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 19511 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 19512 >/dev/null 2>conftest.err && 19513 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 19514 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 19515 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 19516 # icc doesn't choke on unknown options, it will just issue warnings 19517 # or remarks (even with -Werror). So we grep stderr for any message 19518 # that says an option was ignored or not supported. 19519 # When given -MP, icc 7.0 and 7.1 complain thusly: 19520 # icc: Command line warning: ignoring option '-M'; no argument required 19521 # The diagnosis changed in icc 8.0: 19522 # icc: Command line remark: option '-MP' not supported 19523 if (grep 'ignoring option' conftest.err || 19524 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 19525 am_cv_CXX_dependencies_compiler_type=$depmode 19526 break 19527 fi 19528 fi 19529 done 19530 19531 cd .. 19532 rm -rf conftest.dir 19533 else 19534 am_cv_CXX_dependencies_compiler_type=none 19535 fi 19536 19537 fi 19538 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 19539 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 19540 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 19541 19542 19543 19544 if 19545 test "x$enable_dependency_tracking" != xno \ 19546 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 19547 am__fastdepCXX_TRUE= 19548 am__fastdepCXX_FALSE='#' 19549 else 19550 am__fastdepCXX_TRUE='#' 19551 am__fastdepCXX_FALSE= 19552 fi 19553 19554 19555 19556 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 19557 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 19558 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 19559 if test "${enable_maintainer_mode+set}" = set; then 19560 enableval="$enable_maintainer_mode" 19561 USE_MAINTAINER_MODE=$enableval 19562 else 19563 USE_MAINTAINER_MODE=no 19564 fi; 19565 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 19566 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 19567 19568 19569 if test $USE_MAINTAINER_MODE = yes; then 19570 MAINTAINER_MODE_TRUE= 19571 MAINTAINER_MODE_FALSE='#' 19572 else 19573 MAINTAINER_MODE_TRUE='#' 19574 MAINTAINER_MODE_FALSE= 19575 fi 19576 19577 MAINT=$MAINTAINER_MODE_TRUE 19578 19579 19580 19581 coin_have_externals=no 19582 if test "$enable_maintainer_mode" = yes; then 19583 19584 # If maintainer mode is chosen, we make sure that the correct versions 19585 # of the tools are used, and that we know where libtoo.m4 is (to 19586 # recreate acinclude.m4) 19587 19588 19589 LIBTOOLM4= 19590 19591 # Check if we have autoconf 19592 # Extract the first word of "autoconf", so it can be a program name with args. 19593 set dummy autoconf; ac_word=$2 19594 echo "$as_me:$LINENO: checking for $ac_word" >&5 19595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19596 if test "${ac_cv_prog_have_autoconf+set}" = set; then 19597 echo $ECHO_N "(cached) $ECHO_C" >&6 19598 else 19599 if test -n "$have_autoconf"; then 19600 ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test. 19601 else 19602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19603 for as_dir in $PATH 19604 do 19605 IFS=$as_save_IFS 19606 test -z "$as_dir" && as_dir=. 19607 for ac_exec_ext in '' $ac_executable_extensions; do 19608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19609 ac_cv_prog_have_autoconf="yes" 19610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19611 break 2 19612 fi 19613 done 19614 done 19615 19616 test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no" 19617 fi 19618 fi 19619 have_autoconf=$ac_cv_prog_have_autoconf 19620 if test -n "$have_autoconf"; then 19621 echo "$as_me:$LINENO: result: $have_autoconf" >&5 19622 echo "${ECHO_T}$have_autoconf" >&6 19623 else 19624 echo "$as_me:$LINENO: result: no" >&5 19625 echo "${ECHO_T}no" >&6 19626 fi 19627 19628 if test $have_autoconf = no; then 19629 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5 19630 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;} 19631 { (exit 1); exit 1; }; } 19632 fi 19633 19634 # Check whether autoconf is the correct version 19635 correct_version='2.59' 19636 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 19637 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5 19638 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6 19639 autoconf --version > confauto.out 2>&1 19640 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 19641 echo "$as_me:$LINENO: result: yes" >&5 19642 echo "${ECHO_T}yes" >&6 19643 else 19644 rm -f confauto.out 19645 echo "$as_me:$LINENO: result: no" >&5 19646 echo "${ECHO_T}no" >&6 19647 { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5 19648 echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;} 19649 { (exit 1); exit 1; }; } 19650 fi 19651 rm -f confauto.out 19652 19653 # Check if the executable autoconf is picked up from the correct location 19654 echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5 19655 echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6 19656 autoconf_dir=`which autoconf | sed -e 's=/autoconf=='` 19657 autoconf_dir=`cd $autoconf_dir; pwd` 19658 if test x$AUTOTOOLS_DIR = x; then 19659 want_dir=$HOME/bin 19660 else 19661 want_dir=$AUTOTOOLS_DIR/bin 19662 fi 19663 if test $autoconf_dir = `cd $want_dir; pwd`; then 19664 echo "$as_me:$LINENO: result: yes" >&5 19665 echo "${ECHO_T}yes" >&6 19666 else 19667 rm -f confauto.out 19668 echo "$as_me:$LINENO: result: no" >&5 19669 echo "${ECHO_T}no" >&6 19670 { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&5 19671 echo "$as_me: error: The autoconf executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&2;} 19672 { (exit 1); exit 1; }; } 19673 fi 19674 19675 # Check if we have automake 19676 # Extract the first word of "automake", so it can be a program name with args. 19677 set dummy automake; ac_word=$2 19678 echo "$as_me:$LINENO: checking for $ac_word" >&5 19679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19680 if test "${ac_cv_prog_have_automake+set}" = set; then 19681 echo $ECHO_N "(cached) $ECHO_C" >&6 19682 else 19683 if test -n "$have_automake"; then 19684 ac_cv_prog_have_automake="$have_automake" # Let the user override the test. 19685 else 19686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19687 for as_dir in $PATH 19688 do 19689 IFS=$as_save_IFS 19690 test -z "$as_dir" && as_dir=. 19691 for ac_exec_ext in '' $ac_executable_extensions; do 19692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19693 ac_cv_prog_have_automake="yes" 19694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19695 break 2 19696 fi 19697 done 19698 done 19699 19700 test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no" 19701 fi 19702 fi 19703 have_automake=$ac_cv_prog_have_automake 19704 if test -n "$have_automake"; then 19705 echo "$as_me:$LINENO: result: $have_automake" >&5 19706 echo "${ECHO_T}$have_automake" >&6 19707 else 19708 echo "$as_me:$LINENO: result: no" >&5 19709 echo "${ECHO_T}no" >&6 19710 fi 19711 19712 if test $have_automake = no; then 19713 { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5 19714 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;} 19715 { (exit 1); exit 1; }; } 19716 fi 19717 19718 # Check whether automake is the correct version 19719 correct_version='1.9.6' 19720 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 19721 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5 19722 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6 19723 automake --version > confauto.out 2>&1 19724 if $EGREP $grep_version confauto.out >/dev/null 2>&1; then 19725 echo "$as_me:$LINENO: result: yes" >&5 19726 echo "${ECHO_T}yes" >&6 19727 else 19728 rm -f confauto.out 19729 echo "$as_me:$LINENO: result: no" >&5 19730 echo "${ECHO_T}no" >&6 19731 { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5 19732 echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;} 19733 { (exit 1); exit 1; }; } 19734 fi 19735 rm -f confauto.out 19736 19737 # Check if the executable automake is picked up from the correct location 19738 echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5 19739 echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6 19740 automake_dir=`which automake | sed -e 's=/automake=='` 19741 automake_dir=`cd $automake_dir; pwd` 19742 if test x$AUTOTOOLS_DIR = x; then 19743 want_dir=$HOME/bin 19744 else 19745 want_dir=$AUTOTOOLS_DIR/bin 19746 fi 19747 if test $automake_dir = `cd $want_dir; pwd`; then 19748 echo "$as_me:$LINENO: result: yes" >&5 19749 echo "${ECHO_T}yes" >&6 19750 else 19751 rm -f confauto.out 19752 echo "$as_me:$LINENO: result: no" >&5 19753 echo "${ECHO_T}no" >&6 19754 { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&5 19755 echo "$as_me: error: The automake executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&2;} 19756 { (exit 1); exit 1; }; } 19757 fi 19758 19759 # Check if we can find the libtool file 19760 if test x$AUTOTOOLS_DIR = x; then 19761 want_dir=$HOME/share 19762 else 19763 want_dir=$AUTOTOOLS_DIR/share 19764 fi 19765 as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh` 19766 echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5 19767 echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6 19768 if eval "test \"\${$as_ac_File+set}\" = set"; then 19769 echo $ECHO_N "(cached) $ECHO_C" >&6 19770 else 19771 test "$cross_compiling" = yes && 19772 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 19773 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 19774 { (exit 1); exit 1; }; } 19775 if test -r "$want_dir/aclocal/libtool.m4"; then 19776 eval "$as_ac_File=yes" 19777 else 19778 eval "$as_ac_File=no" 19779 fi 19780 fi 19781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 19782 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 19783 if test `eval echo '${'$as_ac_File'}'` = yes; then 19784 LIBTOOLM4="$want_dir/aclocal/libtool.m4" 19785 else 19786 { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5 19787 echo "$as_me: error: I cannot find the libtool.m4 file." >&2;} 19788 { (exit 1); exit 1; }; } 19789 fi 19790 19791 19792 # Check if this is the correct version of libtool (with escaped dots) 19793 correct_version='1.5.22' 19794 grep_version=`echo $correct_version | sed -e 's/\\./\\\\\\./g'` 19795 as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh` 19796 echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5 19797 echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6 19798 if eval "test \"\${$as_ac_File+set}\" = set"; then 19799 echo $ECHO_N "(cached) $ECHO_C" >&6 19800 else 19801 test "$cross_compiling" = yes && 19802 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 19803 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 19804 { (exit 1); exit 1; }; } 19805 if test -r "$want_dir/libtool/ltmain.sh"; then 19806 eval "$as_ac_File=yes" 19807 else 19808 eval "$as_ac_File=no" 19809 fi 19810 fi 19811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 19812 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 19813 if test `eval echo '${'$as_ac_File'}'` = yes; then 19814 have_ltmain=yes 19815 else 19816 have_ltmain=no 19817 fi 19818 19819 echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5 19820 echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6 19821 if test $have_ltmain = yes; then 19822 if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then 19823 echo "$as_me:$LINENO: result: yes" >&5 19824 echo "${ECHO_T}yes" >&6 19825 else 19826 echo "$as_me:$LINENO: result: no" >&5 19827 echo "${ECHO_T}no" >&6 19828 { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5 19829 echo "$as_me: error: You don't have the correct version of libtool." >&2;} 19830 { (exit 1); exit 1; }; } 19831 fi 19832 else 19833 echo "$as_me:$LINENO: result: no" >&5 19834 echo "${ECHO_T}no" >&6 19835 { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5 19836 echo "$as_me: error: I cannot find the ltmain.sh file." >&2;} 19837 { (exit 1); exit 1; }; } 19838 fi 19839 19840 # Check if we have an Externals file 19841 if test -r $srcdir/Externals; then 19842 coin_have_externals=yes 19843 fi 19844 # Check if subversion is installed and understands https 19845 # Extract the first word of "svn", so it can be a program name with args. 19846 set dummy svn; ac_word=$2 19847 echo "$as_me:$LINENO: checking for $ac_word" >&5 19848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19849 if test "${ac_cv_prog_have_svn+set}" = set; then 19850 echo $ECHO_N "(cached) $ECHO_C" >&6 19851 else 19852 if test -n "$have_svn"; then 19853 ac_cv_prog_have_svn="$have_svn" # Let the user override the test. 19854 else 19855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19856 for as_dir in $PATH 19857 do 19858 IFS=$as_save_IFS 19859 test -z "$as_dir" && as_dir=. 19860 for ac_exec_ext in '' $ac_executable_extensions; do 19861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19862 ac_cv_prog_have_svn="yes" 19863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19864 break 2 19865 fi 19866 done 19867 done 19868 19869 test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no" 19870 fi 19871 fi 19872 have_svn=$ac_cv_prog_have_svn 19873 if test -n "$have_svn"; then 19874 echo "$as_me:$LINENO: result: $have_svn" >&5 19875 echo "${ECHO_T}$have_svn" >&6 19876 else 19877 echo "$as_me:$LINENO: result: no" >&5 19878 echo "${ECHO_T}no" >&6 19879 fi 19880 19881 if test x$have_svn = xyes; then 19882 echo "$as_me:$LINENO: checking svn understands https" >&5 19883 echo $ECHO_N "checking svn understands https... $ECHO_C" >&6 19884 svn --version > confauto.out 2>&1 19885 if $EGREP https confauto.out >/dev/null 2>&1; then 19886 echo "$as_me:$LINENO: result: yes" >&5 19887 echo "${ECHO_T}yes" >&6 19888 else 19889 echo "$as_me:$LINENO: result: no" >&5 19890 echo "${ECHO_T}no" >&6 19891 have_svn=no 19892 fi 19893 rm -f confauto.out 19894 fi 19895 19896 # Find the location of the BuildTools directory 19897 BUILDTOOLSDIR= 19898 if test -r $srcdir/BuildTools/coin.m4; then 19899 BUILDTOOLSDIR=$srcdir/BuildTools 19900 else 19901 if test -r $srcdir/../BuildTools/coin.m4; then 19902 BUILDTOOLSDIR=$srcdir/../BuildTools 19903 else 19904 if test -r $srcdir/../../BuildTools/coin.m4; then 19905 BUILDTOOLSDIR=$srcdir/../../BuildTools 19906 else 19907 { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5 19908 echo "$as_me: error: Cannot find the BuildTools directory" >&2;} 19909 { (exit 1); exit 1; }; } 19910 fi 19911 fi 19912 fi 19913 19914 19915 # The following variable is set to the name of the directory where 19916 # the autotool scripts are located 19917 19918 AUX_DIR=$ac_aux_dir 19919 fi 19920 19921 # helpful variable for the base directory of this package 19922 abs_source_dir=`cd $srcdir; pwd` 19923 19924 19925 # Stuff for example Makefiles 19926 if test x$prefix = xNONE; then 19927 full_prefix=$ac_default_prefix 19928 else 19929 full_prefix=$prefix 19930 fi 19931 full_prefix=`cd $full_prefix ; pwd` 19932 19933 abs_lib_dir=$full_prefix/lib 19934 19935 abs_include_dir=$full_prefix/include 19936 19937 abs_bin_dir=$full_prefix/bin 19938 19939 19940 19941 if test $coin_have_externals = yes && test x$have_svn = xyes; then 19942 HAVE_EXTERNALS_TRUE= 19943 HAVE_EXTERNALS_FALSE='#' 19944 else 19945 HAVE_EXTERNALS_TRUE='#' 19946 HAVE_EXTERNALS_FALSE= 19947 fi 19948 19949 19950 19951 # Stuff for libtool 19952 19953 19954 # We check for this header here in a non-standard way to avoid warning 19955 # messages 19956 19957 19958 19959 19960 19961 19962 20093 # No longer needed now that CPPFLAGS is correctly set -- lh, 061214 -- 20094 # AC_REQUIRE([AC_COIN_DLFCN_H]) 20095 20096 # NEW: If libtool exists in the directory higher up, we use that one 20097 # instead of creating a new one 20098 20099 # It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED 20100 # out in front of this macro body. You'll notice that LIBTOOL is already 20101 # defined here. We'll have to count on this macro not being called if libtool 20102 # already exists, or at least move the libtool fixes outside the conditional. 20103 # AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".]) 20104 # This test is therefore removed. -- lh, 061214 -- 20105 # if test "x$LIBTOOL" = x; then 20106 20107 # AC_MSG_NOTICE([Calling PROG_LIBTOOL.]) 20108 20109 20110 20111 20112 20113 20114 20115 20116 20117 # AC_MSG_NOTICE([Finished PROG_LIBTOOL.]) 19963 20118 19964 20119 … … 19982 20137 # -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' \ 19983 20138 19984 # Correct cygpath for minGW (ToDo!) 19985 case $build in 19986 *-mingw*) 19987 CYGPATH_W=echo 19988 ;; 19989 esac 19990 19991 case $build in 19992 *-cygwin* | *-mingw*) 19993 case "$CXX" in 19994 cl* | */cl*) 19995 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5 20139 # Correct cygpath for minGW (ToDo!) 20140 { echo "$as_me:$LINENO: Build is \"$build\"." >&5 20141 echo "$as_me: Build is \"$build\"." >&6;} 20142 case $build in 20143 *-mingw*) 20144 CYGPATH_W=echo 20145 ;; 20146 esac 20147 20148 case $build in 20149 *-cygwin* | *-mingw*) 20150 case "$CXX" in 20151 cl* | */cl* | CL* | */CL*) 20152 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5 19996 20153 echo "$as_me: Applying patches to libtool for cl compiler" >&6;} 19997 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \19998 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \19999 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \20000 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \20001 -e 's%lib /OUT:%lib -OUT:%' \20002 -e "s%cygpath -w%$CYGPATH_W%" \20003 20004 -e 's/$AR t/lib -nologo -list/' \20005 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \20006 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \20007 libtool > conftest.bla20008 20009 mv conftest.bla libtool20010 chmod 755 libtool20011 ;;20012 *)20013 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&520154 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20155 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20156 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 20157 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 20158 -e 's%lib /OUT:%lib -OUT:%' \ 20159 -e "s%cygpath -w%$CYGPATH_W%" \ 20160 -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%' \ 20161 -e 's/$AR t/lib -nologo -list/' \ 20162 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \ 20163 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \ 20164 libtool > conftest.bla 20165 20166 mv conftest.bla libtool 20167 chmod 755 libtool 20168 ;; 20169 *) 20170 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5 20014 20171 echo "$as_me: Applying patches to libtool for GNU compiler" >&6;} 20015 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20016 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 20017 -e 's|libext="lib"|libext="a"|' \ 20018 libtool > conftest.bla 20019 20020 mv conftest.bla libtool 20021 chmod 755 libtool 20022 ;; 20172 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 20173 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 20174 -e 's|libext="lib"|libext="a"|' \ 20175 libtool > conftest.bla 20176 20177 mv conftest.bla libtool 20178 chmod 755 libtool 20179 ;; 20180 esac 20023 20181 esac 20024 esac 20025 20026 # ToDo 20027 # For now, don't use the -no-undefined flag, since the Makefiles are 20028 # not yet set up that way. But we need to fix this, when we want 20029 # to comile DLLs under Windows. 20030 LT_LDFLAGS= 20031 20032 20033 20034 # set RPATH_FLAGS to the compiler link flags required to hardcode location 20035 # of the shared objects 20036 RPATH_FLAGS= 20182 # This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of 20183 # the macro. -- lh, 061214 -- 20184 # fi 20185 20186 # AC_MSG_NOTICE([End libtool initialisation.]) 20187 20188 # AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.]) 20189 # set RPATH_FLAGS to the compiler link flags required to hardcode location 20190 # of the shared objects 20191 RPATH_FLAGS= 20037 20192 20038 20193 if test $enable_shared = yes; then … … 20075 20230 20076 20231 20232 else 20233 20234 { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5 20235 echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;} 20236 # get all missing information from the config.log file 20237 20238 # output variables and defines 20239 as_save_IFS=$IFS 20240 IFS=' 20241 ' 20242 for oneline in `cat $coin_config_dir/config.status`; do 20243 case "$oneline" in 20244 # First some automake conditionals 20245 s,@am__fastdep* | s,@AR@* | s,@CPP@* | s,@CPPFLAGS@* | s,@CXXCPP@* | \ 20246 s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \ 20247 s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \ 20248 s,@ac_c_preproc_warn_flag@* | s,@ac_cxx_preproc_warn_flag@* ) 20249 command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'` 20250 # echo "$command" 20251 eval "$command" 20252 ;; 20253 s,@DEFS@* ) 20254 command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'` 20255 # echo "$command" 20256 eval "$command" 20257 ;; 20258 esac 20259 done 20260 IFS=$as_save_IFS 20261 20262 # And some defines (assuming here that the packages base dir 20263 # doesn't have a config.h file 20264 for word in $defsline; do 20265 # echo word $word 20266 case $word in 20267 -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 ) 20268 i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'` 20269 # echo dd $i 20270 echo $i >>confdefs.h 20271 ;; 20272 esac 20273 done 20274 fi 20275 20276 # AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.]) 20277 20278 # ToDo 20279 # For now, don't use the -no-undefined flag, since the Makefiles are 20280 # not yet set up that way. But we need to fix this, when we want 20281 # to comile DLLs under Windows. 20282 LT_LDFLAGS= 20283 20284 20285 #END 20286 } 20077 20287 20078 20288 ############################################################################# … … 20658 20868 echo "$as_me:$LINENO: checking whether symbol CPXgetstat is available with CPX" >&5 20659 20869 echo $ECHO_N "checking whether symbol CPXgetstat is available with CPX... $ECHO_C" >&6 20870 ac_ext=c 20871 ac_cpp='$CPP $CPPFLAGS' 20872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20874 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20875 20660 20876 # ToDo find out what to do about extern "C" 20661 20877 # AC_TRY_LINK([extern "C" {void CPXgetstat();}],[CPXgetstat()], … … 20711 20927 rm -f conftest.err conftest.$ac_objext \ 20712 20928 conftest$ac_exeext conftest.$ac_ext 20929 ac_ext=c 20930 ac_cpp='$CPP $CPPFLAGS' 20931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20933 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20934 20713 20935 LIBS="$coin_save_LIBS" 20714 20936 fi … … 20815 21037 echo "$as_me:$LINENO: checking whether symbol glp_lpx_simplex is available with GLPK" >&5 20816 21038 echo $ECHO_N "checking whether symbol glp_lpx_simplex is available with GLPK... $ECHO_C" >&6 21039 ac_ext=c 21040 ac_cpp='$CPP $CPPFLAGS' 21041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21043 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21044 20817 21045 # ToDo find out what to do about extern "C" 20818 21046 # AC_TRY_LINK([extern "C" {void glp_lpx_simplex();}],[glp_lpx_simplex()], … … 20868 21096 rm -f conftest.err conftest.$ac_objext \ 20869 21097 conftest$ac_exeext conftest.$ac_ext 21098 ac_ext=c 21099 ac_cpp='$CPP $CPPFLAGS' 21100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21102 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21103 20870 21104 LIBS="$coin_save_LIBS" 20871 21105 fi … … 21043 21277 echo "$as_me:$LINENO: checking whether symbol MSK_openmosek is available with MSK" >&5 21044 21278 echo $ECHO_N "checking whether symbol MSK_openmosek is available with MSK... $ECHO_C" >&6 21279 ac_ext=c 21280 ac_cpp='$CPP $CPPFLAGS' 21281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21283 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21284 21045 21285 # ToDo find out what to do about extern "C" 21046 21286 # AC_TRY_LINK([extern "C" {void MSK_openmosek();}],[MSK_openmosek()], … … 21096 21336 rm -f conftest.err conftest.$ac_objext \ 21097 21337 conftest$ac_exeext conftest.$ac_ext 21338 ac_ext=c 21339 ac_cpp='$CPP $CPPFLAGS' 21340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21342 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21343 21098 21344 LIBS="$coin_save_LIBS" 21099 21345 fi … … 21200 21446 echo "$as_me:$LINENO: checking whether symbol ekk_simplex is available with OSL" >&5 21201 21447 echo $ECHO_N "checking whether symbol ekk_simplex is available with OSL... $ECHO_C" >&6 21448 ac_ext=c 21449 ac_cpp='$CPP $CPPFLAGS' 21450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21452 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21453 21202 21454 # ToDo find out what to do about extern "C" 21203 21455 # AC_TRY_LINK([extern "C" {void ekk_simplex();}],[ekk_simplex()], … … 21253 21505 rm -f conftest.err conftest.$ac_objext \ 21254 21506 conftest$ac_exeext conftest.$ac_ext 21507 ac_ext=c 21508 ac_cpp='$CPP $CPPFLAGS' 21509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21511 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21512 21255 21513 LIBS="$coin_save_LIBS" 21256 21514 fi … … 21454 21712 echo "$as_me:$LINENO: checking whether symbol XPRSsetintcontrol is available with XPR" >&5 21455 21713 echo $ECHO_N "checking whether symbol XPRSsetintcontrol is available with XPR... $ECHO_C" >&6 21714 ac_ext=c 21715 ac_cpp='$CPP $CPPFLAGS' 21716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21718 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21719 21456 21720 # ToDo find out what to do about extern "C" 21457 21721 # AC_TRY_LINK([extern "C" {void XPRSsetintcontrol();}],[XPRSsetintcontrol()], … … 21507 21771 rm -f conftest.err conftest.$ac_objext \ 21508 21772 conftest$ac_exeext conftest.$ac_ext 21773 ac_ext=c 21774 ac_cpp='$CPP $CPPFLAGS' 21775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21777 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21778 21509 21779 LIBS="$coin_save_LIBS" 21510 21780 fi … … 21545 21815 # Determine the name of the ASL library 21546 21816 case "$CXX" in 21547 cl* | */cl* )21817 cl* | */cl* | CL* | */CL*) 21548 21818 ampllib=amplsolv.lib ;; 21549 21819 *) … … 21688 21958 21689 21959 if test "$use_asldir" != no; then 21960 ac_ext=c 21961 ac_cpp='$CPP $CPPFLAGS' 21962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21964 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21965 21690 21966 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 21691 21967 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 … … 21762 22038 _ACEOF 21763 22039 22040 ac_ext=c 22041 ac_cpp='$CPP $CPPFLAGS' 22042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22044 ac_compiler_gnu=$ac_cv_c_compiler_gnu 22045 21764 22046 else 21765 22047 coin_has_asl=no … … 21833 22115 21834 22116 case "$CC" in 21835 cl*) LIBEXT=lib ;; 22117 cl* | */cl* | CL* | */CL*) 22118 LIBEXT=lib ;; 21836 22119 *) LIBEXT=a ;; 21837 22120 esac … … 22723 23006 s,@ac_ct_F77@,$ac_ct_F77,;t t 22724 23007 s,@LIBTOOL@,$LIBTOOL,;t t 23008 s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t 23009 s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t 23010 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t 22725 23011 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t 22726 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t22727 23012 s,@CBCSRCDIR@,$CBCSRCDIR,;t t 22728 23013 s,@CBCOBJDIR@,$CBCOBJDIR,;t t … … 23648 23933 23649 23934 if test x"$coin_vpath_link_files" = x; then : ; else 23650 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5 23935 lnkcmd= 23936 if test "$enable_doscompile" = yes; then 23937 lnkcmd=cp 23938 fi 23939 case "$CC" in 23940 cl* | */cl* | CL* | */CL*) 23941 lnkcmd=cp ;; 23942 esac 23943 if test "$lnkcmd" = cp; then 23944 { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5 23945 echo "$as_me: Copying data files for VPATH configuration" >&6;} 23946 else 23947 echo "$as_me:$LINENO: checking whether ln -s works" >&5 23948 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 23949 LN_S=$as_ln_s 23950 if test "$LN_S" = "ln -s"; then 23951 echo "$as_me:$LINENO: result: yes" >&5 23952 echo "${ECHO_T}yes" >&6 23953 else 23954 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 23955 echo "${ECHO_T}no, using $LN_S" >&6 23956 fi 23957 23958 { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5 23651 23959 echo "$as_me: Creating VPATH links for data files" >&6;} 23960 lnkcmd="$LN_S" 23961 fi 23652 23962 for file in $coin_vpath_link_files; do 23963 dir=`(dirname "./$file") 2>/dev/null || 23964 $as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23965 X"./$file" : 'X\(//\)[^/]' \| \ 23966 X"./$file" : 'X\(//\)$' \| \ 23967 X"./$file" : 'X\(/\)' \| \ 23968 . : '\(.\)' 2>/dev/null || 23969 echo X"./$file" | 23970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23971 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23972 /^X\(\/\/\)$/{ s//\1/; q; } 23973 /^X\(\/\).*/{ s//\1/; q; } 23974 s/.*/./; q'` 23975 if test -d $dir; then : ; else 23976 { if $as_mkdir_p; then 23977 mkdir -p $dir 23978 else 23979 as_dir=$dir 23980 as_dirs= 23981 while test ! -d "$as_dir"; do 23982 as_dirs="$as_dir $as_dirs" 23983 as_dir=`(dirname "$as_dir") 2>/dev/null || 23984 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23985 X"$as_dir" : 'X\(//\)[^/]' \| \ 23986 X"$as_dir" : 'X\(//\)$' \| \ 23987 X"$as_dir" : 'X\(/\)' \| \ 23988 . : '\(.\)' 2>/dev/null || 23989 echo X"$as_dir" | 23990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23991 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23992 /^X\(\/\/\)$/{ s//\1/; q; } 23993 /^X\(\/\).*/{ s//\1/; q; } 23994 s/.*/./; q'` 23995 done 23996 test ! -n "$as_dirs" || mkdir $as_dirs 23997 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5 23998 echo "$as_me: error: cannot create directory $dir" >&2;} 23999 { (exit 1); exit 1; }; }; } 24000 24001 fi 23653 24002 rm -f $file 23654 $ LN_S$abs_source_dir/$file $file24003 $lnkcmd $abs_source_dir/$file $file 23655 24004 done 23656 24005 fi -
stable/1.1/Cbc/src/Makefile.in
r442 r528 386 386 abs_lib_dir = @abs_lib_dir@ 387 387 abs_source_dir = @abs_source_dir@ 388 ac_c_preproc_warn_flag = @ac_c_preproc_warn_flag@ 388 389 ac_ct_AR = @ac_ct_AR@ 389 390 ac_ct_CC = @ac_ct_CC@ … … 392 393 ac_ct_RANLIB = @ac_ct_RANLIB@ 393 394 ac_ct_STRIP = @ac_ct_STRIP@ 395 ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@ 394 396 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 395 397 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -
stable/1.1/Cbc/test/Makefile.am
r372 r528 16 16 17 17 test: ../src/cbc-generic$(EXEEXT) ../src/cbc$(EXEEXT) 18 cd ../../Data/Netlib; makeuncompress19 cd ../../Data/miplib3; makeuncompress18 cd ../../Data/Netlib; $(MAKE) uncompress 19 cd ../../Data/miplib3; $(MAKE) uncompress 20 20 ../src/cbc-generic$(EXEEXT) -miplib -unitTest 21 21 ../src/cbc$(EXEEXT) -unitTest -netlib -
stable/1.1/Cbc/test/Makefile.in
r405 r528 202 202 abs_lib_dir = @abs_lib_dir@ 203 203 abs_source_dir = @abs_source_dir@ 204 ac_c_preproc_warn_flag = @ac_c_preproc_warn_flag@ 204 205 ac_ct_AR = @ac_ct_AR@ 205 206 ac_ct_CC = @ac_ct_CC@ … … 208 209 ac_ct_RANLIB = @ac_ct_RANLIB@ 209 210 ac_ct_STRIP = @ac_ct_STRIP@ 211 ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@ 210 212 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 211 213 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ … … 426 428 427 429 test: ../src/cbc-generic$(EXEEXT) ../src/cbc$(EXEEXT) 428 cd ../../Data/Netlib; makeuncompress429 cd ../../Data/miplib3; makeuncompress430 cd ../../Data/Netlib; $(MAKE) uncompress 431 cd ../../Data/miplib3; $(MAKE) uncompress 430 432 ../src/cbc-generic$(EXEEXT) -miplib -unitTest 431 433 ../src/cbc$(EXEEXT) -unitTest -netlib -
stable/1.1/Makefile.am
r344 r528 24 24 25 25 test: all 26 cd Cbc; maketest26 cd Cbc; $(MAKE) test 27 27 28 28 unitTest: test … … 31 31 for dir in $(subdirs); do \ 32 32 if test -r $$dir/test/Makefile; then \ 33 (cd $$dir; maketest) \33 (cd $$dir; $(MAKE) test) \ 34 34 fi; \ 35 35 done -
stable/1.1/Makefile.in
r457 r528 50 50 PRE_UNINSTALL = : 51 51 POST_UNINSTALL = : 52 build_triplet = @build@ 53 host_triplet = @host@ 52 54 DIST_COMMON = README $(am__configure_deps) \ 53 55 $(srcdir)/BuildTools/Makemain.inc $(srcdir)/Makefile.am \ … … 89 91 distcleancheck_listfiles = find . -type f -print 90 92 ACLOCAL = @ACLOCAL@ 93 ADD_CFLAGS = @ADD_CFLAGS@ 94 ADD_CXXFLAGS = @ADD_CXXFLAGS@ 95 ADD_FFLAGS = @ADD_FFLAGS@ 96 AMDEP_FALSE = @AMDEP_FALSE@ 97 AMDEP_TRUE = @AMDEP_TRUE@ 91 98 AMTAR = @AMTAR@ 99 AR = @AR@ 92 100 AUTOCONF = @AUTOCONF@ 93 101 AUTOHEADER = @AUTOHEADER@ … … 96 104 AWK = @AWK@ 97 105 BUILDTOOLSDIR = @BUILDTOOLSDIR@ 106 CC = @CC@ 107 CCDEPMODE = @CCDEPMODE@ 108 CDEFS = @CDEFS@ 109 CFLAGS = @CFLAGS@ 98 110 COIN_SKIP_PROJECTS = @COIN_SKIP_PROJECTS@ 111 CPP = @CPP@ 112 CPPFLAGS = @CPPFLAGS@ 113 CXX = @CXX@ 114 CXXCPP = @CXXCPP@ 115 CXXDEFS = @CXXDEFS@ 116 CXXDEPMODE = @CXXDEPMODE@ 117 CXXFLAGS = @CXXFLAGS@ 99 118 CYGPATH_W = @CYGPATH_W@ 119 DBG_CFLAGS = @DBG_CFLAGS@ 120 DBG_CXXFLAGS = @DBG_CXXFLAGS@ 121 DBG_FFLAGS = @DBG_FFLAGS@ 100 122 DEFS = @DEFS@ 123 DEPDIR = @DEPDIR@ 124 ECHO = @ECHO@ 101 125 ECHO_C = @ECHO_C@ 102 126 ECHO_N = @ECHO_N@ 103 127 ECHO_T = @ECHO_T@ 104 128 EGREP = @EGREP@ 129 EXEEXT = @EXEEXT@ 130 F77 = @F77@ 131 FFLAGS = @FFLAGS@ 105 132 HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@ 106 133 HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@ … … 109 136 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 110 137 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 138 LDFLAGS = @LDFLAGS@ 111 139 LIBEXT = @LIBEXT@ 112 140 LIBOBJS = @LIBOBJS@ 113 141 LIBS = @LIBS@ 142 LIBTOOL = @LIBTOOL@ 114 143 LIBTOOLM4 = @LIBTOOLM4@ 144 LN_S = @LN_S@ 115 145 LTLIBOBJS = @LTLIBOBJS@ 146 LT_LDFLAGS = @LT_LDFLAGS@ 116 147 MAINT = @MAINT@ 117 148 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ 118 149 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ 119 150 MAKEINFO = @MAKEINFO@ 151 MPICC = @MPICC@ 152 MPICXX = @MPICXX@ 153 MPIF77 = @MPIF77@ 154 OBJEXT = @OBJEXT@ 155 OPT_CFLAGS = @OPT_CFLAGS@ 156 OPT_CXXFLAGS = @OPT_CXXFLAGS@ 157 OPT_FFLAGS = @OPT_FFLAGS@ 120 158 PACKAGE = @PACKAGE@ 121 159 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ … … 125 163 PACKAGE_VERSION = @PACKAGE_VERSION@ 126 164 PATH_SEPARATOR = @PATH_SEPARATOR@ 165 RANLIB = @RANLIB@ 166 RPATH_FLAGS = @RPATH_FLAGS@ 127 167 SET_MAKE = @SET_MAKE@ 128 168 SHELL = @SHELL@ … … 134 174 abs_lib_dir = @abs_lib_dir@ 135 175 abs_source_dir = @abs_source_dir@ 176 ac_c_preproc_warn_flag = @ac_c_preproc_warn_flag@ 177 ac_ct_AR = @ac_ct_AR@ 178 ac_ct_CC = @ac_ct_CC@ 179 ac_ct_CXX = @ac_ct_CXX@ 180 ac_ct_F77 = @ac_ct_F77@ 181 ac_ct_RANLIB = @ac_ct_RANLIB@ 136 182 ac_ct_STRIP = @ac_ct_STRIP@ 183 ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@ 184 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ 185 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 186 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ 187 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ 188 am__include = @am__include@ 137 189 am__leading_dot = @am__leading_dot@ 190 am__quote = @am__quote@ 138 191 am__tar = @am__tar@ 139 192 am__untar = @am__untar@ 140 193 bindir = @bindir@ 194 build = @build@ 141 195 build_alias = @build_alias@ 196 build_cpu = @build_cpu@ 197 build_os = @build_os@ 198 build_vendor = @build_vendor@ 142 199 datadir = @datadir@ 143 200 exec_prefix = @exec_prefix@ … … 145 202 have_automake = @have_automake@ 146 203 have_svn = @have_svn@ 204 host = @host@ 147 205 host_alias = @host_alias@ 206 host_cpu = @host_cpu@ 207 host_os = @host_os@ 208 host_vendor = @host_vendor@ 148 209 includedir = @includedir@ 149 210 infodir = @infodir@ … … 215 276 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) 216 277 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) 278 279 mostlyclean-libtool: 280 -rm -f *.lo 281 282 clean-libtool: 283 -rm -rf .libs _libs 284 285 distclean-libtool: 286 -rm -f libtool 217 287 uninstall-info-am: 218 288 … … 523 593 clean: clean-recursive 524 594 525 clean-am: clean-generic mostlyclean-am595 clean-am: clean-generic clean-libtool mostlyclean-am 526 596 527 597 distclean: distclean-recursive 528 598 -rm -f $(am__CONFIG_DISTCLEAN_FILES) 529 599 -rm -f Makefile 530 distclean-am: clean-am distclean-generic distclean-tags 600 distclean-am: clean-am distclean-generic distclean-libtool \ 601 distclean-tags 531 602 532 603 dvi: dvi-recursive … … 558 629 mostlyclean: mostlyclean-recursive 559 630 560 mostlyclean-am: mostlyclean-generic 631 mostlyclean-am: mostlyclean-generic mostlyclean-libtool 561 632 562 633 pdf: pdf-recursive … … 573 644 574 645 .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 \ 584 656 maintainer-clean-recursive mostlyclean mostlyclean-generic \ 585 mostlyclean- recursive pdf pdf-am ps ps-am tags tags-recursive\586 uninstall uninstall-am uninstall-info-am657 mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \ 658 tags tags-recursive uninstall uninstall-am uninstall-info-am 587 659 588 660 … … 592 664 593 665 test: all 594 cd Cbc; maketest666 cd Cbc; $(MAKE) test 595 667 596 668 unitTest: test … … 599 671 for dir in $(subdirs); do \ 600 672 if test -r $$dir/test/Makefile; then \ 601 (cd $$dir; maketest) \673 (cd $$dir; $(MAKE) test) \ 602 674 fi; \ 603 675 done -
stable/1.1/configure
r457 r528 251 251 252 252 253 254 # Check that we are running under the correct shell. 255 SHELL=${CONFIG_SHELL-/bin/sh} 256 257 case X$ECHO in 258 X*--fallback-echo) 259 # Remove one level of quotation (which was required for Make). 260 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 261 ;; 262 esac 263 264 echo=${ECHO-echo} 265 if test "X$1" = X--no-reexec; then 266 # Discard the --no-reexec flag, and continue. 267 shift 268 elif test "X$1" = X--fallback-echo; then 269 # Avoid inline document here, it may be left over 270 : 271 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 272 # Yippee, $echo works! 273 : 274 else 275 # Restart under the correct shell. 276 exec $SHELL "$0" --no-reexec ${1+"$@"} 277 fi 278 279 if test "X$1" = X--fallback-echo; then 280 # used as fallback echo 281 shift 282 cat <<EOF 283 $* 284 EOF 285 exit 0 286 fi 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 292 if test -z "$ECHO"; then 293 if 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 304 fi 305 306 if 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 : 310 else 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 390 fi 391 fi 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. 395 ECHO=$echo 396 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 398 fi 399 400 401 402 403 tagnames=${tagnames+${tagnames},}CXX 404 405 tagnames=${tagnames+${tagnames},}F77 406 253 407 # Name of the host. 254 408 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, … … 283 437 ac_unique_file="configure.ac" 284 438 ac_default_prefix=`pwd` 439 # Factoring default headers for most tests. 440 ac_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 285 476 ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL" 286 477 ac_subdirs_all="$ac_subdirs_all CoinUtils" … … 293 484 ac_subdirs_all="$ac_subdirs_all Cgl" 294 485 ac_subdirs_all="$ac_subdirs_all Cbc" 295 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_FALSEsubdirs COIN_SKIP_PROJECTS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'486 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 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 subdirs COIN_SKIP_PROJECTS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS' 296 487 ac_subst_files='' 297 488 … … 734 925 ac_cv_env_target_alias_set=${target_alias+set} 735 926 ac_cv_env_target_alias_value=$target_alias 927 ac_env_CDEFS_set=${CDEFS+set} 928 ac_env_CDEFS_value=$CDEFS 929 ac_cv_env_CDEFS_set=${CDEFS+set} 930 ac_cv_env_CDEFS_value=$CDEFS 931 ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} 932 ac_env_ADD_CFLAGS_value=$ADD_CFLAGS 933 ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set} 934 ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS 935 ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} 936 ac_env_DBG_CFLAGS_value=$DBG_CFLAGS 937 ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set} 938 ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS 939 ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} 940 ac_env_OPT_CFLAGS_value=$OPT_CFLAGS 941 ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set} 942 ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS 943 ac_env_CC_set=${CC+set} 944 ac_env_CC_value=$CC 945 ac_cv_env_CC_set=${CC+set} 946 ac_cv_env_CC_value=$CC 947 ac_env_CFLAGS_set=${CFLAGS+set} 948 ac_env_CFLAGS_value=$CFLAGS 949 ac_cv_env_CFLAGS_set=${CFLAGS+set} 950 ac_cv_env_CFLAGS_value=$CFLAGS 951 ac_env_LDFLAGS_set=${LDFLAGS+set} 952 ac_env_LDFLAGS_value=$LDFLAGS 953 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 954 ac_cv_env_LDFLAGS_value=$LDFLAGS 955 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 956 ac_env_CPPFLAGS_value=$CPPFLAGS 957 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 958 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 959 ac_env_MPICC_set=${MPICC+set} 960 ac_env_MPICC_value=$MPICC 961 ac_cv_env_MPICC_set=${MPICC+set} 962 ac_cv_env_MPICC_value=$MPICC 963 ac_env_CXXDEFS_set=${CXXDEFS+set} 964 ac_env_CXXDEFS_value=$CXXDEFS 965 ac_cv_env_CXXDEFS_set=${CXXDEFS+set} 966 ac_cv_env_CXXDEFS_value=$CXXDEFS 967 ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} 968 ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS 969 ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set} 970 ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS 971 ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} 972 ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS 973 ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set} 974 ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS 975 ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} 976 ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS 977 ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set} 978 ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS 979 ac_env_CXX_set=${CXX+set} 980 ac_env_CXX_value=$CXX 981 ac_cv_env_CXX_set=${CXX+set} 982 ac_cv_env_CXX_value=$CXX 983 ac_env_CXXFLAGS_set=${CXXFLAGS+set} 984 ac_env_CXXFLAGS_value=$CXXFLAGS 985 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 986 ac_cv_env_CXXFLAGS_value=$CXXFLAGS 987 ac_env_MPICXX_set=${MPICXX+set} 988 ac_env_MPICXX_value=$MPICXX 989 ac_cv_env_MPICXX_set=${MPICXX+set} 990 ac_cv_env_MPICXX_value=$MPICXX 991 ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} 992 ac_env_ADD_FFLAGS_value=$ADD_FFLAGS 993 ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set} 994 ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS 995 ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} 996 ac_env_DBG_FFLAGS_value=$DBG_FFLAGS 997 ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set} 998 ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS 999 ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} 1000 ac_env_OPT_FFLAGS_value=$OPT_FFLAGS 1001 ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set} 1002 ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS 1003 ac_env_F77_set=${F77+set} 1004 ac_env_F77_value=$F77 1005 ac_cv_env_F77_set=${F77+set} 1006 ac_cv_env_F77_value=$F77 1007 ac_env_FFLAGS_set=${FFLAGS+set} 1008 ac_env_FFLAGS_value=$FFLAGS 1009 ac_cv_env_FFLAGS_set=${FFLAGS+set} 1010 ac_cv_env_FFLAGS_value=$FFLAGS 1011 ac_env_MPIF77_set=${MPIF77+set} 1012 ac_env_MPIF77_value=$MPIF77 1013 ac_cv_env_MPIF77_set=${MPIF77+set} 1014 ac_cv_env_MPIF77_value=$MPIF77 1015 ac_env_CPP_set=${CPP+set} 1016 ac_env_CPP_value=$CPP 1017 ac_cv_env_CPP_set=${CPP+set} 1018 ac_cv_env_CPP_value=$CPP 1019 ac_env_CXXCPP_set=${CXXCPP+set} 1020 ac_env_CXXCPP_value=$CXXCPP 1021 ac_cv_env_CXXCPP_set=${CXXCPP+set} 1022 ac_cv_env_CXXCPP_value=$CXXCPP 736 1023 ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set} 737 1024 ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS … … 803 1090 --program-suffix=SUFFIX append SUFFIX to installed program names 804 1091 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1092 1093 System types: 1094 --build=BUILD configure for building on BUILD [guessed] 1095 --host=HOST cross-compile to build programs to run on HOST [BUILD] 805 1096 _ACEOF 806 1097 fi … … 815 1106 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 816 1107 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1108 --enable-debug compile all projects with debug options tests 1109 --enable-doscompile Under Cygwin, compile so that executables run under 1110 DOS. Set to mingw to use gcc/g++/ld with 1111 -mno-cygwin. Set to msvc to use cl/link. Default 1112 when mentioned: mingw. Default when not mentioned: 1113 disabled. 1114 --enable-static[=PKGS] 1115 build static libraries [default=no] 1116 --disable-dependency-tracking speeds up one-time build 1117 --enable-dependency-tracking do not reject slow dependency extractors 817 1118 --enable-maintainer-mode enable make rules and dependencies not useful 818 1119 (and sometimes confusing) to the casual installer 1120 --enable-shared[=PKGS] 1121 build shared libraries [default=yes] 1122 --enable-fast-install[=PKGS] 1123 optimize for fast installation [default=yes] 1124 --disable-libtool-lock avoid locking (might break parallel builds) 1125 1126 Optional Packages: 1127 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1128 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1129 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1130 --with-pic try to use only PIC/non-PIC objects [default=use 1131 both] 1132 --with-tags[=TAGS] 1133 include additional configurations [automatic] 819 1134 820 1135 Some influential environment variables: 1136 CDEFS Additional -D flags to be used when compiling C code. 1137 ADD_CFLAGS Additional C compiler options 1138 DBG_CFLAGS Debug C compiler options 1139 OPT_CFLAGS Optimize C compiler options 1140 CC C compiler command 1141 CFLAGS C compiler flags 1142 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1143 nonstandard directory <lib dir> 1144 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1145 headers in a nonstandard directory <include dir> 1146 MPICC C MPI Compiler 1147 CXXDEFS Additional -D flags to be used when compiling C++ code. 1148 ADD_CXXFLAGS 1149 Additional C++ compiler options 1150 DBG_CXXFLAGS 1151 Debug C++ compiler options 1152 OPT_CXXFLAGS 1153 Optimize C++ compiler options 1154 CXX C++ compiler command 1155 CXXFLAGS C++ compiler flags 1156 MPICXX C++ MPI Compiler 1157 ADD_FFLAGS Additional Fortran compiler options 1158 DBG_FFLAGS Debug Fortran compiler options 1159 OPT_FFLAGS Optimize Fortran compiler options 1160 F77 Fortran 77 compiler command 1161 FFLAGS Fortran 77 compiler flags 1162 MPIF77 Fortran MPI Compiler 1163 CPP C preprocessor 1164 CXXCPP C++ preprocessor 821 1165 COIN_SKIP_PROJECTS 822 1166 Set to the subdirectories of projects that should be skipped in … … 1294 1638 1295 1639 ############################################################################# 1296 # We only need automake to generate Makefiles for the distribution#1640 # Create the libtool script for the subdirectories # 1297 1641 ############################################################################# 1298 1642 1299 # Initialize automake1300 echo "$as_me:$LINENO: checking for egrep" >&51301 echo $ECHO_N "checking for egrep... $ECHO_C" >&61302 if test "${ac_cv_prog_egrep+set}" = set; then1303 echo $ECHO_N "(cached) $ECHO_C" >&61304 else1305 if echo a | (grep -E '(a|b)') >/dev/null 2>&11306 then ac_cv_prog_egrep='grep -E'1307 else ac_cv_prog_egrep='egrep'1308 fi1309 fi1310 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&51311 echo "${ECHO_T}$ac_cv_prog_egrep" >&61312 EGREP=$ac_cv_prog_egrep1313 1314 1315 am__api_version="1.9"1316 1643 ac_aux_dir= 1317 1644 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do … … 1339 1666 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1340 1667 1668 # Make sure we can run config.sub. 1669 $ac_config_sub sun4 >/dev/null 2>&1 || 1670 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1671 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1672 { (exit 1); exit 1; }; } 1673 1674 echo "$as_me:$LINENO: checking build system type" >&5 1675 echo $ECHO_N "checking build system type... $ECHO_C" >&6 1676 if test "${ac_cv_build+set}" = set; then 1677 echo $ECHO_N "(cached) $ECHO_C" >&6 1678 else 1679 ac_cv_build_alias=$build_alias 1680 test -z "$ac_cv_build_alias" && 1681 ac_cv_build_alias=`$ac_config_guess` 1682 test -z "$ac_cv_build_alias" && 1683 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1684 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1685 { (exit 1); exit 1; }; } 1686 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1687 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1688 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1689 { (exit 1); exit 1; }; } 1690 1691 fi 1692 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1693 echo "${ECHO_T}$ac_cv_build" >&6 1694 build=$ac_cv_build 1695 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1696 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1697 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1698 1699 1700 1701 # Check if user wants to produce debugging code 1702 1703 echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5 1704 echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6 1705 1706 # Check whether --enable-debug or --disable-debug was given. 1707 if test "${enable_debug+set}" = set; then 1708 enableval="$enable_debug" 1709 case "${enableval}" in 1710 yes) coin_debug_compile=true 1711 enable_shared=no 1712 ;; 1713 no) coin_debug_compile=false 1714 ;; 1715 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 1716 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} 1717 { (exit 1); exit 1; }; } 1718 ;; 1719 esac 1720 else 1721 coin_debug_compile=false 1722 fi; 1723 1724 # m4_ifvaln([], 1725 1726 if test $coin_debug_compile = true; then 1727 echo "$as_me:$LINENO: result: yes" >&5 1728 echo "${ECHO_T}yes" >&6 1729 else 1730 echo "$as_me:$LINENO: result: no" >&5 1731 echo "${ECHO_T}no" >&6 1732 fi 1733 1734 # m4_ifvaln([], 1735 1736 1737 1738 # Get the name of the C compiler and appropriate compiler options 1739 case $build in 1740 *-mingw*) 1741 if test "${LD+set}" = set; then :; else 1742 LD=link 1743 fi 1744 ;; 1745 esac 1746 case $enable_doscompile in 1747 msvc) 1748 if test "x${LD+set}" = xset; then :; else 1749 LD=link 1750 fi 1751 ;; 1752 esac 1753 1754 1755 # Check whether --enable-doscompile or --disable-doscompile was given. 1756 if test "${enable_doscompile+set}" = set; then 1757 enableval="$enable_doscompile" 1758 if test "$enable_doscompile" != no; then 1759 case $build in 1760 *-cygwin*) ;; 1761 *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5 1762 echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;} 1763 { (exit 1); exit 1; }; } ;; 1764 esac 1765 fi 1766 else 1767 enable_doscompile=no 1768 fi; 1769 case "$enable_doscompile" in 1770 msvc|mingw|no) ;; 1771 yes) enable_doscompile=mingw ;; 1772 *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile. 1773 Try configure --help=recursive." >&5 1774 echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile. 1775 Try configure --help=recursive." >&2;} 1776 { (exit 1); exit 1; }; } 1777 ;; 1778 esac 1779 if test "$enable_doscompile" != no ; then 1780 { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5 1781 echo "$as_me: DOS compile style is: $enable_doscompile" >&6;} 1782 fi 1783 1784 1785 1786 1787 ac_ext=c 1788 ac_cpp='$CPP $CPPFLAGS' 1789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1791 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1792 1793 1794 # For consistency, we set the C compiler to the same value of the C++ 1795 # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl) 1796 if test x"$CXX" != x; then 1797 case "$CXX" in 1798 cl* | */cl* | CL* | */CL*) 1799 if test x"$CC" = x; then 1800 CC="$CXX" 1801 { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5 1802 echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;} 1803 fi 1804 ;; 1805 esac 1806 fi 1807 1808 1809 1810 1811 1812 1813 coin_has_cc=yes 1814 1815 save_cflags="$CFLAGS" 1816 # For sparc-sun-solaris, promote Studio/Workshop compiler to front of list. 1817 # ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which 1818 # is likely to be a non-functional shell. But many installations will have 1819 # both cc and gcc, so promoting gcc isn't good either. How to test reliably? 1820 case $build in 1821 *-cygwin* | *-mingw*) 1822 if test "$enable_doscompile" = msvc ; then 1823 comps="cl" 1824 else 1825 comps="gcc cl" 1826 fi ;; 1827 sparc-sun-solaris*) 1828 comps="cc xlc gcc pgcc icc" ;; 1829 *-linux-*) comps="xlc gcc cc pgcc icc" ;; 1830 *) comps="xlc_r xlc cc gcc pgcc icc" ;; 1831 esac 1832 1833 # We delete the cached value, since the test might not have been 1834 # performed with our choice of compilers earlier 1835 $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; } 1836 # AC_MSG_NOTICE([C compiler candidates: $comps]) 1837 ac_ext=c 1838 ac_cpp='$CPP $CPPFLAGS' 1839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1841 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1842 if test -n "$ac_tool_prefix"; then 1843 for ac_prog in $comps 1844 do 1845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1847 echo "$as_me:$LINENO: checking for $ac_word" >&5 1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1849 if test "${ac_cv_prog_CC+set}" = set; then 1850 echo $ECHO_N "(cached) $ECHO_C" >&6 1851 else 1852 if test -n "$CC"; then 1853 ac_cv_prog_CC="$CC" # Let the user override the test. 1854 else 1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1856 for as_dir in $PATH 1857 do 1858 IFS=$as_save_IFS 1859 test -z "$as_dir" && as_dir=. 1860 for ac_exec_ext in '' $ac_executable_extensions; do 1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1862 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1864 break 2 1865 fi 1866 done 1867 done 1868 1869 fi 1870 fi 1871 CC=$ac_cv_prog_CC 1872 if test -n "$CC"; then 1873 echo "$as_me:$LINENO: result: $CC" >&5 1874 echo "${ECHO_T}$CC" >&6 1875 else 1876 echo "$as_me:$LINENO: result: no" >&5 1877 echo "${ECHO_T}no" >&6 1878 fi 1879 1880 test -n "$CC" && break 1881 done 1882 fi 1883 if test -z "$CC"; then 1884 ac_ct_CC=$CC 1885 for ac_prog in $comps 1886 do 1887 # Extract the first word of "$ac_prog", so it can be a program name with args. 1888 set dummy $ac_prog; ac_word=$2 1889 echo "$as_me:$LINENO: checking for $ac_word" >&5 1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1892 echo $ECHO_N "(cached) $ECHO_C" >&6 1893 else 1894 if test -n "$ac_ct_CC"; then 1895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1896 else 1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1898 for as_dir in $PATH 1899 do 1900 IFS=$as_save_IFS 1901 test -z "$as_dir" && as_dir=. 1902 for ac_exec_ext in '' $ac_executable_extensions; do 1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1904 ac_cv_prog_ac_ct_CC="$ac_prog" 1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1906 break 2 1907 fi 1908 done 1909 done 1910 1911 fi 1912 fi 1913 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1914 if test -n "$ac_ct_CC"; then 1915 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1916 echo "${ECHO_T}$ac_ct_CC" >&6 1917 else 1918 echo "$as_me:$LINENO: result: no" >&5 1919 echo "${ECHO_T}no" >&6 1920 fi 1921 1922 test -n "$ac_ct_CC" && break 1923 done 1924 1925 CC=$ac_ct_CC 1926 fi 1927 1928 1929 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1930 See \`config.log' for more details." >&5 1931 echo "$as_me: error: no acceptable C compiler found in \$PATH 1932 See \`config.log' for more details." >&2;} 1933 { (exit 1); exit 1; }; } 1934 1935 # Provide some information about the compiler. 1936 echo "$as_me:$LINENO:" \ 1937 "checking for C compiler version" >&5 1938 ac_compiler=`set X $ac_compile; echo $2` 1939 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1940 (eval $ac_compiler --version </dev/null >&5) 2>&5 1941 ac_status=$? 1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1943 (exit $ac_status); } 1944 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1945 (eval $ac_compiler -v </dev/null >&5) 2>&5 1946 ac_status=$? 1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1948 (exit $ac_status); } 1949 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1950 (eval $ac_compiler -V </dev/null >&5) 2>&5 1951 ac_status=$? 1952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1953 (exit $ac_status); } 1954 1955 cat >conftest.$ac_ext <<_ACEOF 1956 /* confdefs.h. */ 1957 _ACEOF 1958 cat confdefs.h >>conftest.$ac_ext 1959 cat >>conftest.$ac_ext <<_ACEOF 1960 /* end confdefs.h. */ 1961 1962 int 1963 main () 1964 { 1965 1966 ; 1967 return 0; 1968 } 1969 _ACEOF 1970 ac_clean_files_save=$ac_clean_files 1971 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1972 # Try to create an executable without -o first, disregard a.out. 1973 # It will help us diagnose broken compilers, and finding out an intuition 1974 # of exeext. 1975 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1976 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1977 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1978 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1979 (eval $ac_link_default) 2>&5 1980 ac_status=$? 1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1982 (exit $ac_status); }; then 1983 # Find the output, starting from the most likely. This scheme is 1984 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1985 # resort. 1986 1987 # Be careful to initialize this variable, since it used to be cached. 1988 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1989 ac_cv_exeext= 1990 # b.out is created by i960 compilers. 1991 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1992 do 1993 test -f "$ac_file" || continue 1994 case $ac_file in 1995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1996 ;; 1997 conftest.$ac_ext ) 1998 # This is the source file. 1999 ;; 2000 [ab].out ) 2001 # We found the default executable, but exeext='' is most 2002 # certainly right. 2003 break;; 2004 *.* ) 2005 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2006 # FIXME: I believe we export ac_cv_exeext for Libtool, 2007 # but it would be cool to find out if it's true. Does anybody 2008 # maintain Libtool? --akim. 2009 export ac_cv_exeext 2010 break;; 2011 * ) 2012 break;; 2013 esac 2014 done 2015 else 2016 echo "$as_me: failed program was:" >&5 2017 sed 's/^/| /' conftest.$ac_ext >&5 2018 2019 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2020 See \`config.log' for more details." >&5 2021 echo "$as_me: error: C compiler cannot create executables 2022 See \`config.log' for more details." >&2;} 2023 { (exit 77); exit 77; }; } 2024 fi 2025 2026 ac_exeext=$ac_cv_exeext 2027 echo "$as_me:$LINENO: result: $ac_file" >&5 2028 echo "${ECHO_T}$ac_file" >&6 2029 2030 # Check the compiler produces executables we can run. If not, either 2031 # the compiler is broken, or we cross compile. 2032 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2033 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2034 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2035 # If not cross compiling, check that we can run a simple program. 2036 if test "$cross_compiling" != yes; then 2037 if { ac_try='./$ac_file' 2038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2039 (eval $ac_try) 2>&5 2040 ac_status=$? 2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2042 (exit $ac_status); }; }; then 2043 cross_compiling=no 2044 else 2045 if test "$cross_compiling" = maybe; then 2046 cross_compiling=yes 2047 else 2048 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2049 If you meant to cross compile, use \`--host'. 2050 See \`config.log' for more details." >&5 2051 echo "$as_me: error: cannot run C compiled programs. 2052 If you meant to cross compile, use \`--host'. 2053 See \`config.log' for more details." >&2;} 2054 { (exit 1); exit 1; }; } 2055 fi 2056 fi 2057 fi 2058 echo "$as_me:$LINENO: result: yes" >&5 2059 echo "${ECHO_T}yes" >&6 2060 2061 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2062 ac_clean_files=$ac_clean_files_save 2063 # Check the compiler produces executables we can run. If not, either 2064 # the compiler is broken, or we cross compile. 2065 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2066 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2067 echo "$as_me:$LINENO: result: $cross_compiling" >&5 2068 echo "${ECHO_T}$cross_compiling" >&6 2069 2070 echo "$as_me:$LINENO: checking for suffix of executables" >&5 2071 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2073 (eval $ac_link) 2>&5 2074 ac_status=$? 2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2076 (exit $ac_status); }; then 2077 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2078 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2079 # work properly (i.e., refer to `conftest.exe'), while it won't with 2080 # `rm'. 2081 for ac_file in conftest.exe conftest conftest.*; do 2082 test -f "$ac_file" || continue 2083 case $ac_file in 2084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2085 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2086 export ac_cv_exeext 2087 break;; 2088 * ) break;; 2089 esac 2090 done 2091 else 2092 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2093 See \`config.log' for more details." >&5 2094 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2095 See \`config.log' for more details." >&2;} 2096 { (exit 1); exit 1; }; } 2097 fi 2098 2099 rm -f conftest$ac_cv_exeext 2100 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2101 echo "${ECHO_T}$ac_cv_exeext" >&6 2102 2103 rm -f conftest.$ac_ext 2104 EXEEXT=$ac_cv_exeext 2105 ac_exeext=$EXEEXT 2106 echo "$as_me:$LINENO: checking for suffix of object files" >&5 2107 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2108 if test "${ac_cv_objext+set}" = set; then 2109 echo $ECHO_N "(cached) $ECHO_C" >&6 2110 else 2111 cat >conftest.$ac_ext <<_ACEOF 2112 /* confdefs.h. */ 2113 _ACEOF 2114 cat confdefs.h >>conftest.$ac_ext 2115 cat >>conftest.$ac_ext <<_ACEOF 2116 /* end confdefs.h. */ 2117 2118 int 2119 main () 2120 { 2121 2122 ; 2123 return 0; 2124 } 2125 _ACEOF 2126 rm -f conftest.o conftest.obj 2127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2128 (eval $ac_compile) 2>&5 2129 ac_status=$? 2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2131 (exit $ac_status); }; then 2132 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2133 case $ac_file in 2134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2135 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2136 break;; 2137 esac 2138 done 2139 else 2140 echo "$as_me: failed program was:" >&5 2141 sed 's/^/| /' conftest.$ac_ext >&5 2142 2143 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2144 See \`config.log' for more details." >&5 2145 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2146 See \`config.log' for more details." >&2;} 2147 { (exit 1); exit 1; }; } 2148 fi 2149 2150 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2151 fi 2152 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2153 echo "${ECHO_T}$ac_cv_objext" >&6 2154 OBJEXT=$ac_cv_objext 2155 ac_objext=$OBJEXT 2156 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2157 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2158 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2159 echo $ECHO_N "(cached) $ECHO_C" >&6 2160 else 2161 cat >conftest.$ac_ext <<_ACEOF 2162 /* confdefs.h. */ 2163 _ACEOF 2164 cat confdefs.h >>conftest.$ac_ext 2165 cat >>conftest.$ac_ext <<_ACEOF 2166 /* end confdefs.h. */ 2167 2168 int 2169 main () 2170 { 2171 #ifndef __GNUC__ 2172 choke me 2173 #endif 2174 2175 ; 2176 return 0; 2177 } 2178 _ACEOF 2179 rm -f conftest.$ac_objext 2180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2181 (eval $ac_compile) 2>conftest.er1 2182 ac_status=$? 2183 grep -v '^ *+' conftest.er1 >conftest.err 2184 rm -f conftest.er1 2185 cat conftest.err >&5 2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2187 (exit $ac_status); } && 2188 { ac_try='test -z "$ac_c_werror_flag" 2189 || test ! -s conftest.err' 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); }; } && 2195 { ac_try='test -s conftest.$ac_objext' 2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2197 (eval $ac_try) 2>&5 2198 ac_status=$? 2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2200 (exit $ac_status); }; }; then 2201 ac_compiler_gnu=yes 2202 else 2203 echo "$as_me: failed program was:" >&5 2204 sed 's/^/| /' conftest.$ac_ext >&5 2205 2206 ac_compiler_gnu=no 2207 fi 2208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2209 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2210 2211 fi 2212 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2213 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2214 GCC=`test $ac_compiler_gnu = yes && echo yes` 2215 ac_test_CFLAGS=${CFLAGS+set} 2216 ac_save_CFLAGS=$CFLAGS 2217 CFLAGS="-g" 2218 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2219 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2220 if test "${ac_cv_prog_cc_g+set}" = set; then 2221 echo $ECHO_N "(cached) $ECHO_C" >&6 2222 else 2223 cat >conftest.$ac_ext <<_ACEOF 2224 /* confdefs.h. */ 2225 _ACEOF 2226 cat confdefs.h >>conftest.$ac_ext 2227 cat >>conftest.$ac_ext <<_ACEOF 2228 /* end confdefs.h. */ 2229 2230 int 2231 main () 2232 { 2233 2234 ; 2235 return 0; 2236 } 2237 _ACEOF 2238 rm -f conftest.$ac_objext 2239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2240 (eval $ac_compile) 2>conftest.er1 2241 ac_status=$? 2242 grep -v '^ *+' conftest.er1 >conftest.err 2243 rm -f conftest.er1 2244 cat conftest.err >&5 2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2246 (exit $ac_status); } && 2247 { ac_try='test -z "$ac_c_werror_flag" 2248 || test ! -s conftest.err' 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); }; } && 2254 { ac_try='test -s conftest.$ac_objext' 2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2256 (eval $ac_try) 2>&5 2257 ac_status=$? 2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2259 (exit $ac_status); }; }; then 2260 ac_cv_prog_cc_g=yes 2261 else 2262 echo "$as_me: failed program was:" >&5 2263 sed 's/^/| /' conftest.$ac_ext >&5 2264 2265 ac_cv_prog_cc_g=no 2266 fi 2267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2268 fi 2269 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2270 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2271 if test "$ac_test_CFLAGS" = set; then 2272 CFLAGS=$ac_save_CFLAGS 2273 elif test $ac_cv_prog_cc_g = yes; then 2274 if test "$GCC" = yes; then 2275 CFLAGS="-g -O2" 2276 else 2277 CFLAGS="-g" 2278 fi 2279 else 2280 if test "$GCC" = yes; then 2281 CFLAGS="-O2" 2282 else 2283 CFLAGS= 2284 fi 2285 fi 2286 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2287 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2288 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2289 echo $ECHO_N "(cached) $ECHO_C" >&6 2290 else 2291 ac_cv_prog_cc_stdc=no 2292 ac_save_CC=$CC 2293 cat >conftest.$ac_ext <<_ACEOF 2294 /* confdefs.h. */ 2295 _ACEOF 2296 cat confdefs.h >>conftest.$ac_ext 2297 cat >>conftest.$ac_ext <<_ACEOF 2298 /* end confdefs.h. */ 2299 #include <stdarg.h> 2300 #include <stdio.h> 2301 #include <sys/types.h> 2302 #include <sys/stat.h> 2303 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2304 struct buf { int x; }; 2305 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2306 static char *e (p, i) 2307 char **p; 2308 int i; 2309 { 2310 return p[i]; 2311 } 2312 static char *f (char * (*g) (char **, int), char **p, ...) 2313 { 2314 char *s; 2315 va_list v; 2316 va_start (v,p); 2317 s = g (p, va_arg (v,int)); 2318 va_end (v); 2319 return s; 2320 } 2321 2322 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2323 function prototypes and stuff, but not '\xHH' hex character constants. 2324 These don't provoke an error unfortunately, instead are silently treated 2325 as 'x'. The following induces an error, until -std1 is added to get 2326 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2327 array size at least. It's necessary to write '\x00'==0 to get something 2328 that's true only with -std1. */ 2329 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2330 2331 int test (int i, double x); 2332 struct s1 {int (*f) (int a);}; 2333 struct s2 {int (*f) (double a);}; 2334 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2335 int argc; 2336 char **argv; 2337 int 2338 main () 2339 { 2340 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2341 ; 2342 return 0; 2343 } 2344 _ACEOF 2345 # Don't try gcc -ansi; that turns off useful extensions and 2346 # breaks some systems' header files. 2347 # AIX -qlanglvl=ansi 2348 # Ultrix and OSF/1 -std1 2349 # HP-UX 10.20 and later -Ae 2350 # HP-UX older versions -Aa -D_HPUX_SOURCE 2351 # SVR4 -Xc -D__EXTENSIONS__ 2352 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2353 do 2354 CC="$ac_save_CC $ac_arg" 2355 rm -f conftest.$ac_objext 2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2357 (eval $ac_compile) 2>conftest.er1 2358 ac_status=$? 2359 grep -v '^ *+' conftest.er1 >conftest.err 2360 rm -f conftest.er1 2361 cat conftest.err >&5 2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2363 (exit $ac_status); } && 2364 { ac_try='test -z "$ac_c_werror_flag" 2365 || test ! -s conftest.err' 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); }; } && 2371 { ac_try='test -s conftest.$ac_objext' 2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2373 (eval $ac_try) 2>&5 2374 ac_status=$? 2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2376 (exit $ac_status); }; }; then 2377 ac_cv_prog_cc_stdc=$ac_arg 2378 break 2379 else 2380 echo "$as_me: failed program was:" >&5 2381 sed 's/^/| /' conftest.$ac_ext >&5 2382 2383 fi 2384 rm -f conftest.err conftest.$ac_objext 2385 done 2386 rm -f conftest.$ac_ext conftest.$ac_objext 2387 CC=$ac_save_CC 2388 2389 fi 2390 2391 case "x$ac_cv_prog_cc_stdc" in 2392 x|xno) 2393 echo "$as_me:$LINENO: result: none needed" >&5 2394 echo "${ECHO_T}none needed" >&6 ;; 2395 *) 2396 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2397 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2398 CC="$CC $ac_cv_prog_cc_stdc" ;; 2399 esac 2400 2401 # Some people use a C++ compiler to compile C. Since we use `exit', 2402 # in C++ we need to declare it. In case someone uses the same compiler 2403 # for both compiling C and C++ we need to have the C++ compiler decide 2404 # the declaration of exit, since it's the most demanding environment. 2405 cat >conftest.$ac_ext <<_ACEOF 2406 #ifndef __cplusplus 2407 choke me 2408 #endif 2409 _ACEOF 2410 rm -f conftest.$ac_objext 2411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2412 (eval $ac_compile) 2>conftest.er1 2413 ac_status=$? 2414 grep -v '^ *+' conftest.er1 >conftest.err 2415 rm -f conftest.er1 2416 cat conftest.err >&5 2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2418 (exit $ac_status); } && 2419 { ac_try='test -z "$ac_c_werror_flag" 2420 || test ! -s conftest.err' 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); }; } && 2426 { ac_try='test -s conftest.$ac_objext' 2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2428 (eval $ac_try) 2>&5 2429 ac_status=$? 2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2431 (exit $ac_status); }; }; then 2432 for ac_declaration in \ 2433 '' \ 2434 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2435 'extern "C" void std::exit (int); using std::exit;' \ 2436 'extern "C" void exit (int) throw ();' \ 2437 'extern "C" void exit (int);' \ 2438 'void exit (int);' 2439 do 2440 cat >conftest.$ac_ext <<_ACEOF 2441 /* confdefs.h. */ 2442 _ACEOF 2443 cat confdefs.h >>conftest.$ac_ext 2444 cat >>conftest.$ac_ext <<_ACEOF 2445 /* end confdefs.h. */ 2446 $ac_declaration 2447 #include <stdlib.h> 2448 int 2449 main () 2450 { 2451 exit (42); 2452 ; 2453 return 0; 2454 } 2455 _ACEOF 2456 rm -f conftest.$ac_objext 2457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2458 (eval $ac_compile) 2>conftest.er1 2459 ac_status=$? 2460 grep -v '^ *+' conftest.er1 >conftest.err 2461 rm -f conftest.er1 2462 cat conftest.err >&5 2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2464 (exit $ac_status); } && 2465 { ac_try='test -z "$ac_c_werror_flag" 2466 || test ! -s conftest.err' 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); }; } && 2472 { ac_try='test -s conftest.$ac_objext' 2473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2474 (eval $ac_try) 2>&5 2475 ac_status=$? 2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2477 (exit $ac_status); }; }; then 2478 : 2479 else 2480 echo "$as_me: failed program was:" >&5 2481 sed 's/^/| /' conftest.$ac_ext >&5 2482 2483 continue 2484 fi 2485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2486 cat >conftest.$ac_ext <<_ACEOF 2487 /* confdefs.h. */ 2488 _ACEOF 2489 cat confdefs.h >>conftest.$ac_ext 2490 cat >>conftest.$ac_ext <<_ACEOF 2491 /* end confdefs.h. */ 2492 $ac_declaration 2493 int 2494 main () 2495 { 2496 exit (42); 2497 ; 2498 return 0; 2499 } 2500 _ACEOF 2501 rm -f conftest.$ac_objext 2502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2503 (eval $ac_compile) 2>conftest.er1 2504 ac_status=$? 2505 grep -v '^ *+' conftest.er1 >conftest.err 2506 rm -f conftest.er1 2507 cat conftest.err >&5 2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2509 (exit $ac_status); } && 2510 { ac_try='test -z "$ac_c_werror_flag" 2511 || test ! -s conftest.err' 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); }; } && 2517 { ac_try='test -s conftest.$ac_objext' 2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2519 (eval $ac_try) 2>&5 2520 ac_status=$? 2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2522 (exit $ac_status); }; }; then 2523 break 2524 else 2525 echo "$as_me: failed program was:" >&5 2526 sed 's/^/| /' conftest.$ac_ext >&5 2527 2528 fi 2529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2530 done 2531 rm -f conftest* 2532 if test -n "$ac_declaration"; then 2533 echo '#ifdef __cplusplus' >>confdefs.h 2534 echo $ac_declaration >>confdefs.h 2535 echo '#endif' >>confdefs.h 2536 fi 2537 2538 else 2539 echo "$as_me: failed program was:" >&5 2540 sed 's/^/| /' conftest.$ac_ext >&5 2541 2542 fi 2543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2544 ac_ext=c 2545 ac_cpp='$CPP $CPPFLAGS' 2546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2548 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2549 2550 if test -z "$CC" ; then 2551 { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5 2552 echo "$as_me: error: Failed to find a C compiler!" >&2;} 2553 { (exit 1); exit 1; }; } 2554 fi 2555 # Autoconf incorrectly concludes that cl recognises -g. It doesn't. 2556 case "$CC" in 2557 cl* | */cl* | CL* | */CL* ) 2558 if test "$ac_cv_prog_cc_g" = yes ; then 2559 ac_cv_prog_cc_g=no 2560 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 2561 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} 2562 fi ;; 2563 esac 2564 CFLAGS="$save_cflags" 2565 2566 # Check if a project specific CFLAGS variable has been set 2567 if test x$COIN_PRJCT != x; then 2568 eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set} 2569 if test x$coin_tmp = xset; then 2570 eval CFLAGS=\${${COIN_PRJCT}_CFLAGS} 2571 fi 2572 fi 2573 2574 if test x"$CFLAGS" = x; then 2575 2576 coin_add_cflags= 2577 coin_opt_cflags= 2578 coin_dbg_cflags= 2579 coin_warn_cflags= 2580 2581 if test "$GCC" = "yes"; then 2582 case "$CC" in 2583 icc* | */icc*) 2584 ;; 2585 *) 2586 coin_opt_cflags="-O3 -fomit-frame-pointer" 2587 coin_add_cflags="-pipe" 2588 coin_dbg_cflags="-g" 2589 coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall" 2590 case $enable_doscompile in 2591 mingw) 2592 CFLAGS="-mno-cygwin" 2593 cat >conftest.$ac_ext <<_ACEOF 2594 /* confdefs.h. */ 2595 _ACEOF 2596 cat confdefs.h >>conftest.$ac_ext 2597 cat >>conftest.$ac_ext <<_ACEOF 2598 /* end confdefs.h. */ 2599 2600 int 2601 main () 2602 { 2603 int i=0; i++; 2604 ; 2605 return 0; 2606 } 2607 _ACEOF 2608 rm -f conftest.$ac_objext conftest$ac_exeext 2609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2610 (eval $ac_link) 2>conftest.er1 2611 ac_status=$? 2612 grep -v '^ *+' conftest.er1 >conftest.err 2613 rm -f conftest.er1 2614 cat conftest.err >&5 2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2616 (exit $ac_status); } && 2617 { ac_try='test -z "$ac_c_werror_flag" 2618 || test ! -s conftest.err' 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); }; } && 2624 { ac_try='test -s conftest$ac_exeext' 2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2626 (eval $ac_try) 2>&5 2627 ac_status=$? 2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2629 (exit $ac_status); }; }; then 2630 coin_add_cflags="-mno-cygwin $coin_add_cflags" 2631 else 2632 echo "$as_me: failed program was:" >&5 2633 sed 's/^/| /' conftest.$ac_ext >&5 2634 2635 fi 2636 rm -f conftest.err conftest.$ac_objext \ 2637 conftest$ac_exeext conftest.$ac_ext 2638 CFLAGS= 2639 ;; 2640 esac 2641 esac 2642 fi 2643 if test -z "$coin_opt_cflags"; then 2644 case $build in 2645 *-cygwin* | *-mingw*) 2646 case "$CC" in 2647 cl* | */cl* | CL* | */CL*) 2648 coin_opt_cflags='-MT -O2' 2649 coin_add_cflags='-nologo -wd4996' 2650 coin_dbg_cflags='-MTd' 2651 ;; 2652 esac 2653 ;; 2654 *-linux-*) 2655 case "$CC" in 2656 icc* | */icc*) 2657 coin_opt_cflags="-O3 -ip" 2658 coin_add_cflags="" 2659 coin_dbg_cflags="-g" 2660 # Check if -i_dynamic is necessary (for new glibc library) 2661 CFLAGS= 2662 cat >conftest.$ac_ext <<_ACEOF 2663 /* confdefs.h. */ 2664 _ACEOF 2665 cat confdefs.h >>conftest.$ac_ext 2666 cat >>conftest.$ac_ext <<_ACEOF 2667 /* end confdefs.h. */ 2668 2669 int 2670 main () 2671 { 2672 int i=0; i++; 2673 ; 2674 return 0; 2675 } 2676 _ACEOF 2677 rm -f conftest.$ac_objext conftest$ac_exeext 2678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2679 (eval $ac_link) 2>conftest.er1 2680 ac_status=$? 2681 grep -v '^ *+' conftest.er1 >conftest.err 2682 rm -f conftest.er1 2683 cat conftest.err >&5 2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2685 (exit $ac_status); } && 2686 { ac_try='test -z "$ac_c_werror_flag" 2687 || test ! -s conftest.err' 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); }; } && 2693 { ac_try='test -s conftest$ac_exeext' 2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2695 (eval $ac_try) 2>&5 2696 ac_status=$? 2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2698 (exit $ac_status); }; }; then 2699 : 2700 else 2701 echo "$as_me: failed program was:" >&5 2702 sed 's/^/| /' conftest.$ac_ext >&5 2703 2704 coin_add_cflags="-i_dynamic $coin_add_cflags" 2705 fi 2706 rm -f conftest.err conftest.$ac_objext \ 2707 conftest$ac_exeext conftest.$ac_ext 2708 ;; 2709 pgcc* | */pgcc*) 2710 coin_opt_cflags="-fast" 2711 coin_add_cflags="-Kieee -pc 64" 2712 coin_dbg_cflags="-g" 2713 ;; 2714 esac 2715 ;; 2716 *-ibm-*) 2717 case "$CC" in 2718 xlc* | */xlc* | mpxlc* | */mpxlc*) 2719 coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 2720 coin_add_cflags="-bmaxdata:0x80000000" 2721 coin_dbg_cflags="-g" 2722 ;; 2723 esac 2724 ;; 2725 *-hp-*) 2726 coin_opt_cflags="-O" 2727 coin_add_cflags="-Ae" 2728 coin_dbg_cflags="-g" 2729 ;; 2730 *-sun-*) 2731 coin_opt_cflags="-xO4" 2732 coin_dbg_cflags="-g" 2733 ;; 2734 *-sgi-*) 2735 coin_opt_cflags="-O -OPT:Olimit=0" 2736 coin_dbg_cflags="-g" 2737 ;; 2738 esac 2739 fi 2740 2741 if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then 2742 coin_dbg_cflags="-g" 2743 fi 2744 2745 if test -z "$coin_opt_cflags"; then 2746 # Try if -O option works if nothing else is set 2747 CFLAGS="-O" 2748 cat >conftest.$ac_ext <<_ACEOF 2749 /* confdefs.h. */ 2750 _ACEOF 2751 cat confdefs.h >>conftest.$ac_ext 2752 cat >>conftest.$ac_ext <<_ACEOF 2753 /* end confdefs.h. */ 2754 2755 int 2756 main () 2757 { 2758 int i=0; i++; 2759 ; 2760 return 0; 2761 } 2762 _ACEOF 2763 rm -f conftest.$ac_objext conftest$ac_exeext 2764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2765 (eval $ac_link) 2>conftest.er1 2766 ac_status=$? 2767 grep -v '^ *+' conftest.er1 >conftest.err 2768 rm -f conftest.er1 2769 cat conftest.err >&5 2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2771 (exit $ac_status); } && 2772 { ac_try='test -z "$ac_c_werror_flag" 2773 || test ! -s conftest.err' 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); }; } && 2779 { ac_try='test -s conftest$ac_exeext' 2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2781 (eval $ac_try) 2>&5 2782 ac_status=$? 2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2784 (exit $ac_status); }; }; then 2785 coin_opt_cflags="-O" 2786 else 2787 echo "$as_me: failed program was:" >&5 2788 sed 's/^/| /' conftest.$ac_ext >&5 2789 2790 fi 2791 rm -f conftest.err conftest.$ac_objext \ 2792 conftest$ac_exeext conftest.$ac_ext 2793 fi 2794 2795 # if PM doesn't want the warning messages, take them out 2796 if test x"$coin_skip_warn_cflags" = xyes; then 2797 coin_warn_cflags= 2798 fi 2799 2800 if test x${DBG_CFLAGS+set} != xset; then 2801 DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags" 2802 fi 2803 if test x${OPT_CFLAGS+set} != xset; then 2804 OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags" 2805 fi 2806 2807 DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS" 2808 OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS" 2809 2810 if test "$coin_debug_compile" = "true"; then 2811 CFLAGS="$DBG_CFLAGS" 2812 else 2813 CFLAGS="$OPT_CFLAGS" 2814 fi 2815 else 2816 CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS" 2817 if test x${DBG_CFLAGS+set} != xset; then 2818 DBG_CFLAGS="$CFLAGS" 2819 fi 2820 if test x${OPT_CFLAGS+set} != xset; then 2821 OPT_CFLAGS="$CFLAGS" 2822 fi 2823 fi 2824 2825 # If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it. 2826 2827 case "$CFLAGS" in 2828 *-mno-cygwin*) 2829 if test x${CPPFLAGS+set} != xset ; then 2830 CPPFLAGS="-mno-cygwin" 2831 else 2832 case "$CPPFLAGS" in 2833 *-mno-cygwin*) 2834 ;; 2835 *) 2836 CPPFLAGS="$CPPFLAGS -mno-cygwin" 2837 ;; 2838 esac 2839 fi ;; 2840 esac 2841 2842 # Try if CFLAGS works 2843 save_CFLAGS="$CFLAGS" 2844 cat >conftest.$ac_ext <<_ACEOF 2845 /* confdefs.h. */ 2846 _ACEOF 2847 cat confdefs.h >>conftest.$ac_ext 2848 cat >>conftest.$ac_ext <<_ACEOF 2849 /* end confdefs.h. */ 2850 2851 int 2852 main () 2853 { 2854 int i=0; i++; 2855 ; 2856 return 0; 2857 } 2858 _ACEOF 2859 rm -f conftest.$ac_objext conftest$ac_exeext 2860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2861 (eval $ac_link) 2>conftest.er1 2862 ac_status=$? 2863 grep -v '^ *+' conftest.er1 >conftest.err 2864 rm -f conftest.er1 2865 cat conftest.err >&5 2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2867 (exit $ac_status); } && 2868 { ac_try='test -z "$ac_c_werror_flag" 2869 || test ! -s conftest.err' 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); }; } && 2875 { ac_try='test -s conftest$ac_exeext' 2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2877 (eval $ac_try) 2>&5 2878 ac_status=$? 2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2880 (exit $ac_status); }; }; then 2881 : 2882 else 2883 echo "$as_me: failed program was:" >&5 2884 sed 's/^/| /' conftest.$ac_ext >&5 2885 2886 CFLAGS= 2887 fi 2888 rm -f conftest.err conftest.$ac_objext \ 2889 conftest$ac_exeext conftest.$ac_ext 2890 if test -z "$CFLAGS"; then 2891 { 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 2892 echo "$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;} 2893 CFLAGS='-O' 2894 cat >conftest.$ac_ext <<_ACEOF 2895 /* confdefs.h. */ 2896 _ACEOF 2897 cat confdefs.h >>conftest.$ac_ext 2898 cat >>conftest.$ac_ext <<_ACEOF 2899 /* end confdefs.h. */ 2900 2901 int 2902 main () 2903 { 2904 int i=0; i++; 2905 ; 2906 return 0; 2907 } 2908 _ACEOF 2909 rm -f conftest.$ac_objext conftest$ac_exeext 2910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2911 (eval $ac_link) 2>conftest.er1 2912 ac_status=$? 2913 grep -v '^ *+' conftest.er1 >conftest.err 2914 rm -f conftest.er1 2915 cat conftest.err >&5 2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2917 (exit $ac_status); } && 2918 { ac_try='test -z "$ac_c_werror_flag" 2919 || test ! -s conftest.err' 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); }; } && 2925 { ac_try='test -s conftest$ac_exeext' 2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2927 (eval $ac_try) 2>&5 2928 ac_status=$? 2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2930 (exit $ac_status); }; }; then 2931 : 2932 else 2933 echo "$as_me: failed program was:" >&5 2934 sed 's/^/| /' conftest.$ac_ext >&5 2935 2936 CFLAGS= 2937 fi 2938 rm -f conftest.err conftest.$ac_objext \ 2939 conftest$ac_exeext conftest.$ac_ext 2940 if test -z "$CFLAGS"; then 2941 { 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 2942 echo "$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;} 2943 fi 2944 fi 2945 2946 { echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5 2947 echo "$as_me: C compiler options are: $CFLAGS" >&6;} 2948 2949 2950 if test x"$MPICC" = x; then :; else 2951 { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5 2952 echo "$as_me: Will use MPI C compiler $MPICC" >&6;} 2953 CC="$MPICC" 2954 fi 2955 2956 # Correct ADDLIBS initialization if we are using the MS compiler 2957 case "$CC" in 2958 cl* | */cl* | CL* | */CL*) 2959 ADDLIBS= 2960 case $build in 2961 *-mingw*) 2962 if test "${LD+set}" = set; then :; else 2963 LD=link 2964 fi 2965 ;; 2966 esac 2967 case $enable_doscompile in 2968 msvc) 2969 if test "x${LD+set}" = xset; then :; else 2970 LD=link 2971 fi 2972 ;; 2973 esac 2974 2975 ;; 2976 esac 2977 2978 ac_ext=c 2979 ac_cpp='$CPP $CPPFLAGS' 2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2983 2984 2985 2986 # Get the name of the C++ compiler and appropriate compiler options 2987 2988 #Let's try if that overcomes configuration problem with VC++ 6.0 2989 2990 ac_ext=cc 2991 ac_cpp='$CXXCPP $CPPFLAGS' 2992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2995 2996 2997 2998 2999 3000 3001 3002 coin_has_cxx=yes 3003 3004 save_cxxflags="$CXXFLAGS" 3005 # For sparc-sun-solaris, promote Studio/Workshop compiler to front of list. 3006 case $build in 3007 *-cygwin* | *-mingw*) 3008 if test "$enable_doscompile" = msvc ; then 3009 comps="cl" 3010 else 3011 comps="g++ cl" 3012 fi ;; 3013 sparc-sun-solaris*) 3014 comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; 3015 *-darwin*) comps="g++ c++ CC" ;; 3016 *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;; 3017 esac 3018 3019 # We delete the cached value, since the test might not have been 3020 # performed with our choice of compilers earlier 3021 $as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; } 3022 # AC_MSG_NOTICE([C++ compiler candidates: $comps]) 3023 ac_ext=cc 3024 ac_cpp='$CXXCPP $CPPFLAGS' 3025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3028 if test -n "$ac_tool_prefix"; then 3029 for ac_prog in $CCC $comps 3030 do 3031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3033 echo "$as_me:$LINENO: checking for $ac_word" >&5 3034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3035 if test "${ac_cv_prog_CXX+set}" = set; then 3036 echo $ECHO_N "(cached) $ECHO_C" >&6 3037 else 3038 if test -n "$CXX"; then 3039 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3040 else 3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3042 for as_dir in $PATH 3043 do 3044 IFS=$as_save_IFS 3045 test -z "$as_dir" && as_dir=. 3046 for ac_exec_ext in '' $ac_executable_extensions; do 3047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3048 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3050 break 2 3051 fi 3052 done 3053 done 3054 3055 fi 3056 fi 3057 CXX=$ac_cv_prog_CXX 3058 if test -n "$CXX"; then 3059 echo "$as_me:$LINENO: result: $CXX" >&5 3060 echo "${ECHO_T}$CXX" >&6 3061 else 3062 echo "$as_me:$LINENO: result: no" >&5 3063 echo "${ECHO_T}no" >&6 3064 fi 3065 3066 test -n "$CXX" && break 3067 done 3068 fi 3069 if test -z "$CXX"; then 3070 ac_ct_CXX=$CXX 3071 for ac_prog in $CCC $comps 3072 do 3073 # Extract the first word of "$ac_prog", so it can be a program name with args. 3074 set dummy $ac_prog; ac_word=$2 3075 echo "$as_me:$LINENO: checking for $ac_word" >&5 3076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3077 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3078 echo $ECHO_N "(cached) $ECHO_C" >&6 3079 else 3080 if test -n "$ac_ct_CXX"; then 3081 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3082 else 3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3084 for as_dir in $PATH 3085 do 3086 IFS=$as_save_IFS 3087 test -z "$as_dir" && as_dir=. 3088 for ac_exec_ext in '' $ac_executable_extensions; do 3089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3090 ac_cv_prog_ac_ct_CXX="$ac_prog" 3091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3092 break 2 3093 fi 3094 done 3095 done 3096 3097 fi 3098 fi 3099 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3100 if test -n "$ac_ct_CXX"; then 3101 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3102 echo "${ECHO_T}$ac_ct_CXX" >&6 3103 else 3104 echo "$as_me:$LINENO: result: no" >&5 3105 echo "${ECHO_T}no" >&6 3106 fi 3107 3108 test -n "$ac_ct_CXX" && break 3109 done 3110 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3111 3112 CXX=$ac_ct_CXX 3113 fi 3114 3115 3116 # Provide some information about the compiler. 3117 echo "$as_me:$LINENO:" \ 3118 "checking for C++ compiler version" >&5 3119 ac_compiler=`set X $ac_compile; echo $2` 3120 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3121 (eval $ac_compiler --version </dev/null >&5) 2>&5 3122 ac_status=$? 3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3124 (exit $ac_status); } 3125 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3126 (eval $ac_compiler -v </dev/null >&5) 2>&5 3127 ac_status=$? 3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3129 (exit $ac_status); } 3130 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3131 (eval $ac_compiler -V </dev/null >&5) 2>&5 3132 ac_status=$? 3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3134 (exit $ac_status); } 3135 3136 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3137 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3138 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3139 echo $ECHO_N "(cached) $ECHO_C" >&6 3140 else 3141 cat >conftest.$ac_ext <<_ACEOF 3142 /* confdefs.h. */ 3143 _ACEOF 3144 cat confdefs.h >>conftest.$ac_ext 3145 cat >>conftest.$ac_ext <<_ACEOF 3146 /* end confdefs.h. */ 3147 3148 int 3149 main () 3150 { 3151 #ifndef __GNUC__ 3152 choke me 3153 #endif 3154 3155 ; 3156 return 0; 3157 } 3158 _ACEOF 3159 rm -f conftest.$ac_objext 3160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3161 (eval $ac_compile) 2>conftest.er1 3162 ac_status=$? 3163 grep -v '^ *+' conftest.er1 >conftest.err 3164 rm -f conftest.er1 3165 cat conftest.err >&5 3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3167 (exit $ac_status); } && 3168 { ac_try='test -z "$ac_cxx_werror_flag" 3169 || test ! -s conftest.err' 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); }; } && 3175 { ac_try='test -s conftest.$ac_objext' 3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3177 (eval $ac_try) 2>&5 3178 ac_status=$? 3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3180 (exit $ac_status); }; }; then 3181 ac_compiler_gnu=yes 3182 else 3183 echo "$as_me: failed program was:" >&5 3184 sed 's/^/| /' conftest.$ac_ext >&5 3185 3186 ac_compiler_gnu=no 3187 fi 3188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3189 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3190 3191 fi 3192 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3193 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3194 GXX=`test $ac_compiler_gnu = yes && echo yes` 3195 ac_test_CXXFLAGS=${CXXFLAGS+set} 3196 ac_save_CXXFLAGS=$CXXFLAGS 3197 CXXFLAGS="-g" 3198 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3199 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 3200 if test "${ac_cv_prog_cxx_g+set}" = set; then 3201 echo $ECHO_N "(cached) $ECHO_C" >&6 3202 else 3203 cat >conftest.$ac_ext <<_ACEOF 3204 /* confdefs.h. */ 3205 _ACEOF 3206 cat confdefs.h >>conftest.$ac_ext 3207 cat >>conftest.$ac_ext <<_ACEOF 3208 /* end confdefs.h. */ 3209 3210 int 3211 main () 3212 { 3213 3214 ; 3215 return 0; 3216 } 3217 _ACEOF 3218 rm -f conftest.$ac_objext 3219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3220 (eval $ac_compile) 2>conftest.er1 3221 ac_status=$? 3222 grep -v '^ *+' conftest.er1 >conftest.err 3223 rm -f conftest.er1 3224 cat conftest.err >&5 3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3226 (exit $ac_status); } && 3227 { ac_try='test -z "$ac_cxx_werror_flag" 3228 || test ! -s conftest.err' 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); }; } && 3234 { ac_try='test -s conftest.$ac_objext' 3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3236 (eval $ac_try) 2>&5 3237 ac_status=$? 3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3239 (exit $ac_status); }; }; then 3240 ac_cv_prog_cxx_g=yes 3241 else 3242 echo "$as_me: failed program was:" >&5 3243 sed 's/^/| /' conftest.$ac_ext >&5 3244 3245 ac_cv_prog_cxx_g=no 3246 fi 3247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3248 fi 3249 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3250 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3251 if test "$ac_test_CXXFLAGS" = set; then 3252 CXXFLAGS=$ac_save_CXXFLAGS 3253 elif test $ac_cv_prog_cxx_g = yes; then 3254 if test "$GXX" = yes; then 3255 CXXFLAGS="-g -O2" 3256 else 3257 CXXFLAGS="-g" 3258 fi 3259 else 3260 if test "$GXX" = yes; then 3261 CXXFLAGS="-O2" 3262 else 3263 CXXFLAGS= 3264 fi 3265 fi 3266 for ac_declaration in \ 3267 '' \ 3268 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3269 'extern "C" void std::exit (int); using std::exit;' \ 3270 'extern "C" void exit (int) throw ();' \ 3271 'extern "C" void exit (int);' \ 3272 'void exit (int);' 3273 do 3274 cat >conftest.$ac_ext <<_ACEOF 3275 /* confdefs.h. */ 3276 _ACEOF 3277 cat confdefs.h >>conftest.$ac_ext 3278 cat >>conftest.$ac_ext <<_ACEOF 3279 /* end confdefs.h. */ 3280 $ac_declaration 3281 #include <stdlib.h> 3282 int 3283 main () 3284 { 3285 exit (42); 3286 ; 3287 return 0; 3288 } 3289 _ACEOF 3290 rm -f conftest.$ac_objext 3291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3292 (eval $ac_compile) 2>conftest.er1 3293 ac_status=$? 3294 grep -v '^ *+' conftest.er1 >conftest.err 3295 rm -f conftest.er1 3296 cat conftest.err >&5 3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3298 (exit $ac_status); } && 3299 { ac_try='test -z "$ac_cxx_werror_flag" 3300 || test ! -s conftest.err' 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); }; } && 3306 { ac_try='test -s conftest.$ac_objext' 3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3308 (eval $ac_try) 2>&5 3309 ac_status=$? 3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3311 (exit $ac_status); }; }; then 3312 : 3313 else 3314 echo "$as_me: failed program was:" >&5 3315 sed 's/^/| /' conftest.$ac_ext >&5 3316 3317 continue 3318 fi 3319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3320 cat >conftest.$ac_ext <<_ACEOF 3321 /* confdefs.h. */ 3322 _ACEOF 3323 cat confdefs.h >>conftest.$ac_ext 3324 cat >>conftest.$ac_ext <<_ACEOF 3325 /* end confdefs.h. */ 3326 $ac_declaration 3327 int 3328 main () 3329 { 3330 exit (42); 3331 ; 3332 return 0; 3333 } 3334 _ACEOF 3335 rm -f conftest.$ac_objext 3336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3337 (eval $ac_compile) 2>conftest.er1 3338 ac_status=$? 3339 grep -v '^ *+' conftest.er1 >conftest.err 3340 rm -f conftest.er1 3341 cat conftest.err >&5 3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3343 (exit $ac_status); } && 3344 { ac_try='test -z "$ac_cxx_werror_flag" 3345 || test ! -s conftest.err' 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); }; } && 3351 { ac_try='test -s conftest.$ac_objext' 3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3353 (eval $ac_try) 2>&5 3354 ac_status=$? 3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3356 (exit $ac_status); }; }; then 3357 break 3358 else 3359 echo "$as_me: failed program was:" >&5 3360 sed 's/^/| /' conftest.$ac_ext >&5 3361 3362 fi 3363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3364 done 3365 rm -f conftest* 3366 if test -n "$ac_declaration"; then 3367 echo '#ifdef __cplusplus' >>confdefs.h 3368 echo $ac_declaration >>confdefs.h 3369 echo '#endif' >>confdefs.h 3370 fi 3371 3372 ac_ext=cc 3373 ac_cpp='$CXXCPP $CPPFLAGS' 3374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3377 3378 if test -z "$CXX" ; then 3379 { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5 3380 echo "$as_me: error: Failed to find a C++ compiler!" >&2;} 3381 { (exit 1); exit 1; }; } 3382 fi 3383 3384 # Autoconf incorrectly concludes that cl recognises -g. It doesn't. 3385 case "$CXX" in 3386 cl* | */cl* | CL* | */CL* ) 3387 if test "$ac_cv_prog_cxx_g" = yes ; then 3388 ac_cv_prog_cxx_g=no 3389 { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5 3390 echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;} 3391 fi ;; 3392 esac 3393 CXXFLAGS="$save_cxxflags" 3394 3395 # Check if a project specific CXXFLAGS variable has been set 3396 if test x$COIN_PRJCT != x; then 3397 eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set} 3398 if test x$coin_tmp = xset; then 3399 eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS} 3400 fi 3401 fi 3402 3403 if test x"$CXXFLAGS" = x; then 3404 3405 # ToDo decide whether we want -DNDEBUG for optimization 3406 coin_add_cxxflags= 3407 coin_opt_cxxflags= 3408 coin_dbg_cxxflags= 3409 coin_warn_cxxflags= 3410 3411 if test "$GXX" = "yes"; then 3412 case "$CXX" in 3413 icpc* | */icpc*) 3414 ;; 3415 *) 3416 # ToDo decide about unroll-loops 3417 coin_opt_cxxflags="-O3 -fomit-frame-pointer" 3418 coin_add_cxxflags="-pipe" 3419 coin_dbg_cxxflags="-g" 3420 coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion" 3421 case $enable_doscompile in 3422 mingw) 3423 CXXFLAGS="-mno-cygwin" 3424 cat >conftest.$ac_ext <<_ACEOF 3425 /* confdefs.h. */ 3426 _ACEOF 3427 cat confdefs.h >>conftest.$ac_ext 3428 cat >>conftest.$ac_ext <<_ACEOF 3429 /* end confdefs.h. */ 3430 3431 int 3432 main () 3433 { 3434 int i=0; i++; 3435 ; 3436 return 0; 3437 } 3438 _ACEOF 3439 rm -f conftest.$ac_objext conftest$ac_exeext 3440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3441 (eval $ac_link) 2>conftest.er1 3442 ac_status=$? 3443 grep -v '^ *+' conftest.er1 >conftest.err 3444 rm -f conftest.er1 3445 cat conftest.err >&5 3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3447 (exit $ac_status); } && 3448 { ac_try='test -z "$ac_cxx_werror_flag" 3449 || test ! -s conftest.err' 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); }; } && 3455 { ac_try='test -s conftest$ac_exeext' 3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3457 (eval $ac_try) 2>&5 3458 ac_status=$? 3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3460 (exit $ac_status); }; }; then 3461 coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags" 3462 else 3463 echo "$as_me: failed program was:" >&5 3464 sed 's/^/| /' conftest.$ac_ext >&5 3465 3466 fi 3467 rm -f conftest.err conftest.$ac_objext \ 3468 conftest$ac_exeext conftest.$ac_ext 3469 CXXFLAGS= 3470 ;; 3471 esac 3472 esac 3473 fi 3474 3475 # Note that we do not need to cover GCC in the following tests. 3476 3477 if test -z "$coin_opt_cxxflags"; then 3478 case $build in 3479 *-cygwin* | *-mingw*) 3480 case "$CXX" in 3481 cl* | */cl* | CL* | */CL*) 3482 # The MT and MTd options are mutually exclusive 3483 coin_opt_cxxflags='-MT -O2' 3484 coin_add_cxxflags='-nologo -EHsc -GR -wd4996' 3485 coin_dbg_cxxflags='-MTd' 3486 ;; 3487 esac 3488 ;; 3489 *-linux-*) 3490 case "$CXX" in 3491 icpc* | */icpc*) 3492 coin_opt_cxxflags="-O3 -ip" 3493 coin_add_cxxflags="" 3494 coin_dbg_cxxflags="-g" 3495 # Check if -i_dynamic is necessary (for new glibc library) 3496 CXXFLAGS= 3497 cat >conftest.$ac_ext <<_ACEOF 3498 /* confdefs.h. */ 3499 _ACEOF 3500 cat confdefs.h >>conftest.$ac_ext 3501 cat >>conftest.$ac_ext <<_ACEOF 3502 /* end confdefs.h. */ 3503 3504 int 3505 main () 3506 { 3507 int i=0; i++; 3508 ; 3509 return 0; 3510 } 3511 _ACEOF 3512 rm -f conftest.$ac_objext conftest$ac_exeext 3513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3514 (eval $ac_link) 2>conftest.er1 3515 ac_status=$? 3516 grep -v '^ *+' conftest.er1 >conftest.err 3517 rm -f conftest.er1 3518 cat conftest.err >&5 3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3520 (exit $ac_status); } && 3521 { ac_try='test -z "$ac_cxx_werror_flag" 3522 || test ! -s conftest.err' 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); }; } && 3528 { ac_try='test -s conftest$ac_exeext' 3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3530 (eval $ac_try) 2>&5 3531 ac_status=$? 3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3533 (exit $ac_status); }; }; then 3534 : 3535 else 3536 echo "$as_me: failed program was:" >&5 3537 sed 's/^/| /' conftest.$ac_ext >&5 3538 3539 coin_add_cxxflags="-i_dynamic $coin_add_cxxflags" 3540 fi 3541 rm -f conftest.err conftest.$ac_objext \ 3542 conftest$ac_exeext conftest.$ac_ext 3543 ;; 3544 pgCC* | */pgCC*) 3545 coin_opt_cxxflags="-fast" 3546 coin_add_cxxflags="-Kieee -pc 64" 3547 coin_dbg_cxxflags="-g" 3548 ;; 3549 esac 3550 ;; 3551 *-ibm-*) 3552 case "$CXX" in 3553 xlC* | */xlC* | mpxlC* | */mpxlC*) 3554 coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 3555 coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna" 3556 coin_dbg_cxxflags="-g" 3557 ;; 3558 esac 3559 ;; 3560 *-hp-*) 3561 case "$CXX" in 3562 aCC* | */aCC* ) 3563 coin_opt_cxxflags="-O" 3564 coin_add_cxxflags="-AA" 3565 coin_dbg_cxxflags="-g" 3566 ;; 3567 esac 3568 ;; 3569 *-sun-*) 3570 coin_opt_cxxflags="-O4" 3571 coin_dbg_cxxflags="-g" 3572 ;; 3573 esac 3574 fi 3575 3576 # Generic flag settings. If these don't work, add a case above. 3577 3578 if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then 3579 coin_dbg_cxxflags="-g" 3580 fi 3581 3582 if test -z "$coin_opt_cxxflags"; then 3583 # Try if -O option works if nothing else is set 3584 CXXFLAGS=-O 3585 cat >conftest.$ac_ext <<_ACEOF 3586 /* confdefs.h. */ 3587 _ACEOF 3588 cat confdefs.h >>conftest.$ac_ext 3589 cat >>conftest.$ac_ext <<_ACEOF 3590 /* end confdefs.h. */ 3591 3592 int 3593 main () 3594 { 3595 int i=0; i++; 3596 ; 3597 return 0; 3598 } 3599 _ACEOF 3600 rm -f conftest.$ac_objext conftest$ac_exeext 3601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3602 (eval $ac_link) 2>conftest.er1 3603 ac_status=$? 3604 grep -v '^ *+' conftest.er1 >conftest.err 3605 rm -f conftest.er1 3606 cat conftest.err >&5 3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3608 (exit $ac_status); } && 3609 { ac_try='test -z "$ac_cxx_werror_flag" 3610 || test ! -s conftest.err' 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); }; } && 3616 { ac_try='test -s conftest$ac_exeext' 3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3618 (eval $ac_try) 2>&5 3619 ac_status=$? 3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3621 (exit $ac_status); }; }; then 3622 coin_opt_cxxflags="-O" 3623 else 3624 echo "$as_me: failed program was:" >&5 3625 sed 's/^/| /' conftest.$ac_ext >&5 3626 3627 fi 3628 rm -f conftest.err conftest.$ac_objext \ 3629 conftest$ac_exeext conftest.$ac_ext 3630 fi 3631 3632 # if PM doesn't want the warning messages, take them out 3633 if test x"$coin_skip_warn_cxxflags" = xyes; then 3634 coin_warn_cxxflags= 3635 fi 3636 3637 # Do final setup of flags based on values determined above. 3638 3639 if test x${DBG_CXXFLAGS+set} != xset; then 3640 DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags" 3641 fi 3642 if test x${OPT_CXXFLAGS+set} != xset; then 3643 OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags" 3644 fi 3645 3646 DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3647 OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3648 3649 if test "$coin_debug_compile" = "true"; then 3650 CXXFLAGS="$DBG_CXXFLAGS" 3651 else 3652 CXXFLAGS="$OPT_CXXFLAGS" 3653 fi 3654 3655 # Handle the case where CXXFLAGS was set externally. 3656 else 3657 CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS" 3658 if test x${DBG_CXXFLAGS+set} != xset; then 3659 DBG_CXXFLAGS="$CXXFLAGS" 3660 fi 3661 if test x${OPT_CXXFLAGS+set} != xset; then 3662 OPT_CXXFLAGS="$CXXFLAGS" 3663 fi 3664 fi 3665 3666 # If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it. 3667 3668 case "$CXXFLAGS" in 3669 *-mno-cygwin*) 3670 if test x${CPPFLAGS+set} != xset ; then 3671 CPPFLAGS="-mno-cygwin" 3672 else 3673 case "$CPPFLAGS" in 3674 *-mno-cygwin*) 3675 ;; 3676 *) 3677 CPPFLAGS="$CPPFLAGS -mno-cygwin" 3678 ;; 3679 esac 3680 fi ;; 3681 esac 3682 3683 # Try if CXXFLAGS works 3684 save_CXXFLAGS="$CXXFLAGS" 3685 cat >conftest.$ac_ext <<_ACEOF 3686 /* confdefs.h. */ 3687 _ACEOF 3688 cat confdefs.h >>conftest.$ac_ext 3689 cat >>conftest.$ac_ext <<_ACEOF 3690 /* end confdefs.h. */ 3691 3692 int 3693 main () 3694 { 3695 int i=0; i++; 3696 ; 3697 return 0; 3698 } 3699 _ACEOF 3700 rm -f conftest.$ac_objext conftest$ac_exeext 3701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3702 (eval $ac_link) 2>conftest.er1 3703 ac_status=$? 3704 grep -v '^ *+' conftest.er1 >conftest.err 3705 rm -f conftest.er1 3706 cat conftest.err >&5 3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3708 (exit $ac_status); } && 3709 { ac_try='test -z "$ac_cxx_werror_flag" 3710 || test ! -s conftest.err' 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); }; } && 3716 { ac_try='test -s conftest$ac_exeext' 3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3718 (eval $ac_try) 2>&5 3719 ac_status=$? 3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3721 (exit $ac_status); }; }; then 3722 : 3723 else 3724 echo "$as_me: failed program was:" >&5 3725 sed 's/^/| /' conftest.$ac_ext >&5 3726 3727 CXXFLAGS= 3728 fi 3729 rm -f conftest.err conftest.$ac_objext \ 3730 conftest$ac_exeext conftest.$ac_ext 3731 if test -z "$CXXFLAGS"; then 3732 { 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 3733 echo "$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;} 3734 CXXFLAGS='-O' 3735 cat >conftest.$ac_ext <<_ACEOF 3736 /* confdefs.h. */ 3737 _ACEOF 3738 cat confdefs.h >>conftest.$ac_ext 3739 cat >>conftest.$ac_ext <<_ACEOF 3740 /* end confdefs.h. */ 3741 3742 int 3743 main () 3744 { 3745 int i=0; i++; 3746 ; 3747 return 0; 3748 } 3749 _ACEOF 3750 rm -f conftest.$ac_objext conftest$ac_exeext 3751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3752 (eval $ac_link) 2>conftest.er1 3753 ac_status=$? 3754 grep -v '^ *+' conftest.er1 >conftest.err 3755 rm -f conftest.er1 3756 cat conftest.err >&5 3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3758 (exit $ac_status); } && 3759 { ac_try='test -z "$ac_cxx_werror_flag" 3760 || test ! -s conftest.err' 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); }; } && 3766 { ac_try='test -s conftest$ac_exeext' 3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3768 (eval $ac_try) 2>&5 3769 ac_status=$? 3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3771 (exit $ac_status); }; }; then 3772 : 3773 else 3774 echo "$as_me: failed program was:" >&5 3775 sed 's/^/| /' conftest.$ac_ext >&5 3776 3777 CXXFLAGS= 3778 fi 3779 rm -f conftest.err conftest.$ac_objext \ 3780 conftest$ac_exeext conftest.$ac_ext 3781 if test -z "$CXXFLAGS"; then 3782 { 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 3783 echo "$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;} 3784 fi 3785 fi 3786 3787 { echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5 3788 echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;} 3789 3790 3791 if test x"$MPICXX" = x; then :; else 3792 { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5 3793 echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;} 3794 CXX="$MPICXX" 3795 fi 3796 3797 case "$CXX" in 3798 cl* | */cl* | CL* | */CL* ) 3799 case $build in 3800 *-mingw*) 3801 if test "${LD+set}" = set; then :; else 3802 LD=link 3803 fi 3804 ;; 3805 esac 3806 case $enable_doscompile in 3807 msvc) 3808 if test "x${LD+set}" = xset; then :; else 3809 LD=link 3810 fi 3811 ;; 3812 esac 3813 3814 ;; 3815 esac 3816 3817 ac_ext=c 3818 ac_cpp='$CPP $CPPFLAGS' 3819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3821 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3822 3823 3824 3825 # Get the name of the Fortran compiler and appropriate compiler options 3826 case $build in 3827 *-cygwin* | *-mingw*) 3828 if test "$enable_doscompile" = msvc ; then 3829 coin_f77_comps="ifort fl32" 3830 else 3831 coin_f77_comps="gfortran g77 ifort fl32" 3832 fi ;; 3833 sparc-sun-solaris*) 3834 coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;; 3835 *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;; 3836 esac 3837 3838 3839 3840 3841 3842 3843 ac_ext=f 3844 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 3845 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3846 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 3847 3848 3849 3850 3851 3852 3853 coin_has_f77=yes 3854 3855 save_fflags="$FFLAGS" 3856 3857 # We delete the cached value, since the test might not have been 3858 # performed with our choice of compilers earlier 3859 $as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; } 3860 3861 # This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use 3862 # coin_f77_comps to see if there's a program that matches one of the names. 3863 # If there's no such program, F77 = unavailable. If we match the name, 3864 # feed AC_PROG_F77 the same search list, just to be sure it's a functioning 3865 # compiler. 3866 # AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps]) 3867 3868 3869 { echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5 3870 echo "$as_me: Trying to determine Fortran compiler name" >&6;} 3871 for ac_prog in $coin_f77_comps 3872 do 3873 # Extract the first word of "$ac_prog", so it can be a program name with args. 3874 set dummy $ac_prog; ac_word=$2 3875 echo "$as_me:$LINENO: checking for $ac_word" >&5 3876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3877 if test "${ac_cv_prog_F77+set}" = set; then 3878 echo $ECHO_N "(cached) $ECHO_C" >&6 3879 else 3880 if test -n "$F77"; then 3881 ac_cv_prog_F77="$F77" # Let the user override the test. 3882 else 3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3884 for as_dir in $PATH 3885 do 3886 IFS=$as_save_IFS 3887 test -z "$as_dir" && as_dir=. 3888 for ac_exec_ext in '' $ac_executable_extensions; do 3889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3890 ac_cv_prog_F77="$ac_prog" 3891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3892 break 2 3893 fi 3894 done 3895 done 3896 3897 fi 3898 fi 3899 F77=$ac_cv_prog_F77 3900 if test -n "$F77"; then 3901 echo "$as_me:$LINENO: result: $F77" >&5 3902 echo "${ECHO_T}$F77" >&6 3903 else 3904 echo "$as_me:$LINENO: result: no" >&5 3905 echo "${ECHO_T}no" >&6 3906 fi 3907 3908 test -n "$F77" && break 3909 done 3910 test -n "$F77" || F77="unavailable" 3911 3912 3913 if test "$F77" != "unavailable" ; then 3914 ac_ext=f 3915 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 3916 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3917 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 3918 if test -n "$ac_tool_prefix"; then 3919 for ac_prog in $coin_f77_comps 3920 do 3921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3923 echo "$as_me:$LINENO: checking for $ac_word" >&5 3924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3925 if test "${ac_cv_prog_F77+set}" = set; then 3926 echo $ECHO_N "(cached) $ECHO_C" >&6 3927 else 3928 if test -n "$F77"; then 3929 ac_cv_prog_F77="$F77" # Let the user override the test. 3930 else 3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3932 for as_dir in $PATH 3933 do 3934 IFS=$as_save_IFS 3935 test -z "$as_dir" && as_dir=. 3936 for ac_exec_ext in '' $ac_executable_extensions; do 3937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3938 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 3939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3940 break 2 3941 fi 3942 done 3943 done 3944 3945 fi 3946 fi 3947 F77=$ac_cv_prog_F77 3948 if test -n "$F77"; then 3949 echo "$as_me:$LINENO: result: $F77" >&5 3950 echo "${ECHO_T}$F77" >&6 3951 else 3952 echo "$as_me:$LINENO: result: no" >&5 3953 echo "${ECHO_T}no" >&6 3954 fi 3955 3956 test -n "$F77" && break 3957 done 3958 fi 3959 if test -z "$F77"; then 3960 ac_ct_F77=$F77 3961 for ac_prog in $coin_f77_comps 3962 do 3963 # Extract the first word of "$ac_prog", so it can be a program name with args. 3964 set dummy $ac_prog; ac_word=$2 3965 echo "$as_me:$LINENO: checking for $ac_word" >&5 3966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3967 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 3968 echo $ECHO_N "(cached) $ECHO_C" >&6 3969 else 3970 if test -n "$ac_ct_F77"; then 3971 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 3972 else 3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3974 for as_dir in $PATH 3975 do 3976 IFS=$as_save_IFS 3977 test -z "$as_dir" && as_dir=. 3978 for ac_exec_ext in '' $ac_executable_extensions; do 3979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3980 ac_cv_prog_ac_ct_F77="$ac_prog" 3981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3982 break 2 3983 fi 3984 done 3985 done 3986 3987 fi 3988 fi 3989 ac_ct_F77=$ac_cv_prog_ac_ct_F77 3990 if test -n "$ac_ct_F77"; then 3991 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 3992 echo "${ECHO_T}$ac_ct_F77" >&6 3993 else 3994 echo "$as_me:$LINENO: result: no" >&5 3995 echo "${ECHO_T}no" >&6 3996 fi 3997 3998 test -n "$ac_ct_F77" && break 3999 done 4000 4001 F77=$ac_ct_F77 4002 fi 4003 4004 4005 # Provide some information about the compiler. 4006 echo "$as_me:4006:" \ 4007 "checking for Fortran 77 compiler version" >&5 4008 ac_compiler=`set X $ac_compile; echo $2` 4009 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4010 (eval $ac_compiler --version </dev/null >&5) 2>&5 4011 ac_status=$? 4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4013 (exit $ac_status); } 4014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4015 (eval $ac_compiler -v </dev/null >&5) 2>&5 4016 ac_status=$? 4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4018 (exit $ac_status); } 4019 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4020 (eval $ac_compiler -V </dev/null >&5) 2>&5 4021 ac_status=$? 4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4023 (exit $ac_status); } 4024 rm -f a.out 4025 4026 # If we don't use `.F' as extension, the preprocessor is not run on the 4027 # input file. (Note that this only needs to work for GNU compilers.) 4028 ac_save_ext=$ac_ext 4029 ac_ext=F 4030 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 4031 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 4032 if test "${ac_cv_f77_compiler_gnu+set}" = set; then 4033 echo $ECHO_N "(cached) $ECHO_C" >&6 4034 else 4035 cat >conftest.$ac_ext <<_ACEOF 4036 program main 4037 #ifndef __GNUC__ 4038 choke me 4039 #endif 4040 4041 end 4042 _ACEOF 4043 rm -f conftest.$ac_objext 4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4045 (eval $ac_compile) 2>conftest.er1 4046 ac_status=$? 4047 grep -v '^ *+' conftest.er1 >conftest.err 4048 rm -f conftest.er1 4049 cat conftest.err >&5 4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4051 (exit $ac_status); } && 4052 { ac_try='test -z "$ac_f77_werror_flag" 4053 || test ! -s conftest.err' 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); }; } && 4059 { ac_try='test -s conftest.$ac_objext' 4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4061 (eval $ac_try) 2>&5 4062 ac_status=$? 4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4064 (exit $ac_status); }; }; then 4065 ac_compiler_gnu=yes 4066 else 4067 echo "$as_me: failed program was:" >&5 4068 sed 's/^/| /' conftest.$ac_ext >&5 4069 4070 ac_compiler_gnu=no 4071 fi 4072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4073 ac_cv_f77_compiler_gnu=$ac_compiler_gnu 4074 4075 fi 4076 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 4077 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 4078 ac_ext=$ac_save_ext 4079 ac_test_FFLAGS=${FFLAGS+set} 4080 ac_save_FFLAGS=$FFLAGS 4081 FFLAGS= 4082 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 4083 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 4084 if test "${ac_cv_prog_f77_g+set}" = set; then 4085 echo $ECHO_N "(cached) $ECHO_C" >&6 4086 else 4087 FFLAGS=-g 4088 cat >conftest.$ac_ext <<_ACEOF 4089 program main 4090 4091 end 4092 _ACEOF 4093 rm -f conftest.$ac_objext 4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4095 (eval $ac_compile) 2>conftest.er1 4096 ac_status=$? 4097 grep -v '^ *+' conftest.er1 >conftest.err 4098 rm -f conftest.er1 4099 cat conftest.err >&5 4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4101 (exit $ac_status); } && 4102 { ac_try='test -z "$ac_f77_werror_flag" 4103 || test ! -s conftest.err' 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); }; } && 4109 { ac_try='test -s conftest.$ac_objext' 4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4111 (eval $ac_try) 2>&5 4112 ac_status=$? 4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4114 (exit $ac_status); }; }; then 4115 ac_cv_prog_f77_g=yes 4116 else 4117 echo "$as_me: failed program was:" >&5 4118 sed 's/^/| /' conftest.$ac_ext >&5 4119 4120 ac_cv_prog_f77_g=no 4121 fi 4122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4123 4124 fi 4125 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 4126 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 4127 if test "$ac_test_FFLAGS" = set; then 4128 FFLAGS=$ac_save_FFLAGS 4129 elif test $ac_cv_prog_f77_g = yes; then 4130 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4131 FFLAGS="-g -O2" 4132 else 4133 FFLAGS="-g" 4134 fi 4135 else 4136 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4137 FFLAGS="-O2" 4138 else 4139 FFLAGS= 4140 fi 4141 fi 4142 4143 G77=`test $ac_compiler_gnu = yes && echo yes` 4144 ac_ext=f 4145 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4146 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4147 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4148 4149 else 4150 { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5 4151 echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;} 4152 fi 4153 4154 FFLAGS="$save_fflags" 4155 4156 # Check if a project specific FFLAGS variable has been set 4157 if test x$COIN_PRJCT != x; then 4158 eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set} 4159 if test x$coin_tmp = xset; then 4160 eval FFLAGS=\${${COIN_PRJCT}_FFLAGS} 4161 fi 4162 fi 4163 4164 if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then 4165 4166 coin_add_fflags= 4167 coin_opt_fflags= 4168 coin_dbg_fflags= 4169 coin_warn_fflags= 4170 4171 if test "$G77" = "yes"; then 4172 coin_opt_fflags="-O3 -fomit-frame-pointer" 4173 coin_add_fflags="-pipe" 4174 coin_dbg_fflags="-g" 4175 case $enable_doscompile in 4176 mingw) 4177 FFLAGS="-mno-cygwin" 4178 cat >conftest.$ac_ext <<_ACEOF 4179 program main 4180 write(*,*) 'Hello world' 4181 end 4182 _ACEOF 4183 rm -f conftest.$ac_objext conftest$ac_exeext 4184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4185 (eval $ac_link) 2>conftest.er1 4186 ac_status=$? 4187 grep -v '^ *+' conftest.er1 >conftest.err 4188 rm -f conftest.er1 4189 cat conftest.err >&5 4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4191 (exit $ac_status); } && 4192 { ac_try='test -z "$ac_f77_werror_flag" 4193 || test ! -s conftest.err' 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); }; } && 4199 { ac_try='test -s conftest$ac_exeext' 4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4201 (eval $ac_try) 2>&5 4202 ac_status=$? 4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4204 (exit $ac_status); }; }; then 4205 coin_add_fflags="-mno-cygwin $coin_add_fflags" 4206 else 4207 echo "$as_me: failed program was:" >&5 4208 sed 's/^/| /' conftest.$ac_ext >&5 4209 4210 fi 4211 rm -f conftest.err conftest.$ac_objext \ 4212 conftest$ac_exeext conftest.$ac_ext 4213 FFLAGS= 4214 ;; 4215 esac 4216 else 4217 case $build in 4218 *-cygwin* | *-mingw*) 4219 case $F77 in 4220 ifort* | */ifort* | IFORT* | */IFORT* ) 4221 coin_opt_fflags='-O3' 4222 coin_add_fflags='-nologo -MT' 4223 coin_dbg_fflags='-debug' 4224 ;; 4225 esac 4226 ;; 4227 *-linux-*) 4228 case $F77 in 4229 ifc* | */ifc* | ifort* | */ifort*) 4230 coin_opt_fflags="-O3 -ip" 4231 coin_add_fflags="-cm -w90 -w95" 4232 coin_dbg_fflags="-g -CA -CB -CS" 4233 # Check if -i_dynamic is necessary (for new glibc library) 4234 FFLAGS= 4235 cat >conftest.$ac_ext <<_ACEOF 4236 program main 4237 write(*,*) 'Hello world' 4238 end 4239 _ACEOF 4240 rm -f conftest.$ac_objext conftest$ac_exeext 4241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4242 (eval $ac_link) 2>conftest.er1 4243 ac_status=$? 4244 grep -v '^ *+' conftest.er1 >conftest.err 4245 rm -f conftest.er1 4246 cat conftest.err >&5 4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4248 (exit $ac_status); } && 4249 { ac_try='test -z "$ac_f77_werror_flag" 4250 || test ! -s conftest.err' 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); }; } && 4256 { ac_try='test -s conftest$ac_exeext' 4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4258 (eval $ac_try) 2>&5 4259 ac_status=$? 4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4261 (exit $ac_status); }; }; then 4262 : 4263 else 4264 echo "$as_me: failed program was:" >&5 4265 sed 's/^/| /' conftest.$ac_ext >&5 4266 4267 coin_add_fflags="-i_dynamic $coin_add_fflags" 4268 fi 4269 rm -f conftest.err conftest.$ac_objext \ 4270 conftest$ac_exeext conftest.$ac_ext 4271 ;; 4272 pgf77* | */pgf77* | pgf90* | */pgf90*) 4273 coin_opt_fflags="-fast" 4274 coin_add_fflags="-Kieee -pc 64" 4275 coin_dbg_fflags="-g" 4276 ;; 4277 esac 4278 ;; 4279 *-ibm-*) 4280 case "$F77" in 4281 xlf* | */xlf* | mpxlf* | */mpxlf* ) 4282 coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1" 4283 coin_add_fflags="-bmaxdata:0x80000000" 4284 coin_dbg_fflags="-g -C" 4285 ;; 4286 esac 4287 ;; 4288 *-hp-*) 4289 coin_opt_fflags="+O3" 4290 coin_add_fflags="+U77" 4291 coin_dbg_fflags="-C -g" 4292 ;; 4293 *-sun-*) 4294 coin_opt_fflags="-O4" 4295 coin_dbg_fflags="-g" 4296 ;; 4297 *-sgi-*) 4298 coin_opt_fflags="-O5 -OPT:Olimit=0" 4299 coin_dbg_fflags="-g" 4300 ;; 4301 esac 4302 fi 4303 4304 if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then 4305 coin_dbg_fflags="-g" 4306 fi 4307 4308 if test -z "$coin_opt_fflags"; then 4309 # Try if -O option works if nothing else is set 4310 FFLAGS=-O 4311 cat >conftest.$ac_ext <<_ACEOF 4312 program main 4313 integer i 4314 end 4315 _ACEOF 4316 rm -f conftest.$ac_objext conftest$ac_exeext 4317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4318 (eval $ac_link) 2>conftest.er1 4319 ac_status=$? 4320 grep -v '^ *+' conftest.er1 >conftest.err 4321 rm -f conftest.er1 4322 cat conftest.err >&5 4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4324 (exit $ac_status); } && 4325 { ac_try='test -z "$ac_f77_werror_flag" 4326 || test ! -s conftest.err' 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); }; } && 4332 { ac_try='test -s conftest$ac_exeext' 4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4334 (eval $ac_try) 2>&5 4335 ac_status=$? 4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4337 (exit $ac_status); }; }; then 4338 coin_opt_fflags="-O" 4339 else 4340 echo "$as_me: failed program was:" >&5 4341 sed 's/^/| /' conftest.$ac_ext >&5 4342 4343 fi 4344 rm -f conftest.err conftest.$ac_objext \ 4345 conftest$ac_exeext conftest.$ac_ext 4346 fi 4347 4348 # if PM doesn't want the warning messages, take them out 4349 if test x"$coin_skip_warn_fflags" = xyes; then 4350 coin_warn_fflags= 4351 fi 4352 4353 if test x${DBG_FFLAGS+set} != xset; then 4354 DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags" 4355 fi 4356 if test x${OPT_FFLAGS+set} != xset; then 4357 OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags" 4358 fi 4359 4360 DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS" 4361 OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS" 4362 4363 if test "$coin_debug_compile" = "true"; then 4364 FFLAGS="$DBG_FFLAGS" 4365 else 4366 FFLAGS="$OPT_FFLAGS" 4367 fi 4368 else 4369 FFLAGS="$FFLAGS $ADD_FFLAGS" 4370 if test x${DBG_FFLAGS+set} != xset; then 4371 DBG_FFLAGS="$FFLAGS" 4372 fi 4373 if test x${OPT_FFLAGS+set} != xset; then 4374 OPT_FFLAGS="$FFLAGS" 4375 fi 4376 fi 4377 4378 # If FFLAGS contains -mno-cygwin, CPPFLAGS must have it. 4379 case "$FFLAGS" in 4380 *-mno-cygwin*) 4381 if test x${CPPFLAGS+set} != xset ; then 4382 CPPFLAGS="-mno-cygwin" 4383 else 4384 case "$CPPFLAGS" in 4385 *-mno-cygwin*) 4386 ;; 4387 *) 4388 CPPFLAGS="$CPPFLAGS -mno-cygwin" 4389 ;; 4390 esac 4391 fi ;; 4392 esac 4393 4394 # Try if FFLAGS works 4395 if test "$F77" != "unavailable" ; then 4396 cat >conftest.$ac_ext <<_ACEOF 4397 program main 4398 integer i 4399 end 4400 _ACEOF 4401 rm -f conftest.$ac_objext conftest$ac_exeext 4402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4403 (eval $ac_link) 2>conftest.er1 4404 ac_status=$? 4405 grep -v '^ *+' conftest.er1 >conftest.err 4406 rm -f conftest.er1 4407 cat conftest.err >&5 4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4409 (exit $ac_status); } && 4410 { ac_try='test -z "$ac_f77_werror_flag" 4411 || test ! -s conftest.err' 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); }; } && 4417 { ac_try='test -s conftest$ac_exeext' 4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4419 (eval $ac_try) 2>&5 4420 ac_status=$? 4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4422 (exit $ac_status); }; }; then 4423 : 4424 else 4425 echo "$as_me: failed program was:" >&5 4426 sed 's/^/| /' conftest.$ac_ext >&5 4427 4428 FFLAGS= 4429 fi 4430 rm -f conftest.err conftest.$ac_objext \ 4431 conftest$ac_exeext conftest.$ac_ext 4432 if test -z "$FFLAGS"; then 4433 { 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 4434 echo "$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;} 4435 FFLAGS='-O' 4436 cat >conftest.$ac_ext <<_ACEOF 4437 program main 4438 integer i 4439 end 4440 _ACEOF 4441 rm -f conftest.$ac_objext conftest$ac_exeext 4442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4443 (eval $ac_link) 2>conftest.er1 4444 ac_status=$? 4445 grep -v '^ *+' conftest.er1 >conftest.err 4446 rm -f conftest.er1 4447 cat conftest.err >&5 4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4449 (exit $ac_status); } && 4450 { ac_try='test -z "$ac_f77_werror_flag" 4451 || test ! -s conftest.err' 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); }; } && 4457 { ac_try='test -s conftest$ac_exeext' 4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4459 (eval $ac_try) 2>&5 4460 ac_status=$? 4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4462 (exit $ac_status); }; }; then 4463 : 4464 else 4465 echo "$as_me: failed program was:" >&5 4466 sed 's/^/| /' conftest.$ac_ext >&5 4467 4468 FFLAGS= 4469 fi 4470 rm -f conftest.err conftest.$ac_objext \ 4471 conftest$ac_exeext conftest.$ac_ext 4472 if test -z "$FFLAGS"; then 4473 { 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 4474 echo "$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;} 4475 fi 4476 fi 4477 fi 4478 4479 { echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5 4480 echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;} 4481 4482 4483 if test x"$MPIF77" = x; then :; else 4484 { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5 4485 echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;} 4486 F77="$MPIF77" 4487 fi 4488 4489 case "$F77" in 4490 ifort* | */ifort* | IFORT* | */IFORT*) 4491 case $build in 4492 *-mingw*) 4493 if test "${LD+set}" = set; then :; else 4494 LD=link 4495 fi 4496 ;; 4497 esac 4498 case $enable_doscompile in 4499 msvc) 4500 if test "x${LD+set}" = xset; then :; else 4501 LD=link 4502 fi 4503 ;; 4504 esac 4505 4506 ;; 4507 esac 4508 4509 ac_ext=c 4510 ac_cpp='$CPP $CPPFLAGS' 4511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4513 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4514 4515 4516 4517 # Initialize automake and libtool 4518 # AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.]) 4519 { 4520 4521 4522 4523 # START 4524 4525 # On Cygwin, building DLLs doesn't work 4526 case $build in 4527 *-cygwin*) 4528 coin_disable_shared=yes 4529 platform=Cygwin 4530 ;; 4531 *-mingw*) 4532 coin_disable_shared=yes 4533 platform="Msys" 4534 # case "$CXX" in 4535 # cl*) 4536 # coin_disable_shared=yes 4537 # platform="Msys with cl" 4538 # ;; 4539 # esac 4540 ;; 4541 esac 4542 if test x"$coin_disable_shared" = xyes; then 4543 if test x"$enable_shared" = xyes; then 4544 { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5 4545 echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;} 4546 fi 4547 enable_shared=no 4548 fi 4549 # By default, we only want the shared objects to be compiled 4550 # Check whether --enable-static or --disable-static was given. 4551 if test "${enable_static+set}" = set; then 4552 enableval="$enable_static" 4553 p=${PACKAGE-default} 4554 case $enableval in 4555 yes) enable_static=yes ;; 4556 no) enable_static=no ;; 4557 *) 4558 enable_static=no 4559 # Look at the argument we got. We use all the common list separators. 4560 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4561 for pkg in $enableval; do 4562 IFS="$lt_save_ifs" 4563 if test "X$pkg" = "X$p"; then 4564 enable_static=yes 4565 fi 4566 done 4567 IFS="$lt_save_ifs" 4568 ;; 4569 esac 4570 else 4571 enable_static=no 4572 fi; 4573 4574 4575 4576 4577 # Initialize automake 4578 echo "$as_me:$LINENO: checking for egrep" >&5 4579 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4580 if test "${ac_cv_prog_egrep+set}" = set; then 4581 echo $ECHO_N "(cached) $ECHO_C" >&6 4582 else 4583 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4584 then ac_cv_prog_egrep='grep -E' 4585 else ac_cv_prog_egrep='egrep' 4586 fi 4587 fi 4588 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4589 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4590 EGREP=$ac_cv_prog_egrep 4591 4592 4593 am__api_version="1.9" 1341 4594 # Find a good install program. We prefer a C program (faster), 1342 4595 # so one script is as good as another. But avoid the broken or … … 1600 4853 rmdir .tst 2>/dev/null 1601 4854 1602 4855 DEPDIR="${am__leading_dot}deps" 4856 4857 ac_config_commands="$ac_config_commands depfiles" 4858 4859 4860 am_make=${MAKE-make} 4861 cat > confinc << 'END' 4862 am__doit: 4863 @echo done 4864 .PHONY: am__doit 4865 END 4866 # If we don't find an include directive, just comment out the code. 4867 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 4868 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 4869 am__include="#" 4870 am__quote= 4871 _am_result=none 4872 # First try GNU make style include. 4873 echo "include confinc" > confmf 4874 # We grep out `Entering directory' and `Leaving directory' 4875 # messages which can occur if `w' ends up in MAKEFLAGS. 4876 # In particular we don't look at `^make:' because GNU make might 4877 # be invoked under some other name (usually "gmake"), in which 4878 # case it prints its new name instead of `make'. 4879 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 4880 am__include=include 4881 am__quote= 4882 _am_result=GNU 4883 fi 4884 # Now try BSD make style include. 4885 if test "$am__include" = "#"; then 4886 echo '.include "confinc"' > confmf 4887 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 4888 am__include=.include 4889 am__quote="\"" 4890 _am_result=BSD 4891 fi 4892 fi 4893 4894 4895 echo "$as_me:$LINENO: result: $_am_result" >&5 4896 echo "${ECHO_T}$_am_result" >&6 4897 rm -f confinc confmf 4898 4899 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 4900 if test "${enable_dependency_tracking+set}" = set; then 4901 enableval="$enable_dependency_tracking" 4902 4903 fi; 4904 if test "x$enable_dependency_tracking" != xno; then 4905 am_depcomp="$ac_aux_dir/depcomp" 4906 AMDEPBACKSLASH='\' 4907 fi 4908 4909 4910 if test "x$enable_dependency_tracking" != xno; then 4911 AMDEP_TRUE= 4912 AMDEP_FALSE='#' 4913 else 4914 AMDEP_TRUE='#' 4915 AMDEP_FALSE= 4916 fi 4917 4918 4919 4920 4921 4922 # AC_MSG_NOTICE([Beginning automake initialisation.]) 1603 4923 # Stuff for automake 1604 4924 # test to see if srcdir already configured … … 1751 5071 1752 5072 5073 depcc="$CC" am_compiler_list= 5074 5075 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5076 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5077 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 5078 echo $ECHO_N "(cached) $ECHO_C" >&6 5079 else 5080 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5081 # We make a subdir and do the tests there. Otherwise we can end up 5082 # making bogus files that we don't know about and never remove. For 5083 # instance it was reported that on HP-UX the gcc test will end up 5084 # making a dummy file named `D' -- because `-MD' means `put the output 5085 # in D'. 5086 mkdir conftest.dir 5087 # Copy depcomp to subdir because otherwise we won't find it if we're 5088 # using a relative directory. 5089 cp "$am_depcomp" conftest.dir 5090 cd conftest.dir 5091 # We will build objects and dependencies in a subdirectory because 5092 # it helps to detect inapplicable dependency modes. For instance 5093 # both Tru64's cc and ICC support -MD to output dependencies as a 5094 # side effect of compilation, but ICC will put the dependencies in 5095 # the current directory while Tru64 will put them in the object 5096 # directory. 5097 mkdir sub 5098 5099 am_cv_CC_dependencies_compiler_type=none 5100 if test "$am_compiler_list" = ""; then 5101 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5102 fi 5103 for depmode in $am_compiler_list; do 5104 # Setup a source with many dependencies, because some compilers 5105 # like to wrap large dependency lists on column 80 (with \), and 5106 # we should not choose a depcomp mode which is confused by this. 5107 # 5108 # We need to recreate these files for each test, as the compiler may 5109 # overwrite some of them when testing with obscure command lines. 5110 # This happens at least with the AIX C compiler. 5111 : > sub/conftest.c 5112 for i in 1 2 3 4 5 6; do 5113 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5114 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5115 # Solaris 8's {/usr,}/bin/sh. 5116 touch sub/conftst$i.h 5117 done 5118 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5119 5120 case $depmode in 5121 nosideeffect) 5122 # after this tag, mechanisms are not by side-effect, so they'll 5123 # only be used when explicitly requested 5124 if test "x$enable_dependency_tracking" = xyes; then 5125 continue 5126 else 5127 break 5128 fi 5129 ;; 5130 none) break ;; 5131 esac 5132 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5133 # mode. It turns out that the SunPro C++ compiler does not properly 5134 # handle `-M -o', and we need to detect this. 5135 if depmode=$depmode \ 5136 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5137 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5138 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5139 >/dev/null 2>conftest.err && 5140 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5141 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5142 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5143 # icc doesn't choke on unknown options, it will just issue warnings 5144 # or remarks (even with -Werror). So we grep stderr for any message 5145 # that says an option was ignored or not supported. 5146 # When given -MP, icc 7.0 and 7.1 complain thusly: 5147 # icc: Command line warning: ignoring option '-M'; no argument required 5148 # The diagnosis changed in icc 8.0: 5149 # icc: Command line remark: option '-MP' not supported 5150 if (grep 'ignoring option' conftest.err || 5151 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5152 am_cv_CC_dependencies_compiler_type=$depmode 5153 break 5154 fi 5155 fi 5156 done 5157 5158 cd .. 5159 rm -rf conftest.dir 5160 else 5161 am_cv_CC_dependencies_compiler_type=none 5162 fi 5163 5164 fi 5165 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 5166 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 5167 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5168 5169 5170 5171 if 5172 test "x$enable_dependency_tracking" != xno \ 5173 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5174 am__fastdepCC_TRUE= 5175 am__fastdepCC_FALSE='#' 5176 else 5177 am__fastdepCC_TRU