~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

Merged from codestyle.

Show diffs side-by-side

added added

removed removed

Lines of Context:
354
354
    AC_MSG_ERROR([Couldn't find GLib2. Try installing libglib2.0-dev or glib2-devel])
355
355
fi
356
356
 
357
 
# Avoid bug in fcntl on some versions of linux
358
 
AC_MSG_CHECKING([if we should use 'skip-external-locking' as default for $target_os])
359
 
# Any variation of Linux
360
 
if expr "$target_os" : "[[Ll]]inux.*" > /dev/null
361
 
then
362
 
  MYSQLD_DEFAULT_SWITCHES="--skip-external-locking"
363
 
  TARGET_LINUX="true"
364
 
  AC_MSG_RESULT([yes])
365
 
  AC_DEFINE([TARGET_OS_LINUX], [1], [Whether we build for Linux])
366
 
else
367
 
  MYSQLD_DEFAULT_SWITCHES=""
368
 
  TARGET_LINUX="false"
369
 
  AC_MSG_RESULT([no])
370
 
fi
371
 
AC_SUBST(MYSQLD_DEFAULT_SWITCHES)
372
 
AC_SUBST(TARGET_LINUX)
373
 
 
374
357
dnl Find paths to some shell programs
375
358
AC_PATH_PROG(LN, ln, ln)
376
359
# This must be able to take a -f flag like normal unix ln.
800
783
fi
801
784
AC_SUBST(COMPILATION_COMMENT)
802
785
 
 
786
if expr "$target_os" : "[[Ll]]inux.*" > /dev/null
 
787
then
 
788
  TARGET_LINUX="true"
 
789
  AC_DEFINE([TARGET_OS_LINUX], [1], [Whether we build for Linux])
 
790
else
 
791
  TARGET_LINUX="false"
 
792
fi
 
793
 
803
794
AC_MSG_CHECKING("need of special linking flags")
804
795
if test "$TARGET_LINUX" = "true" -a "$ac_cv_c_compiler_gnu" = "yes" -a "$all_is_static" != "yes"
805
796
then