Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add configure checks suggested by autoscan

  • Loading branch information...
commit 5b02e5942da42b438d0474dc5a1f12f877297360 1 parent 4a95e8a
@nickg authored
Showing with 18 additions and 6 deletions.
  1. +2 −0  .gitignore
  2. +6 −3 config.h.in
  3. +10 −3 configure.ac
View
2  .gitignore
@@ -12,3 +12,5 @@ depcomp
install-sh
missing
po/*.gmo
+autoscan.log
+configure.scan
View
9 config.h.in
@@ -59,9 +59,6 @@
/* Define to 1 if you have the `setlocale' function. */
#undef HAVE_SETLOCALE
-/* Define to 1 if you have the `sqrt' function. */
-#undef HAVE_SQRT
-
/* Define to 1 if `stat' has the bug that it succeeds when given the
zero-length file name argument. */
#undef HAVE_STAT_EMPTY_STRING_BUG
@@ -78,12 +75,18 @@
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
+/* Define to 1 if you have the `strdup' function. */
+#undef HAVE_STRDUP
+
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
+/* Define to 1 if you have the `strrchr' function. */
+#undef HAVE_STRRCHR
+
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
View
13 configure.ac
@@ -2,9 +2,14 @@ AC_INIT([Lunar Lander], [0.6.1],
[Nick Gasson <nick@nickg.me.uk>],
[lander])
AM_INIT_AUTOMAKE([-Wall -Werror])
+
AC_PROG_CC
+AC_PROG_AWK
AC_PROG_CXX
AC_PROG_LN_S
+AC_PROG_INSTALL
+AC_PROG_CPP
+AC_PROG_MKDIR_P
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION
@@ -24,7 +29,9 @@ AC_TYPE_UINT32_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_STAT
-AC_CHECK_FUNCS([atexit memset pow setlocale sqrt])
+AC_CHECK_FUNCS([atexit memset pow setlocale strdup strrchr])
+
+AC_CHECK_HEADERS([libintl.h unistd.h])
dnl Check for Boost
AX_BOOST_BASE(1.33)
@@ -44,10 +51,10 @@ AC_CHECK_LIB(SDL_image, IMG_Load, [],
dnl Check for SDL_Mixer
AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio, [],
AC_MSG_ERROR([*** SDL_mixer not found!]))
-
-
+
dnl Check for Freetype and libpng
PKG_CHECK_MODULES(LANDER, freetype2 libpng)
+
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile data/Makefile src/Makefile po/Makefile.in])
Please sign in to comment.
Something went wrong with that request. Please try again.