~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

Merge/fix in FAQ.

Show diffs side-by-side

added added

removed removed

Lines of Context:
290
290
then
291
291
  AC_MSG_ERROR([Couldn't find event.h. Try installing libevent development packages])
292
292
fi
 
293
my_save_LIBS="$LIBS"
 
294
LIBS=""
293
295
AC_CHECK_LIB(event, event_loop, [], [AC_MSG_ERROR(could not find libevent)])
 
296
LIBEVENT_LIBS="${LIBS}"
 
297
LIBS="${my_save_LIBS}"
 
298
AC_SUBST(LIBEVENT_LIBS)
294
299
 
295
300
#--------------------------------------------------------------------
296
301
# Check for libpthread
322
327
# Check for libz
323
328
#--------------------------------------------------------------------
324
329
 
 
330
my_save_LIBS="$LIBS"
 
331
LIBS=""
325
332
AC_CHECK_HEADERS(zlib.h)
326
333
if test "x$ac_cv_header_zlib_h" != "xyes"
327
334
then
328
335
  AC_MSG_ERROR([Couldn't find zlib.h. Try installing zlib development packages])
329
336
fi
330
337
AC_CHECK_LIB(z, crc32, [], [AC_MSG_ERROR(could not find libz)])
 
338
ZLIB_LIBS="$LIBS"
 
339
LIBS="$my_save_LIBS"
 
340
AC_SUBST(ZLIB_LIBS)
 
341
 
331
342
 
332
343
 
333
344
AC_CHECK_HEADERS([readline/readline.h])
335
346
then
336
347
  AC_MSG_ERROR([Couldn't find readline/readline.h. Try installing readline development packages.])
337
348
fi
 
349
my_save_LIBS="$LIBS"
 
350
LIBS=""
 
351
AC_CHECK_LIB(readline, rl_completion_matches, [], [AC_MSG_ERROR(Couldn't find libreadline.)])
 
352
READLINE_LIBS="$LIBS"
 
353
LIBS="$my_save_LIBS"
 
354
AC_SUBST(READLINE_LIBS)
338
355
 
339
356
#--------------------------------------------------------------------
340
357
# Check for libpcre
668
685
then
669
686
  AC_MSG_ERROR([Drizzle requires dlopen])
670
687
fi
671
 
LIBDL=$LIBS
 
688
LIBDL_LIBS="$LIBS"
672
689
LIBS="$my_save_LIBS"
673
 
AC_SUBST(LIBDL)
 
690
AC_SUBST(LIBDL_LIBS)
674
691
 
675
692
AC_CHECK_FUNCS(strtok_r)
676
693
 
713
730
CFLAGS="${SYMBOLS_CFLAGS} ${CFLAGS}"
714
731
CXXFLAGS="${SYMBOLS_CXXFLAGS} ${CXXFLAGS}"
715
732
 
 
733
AC_ARG_WITH([debug],
 
734
    [AS_HELP_STRING([--with-debug],
 
735
       [Add debug code/turns off optimizations (yes|no) @<:@default=no@:>@])],
 
736
    [with_debug=$withval],
 
737
    [with_debug=no])
 
738
if test "$with_debug" = "yes"
 
739
then
 
740
  # Medium debug.
 
741
  CFLAGS="$DEBUG_OPTIMIZE_CC $CFLAGS"
 
742
  CXXFLAGS="$DEBUG_OPTIMIZE_CXX $CXXFLAGS"
 
743
else
 
744
  # Optimized version. No debug
 
745
  CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS"
 
746
  CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS"
 
747
fi
 
748
 
 
749
 
716
750
AC_ARG_WITH([fast-mutexes],
717
751
    [AS_HELP_STRING([--with-fast-mutexes],
718
752
            [Compile with fast mutexes  @<:@default=off@:>@])],
878
912
then
879
913
  MYSQL_CHECK_LIB_TERMCAP
880
914
else
881
 
  TERMCAP_LIB="$with_named_curses"
 
915
  TERMCAP_LIBS="$with_named_curses"
882
916
fi
883
 
AC_SUBST(TERMCAP_LIB)
 
917
AC_SUBST(TERMCAP_LIBS)
884
918
 
885
919
# Check if the termcap function 'tgoto' is already declared in
886
920
# system header files or if it need to be declared locally