mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-26 22:28:41 -05:00
- Export a few more missing configure variables.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@1216 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
fad82eff50
commit
cab19b6e0e
@ -4,7 +4,7 @@ MKDIR ?= mkdir
|
||||
INSTALL= install
|
||||
FFLAGS = @FFLAGS@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBS = @LIBS@
|
||||
LIBS = @LIBS@ -lfftw3f
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CFLAGS = @CFLAGS@
|
||||
PREFIX = @PREFIX@
|
||||
|
55
configure.ac
55
configure.ac
@ -1,4 +1,4 @@
|
||||
dnl $Id$
|
||||
dnl $Id$
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
|
||||
dnl AC_PREREQ(2.61)
|
||||
@ -179,24 +179,16 @@ if test "$assert" = no; then
|
||||
AC_DEFINE(NDEBUG, 1, [Define this to disable debugging support.])
|
||||
fi
|
||||
|
||||
|
||||
if test "$prefix" = "NONE"; then
|
||||
AC_DEFINE_UNQUOTED(PREFIX, "$ac_default_prefix", [Prefix where wsjt is installed.])
|
||||
|
||||
prefix=${ac_default_prefix}
|
||||
else
|
||||
|
||||
dnl Don't get bitten by Cygwin's stupidity if the user specified
|
||||
dnl a custom prefix with a trailing slash
|
||||
|
||||
prefix=`echo $prefix | sed 's/\/$//'`
|
||||
AC_DEFINE_UNQUOTED(PREFIX, "$prefix", [Prefix where wsjt is installed.])
|
||||
|
||||
prefix=`echo ${ac_default_prefix} | sed 's/\/$//'`
|
||||
fi
|
||||
|
||||
AC_CONFIG_FILES( \
|
||||
Makefile
|
||||
)
|
||||
|
||||
dnl pick gfortran or g95
|
||||
dnl ====================
|
||||
|
||||
@ -211,31 +203,28 @@ AC_HELP_STRING([--enable-gfortran],[Use gfortran compiler if available.]),
|
||||
dnl now set conf.h,, CPPFLAGS and CFLAGS flags as needed
|
||||
dnl ====================================================
|
||||
|
||||
if test ! -z $GFORTRAN ; then
|
||||
echo "*** gfortran compiler found at ${GFORTRAN}"
|
||||
if test "$gfortran" = yes; then
|
||||
FC_LIB_PATH=`${GFORTRAN} -print-file-name=`
|
||||
FC=`basename ${GFORTRAN}`
|
||||
g95=no
|
||||
FFLAGS="${FFLAGS_GFORTRAN}"
|
||||
FCV="gnu95"
|
||||
fi
|
||||
else
|
||||
echo "*** No gfortran compiler found"
|
||||
if test "$g95" = yes; then
|
||||
FC_LIB_PATH=${G95_LIB_PATH}
|
||||
FC=${G95}
|
||||
gfortran=no
|
||||
elif test "$gfortran" = yes; then
|
||||
FC_LIB_PATH=${GFORTRAN_LIB_PATH}
|
||||
FC=${GFORTRAN}
|
||||
g95=no
|
||||
fi
|
||||
|
||||
if test ! -z $G95 ; then
|
||||
echo "*** g95 compiler found at ${G95}"
|
||||
if test "$g95" = yes; then
|
||||
FC_LIB_PATH=`${G95} -print-file-name=`
|
||||
FC=`basename ${G95}`
|
||||
gfortran=no
|
||||
FFLAGS="${FFLAGS_G95}"
|
||||
FCV=${FCV_G95}
|
||||
if test -z $FC ; then
|
||||
if test ! -z $GFORTRAN ; then
|
||||
FC_LIB_PATH=${GFORTRAN_LIB_PATH}
|
||||
FC=${GFORTRAN}
|
||||
gfortran=yes
|
||||
elif test ! -z $G95 ; then
|
||||
FC_LIB_PATH=${G95_LIB_PATH}
|
||||
FC=${G95}
|
||||
g95=yes
|
||||
fi
|
||||
else
|
||||
echo "*** No g95 compiler found"
|
||||
fi
|
||||
|
||||
dnl
|
||||
dnl if FC is not set by now, pick a compiler for user
|
||||
dnl
|
||||
@ -268,6 +257,8 @@ AC_DEFINE_UNQUOTED(FC_LIB_PATH, "${FC_LIB_PATH}", [Path to fortran libs.])
|
||||
AC_SUBST(FC_LIB_PATH, "${FC_LIB_PATH}")
|
||||
AC_DEFINE_UNQUOTED(FC, "${FC}", [Fortran compiler.])
|
||||
AC_SUBST(FC, "${FC}")
|
||||
AC_SUBST(FCV, "${FCV}")
|
||||
AC_SUBST(PREFIX, "${prefix}")
|
||||
|
||||
dnl set defaults
|
||||
dnl ============
|
||||
|
Loading…
Reference in New Issue
Block a user