fookb-perso/configure.in

45 lines
944 B
Plaintext

dnl Process this file with autoconf to produce a configure script.
dnl
dnl (c) 1998-2004 Alexey Vyskubov <alexey@mawhrin.net>
dnl
dnl vim:ts=8:sts=2:shiftwidth=2:expandtab:foldmethod=marker
dnl {{{1
AC_INIT(fookb.c)
dnl Checks for programs.
AC_PROG_CC
dnl }}}1
dnl Checks for libraries. {{{1
dnl Basic checks: X compilation settings and essential libraries {{{2
AC_PATH_XTRA
dnl Adds C compiler flags to X_CFLAGS and X linker flags to X_CFLAGS
dnl Extra libraries will be in X_EXTRA_LIBS
dnl Libraries wich should be linked before -lX11 will be in X_PRE_LIBS
dnl We do not check X_DISPLAY_MISSING because we need to check for
dnl XkbOpenDisplay in libX11 anyway.
AC_CHECK_LIB(
[X11],
[XkbOpenDisplay],
,
[AC_MSG_ERROR([[Fatal: no libX11 or no XkbOpenDisplay() in libX11]])],
$X_LIBS
)
AC_CHECK_LIB(
[Xpm],
[XpmReadFileToImage],
,
[AC_MSG_ERROR([[Fatal: no libXpm found!]])],
$X_LIBS
)
dnl }}}1
AC_OUTPUT(Makefile)