]> git.draconx.ca Git - rrace.git/blobdiff - configure.ac
Use XPM as icon test output format.
[rrace.git] / configure.ac
index b0c7fb06355cb0916ee5d021694cbc7c0cc36f24..946fb53f639daea7b5211585f147b61d2f6a2d5a 100644 (file)
@@ -4,6 +4,9 @@ dnl License WTFPL2: Do What The Fuck You Want To Public License, version 2.
 dnl This is free software: you are free to do what the fuck you want to.
 dnl There is NO WARRANTY, to the extent permitted by law.
 
+dnl remove pointless gnulib warning flag check
+AC_DEFUN([gl_CC_GNULIB_WARNINGS])
+
 AC_INIT([rrace], [0], [nbowler@draconx.ca])
 AC_CONFIG_HEADERS([config.h])
 
@@ -12,7 +15,12 @@ AM_SILENT_RULES([yes])
 DX_AUTOMAKE_COMPAT
 
 AC_PROG_CC_C99
+gl_EARLY
 LT_INIT
+gl_INIT
+
+AC_CACHE_SAVE
+m4_include([lib/gnulib.mk])
 
 AC_PATH_XTRA
 AS_IF([test x"$no_x" != x"yes"],
@@ -33,7 +41,9 @@ AS_IF([test x"$with_x" = x"yes" && test "$dx_cv_have_motif" != x"yes"],
 AC_SUBST([MOTIF_CFLAGS], [@&t@])
 AC_SUBST([MOTIF_LIBS], [@&t@])
 AS_IF([test x"$dx_cv_have_motif" = x"yes"],
-  [MOTIF_CFLAGS=$dx_cv_motif_cflags MOTIF_LIBS=$dx_cv_motif_libs])
+  [MOTIF_CFLAGS=$dx_cv_motif_cflags MOTIF_LIBS=$dx_cv_motif_libs],
+  [AC_DEFINE([X_DISPLAY_MISSING])])
+AM_CONDITIONAL([HAVE_MOTIF], [test x"$dx_cv_have_motif" = x"yes"])
 
 AC_CONFIG_TESTDIR([.], [t:.])
 DX_PROG_AUTOTEST