dnl configure-script AC_INIT($frame$.h) dnl AC_CONFIG_HEADER(config.h) AC_PROG_CC AC_PROG_CPP AC_C_BIGENDIAN WXCPPFLAGS='' WXCXXFLAGS='' WXCFLAGS='' WXLDFLAGS='' WXCPPFLAGS=`wx-config --cppflags` WXCXXFLAGS=`wx-config --cxxflags` WXCFLAGS=`wx-config --cflags` WXLDFLAGS=`wx-config --libs` if [[ -f dk4info.out ]] then rm -fr dk4info.out fi dk4info -l > dk4info.out ZLIBFLAG=`cat dk4info.out | grep DK4_HAVE_ZLIB_H | sed -e 's/[[ \t]][[ \t]]*//g' | cut -f 2 -d '='` BZLIBFLAG=`cat dk4info.out | grep DK4_HAVE_BZLIB_H | sed -e 's/[[ \t]][[ \t]]*//g' | cut -f 2 -d '='` ZLIB='' if [[ "X$ZLIBFLAG" = "X1" ]] then ZLIB='-lz' fi BZLIB='' if [[ "X$BZLIBFLAG" = "X1" ]] then BZLIB='-lbz2' fi AC_SUBST(WXCPPFLAGS) AC_SUBST(WXCXXFLAGS) AC_SUBST(WXLDFLAGS) AC_SUBST(WXCFLAGS) AC_SUBST(BZLIB) AC_SUBST(ZLIB) AC_OUTPUT(Makefile)