Changeset 1460


Ignore:
Timestamp:
Dec 31, 2009 2:09:46 PM (10 years ago)
Author:
stefan
Message:

get FLIBS and put into .pc files

Location:
ThirdParty
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Blas/branches/BSPsplit/Makefile.in

    r1446 r1460  
    156156FADDLIBS = @FADDLIBS@
    157157FFLAGS = @FFLAGS@
     158FLIBS = @FLIBS@
    158159HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    159160HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
  • ThirdParty/Blas/branches/BSPsplit/configure

    r1446 r1460  
    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 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 LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR 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 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 LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    38033803
    38043804
     3805# Get the linker flags (FLIBS) that are required for linking against this blas library
     3806ac_ext=f
     3807ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     3808ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3809ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     3810echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
     3811echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
     3812if test "${ac_cv_prog_f77_v+set}" = set; then
     3813  echo $ECHO_N "(cached) $ECHO_C" >&6
     3814else
     3815  cat >conftest.$ac_ext <<_ACEOF
     3816      program main
     3817
     3818      end
     3819_ACEOF
     3820rm -f conftest.$ac_objext
     3821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3822  (eval $ac_compile) 2>conftest.er1
     3823  ac_status=$?
     3824  grep -v '^ *+' conftest.er1 >conftest.err
     3825  rm -f conftest.er1
     3826  cat conftest.err >&5
     3827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3828  (exit $ac_status); } &&
     3829         { ac_try='test -z "$ac_f77_werror_flag"
     3830                         || test ! -s conftest.err'
     3831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3832  (eval $ac_try) 2>&5
     3833  ac_status=$?
     3834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3835  (exit $ac_status); }; } &&
     3836         { ac_try='test -s conftest.$ac_objext'
     3837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3838  (eval $ac_try) 2>&5
     3839  ac_status=$?
     3840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3841  (exit $ac_status); }; }; then
     3842  ac_cv_prog_f77_v=
     3843# Try some options frequently used verbose output
     3844for ac_verb in -v -verbose --verbose -V -\#\#\#; do
     3845  cat >conftest.$ac_ext <<_ACEOF
     3846      program main
     3847
     3848      end
     3849_ACEOF
     3850
     3851# Compile and link our simple test program by passing a flag (argument
     3852# 1 to this macro) to the Fortran compiler in order to get
     3853# "verbose" output that we can then parse for the Fortran linker
     3854# flags.
     3855ac_save_FFLAGS=$FFLAGS
     3856FFLAGS="$FFLAGS $ac_verb"
     3857(eval echo $as_me:3857: \"$ac_link\") >&5
     3858ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
     3859echo "$ac_f77_v_output" >&5
     3860FFLAGS=$ac_save_FFLAGS
     3861
     3862rm -f conftest*
     3863
     3864# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     3865# /foo, /bar, and /baz are search directories for the Fortran linker.
     3866# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
     3867ac_f77_v_output="`echo $ac_f77_v_output |
     3868        grep 'LPATH is:' |
     3869        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
     3870
     3871case $ac_f77_v_output in
     3872  # If we are using xlf then replace all the commas with spaces.
     3873  *xlfentry*)
     3874    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     3875
     3876  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
     3877  # $LIBS confuse us, and the libraries appear later in the output anyway).
     3878  *mGLOB_options_string*)
     3879    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     3880
     3881  # If we are using Cray Fortran then delete quotes.
     3882  # Use "\"" instead of '"' for font-lock-mode.
     3883  # FIXME: a more general fix for quoted arguments with spaces?
     3884  *cft90*)
     3885    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     3886esac
     3887
     3888
     3889  # look for -l* and *.a constructs in the output
     3890  for ac_arg in $ac_f77_v_output; do
     3891     case $ac_arg in
     3892        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
     3893          ac_cv_prog_f77_v=$ac_verb
     3894          break 2 ;;
     3895     esac
     3896  done
     3897done
     3898if test -z "$ac_cv_prog_f77_v"; then
     3899   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
     3900echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
     3901fi
     3902else
     3903  echo "$as_me: failed program was:" >&5
     3904sed 's/^/| /' conftest.$ac_ext >&5
     3905
     3906{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
     3907echo "$as_me: WARNING: compilation failed" >&2;}
     3908fi
     3909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3910
     3911fi
     3912echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
     3913echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
     3914echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
     3915echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
     3916if test "${ac_cv_f77_libs+set}" = set; then
     3917  echo $ECHO_N "(cached) $ECHO_C" >&6
     3918else
     3919  if test "x$FLIBS" != "x"; then
     3920  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
     3921else
     3922
     3923cat >conftest.$ac_ext <<_ACEOF
     3924      program main
     3925
     3926      end
     3927_ACEOF
     3928
     3929# Compile and link our simple test program by passing a flag (argument
     3930# 1 to this macro) to the Fortran compiler in order to get
     3931# "verbose" output that we can then parse for the Fortran linker
     3932# flags.
     3933ac_save_FFLAGS=$FFLAGS
     3934FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
     3935(eval echo $as_me:3935: \"$ac_link\") >&5
     3936ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
     3937echo "$ac_f77_v_output" >&5
     3938FFLAGS=$ac_save_FFLAGS
     3939
     3940rm -f conftest*
     3941
     3942# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     3943# /foo, /bar, and /baz are search directories for the Fortran linker.
     3944# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
     3945ac_f77_v_output="`echo $ac_f77_v_output |
     3946        grep 'LPATH is:' |
     3947        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
     3948
     3949case $ac_f77_v_output in
     3950  # If we are using xlf then replace all the commas with spaces.
     3951  *xlfentry*)
     3952    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     3953
     3954  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
     3955  # $LIBS confuse us, and the libraries appear later in the output anyway).
     3956  *mGLOB_options_string*)
     3957    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     3958
     3959  # If we are using Cray Fortran then delete quotes.
     3960  # Use "\"" instead of '"' for font-lock-mode.
     3961  # FIXME: a more general fix for quoted arguments with spaces?
     3962  *cft90*)
     3963    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     3964esac
     3965
     3966
     3967
     3968ac_cv_f77_libs=
     3969
     3970# Save positional arguments (if any)
     3971ac_save_positional="$@"
     3972
     3973set X $ac_f77_v_output
     3974while test $# != 1; do
     3975  shift
     3976  ac_arg=$1
     3977  case $ac_arg in
     3978        [\\/]*.a | ?:[\\/]*.a)
     3979            ac_exists=false
     3980  for ac_i in $ac_cv_f77_libs; do
     3981    if test x"$ac_arg" = x"$ac_i"; then
     3982      ac_exists=true
     3983      break
     3984    fi
     3985  done
     3986
     3987  if test x"$ac_exists" = xtrue; then
     3988  :
     3989else
     3990  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     3991fi
     3992
     3993          ;;
     3994        -bI:*)
     3995            ac_exists=false
     3996  for ac_i in $ac_cv_f77_libs; do
     3997    if test x"$ac_arg" = x"$ac_i"; then
     3998      ac_exists=true
     3999      break
     4000    fi
     4001  done
     4002
     4003  if test x"$ac_exists" = xtrue; then
     4004  :
     4005else
     4006  if test "$ac_compiler_gnu" = yes; then
     4007  for ac_link_opt in $ac_arg; do
     4008    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     4009  done
     4010else
     4011  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     4012fi
     4013fi
     4014
     4015          ;;
     4016          # Ignore these flags.
     4017        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
     4018          ;;
     4019        -lkernel32)
     4020          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     4021          ;;
     4022        -[LRuY])
     4023          # These flags, when seen by themselves, take an argument.
     4024          # We remove the space between option and argument and re-iterate
     4025          # unless we find an empty arg or a new option (starting with -)
     4026          case $2 in
     4027             "" | -*);;
     4028             *)
     4029                ac_arg="$ac_arg$2"
     4030                shift; shift
     4031                set X $ac_arg "$@"
     4032                ;;
     4033          esac
     4034          ;;
     4035        -YP,*)
     4036          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
     4037              ac_exists=false
     4038  for ac_i in $ac_cv_f77_libs; do
     4039    if test x"$ac_j" = x"$ac_i"; then
     4040      ac_exists=true
     4041      break
     4042    fi
     4043  done
     4044
     4045  if test x"$ac_exists" = xtrue; then
     4046  :
     4047else
     4048  ac_arg="$ac_arg $ac_j"
     4049                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
     4050fi
     4051
     4052          done
     4053          ;;
     4054        -[lLR]*)
     4055            ac_exists=false
     4056  for ac_i in $ac_cv_f77_libs; do
     4057    if test x"$ac_arg" = x"$ac_i"; then
     4058      ac_exists=true
     4059      break
     4060    fi
     4061  done
     4062
     4063  if test x"$ac_exists" = xtrue; then
     4064  :
     4065else
     4066  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     4067fi
     4068
     4069          ;;
     4070          # Ignore everything else.
     4071  esac
     4072done
     4073# restore positional arguments
     4074set X $ac_save_positional; shift
     4075
     4076# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
     4077# then we insist that the "run path" must be an absolute path (i.e. it
     4078# must begin with a "/").
     4079case `(uname -sr) 2>/dev/null` in
     4080   "SunOS 5"*)
     4081      ac_ld_run_path=`echo $ac_f77_v_output |
     4082                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
     4083      test "x$ac_ld_run_path" != x &&
     4084        if test "$ac_compiler_gnu" = yes; then
     4085  for ac_link_opt in $ac_ld_run_path; do
     4086    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     4087  done
     4088else
     4089  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
     4090fi
     4091      ;;
     4092esac
     4093fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
     4094
     4095fi
     4096echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
     4097echo "${ECHO_T}$ac_cv_f77_libs" >&6
     4098FLIBS="$ac_cv_f77_libs"
     4099
     4100
     4101ac_ext=f
     4102ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4103ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4104ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4105
     4106ac_ext=f
     4107ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4108ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4109ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4110
     4111echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
     4112echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
     4113if test "${ac_cv_f77_dummy_main+set}" = set; then
     4114  echo $ECHO_N "(cached) $ECHO_C" >&6
     4115else
     4116  ac_f77_dm_save_LIBS=$LIBS
     4117 LIBS="$LIBS $FLIBS"
     4118 ac_fortran_dm_var=F77_DUMMY_MAIN
     4119 ac_ext=c
     4120ac_cpp='$CPP $CPPFLAGS'
     4121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4123ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4124
     4125 # First, try linking without a dummy main:
     4126 cat >conftest.$ac_ext <<_ACEOF
     4127/* confdefs.h.  */
     4128_ACEOF
     4129cat confdefs.h >>conftest.$ac_ext
     4130cat >>conftest.$ac_ext <<_ACEOF
     4131/* end confdefs.h.  */
     4132
     4133#ifdef F77_DUMMY_MAIN
     4134
     4135#  ifdef __cplusplus
     4136     extern "C"
     4137#  endif
     4138   int F77_DUMMY_MAIN() { return 1; }
     4139
     4140#endif
     4141int
     4142main ()
     4143{
     4144
     4145  ;
     4146  return 0;
     4147}
     4148_ACEOF
     4149rm -f conftest.$ac_objext conftest$ac_exeext
     4150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4151  (eval $ac_link) 2>conftest.er1
     4152  ac_status=$?
     4153  grep -v '^ *+' conftest.er1 >conftest.err
     4154  rm -f conftest.er1
     4155  cat conftest.err >&5
     4156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4157  (exit $ac_status); } &&
     4158         { ac_try='test -z "$ac_c_werror_flag"
     4159                         || test ! -s conftest.err'
     4160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4161  (eval $ac_try) 2>&5
     4162  ac_status=$?
     4163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4164  (exit $ac_status); }; } &&
     4165         { ac_try='test -s conftest$ac_exeext'
     4166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4167  (eval $ac_try) 2>&5
     4168  ac_status=$?
     4169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4170  (exit $ac_status); }; }; then
     4171  ac_cv_fortran_dummy_main=none
     4172else
     4173  echo "$as_me: failed program was:" >&5
     4174sed 's/^/| /' conftest.$ac_ext >&5
     4175
     4176ac_cv_fortran_dummy_main=unknown
     4177fi
     4178rm -f conftest.err conftest.$ac_objext \
     4179      conftest$ac_exeext conftest.$ac_ext
     4180
     4181 if test $ac_cv_fortran_dummy_main = unknown; then
     4182   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
     4183     cat >conftest.$ac_ext <<_ACEOF
     4184/* confdefs.h.  */
     4185_ACEOF
     4186cat confdefs.h >>conftest.$ac_ext
     4187cat >>conftest.$ac_ext <<_ACEOF
     4188/* end confdefs.h.  */
     4189#define $ac_fortran_dm_var $ac_func
     4190#ifdef F77_DUMMY_MAIN
     4191
     4192#  ifdef __cplusplus
     4193     extern "C"
     4194#  endif
     4195   int F77_DUMMY_MAIN() { return 1; }
     4196
     4197#endif
     4198int
     4199main ()
     4200{
     4201
     4202  ;
     4203  return 0;
     4204}
     4205_ACEOF
     4206rm -f conftest.$ac_objext conftest$ac_exeext
     4207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4208  (eval $ac_link) 2>conftest.er1
     4209  ac_status=$?
     4210  grep -v '^ *+' conftest.er1 >conftest.err
     4211  rm -f conftest.er1
     4212  cat conftest.err >&5
     4213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4214  (exit $ac_status); } &&
     4215         { ac_try='test -z "$ac_c_werror_flag"
     4216                         || test ! -s conftest.err'
     4217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4218  (eval $ac_try) 2>&5
     4219  ac_status=$?
     4220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4221  (exit $ac_status); }; } &&
     4222         { ac_try='test -s conftest$ac_exeext'
     4223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4224  (eval $ac_try) 2>&5
     4225  ac_status=$?
     4226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4227  (exit $ac_status); }; }; then
     4228  ac_cv_fortran_dummy_main=$ac_func; break
     4229else
     4230  echo "$as_me: failed program was:" >&5
     4231sed 's/^/| /' conftest.$ac_ext >&5
     4232
     4233fi
     4234rm -f conftest.err conftest.$ac_objext \
     4235      conftest$ac_exeext conftest.$ac_ext
     4236   done
     4237 fi
     4238 ac_ext=f
     4239ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4240ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4241ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4242 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
     4243 rm -f conftest*
     4244 LIBS=$ac_f77_dm_save_LIBS
     4245
     4246fi
     4247echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
     4248echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
     4249F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
     4250if test "$F77_DUMMY_MAIN" != unknown; then
     4251  if test $F77_DUMMY_MAIN != none; then
     4252
     4253cat >>confdefs.h <<_ACEOF
     4254#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
     4255_ACEOF
     4256
     4257  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
     4258
     4259cat >>confdefs.h <<\_ACEOF
     4260#define FC_DUMMY_MAIN_EQ_F77 1
     4261_ACEOF
     4262
     4263  fi
     4264fi
     4265else
     4266  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
     4267See \`config.log' for more details." >&5
     4268echo "$as_me: error: linking to Fortran libraries from C fails
     4269See \`config.log' for more details." >&2;}
     4270   { (exit 1); exit 1; }; }
     4271fi
     4272
     4273
     4274ac_ext=f
     4275ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4276ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4277ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4278
     4279ac_ext=f
     4280ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4281ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4282ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4283echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
     4284echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
     4285if test "${ac_cv_f77_mangling+set}" = set; then
     4286  echo $ECHO_N "(cached) $ECHO_C" >&6
     4287else
     4288  cat >conftest.$ac_ext <<_ACEOF
     4289      subroutine foobar()
     4290      return
     4291      end
     4292      subroutine foo_bar()
     4293      return
     4294      end
     4295_ACEOF
     4296rm -f conftest.$ac_objext
     4297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4298  (eval $ac_compile) 2>conftest.er1
     4299  ac_status=$?
     4300  grep -v '^ *+' conftest.er1 >conftest.err
     4301  rm -f conftest.er1
     4302  cat conftest.err >&5
     4303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4304  (exit $ac_status); } &&
     4305         { ac_try='test -z "$ac_f77_werror_flag"
     4306                         || test ! -s conftest.err'
     4307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4308  (eval $ac_try) 2>&5
     4309  ac_status=$?
     4310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4311  (exit $ac_status); }; } &&
     4312         { ac_try='test -s conftest.$ac_objext'
     4313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4314  (eval $ac_try) 2>&5
     4315  ac_status=$?
     4316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4317  (exit $ac_status); }; }; then
     4318  mv conftest.$ac_objext cfortran_test.$ac_objext
     4319
     4320  ac_save_LIBS=$LIBS
     4321  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
     4322
     4323  ac_ext=c
     4324ac_cpp='$CPP $CPPFLAGS'
     4325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4327ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4328  ac_success=no
     4329  for ac_foobar in foobar FOOBAR; do
     4330    for ac_underscore in "" "_"; do
     4331      ac_func="$ac_foobar$ac_underscore"
     4332      cat >conftest.$ac_ext <<_ACEOF
     4333/* confdefs.h.  */
     4334_ACEOF
     4335cat confdefs.h >>conftest.$ac_ext
     4336cat >>conftest.$ac_ext <<_ACEOF
     4337/* end confdefs.h.  */
     4338
     4339/* Override any gcc2 internal prototype to avoid an error.  */
     4340#ifdef __cplusplus
     4341extern "C"
     4342#endif
     4343/* We use char because int might match the return type of a gcc2
     4344   builtin and then its argument prototype would still apply.  */
     4345char $ac_func ();
     4346#ifdef F77_DUMMY_MAIN
     4347
     4348#  ifdef __cplusplus
     4349     extern "C"
     4350#  endif
     4351   int F77_DUMMY_MAIN() { return 1; }
     4352
     4353#endif
     4354int
     4355main ()
     4356{
     4357$ac_func ();
     4358  ;
     4359  return 0;
     4360}
     4361_ACEOF
     4362rm -f conftest.$ac_objext conftest$ac_exeext
     4363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4364  (eval $ac_link) 2>conftest.er1
     4365  ac_status=$?
     4366  grep -v '^ *+' conftest.er1 >conftest.err
     4367  rm -f conftest.er1
     4368  cat conftest.err >&5
     4369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4370  (exit $ac_status); } &&
     4371         { ac_try='test -z "$ac_c_werror_flag"
     4372                         || test ! -s conftest.err'
     4373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4374  (eval $ac_try) 2>&5
     4375  ac_status=$?
     4376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4377  (exit $ac_status); }; } &&
     4378         { ac_try='test -s conftest$ac_exeext'
     4379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4380  (eval $ac_try) 2>&5
     4381  ac_status=$?
     4382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4383  (exit $ac_status); }; }; then
     4384  ac_success=yes; break 2
     4385else
     4386  echo "$as_me: failed program was:" >&5
     4387sed 's/^/| /' conftest.$ac_ext >&5
     4388
     4389fi
     4390rm -f conftest.err conftest.$ac_objext \
     4391      conftest$ac_exeext conftest.$ac_ext
     4392    done
     4393  done
     4394  ac_ext=f
     4395ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4396ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4397ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4398
     4399  if test "$ac_success" = "yes"; then
     4400     case $ac_foobar in
     4401        foobar)
     4402           ac_case=lower
     4403           ac_foo_bar=foo_bar
     4404           ;;
     4405        FOOBAR)
     4406           ac_case=upper
     4407           ac_foo_bar=FOO_BAR
     4408           ;;
     4409     esac
     4410
     4411     ac_ext=c
     4412ac_cpp='$CPP $CPPFLAGS'
     4413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4415ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4416     ac_success_extra=no
     4417     for ac_extra in "" "_"; do
     4418        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
     4419        cat >conftest.$ac_ext <<_ACEOF
     4420/* confdefs.h.  */
     4421_ACEOF
     4422cat confdefs.h >>conftest.$ac_ext
     4423cat >>conftest.$ac_ext <<_ACEOF
     4424/* end confdefs.h.  */
     4425
     4426/* Override any gcc2 internal prototype to avoid an error.  */
     4427#ifdef __cplusplus
     4428extern "C"
     4429#endif
     4430/* We use char because int might match the return type of a gcc2
     4431   builtin and then its argument prototype would still apply.  */
     4432char $ac_func ();
     4433#ifdef F77_DUMMY_MAIN
     4434
     4435#  ifdef __cplusplus
     4436     extern "C"
     4437#  endif
     4438   int F77_DUMMY_MAIN() { return 1; }
     4439
     4440#endif
     4441int
     4442main ()
     4443{
     4444$ac_func ();
     4445  ;
     4446  return 0;
     4447}
     4448_ACEOF
     4449rm -f conftest.$ac_objext conftest$ac_exeext
     4450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4451  (eval $ac_link) 2>conftest.er1
     4452  ac_status=$?
     4453  grep -v '^ *+' conftest.er1 >conftest.err
     4454  rm -f conftest.er1
     4455  cat conftest.err >&5
     4456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4457  (exit $ac_status); } &&
     4458         { ac_try='test -z "$ac_c_werror_flag"
     4459                         || test ! -s conftest.err'
     4460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4461  (eval $ac_try) 2>&5
     4462  ac_status=$?
     4463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4464  (exit $ac_status); }; } &&
     4465         { ac_try='test -s conftest$ac_exeext'
     4466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4467  (eval $ac_try) 2>&5
     4468  ac_status=$?
     4469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4470  (exit $ac_status); }; }; then
     4471  ac_success_extra=yes; break
     4472else
     4473  echo "$as_me: failed program was:" >&5
     4474sed 's/^/| /' conftest.$ac_ext >&5
     4475
     4476fi
     4477rm -f conftest.err conftest.$ac_objext \
     4478      conftest$ac_exeext conftest.$ac_ext
     4479     done
     4480     ac_ext=f
     4481ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4482ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4483ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4484
     4485     if test "$ac_success_extra" = "yes"; then
     4486        ac_cv_f77_mangling="$ac_case case"
     4487        if test -z "$ac_underscore"; then
     4488           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
     4489        else
     4490           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
     4491        fi
     4492        if test -z "$ac_extra"; then
     4493           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
     4494        else
     4495           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
     4496        fi
     4497      else
     4498        ac_cv_f77_mangling="unknown"
     4499      fi
     4500  else
     4501     ac_cv_f77_mangling="unknown"
     4502  fi
     4503
     4504  LIBS=$ac_save_LIBS
     4505  rm -f cfortran_test* conftest*
     4506else
     4507  echo "$as_me: failed program was:" >&5
     4508sed 's/^/| /' conftest.$ac_ext >&5
     4509
     4510{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
     4511See \`config.log' for more details." >&5
     4512echo "$as_me: error: cannot compile a simple Fortran program
     4513See \`config.log' for more details." >&2;}
     4514   { (exit 1); exit 1; }; }
     4515fi
     4516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4517
     4518fi
     4519echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
     4520echo "${ECHO_T}$ac_cv_f77_mangling" >&6
     4521
     4522ac_ext=f
     4523ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4524ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4525ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4526
     4527
     4528ac_ext=f
     4529ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4530ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4531ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4532
     4533
     4534save_FLIBS="$FLIBS"
     4535
     4536ac_ext=f
     4537ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4538ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4539ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4540
     4541
     4542case $ac_cv_f77_mangling in
     4543  "lower case, no underscore, no extra underscore")
     4544          cat >>confdefs.h <<\_ACEOF
     4545#define F77_FUNC(name,NAME) name
     4546_ACEOF
     4547
     4548          cat >>confdefs.h <<\_ACEOF
     4549#define F77_FUNC_(name,NAME) name
     4550_ACEOF
     4551 ;;
     4552  "lower case, no underscore, extra underscore")
     4553          cat >>confdefs.h <<\_ACEOF
     4554#define F77_FUNC(name,NAME) name
     4555_ACEOF
     4556
     4557          cat >>confdefs.h <<\_ACEOF
     4558#define F77_FUNC_(name,NAME) name ## _
     4559_ACEOF
     4560 ;;
     4561  "lower case, underscore, no extra underscore")
     4562          cat >>confdefs.h <<\_ACEOF
     4563#define F77_FUNC(name,NAME) name ## _
     4564_ACEOF
     4565
     4566          cat >>confdefs.h <<\_ACEOF
     4567#define F77_FUNC_(name,NAME) name ## _
     4568_ACEOF
     4569 ;;
     4570  "lower case, underscore, extra underscore")
     4571          cat >>confdefs.h <<\_ACEOF
     4572#define F77_FUNC(name,NAME) name ## _
     4573_ACEOF
     4574
     4575          cat >>confdefs.h <<\_ACEOF
     4576#define F77_FUNC_(name,NAME) name ## __
     4577_ACEOF
     4578 ;;
     4579  "upper case, no underscore, no extra underscore")
     4580          cat >>confdefs.h <<\_ACEOF
     4581#define F77_FUNC(name,NAME) NAME
     4582_ACEOF
     4583
     4584          cat >>confdefs.h <<\_ACEOF
     4585#define F77_FUNC_(name,NAME) NAME
     4586_ACEOF
     4587 ;;
     4588  "upper case, no underscore, extra underscore")
     4589          cat >>confdefs.h <<\_ACEOF
     4590#define F77_FUNC(name,NAME) NAME
     4591_ACEOF
     4592
     4593          cat >>confdefs.h <<\_ACEOF
     4594#define F77_FUNC_(name,NAME) NAME ## _
     4595_ACEOF
     4596 ;;
     4597  "upper case, underscore, no extra underscore")
     4598          cat >>confdefs.h <<\_ACEOF
     4599#define F77_FUNC(name,NAME) NAME ## _
     4600_ACEOF
     4601
     4602          cat >>confdefs.h <<\_ACEOF
     4603#define F77_FUNC_(name,NAME) NAME ## _
     4604_ACEOF
     4605 ;;
     4606  "upper case, underscore, extra underscore")
     4607          cat >>confdefs.h <<\_ACEOF
     4608#define F77_FUNC(name,NAME) NAME ## _
     4609_ACEOF
     4610
     4611          cat >>confdefs.h <<\_ACEOF
     4612#define F77_FUNC_(name,NAME) NAME ## __
     4613_ACEOF
     4614 ;;
     4615  *)
     4616          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
     4617echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
     4618          ;;
     4619esac
     4620
     4621ac_ext=f
     4622ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4623ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4624ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4625
     4626
     4627if test x"$save_FLIBS" != x; then
     4628  FLIBS="$save_FLIBS"
     4629else
     4630  # This is to correct a missing exclusion in autoconf 2.59
     4631  if test x"$FLIBS" != x; then
     4632    my_flibs=
     4633    for flag in $FLIBS; do
     4634      case $flag in
     4635        -lcrt*.o) ;;
     4636               *) my_flibs="$my_flibs $flag" ;;
     4637      esac
     4638    done
     4639    FLIBS="$my_flibs"
     4640  fi
     4641
     4642  case $build in
     4643  # The following is a fix to define FLIBS for ifort on Windows
     4644  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
     4645  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
     4646  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
     4647     *-cygwin* | *-mingw*)
     4648       case "$F77" in
     4649         ifort* | */ifort* | IFORT* | */IFORT*)
     4650           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
     4651#           if "$coin_debug_compile" = true ; then
     4652#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
     4653#           else
     4654#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
     4655#           fi
     4656           ;;
     4657         compile_f2c*)
     4658           FLIBS=`$F77 -FLIBS` ;;
     4659       esac;;
     4660     *-hp-*)
     4661         FLIBS="$FLIBS -lm";;
     4662     *-ibm-*)
     4663         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
     4664     *-linux-*)
     4665       case "$F77" in
     4666         pgf77* | */pgf77* | pgf90* | */pgf90*)
     4667# ask linker to go through the archives multiple times
     4668# (the Fortran compiler seems to do that automatically...
     4669           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
     4670       esac
     4671  esac
     4672  ac_cv_f77_libs="$FLIBS"
     4673fi
     4674
     4675ac_ext=c
     4676ac_cpp='$CPP $CPPFLAGS'
     4677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4679ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4680
     4681
     4682
     4683
     4684# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
     4685coin_need_flibs=yes
     4686
    38054687# Initialize automake
    38064688{
     
    54366318*-*-irix6*)
    54376319  # Find out which ABI we are using.
    5438   echo '#line 5438 "configure"' > conftest.$ac_ext
     6320  echo '#line 6320 "configure"' > conftest.$ac_ext
    54396321  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    54406322  (eval $ac_compile) 2>&5
     
    55396421/* end confdefs.h.  */
    55406422
     6423#ifdef F77_DUMMY_MAIN
     6424
     6425#  ifdef __cplusplus
     6426     extern "C"
     6427#  endif
     6428   int F77_DUMMY_MAIN() { return 1; }
     6429
     6430#endif
    55416431int
    55426432main ()
     
    58696759#include <float.h>
    58706760
     6761#ifdef F77_DUMMY_MAIN
     6762
     6763#  ifdef __cplusplus
     6764     extern "C"
     6765#  endif
     6766   int F77_DUMMY_MAIN() { return 1; }
     6767
     6768#endif
    58716769int
    58726770main ()
     
    63667264/* end confdefs.h.  */
    63677265
     7266#ifdef F77_DUMMY_MAIN
     7267
     7268#  ifdef __cplusplus
     7269     extern "C"
     7270#  endif
     7271   int F77_DUMMY_MAIN() { return 1; }
     7272
     7273#endif
    63687274int
    63697275main ()
     
    64287334/* end confdefs.h.  */
    64297335
     7336#ifdef F77_DUMMY_MAIN
     7337
     7338#  ifdef __cplusplus
     7339     extern "C"
     7340#  endif
     7341   int F77_DUMMY_MAIN() { return 1; }
     7342
     7343#endif
    64307344int
    64317345main ()
     
    65007414$ac_declaration
    65017415#include <stdlib.h>
     7416#ifdef F77_DUMMY_MAIN
     7417
     7418#  ifdef __cplusplus
     7419     extern "C"
     7420#  endif
     7421   int F77_DUMMY_MAIN() { return 1; }
     7422
     7423#endif
    65027424int
    65037425main ()
     
    65457467/* end confdefs.h.  */
    65467468$ac_declaration
     7469#ifdef F77_DUMMY_MAIN
     7470
     7471#  ifdef __cplusplus
     7472     extern "C"
     7473#  endif
     7474   int F77_DUMMY_MAIN() { return 1; }
     7475
     7476#endif
    65477477int
    65487478main ()
     
    78658795   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    78668796   -e 's:$: $lt_compiler_flag:'`
    7867    (eval echo "\"\$as_me:7867: $lt_compile\"" >&5)
     8797   (eval echo "\"\$as_me:8797: $lt_compile\"" >&5)
    78688798   (eval "$lt_compile" 2>conftest.err)
    78698799   ac_status=$?
    78708800   cat conftest.err >&5
    7871    echo "$as_me:7871: \$? = $ac_status" >&5
     8801   echo "$as_me:8801: \$? = $ac_status" >&5
    78728802   if (exit $ac_status) && test -s "$ac_outfile"; then
    78738803     # The compiler can only warn and ignore the option if not recognized
     
    81339063   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81349064   -e 's:$: $lt_compiler_flag:'`
    8135    (eval echo "\"\$as_me:8135: $lt_compile\"" >&5)
     9065   (eval echo "\"\$as_me:9065: $lt_compile\"" >&5)
    81369066   (eval "$lt_compile" 2>conftest.err)
    81379067   ac_status=$?
    81389068   cat conftest.err >&5
    8139    echo "$as_me:8139: \$? = $ac_status" >&5
     9069   echo "$as_me:9069: \$? = $ac_status" >&5
    81409070   if (exit $ac_status) && test -s "$ac_outfile"; then
    81419071     # The compiler can only warn and ignore the option if not recognized
     
    82379167   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    82389168   -e 's:$: $lt_compiler_flag:'`
    8239    (eval echo "\"\$as_me:8239: $lt_compile\"" >&5)
     9169   (eval echo "\"\$as_me:9169: $lt_compile\"" >&5)
    82409170   (eval "$lt_compile" 2>out/conftest.err)
    82419171   ac_status=$?
    82429172   cat out/conftest.err >&5
    8243    echo "$as_me:8243: \$? = $ac_status" >&5
     9173   echo "$as_me:9173: \$? = $ac_status" >&5
    82449174   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    82459175   then
     
    86969626/* end confdefs.h.  */
    86979627
     9628#ifdef F77_DUMMY_MAIN
     9629
     9630#  ifdef __cplusplus
     9631     extern "C"
     9632#  endif
     9633   int F77_DUMMY_MAIN() { return 1; }
     9634
     9635#endif
    86989636int
    86999637main ()
     
    87579695/* end confdefs.h.  */
    87589696
     9697#ifdef F77_DUMMY_MAIN
     9698
     9699#  ifdef __cplusplus
     9700     extern "C"
     9701#  endif
     9702   int F77_DUMMY_MAIN() { return 1; }
     9703
     9704#endif
    87599705int
    87609706main ()
     
    1002510971   builtin and then its argument prototype would still apply.  */
    1002610972char dlopen ();
     10973#ifdef F77_DUMMY_MAIN
     10974
     10975#  ifdef __cplusplus
     10976     extern "C"
     10977#  endif
     10978   int F77_DUMMY_MAIN() { return 1; }
     10979
     10980#endif
    1002710981int
    1002810982main ()
     
    1012911083#endif
    1013011084
     11085#ifdef F77_DUMMY_MAIN
     11086
     11087#  ifdef __cplusplus
     11088     extern "C"
     11089#  endif
     11090   int F77_DUMMY_MAIN() { return 1; }
     11091
     11092#endif
    1013111093int
    1013211094main ()
     
    1019511157   builtin and then its argument prototype would still apply.  */
    1019611158char shl_load ();
     11159#ifdef F77_DUMMY_MAIN
     11160
     11161#  ifdef __cplusplus
     11162     extern "C"
     11163#  endif
     11164   int F77_DUMMY_MAIN() { return 1; }
     11165
     11166#endif
    1019711167int
    1019811168main ()
     
    1028911259#endif
    1029011260
     11261#ifdef F77_DUMMY_MAIN
     11262
     11263#  ifdef __cplusplus
     11264     extern "C"
     11265#  endif
     11266   int F77_DUMMY_MAIN() { return 1; }
     11267
     11268#endif
    1029111269int
    1029211270main ()
     
    1035511333   builtin and then its argument prototype would still apply.  */
    1035611334char dlopen ();
     11335#ifdef F77_DUMMY_MAIN
     11336
     11337#  ifdef __cplusplus
     11338     extern "C"
     11339#  endif
     11340   int F77_DUMMY_MAIN() { return 1; }
     11341
     11342#endif
    1035711343int
    1035811344main ()
     
    1042211408   builtin and then its argument prototype would still apply.  */
    1042311409char dlopen ();
     11410#ifdef F77_DUMMY_MAIN
     11411
     11412#  ifdef __cplusplus
     11413     extern "C"
     11414#  endif
     11415   int F77_DUMMY_MAIN() { return 1; }
     11416
     11417#endif
    1042411418int
    1042511419main ()
     
    1048911483   builtin and then its argument prototype would still apply.  */
    1049011484char dld_link ();
     11485#ifdef F77_DUMMY_MAIN
     11486
     11487#  ifdef __cplusplus
     11488     extern "C"
     11489#  endif
     11490   int F77_DUMMY_MAIN() { return 1; }
     11491
     11492#endif
    1049111493int
    1049211494main ()
     
    1058211584  lt_status=$lt_dlunknown
    1058311585  cat > conftest.$ac_ext <<EOF
    10584 #line 10584 "configure"
     11586#line 11586 "configure"
    1058511587#include "confdefs.h"
    1058611588
     
    1068211684  lt_status=$lt_dlunknown
    1068311685  cat > conftest.$ac_ext <<EOF
    10684 #line 10684 "configure"
     11686#line 11686 "configure"
    1068511687#include "confdefs.h"
    1068611688
     
    1174812750/* end confdefs.h.  */
    1174912751
     12752#ifdef F77_DUMMY_MAIN
     12753
     12754#  ifdef __cplusplus
     12755     extern "C"
     12756#  endif
     12757   int F77_DUMMY_MAIN() { return 1; }
     12758
     12759#endif
    1175012760int
    1175112761main ()
     
    1181012820/* end confdefs.h.  */
    1181112821
     12822#ifdef F77_DUMMY_MAIN
     12823
     12824#  ifdef __cplusplus
     12825     extern "C"
     12826#  endif
     12827   int F77_DUMMY_MAIN() { return 1; }
     12828
     12829#endif
    1181212830int
    1181312831main ()
     
    1302614044   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1302714045   -e 's:$: $lt_compiler_flag:'`
    13028    (eval echo "\"\$as_me:13028: $lt_compile\"" >&5)
     14046   (eval echo "\"\$as_me:14046: $lt_compile\"" >&5)
    1302914047   (eval "$lt_compile" 2>conftest.err)
    1303014048   ac_status=$?
    1303114049   cat conftest.err >&5
    13032    echo "$as_me:13032: \$? = $ac_status" >&5
     14050   echo "$as_me:14050: \$? = $ac_status" >&5
    1303314051   if (exit $ac_status) && test -s "$ac_outfile"; then
    1303414052     # The compiler can only warn and ignore the option if not recognized
     
    1313014148   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1313114149   -e 's:$: $lt_compiler_flag:'`
    13132    (eval echo "\"\$as_me:13132: $lt_compile\"" >&5)
     14150   (eval echo "\"\$as_me:14150: $lt_compile\"" >&5)
    1313314151   (eval "$lt_compile" 2>out/conftest.err)
    1313414152   ac_status=$?
    1313514153   cat out/conftest.err >&5
    13136    echo "$as_me:13136: \$? = $ac_status" >&5
     14154   echo "$as_me:14154: \$? = $ac_status" >&5
    1313714155   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1313814156   then
     
    1470015718   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1470115719   -e 's:$: $lt_compiler_flag:'`
    14702    (eval echo "\"\$as_me:14702: $lt_compile\"" >&5)
     15720   (eval echo "\"\$as_me:15720: $lt_compile\"" >&5)
    1470315721   (eval "$lt_compile" 2>conftest.err)
    1470415722   ac_status=$?
    1470515723   cat conftest.err >&5
    14706    echo "$as_me:14706: \$? = $ac_status" >&5
     15724   echo "$as_me:15724: \$? = $ac_status" >&5
    1470715725   if (exit $ac_status) && test -s "$ac_outfile"; then
    1470815726     # The compiler can only warn and ignore the option if not recognized
     
    1480415822   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1480515823   -e 's:$: $lt_compiler_flag:'`
    14806    (eval echo "\"\$as_me:14806: $lt_compile\"" >&5)
     15824   (eval echo "\"\$as_me:15824: $lt_compile\"" >&5)
    1480715825   (eval "$lt_compile" 2>out/conftest.err)
    1480815826   ac_status=$?
    1480915827   cat out/conftest.err >&5
    14810    echo "$as_me:14810: \$? = $ac_status" >&5
     15828   echo "$as_me:15828: \$? = $ac_status" >&5
    1481115829   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1481215830   then
     
    1701118029   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1701218030   -e 's:$: $lt_compiler_flag:'`
    17013    (eval echo "\"\$as_me:17013: $lt_compile\"" >&5)
     18031   (eval echo "\"\$as_me:18031: $lt_compile\"" >&5)
    1701418032   (eval "$lt_compile" 2>conftest.err)
    1701518033   ac_status=$?
    1701618034   cat conftest.err >&5
    17017    echo "$as_me:17017: \$? = $ac_status" >&5
     18035   echo "$as_me:18035: \$? = $ac_status" >&5
    1701818036   if (exit $ac_status) && test -s "$ac_outfile"; then
    1701918037     # The compiler can only warn and ignore the option if not recognized
     
    1727918297   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1728018298   -e 's:$: $lt_compiler_flag:'`
    17281    (eval echo "\"\$as_me:17281: $lt_compile\"" >&5)
     18299   (eval echo "\"\$as_me:18299: $lt_compile\"" >&5)
    1728218300   (eval "$lt_compile" 2>conftest.err)
    1728318301   ac_status=$?
    1728418302   cat conftest.err >&5
    17285    echo "$as_me:17285: \$? = $ac_status" >&5
     18303   echo "$as_me:18303: \$? = $ac_status" >&5
    1728618304   if (exit $ac_status) && test -s "$ac_outfile"; then
    1728718305     # The compiler can only warn and ignore the option if not recognized
     
    1738318401   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1738418402   -e 's:$: $lt_compiler_flag:'`
    17385    (eval echo "\"\$as_me:17385: $lt_compile\"" >&5)
     18403   (eval echo "\"\$as_me:18403: $lt_compile\"" >&5)
    1738618404   (eval "$lt_compile" 2>out/conftest.err)
    1738718405   ac_status=$?
    1738818406   cat out/conftest.err >&5
    17389    echo "$as_me:17389: \$? = $ac_status" >&5
     18407   echo "$as_me:18407: \$? = $ac_status" >&5
    1739018408   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1739118409   then
     
    1784218860/* end confdefs.h.  */
    1784318861
     18862#ifdef F77_DUMMY_MAIN
     18863
     18864#  ifdef __cplusplus
     18865     extern "C"
     18866#  endif
     18867   int F77_DUMMY_MAIN() { return 1; }
     18868
     18869#endif
    1784418870int
    1784518871main ()
     
    1790318929/* end confdefs.h.  */
    1790418930
     18931#ifdef F77_DUMMY_MAIN
     18932
     18933#  ifdef __cplusplus
     18934     extern "C"
     18935#  endif
     18936   int F77_DUMMY_MAIN() { return 1; }
     18937
     18938#endif
    1790518939int
    1790618940main ()
     
    2107522109s,@ac_ct_F77@,$ac_ct_F77,;t t
    2107622110s,@MPIF77@,$MPIF77,;t t
     22111s,@FLIBS@,$FLIBS,;t t
    2107722112s,@EGREP@,$EGREP,;t t
    2107822113s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  • ThirdParty/Blas/branches/BSPsplit/configure.ac

    r1446 r1460  
    5050AC_COIN_PROG_F77
    5151
     52# Get the linker flags (FLIBS) that are required for linking against this blas library
     53AC_COIN_F77_WRAPPERS
     54
     55# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
     56coin_need_flibs=yes
     57
    5258# Initialize automake
    5359AC_COIN_INIT_AUTO_TOOLS
  • ThirdParty/FilterSQP/branches/BSPsplit/Makefile.in

    r1454 r1460  
    153153FADDLIBS = @FADDLIBS@
    154154FFLAGS = @FFLAGS@
     155FLIBS = @FLIBS@
    155156HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    156157HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
  • ThirdParty/FilterSQP/branches/BSPsplit/configure

    r1454 r1460  
    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 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 LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR 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 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 LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    38033803
    38043804
     3805# Get the linker flags (FLIBS) that are required for linking against this blas library
     3806ac_ext=f
     3807ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     3808ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3809ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     3810echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
     3811echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
     3812if test "${ac_cv_prog_f77_v+set}" = set; then
     3813  echo $ECHO_N "(cached) $ECHO_C" >&6
     3814else
     3815  cat >conftest.$ac_ext <<_ACEOF
     3816      program main
     3817
     3818      end
     3819_ACEOF
     3820rm -f conftest.$ac_objext
     3821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3822  (eval $ac_compile) 2>conftest.er1
     3823  ac_status=$?
     3824  grep -v '^ *+' conftest.er1 >conftest.err
     3825  rm -f conftest.er1
     3826  cat conftest.err >&5
     3827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3828  (exit $ac_status); } &&
     3829         { ac_try='test -z "$ac_f77_werror_flag"
     3830                         || test ! -s conftest.err'
     3831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3832  (eval $ac_try) 2>&5
     3833  ac_status=$?
     3834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3835  (exit $ac_status); }; } &&
     3836         { ac_try='test -s conftest.$ac_objext'
     3837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3838  (eval $ac_try) 2>&5
     3839  ac_status=$?
     3840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3841  (exit $ac_status); }; }; then
     3842  ac_cv_prog_f77_v=
     3843# Try some options frequently used verbose output
     3844for ac_verb in -v -verbose --verbose -V -\#\#\#; do
     3845  cat >conftest.$ac_ext <<_ACEOF
     3846      program main
     3847
     3848      end
     3849_ACEOF
     3850
     3851# Compile and link our simple test program by passing a flag (argument
     3852# 1 to this macro) to the Fortran compiler in order to get
     3853# "verbose" output that we can then parse for the Fortran linker
     3854# flags.
     3855ac_save_FFLAGS=$FFLAGS
     3856FFLAGS="$FFLAGS $ac_verb"
     3857(eval echo $as_me:3857: \"$ac_link\") >&5
     3858ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
     3859echo "$ac_f77_v_output" >&5
     3860FFLAGS=$ac_save_FFLAGS
     3861
     3862rm -f conftest*
     3863
     3864# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     3865# /foo, /bar, and /baz are search directories for the Fortran linker.
     3866# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
     3867ac_f77_v_output="`echo $ac_f77_v_output |
     3868        grep 'LPATH is:' |
     3869        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
     3870
     3871case $ac_f77_v_output in
     3872  # If we are using xlf then replace all the commas with spaces.
     3873  *xlfentry*)
     3874    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     3875
     3876  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
     3877  # $LIBS confuse us, and the libraries appear later in the output anyway).
     3878  *mGLOB_options_string*)
     3879    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     3880
     3881  # If we are using Cray Fortran then delete quotes.
     3882  # Use "\"" instead of '"' for font-lock-mode.
     3883  # FIXME: a more general fix for quoted arguments with spaces?
     3884  *cft90*)
     3885    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     3886esac
     3887
     3888
     3889  # look for -l* and *.a constructs in the output
     3890  for ac_arg in $ac_f77_v_output; do
     3891     case $ac_arg in
     3892        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
     3893          ac_cv_prog_f77_v=$ac_verb
     3894          break 2 ;;
     3895     esac
     3896  done
     3897done
     3898if test -z "$ac_cv_prog_f77_v"; then
     3899   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
     3900echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
     3901fi
     3902else
     3903  echo "$as_me: failed program was:" >&5
     3904sed 's/^/| /' conftest.$ac_ext >&5
     3905
     3906{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
     3907echo "$as_me: WARNING: compilation failed" >&2;}
     3908fi
     3909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3910
     3911fi
     3912echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
     3913echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
     3914echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
     3915echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
     3916if test "${ac_cv_f77_libs+set}" = set; then
     3917  echo $ECHO_N "(cached) $ECHO_C" >&6
     3918else
     3919  if test "x$FLIBS" != "x"; then
     3920  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
     3921else
     3922
     3923cat >conftest.$ac_ext <<_ACEOF
     3924      program main
     3925
     3926      end
     3927_ACEOF
     3928
     3929# Compile and link our simple test program by passing a flag (argument
     3930# 1 to this macro) to the Fortran compiler in order to get
     3931# "verbose" output that we can then parse for the Fortran linker
     3932# flags.
     3933ac_save_FFLAGS=$FFLAGS
     3934FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
     3935(eval echo $as_me:3935: \"$ac_link\") >&5
     3936ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
     3937echo "$ac_f77_v_output" >&5
     3938FFLAGS=$ac_save_FFLAGS
     3939
     3940rm -f conftest*
     3941
     3942# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     3943# /foo, /bar, and /baz are search directories for the Fortran linker.
     3944# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
     3945ac_f77_v_output="`echo $ac_f77_v_output |
     3946        grep 'LPATH is:' |
     3947        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
     3948
     3949case $ac_f77_v_output in
     3950  # If we are using xlf then replace all the commas with spaces.
     3951  *xlfentry*)
     3952    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     3953
     3954  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
     3955  # $LIBS confuse us, and the libraries appear later in the output anyway).
     3956  *mGLOB_options_string*)
     3957    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     3958
     3959  # If we are using Cray Fortran then delete quotes.
     3960  # Use "\"" instead of '"' for font-lock-mode.
     3961  # FIXME: a more general fix for quoted arguments with spaces?
     3962  *cft90*)
     3963    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     3964esac
     3965
     3966
     3967
     3968ac_cv_f77_libs=
     3969
     3970# Save positional arguments (if any)
     3971ac_save_positional="$@"
     3972
     3973set X $ac_f77_v_output
     3974while test $# != 1; do
     3975  shift
     3976  ac_arg=$1
     3977  case $ac_arg in
     3978        [\\/]*.a | ?:[\\/]*.a)
     3979            ac_exists=false
     3980  for ac_i in $ac_cv_f77_libs; do
     3981    if test x"$ac_arg" = x"$ac_i"; then
     3982      ac_exists=true
     3983      break
     3984    fi
     3985  done
     3986
     3987  if test x"$ac_exists" = xtrue; then
     3988  :
     3989else
     3990  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     3991fi
     3992
     3993          ;;
     3994        -bI:*)
     3995            ac_exists=false
     3996  for ac_i in $ac_cv_f77_libs; do
     3997    if test x"$ac_arg" = x"$ac_i"; then
     3998      ac_exists=true
     3999      break
     4000    fi
     4001  done
     4002
     4003  if test x"$ac_exists" = xtrue; then
     4004  :
     4005else
     4006  if test "$ac_compiler_gnu" = yes; then
     4007  for ac_link_opt in $ac_arg; do
     4008    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     4009  done
     4010else
     4011  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     4012fi
     4013fi
     4014
     4015          ;;
     4016          # Ignore these flags.
     4017        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
     4018          ;;
     4019        -lkernel32)
     4020          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     4021          ;;
     4022        -[LRuY])
     4023          # These flags, when seen by themselves, take an argument.
     4024          # We remove the space between option and argument and re-iterate
     4025          # unless we find an empty arg or a new option (starting with -)
     4026          case $2 in
     4027             "" | -*);;
     4028             *)
     4029                ac_arg="$ac_arg$2"
     4030                shift; shift
     4031                set X $ac_arg "$@"
     4032                ;;
     4033          esac
     4034          ;;
     4035        -YP,*)
     4036          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
     4037              ac_exists=false
     4038  for ac_i in $ac_cv_f77_libs; do
     4039    if test x"$ac_j" = x"$ac_i"; then
     4040      ac_exists=true
     4041      break
     4042    fi
     4043  done
     4044
     4045  if test x"$ac_exists" = xtrue; then
     4046  :
     4047else
     4048  ac_arg="$ac_arg $ac_j"
     4049                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
     4050fi
     4051
     4052          done
     4053          ;;
     4054        -[lLR]*)
     4055            ac_exists=false
     4056  for ac_i in $ac_cv_f77_libs; do
     4057    if test x"$ac_arg" = x"$ac_i"; then
     4058      ac_exists=true
     4059      break
     4060    fi
     4061  done
     4062
     4063  if test x"$ac_exists" = xtrue; then
     4064  :
     4065else
     4066  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     4067fi
     4068
     4069          ;;
     4070          # Ignore everything else.
     4071  esac
     4072done
     4073# restore positional arguments
     4074set X $ac_save_positional; shift
     4075
     4076# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
     4077# then we insist that the "run path" must be an absolute path (i.e. it
     4078# must begin with a "/").
     4079case `(uname -sr) 2>/dev/null` in
     4080   "SunOS 5"*)
     4081      ac_ld_run_path=`echo $ac_f77_v_output |
     4082                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
     4083      test "x$ac_ld_run_path" != x &&
     4084        if test "$ac_compiler_gnu" = yes; then
     4085  for ac_link_opt in $ac_ld_run_path; do
     4086    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     4087  done
     4088else
     4089  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
     4090fi
     4091      ;;
     4092esac
     4093fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
     4094
     4095fi
     4096echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
     4097echo "${ECHO_T}$ac_cv_f77_libs" >&6
     4098FLIBS="$ac_cv_f77_libs"
     4099
     4100
     4101ac_ext=f
     4102ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4103ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4104ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4105
     4106ac_ext=f
     4107ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4108ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4109ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4110
     4111echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
     4112echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
     4113if test "${ac_cv_f77_dummy_main+set}" = set; then
     4114  echo $ECHO_N "(cached) $ECHO_C" >&6
     4115else
     4116  ac_f77_dm_save_LIBS=$LIBS
     4117 LIBS="$LIBS $FLIBS"
     4118 ac_fortran_dm_var=F77_DUMMY_MAIN
     4119 ac_ext=c
     4120ac_cpp='$CPP $CPPFLAGS'
     4121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4123ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4124
     4125 # First, try linking without a dummy main:
     4126 cat >conftest.$ac_ext <<_ACEOF
     4127/* confdefs.h.  */
     4128_ACEOF
     4129cat confdefs.h >>conftest.$ac_ext
     4130cat >>conftest.$ac_ext <<_ACEOF
     4131/* end confdefs.h.  */
     4132
     4133#ifdef F77_DUMMY_MAIN
     4134
     4135#  ifdef __cplusplus
     4136     extern "C"
     4137#  endif
     4138   int F77_DUMMY_MAIN() { return 1; }
     4139
     4140#endif
     4141int
     4142main ()
     4143{
     4144
     4145  ;
     4146  return 0;
     4147}
     4148_ACEOF
     4149rm -f conftest.$ac_objext conftest$ac_exeext
     4150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4151  (eval $ac_link) 2>conftest.er1
     4152  ac_status=$?
     4153  grep -v '^ *+' conftest.er1 >conftest.err
     4154  rm -f conftest.er1
     4155  cat conftest.err >&5
     4156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4157  (exit $ac_status); } &&
     4158         { ac_try='test -z "$ac_c_werror_flag"
     4159                         || test ! -s conftest.err'
     4160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4161  (eval $ac_try) 2>&5
     4162  ac_status=$?
     4163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4164  (exit $ac_status); }; } &&
     4165         { ac_try='test -s conftest$ac_exeext'
     4166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4167  (eval $ac_try) 2>&5
     4168  ac_status=$?
     4169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4170  (exit $ac_status); }; }; then
     4171  ac_cv_fortran_dummy_main=none
     4172else
     4173  echo "$as_me: failed program was:" >&5
     4174sed 's/^/| /' conftest.$ac_ext >&5
     4175
     4176ac_cv_fortran_dummy_main=unknown
     4177fi
     4178rm -f conftest.err conftest.$ac_objext \
     4179      conftest$ac_exeext conftest.$ac_ext
     4180
     4181 if test $ac_cv_fortran_dummy_main = unknown; then
     4182   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
     4183     cat >conftest.$ac_ext <<_ACEOF
     4184/* confdefs.h.  */
     4185_ACEOF
     4186cat confdefs.h >>conftest.$ac_ext
     4187cat >>conftest.$ac_ext <<_ACEOF
     4188/* end confdefs.h.  */
     4189#define $ac_fortran_dm_var $ac_func
     4190#ifdef F77_DUMMY_MAIN
     4191
     4192#  ifdef __cplusplus
     4193     extern "C"
     4194#  endif
     4195   int F77_DUMMY_MAIN() { return 1; }
     4196
     4197#endif
     4198int
     4199main ()
     4200{
     4201
     4202  ;
     4203  return 0;
     4204}
     4205_ACEOF
     4206rm -f conftest.$ac_objext conftest$ac_exeext
     4207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4208  (eval $ac_link) 2>conftest.er1
     4209  ac_status=$?
     4210  grep -v '^ *+' conftest.er1 >conftest.err
     4211  rm -f conftest.er1
     4212  cat conftest.err >&5
     4213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4214  (exit $ac_status); } &&
     4215         { ac_try='test -z "$ac_c_werror_flag"
     4216                         || test ! -s conftest.err'
     4217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4218  (eval $ac_try) 2>&5
     4219  ac_status=$?
     4220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4221  (exit $ac_status); }; } &&
     4222         { ac_try='test -s conftest$ac_exeext'
     4223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4224  (eval $ac_try) 2>&5
     4225  ac_status=$?
     4226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4227  (exit $ac_status); }; }; then
     4228  ac_cv_fortran_dummy_main=$ac_func; break
     4229else
     4230  echo "$as_me: failed program was:" >&5
     4231sed 's/^/| /' conftest.$ac_ext >&5
     4232
     4233fi
     4234rm -f conftest.err conftest.$ac_objext \
     4235      conftest$ac_exeext conftest.$ac_ext
     4236   done
     4237 fi
     4238 ac_ext=f
     4239ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4240ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4241ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4242 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
     4243 rm -f conftest*
     4244 LIBS=$ac_f77_dm_save_LIBS
     4245
     4246fi
     4247echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
     4248echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
     4249F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
     4250if test "$F77_DUMMY_MAIN" != unknown; then
     4251  if test $F77_DUMMY_MAIN != none; then
     4252
     4253cat >>confdefs.h <<_ACEOF
     4254#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
     4255_ACEOF
     4256
     4257  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
     4258
     4259cat >>confdefs.h <<\_ACEOF
     4260#define FC_DUMMY_MAIN_EQ_F77 1
     4261_ACEOF
     4262
     4263  fi
     4264fi
     4265else
     4266  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
     4267See \`config.log' for more details." >&5
     4268echo "$as_me: error: linking to Fortran libraries from C fails
     4269See \`config.log' for more details." >&2;}
     4270   { (exit 1); exit 1; }; }
     4271fi
     4272
     4273
     4274ac_ext=f
     4275ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4276ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4277ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4278
     4279ac_ext=f
     4280ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4281ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4282ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4283echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
     4284echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
     4285if test "${ac_cv_f77_mangling+set}" = set; then
     4286  echo $ECHO_N "(cached) $ECHO_C" >&6
     4287else
     4288  cat >conftest.$ac_ext <<_ACEOF
     4289      subroutine foobar()
     4290      return
     4291      end
     4292      subroutine foo_bar()
     4293      return
     4294      end
     4295_ACEOF
     4296rm -f conftest.$ac_objext
     4297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4298  (eval $ac_compile) 2>conftest.er1
     4299  ac_status=$?
     4300  grep -v '^ *+' conftest.er1 >conftest.err
     4301  rm -f conftest.er1
     4302  cat conftest.err >&5
     4303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4304  (exit $ac_status); } &&
     4305         { ac_try='test -z "$ac_f77_werror_flag"
     4306                         || test ! -s conftest.err'
     4307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4308  (eval $ac_try) 2>&5
     4309  ac_status=$?
     4310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4311  (exit $ac_status); }; } &&
     4312         { ac_try='test -s conftest.$ac_objext'
     4313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4314  (eval $ac_try) 2>&5
     4315  ac_status=$?
     4316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4317  (exit $ac_status); }; }; then
     4318  mv conftest.$ac_objext cfortran_test.$ac_objext
     4319
     4320  ac_save_LIBS=$LIBS
     4321  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
     4322
     4323  ac_ext=c
     4324ac_cpp='$CPP $CPPFLAGS'
     4325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4327ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4328  ac_success=no
     4329  for ac_foobar in foobar FOOBAR; do
     4330    for ac_underscore in "" "_"; do
     4331      ac_func="$ac_foobar$ac_underscore"
     4332      cat >conftest.$ac_ext <<_ACEOF
     4333/* confdefs.h.  */
     4334_ACEOF
     4335cat confdefs.h >>conftest.$ac_ext
     4336cat >>conftest.$ac_ext <<_ACEOF
     4337/* end confdefs.h.  */
     4338
     4339/* Override any gcc2 internal prototype to avoid an error.  */
     4340#ifdef __cplusplus
     4341extern "C"
     4342#endif
     4343/* We use char because int might match the return type of a gcc2
     4344   builtin and then its argument prototype would still apply.  */
     4345char $ac_func ();
     4346#ifdef F77_DUMMY_MAIN
     4347
     4348#  ifdef __cplusplus
     4349     extern "C"
     4350#  endif
     4351   int F77_DUMMY_MAIN() { return 1; }
     4352
     4353#endif
     4354int
     4355main ()
     4356{
     4357$ac_func ();
     4358  ;
     4359  return 0;
     4360}
     4361_ACEOF
     4362rm -f conftest.$ac_objext conftest$ac_exeext
     4363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4364  (eval $ac_link) 2>conftest.er1
     4365  ac_status=$?
     4366  grep -v '^ *+' conftest.er1 >conftest.err
     4367  rm -f conftest.er1
     4368  cat conftest.err >&5
     4369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4370  (exit $ac_status); } &&
     4371         { ac_try='test -z "$ac_c_werror_flag"
     4372                         || test ! -s conftest.err'
     4373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4374  (eval $ac_try) 2>&5
     4375  ac_status=$?
     4376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4377  (exit $ac_status); }; } &&
     4378         { ac_try='test -s conftest$ac_exeext'
     4379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4380  (eval $ac_try) 2>&5
     4381  ac_status=$?
     4382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4383  (exit $ac_status); }; }; then
     4384  ac_success=yes; break 2
     4385else
     4386  echo "$as_me: failed program was:" >&5
     4387sed 's/^/| /' conftest.$ac_ext >&5
     4388
     4389fi
     4390rm -f conftest.err conftest.$ac_objext \
     4391      conftest$ac_exeext conftest.$ac_ext
     4392    done
     4393  done
     4394  ac_ext=f
     4395ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4396ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4397ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4398
     4399  if test "$ac_success" = "yes"; then
     4400     case $ac_foobar in
     4401        foobar)
     4402           ac_case=lower
     4403           ac_foo_bar=foo_bar
     4404           ;;
     4405        FOOBAR)
     4406           ac_case=upper
     4407           ac_foo_bar=FOO_BAR
     4408           ;;
     4409     esac
     4410
     4411     ac_ext=c
     4412ac_cpp='$CPP $CPPFLAGS'
     4413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4415ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4416     ac_success_extra=no
     4417     for ac_extra in "" "_"; do
     4418        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
     4419        cat >conftest.$ac_ext <<_ACEOF
     4420/* confdefs.h.  */
     4421_ACEOF
     4422cat confdefs.h >>conftest.$ac_ext
     4423cat >>conftest.$ac_ext <<_ACEOF
     4424/* end confdefs.h.  */
     4425
     4426/* Override any gcc2 internal prototype to avoid an error.  */
     4427#ifdef __cplusplus
     4428extern "C"
     4429#endif
     4430/* We use char because int might match the return type of a gcc2
     4431   builtin and then its argument prototype would still apply.  */
     4432char $ac_func ();
     4433#ifdef F77_DUMMY_MAIN
     4434
     4435#  ifdef __cplusplus
     4436     extern "C"
     4437#  endif
     4438   int F77_DUMMY_MAIN() { return 1; }
     4439
     4440#endif
     4441int
     4442main ()
     4443{
     4444$ac_func ();
     4445  ;
     4446  return 0;
     4447}
     4448_ACEOF
     4449rm -f conftest.$ac_objext conftest$ac_exeext
     4450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4451  (eval $ac_link) 2>conftest.er1
     4452  ac_status=$?
     4453  grep -v '^ *+' conftest.er1 >conftest.err
     4454  rm -f conftest.er1
     4455  cat conftest.err >&5
     4456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4457  (exit $ac_status); } &&
     4458         { ac_try='test -z "$ac_c_werror_flag"
     4459                         || test ! -s conftest.err'
     4460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4461  (eval $ac_try) 2>&5
     4462  ac_status=$?
     4463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4464  (exit $ac_status); }; } &&
     4465         { ac_try='test -s conftest$ac_exeext'
     4466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4467  (eval $ac_try) 2>&5
     4468  ac_status=$?
     4469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4470  (exit $ac_status); }; }; then
     4471  ac_success_extra=yes; break
     4472else
     4473  echo "$as_me: failed program was:" >&5
     4474sed 's/^/| /' conftest.$ac_ext >&5
     4475
     4476fi
     4477rm -f conftest.err conftest.$ac_objext \
     4478      conftest$ac_exeext conftest.$ac_ext
     4479     done
     4480     ac_ext=f
     4481ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4482ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4483ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4484
     4485     if test "$ac_success_extra" = "yes"; then
     4486        ac_cv_f77_mangling="$ac_case case"
     4487        if test -z "$ac_underscore"; then
     4488           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
     4489        else
     4490           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
     4491        fi
     4492        if test -z "$ac_extra"; then
     4493           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
     4494        else
     4495           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
     4496        fi
     4497      else
     4498        ac_cv_f77_mangling="unknown"
     4499      fi
     4500  else
     4501     ac_cv_f77_mangling="unknown"
     4502  fi
     4503
     4504  LIBS=$ac_save_LIBS
     4505  rm -f cfortran_test* conftest*
     4506else
     4507  echo "$as_me: failed program was:" >&5
     4508sed 's/^/| /' conftest.$ac_ext >&5
     4509
     4510{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
     4511See \`config.log' for more details." >&5
     4512echo "$as_me: error: cannot compile a simple Fortran program
     4513See \`config.log' for more details." >&2;}
     4514   { (exit 1); exit 1; }; }
     4515fi
     4516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4517
     4518fi
     4519echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
     4520echo "${ECHO_T}$ac_cv_f77_mangling" >&6
     4521
     4522ac_ext=f
     4523ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4524ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4525ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4526
     4527
     4528ac_ext=f
     4529ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4530ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4531ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4532
     4533
     4534save_FLIBS="$FLIBS"
     4535
     4536ac_ext=f
     4537ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4538ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4539ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4540
     4541
     4542case $ac_cv_f77_mangling in
     4543  "lower case, no underscore, no extra underscore")
     4544          cat >>confdefs.h <<\_ACEOF
     4545#define F77_FUNC(name,NAME) name
     4546_ACEOF
     4547
     4548          cat >>confdefs.h <<\_ACEOF
     4549#define F77_FUNC_(name,NAME) name
     4550_ACEOF
     4551 ;;
     4552  "lower case, no underscore, extra underscore")
     4553          cat >>confdefs.h <<\_ACEOF
     4554#define F77_FUNC(name,NAME) name
     4555_ACEOF
     4556
     4557          cat >>confdefs.h <<\_ACEOF
     4558#define F77_FUNC_(name,NAME) name ## _
     4559_ACEOF
     4560 ;;
     4561  "lower case, underscore, no extra underscore")
     4562          cat >>confdefs.h <<\_ACEOF
     4563#define F77_FUNC(name,NAME) name ## _
     4564_ACEOF
     4565
     4566          cat >>confdefs.h <<\_ACEOF
     4567#define F77_FUNC_(name,NAME) name ## _
     4568_ACEOF
     4569 ;;
     4570  "lower case, underscore, extra underscore")
     4571          cat >>confdefs.h <<\_ACEOF
     4572#define F77_FUNC(name,NAME) name ## _
     4573_ACEOF
     4574
     4575          cat >>confdefs.h <<\_ACEOF
     4576#define F77_FUNC_(name,NAME) name ## __
     4577_ACEOF
     4578 ;;
     4579  "upper case, no underscore, no extra underscore")
     4580          cat >>confdefs.h <<\_ACEOF
     4581#define F77_FUNC(name,NAME) NAME
     4582_ACEOF
     4583
     4584          cat >>confdefs.h <<\_ACEOF
     4585#define F77_FUNC_(name,NAME) NAME
     4586_ACEOF
     4587 ;;
     4588  "upper case, no underscore, extra underscore")
     4589          cat >>confdefs.h <<\_ACEOF
     4590#define F77_FUNC(name,NAME) NAME
     4591_ACEOF
     4592
     4593          cat >>confdefs.h <<\_ACEOF
     4594#define F77_FUNC_(name,NAME) NAME ## _
     4595_ACEOF
     4596 ;;
     4597  "upper case, underscore, no extra underscore")
     4598          cat >>confdefs.h <<\_ACEOF
     4599#define F77_FUNC(name,NAME) NAME ## _
     4600_ACEOF
     4601
     4602          cat >>confdefs.h <<\_ACEOF
     4603#define F77_FUNC_(name,NAME) NAME ## _
     4604_ACEOF
     4605 ;;
     4606  "upper case, underscore, extra underscore")
     4607          cat >>confdefs.h <<\_ACEOF
     4608#define F77_FUNC(name,NAME) NAME ## _
     4609_ACEOF
     4610
     4611          cat >>confdefs.h <<\_ACEOF
     4612#define F77_FUNC_(name,NAME) NAME ## __
     4613_ACEOF
     4614 ;;
     4615  *)
     4616          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
     4617echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
     4618          ;;
     4619esac
     4620
     4621ac_ext=f
     4622ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4623ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4624ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4625
     4626
     4627if test x"$save_FLIBS" != x; then
     4628  FLIBS="$save_FLIBS"
     4629else
     4630  # This is to correct a missing exclusion in autoconf 2.59
     4631  if test x"$FLIBS" != x; then
     4632    my_flibs=
     4633    for flag in $FLIBS; do
     4634      case $flag in
     4635        -lcrt*.o) ;;
     4636               *) my_flibs="$my_flibs $flag" ;;
     4637      esac
     4638    done
     4639    FLIBS="$my_flibs"
     4640  fi
     4641
     4642  case $build in
     4643  # The following is a fix to define FLIBS for ifort on Windows
     4644  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
     4645  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
     4646  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
     4647     *-cygwin* | *-mingw*)
     4648       case "$F77" in
     4649         ifort* | */ifort* | IFORT* | */IFORT*)
     4650           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
     4651#           if "$coin_debug_compile" = true ; then
     4652#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
     4653#           else
     4654#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
     4655#           fi
     4656           ;;
     4657         compile_f2c*)
     4658           FLIBS=`$F77 -FLIBS` ;;
     4659       esac;;
     4660     *-hp-*)
     4661         FLIBS="$FLIBS -lm";;
     4662     *-ibm-*)
     4663         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
     4664     *-linux-*)
     4665       case "$F77" in
     4666         pgf77* | */pgf77* | pgf90* | */pgf90*)
     4667# ask linker to go through the archives multiple times
     4668# (the Fortran compiler seems to do that automatically...
     4669           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
     4670       esac
     4671  esac
     4672  ac_cv_f77_libs="$FLIBS"
     4673fi
     4674
     4675ac_ext=c
     4676ac_cpp='$CPP $CPPFLAGS'
     4677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4679ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4680
     4681
     4682
     4683
     4684# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
     4685coin_need_flibs=yes
     4686
    38054687# Initialize automake
    38064688echo "$as_me:$LINENO: checking for egrep" >&5
     
    60916973*-*-irix6*)
    60926974  # Find out which ABI we are using.
    6093   echo '#line 6093 "configure"' > conftest.$ac_ext
     6975  echo '#line 6975 "configure"' > conftest.$ac_ext
    60946976  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    60956977  (eval $ac_compile) 2>&5
     
    61947076/* end confdefs.h.  */
    61957077
     7078#ifdef F77_DUMMY_MAIN
     7079
     7080#  ifdef __cplusplus
     7081     extern "C"
     7082#  endif
     7083   int F77_DUMMY_MAIN() { return 1; }
     7084
     7085#endif
    61967086int
    61977087main ()
     
    65247414#include <float.h>
    65257415
     7416#ifdef F77_DUMMY_MAIN
     7417
     7418#  ifdef __cplusplus
     7419     extern "C"
     7420#  endif
     7421   int F77_DUMMY_MAIN() { return 1; }
     7422
     7423#endif
    65267424int
    65277425main ()
     
    70217919/* end confdefs.h.  */
    70227920
     7921#ifdef F77_DUMMY_MAIN
     7922
     7923#  ifdef __cplusplus
     7924     extern "C"
     7925#  endif
     7926   int F77_DUMMY_MAIN() { return 1; }
     7927
     7928#endif
    70237929int
    70247930main ()
     
    70837989/* end confdefs.h.  */
    70847990
     7991#ifdef F77_DUMMY_MAIN
     7992
     7993#  ifdef __cplusplus
     7994     extern "C"
     7995#  endif
     7996   int F77_DUMMY_MAIN() { return 1; }
     7997
     7998#endif
    70857999int
    70868000main ()
     
    71558069$ac_declaration
    71568070#include <stdlib.h>
     8071#ifdef F77_DUMMY_MAIN
     8072
     8073#  ifdef __cplusplus
     8074     extern "C"
     8075#  endif
     8076   int F77_DUMMY_MAIN() { return 1; }
     8077
     8078#endif
    71578079int
    71588080main ()
     
    72008122/* end confdefs.h.  */
    72018123$ac_declaration
     8124#ifdef F77_DUMMY_MAIN
     8125
     8126#  ifdef __cplusplus
     8127     extern "C"
     8128#  endif
     8129   int F77_DUMMY_MAIN() { return 1; }
     8130
     8131#endif
    72028132int
    72038133main ()
     
    86299559   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    86309560   -e 's:$: $lt_compiler_flag:'`
    8631    (eval echo "\"\$as_me:8631: $lt_compile\"" >&5)
     9561   (eval echo "\"\$as_me:9561: $lt_compile\"" >&5)
    86329562   (eval "$lt_compile" 2>conftest.err)
    86339563   ac_status=$?
    86349564   cat conftest.err >&5
    8635    echo "$as_me:8635: \$? = $ac_status" >&5
     9565   echo "$as_me:9565: \$? = $ac_status" >&5
    86369566   if (exit $ac_status) && test -s "$ac_outfile"; then
    86379567     # The compiler can only warn and ignore the option if not recognized
     
    88979827   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    88989828   -e 's:$: $lt_compiler_flag:'`
    8899    (eval echo "\"\$as_me:8899: $lt_compile\"" >&5)
     9829   (eval echo "\"\$as_me:9829: $lt_compile\"" >&5)
    89009830   (eval "$lt_compile" 2>conftest.err)
    89019831   ac_status=$?
    89029832   cat conftest.err >&5
    8903    echo "$as_me:8903: \$? = $ac_status" >&5
     9833   echo "$as_me:9833: \$? = $ac_status" >&5
    89049834   if (exit $ac_status) && test -s "$ac_outfile"; then
    89059835     # The compiler can only warn and ignore the option if not recognized
     
    90019931   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    90029932   -e 's:$: $lt_compiler_flag:'`
    9003    (eval echo "\"\$as_me:9003: $lt_compile\"" >&5)
     9933   (eval echo "\"\$as_me:9933: $lt_compile\"" >&5)
    90049934   (eval "$lt_compile" 2>out/conftest.err)
    90059935   ac_status=$?
    90069936   cat out/conftest.err >&5
    9007    echo "$as_me:9007: \$? = $ac_status" >&5
     9937   echo "$as_me:9937: \$? = $ac_status" >&5
    90089938   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    90099939   then
     
    946010390/* end confdefs.h.  */
    946110391
     10392#ifdef F77_DUMMY_MAIN
     10393
     10394#  ifdef __cplusplus
     10395     extern "C"
     10396#  endif
     10397   int F77_DUMMY_MAIN() { return 1; }
     10398
     10399#endif
    946210400int
    946310401main ()
     
    952110459/* end confdefs.h.  */
    952210460
     10461#ifdef F77_DUMMY_MAIN
     10462
     10463#  ifdef __cplusplus
     10464     extern "C"
     10465#  endif
     10466   int F77_DUMMY_MAIN() { return 1; }
     10467
     10468#endif
    952310469int
    952410470main ()
     
    1078911735   builtin and then its argument prototype would still apply.  */
    1079011736char dlopen ();
     11737#ifdef F77_DUMMY_MAIN
     11738
     11739#  ifdef __cplusplus
     11740     extern "C"
     11741#  endif
     11742   int F77_DUMMY_MAIN() { return 1; }
     11743
     11744#endif
    1079111745int
    1079211746main ()
     
    1089311847#endif
    1089411848
     11849#ifdef F77_DUMMY_MAIN
     11850
     11851#  ifdef __cplusplus
     11852     extern "C"
     11853#  endif
     11854   int F77_DUMMY_MAIN() { return 1; }
     11855
     11856#endif
    1089511857int
    1089611858main ()
     
    1095911921   builtin and then its argument prototype would still apply.  */
    1096011922char shl_load ();
     11923#ifdef F77_DUMMY_MAIN
     11924
     11925#  ifdef __cplusplus
     11926     extern "C"
     11927#  endif
     11928   int F77_DUMMY_MAIN() { return 1; }
     11929
     11930#endif
    1096111931int
    1096211932main ()
     
    1105312023#endif
    1105412024
     12025#ifdef F77_DUMMY_MAIN
     12026
     12027#  ifdef __cplusplus
     12028     extern "C"
     12029#  endif
     12030   int F77_DUMMY_MAIN() { return 1; }
     12031
     12032#endif
    1105512033int
    1105612034main ()
     
    1111912097   builtin and then its argument prototype would still apply.  */
    1112012098char dlopen ();
     12099#ifdef F77_DUMMY_MAIN
     12100
     12101#  ifdef __cplusplus
     12102     extern "C"
     12103#  endif
     12104   int F77_DUMMY_MAIN() { return 1; }
     12105
     12106#endif
    1112112107int
    1112212108main ()
     
    1118612172   builtin and then its argument prototype would still apply.  */
    1118712173char dlopen ();
     12174#ifdef F77_DUMMY_MAIN
     12175
     12176#  ifdef __cplusplus
     12177     extern "C"
     12178#  endif
     12179   int F77_DUMMY_MAIN() { return 1; }
     12180
     12181#endif
    1118812182int
    1118912183main ()
     
    1125312247   builtin and then its argument prototype would still apply.  */
    1125412248char dld_link ();
     12249#ifdef F77_DUMMY_MAIN
     12250
     12251#  ifdef __cplusplus
     12252     extern "C"
     12253#  endif
     12254   int F77_DUMMY_MAIN() { return 1; }
     12255
     12256#endif
    1125512257int
    1125612258main ()
     
    1134612348  lt_status=$lt_dlunknown
    1134712349  cat > conftest.$ac_ext <<EOF
    11348 #line 11348 "configure"
     12350#line 12350 "configure"
    1134912351#include "confdefs.h"
    1135012352
     
    1144612448  lt_status=$lt_dlunknown
    1144712449  cat > conftest.$ac_ext <<EOF
    11448 #line 11448 "configure"
     12450#line 12450 "configure"
    1144912451#include "confdefs.h"
    1145012452
     
    1251213514/* end confdefs.h.  */
    1251313515
     13516#ifdef F77_DUMMY_MAIN
     13517
     13518#  ifdef __cplusplus
     13519     extern "C"
     13520#  endif
     13521   int F77_DUMMY_MAIN() { return 1; }
     13522
     13523#endif
    1251413524int
    1251513525main ()
     
    1257413584/* end confdefs.h.  */
    1257513585
     13586#ifdef F77_DUMMY_MAIN
     13587
     13588#  ifdef __cplusplus
     13589     extern "C"
     13590#  endif
     13591   int F77_DUMMY_MAIN() { return 1; }
     13592
     13593#endif
    1257613594int
    1257713595main ()
     
    1379014808   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1379114809   -e 's:$: $lt_compiler_flag:'`
    13792    (eval echo "\"\$as_me:13792: $lt_compile\"" >&5)
     14810   (eval echo "\"\$as_me:14810: $lt_compile\"" >&5)
    1379314811   (eval "$lt_compile" 2>conftest.err)
    1379414812   ac_status=$?
    1379514813   cat conftest.err >&5
    13796    echo "$as_me:13796: \$? = $ac_status" >&5
     14814   echo "$as_me:14814: \$? = $ac_status" >&5
    1379714815   if (exit $ac_status) && test -s "$ac_outfile"; then
    1379814816     # The compiler can only warn and ignore the option if not recognized
     
    1389414912   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1389514913   -e 's:$: $lt_compiler_flag:'`
    13896    (eval echo "\"\$as_me:13896: $lt_compile\"" >&5)
     14914   (eval echo "\"\$as_me:14914: $lt_compile\"" >&5)
    1389714915   (eval "$lt_compile" 2>out/conftest.err)
    1389814916   ac_status=$?
    1389914917   cat out/conftest.err >&5
    13900    echo "$as_me:13900: \$? = $ac_status" >&5
     14918   echo "$as_me:14918: \$? = $ac_status" >&5
    1390114919   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1390214920   then
     
    1546416482   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1546516483   -e 's:$: $lt_compiler_flag:'`
    15466    (eval echo "\"\$as_me:15466: $lt_compile\"" >&5)
     16484   (eval echo "\"\$as_me:16484: $lt_compile\"" >&5)
    1546716485   (eval "$lt_compile" 2>conftest.err)
    1546816486   ac_status=$?
    1546916487   cat conftest.err >&5
    15470    echo "$as_me:15470: \$? = $ac_status" >&5
     16488   echo "$as_me:16488: \$? = $ac_status" >&5
    1547116489   if (exit $ac_status) && test -s "$ac_outfile"; then
    1547216490     # The compiler can only warn and ignore the option if not recognized
     
    1556816586   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1556916587   -e 's:$: $lt_compiler_flag:'`
    15570    (eval echo "\"\$as_me:15570: $lt_compile\"" >&5)
     16588   (eval echo "\"\$as_me:16588: $lt_compile\"" >&5)
    1557116589   (eval "$lt_compile" 2>out/conftest.err)
    1557216590   ac_status=$?
    1557316591   cat out/conftest.err >&5
    15574    echo "$as_me:15574: \$? = $ac_status" >&5
     16592   echo "$as_me:16592: \$? = $ac_status" >&5
    1557516593   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1557616594   then
     
    1777518793   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1777618794   -e 's:$: $lt_compiler_flag:'`
    17777    (eval echo "\"\$as_me:17777: $lt_compile\"" >&5)
     18795   (eval echo "\"\$as_me:18795: $lt_compile\"" >&5)
    1777818796   (eval "$lt_compile" 2>conftest.err)
    1777918797   ac_status=$?
    1778018798   cat conftest.err >&5
    17781    echo "$as_me:17781: \$? = $ac_status" >&5
     18799   echo "$as_me:18799: \$? = $ac_status" >&5
    1778218800   if (exit $ac_status) && test -s "$ac_outfile"; then
    1778318801     # The compiler can only warn and ignore the option if not recognized
     
    1804319061   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1804419062   -e 's:$: $lt_compiler_flag:'`
    18045    (eval echo "\"\$as_me:18045: $lt_compile\"" >&5)
     19063   (eval echo "\"\$as_me:19063: $lt_compile\"" >&5)
    1804619064   (eval "$lt_compile" 2>conftest.err)
    1804719065   ac_status=$?
    1804819066   cat conftest.err >&5
    18049    echo "$as_me:18049: \$? = $ac_status" >&5
     19067   echo "$as_me:19067: \$? = $ac_status" >&5
    1805019068   if (exit $ac_status) && test -s "$ac_outfile"; then
    1805119069     # The compiler can only warn and ignore the option if not recognized
     
    1814719165   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1814819166   -e 's:$: $lt_compiler_flag:'`
    18149    (eval echo "\"\$as_me:18149: $lt_compile\"" >&5)
     19167   (eval echo "\"\$as_me:19167: $lt_compile\"" >&5)
    1815019168   (eval "$lt_compile" 2>out/conftest.err)
    1815119169   ac_status=$?
    1815219170   cat out/conftest.err >&5
    18153    echo "$as_me:18153: \$? = $ac_status" >&5
     19171   echo "$as_me:19171: \$? = $ac_status" >&5
    1815419172   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1815519173   then
     
    1860619624/* end confdefs.h.  */
    1860719625
     19626#ifdef F77_DUMMY_MAIN
     19627
     19628#  ifdef __cplusplus
     19629     extern "C"
     19630#  endif
     19631   int F77_DUMMY_MAIN() { return 1; }
     19632
     19633#endif
    1860819634int
    1860919635main ()
     
    1866719693/* end confdefs.h.  */
    1866819694
     19695#ifdef F77_DUMMY_MAIN
     19696
     19697#  ifdef __cplusplus
     19698     extern "C"
     19699#  endif
     19700   int F77_DUMMY_MAIN() { return 1; }
     19701
     19702#endif
    1866919703int
    1867019704main ()
     
    2186722901s,@ac_ct_F77@,$ac_ct_F77,;t t
    2186822902s,@MPIF77@,$MPIF77,;t t
     22903s,@FLIBS@,$FLIBS,;t t
    2186922904s,@EGREP@,$EGREP,;t t
    2187022905s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  • ThirdParty/FilterSQP/branches/BSPsplit/configure.ac

    r1454 r1460  
    4646AC_COIN_PROG_F77
    4747
     48# Get the linker flags (FLIBS) that are required for linking against this blas library
     49AC_COIN_F77_WRAPPERS
     50
     51# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
     52coin_need_flibs=yes
     53
    4854# Initialize automake
    4955AC_COIN_INIT_AUTOMAKE
  • ThirdParty/HSL/branches/BSPsplit/Makefile.in

    r1454 r1460  
    189189FADDLIBS = @FADDLIBS@
    190190FFLAGS = @FFLAGS@
     191FLIBS = @FLIBS@
    191192HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    192193HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
  • ThirdParty/HSL/branches/BSPsplit/configure

    r1454 r1460  
    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 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 COIN_HAS_MA27_TRUE COIN_HAS_MA27_FALSE COIN_HAS_MC19_TRUE COIN_HAS_MC19_FALSE COIN_HAS_MA57_TRUE COIN_HAS_MA57_FALSE COIN_HAS_MA28_TRUE COIN_HAS_MA28_FALSE HAVE_MXXX_CFLAGS F77_SHARED_CMD F77_DLL_LINKFLAGS HSL_SHARED_LIB EXPORT_SYMBOLS DEFFILE INSTALL_LOADABLE_LIBRARY_TRUE INSTALL_LOADABLE_LIBRARY_FALSE NEED_DEFFILE_TRUE NEED_DEFFILE_FALSE EXTRA_SHARED_COMMAND_TRUE EXTRA_SHARED_COMMAND_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR 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 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 COIN_HAS_MA27_TRUE COIN_HAS_MA27_FALSE COIN_HAS_MC19_TRUE COIN_HAS_MC19_FALSE COIN_HAS_MA57_TRUE COIN_HAS_MA57_FALSE COIN_HAS_MA28_TRUE COIN_HAS_MA28_FALSE HAVE_MXXX_CFLAGS F77_SHARED_CMD F77_DLL_LINKFLAGS HSL_SHARED_LIB EXPORT_SYMBOLS DEFFILE INSTALL_LOADABLE_LIBRARY_TRUE INSTALL_LOADABLE_LIBRARY_FALSE NEED_DEFFILE_TRUE NEED_DEFFILE_FALSE EXTRA_SHARED_COMMAND_TRUE EXTRA_SHARED_COMMAND_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    38163816
    38173817
     3818# Get the linker flags (FLIBS) that are required for linking against this blas library
     3819ac_ext=f
     3820ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     3821ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3822ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     3823echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
     3824echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
     3825if test "${ac_cv_prog_f77_v+set}" = set; then
     3826  echo $ECHO_N "(cached) $ECHO_C" >&6
     3827else
     3828  cat >conftest.$ac_ext <<_ACEOF
     3829      program main
     3830
     3831      end
     3832_ACEOF
     3833rm -f conftest.$ac_objext
     3834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3835  (eval $ac_compile) 2>conftest.er1
     3836  ac_status=$?
     3837  grep -v '^ *+' conftest.er1 >conftest.err
     3838  rm -f conftest.er1
     3839  cat conftest.err >&5
     3840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3841  (exit $ac_status); } &&
     3842         { ac_try='test -z "$ac_f77_werror_flag"
     3843                         || test ! -s conftest.err'
     3844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3845  (eval $ac_try) 2>&5
     3846  ac_status=$?
     3847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3848  (exit $ac_status); }; } &&
     3849         { ac_try='test -s conftest.$ac_objext'
     3850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3851  (eval $ac_try) 2>&5
     3852  ac_status=$?
     3853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3854  (exit $ac_status); }; }; then
     3855  ac_cv_prog_f77_v=
     3856# Try some options frequently used verbose output
     3857for ac_verb in -v -verbose --verbose -V -\#\#\#; do
     3858  cat >conftest.$ac_ext <<_ACEOF
     3859      program main
     3860
     3861      end
     3862_ACEOF
     3863
     3864# Compile and link our simple test program by passing a flag (argument
     3865# 1 to this macro) to the Fortran compiler in order to get
     3866# "verbose" output that we can then parse for the Fortran linker
     3867# flags.
     3868ac_save_FFLAGS=$FFLAGS
     3869FFLAGS="$FFLAGS $ac_verb"
     3870(eval echo $as_me:3870: \"$ac_link\") >&5
     3871ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
     3872echo "$ac_f77_v_output" >&5
     3873FFLAGS=$ac_save_FFLAGS
     3874
     3875rm -f conftest*
     3876
     3877# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     3878# /foo, /bar, and /baz are search directories for the Fortran linker.
     3879# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
     3880ac_f77_v_output="`echo $ac_f77_v_output |
     3881        grep 'LPATH is:' |
     3882        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
     3883
     3884case $ac_f77_v_output in
     3885  # If we are using xlf then replace all the commas with spaces.
     3886  *xlfentry*)
     3887    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     3888
     3889  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
     3890  # $LIBS confuse us, and the libraries appear later in the output anyway).
     3891  *mGLOB_options_string*)
     3892    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     3893
     3894  # If we are using Cray Fortran then delete quotes.
     3895  # Use "\"" instead of '"' for font-lock-mode.
     3896  # FIXME: a more general fix for quoted arguments with spaces?
     3897  *cft90*)
     3898    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     3899esac
     3900
     3901
     3902  # look for -l* and *.a constructs in the output
     3903  for ac_arg in $ac_f77_v_output; do
     3904     case $ac_arg in
     3905        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
     3906          ac_cv_prog_f77_v=$ac_verb
     3907          break 2 ;;
     3908     esac
     3909  done
     3910done
     3911if test -z "$ac_cv_prog_f77_v"; then
     3912   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
     3913echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
     3914fi
     3915else
     3916  echo "$as_me: failed program was:" >&5
     3917sed 's/^/| /' conftest.$ac_ext >&5
     3918
     3919{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
     3920echo "$as_me: WARNING: compilation failed" >&2;}
     3921fi
     3922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3923
     3924fi
     3925echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
     3926echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
     3927echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
     3928echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
     3929if test "${ac_cv_f77_libs+set}" = set; then
     3930  echo $ECHO_N "(cached) $ECHO_C" >&6
     3931else
     3932  if test "x$FLIBS" != "x"; then
     3933  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
     3934else
     3935
     3936cat >conftest.$ac_ext <<_ACEOF
     3937      program main
     3938
     3939      end
     3940_ACEOF
     3941
     3942# Compile and link our simple test program by passing a flag (argument
     3943# 1 to this macro) to the Fortran compiler in order to get
     3944# "verbose" output that we can then parse for the Fortran linker
     3945# flags.
     3946ac_save_FFLAGS=$FFLAGS
     3947FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
     3948(eval echo $as_me:3948: \"$ac_link\") >&5
     3949ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
     3950echo "$ac_f77_v_output" >&5
     3951FFLAGS=$ac_save_FFLAGS
     3952
     3953rm -f conftest*
     3954
     3955# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     3956# /foo, /bar, and /baz are search directories for the Fortran linker.
     3957# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
     3958ac_f77_v_output="`echo $ac_f77_v_output |
     3959        grep 'LPATH is:' |
     3960        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
     3961
     3962case $ac_f77_v_output in
     3963  # If we are using xlf then replace all the commas with spaces.
     3964  *xlfentry*)
     3965    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     3966
     3967  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
     3968  # $LIBS confuse us, and the libraries appear later in the output anyway).
     3969  *mGLOB_options_string*)
     3970    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     3971
     3972  # If we are using Cray Fortran then delete quotes.
     3973  # Use "\"" instead of '"' for font-lock-mode.
     3974  # FIXME: a more general fix for quoted arguments with spaces?
     3975  *cft90*)
     3976    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     3977esac
     3978
     3979
     3980
     3981ac_cv_f77_libs=
     3982
     3983# Save positional arguments (if any)
     3984ac_save_positional="$@"
     3985
     3986set X $ac_f77_v_output
     3987while test $# != 1; do
     3988  shift
     3989  ac_arg=$1
     3990  case $ac_arg in
     3991        [\\/]*.a | ?:[\\/]*.a)
     3992            ac_exists=false
     3993  for ac_i in $ac_cv_f77_libs; do
     3994    if test x"$ac_arg" = x"$ac_i"; then
     3995      ac_exists=true
     3996      break
     3997    fi
     3998  done
     3999
     4000  if test x"$ac_exists" = xtrue; then
     4001  :
     4002else
     4003  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     4004fi
     4005
     4006          ;;
     4007        -bI:*)
     4008            ac_exists=false
     4009  for ac_i in $ac_cv_f77_libs; do
     4010    if test x"$ac_arg" = x"$ac_i"; then
     4011      ac_exists=true
     4012      break
     4013    fi
     4014  done
     4015
     4016  if test x"$ac_exists" = xtrue; then
     4017  :
     4018else
     4019  if test "$ac_compiler_gnu" = yes; then
     4020  for ac_link_opt in $ac_arg; do
     4021    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     4022  done
     4023else
     4024  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     4025fi
     4026fi
     4027
     4028          ;;
     4029          # Ignore these flags.
     4030        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
     4031          ;;
     4032        -lkernel32)
     4033          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     4034          ;;
     4035        -[LRuY])
     4036          # These flags, when seen by themselves, take an argument.
     4037          # We remove the space between option and argument and re-iterate
     4038          # unless we find an empty arg or a new option (starting with -)
     4039          case $2 in
     4040             "" | -*);;
     4041             *)
     4042                ac_arg="$ac_arg$2"
     4043                shift; shift
     4044                set X $ac_arg "$@"
     4045                ;;
     4046          esac
     4047          ;;
     4048        -YP,*)
     4049          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
     4050              ac_exists=false
     4051  for ac_i in $ac_cv_f77_libs; do
     4052    if test x"$ac_j" = x"$ac_i"; then
     4053      ac_exists=true
     4054      break
     4055    fi
     4056  done
     4057
     4058  if test x"$ac_exists" = xtrue; then
     4059  :
     4060else
     4061  ac_arg="$ac_arg $ac_j"
     4062                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
     4063fi
     4064
     4065          done
     4066          ;;
     4067        -[lLR]*)
     4068            ac_exists=false
     4069  for ac_i in $ac_cv_f77_libs; do
     4070    if test x"$ac_arg" = x"$ac_i"; then
     4071      ac_exists=true
     4072      break
     4073    fi
     4074  done
     4075
     4076  if test x"$ac_exists" = xtrue; then
     4077  :
     4078else
     4079  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     4080fi
     4081
     4082          ;;
     4083          # Ignore everything else.
     4084  esac
     4085done
     4086# restore positional arguments
     4087set X $ac_save_positional; shift
     4088
     4089# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
     4090# then we insist that the "run path" must be an absolute path (i.e. it
     4091# must begin with a "/").
     4092case `(uname -sr) 2>/dev/null` in
     4093   "SunOS 5"*)
     4094      ac_ld_run_path=`echo $ac_f77_v_output |
     4095                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
     4096      test "x$ac_ld_run_path" != x &&
     4097        if test "$ac_compiler_gnu" = yes; then
     4098  for ac_link_opt in $ac_ld_run_path; do
     4099    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     4100  done
     4101else
     4102  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
     4103fi
     4104      ;;
     4105esac
     4106fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
     4107
     4108fi
     4109echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
     4110echo "${ECHO_T}$ac_cv_f77_libs" >&6
     4111FLIBS="$ac_cv_f77_libs"
     4112
     4113
     4114ac_ext=f
     4115ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4116ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4117ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4118
     4119ac_ext=f
     4120ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4121ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4122ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4123
     4124echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
     4125echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
     4126if test "${ac_cv_f77_dummy_main+set}" = set; then
     4127  echo $ECHO_N "(cached) $ECHO_C" >&6
     4128else
     4129  ac_f77_dm_save_LIBS=$LIBS
     4130 LIBS="$LIBS $FLIBS"
     4131 ac_fortran_dm_var=F77_DUMMY_MAIN
     4132 ac_ext=c
     4133ac_cpp='$CPP $CPPFLAGS'
     4134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4136ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4137
     4138 # First, try linking without a dummy main:
     4139 cat >conftest.$ac_ext <<_ACEOF
     4140/* confdefs.h.  */
     4141_ACEOF
     4142cat confdefs.h >>conftest.$ac_ext
     4143cat >>conftest.$ac_ext <<_ACEOF
     4144/* end confdefs.h.  */
     4145
     4146#ifdef F77_DUMMY_MAIN
     4147
     4148#  ifdef __cplusplus
     4149     extern "C"
     4150#  endif
     4151   int F77_DUMMY_MAIN() { return 1; }
     4152
     4153#endif
     4154int
     4155main ()
     4156{
     4157
     4158  ;
     4159  return 0;
     4160}
     4161_ACEOF
     4162rm -f conftest.$ac_objext conftest$ac_exeext
     4163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4164  (eval $ac_link) 2>conftest.er1
     4165  ac_status=$?
     4166  grep -v '^ *+' conftest.er1 >conftest.err
     4167  rm -f conftest.er1
     4168  cat conftest.err >&5
     4169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4170  (exit $ac_status); } &&
     4171         { ac_try='test -z "$ac_c_werror_flag"
     4172                         || test ! -s conftest.err'
     4173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4174  (eval $ac_try) 2>&5
     4175  ac_status=$?
     4176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4177  (exit $ac_status); }; } &&
     4178         { ac_try='test -s conftest$ac_exeext'
     4179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4180  (eval $ac_try) 2>&5
     4181  ac_status=$?
     4182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4183  (exit $ac_status); }; }; then
     4184  ac_cv_fortran_dummy_main=none
     4185else
     4186  echo "$as_me: failed program was:" >&5
     4187sed 's/^/| /' conftest.$ac_ext >&5
     4188
     4189ac_cv_fortran_dummy_main=unknown
     4190fi
     4191rm -f conftest.err conftest.$ac_objext \
     4192      conftest$ac_exeext conftest.$ac_ext
     4193
     4194 if test $ac_cv_fortran_dummy_main = unknown; then
     4195   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
     4196     cat >conftest.$ac_ext <<_ACEOF
     4197/* confdefs.h.  */
     4198_ACEOF
     4199cat confdefs.h >>conftest.$ac_ext
     4200cat >>conftest.$ac_ext <<_ACEOF
     4201/* end confdefs.h.  */
     4202#define $ac_fortran_dm_var $ac_func
     4203#ifdef F77_DUMMY_MAIN
     4204
     4205#  ifdef __cplusplus
     4206     extern "C"
     4207#  endif
     4208   int F77_DUMMY_MAIN() { return 1; }
     4209
     4210#endif
     4211int
     4212main ()
     4213{
     4214
     4215  ;
     4216  return 0;
     4217}
     4218_ACEOF
     4219rm -f conftest.$ac_objext conftest$ac_exeext
     4220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4221  (eval $ac_link) 2>conftest.er1
     4222  ac_status=$?
     4223  grep -v '^ *+' conftest.er1 >conftest.err
     4224  rm -f conftest.er1
     4225  cat conftest.err >&5
     4226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4227  (exit $ac_status); } &&
     4228         { ac_try='test -z "$ac_c_werror_flag"
     4229                         || test ! -s conftest.err'
     4230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4231  (eval $ac_try) 2>&5
     4232  ac_status=$?
     4233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4234  (exit $ac_status); }; } &&
     4235         { ac_try='test -s conftest$ac_exeext'
     4236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4237  (eval $ac_try) 2>&5
     4238  ac_status=$?
     4239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4240  (exit $ac_status); }; }; then
     4241  ac_cv_fortran_dummy_main=$ac_func; break
     4242else
     4243  echo "$as_me: failed program was:" >&5
     4244sed 's/^/| /' conftest.$ac_ext >&5
     4245
     4246fi
     4247rm -f conftest.err conftest.$ac_objext \
     4248      conftest$ac_exeext conftest.$ac_ext
     4249   done
     4250 fi
     4251 ac_ext=f
     4252ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4253ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4254ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4255 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
     4256 rm -f conftest*
     4257 LIBS=$ac_f77_dm_save_LIBS
     4258
     4259fi
     4260echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
     4261echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
     4262F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
     4263if test "$F77_DUMMY_MAIN" != unknown; then
     4264  if test $F77_DUMMY_MAIN != none; then
     4265
     4266cat >>confdefs.h <<_ACEOF
     4267#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
     4268_ACEOF
     4269
     4270  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
     4271
     4272cat >>confdefs.h <<\_ACEOF
     4273#define FC_DUMMY_MAIN_EQ_F77 1
     4274_ACEOF
     4275
     4276  fi
     4277fi
     4278else
     4279  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
     4280See \`config.log' for more details." >&5
     4281echo "$as_me: error: linking to Fortran libraries from C fails
     4282See \`config.log' for more details." >&2;}
     4283   { (exit 1); exit 1; }; }
     4284fi
     4285
     4286
     4287ac_ext=f
     4288ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4289ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4290ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4291
     4292ac_ext=f
     4293ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4294ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4295ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4296echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
     4297echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
     4298if test "${ac_cv_f77_mangling+set}" = set; then
     4299  echo $ECHO_N "(cached) $ECHO_C" >&6
     4300else
     4301  cat >conftest.$ac_ext <<_ACEOF
     4302      subroutine foobar()
     4303      return
     4304      end
     4305      subroutine foo_bar()
     4306      return
     4307      end
     4308_ACEOF
     4309rm -f conftest.$ac_objext
     4310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4311  (eval $ac_compile) 2>conftest.er1
     4312  ac_status=$?
     4313  grep -v '^ *+' conftest.er1 >conftest.err
     4314  rm -f conftest.er1
     4315  cat conftest.err >&5
     4316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4317  (exit $ac_status); } &&
     4318         { ac_try='test -z "$ac_f77_werror_flag"
     4319                         || test ! -s conftest.err'
     4320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4321  (eval $ac_try) 2>&5
     4322  ac_status=$?
     4323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4324  (exit $ac_status); }; } &&
     4325         { ac_try='test -s conftest.$ac_objext'
     4326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4327  (eval $ac_try) 2>&5
     4328  ac_status=$?
     4329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4330  (exit $ac_status); }; }; then
     4331  mv conftest.$ac_objext cfortran_test.$ac_objext
     4332
     4333  ac_save_LIBS=$LIBS
     4334  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
     4335
     4336  ac_ext=c
     4337ac_cpp='$CPP $CPPFLAGS'
     4338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4340ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4341  ac_success=no
     4342  for ac_foobar in foobar FOOBAR; do
     4343    for ac_underscore in "" "_"; do
     4344      ac_func="$ac_foobar$ac_underscore"
     4345      cat >conftest.$ac_ext <<_ACEOF
     4346/* confdefs.h.  */
     4347_ACEOF
     4348cat confdefs.h >>conftest.$ac_ext
     4349cat >>conftest.$ac_ext <<_ACEOF
     4350/* end confdefs.h.  */
     4351
     4352/* Override any gcc2 internal prototype to avoid an error.  */
     4353#ifdef __cplusplus
     4354extern "C"
     4355#endif
     4356/* We use char because int might match the return type of a gcc2
     4357   builtin and then its argument prototype would still apply.  */
     4358char $ac_func ();
     4359#ifdef F77_DUMMY_MAIN
     4360
     4361#  ifdef __cplusplus
     4362     extern "C"
     4363#  endif
     4364   int F77_DUMMY_MAIN() { return 1; }
     4365
     4366#endif
     4367int
     4368main ()
     4369{
     4370$ac_func ();
     4371  ;
     4372  return 0;
     4373}
     4374_ACEOF
     4375rm -f conftest.$ac_objext conftest$ac_exeext
     4376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4377  (eval $ac_link) 2>conftest.er1
     4378  ac_status=$?
     4379  grep -v '^ *+' conftest.er1 >conftest.err
     4380  rm -f conftest.er1
     4381  cat conftest.err >&5
     4382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4383  (exit $ac_status); } &&
     4384         { ac_try='test -z "$ac_c_werror_flag"
     4385                         || test ! -s conftest.err'
     4386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4387  (eval $ac_try) 2>&5
     4388  ac_status=$?
     4389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4390  (exit $ac_status); }; } &&
     4391         { ac_try='test -s conftest$ac_exeext'
     4392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4393  (eval $ac_try) 2>&5
     4394  ac_status=$?
     4395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4396  (exit $ac_status); }; }; then
     4397  ac_success=yes; break 2
     4398else
     4399  echo "$as_me: failed program was:" >&5
     4400sed 's/^/| /' conftest.$ac_ext >&5
     4401
     4402fi
     4403rm -f conftest.err conftest.$ac_objext \
     4404      conftest$ac_exeext conftest.$ac_ext
     4405    done
     4406  done
     4407  ac_ext=f
     4408ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4409ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4410ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4411
     4412  if test "$ac_success" = "yes"; then
     4413     case $ac_foobar in
     4414        foobar)
     4415           ac_case=lower
     4416           ac_foo_bar=foo_bar
     4417           ;;
     4418        FOOBAR)
     4419           ac_case=upper
     4420           ac_foo_bar=FOO_BAR
     4421           ;;
     4422     esac
     4423
     4424     ac_ext=c
     4425ac_cpp='$CPP $CPPFLAGS'
     4426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4428ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4429     ac_success_extra=no
     4430     for ac_extra in "" "_"; do
     4431        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
     4432        cat >conftest.$ac_ext <<_ACEOF
     4433/* confdefs.h.  */
     4434_ACEOF
     4435cat confdefs.h >>conftest.$ac_ext
     4436cat >>conftest.$ac_ext <<_ACEOF
     4437/* end confdefs.h.  */
     4438
     4439/* Override any gcc2 internal prototype to avoid an error.  */
     4440#ifdef __cplusplus
     4441extern "C"
     4442#endif
     4443/* We use char because int might match the return type of a gcc2
     4444   builtin and then its argument prototype would still apply.  */
     4445char $ac_func ();
     4446#ifdef F77_DUMMY_MAIN
     4447
     4448#  ifdef __cplusplus
     4449     extern "C"
     4450#  endif
     4451   int F77_DUMMY_MAIN() { return 1; }
     4452
     4453#endif
     4454int
     4455main ()
     4456{
     4457$ac_func ();
     4458  ;
     4459  return 0;
     4460}
     4461_ACEOF
     4462rm -f conftest.$ac_objext conftest$ac_exeext
     4463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4464  (eval $ac_link) 2>conftest.er1
     4465  ac_status=$?
     4466  grep -v '^ *+' conftest.er1 >conftest.err
     4467  rm -f conftest.er1
     4468  cat conftest.err >&5
     4469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4470  (exit $ac_status); } &&
     4471         { ac_try='test -z "$ac_c_werror_flag"
     4472                         || test ! -s conftest.err'
     4473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4474  (eval $ac_try) 2>&5
     4475  ac_status=$?
     4476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4477  (exit $ac_status); }; } &&
     4478         { ac_try='test -s conftest$ac_exeext'
     4479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4480  (eval $ac_try) 2>&5
     4481  ac_status=$?
     4482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4483  (exit $ac_status); }; }; then
     4484  ac_success_extra=yes; break
     4485else
     4486  echo "$as_me: failed program was:" >&5
     4487sed 's/^/| /' conftest.$ac_ext >&5
     4488
     4489fi
     4490rm -f conftest.err conftest.$ac_objext \
     4491      conftest$ac_exeext conftest.$ac_ext
     4492     done
     4493     ac_ext=f
     4494ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4495ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4496ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4497
     4498     if test "$ac_success_extra" = "yes"; then
     4499        ac_cv_f77_mangling="$ac_case case"
     4500        if test -z "$ac_underscore"; then
     4501           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
     4502        else
     4503           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
     4504        fi
     4505        if test -z "$ac_extra"; then
     4506           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
     4507        else
     4508           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
     4509        fi
     4510      else
     4511        ac_cv_f77_mangling="unknown"
     4512      fi
     4513  else
     4514     ac_cv_f77_mangling="unknown"
     4515  fi
     4516
     4517  LIBS=$ac_save_LIBS
     4518  rm -f cfortran_test* conftest*
     4519else
     4520  echo "$as_me: failed program was:" >&5
     4521sed 's/^/| /' conftest.$ac_ext >&5
     4522
     4523{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
     4524See \`config.log' for more details." >&5
     4525echo "$as_me: error: cannot compile a simple Fortran program
     4526See \`config.log' for more details." >&2;}
     4527   { (exit 1); exit 1; }; }
     4528fi
     4529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4530
     4531fi
     4532echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
     4533echo "${ECHO_T}$ac_cv_f77_mangling" >&6
     4534
     4535ac_ext=f
     4536ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4537ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4538ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4539
     4540
     4541ac_ext=f
     4542ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4543ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4544ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4545
     4546
     4547save_FLIBS="$FLIBS"
     4548
     4549ac_ext=f
     4550ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4551ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4552ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4553
     4554
     4555case $ac_cv_f77_mangling in
     4556  "lower case, no underscore, no extra underscore")
     4557          cat >>confdefs.h <<\_ACEOF
     4558#define F77_FUNC(name,NAME) name
     4559_ACEOF
     4560
     4561          cat >>confdefs.h <<\_ACEOF
     4562#define F77_FUNC_(name,NAME) name
     4563_ACEOF
     4564 ;;
     4565  "lower case, no underscore, extra underscore")
     4566          cat >>confdefs.h <<\_ACEOF
     4567#define F77_FUNC(name,NAME) name
     4568_ACEOF
     4569
     4570          cat >>confdefs.h <<\_ACEOF
     4571#define F77_FUNC_(name,NAME) name ## _
     4572_ACEOF
     4573 ;;
     4574  "lower case, underscore, no extra underscore")
     4575          cat >>confdefs.h <<\_ACEOF
     4576#define F77_FUNC(name,NAME) name ## _
     4577_ACEOF
     4578
     4579          cat >>confdefs.h <<\_ACEOF
     4580#define F77_FUNC_(name,NAME) name ## _
     4581_ACEOF
     4582 ;;
     4583  "lower case, underscore, extra underscore")
     4584          cat >>confdefs.h <<\_ACEOF
     4585#define F77_FUNC(name,NAME) name ## _
     4586_ACEOF
     4587
     4588          cat >>confdefs.h <<\_ACEOF
     4589#define F77_FUNC_(name,NAME) name ## __
     4590_ACEOF
     4591 ;;
     4592  "upper case, no underscore, no extra underscore")
     4593          cat >>confdefs.h <<\_ACEOF
     4594#define F77_FUNC(name,NAME) NAME
     4595_ACEOF
     4596
     4597          cat >>confdefs.h <<\_ACEOF
     4598#define F77_FUNC_(name,NAME) NAME
     4599_ACEOF
     4600 ;;
     4601  "upper case, no underscore, extra underscore")
     4602          cat >>confdefs.h <<\_ACEOF
     4603#define F77_FUNC(name,NAME) NAME
     4604_ACEOF
     4605
     4606          cat >>confdefs.h <<\_ACEOF
     4607#define F77_FUNC_(name,NAME) NAME ## _
     4608_ACEOF
     4609 ;;
     4610  "upper case, underscore, no extra underscore")
     4611          cat >>confdefs.h <<\_ACEOF
     4612#define F77_FUNC(name,NAME) NAME ## _
     4613_ACEOF
     4614
     4615          cat >>confdefs.h <<\_ACEOF
     4616#define F77_FUNC_(name,NAME) NAME ## _
     4617_ACEOF
     4618 ;;
     4619  "upper case, underscore, extra underscore")
     4620          cat >>confdefs.h <<\_ACEOF
     4621#define F77_FUNC(name,NAME) NAME ## _
     4622_ACEOF
     4623
     4624          cat >>confdefs.h <<\_ACEOF
     4625#define F77_FUNC_(name,NAME) NAME ## __
     4626_ACEOF
     4627 ;;
     4628  *)
     4629          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
     4630echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
     4631          ;;
     4632esac
     4633
     4634ac_ext=f
     4635ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4636ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4637ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4638
     4639
     4640if test x"$save_FLIBS" != x; then
     4641  FLIBS="$save_FLIBS"
     4642else
     4643  # This is to correct a missing exclusion in autoconf 2.59
     4644  if test x"$FLIBS" != x; then
     4645    my_flibs=
     4646    for flag in $FLIBS; do
     4647      case $flag in
     4648        -lcrt*.o) ;;
     4649               *) my_flibs="$my_flibs $flag" ;;
     4650      esac
     4651    done
     4652    FLIBS="$my_flibs"
     4653  fi
     4654
     4655  case $build in
     4656  # The following is a fix to define FLIBS for ifort on Windows
     4657  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
     4658  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
     4659  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
     4660     *-cygwin* | *-mingw*)
     4661       case "$F77" in
     4662         ifort* | */ifort* | IFORT* | */IFORT*)
     4663           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
     4664#           if "$coin_debug_compile" = true ; then
     4665#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
     4666#           else
     4667#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
     4668#           fi
     4669           ;;
     4670         compile_f2c*)
     4671           FLIBS=`$F77 -FLIBS` ;;
     4672       esac;;
     4673     *-hp-*)
     4674         FLIBS="$FLIBS -lm";;
     4675     *-ibm-*)
     4676         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
     4677     *-linux-*)
     4678       case "$F77" in
     4679         pgf77* | */pgf77* | pgf90* | */pgf90*)
     4680# ask linker to go through the archives multiple times
     4681# (the Fortran compiler seems to do that automatically...
     4682           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
     4683       esac
     4684  esac
     4685  ac_cv_f77_libs="$FLIBS"
     4686fi
     4687
     4688ac_ext=c
     4689ac_cpp='$CPP $CPPFLAGS'
     4690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4692ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4693
     4694
     4695
     4696
     4697# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
     4698coin_need_flibs=yes
     4699
    38184700# Need egrep later on
    38194701echo "$as_me:$LINENO: checking for egrep" >&5
     
    54556337*-*-irix6*)
    54566338  # Find out which ABI we are using.
    5457   echo '#line 5457 "configure"' > conftest.$ac_ext
     6339  echo '#line 6339 "configure"' > conftest.$ac_ext
    54586340  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    54596341  (eval $ac_compile) 2>&5
     
    55586440/* end confdefs.h.  */
    55596441
     6442#ifdef F77_DUMMY_MAIN
     6443
     6444#  ifdef __cplusplus
     6445     extern "C"
     6446#  endif
     6447   int F77_DUMMY_MAIN() { return 1; }
     6448
     6449#endif
    55606450int
    55616451main ()
     
    58886778#include <float.h>
    58896779
     6780#ifdef F77_DUMMY_MAIN
     6781
     6782#  ifdef __cplusplus
     6783     extern "C"
     6784#  endif
     6785   int F77_DUMMY_MAIN() { return 1; }
     6786
     6787#endif
    58906788int
    58916789main ()
     
    63857283/* end confdefs.h.  */
    63867284
     7285#ifdef F77_DUMMY_MAIN
     7286
     7287#  ifdef __cplusplus
     7288     extern "C"
     7289#  endif
     7290   int F77_DUMMY_MAIN() { return 1; }
     7291
     7292#endif
    63877293int
    63887294main ()
     
    64477353/* end confdefs.h.  */
    64487354
     7355#ifdef F77_DUMMY_MAIN
     7356
     7357#  ifdef __cplusplus
     7358     extern "C"
     7359#  endif
     7360   int F77_DUMMY_MAIN() { return 1; }
     7361
     7362#endif
    64497363int
    64507364main ()
     
    65197433$ac_declaration
    65207434#include <stdlib.h>
     7435#ifdef F77_DUMMY_MAIN
     7436
     7437#  ifdef __cplusplus
     7438     extern "C"
     7439#  endif
     7440   int F77_DUMMY_MAIN() { return 1; }
     7441
     7442#endif
    65217443int
    65227444main ()
     
    65647486/* end confdefs.h.  */
    65657487$ac_declaration
     7488#ifdef F77_DUMMY_MAIN
     7489
     7490#  ifdef __cplusplus
     7491     extern "C"
     7492#  endif
     7493   int F77_DUMMY_MAIN() { return 1; }
     7494
     7495#endif
    65667496int
    65677497main ()
     
    78848814   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    78858815   -e 's:$: $lt_compiler_flag:'`
    7886    (eval echo "\"\$as_me:7886: $lt_compile\"" >&5)
     8816   (eval echo "\"\$as_me:8816: $lt_compile\"" >&5)
    78878817   (eval "$lt_compile" 2>conftest.err)
    78888818   ac_status=$?
    78898819   cat conftest.err >&5
    7890    echo "$as_me:7890: \$? = $ac_status" >&5
     8820   echo "$as_me:8820: \$? = $ac_status" >&5
    78918821   if (exit $ac_status) && test -s "$ac_outfile"; then
    78928822     # The compiler can only warn and ignore the option if not recognized
     
    81529082   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81539083   -e 's:$: $lt_compiler_flag:'`
    8154    (eval echo "\"\$as_me:8154: $lt_compile\"" >&5)
     9084   (eval echo "\"\$as_me:9084: $lt_compile\"" >&5)
    81559085   (eval "$lt_compile" 2>conftest.err)
    81569086   ac_status=$?
    81579087   cat conftest.err >&5
    8158    echo "$as_me:8158: \$? = $ac_status" >&5
     9088   echo "$as_me:9088: \$? = $ac_status" >&5
    81599089   if (exit $ac_status) && test -s "$ac_outfile"; then
    81609090     # The compiler can only warn and ignore the option if not recognized
     
    82569186   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    82579187   -e 's:$: $lt_compiler_flag:'`
    8258    (eval echo "\"\$as_me:8258: $lt_compile\"" >&5)
     9188   (eval echo "\"\$as_me:9188: $lt_compile\"" >&5)
    82599189   (eval "$lt_compile" 2>out/conftest.err)
    82609190   ac_status=$?
    82619191   cat out/conftest.err >&5
    8262    echo "$as_me:8262: \$? = $ac_status" >&5
     9192   echo "$as_me:9192: \$? = $ac_status" >&5
    82639193   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    82649194   then
     
    87159645/* end confdefs.h.  */
    87169646
     9647#ifdef F77_DUMMY_MAIN
     9648
     9649#  ifdef __cplusplus
     9650     extern "C"
     9651#  endif
     9652   int F77_DUMMY_MAIN() { return 1; }
     9653
     9654#endif
    87179655int
    87189656main ()
     
    87769714/* end confdefs.h.  */
    87779715
     9716#ifdef F77_DUMMY_MAIN
     9717
     9718#  ifdef __cplusplus
     9719     extern "C"
     9720#  endif
     9721   int F77_DUMMY_MAIN() { return 1; }
     9722
     9723#endif
    87789724int
    87799725main ()
     
    1004410990   builtin and then its argument prototype would still apply.  */
    1004510991char dlopen ();
     10992#ifdef F77_DUMMY_MAIN
     10993
     10994#  ifdef __cplusplus
     10995     extern "C"
     10996#  endif
     10997   int F77_DUMMY_MAIN() { return 1; }
     10998
     10999#endif
    1004611000int
    1004711001main ()
     
    1014811102#endif
    1014911103
     11104#ifdef F77_DUMMY_MAIN
     11105
     11106#  ifdef __cplusplus
     11107     extern "C"
     11108#  endif
     11109   int F77_DUMMY_MAIN() { return 1; }
     11110
     11111#endif
    1015011112int
    1015111113main ()
     
    1021411176   builtin and then its argument prototype would still apply.  */
    1021511177char shl_load ();
     11178#ifdef F77_DUMMY_MAIN
     11179
     11180#  ifdef __cplusplus
     11181     extern "C"
     11182#  endif
     11183   int F77_DUMMY_MAIN() { return 1; }
     11184
     11185#endif
    1021611186int
    1021711187main ()
     
    1030811278#endif
    1030911279
     11280#ifdef F77_DUMMY_MAIN
     11281
     11282#  ifdef __cplusplus
     11283     extern "C"
     11284#  endif
     11285   int F77_DUMMY_MAIN() { return 1; }
     11286
     11287#endif
    1031011288int
    1031111289main ()
     
    1037411352   builtin and then its argument prototype would still apply.  */
    1037511353char dlopen ();
     11354#ifdef F77_DUMMY_MAIN
     11355
     11356#  ifdef __cplusplus
     11357     extern "C"
     11358#  endif
     11359   int F77_DUMMY_MAIN() { return 1; }
     11360
     11361#endif
    1037611362int
    1037711363main ()
     
    1044111427   builtin and then its argument prototype would still apply.  */
    1044211428char dlopen ();
     11429#ifdef F77_DUMMY_MAIN
     11430
     11431#  ifdef __cplusplus
     11432     extern "C"
     11433#  endif
     11434   int F77_DUMMY_MAIN() { return 1; }
     11435
     11436#endif
    1044311437int
    1044411438main ()
     
    1050811502   builtin and then its argument prototype would still apply.  */
    1050911503char dld_link ();
     11504#ifdef F77_DUMMY_MAIN
     11505
     11506#  ifdef __cplusplus
     11507     extern "C"
     11508#  endif
     11509   int F77_DUMMY_MAIN() { return 1; }
     11510
     11511#endif
    1051011512int
    1051111513main ()
     
    1060111603  lt_status=$lt_dlunknown
    1060211604  cat > conftest.$ac_ext <<EOF
    10603 #line 10603 "configure"
     11605#line 11605 "configure"
    1060411606#include "confdefs.h"
    1060511607
     
    1070111703  lt_status=$lt_dlunknown
    1070211704  cat > conftest.$ac_ext <<EOF
    10703 #line 10703 "configure"
     11705#line 11705 "configure"
    1070411706#include "confdefs.h"
    1070511707
     
    1176712769/* end confdefs.h.  */
    1176812770
     12771#ifdef F77_DUMMY_MAIN
     12772
     12773#  ifdef __cplusplus
     12774     extern "C"
     12775#  endif
     12776   int F77_DUMMY_MAIN() { return 1; }
     12777
     12778#endif
    1176912779int
    1177012780main ()
     
    1182912839/* end confdefs.h.  */
    1183012840
     12841#ifdef F77_DUMMY_MAIN
     12842
     12843#  ifdef __cplusplus
     12844     extern "C"
     12845#  endif
     12846   int F77_DUMMY_MAIN() { return 1; }
     12847
     12848#endif
    1183112849int
    1183212850main ()
     
    1304514063   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1304614064   -e 's:$: $lt_compiler_flag:'`
    13047    (eval echo "\"\$as_me:13047: $lt_compile\"" >&5)
     14065   (eval echo "\"\$as_me:14065: $lt_compile\"" >&5)
    1304814066   (eval "$lt_compile" 2>conftest.err)
    1304914067   ac_status=$?
    1305014068   cat conftest.err >&5
    13051    echo "$as_me:13051: \$? = $ac_status" >&5
     14069   echo "$as_me:14069: \$? = $ac_status" >&5
    1305214070   if (exit $ac_status) && test -s "$ac_outfile"; then
    1305314071     # The compiler can only warn and ignore the option if not recognized
     
    1314914167   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1315014168   -e 's:$: $lt_compiler_flag:'`
    13151    (eval echo "\"\$as_me:13151: $lt_compile\"" >&5)
     14169   (eval echo "\"\$as_me:14169: $lt_compile\"" >&5)
    1315214170   (eval "$lt_compile" 2>out/conftest.err)
    1315314171   ac_status=$?
    1315414172   cat out/conftest.err >&5
    13155    echo "$as_me:13155: \$? = $ac_status" >&5
     14173   echo "$as_me:14173: \$? = $ac_status" >&5
    1315614174   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1315714175   then
     
    1471915737   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1472015738   -e 's:$: $lt_compiler_flag:'`
    14721    (eval echo "\"\$as_me:14721: $lt_compile\"" >&5)
     15739   (eval echo "\"\$as_me:15739: $lt_compile\"" >&5)
    1472215740   (eval "$lt_compile" 2>conftest.err)
    1472315741   ac_status=$?
    1472415742   cat conftest.err >&5
    14725    echo "$as_me:14725: \$? = $ac_status" >&5
     15743   echo "$as_me:15743: \$? = $ac_status" >&5
    1472615744   if (exit $ac_status) && test -s "$ac_outfile"; then
    1472715745     # The compiler can only warn and ignore the option if not recognized
     
    1482315841   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1482415842   -e 's:$: $lt_compiler_flag:'`
    14825    (eval echo "\"\$as_me:14825: $lt_compile\"" >&5)
     15843   (eval echo "\"\$as_me:15843: $lt_compile\"" >&5)
    1482615844   (eval "$lt_compile" 2>out/conftest.err)
    1482715845   ac_status=$?
    1482815846   cat out/conftest.err >&5
    14829    echo "$as_me:14829: \$? = $ac_status" >&5
     15847   echo "$as_me:15847: \$? = $ac_status" >&5
    1483015848   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1483115849   then
     
    1703018048   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1703118049   -e 's:$: $lt_compiler_flag:'`
    17032    (eval echo "\"\$as_me:17032: $lt_compile\"" >&5)
     18050   (eval echo "\"\$as_me:18050: $lt_compile\"" >&5)
    1703318051   (eval "$lt_compile" 2>conftest.err)
    1703418052   ac_status=$?
    1703518053   cat conftest.err >&5
    17036    echo "$as_me:17036: \$? = $ac_status" >&5
     18054   echo "$as_me:18054: \$? = $ac_status" >&5
    1703718055   if (exit $ac_status) && test -s "$ac_outfile"; then
    1703818056     # The compiler can only warn and ignore the option if not recognized
     
    1729818316   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1729918317   -e 's:$: $lt_compiler_flag:'`
    17300    (eval echo "\"\$as_me:17300: $lt_compile\"" >&5)
     18318   (eval echo "\"\$as_me:18318: $lt_compile\"" >&5)
    1730118319   (eval "$lt_compile" 2>conftest.err)
    1730218320   ac_status=$?
    1730318321   cat conftest.err >&5
    17304    echo "$as_me:17304: \$? = $ac_status" >&5
     18322   echo "$as_me:18322: \$? = $ac_status" >&5
    1730518323   if (exit $ac_status) && test -s "$ac_outfile"; then
    1730618324     # The compiler can only warn and ignore the option if not recognized
     
    1740218420   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1740318421   -e 's:$: $lt_compiler_flag:'`
    17404    (eval echo "\"\$as_me:17404: $lt_compile\"" >&5)
     18422   (eval echo "\"\$as_me:18422: $lt_compile\"" >&5)
    1740518423   (eval "$lt_compile" 2>out/conftest.err)
    1740618424   ac_status=$?
    1740718425   cat out/conftest.err >&5
    17408    echo "$as_me:17408: \$? = $ac_status" >&5
     18426   echo "$as_me:18426: \$? = $ac_status" >&5
    1740918427   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1741018428   then
     
    1786118879/* end confdefs.h.  */
    1786218880
     18881#ifdef F77_DUMMY_MAIN
     18882
     18883#  ifdef __cplusplus
     18884     extern "C"
     18885#  endif
     18886   int F77_DUMMY_MAIN() { return 1; }
     18887
     18888#endif
    1786318889int
    1786418890main ()
     
    1792218948/* end confdefs.h.  */
    1792318949
     18950#ifdef F77_DUMMY_MAIN
     18951
     18952#  ifdef __cplusplus
     18953     extern "C"
     18954#  endif
     18955   int F77_DUMMY_MAIN() { return 1; }
     18956
     18957#endif
    1792418958int
    1792518959main ()
     
    2134522379s,@ac_ct_F77@,$ac_ct_F77,;t t
    2134622380s,@MPIF77@,$MPIF77,;t t
     22381s,@FLIBS@,$FLIBS,;t t
    2134722382s,@EGREP@,$EGREP,;t t
    2134822383s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  • ThirdParty/HSL/branches/BSPsplit/configure.ac

    r1454 r1460  
    5959# Get the name of the Fortran compiler and appropriate compiler options
    6060AC_COIN_PROG_F77
     61
     62# Get the linker flags (FLIBS) that are required for linking against this blas library
     63AC_COIN_F77_WRAPPERS
     64
     65# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
     66coin_need_flibs=yes
    6167
    6268# Need egrep later on
  • ThirdParty/Lapack/branches/BSPsplit/Makefile.in

    r1446 r1460  
    160160FADDLIBS = @FADDLIBS@
    161161FFLAGS = @FFLAGS@
     162FLIBS = @FLIBS@
    162163HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    163164HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
  • ThirdParty/Lapack/branches/BSPsplit/configure

    r1446 r1460  
    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 DLAMCH_FFLAGS 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 LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR 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 DLAMCH_FFLAGS 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 LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    38103810
    38113811
     3812# Get the linker flags (FLIBS) that are required for linking against this blas library
     3813ac_ext=f
     3814ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     3815ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3816ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     3817echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
     3818echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
     3819if test "${ac_cv_prog_f77_v+set}" = set; then
     3820  echo $ECHO_N "(cached) $ECHO_C" >&6
     3821else
     3822  cat >conftest.$ac_ext <<_ACEOF
     3823      program main
     3824
     3825      end
     3826_ACEOF
     3827rm -f conftest.$ac_objext
     3828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3829  (eval $ac_compile) 2>conftest.er1
     3830  ac_status=$?
     3831  grep -v '^ *+' conftest.er1 >conftest.err
     3832  rm -f conftest.er1
     3833  cat conftest.err >&5
     3834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3835  (exit $ac_status); } &&
     3836         { ac_try='test -z "$ac_f77_werror_flag"
     3837                         || test ! -s conftest.err'
     3838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3839  (eval $ac_try) 2>&5
     3840  ac_status=$?
     3841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3842  (exit $ac_status); }; } &&
     3843         { ac_try='test -s conftest.$ac_objext'
     3844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3845  (eval $ac_try) 2>&5
     3846  ac_status=$?
     3847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3848  (exit $ac_status); }; }; then
     3849  ac_cv_prog_f77_v=
     3850# Try some options frequently used verbose output
     3851for ac_verb in -v -verbose --verbose -V -\#\#\#; do
     3852  cat >conftest.$ac_ext <<_ACEOF
     3853      program main
     3854
     3855      end
     3856_ACEOF
     3857
     3858# Compile and link our simple test program by passing a flag (argument
     3859# 1 to this macro) to the Fortran compiler in order to get
     3860# "verbose" output that we can then parse for the Fortran linker
     3861# flags.
     3862ac_save_FFLAGS=$FFLAGS
     3863FFLAGS="$FFLAGS $ac_verb"
     3864(eval echo $as_me:3864: \"$ac_link\") >&5
     3865ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
     3866echo "$ac_f77_v_output" >&5
     3867FFLAGS=$ac_save_FFLAGS
     3868
     3869rm -f conftest*
     3870
     3871# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     3872# /foo, /bar, and /baz are search directories for the Fortran linker.
     3873# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
     3874ac_f77_v_output="`echo $ac_f77_v_output |
     3875        grep 'LPATH is:' |
     3876        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
     3877
     3878case $ac_f77_v_output in
     3879  # If we are using xlf then replace all the commas with spaces.
     3880  *xlfentry*)
     3881    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     3882
     3883  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
     3884  # $LIBS confuse us, and the libraries appear later in the output anyway).
     3885  *mGLOB_options_string*)
     3886    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     3887
     3888  # If we are using Cray Fortran then delete quotes.
     3889  # Use "\"" instead of '"' for font-lock-mode.
     3890  # FIXME: a more general fix for quoted arguments with spaces?
     3891  *cft90*)
     3892    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     3893esac
     3894
     3895
     3896  # look for -l* and *.a constructs in the output
     3897  for ac_arg in $ac_f77_v_output; do
     3898     case $ac_arg in
     3899        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
     3900          ac_cv_prog_f77_v=$ac_verb
     3901          break 2 ;;
     3902     esac
     3903  done
     3904done
     3905if test -z "$ac_cv_prog_f77_v"; then
     3906   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
     3907echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
     3908fi
     3909else
     3910  echo "$as_me: failed program was:" >&5
     3911sed 's/^/| /' conftest.$ac_ext >&5
     3912
     3913{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
     3914echo "$as_me: WARNING: compilation failed" >&2;}
     3915fi
     3916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3917
     3918fi
     3919echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
     3920echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
     3921echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
     3922echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
     3923if test "${ac_cv_f77_libs+set}" = set; then
     3924  echo $ECHO_N "(cached) $ECHO_C" >&6
     3925else
     3926  if test "x$FLIBS" != "x"; then
     3927  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
     3928else
     3929
     3930cat >conftest.$ac_ext <<_ACEOF
     3931      program main
     3932
     3933      end
     3934_ACEOF
     3935
     3936# Compile and link our simple test program by passing a flag (argument
     3937# 1 to this macro) to the Fortran compiler in order to get
     3938# "verbose" output that we can then parse for the Fortran linker
     3939# flags.
     3940ac_save_FFLAGS=$FFLAGS
     3941FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
     3942(eval echo $as_me:3942: \"$ac_link\") >&5
     3943ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
     3944echo "$ac_f77_v_output" >&5
     3945FFLAGS=$ac_save_FFLAGS
     3946
     3947rm -f conftest*
     3948
     3949# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
     3950# /foo, /bar, and /baz are search directories for the Fortran linker.
     3951# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
     3952ac_f77_v_output="`echo $ac_f77_v_output |
     3953        grep 'LPATH is:' |
     3954        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
     3955
     3956case $ac_f77_v_output in
     3957  # If we are using xlf then replace all the commas with spaces.
     3958  *xlfentry*)
     3959    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
     3960
     3961  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
     3962  # $LIBS confuse us, and the libraries appear later in the output anyway).
     3963  *mGLOB_options_string*)
     3964    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
     3965
     3966  # If we are using Cray Fortran then delete quotes.
     3967  # Use "\"" instead of '"' for font-lock-mode.
     3968  # FIXME: a more general fix for quoted arguments with spaces?
     3969  *cft90*)
     3970    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
     3971esac
     3972
     3973
     3974
     3975ac_cv_f77_libs=
     3976
     3977# Save positional arguments (if any)
     3978ac_save_positional="$@"
     3979
     3980set X $ac_f77_v_output
     3981while test $# != 1; do
     3982  shift
     3983  ac_arg=$1
     3984  case $ac_arg in
     3985        [\\/]*.a | ?:[\\/]*.a)
     3986            ac_exists=false
     3987  for ac_i in $ac_cv_f77_libs; do
     3988    if test x"$ac_arg" = x"$ac_i"; then
     3989      ac_exists=true
     3990      break
     3991    fi
     3992  done
     3993
     3994  if test x"$ac_exists" = xtrue; then
     3995  :
     3996else
     3997  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     3998fi
     3999
     4000          ;;
     4001        -bI:*)
     4002            ac_exists=false
     4003  for ac_i in $ac_cv_f77_libs; do
     4004    if test x"$ac_arg" = x"$ac_i"; then
     4005      ac_exists=true
     4006      break
     4007    fi
     4008  done
     4009
     4010  if test x"$ac_exists" = xtrue; then
     4011  :
     4012else
     4013  if test "$ac_compiler_gnu" = yes; then
     4014  for ac_link_opt in $ac_arg; do
     4015    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     4016  done
     4017else
     4018  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     4019fi
     4020fi
     4021
     4022          ;;
     4023          # Ignore these flags.
     4024        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
     4025          ;;
     4026        -lkernel32)
     4027          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     4028          ;;
     4029        -[LRuY])
     4030          # These flags, when seen by themselves, take an argument.
     4031          # We remove the space between option and argument and re-iterate
     4032          # unless we find an empty arg or a new option (starting with -)
     4033          case $2 in
     4034             "" | -*);;
     4035             *)
     4036                ac_arg="$ac_arg$2"
     4037                shift; shift
     4038                set X $ac_arg "$@"
     4039                ;;
     4040          esac
     4041          ;;
     4042        -YP,*)
     4043          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
     4044              ac_exists=false
     4045  for ac_i in $ac_cv_f77_libs; do
     4046    if test x"$ac_j" = x"$ac_i"; then
     4047      ac_exists=true
     4048      break
     4049    fi
     4050  done
     4051
     4052  if test x"$ac_exists" = xtrue; then
     4053  :
     4054else
     4055  ac_arg="$ac_arg $ac_j"
     4056                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
     4057fi
     4058
     4059          done
     4060          ;;
     4061        -[lLR]*)
     4062            ac_exists=false
     4063  for ac_i in $ac_cv_f77_libs; do
     4064    if test x"$ac_arg" = x"$ac_i"; then
     4065      ac_exists=true
     4066      break
     4067    fi
     4068  done
     4069
     4070  if test x"$ac_exists" = xtrue; then
     4071  :
     4072else
     4073  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
     4074fi
     4075
     4076          ;;
     4077          # Ignore everything else.
     4078  esac
     4079done
     4080# restore positional arguments
     4081set X $ac_save_positional; shift
     4082
     4083# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
     4084# then we insist that the "run path" must be an absolute path (i.e. it
     4085# must begin with a "/").
     4086case `(uname -sr) 2>/dev/null` in
     4087   "SunOS 5"*)
     4088      ac_ld_run_path=`echo $ac_f77_v_output |
     4089                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
     4090      test "x$ac_ld_run_path" != x &&
     4091        if test "$ac_compiler_gnu" = yes; then
     4092  for ac_link_opt in $ac_ld_run_path; do
     4093    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
     4094  done
     4095else
     4096  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
     4097fi
     4098      ;;
     4099esac
     4100fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
     4101
     4102fi
     4103echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
     4104echo "${ECHO_T}$ac_cv_f77_libs" >&6
     4105FLIBS="$ac_cv_f77_libs"
     4106
     4107
     4108ac_ext=f
     4109ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4110ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4111ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4112
     4113ac_ext=f
     4114ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4115ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4116ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4117
     4118echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
     4119echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
     4120if test "${ac_cv_f77_dummy_main+set}" = set; then
     4121  echo $ECHO_N "(cached) $ECHO_C" >&6
     4122else
     4123  ac_f77_dm_save_LIBS=$LIBS
     4124 LIBS="$LIBS $FLIBS"
     4125 ac_fortran_dm_var=F77_DUMMY_MAIN
     4126 ac_ext=c
     4127ac_cpp='$CPP $CPPFLAGS'
     4128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4130ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4131
     4132 # First, try linking without a dummy main:
     4133 cat >conftest.$ac_ext <<_ACEOF
     4134/* confdefs.h.  */
     4135_ACEOF
     4136cat confdefs.h >>conftest.$ac_ext
     4137cat >>conftest.$ac_ext <<_ACEOF
     4138/* end confdefs.h.  */
     4139
     4140#ifdef F77_DUMMY_MAIN
     4141
     4142#  ifdef __cplusplus
     4143     extern "C"
     4144#  endif
     4145   int F77_DUMMY_MAIN() { return 1; }
     4146
     4147#endif
     4148int
     4149main ()
     4150{
     4151
     4152  ;
     4153  return 0;
     4154}
     4155_ACEOF
     4156rm -f conftest.$ac_objext conftest$ac_exeext
     4157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4158  (eval $ac_link) 2>conftest.er1
     4159  ac_status=$?
     4160  grep -v '^ *+' conftest.er1 >conftest.err
     4161  rm -f conftest.er1
     4162  cat conftest.err >&5
     4163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4164  (exit $ac_status); } &&
     4165         { ac_try='test -z "$ac_c_werror_flag"
     4166                         || test ! -s conftest.err'
     4167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4168  (eval $ac_try) 2>&5
     4169  ac_status=$?
     4170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4171  (exit $ac_status); }; } &&
     4172         { ac_try='test -s conftest$ac_exeext'
     4173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4174  (eval $ac_try) 2>&5
     4175  ac_status=$?
     4176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4177  (exit $ac_status); }; }; then
     4178  ac_cv_fortran_dummy_main=none
     4179else
     4180  echo "$as_me: failed program was:" >&5
     4181sed 's/^/| /' conftest.$ac_ext >&5
     4182
     4183ac_cv_fortran_dummy_main=unknown
     4184fi
     4185rm -f conftest.err conftest.$ac_objext \
     4186      conftest$ac_exeext conftest.$ac_ext
     4187
     4188 if test $ac_cv_fortran_dummy_main = unknown; then
     4189   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
     4190     cat >conftest.$ac_ext <<_ACEOF
     4191/* confdefs.h.  */
     4192_ACEOF
     4193cat confdefs.h >>conftest.$ac_ext
     4194cat >>conftest.$ac_ext <<_ACEOF
     4195/* end confdefs.h.  */
     4196#define $ac_fortran_dm_var $ac_func
     4197#ifdef F77_DUMMY_MAIN
     4198
     4199#  ifdef __cplusplus
     4200     extern "C"
     4201#  endif
     4202   int F77_DUMMY_MAIN() { return 1; }
     4203
     4204#endif
     4205int
     4206main ()
     4207{
     4208
     4209  ;
     4210  return 0;
     4211}
     4212_ACEOF
     4213rm -f conftest.$ac_objext conftest$ac_exeext
     4214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4215  (eval $ac_link) 2>conftest.er1
     4216  ac_status=$?
     4217  grep -v '^ *+' conftest.er1 >conftest.err
     4218  rm -f conftest.er1
     4219  cat conftest.err >&5
     4220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4221  (exit $ac_status); } &&
     4222         { ac_try='test -z "$ac_c_werror_flag"
     4223                         || test ! -s conftest.err'
     4224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4225  (eval $ac_try) 2>&5
     4226  ac_status=$?
     4227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4228  (exit $ac_status); }; } &&
     4229         { ac_try='test -s conftest$ac_exeext'
     4230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4231  (eval $ac_try) 2>&5
     4232  ac_status=$?
     4233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4234  (exit $ac_status); }; }; then
     4235  ac_cv_fortran_dummy_main=$ac_func; break
     4236else
     4237  echo "$as_me: failed program was:" >&5
     4238sed 's/^/| /' conftest.$ac_ext >&5
     4239
     4240fi
     4241rm -f conftest.err conftest.$ac_objext \
     4242      conftest$ac_exeext conftest.$ac_ext
     4243   done
     4244 fi
     4245 ac_ext=f
     4246ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4247ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4248ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4249 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
     4250 rm -f conftest*
     4251 LIBS=$ac_f77_dm_save_LIBS
     4252
     4253fi
     4254echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
     4255echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
     4256F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
     4257if test "$F77_DUMMY_MAIN" != unknown; then
     4258  if test $F77_DUMMY_MAIN != none; then
     4259
     4260cat >>confdefs.h <<_ACEOF
     4261#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
     4262_ACEOF
     4263
     4264  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
     4265
     4266cat >>confdefs.h <<\_ACEOF
     4267#define FC_DUMMY_MAIN_EQ_F77 1
     4268_ACEOF
     4269
     4270  fi
     4271fi
     4272else
     4273  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
     4274See \`config.log' for more details." >&5
     4275echo "$as_me: error: linking to Fortran libraries from C fails
     4276See \`config.log' for more details." >&2;}
     4277   { (exit 1); exit 1; }; }
     4278fi
     4279
     4280
     4281ac_ext=f
     4282ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4283ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4284ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4285
     4286ac_ext=f
     4287ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4288ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4289ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4290echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
     4291echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
     4292if test "${ac_cv_f77_mangling+set}" = set; then
     4293  echo $ECHO_N "(cached) $ECHO_C" >&6
     4294else
     4295  cat >conftest.$ac_ext <<_ACEOF
     4296      subroutine foobar()
     4297      return
     4298      end
     4299      subroutine foo_bar()
     4300      return
     4301      end
     4302_ACEOF
     4303rm -f conftest.$ac_objext
     4304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4305  (eval $ac_compile) 2>conftest.er1
     4306  ac_status=$?
     4307  grep -v '^ *+' conftest.er1 >conftest.err
     4308  rm -f conftest.er1
     4309  cat conftest.err >&5
     4310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4311  (exit $ac_status); } &&
     4312         { ac_try='test -z "$ac_f77_werror_flag"
     4313                         || test ! -s conftest.err'
     4314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4315  (eval $ac_try) 2>&5
     4316  ac_status=$?
     4317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4318  (exit $ac_status); }; } &&
     4319         { ac_try='test -s conftest.$ac_objext'
     4320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4321  (eval $ac_try) 2>&5
     4322  ac_status=$?
     4323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4324  (exit $ac_status); }; }; then
     4325  mv conftest.$ac_objext cfortran_test.$ac_objext
     4326
     4327  ac_save_LIBS=$LIBS
     4328  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
     4329
     4330  ac_ext=c
     4331ac_cpp='$CPP $CPPFLAGS'
     4332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4334ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4335  ac_success=no
     4336  for ac_foobar in foobar FOOBAR; do
     4337    for ac_underscore in "" "_"; do
     4338      ac_func="$ac_foobar$ac_underscore"
     4339      cat >conftest.$ac_ext <<_ACEOF
     4340/* confdefs.h.  */
     4341_ACEOF
     4342cat confdefs.h >>conftest.$ac_ext
     4343cat >>conftest.$ac_ext <<_ACEOF
     4344/* end confdefs.h.  */
     4345
     4346/* Override any gcc2 internal prototype to avoid an error.  */
     4347#ifdef __cplusplus
     4348extern "C"
     4349#endif
     4350/* We use char because int might match the return type of a gcc2
     4351   builtin and then its argument prototype would still apply.  */
     4352char $ac_func ();
     4353#ifdef F77_DUMMY_MAIN
     4354
     4355#  ifdef __cplusplus
     4356     extern "C"
     4357#  endif
     4358   int F77_DUMMY_MAIN() { return 1; }
     4359
     4360#endif
     4361int
     4362main ()
     4363{
     4364$ac_func ();
     4365  ;
     4366  return 0;
     4367}
     4368_ACEOF
     4369rm -f conftest.$ac_objext conftest$ac_exeext
     4370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4371  (eval $ac_link) 2>conftest.er1
     4372  ac_status=$?
     4373  grep -v '^ *+' conftest.er1 >conftest.err
     4374  rm -f conftest.er1
     4375  cat conftest.err >&5
     4376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4377  (exit $ac_status); } &&
     4378         { ac_try='test -z "$ac_c_werror_flag"
     4379                         || test ! -s conftest.err'
     4380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4381  (eval $ac_try) 2>&5
     4382  ac_status=$?
     4383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4384  (exit $ac_status); }; } &&
     4385         { ac_try='test -s conftest$ac_exeext'
     4386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4387  (eval $ac_try) 2>&5
     4388  ac_status=$?
     4389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4390  (exit $ac_status); }; }; then
     4391  ac_success=yes; break 2
     4392else
     4393  echo "$as_me: failed program was:" >&5
     4394sed 's/^/| /' conftest.$ac_ext >&5
     4395
     4396fi
     4397rm -f conftest.err conftest.$ac_objext \
     4398      conftest$ac_exeext conftest.$ac_ext
     4399    done
     4400  done
     4401  ac_ext=f
     4402ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4403ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4404ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4405
     4406  if test "$ac_success" = "yes"; then
     4407     case $ac_foobar in
     4408        foobar)
     4409           ac_case=lower
     4410           ac_foo_bar=foo_bar
     4411           ;;
     4412        FOOBAR)
     4413           ac_case=upper
     4414           ac_foo_bar=FOO_BAR
     4415           ;;
     4416     esac
     4417
     4418     ac_ext=c
     4419ac_cpp='$CPP $CPPFLAGS'
     4420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4422ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4423     ac_success_extra=no
     4424     for ac_extra in "" "_"; do
     4425        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
     4426        cat >conftest.$ac_ext <<_ACEOF
     4427/* confdefs.h.  */
     4428_ACEOF
     4429cat confdefs.h >>conftest.$ac_ext
     4430cat >>conftest.$ac_ext <<_ACEOF
     4431/* end confdefs.h.  */
     4432
     4433/* Override any gcc2 internal prototype to avoid an error.  */
     4434#ifdef __cplusplus
     4435extern "C"
     4436#endif
     4437/* We use char because int might match the return type of a gcc2
     4438   builtin and then its argument prototype would still apply.  */
     4439char $ac_func ();
     4440#ifdef F77_DUMMY_MAIN
     4441
     4442#  ifdef __cplusplus
     4443     extern "C"
     4444#  endif
     4445   int F77_DUMMY_MAIN() { return 1; }
     4446
     4447#endif
     4448int
     4449main ()
     4450{
     4451$ac_func ();
     4452  ;
     4453  return 0;
     4454}
     4455_ACEOF
     4456rm -f conftest.$ac_objext conftest$ac_exeext
     4457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4458  (eval $ac_link) 2>conftest.er1
     4459  ac_status=$?
     4460  grep -v '^ *+' conftest.er1 >conftest.err
     4461  rm -f conftest.er1
     4462  cat conftest.err >&5
     4463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4464  (exit $ac_status); } &&
     4465         { ac_try='test -z "$ac_c_werror_flag"
     4466                         || test ! -s conftest.err'
     4467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4468  (eval $ac_try) 2>&5
     4469  ac_status=$?
     4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4471  (exit $ac_status); }; } &&
     4472         { ac_try='test -s conftest$ac_exeext'
     4473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4474  (eval $ac_try) 2>&5
     4475  ac_status=$?
     4476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4477  (exit $ac_status); }; }; then
     4478  ac_success_extra=yes; break
     4479else
     4480  echo "$as_me: failed program was:" >&5
     4481sed 's/^/| /' conftest.$ac_ext >&5
     4482
     4483fi
     4484rm -f conftest.err conftest.$ac_objext \
     4485      conftest$ac_exeext conftest.$ac_ext
     4486     done
     4487     ac_ext=f
     4488ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4489ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4490ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4491
     4492     if test "$ac_success_extra" = "yes"; then
     4493        ac_cv_f77_mangling="$ac_case case"
     4494        if test -z "$ac_underscore"; then
     4495           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
     4496        else
     4497           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
     4498        fi
     4499        if test -z "$ac_extra"; then
     4500           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
     4501        else
     4502           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
     4503        fi
     4504      else
     4505        ac_cv_f77_mangling="unknown"
     4506      fi
     4507  else
     4508     ac_cv_f77_mangling="unknown"
     4509  fi
     4510
     4511  LIBS=$ac_save_LIBS
     4512  rm -f cfortran_test* conftest*
     4513else
     4514  echo "$as_me: failed program was:" >&5
     4515sed 's/^/| /' conftest.$ac_ext >&5
     4516
     4517{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
     4518See \`config.log' for more details." >&5
     4519echo "$as_me: error: cannot compile a simple Fortran program
     4520See \`config.log' for more details." >&2;}
     4521   { (exit 1); exit 1; }; }
     4522fi
     4523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4524
     4525fi
     4526echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
     4527echo "${ECHO_T}$ac_cv_f77_mangling" >&6
     4528
     4529ac_ext=f
     4530ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4531ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4532ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4533
     4534
     4535ac_ext=f
     4536ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4537ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4538ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4539
     4540
     4541save_FLIBS="$FLIBS"
     4542
     4543ac_ext=f
     4544ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4545ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4546ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4547
     4548
     4549case $ac_cv_f77_mangling in
     4550  "lower case, no underscore, no extra underscore")
     4551          cat >>confdefs.h <<\_ACEOF
     4552#define F77_FUNC(name,NAME) name
     4553_ACEOF
     4554
     4555          cat >>confdefs.h <<\_ACEOF
     4556#define F77_FUNC_(name,NAME) name
     4557_ACEOF
     4558 ;;
     4559  "lower case, no underscore, extra underscore")
     4560          cat >>confdefs.h <<\_ACEOF
     4561#define F77_FUNC(name,NAME) name
     4562_ACEOF
     4563
     4564          cat >>confdefs.h <<\_ACEOF
     4565#define F77_FUNC_(name,NAME) name ## _
     4566_ACEOF
     4567 ;;
     4568  "lower case, underscore, no extra underscore")
     4569          cat >>confdefs.h <<\_ACEOF
     4570#define F77_FUNC(name,NAME) name ## _
     4571_ACEOF
     4572
     4573          cat >>confdefs.h <<\_ACEOF
     4574#define F77_FUNC_(name,NAME) name ## _
     4575_ACEOF
     4576 ;;
     4577  "lower case, underscore, extra underscore")
     4578          cat >>confdefs.h <<\_ACEOF
     4579#define F77_FUNC(name,NAME) name ## _
     4580_ACEOF
     4581
     4582          cat >>confdefs.h <<\_ACEOF
     4583#define F77_FUNC_(name,NAME) name ## __
     4584_ACEOF
     4585 ;;
     4586  "upper case, no underscore, no extra underscore")
     4587          cat >>confdefs.h <<\_ACEOF
     4588#define F77_FUNC(name,NAME) NAME
     4589_ACEOF
     4590
     4591          cat >>confdefs.h <<\_ACEOF
     4592#define F77_FUNC_(name,NAME) NAME
     4593_ACEOF
     4594 ;;
     4595  "upper case, no underscore, extra underscore")
     4596          cat >>confdefs.h <<\_ACEOF
     4597#define F77_FUNC(name,NAME) NAME
     4598_ACEOF
     4599
     4600          cat >>confdefs.h <<\_ACEOF
     4601#define F77_FUNC_(name,NAME) NAME ## _
     4602_ACEOF
     4603 ;;
     4604  "upper case, underscore, no extra underscore")
     4605          cat >>confdefs.h <<\_ACEOF
     4606#define F77_FUNC(name,NAME) NAME ## _
     4607_ACEOF
     4608
     4609          cat >>confdefs.h <<\_ACEOF
     4610#define F77_FUNC_(name,NAME) NAME ## _
     4611_ACEOF
     4612 ;;
     4613  "upper case, underscore, extra underscore")
     4614          cat >>confdefs.h <<\_ACEOF
     4615#define F77_FUNC(name,NAME) NAME ## _
     4616_ACEOF
     4617
     4618          cat >>confdefs.h <<\_ACEOF
     4619#define F77_FUNC_(name,NAME) NAME ## __
     4620_ACEOF
     4621 ;;
     4622  *)
     4623          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
     4624echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
     4625          ;;
     4626esac
     4627
     4628ac_ext=f
     4629ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4630ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4631ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4632
     4633
     4634if test x"$save_FLIBS" != x; then
     4635  FLIBS="$save_FLIBS"
     4636else
     4637  # This is to correct a missing exclusion in autoconf 2.59
     4638  if test x"$FLIBS" != x; then
     4639    my_flibs=
     4640    for flag in $FLIBS; do
     4641      case $flag in
     4642        -lcrt*.o) ;;
     4643               *) my_flibs="$my_flibs $flag" ;;
     4644      esac
     4645    done
     4646    FLIBS="$my_flibs"
     4647  fi
     4648
     4649  case $build in
     4650  # The following is a fix to define FLIBS for ifort on Windows
     4651  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
     4652  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
     4653  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
     4654     *-cygwin* | *-mingw*)
     4655       case "$F77" in
     4656         ifort* | */ifort* | IFORT* | */IFORT*)
     4657           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
     4658#           if "$coin_debug_compile" = true ; then
     4659#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
     4660#           else
     4661#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
     4662#           fi
     4663           ;;
     4664         compile_f2c*)
     4665           FLIBS=`$F77 -FLIBS` ;;
     4666       esac;;
     4667     *-hp-*)
     4668         FLIBS="$FLIBS -lm";;
     4669     *-ibm-*)
     4670         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
     4671     *-linux-*)
     4672       case "$F77" in
     4673         pgf77* | */pgf77* | pgf90* | */pgf90*)
     4674# ask linker to go through the archives multiple times
     4675# (the Fortran compiler seems to do that automatically...
     4676           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
     4677       esac
     4678  esac
     4679  ac_cv_f77_libs="$FLIBS"
     4680fi
     4681
     4682ac_ext=c
     4683ac_cpp='$CPP $CPPFLAGS'
     4684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4686ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4687
     4688
     4689
     4690
     4691# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
     4692coin_need_flibs=yes
     4693
    38124694# Take care that optimization is disbled for DLAMCH.F
    38134695
     
    54756357*-*-irix6*)
    54766358  # Find out which ABI we are using.
    5477   echo '#line 5477 "configure"' > conftest.$ac_ext
     6359  echo '#line 6359 "configure"' > conftest.$ac_ext
    54786360  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    54796361  (eval $ac_compile) 2>&5
     
    55786460/* end confdefs.h.  */
    55796461
     6462#ifdef F77_DUMMY_MAIN
     6463
     6464#  ifdef __cplusplus
     6465     extern "C"
     6466#  endif
     6467   int F77_DUMMY_MAIN() { return 1; }
     6468
     6469#endif
    55806470int
    55816471main ()
     
    59086798#include <float.h>
    59096799
     6800#ifdef F77_DUMMY_MAIN
     6801
     6802#  ifdef __cplusplus
     6803     extern "C"
     6804#  endif
     6805   int F77_DUMMY_MAIN() { return 1; }
     6806
     6807#endif
    59106808int
    59116809main ()
     
    64057303/* end confdefs.h.  */
    64067304
     7305#ifdef F77_DUMMY_MAIN
     7306
     7307#  ifdef __cplusplus
     7308     extern "C"
     7309#  endif
     7310   int F77_DUMMY_MAIN() { return 1; }
     7311
     7312#endif
    64077313int
    64087314main ()
     
    64677373/* end confdefs.h.  */
    64687374
     7375#ifdef F77_DUMMY_MAIN
     7376
     7377#  ifdef __cplusplus
     7378     extern "C"
     7379#  endif
     7380   int F77_DUMMY_MAIN() { return 1; }
     7381
     7382#endif
    64697383int
    64707384main ()
     
    65397453$ac_declaration
    65407454#include <stdlib.h>
     7455#ifdef F77_DUMMY_MAIN
     7456
     7457#  ifdef __cplusplus
     7458     extern "C"
     7459#  endif
     7460   int F77_DUMMY_MAIN() { return 1; }
     7461
     7462#endif
    65417463int
    65427464main ()
     
    65847506/* end confdefs.h.  */
    65857507$ac_declaration
     7508#ifdef F77_DUMMY_MAIN
     7509
     7510#  ifdef __cplusplus
     7511     extern "C"
     7512#  endif
     7513   int F77_DUMMY_MAIN() { return 1; }
     7514
     7515#endif
    65867516int
    65877517main ()
     
    79048834   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    79058835   -e 's:$: $lt_compiler_flag:'`
    7906    (eval echo "\"\$as_me:7906: $lt_compile\"" >&5)
     8836   (eval echo "\"\$as_me:8836: $lt_compile\"" >&5)
    79078837   (eval "$lt_compile" 2>conftest.err)
    79088838   ac_status=$?
    79098839   cat conftest.err >&5
    7910    echo "$as_me:7910: \$? = $ac_status" >&5
     8840   echo "$as_me:8840: \$? = $ac_status" >&5
    79118841   if (exit $ac_status) && test -s "$ac_outfile"; then
    79128842     # The compiler can only warn and ignore the option if not recognized
     
    81729102   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81739103   -e 's:$: $lt_compiler_flag:'`
    8174    (eval echo "\"\$as_me:8174: $lt_compile\"" >&5)
     9104   (eval echo "\"\$as_me:9104: $lt_compile\"" >&5)
    81759105   (eval "$lt_compile" 2>conftest.err)
    81769106   ac_status=$?
    81779107   cat conftest.err >&5
    8178    echo "$as_me:8178: \$? = $ac_status" >&5
     9108   echo "$as_me:9108: \$? = $ac_status" >&5
    81799109   if (exit $ac_status) && test -s "$ac_outfile"; then
    81809110     # The compiler can only warn and ignore the option if not recognized
     
    82769206   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    82779207   -e 's:$: $lt_compiler_flag:'`
    8278    (eval echo "\"\$as_me:8278: $lt_compile\"" >&5)
     9208   (eval echo "\"\$as_me:9208: $lt_compile\"" >&5)
    82799209   (eval "$lt_compile" 2>out/conftest.err)
    82809210   ac_status=$?
    82819211   cat out/conftest.err >&5
    8282    echo "$as_me:8282: \$? = $ac_status" >&5
     9212   echo "$as_me:9212: \$? = $ac_status" >&5
    82839213   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    82849214   then
     
    87359665/* end confdefs.h.  */
    87369666
     9667#ifdef F77_DUMMY_MAIN
     9668
     9669#  ifdef __cplusplus
     9670     extern "C"
     9671#  endif
     9672   int F77_DUMMY_MAIN() { return 1; }
     9673
     9674#endif
    87379675int
    87389676main ()
     
    87969734/* end confdefs.h.  */
    87979735
     9736#ifdef F77_DUMMY_MAIN
     9737
     9738#  ifdef __cplusplus
     9739     extern "C"
     9740#  endif
     9741   int F77_DUMMY_MAIN() { return 1; }
     9742
     9743#endif
    87989744int
    87999745main ()
     
    1006411010   builtin and then its argument prototype would still apply.  */
    1006511011char dlopen ();
     11012#ifdef F77_DUMMY_MAIN
     11013
     11014#  ifdef __cplusplus
     11015     extern "C"
     11016#  endif
     11017   int F77_DUMMY_MAIN() { return 1; }
     11018
     11019#endif
    1006611020int
    1006711021main ()
     
    1016811122#endif
    1016911123
     11124#ifdef F77_DUMMY_MAIN
     11125
     11126#  ifdef __cplusplus
     11127     extern "C"
     11128#  endif
     11129   int F77_DUMMY_MAIN() { return 1; }
     11130
     11131#endif
    1017011132int
    1017111133main ()
     
    1023411196   builtin and then its argument prototype would still apply.  */
    1023511197char shl_load ();
     11198#ifdef F77_DUMMY_MAIN
     11199
     11200#  ifdef __cplusplus
     11201     extern "C"
     11202#  endif
     11203   int F77_DUMMY_MAIN() { return 1; }
     11204
     11205#endif
    1023611206int
    1023711207main ()
     
    1032811298#endif
    1032911299
     11300#ifdef F77_DUMMY_MAIN
     11301
     11302#  ifdef __cplusplus
     11303     extern "C"
     11304#  endif
     11305   int F77_DUMMY_MAIN() { return 1; }
     11306
     11307#endif
    1033011308int
    1033111309main ()
     
    1039411372   builtin and then its argument prototype would still apply.  */
    1039511373char dlopen ();
     11374#ifdef F77_DUMMY_MAIN
     11375
     11376#  ifdef __cplusplus
     11377     extern "C"
     11378#  endif
     11379   int F77_DUMMY_MAIN() { return 1; }
     11380
     11381#endif
    1039611382int
    1039711383main ()
     
    1046111447   builtin and then its argument prototype would still apply.  */
    1046211448char dlopen ();
     11449#ifdef F77_DUMMY_MAIN
     11450
     11451#  ifdef __cplusplus
     11452     extern "C"
     11453#  endif
     11454   int F77_DUMMY_MAIN() { return 1; }
     11455
     11456#endif
    1046311457int
    1046411458main ()
     
    1052811522   builtin and then its argument prototype would still apply.  */
    1052911523char dld_link ();
     11524#ifdef F77_DUMMY_MAIN
     11525
     11526#  ifdef __cplusplus
     11527     extern "C"
     11528#  endif
     11529   int F77_DUMMY_MAIN() { return 1; }
     11530
     11531#endif
    1053011532int
    1053111533main ()
     
    1062111623  lt_status=$lt_dlunknown
    1062211624  cat > conftest.$ac_ext <<EOF
    10623 #line 10623 "configure"
     11625#line 11625 "configure"
    1062411626#include "confdefs.h"
    1062511627
     
    1072111723  lt_status=$lt_dlunknown
    1072211724  cat > conftest.$ac_ext <<EOF
    10723 #line 10723 "configure"
     11725#line 11725 "configure"
    1072411726#include "confdefs.h"
    1072511727
     
    1178712789/* end confdefs.h.  */
    1178812790
     12791#ifdef F77_DUMMY_MAIN
     12792
     12793#  ifdef __cplusplus
     12794     extern "C"
     12795#  endif
     12796   int F77_DUMMY_MAIN() { return 1; }
     12797
     12798#endif
    1178912799int
    1179012800main ()
     
    1184912859/* end confdefs.h.  */
    1185012860
     12861#ifdef F77_DUMMY_MAIN
     12862
     12863#  ifdef __cplusplus
     12864     extern "C"
     12865#  endif
     12866   int F77_DUMMY_MAIN() { return 1; }
     12867
     12868#endif
    1185112869int
    1185212870main ()
     
    1306514083   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1306614084   -e 's:$: $lt_compiler_flag:'`
    13067    (eval echo "\"\$as_me:13067: $lt_compile\"" >&5)
     14085   (eval echo "\"\$as_me:14085: $lt_compile\"" >&5)
    1306814086   (eval "$lt_compile" 2>conftest.err)
    1306914087   ac_status=$?
    1307014088   cat conftest.err >&5
    13071    echo "$as_me:13071: \$? = $ac_status" >&5
     14089   echo "$as_me:14089: \$? = $ac_status" >&5
    1307214090   if (exit $ac_status) && test -s "$ac_outfile"; then
    1307314091     # The compiler can only warn and ignore the option if not recognized
     
    1316914187   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1317014188   -e 's:$: $lt_compiler_flag:'`
    13171    (eval echo "\"\$as_me:13171: $lt_compile\"" >&5)
     14189   (eval echo "\"\$as_me:14189: $lt_compile\"" >&5)
    1317214190   (eval "$lt_compile" 2>out/conftest.err)
    1317314191   ac_status=$?
    1317414192   cat out/conftest.err >&5
    13175    echo "$as_me:13175: \$? = $ac_status" >&5
     14193   echo "$as_me:14193: \$? = $ac_status" >&5
    1317614194   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1317714195   then
     
    1473915757   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1474015758   -e 's:$: $lt_compiler_flag:'`
    14741    (eval echo "\"\$as_me:14741: $lt_compile\"" >&5)
     15759   (eval echo "\"\$as_me:15759: $lt_compile\"" >&5)
    1474215760   (eval "$lt_compile" 2>conftest.err)
    1474315761   ac_status=$?
    1474415762   cat conftest.err >&5
    14745    echo "$as_me:14745: \$? = $ac_status" >&5
     15763   echo "$as_me:15763: \$? = $ac_status" >&5
    1474615764   if (exit $ac_status) && test -s "$ac_outfile"; then
    1474715765     # The compiler can only warn and ignore the option if not recognized
     
    1484315861   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1484415862   -e 's:$: $lt_compiler_flag:'`
    14845    (eval echo "\"\$as_me:14845: $lt_compile\"" >&5)
     15863   (eval echo "\"\$as_me:15863: $lt_compile\"" >&5)
    1484615864   (eval "$lt_compile" 2>out/conftest.err)
    1484715865   ac_status=$?
    1484815866   cat out/conftest.err >&5
    14849    echo "$as_me:14849: \$? = $ac_status" >&5
     15867   echo "$as_me:15867: \$? = $ac_status" >&5
    1485015868   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1485115869   then
     
    1705018068   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1705118069   -e 's:$: $lt_compiler_flag:'`
    17052    (eval echo "\"\$as_me:17052: $lt_compile\"" >&5)
     18070   (eval echo "\"\$as_me:18070: $lt_compile\"" >&5)
    1705318071   (eval "$lt_compile" 2>conftest.err)
    1705418072   ac_status=$?
    1705518073   cat conftest.err >&5
    17056    echo "$as_me:17056: \$? = $ac_status" >&5
     18074   echo "$as_me:18074: \$? = $ac_status" >&5
    1705718075   if (exit $ac_status) && test -s "$ac_outfile"; then
    1705818076     # The compiler can only warn and ignore the option if not recognized
     
    1731818336   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1731918337   -e 's:$: $lt_compiler_flag:'`
    17320    (eval echo "\"\$as_me:17320: $lt_compile\"" >&5)
     18338   (eval echo "\"\$as_me:18338: $lt_compile\"" >&5)
    1732118339   (eval "$lt_compile" 2>conftest.err)
    1732218340   ac_status=$?
    1732318341   cat conftest.err >&5
    17324    echo "$as_me:17324: \$? = $ac_status" >&5
     18342   echo "$as_me:18342: \$? = $ac_status" >&5
    1732518343   if (exit $ac_status) && test -s "$ac_outfile"; then
    1732618344     # The compiler can only warn and ignore the option if not recognized
     
    1742218440   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1742318441   -e 's:$: $lt_compiler_flag:'`
    17424    (eval echo "\"\$as_me:17424: $lt_compile\"" >&5)
     18442   (eval echo "\"\$as_me:18442: $lt_compile\"" >&5)
    1742518443   (eval "$lt_compile" 2>out/conftest.err)
    1742618444   ac_status=$?
    1742718445   cat out/conftest.err >&5
    17428    echo "$as_me:17428: \$? = $ac_status" >&5
     18446   echo "$as_me:18446: \$? = $ac_status" >&5
    1742918447   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1743018448   then
     
    1788118899/* end confdefs.h.  */
    1788218900
     18901#ifdef F77_DUMMY_MAIN
     18902
     18903#  ifdef __cplusplus
     18904     extern "C"
     18905#  endif
     18906   int F77_DUMMY_MAIN() { return 1; }
     18907
     18908#endif
    1788318909int
    1788418910main ()
     
    1794218968/* end confdefs.h.  */
    1794318969
     18970#ifdef F77_DUMMY_MAIN
     18971
     18972#  ifdef __cplusplus
     18973     extern "C"
     18974#  endif
     18975   int F77_DUMMY_MAIN() { return 1; }
     18976
     18977#endif
    1794418978int
    1794518979main ()
     
    2113522169s,@ac_ct_F77@,$ac_ct_F77,;t t
    2113622170s,@MPIF77@,$MPIF77,;t t
     22171s,@FLIBS@,$FLIBS,;t t
    2113722172s,@DLAMCH_FFLAGS@,$DLAMCH_FFLAGS,;t t
    2113822173s,@EGREP@,$EGREP,;t t
  • ThirdParty/Lapack/branches/BSPsplit/configure.ac

    r1446 r1460  
    5151AC_COIN_PROG_F77
    5252
     53# Get the linker flags (FLIBS) that are required for linking against this blas library
     54AC_COIN_F77_WRAPPERS
     55
     56# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
     57coin_need_flibs=yes
     58
    5359# Take care that optimization is disbled for DLAMCH.F
    5460AC_ARG_VAR(DLAMCH_FFLAGS,[Fortran compiler options for DLAMCH.F])
  • ThirdParty/Mumps/branches/BSPsplit/configure

    r1453 r1460  
    47024702
    47034703
     4704# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
     4705coin_need_flibs=yes
     4706
    47044707# We need to translate the result from autoconf to what MUMPS wants
    47054708case "$ac_cv_f77_mangling" in
     
    70077010*-*-irix6*)
    70087011  # Find out which ABI we are using.
    7009   echo '#line 7009 "configure"' > conftest.$ac_ext
     7012  echo '#line 7012 "configure"' > conftest.$ac_ext
    70107013  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    70117014  (eval $ac_compile) 2>&5
     
    90039006   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    90049007   -e 's:$: $lt_compiler_flag:'`
    9005    (eval echo "\"\$as_me:9005: $lt_compile\"" >&5)
     9008   (eval echo "\"\$as_me:9008: $lt_compile\"" >&5)
    90069009   (eval "$lt_compile" 2>conftest.err)
    90079010   ac_status=$?
    90089011   cat conftest.err >&5
    9009    echo "$as_me:9009: \$? = $ac_status" >&5
     9012   echo "$as_me:9012: \$? = $ac_status" >&5
    90109013   if (exit $ac_status) && test -s "$ac_outfile"; then
    90119014     # The compiler can only warn and ignore the option if not recognized
     
    92719274   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    92729275   -e 's:$: $lt_compiler_flag:'`
    9273    (eval echo "\"\$as_me:9273: $lt_compile\"" >&5)
     9276   (eval echo "\"\$as_me:9276: $lt_compile\"" >&5)
    92749277   (eval "$lt_compile" 2>conftest.err)
    92759278   ac_status=$?
    92769279   cat conftest.err >&5
    9277    echo "$as_me:9277: \$? = $ac_status" >&5
     9280   echo "$as_me:9280: \$? = $ac_status" >&5
    92789281   if (exit $ac_status) && test -s "$ac_outfile"; then
    92799282     # The compiler can only warn and ignore the option if not recognized
     
    93759378   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    93769379   -e 's:$: $lt_compiler_flag:'`
    9377    (eval echo "\"\$as_me:9377: $lt_compile\"" >&5)
     9380   (eval echo "\"\$as_me:9380: $lt_compile\"" >&5)
    93789381   (eval "$lt_compile" 2>out/conftest.err)
    93799382   ac_status=$?
    93809383   cat out/conftest.err >&5
    9381    echo "$as_me:9381: \$? = $ac_status" >&5
     9384   echo "$as_me:9384: \$? = $ac_status" >&5
    93829385   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    93839386   then
     
    1179211795  lt_status=$lt_dlunknown
    1179311796  cat > conftest.$ac_ext <<EOF
    11794 #line 11794 "configure"
     11797#line 11797 "configure"
    1179511798#include "confdefs.h"
    1179611799
     
    1189211895  lt_status=$lt_dlunknown
    1189311896  cat > conftest.$ac_ext <<EOF
    11894 #line 11894 "configure"
     11897#line 11897 "configure"
    1189511898#include "confdefs.h"
    1189611899
     
    1425214255   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1425314256   -e 's:$: $lt_compiler_flag:'`
    14254    (eval echo "\"\$as_me:14254: $lt_compile\"" >&5)
     14257   (eval echo "\"\$as_me:14257: $lt_compile\"" >&5)
    1425514258   (eval "$lt_compile" 2>conftest.err)
    1425614259   ac_status=$?
    1425714260   cat conftest.err >&5
    14258    echo "$as_me:14258: \$? = $ac_status" >&5
     14261   echo "$as_me:14261: \$? = $ac_status" >&5
    1425914262   if (exit $ac_status) && test -s "$ac_outfile"; then
    1426014263     # The compiler can only warn and ignore the option if not recognized
     
    1435614359   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1435714360   -e 's:$: $lt_compiler_flag:'`
    14358    (eval echo "\"\$as_me:14358: $lt_compile\"" >&5)
     14361   (eval echo "\"\$as_me:14361: $lt_compile\"" >&5)
    1435914362   (eval "$lt_compile" 2>out/conftest.err)
    1436014363   ac_status=$?
    1436114364   cat out/conftest.err >&5
    14362    echo "$as_me:14362: \$? = $ac_status" >&5
     14365   echo "$as_me:14365: \$? = $ac_status" >&5
    1436314366   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1436414367   then
     
    1592615929   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1592715930   -e 's:$: $lt_compiler_flag:'`
    15928    (eval echo "\"\$as_me:15928: $lt_compile\"" >&5)
     15931   (eval echo "\"\$as_me:15931: $lt_compile\"" >&5)
    1592915932   (eval "$lt_compile" 2>conftest.err)
    1593015933   ac_status=$?
    1593115934   cat conftest.err >&5
    15932    echo "$as_me:15932: \$? = $ac_status" >&5
     15935   echo "$as_me:15935: \$? = $ac_status" >&5
    1593315936   if (exit $ac_status) && test -s "$ac_outfile"; then
    1593415937     # The compiler can only warn and ignore the option if not recognized
     
    1603016033   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1603116034   -e 's:$: $lt_compiler_flag:'`
    16032    (eval echo "\"\$as_me:16032: $lt_compile\"" >&5)
     16035   (eval echo "\"\$as_me:16035: $lt_compile\"" >&5)
    1603316036   (eval "$lt_compile" 2>out/conftest.err)
    1603416037   ac_status=$?
    1603516038   cat out/conftest.err >&5
    16036    echo "$as_me:16036: \$? = $ac_status" >&5
     16039   echo "$as_me:16039: \$? = $ac_status" >&5
    1603716040   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1603816041   then
     
    1823718240   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1823818241   -e 's:$: $lt_compiler_flag:'`
    18239    (eval echo "\"\$as_me:18239: $lt_compile\"" >&5)
     18242   (eval echo "\"\$as_me:18242: $lt_compile\"" >&5)
    1824018243   (eval "$lt_compile" 2>conftest.err)
    1824118244   ac_status=$?
    1824218245   cat conftest.err >&5
    18243    echo "$as_me:18243: \$? = $ac_status" >&5
     18246   echo "$as_me:18246: \$? = $ac_status" >&5
    1824418247   if (exit $ac_status) && test -s "$ac_outfile"; then
    1824518248     # The compiler can only warn and ignore the option if not recognized
     
    1850518508   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1850618509   -e 's:$: $lt_compiler_flag:'`
    18507    (eval echo "\"\$as_me:18507: $lt_compile\"" >&5)
     18510   (eval echo "\"\$as_me:18510: $lt_compile\"" >&5)
    1850818511   (eval "$lt_compile" 2>conftest.err)
    1850918512   ac_status=$?
    1851018513   cat conftest.err >&5
    18511    echo "$as_me:18511: \$? = $ac_status" >&5
     18514   echo "$as_me:18514: \$? = $ac_status" >&5
    1851218515   if (exit $ac_status) && test -s "$ac_outfile"; then
    1851318516     # The compiler can only warn and ignore the option if not recognized
     
    1860918612   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1861018613   -e 's:$: $lt_compiler_flag:'`
    18611    (eval echo "\"\$as_me:18611: $lt_compile\"" >&5)
     18614   (eval echo "\"\$as_me:18614: $lt_compile\"" >&5)
    1861218615   (eval "$lt_compile" 2>out/conftest.err)
    1861318616   ac_status=$?
    1861418617   cat out/conftest.err >&5
    18615    echo "$as_me:18615: \$? = $ac_status" >&5
     18618   echo "$as_me:18618: \$? = $ac_status" >&5
    1861618619   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1861718620   then
     
    2367423677  withval="$with_blas_incdir"
    2367523678  coin_has_blas=yes
    23676      BLAS_CFLAGS="-I$withval"
     23679     BLAS_CFLAGS="-I`${CYGPATH_W} $withval`"
    2367723680fi;
    2367823681
     
    2373423737  if $PKG_CONFIG --exists "blas"; then
    2373523738    BLAS_VERSIONS="`$PKG_CONFIG --modversion blas 2>/dev/null`"
    23736      BLAS_CFLAGS=`$PKG_CONFIG --cflags "blas" 2>/dev/null`
     23739     cflags=`$PKG_CONFIG --cflags "blas" 2>/dev/null`
     23740    # pkg-config cannot handle spaces, so we put CYGPATH_W after -I's after extracting it from pkg-config
     23741        # but only do this if is not trivial
     23742    if test "$CYGPATH_W" != echo ; then
     23743          echo "put CYGPATH_W into cflags = $cflags"
     23744          cflags=`echo $cflags | sed -e 's/-I\(.^ *\)/-I\`$CYGPATH_W \1\`/g'`
     23745        else
     23746          echo "do not put CYGPATH_W = $CYGPATH_W in"
     23747        fi
     23748    BLAS_CFLAGS="$cflags"
    2373723749    BLAS_LIBS=`$PKG_CONFIG --libs "blas" 2>/dev/null`
    2373823750    BLAS_DATA=`$PKG_CONFIG --variable=datadir "blas" 2>/dev/null`
     
    2390223914  withval="$with_metis_incdir"
    2390323915  coin_has_metis=yes
    23904      METIS_CFLAGS="-I$withval"
     23916     METIS_CFLAGS="-I`${CYGPATH_W} $withval`"
    2390523917fi;
    2390623918
     
    2396223974  if $PKG_CONFIG --exists "metis >= 4.0"; then
    2396323975    METIS_VERSIONS="`$PKG_CONFIG --modversion metis >= 4.0 2>/dev/null`"
    23964      METIS_CFLAGS=`$PKG_CONFIG --cflags "metis >= 4.0" 2>/dev/null`
     23976     cflags=`$PKG_CONFIG --cflags "metis >= 4.0" 2>/dev/null`
     23977    # pkg-config cannot handle spaces, so we put CYGPATH_W after -I's after extracting it from pkg-config
     23978        # but only do this if is not trivial
     23979    if test "$CYGPATH_W" != echo ; then
     23980          echo "put CYGPATH_W into cflags = $cflags"
     23981          cflags=`echo $cflags | sed -e 's/-I\(.^ *\)/-I\`$CYGPATH_W \1\`/g'`
     23982        else
     23983          echo "do not put CYGPATH_W = $CYGPATH_W in"
     23984        fi
     23985    METIS_CFLAGS="$cflags"
    2396523986    METIS_LIBS=`$PKG_CONFIG --libs "metis >= 4.0" 2>/dev/null`
    2396623987    METIS_DATA=`$PKG_CONFIG --variable=datadir "metis >= 4.0" 2>/dev/null`
  • ThirdParty/Mumps/branches/BSPsplit/configure.ac

    r1446 r1460  
    5656# Find out how to call Fortran from C and determine Fortran runtime libraries
    5757AC_COIN_F77_WRAPPERS
     58
     59# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
     60coin_need_flibs=yes
    5861
    5962# We need to translate the result from autoconf to what MUMPS wants
Note: See TracChangeset for help on using the changeset viewer.