| 1 |
# Process this file with autoconf to produce a configure script. |
| 2 |
#AC_INIT([src/gmain.c]) |
| 3 |
AC_INIT([xlnl], [3.4.20],[bowkenken@users.sourceforge.jp]) |
| 4 |
AC_CONFIG_AUX_DIR([config]) |
| 5 |
AC_CONFIG_SRCDIR([src/gmain.c]) |
| 6 |
#AC_CONFIG_HEADER([src/config.h]) |
| 7 |
AM_CONFIG_HEADER([src/config.h]) |
| 8 |
AM_INIT_AUTOMAKE() |
| 9 |
|
| 10 |
AC_CANONICAL_HOST |
| 11 |
|
| 12 |
# Define macros. |
| 13 |
AM_CONDITIONAL([CHK_DEBUG], [test "$enable_debug" = yes]) |
| 14 |
|
| 15 |
case "${host}" in |
| 16 |
*linux*) |
| 17 |
clk_tck=yes |
| 18 |
;; \ |
| 19 |
*) |
| 20 |
clk_tck=no |
| 21 |
;; |
| 22 |
esac |
| 23 |
AM_CONDITIONAL([CHK_DEF_CLK_TCK], [test "$clk_tck" = yes]) |
| 24 |
|
| 25 |
# Checks for programs. |
| 26 |
AC_PROG_CC |
| 27 |
AC_PROG_CXX |
| 28 |
AC_PROG_LN_S |
| 29 |
AC_PROG_MAKE_SET |
| 30 |
|
| 31 |
# Checks for libraries. |
| 32 |
AC_CHECK_LIB([curses], [initscr]) |
| 33 |
AC_CHECK_LIB([ncurses], [initscr]) |
| 34 |
AC_CHECK_LIB([ncursesw], [initscr]) |
| 35 |
AC_CHECK_LIB([termcap], [tcgetattr]) |
| 36 |
AC_CHECK_LIB([m], [sin]) |
| 37 |
AC_CHECK_LIB([pthread], [pthread_create]) |
| 38 |
AC_CHECK_LIB([gpm], [Gpm_Open]) |
| 39 |
AC_CHECK_LIB([SDL_mixer], [Mix_PlayMusic]) |
| 40 |
AC_CHECK_LIB([SDL], [SDL_JoystickOpen]) |
| 41 |
|
| 42 |
# Checks for header files. |
| 43 |
AC_HEADER_STDC |
| 44 |
AC_CHECK_HEADERS([locale.h]) |
| 45 |
AC_CHECK_HEADERS([curses.h ncurses.h ncursesw.h]) |
| 46 |
AC_CHECK_HEADERS([stdlib.h stddef.h stdio.h stdarg.h]) |
| 47 |
AC_CHECK_HEADERS([limits.h string.h ctype.h time.h math.h]) |
| 48 |
AC_CHECK_HEADERS([sys/stat.h termio.h termios.h unistd.h]) |
| 49 |
AC_CHECK_HEADERS([sys/fcntl.h]) |
| 50 |
AC_CHECK_HEADERS([getopt.h]) |
| 51 |
AC_CHECK_HEADERS([gpm.h]) |
| 52 |
AC_CHECK_HEADERS([SDL/SDL.h SDL/SDL_mixer.h]) |
| 53 |
|
| 54 |
# Checks for typedefs, structures, and compiler characteristics. |
| 55 |
AC_C_CONST |
| 56 |
AC_TYPE_MODE_T |
| 57 |
AC_TYPE_SIZE_T |
| 58 |
|
| 59 |
# Checks for library functions. |
| 60 |
AC_PROG_GCC_TRADITIONAL |
| 61 |
AC_FUNC_VPRINTF |
| 62 |
AC_CHECK_FUNCS([mkdir strchr strrchr strspn strstr strtol]) |
| 63 |
AC_CHECK_FUNCS([getenv setenv]) |
| 64 |
AC_CHECK_FUNCS([sin cos tan]) |
| 65 |
AC_CHECK_FUNCS([getopt_long getopt]) |
| 66 |
AC_CHECK_FUNCS([sleep usleep nanosleep]) |
| 67 |
AC_CHECK_FUNCS([has_colors start_color init_pair keypad]) |
| 68 |
AC_CHECK_FUNCS([attrset attron attroff getnstr]) |
| 69 |
AC_CHECK_FUNCS([pthread_create pthread_detach]) |
| 70 |
|
| 71 |
# End |
| 72 |
|
| 73 |
## AC_CONFIG_FILES([Makefile man/Makefile src/Makefile data/Makefile]) |
| 74 |
## AC_CONFIG_FILES([Makefile man/Makefile src/Makefile graph-data/Makefile]) |
| 75 |
AC_CONFIG_FILES([Makefile man/Makefile src/Makefile]) |
| 76 |
AC_OUTPUT |