@@ -47,7 +47,10 @@ PKG_CHECK_MODULES([LUA],[lua-5.2],,[
4747 fi
4848 done
4949 if test $HAVE_LIBLUA != yes; then
50- AC_MSG_ERROR ( [ Could not find lua 5.2-dev. This program requires the lua 5.2 development library. Please install the lua 5.2 library first.] )
50+ AC_MSG_ERROR ( [ Could not find lua 5.2-dev.
51+
52+ This program requires the lua 5.2 development library.
53+ Please install the lua 5.2 library first.] )
5154 fi
5255] )
5356] )
@@ -57,7 +60,14 @@ PKG_CHECK_MODULES([CURL],[libcurl],,[
5760 AC_CHECK_LIB ( [ curl] ,[ curl_easy_init] ,[
5861 AC_SUBST ( [ CURL_CFLAGS] ,[ ""] )
5962 AC_SUBST ( [ CURL_LIBS] ,[ -lcurl] )
60- ] )
63+ HAVE_LIBCURL=yes
64+ ] ,[ HAVE_LIBCURL=no] )
65+ if test $HAVE_LIBCURL != yes; then
66+ AC_MSG_ERROR ( [ Cloud not find libcurl.
67+
68+ This program requires the libcurl development library.
69+ Please install the required library first.] )
70+ fi
6171] )
6272
6373AC_CHECK_LIB ( [ ssl] ,[ SSL_free] ,,
@@ -69,8 +79,15 @@ AC_CHECK_LIB([crypto],[CRYPTO_free],,
6979 AC_MSG_ERROR ( [ Could not find openssl-dev.
7080 This program requires the openssl dev. library.
7181 Please install it first.] ) )
72-
82+
83+ AC_CHECK_LIB ( [ execinfo] ,[ backtrace] ,,)
84+ AC_CHECK_DECLS ( [ backtrace] , [ ] , [ ] , [ [ #include <execinfo.h>] ] )
85+
86+ AC_ARG_VAR ( ICONV_LIBS ,[ linker flags for ICONV (e.g. -l iconv), overriding the detected value.] )
7387AM_ICONV
88+ if test ! $ICONV_LIBS; then
89+ AC_SUBST ( [ ICONV_LIBS] ,[ $LIBICONV] )
90+ fi
7491
7592AC_PATH_PROG ( GLIB_COMPILE_RESOURCES ,[ glib-compile-resources] ,no )
7693
0 commit comments