File: configure.ac

package info (click to toggle)
joy2key 1.6.1-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 436 kB
  • ctags: 50
  • sloc: sh: 2,985; ansic: 741; makefile: 59
file content (38 lines) | stat: -rw-r--r-- 1,211 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
dnl Process this file with autoconf to produce a configure script.
AC_INIT(joy2key.c)
AM_INIT_AUTOMAKE(joy2key, 1.6.1)
AM_CONFIG_HEADER(config.h)
AC_PROG_MAKE_SET

dnl Checks for programs.
AC_PROG_CC
AC_ISC_POSIX

dnl Checks for library functions.
AC_PATH_X

dnl Checks for header files.
AC_STDC_HEADERS

dnl Check for site-specific configuration
AC_ARG_ENABLE(console, [  --disable-console       do not compile in console features],
              if test $enableval != no; then AC_DEFINE(ENABLE_CONSOLE) fi,
              AC_DEFINE(ENABLE_CONSOLE))

AC_ARG_ENABLE(X, [  --disable-X             do not compile in X features],
            [ if test $enableval != no; then
                  if test x$x_libraries != x; then
                      AC_DEFINE(ENABLE_X) export xstuff="-L$x_libraries -lX11"
                  else
                      AC_DEFINE(ENABLE_X) export xstuff="-lX11"
                  fi
              fi ],
            [ if test x$x_libraries != x; then
                  AC_DEFINE(ENABLE_X) export X_Stuff="-L$x_libraries -lX11"
              else
                  AC_DEFINE(ENABLE_X) export X_Stuff="-lX11"
              fi ])

AC_SUBST(X_Stuff)
AC_SUBST(x_headers)
AC_OUTPUT(Makefile)