~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina6/tina-libs/configure.ac

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # Process this file with autoconf to produce a configure script.
  2 # $Id: configure.ac,v 1.58 2008/12/16 11:34:54 neil Exp $
  3 
  4 # Update the variable below (left) with the new build/version number
  5 m4_define([TINAVERSION], [6.0rcbuild010])
  6 
  7 # code start
  8 
  9 AC_INIT(tina-libs, TINAVERSION, bugs@tina-vision.net)
 10 AC_CANONICAL_TARGET dnl Has to go early to avoid warning about AC_ARG_PROGRAM
 11 dnl Fixme:  This gets various things declared with glibc, but not on
 12 dnl other platforms, which probably need _XOPEN_EXTENDED.  That needs
 13 dnl care as it may break other things.
 14 AC_GNU_SOURCE
 15 AM_INIT_AUTOMAKE
 16 AC_CONFIG_SRCDIR([tina/vision/visDef.h])
 17 AC_CONFIG_HEADERS([config.h])
 18 # prefix location for libraries is within build directory
 19 AC_PREFIX_DEFAULT([`pwd`])      dnl NB Can lose on automounted filesystem
 20 
 21 AM_MAINTAINER_MODE
 22 
 23 # Check system
 24 
 25 # This used to use AC_CYGWIN, AC_MINGw32, which test the host,
 26 # not the target.
 27 CYGWIN=no; MINGW32=no
 28 case $target_os in
 29    *cygwin*) CYGWIN=yes;;
 30   *mingw32*) MINGW32=yes;;
 31 esac
 32 
 33 # Checks for programs.
 34 AC_DISABLE_SHARED
 35 AC_PROG_LIBTOOL
 36 AC_PROG_INSTALL
 37 AC_PROG_AWK
 38 
 39 AC_PROG_CC
 40 if test "$GCC" = yes; then
 41   CFLAGS="$CFLAGS -Wall"
 42 fi
 43 
 44 AC_DEFINE([__EXTENSIONS__], ,
 45           [Define to get various extensions in headers on Solaris, for instance]) dnl might cause trouble elsewhere....
 46 
 47 AC_C_BIGENDIAN(AC_DEFINE([BIG_ENDIAN_ARCHITECTURE], 1,
 48                          [Define to 1 on a big-endian system.]),
 49                AC_DEFINE([LITTLE_ENDIAN_ARCHITECTURE], 1,
 50                          [Define to 1 on a little-endian system.]))
 51 
 52 # Checks for libraries.
 53 AC_CHECK_LIB(m, pow)
 54 
 55 # Checks for header files.
 56 AC_HEADER_STDC
 57 AC_HEADER_DIRENT
 58 AC_CHECK_HEADERS([memory.h errno.h stdlib.h string.h limits.h sys/param.h stdarg.h varargs.h])
 59 
 60 # Checks for typedefs, structures, and compiler characteristics.
 61 AC_C_CONST
 62 AC_TYPE_MODE_T
 63 AC_TYPE_SIZE_T
 64 AC_STRUCT_TM
 65 AC_HEADER_TIME
 66 AC_TYPE_UID_T
 67 
 68 # Checks for library functions.
 69 AC_FUNC_ERROR_AT_LINE
 70 AC_FUNC_FNMATCH
 71 AC_FUNC_MALLOC
 72 AC_FUNC_STAT
 73 AC_FUNC_VPRINTF
 74 AC_CHECK_FUNCS([floor memcpy memset strchr pow sqrt scandir])
 75 AC_TYPE_SIGNAL
 76 
 77 # doings
 78 # NOTE: do not break the following into lines using '\' as this causes problems
 79 # when run under Cygwin (ipoole,28/1/03)
 80 AC_OUTPUT(Makefile tina/Makefile tina/sys/Makefile tina/math/Makefile tina/image/Makefile tina/geometry/Makefile tina/file/Makefile tina/vision/Makefile tina/medical/Makefile demo/Makefile demo/example/Makefile) 
 81 
 82 # finale
 83 AC_MSG_RESULT([
 84 
 85 tina-lib now configured for ${host}
 86 
 87   Source directory:               ${srcdir}
 88   Installation directory:         ${prefix}
 89   C compiler:                     ${CC}
 90   LIBS needed for configure:      ${LIBS}
 91 ])
 92 
 93 # I thank you!

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.