]> Pileus Git - ~andy/gtk/blobdiff - acinclude.m4
Requires glib-2.3.0, pango-1.2.0.
[~andy/gtk] / acinclude.m4
index ed6e888994228eec8cec1b8fb3c05173ea993c61..74d13bf41b11482c37dbf73eaf99e11bacf7d3e9 100644 (file)
@@ -11,6 +11,17 @@ AC_DEFUN([GLIB_AC_DIVERT_BEFORE_HELP],
 $1
 AC_DIVERT_POP()])])])
 
+# GTK_ADD_LIB(VAR,LIBNAME)
+# ---------------------------------
+# Helper macro to add a -lBlah to a variable, avoiding repeats
+# Note that this needs to be quoted when used in an enclosing macro
+AC_DEFUN([GTK_ADD_LIB],
+[ case "$$1 " in
+    *-l$2[[\ \ ]]*)               ;;
+    *)               $1="-l$2 $$1" ;;
+  esac
+])
+
 # Checks the location of the XML Catalog
 # Usage:
 #   JH_PATH_XML_CATALOG