File: configure.in

package info (click to toggle)
bosh 0.6-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 576 kB
  • sloc: ansic: 2,008; sh: 1,005; makefile: 12
file content (14 lines) | stat: -rw-r--r-- 496 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
AC_INIT(bosh.c)
AM_INIT_AUTOMAKE(bosh,0.6)
AC_PROG_CC
AC_PROG_INSTALL
CFLAGS="-Wall $CFLAGS"
AC_SUBST(CFLAGS)
AC_ARG_ENABLE(debug,[  --enable-debug      -DDEBUG -g],enable_debug=yes)
AC_ARG_ENABLE(debug,[  --enable-log        -DLOG],enable_log=yes)
test "$enable_debug" = "yes" && CFLAGS="$CFLAGS -DDEBUG -g"
test "$enable_log"   = "yes" && CFLAGS="$CFLAGS -DLOG"
ERR="Required package missing!"
AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([$ERR]))
AC_CHECK_LIB(ncurses,initscr)
AC_OUTPUT(Makefile)