~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Eric Day
  • Date: 2009-05-09 16:43:18 UTC
  • mto: (971.3.38 eday-dev)
  • mto: This revision was merged to the branch mainline in revision 1011.
  • Revision ID: eday@oddments.org-20090509164318-yjunljvodim0bzv5
Fixed more autoconf bugs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
491
491
# Check for libpcre
492
492
#--------------------------------------------------------------------
493
493
 
494
 
AC_LIB_HAVE_LINKFLAGS(pcre,, [#include <pcre.h>], [pcre *re= NULL])
 
494
AC_LIB_HAVE_LINKFLAGS(pcre,,
 
495
[#include <pcre.h>],
 
496
[
 
497
  pcre *re= NULL;
 
498
  pcre_version();
 
499
])
495
500
AS_IF([test "x$ac_cv_libpcre" = "xno"],
496
501
[
497
502
  unset ac_cv_libpcre
498
 
  AC_LIB_HAVE_LINKFLAGS(pcre,, [#include <pcre/pcre.h>], [pcre *re= NULL])
 
503
  unset HAVE_LIBPCRE
 
504
  unset LIBPCRE
 
505
  unset LIBPCRE_PREFIX
 
506
  unset LTLIBPCRE
 
507
  AC_LIB_HAVE_LINKFLAGS(pcre,,
 
508
  [#include <pcre/pcre.h>],
 
509
  [
 
510
    pcre *re= NULL;
 
511
    pcre_version();
 
512
  ])
499
513
  AS_IF([test "x$ac_cv_libpcre" = "xno"],
500
514
  [
501
515
    AC_MSG_ERROR([libpcre is required for Drizzle. On Debian this can be found in libpcre3-dev. On RedHat this can be found in pcre-devel.])