~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Monty Taylor
  • Date: 2009-03-06 06:53:24 UTC
  • mto: This revision was merged to the branch mainline in revision 919.
  • Revision ID: mordred@inaugust.com-20090306065324-vq2sboni8mxlzd7k
Added more verbose failure messages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
AC_CXX_HEADER_STDCXX_98
60
60
if test "$ac_cv_cxx_stdcxx_98" = "no"
61
61
then
62
 
  AC_MSG_ERROR([C++ Compiler required to compile Drizzle])
 
62
  AC_MSG_ERROR([No working C++ Compiler has been found. Drizzle requires a C++ compiler that can handle C++98])
63
63
fi
64
64
AC_PROG_CPP
65
65
AM_PROG_CC_C_O
66
66
 
 
67
if test "$am_cv_prog_cc_stdc" = "no"
 
68
then
 
69
  AC_MSG_ERROR([Drizzle requires an ANSI C compiler (and a C++ compiler). Try gcc. See the Installation chapter in the Reference Manual.])
 
70
fi
 
71
 
 
72
 
67
73
 
68
74
gl_INIT
69
75
 
174
180
 
175
181
AC_PATH_PROG(GPERF, gperf)
176
182
AS_IF([test "x$GPERF" = "x"],
177
 
      AC_MSG_ERROR("Drizzle requires gperf to build. Please install it."))
 
183
      AC_MSG_ERROR("Drizzle requires gperf to build."))
178
184
 
179
185
AC_PATH_PROG(LCOV, lcov)
180
186
AC_PATH_PROG(GENHTML, genhtml)
356
362
],
357
363
[google::protobuf::FileDescriptor* file;])
358
364
AS_IF([test x$ac_cv_libprotobuf = xno],
359
 
      AC_MSG_ERROR([protobuf is required for Drizzle]))
 
365
      AC_MSG_ERROR([protobuf is required for Drizzle. On Debian this can be found in libprotobuf-dev. On RedHat this can be found in protobuf-devel.]))
360
366
 
361
367
AC_CACHE_CHECK([if protobuf is recent enough], [drizzle_cv_protobuf_recent],
362
368
  [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
375
381
AC_PATH_PROG([PROTOC],[protoc],[no],[$LIBPROTOBUF_PREFIX/bin:$PATH])
376
382
if test "x$PROTOC" = "xno"
377
383
then
378
 
  AC_MSG_ERROR([Couldn't find protoc. Try installing Google Protocol Buffer.])
 
384
  AC_MSG_ERROR([Couldn't find the protoc compiler. On Debian this can be found in protobuf-compiler. On RedHat this can be found in protobuf-compiler.])
379
385
fi
380
386
 
381
387
AC_LANG_POP()
390
396
AC_CHECK_HEADERS(uuid/uuid.h)
391
397
if test "x$ac_cv_header_uuid_uuid_h" = "xno"
392
398
then
393
 
  AC_MSG_ERROR([Couldn't find uuid/uuid.h. Try installing libuuid development packages])
 
399
  AC_MSG_ERROR([Couldn't find uuid/uuid.h. On Debian this can be found in uuid-dev. On Redhat this can be found in e2fsprogs-devel.])
394
400
fi
395
401
AC_LIB_HAVE_LINKFLAGS(uuid,,
396
402
[
456
462
  crc32(0, Z_NULL, 0);
457
463
])
458
464
AS_IF([test x$ac_cv_libz = xno],
459
 
      AC_MSG_ERROR([libz is required for Drizzle]))
 
465
      AC_MSG_ERROR([libz is required for Drizzle. On Debian this can be found in zlib1g-dev. On RedHat this can be found in zlib-devel.]))
460
466
 
461
467
#--------------------------------------------------------------------
462
468
# Check for TBB
485
491
LIBS=""
486
492
VL_LIB_READLINE
487
493
AS_IF([test "x$vl_cv_lib_readline" = "xno"],
488
 
      AC_MSG_ERROR([libreadline is required for Drizzle]))
 
494
      AC_MSG_ERROR([libreadline is required for Drizzle. On Debian this can be found in libreadline5-dev. On RedHat this can be found in readline-devel.]))
489
495
READLINE_LIBS="${LIBS}"
490
496
LIBS="${save_LIBS}"
491
497
AC_SUBST(READLINE_LIBS)
501
507
  unset ac_cv_libpcre
502
508
  AC_LIB_HAVE_LINKFLAGS(pcre,, [#include <pcre/pcre.h>], [pcre *re= NULL])
503
509
  AS_IF([test "x$ac_cv_libpcre" = "xno"],
504
 
        [AC_MSG_ERROR([libpcre is required for Drizzle])]
 
510
        [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.])]
505
511
        [AC_DEFINE(PCRE_HEADER,[<pcre/pcre.h>],[Location of pcre header])])
506
512
],[
507
513
  AC_DEFINE(PCRE_HEADER,[<pcre.h>],[Location of pcre header])
624
630
# Check if we need noexec stack for assembler
625
631
AC_CHECK_NOEXECSTACK
626
632
 
627
 
if test "$am_cv_prog_cc_stdc" = "no"
628
 
then
629
 
  AC_MSG_ERROR([Drizzle requires an ANSI C compiler (and a C++ compiler). Try gcc. See the Installation chapter in the Reference Manual.])
630
 
fi
631
 
 
632
 
 
633
633
AC_ARG_WITH([server-suffix],
634
634
    [AS_HELP_STRING([--with-server-suffix],
635
635
      [Append value to the version string.])],