File: configure.in

package info (click to toggle)
powershell 0.9-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 492 kB
  • ctags: 339
  • sloc: ansic: 3,159; sh: 180; makefile: 104
file content (92 lines) | stat: -rw-r--r-- 2,323 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
dnl Process this file with autoconf to produce a configure script.
AC_INIT(globals.c)
AC_CONFIG_HEADER(config.h)


GTK_EXTRA_LIBS="`gtk-config --libs` -lgdk_imlib -lutil"

VERSION=`gtk-config --version`
MAJOR=`echo $VERSION | cut -f 1 -d . -`
MINOR=`echo $VERSION | cut -f 2 -d . -`
MICRO=`echo $VERSION | cut -f 3 -d . -`

GNOMEVERSION=`gnome-config --version`
GVERSION=`echo $GNOMEVERSION | cut -f 2 -d " " -`
GNOMEMAJOR=`echo $GVERSION | cut -f 1 -d . -`
GNOMEMINOR=`echo $GVERSION | cut -f 2 -d . -`
GNOMEMICRO=`echo $GVERSION | cut -f 3 -d . -`

dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL


dnl Checks for libraries.

dnl check for gtk 1.2 or greater
dnl quick crappy check, but I don't feel like converting
dnl to automake to use the real one (automake confuses me :-)

AC_MSG_CHECKING(for GTK+ 1.2 or greater)
if let $(($MINOR < 2)); then
	AC_MSG_RESULT(no) 
	AC_MSG_ERROR([GTK 1.2 or greater required!]);
fi
AC_MSG_RESULT(yes)

dnl check for gnome 1.0.8 or greater

AC_MSG_CHECKING(for Gnome 1.0.8 or greater)
if let $(($GNOMEMAJOR < 1)); then
	AC_MSG_ERROR([Gnome 1.0.8 or greater required!])
fi

if let $(($GNOMEMINOR < 1)); then
	if let $((GNOMEMICRO < 8)); then
		AC_MSG_ERROR([Gnome 1.0.8 or greater required!])
	fi
fi

AC_MSG_RESULT(yes)
AC_CHECK_LIB(gdk_imlib, gdk_imlib_init,
  ,
  AC_MSG_ERROR([libgdk_imlib required!]),
  $GTK_EXTRA_LIBS)

AC_CHECK_LIB(util, login_tty,
  ,
  AC_MSG_ERROR([login_tty not found in libutil!]),
  $GTK_EXTRA_LIBS)

dnl AC_CHECK_LIB(zvt, zvt_term_match_add,
dnl   AC_CHECK_LIB(zvt, zvt_term_match_check, AC_DEFINE(ZVT_USE_MATCHING),
dnl	AC_MSG_WARN([URL handling will not be supported ************]),
dnl	$GTK_EXTRA_LIBS),
dnl   AC_MSG_WARN([URL handling will not be supported ************]),
dnl $GTK_EXTRA_LIBS)

AC_MSG_WARN([

		URL handling disabled due to library problems.  If you want
	       	to try it anyway (you may not have problems with it), edit
		config.h and add the line

		#define ZVT_USE_MATCHING 1
		
		To enable it.
		])


dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h)

dnl Checks for typedefs, structures, and compiler characteristics.

dnl Checks for library functions.
AC_CHECK_FUNCS(strstr)
AC_MSG_CHECKING(for Illuminati)
AC_MSG_RESULT(no.  Good.)	

AC_OUTPUT(Makefile, echo timestamp > stamp-h)