add guards in config.h to avoid multiple inclusions
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 6 Jan 2011 18:54:39 +0000 (18:54 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 6 Jan 2011 18:54:39 +0000 (18:54 +0000)
this file needs love

git-svn-id: https://svn.enlightenment.org/svn/e/trunk/ethumb@55950 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac

index a150dbf..72cd362 100644 (file)
@@ -27,8 +27,16 @@ AC_CANONICAL_BUILD
 AC_CANONICAL_HOST
 AC_ISC_POSIX
 
+AC_CONFIG_HEADERS([config.h])
+AH_TOP([
+#ifndef EFL_CONFIG_H__
+#define EFL_CONFIG_H__
+])
+AH_BOTTOM([
+#endif /* EFL_CONFIG_H__ */
+])
+
 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
-AM_CONFIG_HEADER([config.h])
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 _XTERM_COLORS