~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Eric Day
  • Date: 2009-05-09 03:25:47 UTC
  • mto: (971.3.38 eday-dev)
  • mto: This revision was merged to the branch mainline in revision 1011.
  • Revision ID: eday@oddments.org-20090509032547-4umgnxmxar3txgvo
Fix for bug #372367, pcre header detection.

Show diffs side-by-side

added added

removed removed

Lines of Context:
492
492
#--------------------------------------------------------------------
493
493
 
494
494
AC_LIB_HAVE_LINKFLAGS(pcre,, [#include <pcre.h>], [pcre *re= NULL])
495
 
AS_IF([test "x$ac_cv_libpcre" = "xno"],[
 
495
AS_IF([test "x$ac_cv_libpcre" = "xno"],
 
496
[
496
497
  unset ac_cv_libpcre
497
498
  AC_LIB_HAVE_LINKFLAGS(pcre,, [#include <pcre/pcre.h>], [pcre *re= NULL])
498
499
  AS_IF([test "x$ac_cv_libpcre" = "xno"],
499
 
        [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.])]
500
 
        [AC_DEFINE(PCRE_HEADER,[<pcre/pcre.h>],[Location of pcre header])])
 
500
  [
 
501
    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.])
 
502
  ],[
 
503
    AC_DEFINE(PCRE_HEADER,[<pcre/pcre.h>],[Location of pcre header])
 
504
  ])
501
505
],[
502
506
  AC_DEFINE(PCRE_HEADER,[<pcre.h>],[Location of pcre header])
503
507
])