File: configure.in

package info (click to toggle)
ax25mail-utils 0.11-7
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 776 kB
  • ctags: 430
  • sloc: sh: 3,183; ansic: 2,942; cpp: 378; makefile: 117; perl: 105
file content (44 lines) | stat: -rw-r--r-- 1,282 bytes parent folder | download | duplicates (5)
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
dnl Process this file with autoconf to produce a configure script.

AC_INIT(ulistd/ulistd.c)
AM_INIT_AUTOMAKE(ax25mail-utils, 0.11)
AM_CONFIG_HEADER(config.h)
AC_PREFIX_DEFAULT(/usr)
AC_PROG_CC
AC_PROG_CXX
AC_PROG_LN_S
AC_PROG_INSTALL
AC_LANG_CPLUSPLUS
AC_LANG_C
AC_HEADER_STDC
AC_CHECK_HEADER(netax25/axlib.h,
		AC_DEFINE(NEW_AXLIB, 1)
		AC_MSG_CHECKING(for AX.25 version)
		AC_TRY_COMPILE([#include <netax25/kernel_ax25.h>],
			       [#ifndef NEW_AX25_STACK
			        #error
			        #endif],
			       AC_MSG_RESULT(new implementation)
			       AC_DEFINE(NEW_AX25, 1),
			       AC_MSG_RESULT(old implementation)),
		AC_CHECK_HEADER(ax25/axutils.h, ,
				AC_MSG_ERROR(No libax25 headers found!)))
AC_PATH_PROG(PERL, perl, "none")
if test $PERL = "none"
then
  echo "-------------------------------------------------------------------"
  echo " WARNING: Cannot found 'perl' installed. Some tools won't work !!!"
  echo "-------------------------------------------------------------------"
  set PERL="/usr/bin/perl"
fi
AC_SUBST(PERL)
AC_OUTPUT(Makefile \
          ulistd/Makefile \
          agent/Makefile \
	  axgetlist/Makefile \
	  axgetmail/Makefile \
          axgetmail/msgcleanup \
          routes/Makefile \
	  conf/Makefile \
	  man1/Makefile \
	  man8/Makefile)