aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-12-21 12:45:58 -0800
committerTimothy Gu <timothygu99@gmail.com>2014-12-21 12:45:58 -0800
commitb87558a055897891d1c9f26e867d636d833ee55e (patch)
tree80cfc14857ee552cfd5242a815f34ed98cd19359 /configure.ac
parent2d6c00722652589b6c2532d9e9a43417d29612c1 (diff)
downloaddlfcn-win32-lib-exp.tar.gz
dlfcn-win32-lib-exp.tar.bz2
dlfcn-win32-lib-exp.zip
WIP autoolslib-exp
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index c9596bd..60baafd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,6 +9,8 @@ AC_CANONICAL_BUILD
9AM_INIT_AUTOMAKE([foreign]) 9AM_INIT_AUTOMAKE([foreign])
10LT_INIT 10LT_INIT
11 11
12# Set the flags here to make libtool catch the flags
13CFLAGS='-Wall -O3 -fomit-frame-pointer'
12AC_PROG_CC 14AC_PROG_CC
13 15
14AC_MSG_CHECKING([windows.h and win32 API]) 16AC_MSG_CHECKING([windows.h and win32 API])
@@ -26,6 +28,15 @@ AC_LINK_IFELSE([
26]) 28])
27 29
28MINGW_AC_MSVC_IMPORT_LIBS([LIBDL_MSVC_LIB], [libdl.lib]) 30MINGW_AC_MSVC_IMPORT_LIBS([LIBDL_MSVC_LIB], [libdl.lib])
31AC_SUBST([LIBDL_MSVC_LIB])
32
33test -n "${LIBDL_MSVC_LIB}" && \
34 GEN_DEF="-Wl,--output-def,libdl.def" && \
35 EXTRA_INSTALL="install-msvc-lib"
36AC_SUBST([GEN_DEF])
37AC_SUBST([EXTRA_INSTALL])
38
39test -n
29 40
30AC_CONFIG_FILES(Makefile) 41AC_CONFIG_FILES(Makefile)
31AC_OUTPUT \ No newline at end of file 42AC_OUTPUT \ No newline at end of file