File: configure.in

package info (click to toggle)
yasr 0.6.9-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,316 kB
  • sloc: ansic: 4,842; sh: 4,099; makefile: 67; sed: 16
file content (67 lines) | stat: -rw-r--r-- 1,584 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
dnl Process this file with autoconf to produce a configure script.

AC_INIT(yasr, 0.6.9, mgorse@alum.wpi.edu)
AM_INIT_AUTOMAKE()
AM_CONFIG_HEADER(config.h)

AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_PROG_INSTALL
dnl Checks for libraries.
AC_CHECK_LIB(util, openpty)

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h utmpx.h locale.h)
AC_CHECK_HEADERS(pty.h util.h libutil.h,break)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_PID_T
AC_HEADER_TIME

dnl Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_TYPE_SIGNAL
AC_CHECK_FUNCS(select strdup strtol inet_pton)
AC_REPLACE_FUNCS(openpty forkpty login_tty cfmakeraw)

dnl Check for network libraries.
AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)])
AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])

dnl Add the languages which your application supports here.
ALL_LINGUAS=""

AC_CANONICAL_HOST
case "$host" in
*-*-solaris*)   yasr_type_sun=true;;
*)                  yasr_type_sun=false;;
esac
AM_CONDITIONAL(YASR_SUN, $yasr_type_sun)

dnl Set PACKAGE_SOURCE_DIR in config.h.
packagesrcdir=`cd $srcdir && pwd`
AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}")

dnl Use -Wall if we have gcc.
changequote(,)dnl
if test "x$GCC" = "xyes"; then
  case " $CFLAGS " in
  *[\ \	]-Wall[\ \	]*) ;;
  *) CFLAGS="$CFLAGS -Wall" ;;
  esac
fi
changequote([,])dnl

AM_GNU_GETTEXT(external)
AM_GNU_GETTEXT_VERSION([0.17])

AC_OUTPUT([ m4/Makefile 
Makefile
yasr/Makefile
acclogin/Makefile
po/Makefile.in
])