Changeset 725
- Timestamp:
- Oct 30, 2007 2:19:15 PM (13 years ago)
- Location:
- ThirdParty/ASL/trunk
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/ASL/trunk/Makefile.am
r589 r725 30 30 else 31 31 $(libampl): 32 rm -rf $(compdir) ; \ 33 $(mkinstalldirs) $(compdir); \ 34 files=`cd $(abs_source_dir)/solvers; ls *.[chs] *.[ch]0 *.hd arith.* makefile* `; \ 35 cd $(compdir); \ 36 for file in $$files; \ 37 do \ 38 rm -f $$file ;\ 39 $(LN_S) $(abs_source_dir)/solvers/$$file $$file ;\ 40 done; \ 41 rm -f makefile; \ 42 $(ASLMAKEFILECMDS); \ 43 $(MAKE) $(ASLMAKEFLAGS) CC="$(CC)" clean ;\ 44 $(MAKE) $(ASLMAKEFLAGS) CC="$(CC)" ;\ 45 mv amplsolver.a ../$(libampl) 46 -cd $(compdir); mv stdio1.h arith.h funcadd0.$(OBJEXT) .. 47 rm -rf $(compdir) 32 compile_Unix_ASL 48 33 endif 49 34 -
ThirdParty/ASL/trunk/Makefile.in
r589 r725 56 56 $(srcdir)/../../missing $(srcdir)/Makefile.am \ 57 57 $(srcdir)/Makefile.in $(srcdir)/compile_MS_ASL.in \ 58 $( top_srcdir)/configure58 $(srcdir)/compile_Unix_ASL.in $(top_srcdir)/configure 59 59 @HAVE_EXTERNALS_TRUE@am__append_1 = Externals 60 60 @HAVE_EXTERNALS_TRUE@am__append_2 = .Externals-stamp … … 68 68 configure.lineno configure.status.lineno 69 69 mkinstalldirs = $(install_sh) -d 70 CONFIG_CLEAN_FILES = compile_MS_ASL 70 CONFIG_CLEAN_FILES = compile_MS_ASL compile_Unix_ASL 71 71 SOURCES = 72 72 DIST_SOURCES = … … 93 93 AR = @AR@ 94 94 ASLLIB = @ASLLIB@ 95 ASLMAKEFILECMDS = @ASLMAKEFILECMDS@96 95 ASLMAKEFLAGS = @ASLMAKEFLAGS@ 97 96 ASL_CPPFLAGS = @ASL_CPPFLAGS@ … … 218 217 sbindir = @sbindir@ 219 218 sharedstatedir = @sharedstatedir@ 219 sol_cc_compiler = @sol_cc_compiler@ 220 220 sysconfdir = @sysconfdir@ 221 221 target_alias = @target_alias@ … … 275 275 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) 276 276 compile_MS_ASL: $(top_builddir)/config.status $(srcdir)/compile_MS_ASL.in 277 cd $(top_builddir) && $(SHELL) ./config.status $@ 278 compile_Unix_ASL: $(top_builddir)/config.status $(srcdir)/compile_Unix_ASL.in 277 279 cd $(top_builddir) && $(SHELL) ./config.status $@ 278 280 … … 517 519 @MSVC_COMPILE_TRUE@ compile_MS_ASL 518 520 @MSVC_COMPILE_FALSE@$(libampl): 519 @MSVC_COMPILE_FALSE@ rm -rf $(compdir) ; \ 520 @MSVC_COMPILE_FALSE@ $(mkinstalldirs) $(compdir); \ 521 @MSVC_COMPILE_FALSE@ files=`cd $(abs_source_dir)/solvers; ls *.[chs] *.[ch]0 *.hd arith.* makefile* `; \ 522 @MSVC_COMPILE_FALSE@ cd $(compdir); \ 523 @MSVC_COMPILE_FALSE@ for file in $$files; \ 524 @MSVC_COMPILE_FALSE@ do \ 525 @MSVC_COMPILE_FALSE@ rm -f $$file ;\ 526 @MSVC_COMPILE_FALSE@ $(LN_S) $(abs_source_dir)/solvers/$$file $$file ;\ 527 @MSVC_COMPILE_FALSE@ done; \ 528 @MSVC_COMPILE_FALSE@ rm -f makefile; \ 529 @MSVC_COMPILE_FALSE@ $(ASLMAKEFILECMDS); \ 530 @MSVC_COMPILE_FALSE@ $(MAKE) $(ASLMAKEFLAGS) CC="$(CC)" clean ;\ 531 @MSVC_COMPILE_FALSE@ $(MAKE) $(ASLMAKEFLAGS) CC="$(CC)" ;\ 532 @MSVC_COMPILE_FALSE@ mv amplsolver.a ../$(libampl) 533 @MSVC_COMPILE_FALSE@ -cd $(compdir); mv stdio1.h arith.h funcadd0.$(OBJEXT) .. 534 @MSVC_COMPILE_FALSE@ rm -rf $(compdir) 521 @MSVC_COMPILE_FALSE@ compile_Unix_ASL 535 522 536 523 stdio1.h arith.h funcadd0.$(OBJEXT): $(libampl) -
ThirdParty/ASL/trunk/compile_MS_ASL.in
r588 r725 31 31 sed -e "s/System_details/$clver/" details.c0 > details.c 32 32 33 # Adjust solvers/makefile.vc for the situation at hand. When building with cl 34 # under cygwin, we can't execute comptry.bat. The sole purpose of comptry.bat 35 # is to retry the compile with -DNO_LONG_LONG in an environment where long long 36 # does not exist. Since we've already tested for long long in configure and set 37 # ASLMAKEFLAGS accordingly, we can discard comptry.bat without worry. 38 39 sed -e 's/comptry\.bat \$(CC)/$(CC)/' makefile.vc > makefile.coin 40 33 41 # Do the build. CFLAGS specified on the command line (as a result of autoconf 34 # replacing ASLMAKEFLAGS) will override the specs in makefile.vc, ensuring 35 # that ASL is built with the same compiler flags as other code. It turns out 36 # that Gnu make always sets MAKEFLAGS to --unix, and nmake tries to process 37 # this, resulting in error U1065. Clear MAKEFLAGS to fix the problem. 42 # replacing ASLMAKEFLAGS) will override the specs in makefile.vc, ensuring that 43 # ASL is built with the same compiler flags as other code. Makefile.vc also 44 # forces CC=cl, but since Coin only uses makefile.vc for the cl compiler, 45 # there's no need to override it here. 46 47 # It turns out that Gnu make always sets MAKEFLAGS to --unix, and nmake tries 48 # to process this, resulting in error U1065. Clear MAKEFLAGS to fix the 49 # problem. 38 50 39 51 libampl=@AMPLSOLVER_A@ 40 52 MAKEFLAGS= 41 nmake -f makefile. vc@ASLMAKEFLAGS@53 nmake -f makefile.coin @ASLMAKEFLAGS@ 42 54 mv amplsolv.lib ../$libampl 43 55 mv stdio1.h arith.h funcadd0.obj .. -
ThirdParty/ASL/trunk/configure
r588 r725 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 EGREP LN_S CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC 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 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 ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE AMPLSOLVER_A ASLMAKEFLAGS ASLMAKEFILECMDS MSVC_COMPILE_TRUE MSVC_COMPILE_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 EGREP LN_S CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC 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 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 ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE AMPLSOLVER_A ASLMAKEFLAGS MSVC_COMPILE_TRUE MSVC_COMPILE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS' 476 476 ac_subst_files='' 477 477 … … 1882 1882 1883 1883 save_cflags="$CFLAGS" 1884 # For sparc-sun-solaris, promote Studio/Workshop compiler to front of list. 1885 # ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which 1886 # is likely to be a non-functional shell. But many installations will have 1887 # both cc and gcc, so promoting gcc isn't good either. How to test reliably? 1884 1885 # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list. 1886 # Depending on the user's PATH, when Studio/Workshop cc is not present we may 1887 # find /usr/ucb/cc, which is almost certainly not a good choice for the C 1888 # compiler. In this case, put cc after gcc. 1889 1888 1890 case $build in 1889 1891 *-cygwin* | *-mingw*) … … 1893 1895 comps="gcc cl" 1894 1896 fi ;; 1895 sparc-sun-solaris*) 1896 comps="cc xlc gcc pgcc icc" ;; 1897 *-*-solaris*) 1898 # Extract the first word of "cc", so it can be a program name with args. 1899 set dummy cc; ac_word=$2 1900 echo "$as_me:$LINENO: checking for $ac_word" >&5 1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1902 if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then 1903 echo $ECHO_N "(cached) $ECHO_C" >&6 1904 else 1905 if test -n "$sol_cc_compiler"; then 1906 ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test. 1907 else 1908 ac_prog_rejected=no 1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1910 for as_dir in $PATH 1911 do 1912 IFS=$as_save_IFS 1913 test -z "$as_dir" && as_dir=. 1914 for ac_exec_ext in '' $ac_executable_extensions; do 1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1916 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1917 ac_prog_rejected=yes 1918 continue 1919 fi 1920 ac_cv_prog_sol_cc_compiler="cc" 1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1922 break 2 1923 fi 1924 done 1925 done 1926 1927 if test $ac_prog_rejected = yes; then 1928 # We found a bogon in the path, so make sure we never use it. 1929 set dummy $ac_cv_prog_sol_cc_compiler 1930 shift 1931 if test $# != 0; then 1932 # We chose a different compiler from the bogus one. 1933 # However, it has the same basename, so the bogon will be chosen 1934 # first if we set sol_cc_compiler to just the basename; use the full file name. 1935 shift 1936 ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@" 1937 fi 1938 fi 1939 fi 1940 fi 1941 sol_cc_compiler=$ac_cv_prog_sol_cc_compiler 1942 if test -n "$sol_cc_compiler"; then 1943 echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5 1944 echo "${ECHO_T}$sol_cc_compiler" >&6 1945 else 1946 echo "$as_me:$LINENO: result: no" >&5 1947 echo "${ECHO_T}no" >&6 1948 fi 1949 1950 if test "$sol_cc_compiler" = "cc" ; then 1951 comps="cc xlc gcc pgcc icc" 1952 else 1953 comps="xlc gcc pgcc icc cc" 1954 fi 1955 ;; 1897 1956 *-linux-*) comps="xlc gcc cc pgcc icc" ;; 1898 1957 *) comps="xlc_r xlc cc gcc pgcc icc" ;; … … 2796 2855 coin_dbg_cflags="-g" 2797 2856 ;; 2798 *- sun-*)2857 *-*-solaris*) 2799 2858 coin_opt_cflags="-xO4" 2800 2859 coin_dbg_cflags="-g" … … 4645 4704 *-*-irix6*) 4646 4705 # Find out which ABI we are using. 4647 echo '#line 4 647"configure"' > conftest.$ac_ext4706 echo '#line 4706 "configure"' > conftest.$ac_ext 4648 4707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4649 4708 (eval $ac_compile) 2>&5 … … 6244 6303 6245 6304 # Provide some information about the compiler. 6246 echo "$as_me:6 246:" \6305 echo "$as_me:6305:" \ 6247 6306 "checking for Fortran 77 compiler version" >&5 6248 6307 ac_compiler=`set X $ac_compile; echo $2` … … 7311 7370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7312 7371 -e 's:$: $lt_compiler_flag:'` 7313 (eval echo "\"\$as_me:73 13: $lt_compile\"" >&5)7372 (eval echo "\"\$as_me:7372: $lt_compile\"" >&5) 7314 7373 (eval "$lt_compile" 2>conftest.err) 7315 7374 ac_status=$? 7316 7375 cat conftest.err >&5 7317 echo "$as_me:73 17: \$? = $ac_status" >&57376 echo "$as_me:7376: \$? = $ac_status" >&5 7318 7377 if (exit $ac_status) && test -s "$ac_outfile"; then 7319 7378 # The compiler can only warn and ignore the option if not recognized … … 7579 7638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7580 7639 -e 's:$: $lt_compiler_flag:'` 7581 (eval echo "\"\$as_me:7 581: $lt_compile\"" >&5)7640 (eval echo "\"\$as_me:7640: $lt_compile\"" >&5) 7582 7641 (eval "$lt_compile" 2>conftest.err) 7583 7642 ac_status=$? 7584 7643 cat conftest.err >&5 7585 echo "$as_me:7 585: \$? = $ac_status" >&57644 echo "$as_me:7644: \$? = $ac_status" >&5 7586 7645 if (exit $ac_status) && test -s "$ac_outfile"; then 7587 7646 # The compiler can only warn and ignore the option if not recognized … … 7683 7742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7684 7743 -e 's:$: $lt_compiler_flag:'` 7685 (eval echo "\"\$as_me:7 685: $lt_compile\"" >&5)7744 (eval echo "\"\$as_me:7744: $lt_compile\"" >&5) 7686 7745 (eval "$lt_compile" 2>out/conftest.err) 7687 7746 ac_status=$? 7688 7747 cat out/conftest.err >&5 7689 echo "$as_me:7 689: \$? = $ac_status" >&57748 echo "$as_me:7748: \$? = $ac_status" >&5 7690 7749 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7691 7750 then … … 10028 10087 lt_status=$lt_dlunknown 10029 10088 cat > conftest.$ac_ext <<EOF 10030 #line 100 30"configure"10089 #line 10089 "configure" 10031 10090 #include "confdefs.h" 10032 10091 … … 10128 10187 lt_status=$lt_dlunknown 10129 10188 cat > conftest.$ac_ext <<EOF 10130 #line 101 30"configure"10189 #line 10189 "configure" 10131 10190 #include "confdefs.h" 10132 10191 … … 12472 12531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12473 12532 -e 's:$: $lt_compiler_flag:'` 12474 (eval echo "\"\$as_me:12 474: $lt_compile\"" >&5)12533 (eval echo "\"\$as_me:12533: $lt_compile\"" >&5) 12475 12534 (eval "$lt_compile" 2>conftest.err) 12476 12535 ac_status=$? 12477 12536 cat conftest.err >&5 12478 echo "$as_me:12 478: \$? = $ac_status" >&512537 echo "$as_me:12537: \$? = $ac_status" >&5 12479 12538 if (exit $ac_status) && test -s "$ac_outfile"; then 12480 12539 # The compiler can only warn and ignore the option if not recognized … … 12576 12635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12577 12636 -e 's:$: $lt_compiler_flag:'` 12578 (eval echo "\"\$as_me:12 578: $lt_compile\"" >&5)12637 (eval echo "\"\$as_me:12637: $lt_compile\"" >&5) 12579 12638 (eval "$lt_compile" 2>out/conftest.err) 12580 12639 ac_status=$? 12581 12640 cat out/conftest.err >&5 12582 echo "$as_me:12 582: \$? = $ac_status" >&512641 echo "$as_me:12641: \$? = $ac_status" >&5 12583 12642 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12584 12643 then … … 14146 14205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14147 14206 -e 's:$: $lt_compiler_flag:'` 14148 (eval echo "\"\$as_me:14 148: $lt_compile\"" >&5)14207 (eval echo "\"\$as_me:14207: $lt_compile\"" >&5) 14149 14208 (eval "$lt_compile" 2>conftest.err) 14150 14209 ac_status=$? 14151 14210 cat conftest.err >&5 14152 echo "$as_me:14 152: \$? = $ac_status" >&514211 echo "$as_me:14211: \$? = $ac_status" >&5 14153 14212 if (exit $ac_status) && test -s "$ac_outfile"; then 14154 14213 # The compiler can only warn and ignore the option if not recognized … … 14250 14309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14251 14310 -e 's:$: $lt_compiler_flag:'` 14252 (eval echo "\"\$as_me:14 252: $lt_compile\"" >&5)14311 (eval echo "\"\$as_me:14311: $lt_compile\"" >&5) 14253 14312 (eval "$lt_compile" 2>out/conftest.err) 14254 14313 ac_status=$? 14255 14314 cat out/conftest.err >&5 14256 echo "$as_me:14 256: \$? = $ac_status" >&514315 echo "$as_me:14315: \$? = $ac_status" >&5 14257 14316 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14258 14317 then … … 16457 16516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16458 16517 -e 's:$: $lt_compiler_flag:'` 16459 (eval echo "\"\$as_me:16 459: $lt_compile\"" >&5)16518 (eval echo "\"\$as_me:16518: $lt_compile\"" >&5) 16460 16519 (eval "$lt_compile" 2>conftest.err) 16461 16520 ac_status=$? 16462 16521 cat conftest.err >&5 16463 echo "$as_me:16 463: \$? = $ac_status" >&516522 echo "$as_me:16522: \$? = $ac_status" >&5 16464 16523 if (exit $ac_status) && test -s "$ac_outfile"; then 16465 16524 # The compiler can only warn and ignore the option if not recognized … … 16725 16784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16726 16785 -e 's:$: $lt_compiler_flag:'` 16727 (eval echo "\"\$as_me:167 27: $lt_compile\"" >&5)16786 (eval echo "\"\$as_me:16786: $lt_compile\"" >&5) 16728 16787 (eval "$lt_compile" 2>conftest.err) 16729 16788 ac_status=$? 16730 16789 cat conftest.err >&5 16731 echo "$as_me:167 31: \$? = $ac_status" >&516790 echo "$as_me:16790: \$? = $ac_status" >&5 16732 16791 if (exit $ac_status) && test -s "$ac_outfile"; then 16733 16792 # The compiler can only warn and ignore the option if not recognized … … 16829 16888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16830 16889 -e 's:$: $lt_compiler_flag:'` 16831 (eval echo "\"\$as_me:168 31: $lt_compile\"" >&5)16890 (eval echo "\"\$as_me:16890: $lt_compile\"" >&5) 16832 16891 (eval "$lt_compile" 2>out/conftest.err) 16833 16892 ac_status=$? 16834 16893 cat out/conftest.err >&5 16835 echo "$as_me:168 35: \$? = $ac_status" >&516894 echo "$as_me:16894: \$? = $ac_status" >&5 16836 16895 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16837 16896 then … … 19515 19574 19516 19575 19517 # Fix bugs in libtool script for Windows native compilation:19518 # - cygpath is not correctly quoted in fix_srcfile_path19519 # - paths generated for .lib files is not run through cygpath -w19520 19521 19522 # - lib includes subdirectory information; we want to replace19523 #19524 # old_archive_cmds="lib /OUT:\$oldlib\$oldobjs\$old_deplibs"19525 #19526 # by19527 #19528 # old_archive_cmds="echo \$oldlib | grep .libs >/dev/null; if test \$? = 0; then cd .libs; lib /OUT:\`echo \$oldlib\$oldobjs\$old_deplibs | sed -e s@\.libs/@@g\`; cd .. ; else lib /OUT:\$oldlib\$oldobjs\$old_deplibs ; fi"19529 #19530 # -e 's%old_archive_cmds="lib /OUT:\\\$oldlib\\\$oldobjs\\\$old_deplibs"%old_archive_cmds="echo \\\$oldlib \| grep .libs >/dev/null; if test \\\$? = 0; then cd .libs; lib /OUT:\\\`echo \\\$oldlib\\\$oldobjs\\\$old_deplibs \| sed -e s@\\.libs/@@g\\\`; cd .. ; else lib /OUT:\\\$oldlib\\\$oldobjs\\\$old_deplibs; fi"%' \19531 19532 # The following was a hack for chaniing @BACKSLASH to \19533 # -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' \19534 19535 # Correct cygpath for minGW (ToDo!)19536 19576 { echo "$as_me:$LINENO: Build is \"$build\"." >&5 19537 19577 echo "$as_me: Build is \"$build\"." >&6;} … … 19545 19585 19546 19586 case $build in 19587 # Here we need to check if -m32 is specified. If so, we need to correct 19588 # sys_lib_search_path_spec 19547 19589 *x86_64-*) 19548 # Here we need to check if -m32 is specified. If so, we need to correct sys_lib_search_path_spec19549 19590 if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then 19550 19591 { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5 … … 19555 19596 fi 19556 19597 ;; 19598 # The opposite problem: if we want to do a 64-bit build, the system search 19599 # libraries need to point to the sparcv9 subdirectories. If they do not 19600 # already do that, fix them. 19601 sparc-sun-solaris*) 19602 if test "$GCC" = yes && \ 19603 (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then 19604 fixlibtmp=`$CC -print-search-dirs | $EGREP '^libraries:'` 19605 if `echo "$fixlibtmp" | $EGREP -v sparcv9 >/dev/null 2>&1` ; then 19606 { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit compilation" >&5 19607 echo "$as_me: Applying patches to libtool for 64-bit compilation" >&6;} 19608 fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'` 19609 v9syslibpath= 19610 for lib in $fixlibtmp ; do 19611 if test -d "${lib}sparcv9" ; then 19612 v9syslibpath="$v9syslibpath ${lib}sparcv9/" 19613 fi 19614 done 19615 sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$v9syslibpath"'"|' libtool > conftest.bla 19616 mv conftest.bla libtool 19617 chmod 755 libtool 19618 fi 19619 fi 19620 ;; 19621 # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro. 19557 19622 *-cygwin* | *-mingw*) 19558 case "$CXX" in19559 19560 19623 case "$CXX" in 19624 cl* | */cl* | CL* | */CL*) 19625 { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5 19561 19626 echo "$as_me: Applying patches to libtool for cl compiler" >&6;} 19562 19563 19564 19565 19566 19567 19568 19569 19570 19571 19572 19573 19574 19575 19576 19577 19578 19579 19627 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 19628 -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 19629 -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 19630 -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \ 19631 -e 's%lib /OUT:%lib -OUT:%' \ 19632 -e "s%cygpath -w%$CYGPATH_W%" \ 19633 -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\`lib -nologo -list \\$f_ex_an_ar_oldlib | xargs echo '"$mydos2unix"'\\`; echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$f_ex_an_ar_oldlib; done%' \ 19634 -e 's/$AR t/lib -nologo -list/' \ 19635 -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \ 19636 -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \ 19637 -e 's%old_archive_cmds="lib -OUT:\\$oldlib\\$oldobjs\\$old_deplibs"%old_archive_cmds="if test -r \\$oldlib; then bla=\\"\\$oldlib\\"; else bla=; fi; lib -OUT:\\$oldlib \\\\\\$bla\\$oldobjs\\$old_deplibs"%' \ 19638 libtool > conftest.bla 19639 19640 mv conftest.bla libtool 19641 chmod 755 libtool 19642 ;; 19643 *) 19644 { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5 19580 19645 echo "$as_me: Applying patches to libtool for GNU compiler" >&6;} 19581 19582 19583 19584 19585 19586 19587 19588 19589 19590 ;;19646 sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \ 19647 -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \ 19648 -e 's|libext="lib"|libext="a"|' \ 19649 libtool > conftest.bla 19650 19651 mv conftest.bla libtool 19652 chmod 755 libtool 19653 ;; 19654 esac 19655 ;; 19591 19656 *-darwin*) 19592 19657 { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5 … … 19630 19695 *-mingw32) 19631 19696 RPATH_FLAGS=nothing ;; 19632 *- sun-*)19697 *-*-solaris*) 19633 19698 RPATH_FLAGS= 19634 19699 for dir in $abs_lib_dir; do … … 19937 20002 # NON_STDIO no longer appears in any source file; removed all mention. 19938 20003 # No_Control87 seems to be specific to DEC Alpha. Try leaving it undefined. 19939 # -- lh, 070915 --19940 20004 19941 20005 if test -z "$ASLMAKEFLAGS" ; then … … 19950 20014 esac 19951 20015 19952 # The critical function for NO_RUSAGE is getrusage(). Use a standard test. 19953 # -- lh, 070915 -- 19954 19955 echo "$as_me:$LINENO: checking for getrusage" >&5 19956 echo $ECHO_N "checking for getrusage... $ECHO_C" >&6 20016 # Various feature checks. Force the language to be C while we do this to avoid 20017 # issues with C++ (re)declarations. 20018 19957 20019 ac_ext=c 19958 20020 ac_cpp='$CPP $CPPFLAGS' … … 19961 20023 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19962 20024 20025 20026 # The critical function for NO_RUSAGE is getrusage(). Use a standard test. 20027 20028 echo "$as_me:$LINENO: checking for getrusage" >&5 20029 echo $ECHO_N "checking for getrusage... $ECHO_C" >&6 19963 20030 cat >conftest.$ac_ext <<_ACEOF 19964 20031 /* confdefs.h. */ … … 20010 20077 rm -f conftest.err conftest.$ac_objext \ 20011 20078 conftest$ac_exeext conftest.$ac_ext 20079 20080 # Check for long long; we need to define NO_LONG_LONG if it's not present. ASL 20081 # makefile.u and makefile.vc both deal with this, in their own way. 20082 # Unfortunately, when trying to build with cl under cygwin, the makefile.vc 20083 # solution, comptry.bat, fails. To safely discard comptry.bat, we need to do 20084 # this check. It's hardly likely that long long is missing on any modern 20085 # system, but it's easy to check. 20086 20087 echo "$as_me:$LINENO: checking for long long" >&5 20088 echo $ECHO_N "checking for long long... $ECHO_C" >&6 20089 if test "${ac_cv_type_long_long+set}" = set; then 20090 echo $ECHO_N "(cached) $ECHO_C" >&6 20091 else 20092 cat >conftest.$ac_ext <<_ACEOF 20093 /* confdefs.h. */ 20094 _ACEOF 20095 cat confdefs.h >>conftest.$ac_ext 20096 cat >>conftest.$ac_ext <<_ACEOF 20097 /* end confdefs.h. */ 20098 $ac_includes_default 20099 int 20100 main () 20101 { 20102 if ((long long *) 0) 20103 return 0; 20104 if (sizeof (long long)) 20105 return 0; 20106 ; 20107 return 0; 20108 } 20109 _ACEOF 20110 rm -f conftest.$ac_objext 20111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20112 (eval $ac_compile) 2>conftest.er1 20113 ac_status=$? 20114 grep -v '^ *+' conftest.er1 >conftest.err 20115 rm -f conftest.er1 20116 cat conftest.err >&5 20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20118 (exit $ac_status); } && 20119 { ac_try='test -z "$ac_c_werror_flag" 20120 || test ! -s conftest.err' 20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20122 (eval $ac_try) 2>&5 20123 ac_status=$? 20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20125 (exit $ac_status); }; } && 20126 { ac_try='test -s conftest.$ac_objext' 20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20128 (eval $ac_try) 2>&5 20129 ac_status=$? 20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20131 (exit $ac_status); }; }; then 20132 ac_cv_type_long_long=yes 20133 else 20134 echo "$as_me: failed program was:" >&5 20135 sed 's/^/| /' conftest.$ac_ext >&5 20136 20137 ac_cv_type_long_long=no 20138 fi 20139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20140 fi 20141 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 20142 echo "${ECHO_T}$ac_cv_type_long_long" >&6 20143 if test $ac_cv_type_long_long = yes; then 20144 : 20145 else 20146 asladdcflags="$asladdcflags -DNO_LONG_LONG" 20147 fi 20148 20149 20150 # Back to whatever language we were in. 20151 20012 20152 ac_ext=c 20013 20153 ac_cpp='$CPP $CPPFLAGS' … … 20065 20205 fi 20066 20206 20067 # End if-then to construct ASLMAKEFLAGS 20207 # End if-then to construct ASLMAKEFLAGS. Announce the result. 20068 20208 20069 20209 { echo "$as_me:$LINENO: Command line flags for (n)make \"$ASLMAKEFLAGS\"." >&5 20070 20210 echo "$as_me: Command line flags for (n)make \"$ASLMAKEFLAGS\"." >&6;} 20071 20211 20072 # Now create appropriate makefile commands. This applies only to non-msvc 20073 # builds. Perhaps convert to a script, following pattern of compile_MS_ASL? 20074 20075 if test x"$AR" = x; then 20076 AR=ar 20077 fi 20078 20079 ASLMAKEFILECMDS="sed -e 's%ar \$\$(ARFLAGS)%$AR \$\$(ARFLAGS)%' makefile.u | sed -e 's%ar ruv%$AR ruv%' " 20080 if test "$EXEEXT" = ".exe"; then 20081 ASLMAKEFILECMDS="$ASLMAKEFILECMDS | sed 's/a.out/a.exe/'" 20082 fi 20083 case $build in 20084 *-cygwin*) 20085 ASLMAKEFILECMDS="$ASLMAKEFILECMDS | sed 's%s/System_details/\`uname -sr\`/%s|System_details|\`uname -sr\`|%'" ;; 20086 esac 20087 ASLMAKEFILECMDS="$ASLMAKEFILECMDS > makefile" 20088 20089 20090 20091 20092 fi 20212 20213 fi 20214 20215 # Set automake conditional and generate the output files. 20093 20216 20094 20217 … … 20103 20226 20104 20227 20105 ac_config_files="$ac_config_files Makefile compile_MS_ASL"20228 ac_config_files="$ac_config_files Makefile compile_MS_ASL compile_Unix_ASL" 20106 20229 20107 20230 … … 20789 20912 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20790 20913 "compile_MS_ASL" ) CONFIG_FILES="$CONFIG_FILES compile_MS_ASL" ;; 20914 "compile_Unix_ASL" ) CONFIG_FILES="$CONFIG_FILES compile_Unix_ASL" ;; 20791 20915 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20792 20916 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 … … 20888 21012 s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t 20889 21013 s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t 21014 s,@sol_cc_compiler@,$sol_cc_compiler,;t t 20890 21015 s,@CC@,$CC,;t t 20891 21016 s,@CFLAGS@,$CFLAGS,;t t … … 20976 21101 s,@AMPLSOLVER_A@,$AMPLSOLVER_A,;t t 20977 21102 s,@ASLMAKEFLAGS@,$ASLMAKEFLAGS,;t t 20978 s,@ASLMAKEFILECMDS@,$ASLMAKEFILECMDS,;t t20979 21103 s,@MSVC_COMPILE_TRUE@,$MSVC_COMPILE_TRUE,;t t 20980 21104 s,@MSVC_COMPILE_FALSE@,$MSVC_COMPILE_FALSE,;t t … … 21522 21646 21523 21647 21524 # Finally, we need to make sure that compile_MS_ASL is executable 21525 chmod a+x compile_MS_ASL 21648 # Finally, we need to make sure that the build scripts are executable 21649 21650 chmod a+x compile_MS_ASL compile_Unix_ASL -
ThirdParty/ASL/trunk/configure.ac
r588 r725 98 98 # NON_STDIO no longer appears in any source file; removed all mention. 99 99 # No_Control87 seems to be specific to DEC Alpha. Try leaving it undefined. 100 # -- lh, 070915 --101 100 102 101 if test -z "$ASLMAKEFLAGS" ; then … … 111 110 esac 112 111 112 # Various feature checks. Force the language to be C while we do this to avoid 113 # issues with C++ (re)declarations. 114 115 AC_LANG_PUSH(C) 116 113 117 # The critical function for NO_RUSAGE is getrusage(). Use a standard test. 114 # -- lh, 070915 --115 118 116 119 AC_MSG_CHECKING([for getrusage]) 117 AC_LANG_PUSH(C)118 120 AC_LINK_IFELSE( 119 121 [AC_LANG_PROGRAM([[]],[[getrusage()]])], … … 121 123 [asladdcflags="$asladdcflags -DNO_RUSAGE" 122 124 AC_MSG_RESULT([no])]) 125 126 # Check for long long; we need to define NO_LONG_LONG if it's not present. ASL 127 # makefile.u and makefile.vc both deal with this, in their own way. 128 # Unfortunately, when trying to build with cl under cygwin, the makefile.vc 129 # solution, comptry.bat, fails. To safely discard comptry.bat, we need to do 130 # this check. It's hardly likely that long long is missing on any modern 131 # system, but it's easy to check. 132 133 AC_CHECK_TYPE([long long],[], 134 [asladdcflags="$asladdcflags -DNO_LONG_LONG"],[]) 135 136 # Back to whatever language we were in. 137 123 138 AC_LANG_POP(C) 124 139 … … 171 186 fi 172 187 173 # End if-then to construct ASLMAKEFLAGS 188 # End if-then to construct ASLMAKEFLAGS. Announce the result. 174 189 175 190 AC_MSG_NOTICE([Command line flags for (n)make \"$ASLMAKEFLAGS\".]) 176 177 # Now create appropriate makefile commands. This applies only to non-msvc 178 # builds. Perhaps convert to a script, following pattern of compile_MS_ASL? 179 180 if test x"$AR" = x; then 181 AR=ar 182 fi 183 184 ASLMAKEFILECMDS="sed -e 's%ar \$\$(ARFLAGS)%$AR \$\$(ARFLAGS)%' makefile.u | sed -e 's%ar ruv%$AR ruv%' " 185 if test "$EXEEXT" = ".exe"; then 186 ASLMAKEFILECMDS="$ASLMAKEFILECMDS | sed 's/a.out/a.exe/'" 187 fi 188 case $build in 189 *-cygwin*) 190 ASLMAKEFILECMDS="$ASLMAKEFILECMDS | sed 's%s/System_details/\`uname -sr\`/%s|System_details|\`uname -sr\`|%'" ;; 191 esac 192 ASLMAKEFILECMDS="$ASLMAKEFILECMDS > makefile" 193 194 AC_ARG_VAR(ASLMAKEFLAGS,[Compilation flags necessary for compiling the AMPL solver library]) 195 AC_SUBST(ASLMAKEFILECMDS) 191 AC_ARG_VAR(ASLMAKEFLAGS, 192 [Compilation flags necessary for compiling the AMPL solver library]) 196 193 197 194 fi 198 195 196 # Set automake conditional and generate the output files. 197 199 198 AM_CONDITIONAL(MSVC_COMPILE, test x$msvc_compile = xyes) 200 199 201 AC_CONFIG_FILES([Makefile compile_MS_ASL ])200 AC_CONFIG_FILES([Makefile compile_MS_ASL compile_Unix_ASL]) 202 201 203 202 AC_COIN_FINALIZE 204 203 205 # Finally, we need to make sure that compile_MS_ASL is executable 206 chmod a+x compile_MS_ASL 204 # Finally, we need to make sure that the build scripts are executable 205 206 chmod a+x compile_MS_ASL compile_Unix_ASL
Note: See TracChangeset
for help on using the changeset viewer.