Browse Subversion Repository
Contents of /configure.in
Parent Directory
| Revision Log
Revision 1 -
( show annotations)
( download)
Thu Nov 15 00:51:42 2012 UTC
(11 years, 3 months ago)
by bowkenken
File size: 1268 byte(s)
プロジェクトを登録
| 1 |
# Process this file with autoconf to produce a configure script. |
| 2 |
AC_INIT([star-snow-notes], [1.0.0],[bowkenken@users.sourceforge.jp]) |
| 3 |
AC_CONFIG_AUX_DIR([config]) |
| 4 |
AC_CONFIG_SRCDIR([src/main.cpp]) |
| 5 |
AM_CONFIG_HEADER([src/config.h]) |
| 6 |
AM_INIT_AUTOMAKE() |
| 7 |
|
| 8 |
AC_CANONICAL_HOST |
| 9 |
|
| 10 |
# Define macros. |
| 11 |
# debug |
| 12 |
AM_CONDITIONAL([CHK_DEBUG], [test "$enable_debug" = yes]) |
| 13 |
|
| 14 |
# Checks for programs. |
| 15 |
AC_PROG_CC |
| 16 |
AC_PROG_CXX |
| 17 |
AC_PROG_LN_S |
| 18 |
AC_PROG_MAKE_SET |
| 19 |
|
| 20 |
# Checks for libraries. |
| 21 |
AC_CHECK_LIB([m], [sin]) |
| 22 |
AC_CHECK_LIB([GL], [glClear]) |
| 23 |
AC_CHECK_LIB([SDL], [SDL/SDL_opengl]) |
| 24 |
|
| 25 |
# Checks for header files. |
| 26 |
AC_HEADER_STDC |
| 27 |
AC_CHECK_HEADERS([locale.h]) |
| 28 |
AC_CHECK_HEADERS([stdlib.h stddef.h stdio.h stdarg.h]) |
| 29 |
AC_CHECK_HEADERS([limits.h string.h ctype.h time.h math.h]) |
| 30 |
AC_CHECK_HEADERS([unistd.h dirent.h sys/stat.h]) |
| 31 |
AC_CHECK_HEADERS([getopt.h]) |
| 32 |
AC_CHECK_HEADERS([SDL/SDL.h SDL/SDL_opengl.h]) |
| 33 |
|
| 34 |
# Checks for typedefs, structures, and compiler characteristics. |
| 35 |
AC_C_CONST |
| 36 |
AC_TYPE_MODE_T |
| 37 |
AC_TYPE_SIZE_T |
| 38 |
|
| 39 |
# Checks for library functions. |
| 40 |
AC_PROG_GCC_TRADITIONAL |
| 41 |
AC_FUNC_VPRINTF |
| 42 |
AC_CHECK_FUNCS([mkdir strchr strrchr strspn strstr strtol]) |
| 43 |
AC_CHECK_FUNCS([getenv setenv]) |
| 44 |
AC_CHECK_FUNCS([sin cos tan]) |
| 45 |
AC_CHECK_FUNCS([getopt_long getopt]) |
| 46 |
|
| 47 |
# End |
| 48 |
|
| 49 |
AC_CONFIG_FILES([Makefile man/Makefile src/Makefile]) |
| 50 |
AC_OUTPUT |
| |