From fd898205b3dbd10c3cbac0644716bcf1f8e2e8d1 Mon Sep 17 00:00:00 2001 From: bagyenda <> Date: Mon, 25 Apr 2005 11:32:09 +0000 Subject: [PATCH] Minor changes to configure script (remove dependencies implied by kannel dependency) --- mbuni/Makefile.in | 2 +- mbuni/config.h.in | 3 - mbuni/configure | 164 +++++------------------------------------- mbuni/configure.ac | 21 ++++-- mbuni/libtool | 4 +- mbuni/mmsc/mmsproxy.c | 2 +- 6 files changed, 38 insertions(+), 158 deletions(-) diff --git a/mbuni/Makefile.in b/mbuni/Makefile.in index 14dc115..a43bcf6 100644 --- a/mbuni/Makefile.in +++ b/mbuni/Makefile.in @@ -11,7 +11,7 @@ # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. -# + @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ diff --git a/mbuni/config.h.in b/mbuni/config.h.in index 1e1150b..6194380 100644 --- a/mbuni/config.h.in +++ b/mbuni/config.h.in @@ -31,9 +31,6 @@ /* Define to 1 if you have the `wap' library (-lwap). */ #undef HAVE_LIBWAP -/* Define to 1 if you have the `xml2' library (-lxml2). */ -#undef HAVE_LIBXML2 - /* Define to 1 if you have the `localtime_r' function. */ #undef HAVE_LOCALTIME_R diff --git a/mbuni/configure b/mbuni/configure index 3985a28..66875cb 100755 --- a/mbuni/configure +++ b/mbuni/configure @@ -18973,74 +18973,7 @@ _ACEOF fi -echo "$as_me:$LINENO: checking for libiconv in -liconv" >&5 -echo $ECHO_N "checking for libiconv in -liconv... $ECHO_C" >&6 -if test "${ac_cv_lib_iconv_libiconv+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-liconv $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char libiconv (); -int -main () -{ -libiconv (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_lib_iconv_libiconv=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_lib_iconv_libiconv=no -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv" >&5 -echo "${ECHO_T}$ac_cv_lib_iconv_libiconv" >&6 -if test $ac_cv_lib_iconv_libiconv = yes; then - LIBS="$LIBS -liconv" -fi - +#AC_CHECK_LIB([iconv], [libiconv], [LIBS="$LIBS -liconv"]) echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 @@ -19115,84 +19048,8 @@ _ACEOF fi - -echo "$as_me:$LINENO: checking for xmlStrcasecmp in -lxml2" >&5 -echo $ECHO_N "checking for xmlStrcasecmp in -lxml2... $ECHO_C" >&6 -if test "${ac_cv_lib_xml2_xmlStrcasecmp+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lxml2 $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char xmlStrcasecmp (); -int -main () -{ -xmlStrcasecmp (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_lib_xml2_xmlStrcasecmp=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_lib_xml2_xmlStrcasecmp=no -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlStrcasecmp" >&5 -echo "${ECHO_T}$ac_cv_lib_xml2_xmlStrcasecmp" >&6 -if test $ac_cv_lib_xml2_xmlStrcasecmp = yes; then - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBXML2 1 -_ACEOF - - LIBS="-lxml2 $LIBS" - -else - { { echo "$as_me:$LINENO: error: LibXML2 is required" >&5 -echo "$as_me: error: LibXML2 is required" >&2;} - { (exit 1); exit 1; }; } -fi - +#AC_CHECK_LIB([xml2], [xmlStrcasecmp], [], +# AC_MSG_ERROR([LibXML2 is required])) # Checks for header files. @@ -21049,7 +20906,7 @@ else ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -as_dummy="$PATH:$gwloc/bin:$gwloc" +as_dummy="$gwloc/bin:$gwloc:$PATH" for as_dir in $as_dummy do IFS=$as_save_IFS @@ -22739,3 +22596,16 @@ if test "$no_create" != yes; then $ac_cs_success || { (exit 1); exit 1; } fi + +cat<body, 0); */ #endif