[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Turning off checks for F77 in configure?
From: |
John Stoffel |
Subject: |
Turning off checks for F77 in configure? |
Date: |
Mon, 24 Nov 2003 14:01:35 -0500 |
Hi,
I'm working on converting a program from hand generated Makefiles and
such to using autoconf to do all the work. It's a pure C and (mostly)
C++ set of programs. There are a couple of libraries to be made, etc.
The only thing that bugs me is that my setup (debian 3.0, heavily
patched with unstable) always puts in the checks for Fortran in all
it's myriad of formats. I have no .f code, so why is it putting these
checks in?
How can I force it to not happen? Here's my configure.in input file,
kinda cludgy, and I'm still learning:
dnl Process this file with autoconf to produce a configure script.
AC_INIT(mtu)
AM_INIT_AUTOMAKE(mtu, 0.15.0)
AM_CONFIG_HEADER(config.h)
AC_PROG_MAKE_SET
MTU_SUBDIRS="lib mtu"
AC_SUBST(MTU_SUBDIRS)
dnl Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AM_PROG_LIBTOOL
AC_PROG_RANLIB
AC_PROG_INSTALL
AC_PROG_LN_S
dnl Checks for header files.
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for library functions.
AC_CHECK_PROG(WXWINDOWS,wx-config, 1, 0)
if test "$WXWINDOWS" != 1; then
AC_MSG_ERROR([ wxWindows must be installed ])
fi
AC_SUBST(EXTRA_WXWINDOWS_LIBS,`wx-config --libs`)
AC_SUBST(EXTRA_WXWINDOWS_CFLAGS,`wx-config --cflags`)
LTLIB="$EXTRA_WXWINDOWS_LIBS $LTLIB"
LIBS="$EXTRA_WXWINDOWS_LIBS $LIBS"
CFLAGS="$CFLAGS $EXTRA_WXWINDOWS_CFLAGS"
CXXFLAGS="$CXXFLAGS $EXTRA_WXWINDOWS_CFLAGS"
dnl Conditionally compile the player stuff - broken now
AC_DEFUN([TEST_MACRO],
[AC_ARG_WITH([player],
AS_HELP_STRING([--with-player],
[use player (default is NO)]),
[ac_cv_use_player=$withval], [ac_cv_use_player=no])
AC_CACHE_CHECK([whether to use player],
[ac_cv_use_player], [ac_cv_use_player=no])])
dnl #####################################################################
dnl Configure data directory
dnl #####################################################################
AC_ARG_WITH(travdatadir,
[ --with-travdatadir=TRAVDATADIR default internal for trusted cache ],
[
if test x$withval != x ; then
WORKDIR=$withval
else
address@hidden@/share/traveller
fi
AC_DEFINE_UNQUOTED(TRAVDATADIR, "${TRAVDATADIR}")
],
[
address@hidden@/share/traveller
AC_DEFINE_UNQUOTED(TRAVDATADIR, "${TRAVDATADIR}")
]
)
AC_OUTPUT(Makefile \
design/Makefile \
dice/Makefile \
enc_tbl/Makefile \
hg/Makefile \
lib/Makefile \
map/Makefile \
mtu/Makefile \
player/Makefile \
robots/Makefile \
secgen/Makefile \
sector/Makefile \
sysgen/Makefile \
system/Makefile \
trade/Makefile \
utility/Makefile \
word/Makefile \
world/Makefile \
)
- Turning off checks for F77 in configure?,
John Stoffel <=