"Fossies" - the Fresh Open Source Software Archive

Member "srg-1.3.6/configure.ac" (5 Aug 2009, 2135 Bytes) of package /linux/privat/old/srg-1.3.6.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.

    1 #                                               -*- Autoconf -*-
    2 # Process this file with autoconf to produce a configure script.
    3 
    4 AC_PREREQ(2.59)
    5 AC_INIT([SRG], [1.3.6], [matt@mattb.net.nz])
    6 AC_CONFIG_SRCDIR(include/srg.h)
    7 AC_CONFIG_HEADER(config.h)
    8 AC_CONFIG_AUX_DIR(config)
    9 AC_CONFIG_MACRO_DIR(config)
   10 AM_INIT_AUTOMAKE(dist-bzip2)
   11 AC_CANONICAL_HOST
   12 
   13 AC_DEFINE([HAVE_GETOPT_LONG], [], [Defined when getopt_long is available])
   14 
   15 # Setup architecture specific stuff
   16 case "x${host_os}" in
   17     xfreebsd*)
   18         # FreeBSD
   19         AC_MSG_NOTICE([Setting FreeBSD include/library paths])
   20         CPPFLAGS="$CPPFLAGS -I/usr/local/include"
   21         LDFLAGS="$LDFLAGS -L/usr/local/lib"
   22         ;;
   23     *)
   24         AC_MSG_NOTICE([No platform specific include/library paths set])
   25         ;;
   26 esac
   27 
   28 # Autoheader Macros
   29 AH_VERBATIM([_GNU_SOURCE],
   30                        [/* Enable GNU extensions on systems that have them.  */
   31                         #ifndef _GNU_SOURCE
   32                         # define _GNU_SOURCE
   33                         #endif])
   34 
   35 # Checks for programs.
   36 AC_PROG_YACC
   37 AC_PROG_CXX
   38 AC_PROG_CC
   39 AC_PROG_LEX
   40 AC_PROG_INSTALL
   41 AC_PROG_LIBTOOL
   42 
   43 # Check libraries
   44 
   45 # Checks for header files.
   46 AC_HEADER_DIRENT
   47 AC_HEADER_STDC
   48 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stddef.h stdlib.h string.h sys/socket.h unistd.h])
   49 
   50 # Check for getopt header
   51 AC_CHECK_HEADER([getopt.h], :, [AC_MSG_ERROR([*** Could not find getopt.h!])])
   52 
   53 # Check for getopt_long, including gnugetopt if needed
   54 AC_CHECK_FUNC([getopt_long], AC_DEFINE([HAVE_GETOPT_LONG]),
   55     AC_CHECK_LIB([gnugetopt],[getopt_long], ,
   56                 AC_MSG_ERROR([*** getopt_long not available!])))
   57 
   58 # Checks for typedefs, structures, and compiler characteristics.
   59 AC_HEADER_STDBOOL
   60 AC_C_CONST
   61 AC_C_INLINE
   62 AC_TYPE_SIZE_T
   63 AC_STRUCT_TM
   64 
   65 # Checks for library functions.
   66 AC_FUNC_CLOSEDIR_VOID
   67 AC_FUNC_MALLOC
   68 AC_FUNC_MKTIME
   69 AC_FUNC_MMAP
   70 AC_FUNC_STAT
   71 AC_CHECK_FUNCS([bzero gethostbyaddr gethostbyname inet_ntoa memset mkdir munmap rmdir strcasecmp strchr strdup strerror strrchr strstr])
   72 
   73 AC_SUBST(ac_aux_dir)
   74 
   75 AC_CONFIG_FILES([Makefile libconfig/Makefile src/Makefile])
   76 AC_OUTPUT