File: configure.in

package info (click to toggle)
geki2 2.0.3-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,388 kB
  • sloc: ansic: 2,585; sh: 859; makefile: 54
file content (41 lines) | stat: -rw-r--r-- 1,109 bytes parent folder | download | duplicates (2)
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
39
40
41
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/geki2.h)
AM_INIT_AUTOMAKE(geki2-KXL,2.0.3)

dnl Checks for programs.
AC_PROG_CC
AC_PROG_MAKE_SET

dnl Checks for libraries.
dnl Replace `main' with a function in -lKXL:
AC_CHECK_LIB(KXL, main)
AC_PATH_XTRA
AM_PATH_KXL

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h)

dnl Checks for typedefs, structures, and compiler characteristics.

dnl Checks for library functions.

if test "x$prefix" = "xNONE"; then
        DATA_PATH=/usr/local/share/geki2/data
        BMP_PATH=/usr/local/share/geki2/bmp
        WAV_PATH=/usr/local/share/geki2/wav
else
        DATA_PATH=$prefix/share/games/geki2/data
        BMP_PATH=$prefix/share/games/geki2/bmp
        WAV_PATH=$prefix/share/games/geki2/wav
fi
AC_DEFINE_UNQUOTED(DATA_PATH,"$DATA_PATH")
AC_DEFINE_UNQUOTED(BMP_PATH,"$BMP_PATH")
AC_DEFINE_UNQUOTED(WAV_PATH,"$WAV_PATH")
AC_DEFINE_UNQUOTED(TITLE,"$PACKAGE $VERSION")
AC_SUBST(DATA_PATH)
AC_SUBST(BMP_PATH)
AC_SUBST(WAV_PATH)

AC_OUTPUT([data/Makefile wav/Makefile bmp/Makefile src/Makefile
Makefile geki2.spec])