You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-editors/bluefish/files/bluefish-2.0.0-gucharmap-au...

61 lines
1.8 KiB

--- configure.ac.old 2009-12-17 03:11:30.000000000 +0100
+++ configure.ac 2010-01-23 00:16:11.000000000 +0100
@@ -421,29 +421,38 @@
PKG_CHECK_MODULES([BLUEFISH_REQUIRED], [$BF_dependencies])
-# optionally build the charmap plugin if gucharmap is available
-PKG_CHECK_MODULES(
- [CHARMAP_PLUGIN],
- [gucharmap-2],
- [
- build_charmap_plugin=yes
- AC_DEFINE([HAVE_LIBGUCHARMAP_2], [1], [Define to 1 if you have the `gucharmap-2' library (-lgucharmap).])
- ],
- [PKG_CHECK_MODULES(
+# build the charmap plugin
+
+AC_ARG_ENABLE(
+ [charmap],
+ AC_HELP_STRING(
+ [--enable-charmap],
+ [enable (or disable) the charmap plugin needs gucharmap @<:@default=no@:>@]
+ )
+)
+
+if test "x$enable_charmap" != "xno"; then
+ PKG_CHECK_MODULES(
[CHARMAP_PLUGIN],
- [gucharmap >= 2.20],
+ [gucharmap-2],
[
build_charmap_plugin=yes
- AC_DEFINE([HAVE_LIBGUCHARMAP], [1], [Define to 1 if you have the `gucharmap' library (-lgucharmap).])
+ AC_DEFINE([HAVE_LIBGUCHARMAP_2], [1], [Define to 1 if you have the `gucharmap-2' library (-lgucharmap).])
],
- [
- build_charmap_plugin=no
- AC_MSG_WARN([Disabling the building of the charmap plugin.])
- AC_MSG_WARN([Install gucharmap/gucharmap2 (>= 2.20) library/headers to build the plugin.])
- ]
- )]
-)
-AM_CONDITIONAL([ENABLE_CHARMAP_PLUGIN], [test "x$build_charmap_plugin" = "xyes"])
+ [PKG_CHECK_MODULES(
+ [CHARMAP_PLUGIN],
+ [gucharmap >= 2.20],
+ [
+ build_charmap_plugin=yes
+ AC_DEFINE([HAVE_LIBGUCHARMAP], [1], [Define to 1 if you have the `gucharmap' library (-lgucharmap).])
+ ],
+ )]
+ )
+ AM_CONDITIONAL([ENABLE_CHARMAP_PLUGIN], [test "x$build_charmap_plugin" = "xyes"])
+else
+ AM_CONDITIONAL([ENABLE_CHARMAP_PLUGIN], [test "x$build_charmap_plugin" = "xno"])
+ AC_MSG_NOTICE([Disable building charmap plugin.])
+fi
AC_SEARCH_LIBS([nanosleep], [posix4 rt])