summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorPeng Huang <shawn.p.huang@gmail.com>2010-04-12 06:45:50 +0800
committerPeng Huang <shawn.p.huang@gmail.com>2010-04-12 06:45:50 +0800
commitee0f3b1dde90c200df91b3b03a3c1ae3ffcb8fa6 (patch)
tree86b41ba75559e1f30c40e6f8bd5440cfbf487497 /configure.ac
parent447efa4d8e3b5b4958780d6d70273a1e754982f7 (diff)
downloadibus-libpinyin-ee0f3b1dde90c200df91b3b03a3c1ae3ffcb8fa6.tar.gz
ibus-libpinyin-ee0f3b1dde90c200df91b3b03a3c1ae3ffcb8fa6.tar.xz
ibus-libpinyin-ee0f3b1dde90c200df91b3b03a3c1ae3ffcb8fa6.zip
Fix compile errors in FreeBSD and NetBSD.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac27
1 files changed, 26 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 22af515..1a0ac62 100644
--- a/configure.ac
+++ b/configure.ac
@@ -65,9 +65,34 @@ AC_PATH_PROG(SQLITE3, sqlite3)
# check uuid
PKG_CHECK_MODULES(UUID, [
uuid
+],
+[
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_UUID_UUID_H 1
+#define HAVE_UUID_GENERATE 1
+_ACEOF
+],
+[
+ uuid_revert_save_LIBS=$LIBS
+ AC_CHECK_HEADERS(uuid.h uuid/uuid.h sys/uuid.h)
+ AC_SEARCH_LIBS(uuid_create, uuid, [
+ if test "$ac_cv_search_uuid_create" != "none required"; then
+ UUID_LIBS=$ac_cv_search_uuid_create
+ fi
+ AC_CHECK_FUNCS(uuid_create)
+ ],
+ [
+ AC_SEARCH_LIBS(uuid_generate, uuid, [
+ if test "$ac_cv_search_uuid_generate" != "none required"; then
+ UUID_LIBS=$ac_cv_search_uuid_generate
+ fi
+ AC_CHECK_FUNCS(uuid_generate)
+ ])
+ ])
+ LIBS=$uuid_revert_save_LIBS
])
-# check uuid
+# check sigc
PKG_CHECK_MODULES(SIGC, [
sigc++-2.0
])