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

Linux Cross Reference
Tina5/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], [5.0rcbuild97])
  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 AC_PROG_RANLIB
 39 
 40 AC_PROG_CC
 41 if test "$GCC" = yes; then
 42   CFLAGS="$CFLAGS -Wall"
 43 fi
 44 
 45 AC_DEFINE([__EXTENSIONS__], ,
 46           [Define to get various extensions in headers on Solaris, for instance]) dnl might cause trouble elsewhere....
 47 
 48 AC_C_BIGENDIAN(AC_DEFINE([BIG_ENDIAN_ARCHITECTURE], 1,
 49                          [Define to 1 on a big-endian system.]),
 50                AC_DEFINE([LITTLE_ENDIAN_ARCHITECTURE], 1,
 51                          [Define to 1 on a little-endian system.]))
 52 
 53 # Checks for libraries.
 54 AC_CHECK_LIB(m, pow)
 55 
 56 # Checks for header files.
 57 AC_HEADER_STDC
 58 AC_HEADER_DIRENT
 59 AC_CHECK_HEADERS([memory.h errno.h stdlib.h string.h limits.h \
 60                                                                         sys/param.h stdarg.h varargs.h])
 61 
 62 # Checks for typedefs, structures, and compiler characteristics.
 63 AC_C_CONST
 64 AC_TYPE_MODE_T
 65 AC_TYPE_SIZE_T
 66 AC_STRUCT_TM
 67 AC_HEADER_TIME
 68 AC_TYPE_UID_T
 69 
 70 # Checks for library functions.
 71 AC_FUNC_ERROR_AT_LINE
 72 AC_FUNC_FNMATCH
 73 AC_FUNC_MALLOC
 74 AC_FUNC_STAT
 75 AC_FUNC_VPRINTF
 76 AC_CHECK_FUNCS([floor memcpy memset strchr pow sqrt scandir])
 77 AC_TYPE_SIGNAL
 78 
 79 # doings
 80 # NOTE: do not break the following into lines using '\' as this causes problems
 81 # when run under Cygwin (ipoole,28/1/03)
 82 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) 
 83 
 84 # finale
 85 AC_MSG_RESULT([
 86 
 87 tina-lib now configured for ${host}
 88 
 89   Source directory:               ${srcdir}
 90   Installation directory:         ${prefix}
 91   C compiler:                     ${CC}
 92   LIBS needed for configure:      ${LIBS}
 93 ])
 94 
 95 # 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.