diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-26 13:17:21 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-26 13:17:21 -0600 |
commit | dfe289850f068f19ba4a83ab4e7e22a7e09c13c9 (patch) | |
tree | c297348a55df66c571de4525646e0b9762427353 /tdehtml/configure.in.in | |
parent | b7658a0d5eca24a9d37c6e04f88298ef02389db0 (diff) | |
download | tdelibs-dfe289850f068f19ba4a83ab4e7e22a7e09c13c9.tar.gz tdelibs-dfe289850f068f19ba4a83ab4e7e22a7e09c13c9.zip |
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdehtml/configure.in.in')
-rw-r--r-- | tdehtml/configure.in.in | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/tdehtml/configure.in.in b/tdehtml/configure.in.in new file mode 100644 index 000000000..b85dd8474 --- /dev/null +++ b/tdehtml/configure.in.in @@ -0,0 +1,57 @@ +AM_CONDITIONAL(DOJAVA, test "x$kde_use_qt_emb" != "xyes") + +AC_DEFUN([KDE_CHECK_LIBTHAI], +[ +AC_MSG_CHECKING([if libthai should be compiled in]) + AC_ARG_WITH(libthai, + AC_HELP_STRING( + [--with-libthai=yes], + [add Thai-language support from libthai library [default=no]] + ), + [ ac_libthai=$withval], + [ ac_libthai=no ] + ) + +if test "$ac_libthai" != "no"; then + AC_CACHE_VAL(kde_link_libthai, + [ + kde_ldflags_safe="$LDFLAGS" + kde_libs_safe="$LIBS" + + LDFLAGS="$LDFLAGS $USER_LDFLAGS" + LIBS="-lthai" + + AC_TRY_LINK([ + #include <thai/thailib.h> + #include <thai/thbrk.h> + ], + [ + thchar_t c = 'C'; + int pos[1]; + size_t n = 12; + (void)th_brk(&c, pos, n); + ], + kde_link_libthai=yes, + kde_link_libthai=no + ) + + LDFLAGS=$kde_ldflags_safe + LIBS=$kde_libs_safe + ]) + + LIBTHAI="" + if test "$kde_link_libthai" = "no"; then + AC_MSG_ERROR([Can't find libthai.]) + else + AC_DEFINE(HAVE_LIBTHAI, 1, + [Defined if you have libthai and want to have it compiled in]) + LIBTHAI="-lthai" + fi + AC_SUBST(LIBTHAI) +fi +AC_MSG_RESULT($ac_libthai) +]) + +KDE_CHECK_LIBTHAI + +KDE_CHECK_HEADERS(valgrind/memcheck.h) |