summaryrefslogtreecommitdiff
path: root/support/dktools/dktools/dkwxwizc.txt
blob: 847a11a55e9ce5891b326306c78666dc101e70bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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)