"Fossies" - the Fresh Open Source Software Archive

Member "squidview-0.86/configure.in" (1 Feb 2017, 1546 Bytes) of package /linux/privat/squidview-0.86.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. See also the latest Fossies "Diffs" side-by-side code changes report for "configure.in": 0.85_vs_0.86.

    1 AC_DEFUN([CURSES_TEST],
    2 [
    3 if test "x$sv_curses" = xno; then
    4   sv_test=$1
    5   sv_pass="no"
    6   AC_MSG_CHECKING([name is $sv_test])
    7   LIBS="-l$sv_test"
    8   AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <curses.h>], [initscr();])],
    9     [sv_pass="yes"])
   10   AC_MSG_RESULT([$sv_pass])
   11   test "$sv_pass" = yes && sv_curses=$sv_test
   12   unset LIBS
   13 fi
   14 ])
   15 
   16 AC_INIT(squidview.cpp)
   17 AM_CONFIG_HEADER(config.h)
   18 AM_INIT_AUTOMAKE(squidview,0.86)
   19 AC_PROG_CXX
   20 AC_PROG_INSTALL
   21 
   22 AC_CHECK_HEADERS(curses.h, signal.h sys/time.h sys/types.h sys/stat.h \
   23  unistd.h fcntl.h time.h stdlib.h math.h stdio.h,, \
   24  AC_MSG_ERROR([header missing]))
   25 
   26 AC_LANG_CPLUSPLUS
   27 AC_CHECK_HEADER(string,,AC_MSG_ERROR(C++ STL string class missing))
   28 AC_CHECK_HEADER(vector,,AC_MSG_ERROR(C++ STL vector class missing))
   29 AC_CHECK_HEADER(algorithm,,AC_MSG_ERROR(C++ STL algorithm class missing))
   30 
   31 AC_MSG_NOTICE([Checking curses library name])
   32 sv_curses=no
   33 CURSES_TEST(ncurses)
   34 CURSES_TEST(curses)
   35 if test "x$sv_curses" = xno; then
   36   AC_MSG_ERROR([No suitable curses found])
   37 fi
   38 AC_CHECK_LIB($sv_curses, wgetch,,AC_MSG_ERROR([Curses support is not complete?]))
   39 
   40 AC_MSG_CHECKING([large file support])
   41 sv_large="no"
   42 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
   43   #include <sys/types.h>
   44   #include <sys/stat.h>
   45   #include <fcntl.h>
   46   ],[open ("file",  O_RDONLY | O_LARGEFILE);])],[sv_large="yes"])
   47 AC_MSG_RESULT([$sv_large])
   48 if test "$sv_large" = yes; then
   49   AC_DEFINE([LARGE_FILE],[1],[files over four gigs])
   50   CPPFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $CPPFLAGS"
   51 fi
   52 
   53 AC_OUTPUT(Makefile)