dnl defines INSTALL with the appropriate command
AC_PROG_INSTALL
-dnl does ln -s works
-dnl defines LN_S with the appropriate command
-AC_PROG_LN_S
-
dnl strip command
dnl defines STRIP as strip or nothing if not found
AC_CHECK_PROG(STRIP, strip, strip, true)
dnl filename output by the lexer
AM_PROG_LEX
+dnl needed for making link to setup.h
+AC_PROG_LN_S
+
dnl libtool checks (disable static libs by default, this takes too much time...)
AM_DISABLE_STATIC
AM_PROG_LIBTOOL
AC_SUBST(LIBS)
dnl create the configuration header file from the template
-SETUPH_DIR=include/wx/${TOOLKIT_DIR}
-AC_SUBST(SETUPH_DIR)
-AM_CONFIG_HEADER(${SETUPH_DIR}/setup.h:include/wx/unix/setup.h.in)
+dnl
+dnl NB: automake can't work correctly if our header lives in a directory which
+dnl is only determined at configure time, so we create it on the top-level
+dnl and make a link to allow '#include "wx/setup.h"' to still work
+AM_CONFIG_HEADER(setup.h:include/wx/unix/setup.h.in)
dnl MAKE_SET will be replaced with "MAKE=..." or nothing if make sets MAKE
dnl itself (this is macro is required if SUBDIRS variable is used in Makefile.am
],
[
chmod +x wx-config
+ if test ! -e include/wx/${TOOLKIT_DIR}/setup.h; then
+ ${LN_S} `pwd`/setup.h include/wx/${TOOLKIT_DIR}/setup.h
+ fi
],
[
- SETUPH_DIR=${SETUPH_DIR}
+ LN_S="${ac_cv_prog_LN_S}"
+ TOOLKIT_DIR="${TOOLKIT_DIR}"
]
)
SUBDIRS = minimal \
@SAMPLES_SUBDIRS@
-# do nothing during "make install" in the samples subdirectory (can't override
-# install because install-recursive is its dependency which is still built)
+# do nothing during "make [un]install" in the samples subdirectory (can't
+# override install because install-recursive is its dependency which is still
+# built)
+#
+# this results in warnings from make about "overriding commands for garget
+# install-recursive", but it's more than compensated by the time we gain by not
+# entering/leaving all samples directories (but if somebody has a better
+# solution it would be welcome!)
install-recursive:
@true
+uninstall-recursive:
+ @true
+