dnl Configuration options for the application dnl Copyright (C) Michael Still 2002 dnl Copyright (C) Blake Swadling 2002 dnl Copyright (C) Daniel Fernandez 2002 dnl dnl This program is free software; you can redistribute it and/or modify it dnl under the terms of the GNU General Public License as published by the Free dnl Software Foundation; either version 2 of the License, or (at your option) dnl any later version. dnl dnl This program is distributed in the hope that it will be useful, but WITHOUT dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or dnl FITNESS FOR A PARTICULAR PURPOSE. dnl See the GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License along dnl with this program; if not, write to the Free Software Foundation, Inc., 675 dnl Mass Ave, Cambridge, MA 02139, USA. dnl Process this file with autoconf to produce a configure script. AC_INIT(genError.cpp) AC_CONFIG_AUX_DIR(config) AM_INIT_AUTOMAKE(genapp, 0.1) AM_MAINTAINER_MODE dnl Checks for programs. AC_PROG_CXX AC_PROG_INSTALL AC_PROG_LEX dnl Check for wxWindows AM_OPTIONS_WXCONFIG AM_PATH_WXCONFIG(2.4.0, wxWin=1) CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS" CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY" CFLAGS="$CFLAGS $WX_CFLAGS_ONLY" LDFLAGS="$LDFLAGS $WX_LIBS" dnl Checks for libraries. dnl The syntax is library name, function, action if found, action if not found dnl We just use the default if found action which adds -l to the LIBS var dnl and #defined HAVE_LIB dnl -lm: AC_CHECK_LIB(m, atan) dnl -lfl: AC_CHECK_LIB(fl, yywrap) dnl -lmplot AC_CHECK_LIB(mplot, plot_newplot) dnl -ltiff AC_CHECK_LIB(tiff, TIFFClientOpen) dnl -lz AC_CHECK_LIB(z, uncompress) dnl -lpandalex AC_CHECK_LIB(pandalex, pandalex_init) dnl -lpandalex AC_CHECK_LIB(panda, panda_init) dnl Checks for header files. dnl STDC checks for stdlib.h stdarg.h string.h and float.h AC_HEADER_STDC dnl Checks for typedefs, structures, and compiler characteristics. dnl Tell wx that it is using GTK, and not to load the UI automatically AC_DEFINE(__WXGTK__) AC_DEFINE(_GNU_SOURCE) AC_OUTPUT(Makefile)