Changeset 1125


Ignore:
Timestamp:
Aug 22, 2008 1:32:25 PM (11 years ago)
Author:
stefan
Message:

merge changes from bsp branch (https://projects.coin-or.org/BuildTools/log/ThirdParty/Mumps/stable/BSP): improved COIN_HAS_MUMPS script; added files to allow standalone use; apply patch always if on right platform (do not require -patch argument)

Location:
ThirdParty/Mumps/trunk
Files:
4 edited
6 copied

Legend:

Unmodified
Added
Removed
  • ThirdParty/Mumps/trunk

    • Property svn:ignore set to
      MUMPS
  • ThirdParty/Mumps/trunk/Makefile.in

    r902 r1125  
    5252host_triplet = @host@
    5353DIST_COMMON = $(am__configure_deps) \
    54         $(srcdir)/../../BuildTools/Makemain.inc \
    55         $(srcdir)/../../config.guess $(srcdir)/../../config.sub \
    56         $(srcdir)/../../depcomp $(srcdir)/../../install-sh \
    57         $(srcdir)/../../ltmain.sh $(srcdir)/../../missing \
    58         $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
    59         $(top_srcdir)/configure
     54        $(srcdir)/../../BuildTools/Makemain.inc $(srcdir)/Makefile.am \
     55        $(srcdir)/Makefile.in $(top_srcdir)/configure config.guess \
     56        config.sub depcomp install-sh ltmain.sh missing
    6057@HAVE_EXTERNALS_TRUE@am__append_1 = Externals
    6158@HAVE_EXTERNALS_TRUE@am__append_2 = .Externals-stamp
     
    8279libcoinmumps_la_OBJECTS = $(nodist_libcoinmumps_la_OBJECTS)
    8380@SKIPMAKE_FALSE@am_libcoinmumps_la_rpath =
    84 depcomp = $(SHELL) $(top_srcdir)/../../depcomp
     81depcomp = $(SHELL) $(top_srcdir)/depcomp
    8582am__depfiles_maybe = depfiles
    8683PPF77COMPILE = $(F77) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
     
    188185MPIF77 = @MPIF77@
    189186MUMPSDIR = @MUMPSDIR@
     187MUMPSINCDIR = @MUMPSINCDIR@
     188MUMPSLIB = @MUMPSLIB@
    190189MUMPS_INCFLAGS = @MUMPS_INCFLAGS@
    191190MY_DEFS = @MY_DEFS@
     
    581580        $(am__remove_distdir)
    582581        mkdir $(distdir)
    583         $(mkdir_p) $(distdir)/../.. $(distdir)/../../BuildTools
     582        $(mkdir_p) $(distdir)/../../BuildTools
    584583        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    585584        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  • ThirdParty/Mumps/trunk/configure

    r1054 r1125  
    473473#endif"
    474474
    475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS MY_DEFS 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 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS MUMPS_INCFLAGS COIN_HAS_MUMPS_TRUE COIN_HAS_MUMPS_FALSE COIN_BUILD_MUMPS_TRUE COIN_BUILD_MUMPS_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE MUMPSDIR LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
     475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS MY_DEFS 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 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS MUMPSINCDIR MUMPSLIB COIN_HAS_MUMPS_TRUE COIN_HAS_MUMPS_FALSE MUMPS_INCFLAGS COIN_BUILD_MUMPS_TRUE COIN_BUILD_MUMPS_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE MUMPSDIR LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    10891089                          optimize for fast installation [default=yes]
    10901090  --disable-libtool-lock  avoid locking (might break parallel builds)
     1091  --enable-mumps-libcheck use disable-mumps-libcheck to skip the
     1092                          link check at configuration time
    10911093
    10921094Optional Packages:
     
    11001102  --with-tags[=TAGS]
    11011103                          include additional configurations [automatic]
    1102   --with-mumps-dir        specify directory where MUMPS is installed
     1104  --with-mumps-incdir specify the header file directory for library mumps
     1105  --with-mumps-lib specify the flags used to link with the library mumps
    11031106
    11041107Some influential environment variables:
     
    26982701        coin_add_cflags="-pipe"
    26992702        coin_dbg_cflags="-g"
    2700         coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
     2703        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
     2704        case $build in
     2705          *-darwin*)
     2706            ;;
     2707          *)
     2708            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
     2709            ;;
     2710        esac
    27012711        case $enable_doscompile in
    27022712          mingw)
     
    27712781        case "$CC" in
    27722782          icc* | */icc*)
    2773             coin_opt_cflags="-O3 -ip"
     2783            coin_opt_cflags="-O3 -ip -mp1"
    27742784            coin_add_cflags=""
    27752785            coin_dbg_cflags="-g"
     
    31093119     fi ;;
    31103120  *-*-solaris*)
    3111      coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
    3112   *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
     3121     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
     3122  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
    31133123 esac
    31143124
     
    32813291
    32823292# Provide some information about the compiler.
    3283 echo "$as_me:3283:" \
     3293echo "$as_me:3293:" \
    32843294     "checking for Fortran 77 compiler version" >&5
    32853295ac_compiler=`set X $ac_compile; echo $2`
     
    34963506        case $F77 in
    34973507          ifort* | */ifort* | IFORT* | */IFORT* )
    3498             coin_opt_fflags='-O3'
    3499             coin_add_fflags='-fpp -nologo -MT'
    3500             coin_dbg_fflags='-debug'
     3508            coin_opt_fflags='-MT -O3'
     3509            coin_add_fflags='-fpp -nologo'
     3510            coin_dbg_fflags='-MTd -debug'
    35013511          ;;
    35023512          compile_f2c*)
     
    38493859ac_save_FFLAGS=$FFLAGS
    38503860FFLAGS="$FFLAGS $ac_verb"
    3851 (eval echo $as_me:3851: \"$ac_link\") >&5
     3861(eval echo $as_me:3861: \"$ac_link\") >&5
    38523862ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    38533863echo "$ac_f77_v_output" >&5
     
    39273937ac_save_FFLAGS=$FFLAGS
    39283938FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
    3929 (eval echo $as_me:3929: \"$ac_link\") >&5
     3939(eval echo $as_me:3939: \"$ac_link\") >&5
    39303940ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    39313941echo "$ac_f77_v_output" >&5
     
    46364646  case $build in
    46374647  # The following is a fix to define FLIBS for ifort on Windows
     4648  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
     4649  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
     4650  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
    46384651     *-cygwin* | *-mingw*)
    46394652       case "$F77" in
    46404653         ifort* | */ifort* | IFORT* | */IFORT*)
    4641            FLIBS="-link libifcorert.lib $LIBS /NODEFAULTLIB:libc.lib";;
     4654           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
     4655#           if "$coin_debug_compile" = true ; then
     4656#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
     4657#           else
     4658#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
     4659#           fi
     4660           ;;
    46424661         compile_f2c*)
    46434662           FLIBS=`$F77 -FLIBS` ;;
     
    63296348*-*-irix6*)
    63306349  # Find out which ABI we are using.
    6331   echo '#line 6331 "configure"' > conftest.$ac_ext
     6350  echo '#line 6350 "configure"' > conftest.$ac_ext
    63326351  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    63336352  (eval $ac_compile) 2>&5
     
    88068825   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    88078826   -e 's:$: $lt_compiler_flag:'`
    8808    (eval echo "\"\$as_me:8808: $lt_compile\"" >&5)
     8827   (eval echo "\"\$as_me:8827: $lt_compile\"" >&5)
    88098828   (eval "$lt_compile" 2>conftest.err)
    88108829   ac_status=$?
    88118830   cat conftest.err >&5
    8812    echo "$as_me:8812: \$? = $ac_status" >&5
     8831   echo "$as_me:8831: \$? = $ac_status" >&5
    88138832   if (exit $ac_status) && test -s "$ac_outfile"; then
    88148833     # The compiler can only warn and ignore the option if not recognized
     
    90749093   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    90759094   -e 's:$: $lt_compiler_flag:'`
    9076    (eval echo "\"\$as_me:9076: $lt_compile\"" >&5)
     9095   (eval echo "\"\$as_me:9095: $lt_compile\"" >&5)
    90779096   (eval "$lt_compile" 2>conftest.err)
    90789097   ac_status=$?
    90799098   cat conftest.err >&5
    9080    echo "$as_me:9080: \$? = $ac_status" >&5
     9099   echo "$as_me:9099: \$? = $ac_status" >&5
    90819100   if (exit $ac_status) && test -s "$ac_outfile"; then
    90829101     # The compiler can only warn and ignore the option if not recognized
     
    91789197   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    91799198   -e 's:$: $lt_compiler_flag:'`
    9180    (eval echo "\"\$as_me:9180: $lt_compile\"" >&5)
     9199   (eval echo "\"\$as_me:9199: $lt_compile\"" >&5)
    91819200   (eval "$lt_compile" 2>out/conftest.err)
    91829201   ac_status=$?
    91839202   cat out/conftest.err >&5
    9184    echo "$as_me:9184: \$? = $ac_status" >&5
     9203   echo "$as_me:9203: \$? = $ac_status" >&5
    91859204   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    91869205   then
     
    1159511614  lt_status=$lt_dlunknown
    1159611615  cat > conftest.$ac_ext <<EOF
    11597 #line 11597 "configure"
     11616#line 11616 "configure"
    1159811617#include "confdefs.h"
    1159911618
     
    1169511714  lt_status=$lt_dlunknown
    1169611715  cat > conftest.$ac_ext <<EOF
    11697 #line 11697 "configure"
     11716#line 11716 "configure"
    1169811717#include "confdefs.h"
    1169911718
     
    1405514074   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1405614075   -e 's:$: $lt_compiler_flag:'`
    14057    (eval echo "\"\$as_me:14057: $lt_compile\"" >&5)
     14076   (eval echo "\"\$as_me:14076: $lt_compile\"" >&5)
    1405814077   (eval "$lt_compile" 2>conftest.err)
    1405914078   ac_status=$?
    1406014079   cat conftest.err >&5
    14061    echo "$as_me:14061: \$? = $ac_status" >&5
     14080   echo "$as_me:14080: \$? = $ac_status" >&5
    1406214081   if (exit $ac_status) && test -s "$ac_outfile"; then
    1406314082     # The compiler can only warn and ignore the option if not recognized
     
    1415914178   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1416014179   -e 's:$: $lt_compiler_flag:'`
    14161    (eval echo "\"\$as_me:14161: $lt_compile\"" >&5)
     14180   (eval echo "\"\$as_me:14180: $lt_compile\"" >&5)
    1416214181   (eval "$lt_compile" 2>out/conftest.err)
    1416314182   ac_status=$?
    1416414183   cat out/conftest.err >&5
    14165    echo "$as_me:14165: \$? = $ac_status" >&5
     14184   echo "$as_me:14184: \$? = $ac_status" >&5
    1416614185   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1416714186   then
     
    1572915748   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1573015749   -e 's:$: $lt_compiler_flag:'`
    15731    (eval echo "\"\$as_me:15731: $lt_compile\"" >&5)
     15750   (eval echo "\"\$as_me:15750: $lt_compile\"" >&5)
    1573215751   (eval "$lt_compile" 2>conftest.err)
    1573315752   ac_status=$?
    1573415753   cat conftest.err >&5
    15735    echo "$as_me:15735: \$? = $ac_status" >&5
     15754   echo "$as_me:15754: \$? = $ac_status" >&5
    1573615755   if (exit $ac_status) && test -s "$ac_outfile"; then
    1573715756     # The compiler can only warn and ignore the option if not recognized
     
    1583315852   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1583415853   -e 's:$: $lt_compiler_flag:'`
    15835    (eval echo "\"\$as_me:15835: $lt_compile\"" >&5)
     15854   (eval echo "\"\$as_me:15854: $lt_compile\"" >&5)
    1583615855   (eval "$lt_compile" 2>out/conftest.err)
    1583715856   ac_status=$?
    1583815857   cat out/conftest.err >&5
    15839    echo "$as_me:15839: \$? = $ac_status" >&5
     15858   echo "$as_me:15858: \$? = $ac_status" >&5
    1584015859   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1584115860   then
     
    1804018059   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1804118060   -e 's:$: $lt_compiler_flag:'`
    18042    (eval echo "\"\$as_me:18042: $lt_compile\"" >&5)
     18061   (eval echo "\"\$as_me:18061: $lt_compile\"" >&5)
    1804318062   (eval "$lt_compile" 2>conftest.err)
    1804418063   ac_status=$?
    1804518064   cat conftest.err >&5
    18046    echo "$as_me:18046: \$? = $ac_status" >&5
     18065   echo "$as_me:18065: \$? = $ac_status" >&5
    1804718066   if (exit $ac_status) && test -s "$ac_outfile"; then
    1804818067     # The compiler can only warn and ignore the option if not recognized
     
    1830818327   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1830918328   -e 's:$: $lt_compiler_flag:'`
    18310    (eval echo "\"\$as_me:18310: $lt_compile\"" >&5)
     18329   (eval echo "\"\$as_me:18329: $lt_compile\"" >&5)
    1831118330   (eval "$lt_compile" 2>conftest.err)
    1831218331   ac_status=$?
    1831318332   cat conftest.err >&5
    18314    echo "$as_me:18314: \$? = $ac_status" >&5
     18333   echo "$as_me:18333: \$? = $ac_status" >&5
    1831518334   if (exit $ac_status) && test -s "$ac_outfile"; then
    1831618335     # The compiler can only warn and ignore the option if not recognized
     
    1841218431   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1841318432   -e 's:$: $lt_compiler_flag:'`
    18414    (eval echo "\"\$as_me:18414: $lt_compile\"" >&5)
     18433   (eval echo "\"\$as_me:18433: $lt_compile\"" >&5)
    1841518434   (eval "$lt_compile" 2>out/conftest.err)
    1841618435   ac_status=$?
    1841718436   cat out/conftest.err >&5
    18418    echo "$as_me:18418: \$? = $ac_status" >&5
     18437   echo "$as_me:18437: \$? = $ac_status" >&5
    1841918438   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1842018439   then
     
    2132821347MAKEOKFILE=.MakeOk
    2132921348
    21330 
    21331 # Check whether --with-mumps-dir or --without-mumps-dir was given.
    21332 if test "${with_mumps_dir+set}" = set; then
    21333   withval="$with_mumps_dir"
    21334   use_mumps="$withval"
    21335 else
    21336   use_mumps=no
    21337 fi;
    21338 
    21339 if test "$use_mumps" != "no"; then
    21340   if test -d $use_mumps; then :; else
    21341     { { echo "$as_me:$LINENO: error: User provided MUMPS directory $use_mumps does not exist." >&5
    21342 echo "$as_me: error: User provided MUMPS directory $use_mumps does not exist." >&2;}
    21343    { (exit 1); exit 1; }; }
    21344   fi
    21345   mumps_dir=`cd $use_mumps; pwd`
    21346 
    21347   # library extension
    21348   ac_ext=c
     21349#check if user provides a MUMPS library (that works)
     21350ac_ext=c
    2134921351ac_cpp='$CPP $CPPFLAGS'
    2135021352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    2135221354ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2135321355
    21354   save_LIBS="$LIBS"
    21355   LIBS="$LIBS $FLIBS"
    21356   echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
     21356
     21357  echo "$as_me:$LINENO: checking if user provides library for mumps" >&5
     21358echo $ECHO_N "checking if user provides library for mumps... $ECHO_C" >&6
     21359
     21360# Check for header file directory
     21361
     21362
     21363# Check whether --with-mumps-incdir or --without-mumps-incdir was given.
     21364if test "${with_mumps_incdir+set}" = set; then
     21365  withval="$with_mumps_incdir"
     21366  MUMPSINCDIR=`cd $withval; pwd`
     21367fi;
     21368
     21369# Check for library directory
     21370
     21371
     21372# Check whether --with-mumps-lib or --without-mumps-lib was given.
     21373if test "${with_mumps_lib+set}" = set; then
     21374  withval="$with_mumps_lib"
     21375  MUMPSLIB=$withval
     21376fi;
     21377
     21378# Switch to disable library check if requested
     21379
     21380  # Check whether --enable-mumps-libcheck or --disable-mumps-libcheck was given.
     21381if test "${enable_mumps_libcheck+set}" = set; then
     21382  enableval="$enable_mumps_libcheck"
     21383  mumps_libcheck=$enableval
     21384else
     21385  mumps_libcheck=yes
     21386fi;
     21387
     21388# At this point, if we're going to use the library, both LBRYINCDIR and
     21389# LBRYLIB must be defined and not empty.
     21390
     21391  if test x"$MUMPSINCDIR" != x || test x"$MUMPSLIB" != x; then
     21392    if test x"$MUMPSINCDIR" = x || test x"$MUMPSLIB" = x; then
     21393      { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library mumps. Use --with-mumps-incdir of environment variable $MUMPSINCDIR to specify the include directory. Use --with-mumps-lib or environment variable $MUMPSLIB to specify link flags." >&5
     21394echo "$as_me: error: You need to specify both an include directory and link flags to use library mumps. Use --with-mumps-incdir of environment variable $MUMPSINCDIR to specify the include directory. Use --with-mumps-lib or environment variable $MUMPSLIB to specify link flags." >&2;}
     21395   { (exit 1); exit 1; }; }
     21396    fi
     21397    coin_has_mumps=true
     21398    echo "$as_me:$LINENO: result: yes" >&5
     21399echo "${ECHO_T}yes" >&6
     21400  else
     21401    coin_has_mumps=false
     21402    echo "$as_me:$LINENO: result: no" >&5
     21403echo "${ECHO_T}no" >&6
     21404  fi
     21405
     21406# If we have instructions for use, consider header and link checks.
     21407
     21408  if test $coin_has_mumps = true; then
     21409
     21410# If argument 3 (file) is given, check for the file. Typically this will be a
     21411# header file, but that's not assumed.
     21412
     21413    if test -r $MUMPSINCDIR/dmumps_c.h; then
     21414
     21415  :
     21416else
     21417  { { echo "$as_me:$LINENO: error: Cannot find file dmumps_c.h in $MUMPSINCDIR" >&5
     21418echo "$as_me: error: Cannot find file dmumps_c.h in $MUMPSINCDIR" >&2;}
     21419   { (exit 1); exit 1; }; }
     21420  :
     21421fi
     21422
     21423
     21424# Now see if we can link the function. There are arguments for and against
     21425# assuming argument 3 is a header file declaring the function. A correct
     21426# function declaration is the main argument in favour. Having to cope with
     21427# possible dependencies or other oddities are the main arguments against.
     21428# Force the use of C as the best single choice amongst C++, C, and Fortran.
     21429# Obviously, this has limits.
     21430
     21431    if test x"$mumps_libcheck" != xno; then
     21432           coin_save_LIBS="$LIBS"
     21433           LIBS="$MUMPSLIB $ADDLIBS"
     21434           coin_MUMPS_link=no
     21435           ac_ext=c
     21436ac_cpp='$CPP $CPPFLAGS'
     21437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21439ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21440
     21441           for fnm in dmumps_c ; do
     21442             echo "$as_me:$LINENO: checking whether symbol $fnm is available with MUMPS" >&5
     21443echo $ECHO_N "checking whether symbol $fnm is available with MUMPS... $ECHO_C" >&6
     21444             cat >conftest.$ac_ext <<_ACEOF
     21445/* confdefs.h.  */
     21446_ACEOF
     21447cat confdefs.h >>conftest.$ac_ext
     21448cat >>conftest.$ac_ext <<_ACEOF
     21449/* end confdefs.h.  */
     21450
     21451#ifdef F77_DUMMY_MAIN
     21452
     21453#  ifdef __cplusplus
     21454     extern "C"
     21455#  endif
     21456   int F77_DUMMY_MAIN() { return 1; }
     21457
     21458#endif
     21459int
     21460main ()
     21461{
     21462$fnm()
     21463  ;
     21464  return 0;
     21465}
     21466_ACEOF
     21467rm -f conftest.$ac_objext conftest$ac_exeext
     21468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     21469  (eval $ac_link) 2>conftest.er1
     21470  ac_status=$?
     21471  grep -v '^ *+' conftest.er1 >conftest.err
     21472  rm -f conftest.er1
     21473  cat conftest.err >&5
     21474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21475  (exit $ac_status); } &&
     21476         { ac_try='test -z "$ac_c_werror_flag"
     21477                         || test ! -s conftest.err'
     21478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21479  (eval $ac_try) 2>&5
     21480  ac_status=$?
     21481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21482  (exit $ac_status); }; } &&
     21483         { ac_try='test -s conftest$ac_exeext'
     21484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     21485  (eval $ac_try) 2>&5
     21486  ac_status=$?
     21487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     21488  (exit $ac_status); }; }; then
     21489  echo "$as_me:$LINENO: result: yes" >&5
     21490echo "${ECHO_T}yes" >&6
     21491                  coin_MUMPS_link=yes
     21492                  break
     21493else
     21494  echo "$as_me: failed program was:" >&5
     21495sed 's/^/| /' conftest.$ac_ext >&5
     21496
     21497echo "$as_me:$LINENO: result: no" >&5
     21498echo "${ECHO_T}no" >&6
     21499fi
     21500rm -f conftest.err conftest.$ac_objext \
     21501      conftest$ac_exeext conftest.$ac_ext
     21502           done
     21503           ac_ext=c
     21504ac_cpp='$CPP $CPPFLAGS'
     21505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21507ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21508
     21509           if test x"$coin_MUMPS_link" = xyes ; then
     21510             LIBS="$coin_save_LIBS"
     21511           else
     21512             { { echo "$as_me:$LINENO: error: Cannot find symbol(s) dmumps_c with MUMPS" >&5
     21513echo "$as_me: error: Cannot find symbol(s) dmumps_c with MUMPS" >&2;}
     21514   { (exit 1); exit 1; }; }
     21515           fi
     21516         fi
     21517
     21518
     21519# If we make it this far, we've verified the file and linked the function. Add
     21520# the necessary link flags to ADDLIBS and define the preprocessor symbol
     21521# COIN_HAS_LBRY.
     21522
     21523    ADDLIBS="$MUMPSLIB $ADDLIBS"
     21524
     21525cat >>confdefs.h <<\_ACEOF
     21526#define COIN_HAS_MUMPS 1
     21527_ACEOF
     21528
     21529  fi
     21530
     21531# Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
     21532# automake conditional. These actions must occur unconditionally.
     21533
     21534
     21535
     21536
     21537
     21538if test $coin_has_mumps = true; then
     21539  COIN_HAS_MUMPS_TRUE=
     21540  COIN_HAS_MUMPS_FALSE='#'
     21541else
     21542  COIN_HAS_MUMPS_TRUE='#'
     21543  COIN_HAS_MUMPS_FALSE=
     21544fi
     21545
     21546
     21547ac_ext=c
     21548ac_cpp='$CPP $CPPFLAGS'
     21549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21551ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21552
     21553
     21554if test "$coin_has_mumps" = "true"; then  # user provided mumps library
     21555  use_mumps=yes
     21556  coin_has_mumps=yes
     21557
     21558  MUMPS_INCFLAGS="-I\`\$(CYGPATH_W) $MUMPSINCDIR\`"
     21559  ADDLIBS="$MUMPSLIB $ADDLIBS"
     21560
     21561else # no user provided library, so we try to build our own
     21562  use_mumps=BUILD
     21563
     21564  # Check if the MUMPS' ThirdParty project has been configured
     21565  if test "$PACKAGE_NAME" != ThirdPartyMumps; then
     21566    if test -r $coin_mumpsobjdir/.MakeOk; then
     21567      use_mumps=BUILD
     21568      # Mumps needs pthreads
     21569      ac_ext=c
     21570ac_cpp='$CPP $CPPFLAGS'
     21571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     21572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     21573ac_compiler_gnu=$ac_cv_c_compiler_gnu
     21574
     21575      save_LIBS="$LIBS"
     21576      LIBS="$LIBS $FLIBS"
     21577      echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
    2135721578echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
    2135821579if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
     
    2142921650  LIBS="-lpthread $save_LIBS"; ADDLIBS="-lpthread $ADDLIBS"
    2143021651else
    21431   LIBS="$save_LIBS"
    21432 fi
    21433 
    21434   ac_ext=c
    21435 ac_cpp='$CPP $CPPFLAGS'
    21436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21439 
    21440 
    21441   case "$CC" in
    21442     cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    21443          libe=lib ;;
    21444       *) libe=a ;;
    21445   esac
    21446 
    21447   # Check if hearders are there
    21448   if test -r $mumps_dir/include/dmumps_c.h; then
    21449 
    21450   :
    21451 else
    21452   { { echo "$as_me:$LINENO: error: I cannot find headers for MUMPS" >&5
    21453 echo "$as_me: error: I cannot find headers for MUMPS" >&2;}
    21454    { (exit 1); exit 1; }; }
    21455   :
    21456 fi
    21457 
    21458   LIBS="$mumps_dir/lib/libdmumps.$libe $mumps_dir/lib/libpord.$libe $mumps_dir/libseq/libmpiseq.$libe $LIBS"
    21459   ADDLIBS="$mumps_dir/lib/libdmumps.$libe $mumps_dir/lib/libpord.$libe $mumps_dir/libseq/libmpiseq.$libe $ADDLIBS"
    21460   # Check if MUMPS actually works
    21461   ac_ext=c
    21462 ac_cpp='$CPP $CPPFLAGS'
    21463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21466 
    21467   save_LIBS="$LIBS"
    21468   LIBS="$LIBS $FLIBS"
    21469   cat >conftest.$ac_ext <<_ACEOF
    21470 /* confdefs.h.  */
    21471 _ACEOF
    21472 cat confdefs.h >>conftest.$ac_ext
    21473 cat >>conftest.$ac_ext <<_ACEOF
    21474 /* end confdefs.h.  */
    21475 void dmumps_c();
    21476 #ifdef F77_DUMMY_MAIN
    21477 
    21478 #  ifdef __cplusplus
    21479      extern "C"
    21480 #  endif
    21481    int F77_DUMMY_MAIN() { return 1; }
    21482 
    21483 #endif
    21484 int
    21485 main ()
    21486 {
    21487 dmumps_c()
    21488   ;
    21489   return 0;
    21490 }
    21491 _ACEOF
    21492 rm -f conftest.$ac_objext conftest$ac_exeext
    21493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21494   (eval $ac_link) 2>conftest.er1
    21495   ac_status=$?
    21496   grep -v '^ *+' conftest.er1 >conftest.err
    21497   rm -f conftest.er1
    21498   cat conftest.err >&5
    21499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21500   (exit $ac_status); } &&
    21501          { ac_try='test -z "$ac_c_werror_flag"
    21502                          || test ! -s conftest.err'
    21503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21504   (eval $ac_try) 2>&5
    21505   ac_status=$?
    21506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21507   (exit $ac_status); }; } &&
    21508          { ac_try='test -s conftest$ac_exeext'
    21509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21510   (eval $ac_try) 2>&5
    21511   ac_status=$?
    21512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21513   (exit $ac_status); }; }; then
    21514   :
    21515 else
    21516   echo "$as_me: failed program was:" >&5
    21517 sed 's/^/| /' conftest.$ac_ext >&5
    21518 
    21519 { { echo "$as_me:$LINENO: error: User provided MUMPS library doesn't work" >&5
    21520 echo "$as_me: error: User provided MUMPS library doesn't work" >&2;}
    21521    { (exit 1); exit 1; }; }
    21522 fi
    21523 rm -f conftest.err conftest.$ac_objext \
    21524       conftest$ac_exeext conftest.$ac_ext
    21525   LIBS="$save_LIBS"
    21526   ac_ext=c
    21527 ac_cpp='$CPP $CPPFLAGS'
    21528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21531 
    21532   coin_mumpssrcdir="$mumps_dir"
    21533 
    21534 else
    21535   use_mumps=BUILD
    21536 
    21537   # Check if the MUMPS' ThirdParty project has been configured
    21538   if test "$PACKAGE_NAME" != ThirdPartyMumps; then
    21539     if test -r $coin_mumpsobjdir/.MakeOk; then
    21540       use_mumps=BUILD
    21541       # Mumps needs pthreads
     21652  LIBS="save_LIBS"
     21653fi
     21654
    2154221655      ac_ext=c
    2154321656ac_cpp='$CPP $CPPFLAGS'
     
    2154621659ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2154721660
    21548       save_LIBS="$LIBS"
    21549       LIBS="$LIBS $FLIBS"
    21550       echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
    21551 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
    21552 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
    21553   echo $ECHO_N "(cached) $ECHO_C" >&6
    21554 else
    21555   ac_check_lib_save_LIBS=$LIBS
    21556 LIBS="-lpthread  $LIBS"
    21557 cat >conftest.$ac_ext <<_ACEOF
    21558 /* confdefs.h.  */
    21559 _ACEOF
    21560 cat confdefs.h >>conftest.$ac_ext
    21561 cat >>conftest.$ac_ext <<_ACEOF
    21562 /* end confdefs.h.  */
    21563 
    21564 /* Override any gcc2 internal prototype to avoid an error.  */
    21565 #ifdef __cplusplus
    21566 extern "C"
    21567 #endif
    21568 /* We use char because int might match the return type of a gcc2
    21569    builtin and then its argument prototype would still apply.  */
    21570 char pthread_create ();
    21571 #ifdef F77_DUMMY_MAIN
    21572 
    21573 #  ifdef __cplusplus
    21574      extern "C"
    21575 #  endif
    21576    int F77_DUMMY_MAIN() { return 1; }
    21577 
    21578 #endif
    21579 int
    21580 main ()
    21581 {
    21582 pthread_create ();
    21583   ;
    21584   return 0;
    21585 }
    21586 _ACEOF
    21587 rm -f conftest.$ac_objext conftest$ac_exeext
    21588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    21589   (eval $ac_link) 2>conftest.er1
    21590   ac_status=$?
    21591   grep -v '^ *+' conftest.er1 >conftest.err
    21592   rm -f conftest.er1
    21593   cat conftest.err >&5
    21594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21595   (exit $ac_status); } &&
    21596          { ac_try='test -z "$ac_c_werror_flag"
    21597                          || test ! -s conftest.err'
    21598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21599   (eval $ac_try) 2>&5
    21600   ac_status=$?
    21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21602   (exit $ac_status); }; } &&
    21603          { ac_try='test -s conftest$ac_exeext'
    21604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21605   (eval $ac_try) 2>&5
    21606   ac_status=$?
    21607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21608   (exit $ac_status); }; }; then
    21609   ac_cv_lib_pthread_pthread_create=yes
    21610 else
    21611   echo "$as_me: failed program was:" >&5
    21612 sed 's/^/| /' conftest.$ac_ext >&5
    21613 
    21614 ac_cv_lib_pthread_pthread_create=no
    21615 fi
    21616 rm -f conftest.err conftest.$ac_objext \
    21617       conftest$ac_exeext conftest.$ac_ext
    21618 LIBS=$ac_check_lib_save_LIBS
    21619 fi
    21620 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
    21621 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
    21622 if test $ac_cv_lib_pthread_pthread_create = yes; then
    21623   LIBS="-lpthread $save_LIBS"; ADDLIBS="-lpthread $ADDLIBS"
    21624 else
    21625   LIBS="save_LIBS"
    21626 fi
    21627 
    21628       ac_ext=c
    21629 ac_cpp='$CPP $CPPFLAGS'
    21630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    21631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    21632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    21633 
     21661
     21662      MUMPS_INCFLAGS="-I\`\$(CYGPATH_W) $coin_mumpssrcdir/libseq\` -I\`\$(CYGPATH_W) $coin_mumpssrcdir/include\`"
    2163421663    else
    2163521664      use_mumps=
    2163621665    fi
    2163721666  fi
    21638 fi
    21639 
    21640 if test x"$use_mumps" != x; then
    21641 
    21642   # and we need the Fortran runtime libraries if we want to link with C/C++
    21643   coin_need_flibs=yes
    21644 
    21645   MUMPS_INCFLAGS="-I\`\$(CYGPATH_W) $coin_mumpssrcdir/libseq\` -I\`\$(CYGPATH_W) $coin_mumpssrcdir/include\`"
    21646 
    21647 fi
    21648 
     21667
     21668  # if a user provided library is used, then COIN_HAS_USER_LIBRARY takes care of the COIN_HAS_MUMPS conditional and preprocessor symbol
    2164921669
    2165021670
     
    2165721677fi
    2165821678
     21679  if test x"$use_mumps" != x; then
     21680
     21681cat >>confdefs.h <<\_ACEOF
     21682#define COIN_HAS_MUMPS 1
     21683_ACEOF
     21684
     21685    coin_has_mumps=yes
     21686  else
     21687    coin_has_mumps=no
     21688  fi
     21689  echo "$as_me:$LINENO: checking whether MUMPS is available" >&5
     21690echo $ECHO_N "checking whether MUMPS is available... $ECHO_C" >&6
     21691  echo "$as_me:$LINENO: result: $coin_has_mumps" >&5
     21692echo "${ECHO_T}$coin_has_mumps" >&6
     21693fi
     21694
     21695if test x"$use_mumps" != x; then
     21696  # we need the Fortran runtime libraries if we want to link with C/C++
     21697  coin_need_flibs=yes
     21698
     21699
     21700fi
     21701
    2165921702
    2166021703
     
    2166821711
    2166921712
    21670 echo "$as_me:$LINENO: checking whether MUMPS is available" >&5
    21671 echo $ECHO_N "checking whether MUMPS is available... $ECHO_C" >&6
    21672 
    21673 if test x"$use_mumps" = x || test "$use_mumps" = no; then
    21674   coin_has_mumps=no
    21675 else
    21676   coin_has_mumps=yes
    21677 
    21678 cat >>confdefs.h <<\_ACEOF
    21679 #define COIN_HAS_MUMPS 1
    21680 _ACEOF
    21681 
    21682 fi
    21683 echo "$as_me:$LINENO: result: $coin_has_mumps" >&5
    21684 echo "${ECHO_T}$coin_has_mumps" >&6
    2168521713
    2168621714
     
    2198822016Usually this means the macro was only invoked conditionally." >&5
    2198922017echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
     22018Usually this means the macro was only invoked conditionally." >&2;}
     22019   { (exit 1); exit 1; }; }
     22020fi
     22021if test -z "${COIN_HAS_MUMPS_TRUE}" && test -z "${COIN_HAS_MUMPS_FALSE}"; then
     22022  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MUMPS\" was never defined.
     22023Usually this means the macro was only invoked conditionally." >&5
     22024echo "$as_me: error: conditional \"COIN_HAS_MUMPS\" was never defined.
    2199022025Usually this means the macro was only invoked conditionally." >&2;}
    2199122026   { (exit 1); exit 1; }; }
     
    2263722672s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2263822673s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
    22639 s,@MUMPS_INCFLAGS@,$MUMPS_INCFLAGS,;t t
     22674s,@MUMPSINCDIR@,$MUMPSINCDIR,;t t
     22675s,@MUMPSLIB@,$MUMPSLIB,;t t
    2264022676s,@COIN_HAS_MUMPS_TRUE@,$COIN_HAS_MUMPS_TRUE,;t t
    2264122677s,@COIN_HAS_MUMPS_FALSE@,$COIN_HAS_MUMPS_FALSE,;t t
     22678s,@MUMPS_INCFLAGS@,$MUMPS_INCFLAGS,;t t
    2264222679s,@COIN_BUILD_MUMPS_TRUE@,$COIN_BUILD_MUMPS_TRUE,;t t
    2264322680s,@COIN_BUILD_MUMPS_FALSE@,$COIN_BUILD_MUMPS_FALSE,;t t
  • ThirdParty/Mumps/trunk/get.Mumps

    r957 r1125  
    77set -e
    88
    9 if test "$1" = '-patch'; then
    10   uname=`uname`
    11   case "$uname" in
    12     MINGW* | CYGWIN*)
    13       patch=yes
    14       ;;
    15   esac
    16 fi
     9uname=`uname`
     10case "$uname" in
     11  MINGW* | CYGWIN*)
     12    patch=yes
     13    ;;
     14esac
    1715
    1816wgetcmd=wget
Note: See TracChangeset for help on using the changeset viewer.