"Fossies" - the Fresh Open Source Software Archive

Member "npadmin-0.14/configure.in" (30 Mar 2006, 2509 Bytes) of package /linux/misc/old/npadmin-0.14.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

A hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.


    1 dnl Autoconfigure input file for npadmin
    2 dnl Ben Woodard <bwoodard@cisco.com>
    3 
    4 dnl Process this file with autoconf to produce a configure script.
    5 AC_INIT(ber.C)
    6 
    7 dnl Initialize the automake stuff
    8 AM_INIT_AUTOMAKE(npadmin, 0.14)
    9 
   10 AM_CONFIG_HEADER(config.h)
   11 
   12 dnl We want these before the checks, so the checks can modify their values.
   13 AC_SUBST(LDFLAGS)
   14 
   15 AC_LANG_CPLUSPLUS()
   16 
   17 WARNS=""
   18 AC_ARG_ENABLE(debug, [  --enable-debug turn on debugging (assumes gcc/gdb) [default=no]],WARNS="-W -Wall -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wshadow -O0 -ggdb3",AC_DEFINE(NDEBUG))
   19 AC_SUBST(WARNS)
   20 
   21 dnl Checks for programs.
   22 AC_PROG_INSTALL
   23 AC_PROG_CC
   24 AC_PROG_CXX
   25 
   26 
   27 AC_MSG_CHECKING(whether compiler handles exceptions)
   28 AC_TRY_COMPILE([],[try{}catch(int e){}],AC_MSG_RESULT(yes),
   29   [AC_MSG_RESULT(no)
   30    AC_MSG_CHECKING(whether compiler needs -fhandle-exceptions)
   31    CXXFLAGS="-fhandle-exceptions -g"
   32    __needs_excepthand_flag="-fhandle-exceptions"
   33    AC_TRY_COMPILE([],[try{}catch(int e){}],AC_MSG_RESULT(yes),
   34      [AC_MSG_RESULT(no)
   35       AC_MSG_ERROR(C++ compiler must support exception handling.)])
   36 ])
   37 AC_SUBST(__needs_excepthand_flag)
   38 dnl Checks for libraries.
   39 
   40 dnl Checks for header files.
   41 AC_HEADER_STDC
   42 AC_CHECK_HEADERS(arpa/inet.h assert.h errno.h fcntl.h limits.h netdb.h \
   43 		 netinet/in.h stdarg.h stdio.h stdlib.h string.h sys/socket.h \
   44 	         sys/stat.h sys/time.h sys/types.h unistd.h pthread.h)
   45 
   46 dnl Checks for typedefs, structures, and compiler characteristics.
   47 AC_C_CONST
   48 AC_C_INLINE
   49 AC_HEADER_TIME
   50 
   51 dnl Checks for library functions.
   52 AC_FUNC_MEMCMP
   53 AC_CHECK_FUNCS(select strdup strstr strtol getopt_long)
   54 AC_REPLACE_FUNCS(snprintf)
   55 
   56 # Under sysV68, socket and friends are provided by the C library.
   57 # -linet does not provide socket, but causes multiple definition
   58 # errors at link-time.  It is thus better to only use the C library.
   59 # So don't add -linet to the link list unless it's necessary
   60 AC_CHECK_FUNC(socket,
   61     AC_MSG_RESULT(using libc's socket),
   62     AC_CHECK_LIB(socket,socket)
   63     AC_CHECK_LIB(inet,socket))
   64 
   65 # The condition in this test copes with the presence of inet_addr in libc6.
   66 AC_CHECK_FUNC(inet_addr,
   67     AC_MSG_RESULT(using libc's inet_addr),
   68     AC_CHECK_LIB(nsl,inet_addr))
   69 
   70 AC_CHECK_FUNC(getopt_long,
   71     AC_MSG_RESULT(using libc's getopt_long),
   72     AC_CHECK_LIB(iberty, getopt_long))
   73 
   74 AC_CHECK_LIB(pthread, pthread_join)
   75 
   76 AC_OUTPUT(Makefile npadmin.spec)