89 lines
1.7 KiB
Text
89 lines
1.7 KiB
Text
AC_INIT(nparted.h)
|
|
AM_INIT_AUTOMAKE(nparted,0.1)
|
|
|
|
#AM_CONFIG_HEADER(config.h)
|
|
|
|
dnl Checks for programs.
|
|
AC_PROG_CC
|
|
|
|
dnl Checks for libraries.
|
|
dnl Replace `main' with a function in -lnewt:
|
|
AC_CHECK_LIB(newt, newtInit,,
|
|
AC_MSG_ERROR(
|
|
GNU nparted requires libnewt
|
|
)
|
|
exit
|
|
)
|
|
AC_CHECK_LIB(uuid, uuid_generate,,
|
|
AC_MSG_ERROR(
|
|
GNU nparted requires libuuid
|
|
)
|
|
exit
|
|
)
|
|
dnl Replace `main' with a function in -lparted:
|
|
AC_CHECK_LIB(parted, ped_init,,
|
|
AC_MSG_ERROR(
|
|
GNU nparted requires libparted
|
|
)
|
|
exit
|
|
)
|
|
|
|
|
|
|
|
dnl Checks for i18n
|
|
ALL_LINGUAS="es es_ES"
|
|
AM_GNU_GETTEXT
|
|
CFLAGS="$CFLAGS -DLOCALEDIR=\"\\\"$datadir/locale\\\"\""
|
|
if test "$USE_INCLUDED_LIBINTL" = "yes"; then
|
|
AC_MSG_ERROR(
|
|
GNU nparted requires gettext to be intsalled for compilation -
|
|
if native language suppor is desired. Either disable native language
|
|
suppor with:
|
|
$ ./configure --disable-nls
|
|
)
|
|
exit
|
|
fi
|
|
|
|
AC_SUBST(INTLINCS)
|
|
|
|
dnl Checks for header files.
|
|
AC_HEADER_STDC
|
|
dnl quizás no haga falta
|
|
AC_CHECK_HEADER(uuid/uuid.h,,
|
|
AC_MSG_ERROR(
|
|
You need libuuid includes
|
|
)
|
|
exit
|
|
)
|
|
|
|
AC_CHECK_HEADER(parted/parted.h,,
|
|
AC_MSG_ERROR(
|
|
You need libparted includes
|
|
)
|
|
exit
|
|
)
|
|
|
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
AC_C_CONST
|
|
|
|
dnl Checks for library functions.
|
|
|
|
|
|
if test x$USE_NLS = xyes; then
|
|
AC_CHECK_HEADERS(wctype.h, ,
|
|
AC_MSG_ERROR(
|
|
One or more of the header files that are required for
|
|
native language support (wctype.h) could not be found. Either get a newer
|
|
version of GNU libc and its headers - which can be obtained from:
|
|
ftp.gnu.org/gnu/glibc
|
|
Or disable native language support with the --disable-nls option
|
|
)
|
|
exit
|
|
)
|
|
fi
|
|
|
|
|
|
CFLAGS="$CFLAGS -W -Wall"
|
|
|
|
AC_OUTPUT(Makefile po/Makefile.in intl/Makefile )
|