mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-18 10:01:57 -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
|
INSTALL= install
|
||||||
FFLAGS = @FFLAGS@
|
FFLAGS = @FFLAGS@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@ -lfftw3f
|
||||||
CPPFLAGS = @CPPFLAGS@
|
CPPFLAGS = @CPPFLAGS@
|
||||||
CFLAGS = @CFLAGS@
|
CFLAGS = @CFLAGS@
|
||||||
PREFIX = @PREFIX@
|
PREFIX = @PREFIX@
|
||||||
|
53
configure.ac
53
configure.ac
@ -1,4 +1,4 @@
|
|||||||
dnl $Id$
|
dnl $Id$
|
||||||
dnl Process this file with autoconf to produce a configure script.
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
dnl AC_PREREQ(2.61)
|
dnl AC_PREREQ(2.61)
|
||||||
@ -179,24 +179,16 @@ if test "$assert" = no; then
|
|||||||
AC_DEFINE(NDEBUG, 1, [Define this to disable debugging support.])
|
AC_DEFINE(NDEBUG, 1, [Define this to disable debugging support.])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "$prefix" = "NONE"; then
|
if test "$prefix" = "NONE"; then
|
||||||
AC_DEFINE_UNQUOTED(PREFIX, "$ac_default_prefix", [Prefix where wsjt is installed.])
|
prefix=${ac_default_prefix}
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
dnl Don't get bitten by Cygwin's stupidity if the user specified
|
dnl Don't get bitten by Cygwin's stupidity if the user specified
|
||||||
dnl a custom prefix with a trailing slash
|
dnl a custom prefix with a trailing slash
|
||||||
|
|
||||||
prefix=`echo $prefix | sed 's/\/$//'`
|
prefix=`echo ${ac_default_prefix} | sed 's/\/$//'`
|
||||||
AC_DEFINE_UNQUOTED(PREFIX, "$prefix", [Prefix where wsjt is installed.])
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CONFIG_FILES( \
|
|
||||||
Makefile
|
|
||||||
)
|
|
||||||
|
|
||||||
dnl pick gfortran or g95
|
dnl pick gfortran or g95
|
||||||
dnl ====================
|
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 now set conf.h,, CPPFLAGS and CFLAGS flags as needed
|
||||||
dnl ====================================================
|
dnl ====================================================
|
||||||
|
|
||||||
if test ! -z $GFORTRAN ; then
|
if test "$g95" = yes; then
|
||||||
echo "*** gfortran compiler found at ${GFORTRAN}"
|
FC_LIB_PATH=${G95_LIB_PATH}
|
||||||
if test "$gfortran" = yes; then
|
FC=${G95}
|
||||||
FC_LIB_PATH=`${GFORTRAN} -print-file-name=`
|
gfortran=no
|
||||||
FC=`basename ${GFORTRAN}`
|
elif test "$gfortran" = yes; then
|
||||||
|
FC_LIB_PATH=${GFORTRAN_LIB_PATH}
|
||||||
|
FC=${GFORTRAN}
|
||||||
g95=no
|
g95=no
|
||||||
FFLAGS="${FFLAGS_GFORTRAN}"
|
|
||||||
FCV="gnu95"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "*** No gfortran compiler found"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test ! -z $G95 ; then
|
if test -z $FC ; then
|
||||||
echo "*** g95 compiler found at ${G95}"
|
if test ! -z $GFORTRAN ; then
|
||||||
if test "$g95" = yes; then
|
FC_LIB_PATH=${GFORTRAN_LIB_PATH}
|
||||||
FC_LIB_PATH=`${G95} -print-file-name=`
|
FC=${GFORTRAN}
|
||||||
FC=`basename ${G95}`
|
gfortran=yes
|
||||||
gfortran=no
|
elif test ! -z $G95 ; then
|
||||||
FFLAGS="${FFLAGS_G95}"
|
FC_LIB_PATH=${G95_LIB_PATH}
|
||||||
FCV=${FCV_G95}
|
FC=${G95}
|
||||||
|
g95=yes
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
echo "*** No g95 compiler found"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl if FC is not set by now, pick a compiler for user
|
dnl if FC is not set by now, pick a compiler for user
|
||||||
dnl
|
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_SUBST(FC_LIB_PATH, "${FC_LIB_PATH}")
|
||||||
AC_DEFINE_UNQUOTED(FC, "${FC}", [Fortran compiler.])
|
AC_DEFINE_UNQUOTED(FC, "${FC}", [Fortran compiler.])
|
||||||
AC_SUBST(FC, "${FC}")
|
AC_SUBST(FC, "${FC}")
|
||||||
|
AC_SUBST(FCV, "${FCV}")
|
||||||
|
AC_SUBST(PREFIX, "${prefix}")
|
||||||
|
|
||||||
dnl set defaults
|
dnl set defaults
|
||||||
dnl ============
|
dnl ============
|
||||||
|
Loading…
Reference in New Issue
Block a user