[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r2976 - gnunet-qt
From: |
durner |
Subject: |
[GNUnet-SVN] r2976 - gnunet-qt |
Date: |
Thu, 8 Jun 2006 13:37:46 -0700 (PDT) |
Author: durner
Date: 2006-06-08 13:37:42 -0700 (Thu, 08 Jun 2006)
New Revision: 2976
Modified:
gnunet-qt/configure.ac
Log:
add checks for GNUnet and libextractor
Modified: gnunet-qt/configure.ac
===================================================================
--- gnunet-qt/configure.ac 2006-06-08 20:36:29 UTC (rev 2975)
+++ gnunet-qt/configure.ac 2006-06-08 20:37:42 UTC (rev 2976)
@@ -38,4 +38,79 @@
dnl Checks for library functions.
-AC_OUTPUT(Makefile gnunet_qt.lsm gnunet_qt.spec)
+# test for GNUnet core
+gnunet=0
+AC_MSG_CHECKING(for GNUnet core)
+AC_ARG_WITH(gnunet,
+ [ --with-gnunet=PFX Base of GNUnet installation],
+ [AC_MSG_RESULT([$with_gnunet])
+ case $with_gnunet in
+ no)
+ ;;
+ yes)
+ AC_CHECK_HEADERS(GNUnet/gnunet_util.h,
+ AC_CHECK_LIB([gnunetutil], [initUtil],
+ gnunet=1))
+ ;;
+ *)
+ LDFLAGS="-L$with_gnunet/lib $LDFLAGS"
+ CPPFLAGS="-I$with_gnunet/include $CPPFLAGS"
+ AC_CHECK_HEADERS(GNUnet/gnunet_util.h,
+ AC_CHECK_LIB([gnunetutil], [initUtil],
+ EXT_LIB_PATH="-L$with_gnunet/lib $EXT_LIB_PATH"
+ gnunet=1))
+ ;;
+ esac
+ ],
+ [AC_MSG_RESULT([--with-gnunet not specified])
+ AC_CHECK_HEADERS(gnunet_util.h,
+ AC_CHECK_LIB([GNUnet/gnunet_util.h], [initUtil],
+ gnunet=1))])
+if test "$gnunet" != 1
+then
+ AC_MSG_ERROR([gnunet-gtk requires GNUnet])
+fi
+AC_CHECK_HEADERS([GNUnet/gnunet_ecrs_lib.h GNUnet/gnunet_fsui_lib.h
GNUnet/gnunet_stats_lib.h GNUnet/gnunet_getoption_lib.h],,
+ AC_MSG_ERROR([compiling gnunet-gtk requires GNUnet core
headers]))
+
+SAVELIBS=$LIBS
+AC_CHECK_LIB(gnunetutil,LOG,,
+ AC_MSG_ERROR([gnunet-qt requires GNUnet-Util]))
+AC_CHECK_LIB(gnunetecrs,ECRS_createMetaData,,
+ AC_MSG_ERROR([gnunet-qt requires ECRS]))
+AC_CHECK_LIB(gnunetfsui,FSUI_start,,
+ AC_MSG_ERROR([gnunet-qt requires FSUI]))
+AC_CHECK_LIB(gnunetgetoption_api,getConfigurationOptionValue,,
+ AC_MSG_ERROR([gnunet-qt requires getoption]))
+AC_CHECK_LIB(gnunetstats_api,requestStatistics,,
+ AC_MSG_ERROR([gnunet-qt requires stats]))
+LIBS=$SAVELIBS
+
+
+# test for libextractor
+extractor=0
+AC_MSG_CHECKING(for libextractor)
+AC_ARG_WITH(extractor,
+ [ --with-extractor=PFX Base of libextractor installation],
+ [AC_MSG_RESULT([$with_extractor])
+ case $with_extractor in
+ no)
+ ;;
+ yes)
+ AC_CHECK_HEADERS(extractor.h,extractor=1)
+ ;;
+ *)
+ CPPFLAGS="-I$with_extractor/include $CPPFLAGS"
+ AC_CHECK_HEADERS(extractor.h,extractor=1)
+ ;;
+ esac
+ ],
+ [AC_MSG_RESULT([--with-extractor not specified])
+ AC_CHECK_HEADERS(extractor.h,extractor=1)])
+if test "$extractor" != 1
+then
+ AC_MSG_ERROR([gnunet-qt requires libextractor headers])
+fi
+
+
+AC_OUTPUT(gnunet_qt.lsm gnunet_qt.spec)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r2976 - gnunet-qt,
durner <=