configure: remove code for generating 'reconfigure' script.
[wvstreams.git] / configure-msvc.ac
blobc8d1604aebd06d2710068bf6eed16e1bcccfb161
1 # Process this file with autoconf to produce a configure script.
2 AC_INIT(WvStreams, 4.1, wvstreams-dev@nit.ca, wvstreams)
4 AC_ARG_WITH(popt, AC_HELP_STRING([--with-popt], [popt (required)]))
5 AC_ARG_WITH(popt, AC_HELP_STRING([--with-zlib], [zlib (required)]))
7 if test "$with_popt" != "no" && test "$with_popt" != ""; then
8     POPT_CFLAGS="/I`cygpath -m $with_popt`"
9     POPT_LIBS="`cygpath -m $with_popt/popt.lib`"
10 else
11     AC_MSG_WARN([Popt is missing.])
12     missing_required="$missing_required popt"
15 if test "$with_zlib" != "no" && test "$with_zlib" != ""; then
16     ZLIB_CFLAGS="/I`cygpath -m $with_zlib`"
17     ZLIB_LIBS="`cygpath -m $with_zlib/zlib.lib`"
18 else
19     AC_MSG_WARN([zlib is missing.])
20     missing_required="$missing_required zlib"
23 if test "$with_xplc" != "no" && test "$with_xplc" != ""; then
24     XPLC_CFLAGS="/I`cygpath -m $with_xplc/include`"
25     XPLC_LIBS="`cygpath -m $with_xplc/xplc.lib`"
26 else
27     AC_MSG_WARN([XPLC is missing.])
28     missing_required="$missing_required xplc"
31 if test "$with_openssl" != "no" && test "$with_openssl" != ""; then
32     OPENSSL_CFLAGS="/I`cygpath -m $with_openssl/inc32`"
33     OPENSSL_LIBS="`cygpath -m $with_openssl/out32/ssl.lib` \
34 `cygpath -m $with_openssl/out32/crypto.lib`"
35 else
36     AC_MSG_WARN([openssl is missing.])
37     missing_required="$missing_required openssl"
40 if test -n "$missing_required"; then
41     AC_MSG_ERROR([Required dependencies missing:$missing_required])
44 DIRENT_LIBS="`cygpath -m -a ./Win32WvStreams/dirent.lib`"
46 EXEEXT=.exe
47 CC=cl
48 CPP=cl
49 CXX=cl
50 CFLAGS=
51 CXXFLAGS=
52 INCFLAGS="$POPT_CFLAGS $ZLIB_CFLAGS $XPLC_CFLAGS $OPENSSL_CFLAGS \
53 /I`cygpath -m -a ./include` /I`cygpath -m -a ./Win32WvStreams` \
54 /I`cygpath -m -a ./Win32WvStreams/libwvstreams`"
55 DEPFLAGS="-I`cygpath -u -a ./include` -I`cygpath -u -a ./Win32WvStreams` \
56 -I`cygpath -u -a ./Win32WvStreams/libwvstreams`"
57 CPPFLAGS="/nologo /FD /EHsc /MD /D \"strcasecmp=_stricmp\" /D \"strncasecmp=_strnicmp\""
58 LDFLAGS=
59 ac_libs="$POPT_LIBS $ZLIB_LIBS $XPLC_LIBS $OPENSSL_LIBS $DIRENT_LIBS \
60 ole32.lib rpcrt4.lib wsock32.lib gdi32.lib /MD /link /NODEFAULTLIB:LIBC"
61 COMPILER_STANDARD=msvc
65 AC_SUBST(EXEEXT)
66 AC_SUBST(CC)
67 AC_SUBST(CPP)
68 AC_SUBST(CXX)
69 AC_SUBST(CFLAGS)
70 AC_SUBST(CXXFLAGS)
71 AC_SUBST(CPPFLAGS)
72 AC_SUBST(INCFLAGS)
73 AC_SUBST(DEPFLAGS)
74 AC_SUBST(LDFLAGS)
75 AC_SUBST(ac_libs)
76 AC_SUBST(COMPILER_STANDARD)
77 AC_CONFIG_FILES(config.mk)
78 AC_CONFIG_HEADERS(include/wvautoconf.h)
80 AC_OUTPUT