Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, March 28, 2024

Diff for ep/configure.in between version 1.5 and 1.11

version 1.5, 2002/02/18 20:50:54 version 1.11, 2002/07/17 01:46:21
Line 1 
Line 1 
 dnl  
 dnl $Id$  dnl $Id$
 dnl  
   
 dnl Process this file with autoconf to produce a configure script.  dnl Process this file with autoconf to produce a configure script.
 AC_INIT(src/main.c)  AC_INIT(src/main.c, 1.0pre2, platon@pobox.sk)
 AM_INIT_AUTOMAKE(ep, 1.0.1nosig)  
 AM_CONFIG_HEADER(config.h)  PACKAGE="ep"
   VERSION="1.0pre2"
   
   AC_SUBST(PACKAGE)
   AC_SUBST(VERSION)
   
   # AC_CONFIG_HEADER {{{
   AC_CONFIG_HEADER(config.h)
   # }}} AC_CONFIG_HEADER
   
 dnl Checks for programs.  dnl Checks for programs.
   # Checks for programs. {{{
 AC_PROG_CC  AC_PROG_CC
   
   # We don't need C++ compiler test now
   # Nepto [30/5/2002]
   #AC_PROG_CXX
   #AC_PROG_CPP
   
   AC_GCC_TRADITIONAL
   #if test "X$CC" = "Xgcc"; then
   #    CFLAGS="-Wall $CFLAGS"
   #fi
 AC_PROG_AWK  AC_PROG_AWK
 AC_PROG_INSTALL  AC_PROG_INSTALL
 AC_PROG_LN_S  AC_PROG_LN_S
 AC_PROG_MAKE_SET  AC_PROG_MAKE_SET
   AC_PROG_RANLIB
   AC_CHECK_PROG(STRIP, strip, strip, :)
   # }}} Checks for programs.
   
 dnl Checks for library functions.  dnl Checks for library functions.
 AC_PROG_GCC_TRADITIONAL  # Checks for library functions. {{{
 AC_TYPE_SIGNAL  AC_TYPE_SIGNAL
 AC_FUNC_VPRINTF  AC_FUNC_VPRINTF
 AC_HAVE_FUNCS(select strstr)  AC_HAVE_FUNCS(select strstr)
   # }}} Checks for library functions.
   
 dnl Checks for libraries.  dnl Checks for libraries.
   # Checks for libraries. {{{
 dnl Replace `main' with a function in -lncurses:  dnl Replace `main' with a function in -lncurses:
 dnl AC_CHECK_LIB(ncurses, main)  dnl AC_CHECK_LIB(ncurses, main)
   # }}} Checks for libraries.
   
 dnl Checks for header files.  dnl Checks for header files.
   # Checks for header files. {{{
 AC_HEADER_STDC  AC_HEADER_STDC
 AC_HEADER_SYS_WAIT  AC_HEADER_SYS_WAIT
 AC_CHECK_HEADERS(malloc.h sys/time.h unistd.h)  AC_CHECK_HEADERS(ctype.h errno.h float.h limits.h malloc.h \
                                    math.h ncurses.h stdarg.h stdio.h stdlib.h \
                                    string.h strings.h sys/time.h unistd.h)
   # }}} Checks for header files.
   
 dnl Checks for typedefs, structures, and compiler characteristics.  dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST  AC_C_CONST
   
 dnl Checks for library functions.  dnl Checks for library functions.
   # Checks for library functions. {{{
 AC_CHECK_FUNCS(select strstr)  AC_CHECK_FUNCS(select strstr)
   # }}} Checks for library functions.
   
   dnl User defined features.
   # User defined features. {{{
   
   MODULES=""
   MODULES_FLAGS=""
   MODULES_LIBS=""
   MODULES_SRC=""
   MODULES_HDR=""
   MODULES_OBJ=""
   MODULES_DEP=""
   
 dnl User defined features  
 AC_MSG_CHECKING(--enable-debug argument)  AC_MSG_CHECKING(--enable-debug argument)
 AC_ARG_ENABLE(debug,  AC_ARG_ENABLE(debug,
     [  --enable-debug=N        Turn on debuging.],      [  --enable-debug=N        Turn on debuging.],
         debug="${enableval}"; DEBUG="-g -ggdb -DDEBUG=$debug";          debug="${enableval}"; DEBUG_FLAGS="-g -ggdb -DDEBUG=$debug";
                 AC_MSG_RESULT(${enableval}) ;,                  AC_MSG_RESULT(${enableval}) ;,
     debug="no"; AC_MSG_RESULT(no))      debug="no"; AC_MSG_RESULT(no))
 if test "$debug" = "yes"; then  if test "$debug" = "yes"; then
         DEBUG="-g -ggdb -DDEBUG=1"          dnl Commented by Nepto [27/5/2002]
           dnl DEBUG_FLAGS="-Wshadow -g -ggdb -DDEBUG=1"
           DEBUG_FLAGS="-g -ggdb -DDEBUG=1"
 fi  fi
 AC_SUBST(DEBUG)  AC_SUBST(DEBUG_FLAGS)
   
   AC_MSG_CHECKING(--enable-menu argument)
   AC_ARG_ENABLE(menu,
       [  --enable-menu=N         Turn on user's menu.],
                   menu="${enableval}";
                   AC_MSG_RESULT(${enableval}) ;
                   if test "x$menu" = "xyes"; then
                           AC_CHECK_LIB(ncurses, main)
   
                           MODULES="$MODULES MENU";
                           MODULES_FLAGS="$MODULES_FLAGS -DMENU=1";
                           # here don't add '-lncurses' library to the 'MODULES_LIBS',
                           # because AC_CHECK_LIB(ncurses, main) add '-lncurses' to the 'LIBS'
                           #MODULES_LIBS="$MODULES_LIBS -lncurses";
                           MODULES_SRC="$MODULES_SRC \$(MODUL_MENU_SRC)";
                           MODULES_HDR="$MODULES_HDR \$(MODUL_MENU_HDR)";
                           MODULES_OBJ="$MODULES_OBJ \$(MODUL_MENU_OBJ)";
                           MODULES_DEP="$MODULES_DEP \$(MODUL_MENU_DEP)";
                           MODUL_MENU_DEFS="-DSELFTEST";
                           MODUL_MENU_LIBS="-lncurses";
                   fi
                   ,
           menu="no"; AC_MSG_RESULT(no)
   )
   #if test "x$menu" = "xyes"; then
   #       DEBUG_FLAGS="-g -ggdb -DDEBUG=1"
   #fi
   AC_SUBST(DEBUG_FLAGS)
   
   AC_SUBST(MODULES)
   AC_SUBST(MODULES_FLAGS)
   AC_SUBST(MODULES_LIBS)
   AC_SUBST(MODULES_SRC)
   AC_SUBST(MODULES_HDR)
   AC_SUBST(MODULES_OBJ)
   AC_SUBST(MODULES_DEP)
   
   # }}} User defined features.
   
   
   AC_OUTPUT(config.h Makefile src/Makefile doc/Makefile)
   
 AC_OUTPUT(Makefile src/Makefile)  # vim600: fdm=marker fdc=3

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.11

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top