1.1.11
by Lionel Porcheron
Import upstream version 1.4.4~dfsg |
1 |
# Process this file with autoconf to produce a configure script. |
2 |
||
3 |
AC_PREREQ(2.59) |
|
4 |
||
5 |
m4_define([MENUSELECT_VERSION], |
|
6 |
m4_bpatsubst(m4_esyscmd([./make_version .]), |
|
7 |
[\([0-9.]*\)\(\w\|\W\)*], |
|
8 |
[\1])) |
|
9 |
AC_INIT(menuselect, MENUSELECT_VERSION, www.asterisk.org) |
|
10 |
||
11 |
# check existence of the package |
|
12 |
AC_CONFIG_SRCDIR([menuselect.c]) |
|
13 |
||
14 |
# specify output header file |
|
15 |
AC_CONFIG_HEADER(autoconfig.h) |
|
16 |
||
17 |
AC_COPYRIGHT("Menuselect") |
|
18 |
AC_REVISION($Revision: 40837 $) |
|
19 |
||
20 |
AC_CANONICAL_BUILD
|
|
21 |
AC_CANONICAL_HOST
|
|
22 |
||
23 |
HOST_OS=${host_os} |
|
24 |
AC_SUBST(HOST_OS) |
|
25 |
||
26 |
AH_TOP( |
|
27 |
#ifndef MENUSELECT_AUTOCONFIG_H |
|
28 |
#define MENUSELECT_AUTOCONFIG_H |
|
29 |
||
30 |
#ifndef _REENTRANT |
|
31 |
#define _REENTRANT |
|
32 |
#endif
|
|
33 |
)
|
|
34 |
||
35 |
AH_BOTTOM( |
|
36 |
#endif
|
|
37 |
)
|
|
38 |
||
39 |
# Checks for programs. |
|
40 |
AC_PROG_CC
|
|
41 |
AST_CHECK_GNU_MAKE
|
|
42 |
||
1.1.19
by Faidon Liambotis
Import upstream version 1.4.15~dfsg |
43 |
|
1.1.11
by Lionel Porcheron
Import upstream version 1.4.4~dfsg |
44 |
AC_LANG(C) |
45 |
||
1.1.23
by Mark Purcell
Import upstream version 1.6.1.0~dfsg~rc3 |
46 |
AC_ARG_ENABLE([debug], |
47 |
[AS_HELP_STRING([--enable-debug], [Turn on debug mode])], |
|
48 |
[case "${enableval}" in |
|
49 |
y|ye|yes) MENUSELECT_DEBUG=yes ;;
|
|
50 |
n|no) MENUSELECT_DEBUG=no ;;
|
|
51 |
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
|
|
52 |
esac]) |
|
53 |
AC_SUBST(MENUSELECT_DEBUG) |
|
54 |
||
1.1.11
by Lionel Porcheron
Import upstream version 1.4.4~dfsg |
55 |
AC_CHECK_FUNCS([asprintf getloadavg setenv strcasestr strndup strnlen strsep strtoq unsetenv vasprintf]) |
56 |
||
1.1.23
by Mark Purcell
Import upstream version 1.6.1.0~dfsg~rc3 |
57 |
# The frontend can use curses, ncurses, newt or GTK2 so check for all of them |
1.1.19
by Faidon Liambotis
Import upstream version 1.4.15~dfsg |
58 |
|
1.1.23
by Mark Purcell
Import upstream version 1.6.1.0~dfsg~rc3 |
59 |
AST_EXT_LIB_SETUP([NEWT], [newt], [newt]) |
1.1.11
by Lionel Porcheron
Import upstream version 1.4.4~dfsg |
60 |
AST_EXT_LIB_SETUP([CURSES], [curses], [curses]) |
61 |
AST_EXT_LIB_SETUP([NCURSES], [ncurses], [ncurses]) |
|
62 |
||
1.1.23
by Mark Purcell
Import upstream version 1.6.1.0~dfsg~rc3 |
63 |
AST_EXT_LIB_CHECK([NEWT], [newt], [newtBell], [newt.h]) |
1.1.11
by Lionel Porcheron
Import upstream version 1.4.4~dfsg |
64 |
AST_EXT_LIB_CHECK([CURSES], [curses], [initscr], [curses.h]) |
65 |
AST_EXT_LIB_CHECK([NCURSES], [ncurses], [initscr], [curses.h]) |
|
66 |
||
1.1.19
by Faidon Liambotis
Import upstream version 1.4.15~dfsg |
67 |
PBX_GTK2=0 |
68 |
AC_CHECK_TOOL(PKGCONFIG, pkg-config, No) |
|
69 |
if test ! "x${PKGCONFIG}" = xNo; then |
|
70 |
GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null) |
|
71 |
GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs) |
|
72 |
PBX_GTK2=1 |
|
73 |
AC_DEFINE([HAVE_GTK2], 1, [Define if your system has the GTK2 libraries.]) |
|
74 |
fi
|
|
75 |
AC_SUBST(PBX_GTK2) |
|
76 |
AC_SUBST(GTK2_INCLUDE) |
|
77 |
AC_SUBST(GTK2_LIB) |
|
78 |
||
1.1.11
by Lionel Porcheron
Import upstream version 1.4.4~dfsg |
79 |
test "$silent"=yes && ac_sub_configure_args="${ac_sub_configure_args} --silent" |
80 |
||
81 |
AC_CONFIG_FILES([makeopts]) |
|
82 |
AC_CONFIG_SUBDIRS([mxml]) |
|
83 |
AC_OUTPUT
|
|
84 |
||
85 |
AC_MSG_NOTICE(Menuselect build configuration successfully completed) |