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.9 and 1.18

version 1.9, 2002/05/31 17:05:20 version 1.18, 2003/04/18 14:03:15
Line 1 
Line 1 
 dnl $Id$  dnl $Platon: ep/configure.in,v 1.17 2003/04/15 20:33:32 rajo Exp $
   
 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, 1.0, platon@pobox.sk)  AC_INIT(src/main.c)
   
 PACKAGE="ep"  PACKAGE="ep"
 VERSION="1.0"  VERSION="1.0pre4"
   DATE="2003-04-18"
   DATE_HUMAN="18th April 2003"
   MANVOLNUM=1
   
   AC_SUBST(PACKAGE)
   AC_SUBST(VERSION)
   AC_SUBST(DATE)
   AC_SUBST(DATE_HUMAN)
   AC_SUBST(MANVOLNUM)
   
   PLATON_LIBCFGPLUS_NOT_FOUND='
   ============================================================
   
     extended pipelining (ep) needs libcfg+ library to run.
     libcfg+ is command line and config file parsing library.
     You can get libcfg+ sources and binary packages from
   
             http://www.platon.sk/projects/libcfg+/
   
   ============================================================';
   
 # AC_CONFIG_HEADER {{{  # AC_CONFIG_HEADER {{{
 AC_CONFIG_HEADER(config.h)  AC_CONFIG_HEADER(config.h)
 # }}} AC_CONFIG_HEADER  # }}} 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  # We don't need C++ compiler test now
Line 19  AC_PROG_CC
Line 40  AC_PROG_CC
 #AC_PROG_CPP  #AC_PROG_CPP
   
 AC_GCC_TRADITIONAL  AC_GCC_TRADITIONAL
 if test "X$CC" = "Xgcc"; then  #if test "X$CC" = "Xgcc"; then
     CFLAGS="-Wall $CFLAGS"  #    CFLAGS="-Wall $CFLAGS"
 fi  #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_PROG_RANLIB
 AC_CHECK_PROG(STRIP, strip, strip, :)  AC_CHECK_PROG(STRIP, strip, strip, :)
   # }}} Checks for programs.
   
 dnl Checks for library functions.  dnl Checks for library functions.
   # 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.
 dnl Replace `main' with a function in -lncurses:  # Checks for libraries. {{{
 dnl AC_CHECK_LIB(ncurses, main)  
   dnl
   dnl libcfg+ may be installed in not standard place, check for it
   dnl
   AC_ARG_WITH(libcfg-includes,
           [  --with-libcfg-includes=DIR Specify location of libcfg headers],
           [CFLAGS="$CFLAGS -I$withval"; CPPFLAGS="$CPPFLAGS -I$withval"]
   )
   AC_ARG_WITH(libcfg-libs,
           [  --with-libcfg-libs=DIR     Specify location of libcfg libs],
           [LDFLAGS="$LDFLAGS -L$withval" libcfg_prefix=$withval]
   )
   
   AC_ARG_WITH(libcfg,
           [  --with-libcfg=DIR          Specify prefix for libcfg files],
           if test x$withval = xyes; then
                   want_libcfg=yes
           ifelse([$1], [], :, [$1])
           else
                   if test "x$withval" = xno; then
                           want_libcfg=no
                   else
                           want_libcfg=yes
                           CFLAGS="$CFLAGS -I$withval/include"
                           CPPFLAGS="$CPPFLAGS -I$withval/include"
                           LDFLAGS="$LDFLAGS -L$withval/lib"
                   fi
           fi,
           want_libcfg=yes
   )
   
   
   
   AC_CHECK_LIB(cfg+, cfg_get_context, [], AC_ERROR(libcfg+ library not found\
                            $PLATON_LIBCFGPLUS_NOT_FOUND))
   # }}} 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(ctype.h errno.h float.h limits.h malloc.h \  AC_CHECK_HEADERS(ctype.h errno.h float.h limits.h malloc.h \
                                  math.h ncurses.h stdarg.h stdio.h stdlib.h \                                   math.h ncurses.h stdarg.h stdio.h stdlib.h \
                                  string.h strings.h sys/time.h unistd.h)                                   string.h strings.h sys/time.h unistd.h)
   AC_CHECK_HEADERS(platon/cfg+.h, [], AC_ERROR(libcfg+ header file not found\
                                    $PLATON_LIBCFGPLUS_NOT_FOUND))
   # }}} 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_FLAGS="-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))
Line 65  if test "$debug" = "yes"; then
Line 140  if test "$debug" = "yes"; then
 fi  fi
 AC_SUBST(DEBUG_FLAGS)  AC_SUBST(DEBUG_FLAGS)
   
 AC_SUBST(PACKAGE)  AC_MSG_CHECKING(--enable-menu argument)
 AC_SUBST(VERSION)  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)
 AC_SUBST(MODULES_FLAGS)  AC_SUBST(MODULES_FLAGS)
Line 74  AC_SUBST(MODULES_LIBS)
Line 174  AC_SUBST(MODULES_LIBS)
 AC_SUBST(MODULES_SRC)  AC_SUBST(MODULES_SRC)
 AC_SUBST(MODULES_HDR)  AC_SUBST(MODULES_HDR)
 AC_SUBST(MODULES_OBJ)  AC_SUBST(MODULES_OBJ)
   AC_SUBST(MODULES_DEP)
   
   # }}} User defined features.
   
   
   AC_OUTPUT(config.h
                     Makefile
                     Rules.make
                     src/Makefile
                     doc/Makefile
                     doc/man/ep.1)
   
 AC_OUTPUT(Makefile src/Makefile config.h)  # vim600: fdm=marker fdc=3
   

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.18

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