home *** CD-ROM | disk | FTP | other *** search
/ c't freeware shareware 2001 January / CT_SW0101.ISO / pc / software / kommunik / ftp / kmago112.tgz / kmago112.tar / kmago-1.1.2 / configure.in.in < prev    next >
Text File  |  2001-04-02  |  2KB  |  76 lines

  1. #MIN_CONFIG
  2.  
  3. dnl Checks for header files.
  4. AC_HEADER_STDC
  5. AC_CHECK_HEADERS(math.h unistd.h stdlib.h sys/type.h regex.h)
  6.  
  7. dnl define document name
  8. AC_DEFINE(DOC, "kmago")
  9.  
  10. dnl define document version
  11. AC_DEFINE(DOCVERS, "1.0")
  12.  
  13. dnl setenv & unsetenv for solaris
  14. AC_CHECK_FUNCS([setenv unsetenv])
  15.  
  16. dnl disable kio retriever
  17. AC_ARG_ENABLE(kio, [  --disable-kio          disable KDE I/O based retriever],
  18. [if test "$enableval" = no; then
  19.     AC_MSG_RESULT(disabling kio retriever)
  20.     LIB_KIO=
  21. fi])
  22. if test -n "$LIB_KIO" ; then
  23.     AC_MSG_RESULT(enabling kio retriever)
  24.     AC_DEFINE(ENABLE_KIO)
  25. fi
  26. AC_SUBST(LIB_KIO)
  27.  
  28. dnl disable wget retriever
  29. USE_WGET=yes
  30. AC_ARG_ENABLE(wget, [  --disable-wget         disable wget based retriever],
  31. [if test "$enableval" = no; then
  32.     AC_MSG_RESULT(disabling wget retriever)
  33.     USE_WGET=
  34. fi])
  35. if test -n "$USE_WGET" ; then
  36.     AC_MSG_RESULT(enabling wget retriever)
  37.     AC_DEFINE(ENABLE_WGET)
  38. fi
  39.  
  40. dnl check for kde version >= 2.1 post Beta 2 (>= 20010128)
  41. line=$(grep "^// Revision 1.207" $kde_includes/kapp.h)
  42. dnl echo $line
  43. if test -n "$line" ; then
  44.     kde_version_post_1207=1
  45.     AC_DEFINE(KDE_VERSION_POST_1207)
  46. fi
  47.  
  48. dnl workaround for KURLRequester error for QT < 2.3.0
  49. dnl AC_ARG_ENABLE(kurlreq-err, [  --enable-kurlreq-err   enable workaround for KURLRequester error],
  50. if test "$kde_qtsubver" -lt 3; then
  51.     if test -z "$kde_version_post_1207"; then
  52.         AC_MSG_RESULT(enabling KURLRequester workaround)
  53.         AC_DEFINE(KURLREQ_ERR)
  54.     else
  55.         AC_MSG_RESULT(enabling KURLRequester workaround for KDE version > 1207)
  56.     fi
  57. fi
  58.  
  59. dnl check for dmalloc library
  60. AC_CHECK_LIB(dmallocxx, dmalloc_shutdown, [sm_have_dmalloc=yes])
  61.  
  62. dnl add dmalloc support
  63. LIBDMALLOC=
  64. AC_ARG_ENABLE(dmalloc, [  --enable-dmalloc       compile and link with dmalloc],
  65. [if test "$enableval" = yes; then
  66.    if test "$sm_have_dmalloc" = yes; then
  67.      AC_MSG_RESULT(enabling dmalloc)
  68.      AC_DEFINE(DMALLOC)
  69.      LIBDMALLOC=-ldmallocxx
  70.    else
  71.      AC_MSG_ERROR(dmalloc not found)
  72.    fi
  73.  fi])
  74. AC_SUBST(LIBDMALLOC)
  75.  
  76.