OSSP CVS Repository

ossp - Difference in ossp-pkg/rc/configure.in versions 1.3 and 1.4
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/rc/configure.in 1.3 -> 1.4

--- configure.in 2002/01/17 15:47:10     1.3
+++ configure.in 2002/01/25 16:02:42     1.4
@@ -32,23 +32,75 @@
 AC_PREREQ(2.52)dnl
 AC_REVISION(1.0)
 
-dnl Process this file with autoconf to produce a configure script
+dnl Announce the product and version
+AC_DIVERT_PUSH(NOTICE)
+V=`./shtool version -lc -dlong version.c`
+./shtool echo -e "Configuring %BOSSP rc%b, Version %B${V}%b"
+echo "Copyright (c) 2001-2002 The OSSP Project <http://www.ossp.org/>"
+echo "Copyright (c) 2001-2002 Cable & Wireless Deutschland <http://www.cw.com/de/>"
+AC_DIVERT_POP()
+
+dnl Process this file with autoconf
 AC_INIT(rc.h)
-AM_INIT_AUTOMAKE(rc, 0.0.1)
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADER(config.h)
 AC_LANG_C
 
-dnl Checks requirements
+dnl Checks basic requirements
 AC_PROG_CC
-AM_PROG_LIBTOOL
-AM_PROG_CC_STDC
+AC_PROG_CPP
+AC_PROG_CC_STDC
 AC_HEADER_STDC
 AC_PROG_INSTALL
 
+dnl Check other requirements
+AC_SET_MAKE
+AC_PROG_CC
+AC_PROG_CPP
+AC_CHECK_DEBUGGING
+AC_CHECK_LIB(socket, getprotobyname)
+AC_CHECK_LIB(nsl, gethostbyname)
+AC_CHECK_FUNCS(inet_pton inet_aton)
+AC_CHECK_FUNCS(setsid)
+AC_CHECK_HEADERS(sys/termios.h)
+
+dnl Check for Dmalloc library
+AC_CHECK_EXTLIB([Dmalloc],
+                dmalloc, dmalloc_debug, dmalloc.h,
+                AC_DEFINE(DMALLOC))
+
+dnl Check for OSSP Str library
+AC_CHECK_EXTLIB([OSSP Str],
+                str, str_parse, str.h,
+                [SUBDIR_STR=""],
+                [SUBDIR_STR="rc_str"
+                 CPPFLAGS="$CPPFLAGS -Irc_str"
+                 CFLAGS="$CFLAGS -Irc_str"
+                 LDFLAGS="$LDFLAGS -Lrc_str/.libs"
+                 LIBS_EXTRA="$LIBS_EXTRA -lstr"])
+AC_SUBST(SUBDIR_STR)
+
+dnl Check for OSSP Var library
+AC_CHECK_EXTLIB([OSSP Var],
+                var, var_expand, var.h,
+                [SUBDIR_VAR=""],
+                [SUBDIR_VAR="rc_var"
+                 CPPFLAGS="$CPPFLAGS -Irc_var"
+                 CFLAGS="$CFLAGS -Irc_var"
+                 LDFLAGS="$LDFLAGS -Lrc_var/.libs"
+                 LIBS_EXTRA="$LIBS_EXTRA -lvar"])
+AC_SUBST(SUBDIR_VAR)
+
+dnl Extra library handling
+LIBS="$LIBS $LIBS_EXTRA"
+
+dnl Call other configure scripts
+AC_CONFIG_SUBDIRS([$SUBDIR_STR $SUBDIR_VAR])
+
 dnl Make all the necessary Makefiles
+#AC_CONFIG_FILES(Makefile)
 AC_OUTPUT(Makefile)
 
-dnl Remove me
+dnl Remove these placeholders
 AC_PATH_PROG(FLEX, flex, true)
 AC_CHECK_LIB(nsl, gethostname)
 AC_CHECK_LIB(socket, accept)

CVSTrac 2.0.1