File: configure.in

package info (click to toggle)
gtklp 0.9f-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 7,284 kB
  • ctags: 1,703
  • sloc: ansic: 11,722; sh: 7,528; yacc: 318; makefile: 301; sed: 16
file content (62 lines) | stat: -rw-r--r-- 1,687 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
AC_INIT(gtklp/gtklp.c)                                                                                                
AM_INIT_AUTOMAKE(gtklp, 0.9f)                                                                                         
AM_CONFIG_HEADER(config.h)                                                                                            

dnl Extra params
CUPSCONFIGPATH=""
AC_ARG_WITH(cups-config,[  --with-cups-config=CUPS-CONFIG   set full path to cups-config],
		CUPSCONFIGPATH=$withval)

dnl Set of available languages
ALL_LINGUAS="cz de en es fr it ja nl pl ru"

dnl Checks for programs
AC_PROG_CC
AC_ISC_POSIX
AC_PROG_LIBTOOL

dnl Checks for libraries

dnl Checks for header files

dnl internationalization macros
AM_GNU_GETTEXT

dnl gtk
AM_PATH_GTK([1.2.8],,[AC_ERROR([GTK+ 1.2.8 or newer is needed for GtkLP!])])

# cups
FOUNDCUPSCONFIG=0
if test "${CUPSCONFIGPATH}" != ""
then
	AC_MSG_CHECKING([for cups-config])
	if test -x "${CUPSCONFIGPATH}"
	then
		FOUNDCUPSCONFIG=1
		CUPS_CONFIG="${CUPSCONFIGPATH}"
		AC_MSG_RESULT([${CUPSCONFIGPATH}])
	else
		AC_MSG_RESULT([no])
		AC_MSG_ERROR([${CUPSCONFIGPATH} not found or not executable !])
	fi
else
	AC_PATH_PROG(CUPS_CONFIG, cups-config, no)
	if test x${CUPS_CONFIG} != xno
	then
		FOUNDCUPSCONFIG=1
	else
		AC_MSG_ERROR([cups-config not found !])
	fi
fi

if test ${FOUNDCUPSCONFIG} != 0
then
	CUPS_CFLAGS="`${CUPS_CONFIG} --cflags`"
	CUPS_LIBS="`${CUPS_CONFIG} --libs`"
	CUPS_ldflags="`${CUPS_CONFIG} --ldflags`"
	AC_SUBST(CUPS_CFLAGS)
	AC_SUBST(CUPS_LIBS)
	AC_SUBST(CUPS_ldflags)
fi

AC_OUTPUT([Makefile intl/Makefile po/Makefile.in po/Makefile libgtklp/Makefile gtklp/Makefile gtklpq/Makefile man/Makefile])