diff options
author | Timothy Gu <timothygu99@gmail.com> | 2014-12-21 12:45:58 -0800 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2014-12-21 12:45:58 -0800 |
commit | b87558a055897891d1c9f26e867d636d833ee55e (patch) | |
tree | 80cfc14857ee552cfd5242a815f34ed98cd19359 /acinclude.m4 | |
parent | 2d6c00722652589b6c2532d9e9a43417d29612c1 (diff) | |
download | dlfcn-win32-lib-exp.tar.gz dlfcn-win32-lib-exp.tar.bz2 dlfcn-win32-lib-exp.zip |
WIP autoolslib-exp
Diffstat (limited to '')
-rw-r--r-- | acinclude.m4 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 352fbdd..57a1c98 100644 --- a/acinclude.m4 +++ b/acinclude.m4 | |||
@@ -28,6 +28,7 @@ | |||
28 | # - MINGW_AC_MSVC_IMPORT_LIBS: | 28 | # - MINGW_AC_MSVC_IMPORT_LIBS: |
29 | # - Renamed the option to --enable-msvc for compatibility with the old | 29 | # - Renamed the option to --enable-msvc for compatibility with the old |
30 | # configure script. | 30 | # configure script. |
31 | # - Error if shared lib is not enabled. | ||
31 | # - Cosmetics: | 32 | # - Cosmetics: |
32 | # - Use '' instead of `' | 33 | # - Use '' instead of `' |
33 | 34 | ||
@@ -48,7 +49,10 @@ AC_DEFUN([MINGW_AC_MSVC_IMPORT_LIBS], | |||
48 | [enable building of MSVC compatible import libraries]),[], | 49 | [enable building of MSVC compatible import libraries]),[], |
49 | [enable_msvc=no]) | 50 | [enable_msvc=no]) |
50 | AC_CHECK_TOOL([MSVCLIB], [lib]) | 51 | AC_CHECK_TOOL([MSVCLIB], [lib]) |
51 | if test "x$enable_msvc" = xyes && test -n "$MSVCLIB" | 52 | |
53 | if test "x$enable_msvc" = xyes && test "x$enable_shared" != xyes | ||
54 | then AC_MSG_ERROR([MSVC import lib requested but shared lib not enabled.]) | ||
55 | elif test "x$enable_msvc" = xyes && test -n "$MSVCLIB" | ||
52 | then $1="$2" | 56 | then $1="$2" |
53 | elif test "x$enable_msvc" = xyes | 57 | elif test "x$enable_msvc" = xyes |
54 | then AC_MSG_WARN([no MSVC compatible 'lib' program found in \$PATH | 58 | then AC_MSG_WARN([no MSVC compatible 'lib' program found in \$PATH |