File: configure.in

package info (click to toggle)
geki3 1.0.3-8
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,628 kB
  • ctags: 303
  • sloc: ansic: 2,537; sh: 377; makefile: 86
file content (41 lines) | stat: -rw-r--r-- 1,091 bytes parent folder | download | duplicates (3)
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/geki3.h)
AM_INIT_AUTOMAKE(geki3-KXL,1.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/geki3/data
        BMP_PATH=/usr/local/share/geki3/bmp
        WAV_PATH=/usr/local/share/geki3/wav
else
        DATA_PATH=$prefix/share/geki3/data
        BMP_PATH=$prefix/share/geki3/bmp
        WAV_PATH=$prefix/share/geki3/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
geki3.spec Makefile])