~ubuntu-branches/ubuntu/saucy/tlf/saucy

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Package Import Robot
  • Author(s): John T. Nogatch
  • Date: 2013-02-09 14:56:34 UTC
  • mfrom: (1.2.5) (3.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20130209145634-de47b40lyf5ntgsu
Tags: 1.1.5-1
* Update from upstream git
* LP: #854080, #514303

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Process this file with autoconf to produce a configure script.
2
 
AC_INIT(src, 0.9.32.3, rein@couperus.com)
3
 
AM_INIT_AUTOMAKE(tlf, 0.9.32.3)
4
 
AM_CONFIG_HEADER(config.h)
5
 
 
6
 
# Checks for programs.
7
 
AC_PROG_CC
8
 
AC_PROG_INSTALL
9
 
AC_PROG_AWK
10
 
 
11
 
# Checks for header files.
12
 
AC_HEADER_STDC
13
 
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h unistd.h])
14
 
 
15
 
# Checks for libraries.
16
 
AC_CHECK_LIB([m], [atan])
17
 
AC_CHECK_LIB([pthread], [pthread_create])
18
 
ACX_PTHREAD
19
 
AC_CHECK_LIB([ncurses], [initscr])
20
 
 
21
 
#dnl check for HAMLIB
22
 
#AC_CHECK_LIB(hamlib,main,,AC_MSG_ERROR([Hamradio control libraries (hamlib) not found! ABORTED!]))
23
 
#AC_CHECK_HEADERS(hamlib/rig.h hamlib/riglist.h,,AC_MSG_ERROR([hamlib header(s) not found! ABORTED]))
24
 
 
25
 
dnl Check if we want to link the Hamradio control libraries (hamlib)
26
 
AC_ARG_ENABLE([hamlib],
27
 
[ �--enable-hamlib � Add support for hamradio control libraries],
28
 
[case "${enableval}" in
29
 
        yes) wanthamlib=true ;;
30
 
        no)  wanthamlib=false ;;
31
 
#       *) � AC_MSG_ERROR([[bad value ${enableval} for --enable-hamlib]]) ;;
32
 
        esac],
33
 
[wanthamlib=false])
34
 
 
35
 
if test "x${wanthamlib}" != "xfalse"; then
36
 
        AC_CHECK_LIB(hamlib,main,,AC_MSG_ERROR([Hamradio control libraries not found...]))
37
 
        AC_CHECK_HEADERS(hamlib/rig.h,,AC_MSG_ERROR([Hamlib headers not found...]))
38
 
        AC_DEFINE([WANT_HAMLIB], 1, [Want Hamlib])
39
 
        echo "enabling hamlib support"
40
 
else
41
 
        AC_DEFINE([WANT_HAMLIB], 0, [No Hamlib])
42
 
        echo "disabling hamlib support"
43
 
fi
44
 
 
45
 
if test "${ac_cv_c_compiler_gnu}" = "yes"; then
46
 
        CFLAGS="${CFLAGS} -Wall"
47
 
fi
48
 
 
49
 
 
50
 
 
51
 
# Checks for typedefs, structures, and compiler characteristics.
52
 
AC_TYPE_PID_T
53
 
AC_TYPE_SIZE_T
54
 
AC_STRUCT_TM
55
 
 
56
 
# Checks for library functions.
57
 
AC_PROG_GCC_TRADITIONAL
58
 
AC_FUNC_STRFTIME
59
 
AC_CHECK_FUNCS([floor sqrt strchr strcspn strspn strstr])
60
 
 
61
 
# Set PACKAGE_DATA_DIR in config.h.
62
 
if test "x${prefix}" = "xNONE"; then
63
 
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR,"${ac_default_prefix}/share/${PACKAGE}")
64
 
else
65
 
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}")
66
 
fi
67
 
 
68
 
 
69
 
AC_OUTPUT([Makefile
70
 
        doc/Makefile
71
 
        rules/Makefile
72
 
        scripts/Makefile
73
 
        share/Makefile
74
 
        src/Makefile
75
 
        tlf.1])
76