|
101
|
1 # -*- Autoconf -*-
|
|
|
2 # Process this file with autoconf to produce a configure script.
|
|
|
3
|
|
|
4 AC_PREREQ(2.56)
|
|
|
5 AC_INIT([SRogue],[9.0], [yendor@rogueforge.net])
|
|
|
6 AC_CONFIG_HEADERS([config.h])
|
|
|
7 AC_CONFIG_FILES([Makefile])
|
|
|
8
|
|
|
9 # Checks for programs.
|
|
|
10 AC_PROG_CC
|
|
|
11 # Checks for libraries.
|
|
|
12 MP_WITH_CURSES
|
|
|
13 # Checks for header files.
|
|
|
14 AC_HEADER_STDC
|
|
|
15 #AC_CHECK_HEADERS([arpa/inet.h pwd.h errno.h fcntl.h limits.h nlist.h stdlib.h string.h sys/ioctl.h termios.h unistd.h utmp.h utmpx.h term.h ncurses/term.h process.h])
|
|
|
16
|
|
|
17 # Checks for typedefs, structures, and compiler characteristics.
|
|
|
18 AC_TYPE_SIZE_T
|
|
|
19 AC_STRUCT_TM
|
|
|
20 # Checks for library functions.
|
|
|
21 AC_FUNC_FORK
|
|
|
22 AC_PROG_GCC_TRADITIONAL
|
|
|
23 AC_TYPE_SIGNAL
|
|
|
24 AC_FUNC_STAT
|
|
|
25 AC_FUNC_VPRINTF
|
|
|
26 #AC_CHECK_FUNCS([erasechar killchar alarm getpass memset setenv strchr nlist _spawnl spawnl getpwuid loadav getloadavg strerror setgid setuid getuid getgid])
|
|
|
27 AC_PROG_INSTALL
|
|
|
28
|
|
|
29 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="srogue"] )
|
|
|
30 PROGRAM=$progname
|
|
|
31 AC_SUBST(PROGRAM)
|
|
|
32
|
|
|
33 AC_ARG_ENABLE(setgid, AC_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@])],[],[])
|
|
|
34 AC_MSG_CHECKING([if using setgid execute bit])
|
|
|
35 if test "x$enable_setgid" = "xno" ; then
|
|
|
36 GROUPOWNER=
|
|
|
37 elif test "x$enable_setgid" = "xyes" ; then
|
|
|
38 GROUPOWNER=games
|
|
|
39 elif test "x$enable_setgid" = "x" ; then
|
|
|
40 GROUPOWNER=
|
|
|
41 else
|
|
|
42 GROUPOWNER=$enable_setgid
|
John "Elwin" Edwards
parents: |