~ubuntu-branches/ubuntu/saucy/dahdi-tools/saucy-proposed

« back to all changes in this revision

Viewing changes to menuselect/configure.ac

  • Committer: Package Import Robot
  • Author(s): Jackson Doak
  • Date: 2013-08-25 12:48:37 UTC
  • mfrom: (2.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20130825124837-wtefi7f9dsihg8is
Tags: 1:2.7.0-1ubuntu1
* Merge from debian. Remaining changes:
  - debian/control: Added gawk as dependency for dkms build
  - debian/control: Package dahdi Depends on dahdi-dkms | dahdi-source
  - debian/control: Set ubuntu maintainer    
  - added debian/dahdi.postinst
  - debian/control: Removed Uploaders field.
  - added debian/dahdi.postinst
  - added --error-handler=init_failed to debian/rules
  

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
 
43
 
 
44
 
AC_LANG(C)
45
 
AC_ARG_ENABLE([debug],
46
 
        [AS_HELP_STRING([--enable-debug], [Turn on debug mode])],
47
 
        [case "${enableval}" in
48
 
                y|ye|yes) MENUSELECT_DEBUG=yes ;;
49
 
                n|no)  MENUSELECT_DEBUG=no ;;
50
 
                *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug)  ;;
51
 
    esac])
52
 
AC_SUBST(MENUSELECT_DEBUG)
53
 
 
54
 
AST_GCC_ATTRIBUTE(weak_import)
55
 
AST_GCC_ATTRIBUTE(weakref)
56
 
 
57
 
AC_FUNC_ALLOCA
58
 
AC_CHECK_FUNCS([asprintf getloadavg setenv strcasestr strndup strnlen strsep unsetenv vasprintf])
59
 
 
60
 
# The frontend can use curses, ncurses, newt or GTK2 so check for all of them
61
 
 
62
 
AST_EXT_LIB_SETUP([NEWT], [newt], [newt])
63
 
AST_EXT_LIB_SETUP([CURSES], [curses], [curses])
64
 
AST_EXT_LIB_SETUP([NCURSES], [ncurses], [ncurses])
65
 
 
66
 
AST_EXT_LIB_CHECK([NEWT], [newt], [newtBell], [newt.h])
67
 
AST_EXT_LIB_CHECK([CURSES], [curses], [initscr], [curses.h])
68
 
AST_EXT_LIB_CHECK([NCURSES], [ncurses], [initscr], [curses.h])
69
 
 
70
 
PBX_GTK2=0
71
 
AC_CHECK_TOOL(PKGCONFIG, pkg-config, No)
72
 
if test ! "x${PKGCONFIG}" = xNo; then
73
 
   GTK2_INCLUDE=$(${PKGCONFIG} gtk+-2.0 --cflags 2>/dev/null)
74
 
   GTK2_LIB=$(${PKGCONFIG} gtk+-2.0 --libs)   
75
 
   PBX_GTK2=1
76
 
   AC_DEFINE([HAVE_GTK2], 1, [Define if your system has the GTK2 libraries.])
77
 
fi
78
 
AC_SUBST(PBX_GTK2)
79
 
AC_SUBST(GTK2_INCLUDE)
80
 
AC_SUBST(GTK2_LIB)
81
 
 
82
 
test "$silent"=yes && ac_sub_configure_args="${ac_sub_configure_args} --silent"
83
 
 
84
 
AC_CONFIG_FILES([makeopts])
85
 
AC_CONFIG_SUBDIRS([mxml])
86
 
AC_OUTPUT
87
 
 
88
 
AC_MSG_NOTICE(Menuselect build configuration successfully completed)