home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / DOORL093.ZIP / doorlib-0.9.3.tar.bz2 / doorlib-0.9.3.tar / doorlib-0.9.3 / configure.in < prev    next >
Text File  |  2003-12-21  |  2KB  |  112 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2. dnl $Id: configure.in,v 1.7 2003/12/21 13:12:47 mbroek Exp $
  3.  
  4. AC_INIT(src/door.h)
  5. AM_CONFIG_HEADER(config.h)
  6. SUBDIRS="src"
  7. AC_SUBST(SUBDIRS)
  8.  
  9. dnl
  10. dnl General settings for doorlib
  11. dnl After changing the version number, run autoconf!
  12. dnl
  13. PACKAGE="doorlib"
  14. VERSION="0.9.3"
  15. COPYRIGHT="Copyright (C) 2003 Michiel Broek, All Rights Reserved"
  16. AC_SUBST(PACKAGE)
  17. AC_SUBST(VERSION)
  18. AC_SUBST(LIBVERS)
  19. AC_SUBST(COPYRIGHT)
  20. AC_PREFIX_DEFAULT(/usr/local)
  21. AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
  22. AC_DEFINE_UNQUOTED(COPYRIGHT, "$COPYRIGHT")
  23.  
  24.  
  25. dnl
  26. dnl Checks for programs.
  27. dnl
  28. AC_PROG_CC
  29. AC_PROG_RANLIB
  30. AC_PROG_LN_S
  31. AC_CHECK_PROG(TAR, tar, tar)
  32.  
  33.  
  34.  
  35. dnl
  36. dnl Additional commandline switches
  37. dnl
  38. AC_ARG_ENABLE(debugging,   [  --enable-debugging      Compile for debugging], [ debugging=$enableval ], [ debugging=no ])
  39. if test "$debugging" = "yes"; then
  40.     CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes"
  41. else
  42.     CFLAGS="-O3 -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes"
  43. fi
  44.  
  45.  
  46.  
  47. dnl
  48. dnl Checks for header files.
  49. dnl
  50. AC_HEADER_STDC
  51.  
  52.  
  53. dnl
  54. dnl Checks for typedefs, structures, and compiler characteristics.
  55. dnl
  56. AC_C_CONST
  57. AC_TYPE_MODE_T
  58. AC_TYPE_SIZE_T
  59.  
  60.  
  61. dnl
  62. dnl Checks for library functions.
  63. dnl
  64. AC_FUNC_MEMCMP
  65.  
  66.  
  67. dnl
  68. dnl Find pkgconfig directory
  69. dnl
  70. AC_MSG_CHECKING(location of pkgconfig directory)
  71. for pkgdir in "${prefix}/lib/pkgconfig" "${prefix}/lib/libdata/pkgconfig" "${prefix}/libdata/pkgconfig" "/usr/lib/pkgconfig" "/usr/local/lib/pkgconfig" "/usr/libdata/pkgconfig" "/usr/local/libdata/pkgconfig" "/usr/pkg/lib/pkgconfig" "NONE"; do
  72.     if test "$pkgdir" = "NONE"; then
  73.         AC_MSG_ERROR(not found)
  74.     elif test -x $pkgdir; then
  75.         AC_SUBST(pkgdir)
  76.         AC_MSG_RESULT($pkgdir)
  77.         break;
  78.     fi
  79. done
  80.  
  81.  
  82. AC_OUTPUT(
  83.     Makefile.global
  84.     INSTALL 
  85.     FILE_ID.DIZ
  86.     door.pc
  87. )
  88.  
  89. #=================================================================================
  90.  
  91. AC_MSG_RESULT([
  92. -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
  93.  
  94.   Configuration summary :
  95.  
  96.     Version : ..................... ${VERSION}
  97. ])
  98.  
  99. if test x$ac_cv_c_compiler_gnu = xyes ; then
  100.         echo -e "  Tools :\n"
  101.         echo "    Compiler is GCC : ............. ${ac_cv_c_compiler_gnu}"
  102.     fi
  103.  
  104. AC_MSG_RESULT([
  105.   Installation directories :
  106.  
  107.     Library directory : ........... ${prefix}/lib
  108.     Include directory : ........... ${prefix}/include
  109.     Pkgconfig directory : ......... ${pkgdir}
  110. ])
  111.  
  112.