77 lines
1.4 KiB
Plaintext
77 lines
1.4 KiB
Plaintext
AC_INIT([ftp-c], [0.1.0], [], [ftp_c])
|
|
|
|
AC_REVISION([Revision 1])
|
|
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
# We need automake
|
|
AM_INIT_AUTOMAKE([-Wall -Werror])
|
|
|
|
AM_PROG_AR
|
|
|
|
AC_CONFIG_SRCDIR([src/ftp.c])
|
|
|
|
LT_INIT
|
|
|
|
# For debian systems, /usr as default
|
|
AC_PREFIX_DEFAULT([/usr])
|
|
|
|
# We need Gcc
|
|
AC_PROG_CC
|
|
# We need OBJC, for MAC
|
|
AC_PROG_OBJC
|
|
|
|
|
|
# Translate this program
|
|
#AM_GNU_GETTEXT_VERSION([0.19.3])
|
|
#AM_GNU_GETTEXT([external])
|
|
|
|
ALL_LINGUAS=""
|
|
AC_SUBST(ALL_LINGUAS)
|
|
|
|
AM_PROG_CC_C_O
|
|
|
|
# Revisar el host
|
|
AC_CANONICAL_HOST
|
|
|
|
case $host_os in
|
|
*mingw32* ) MINGW32=yes;;
|
|
* ) MINGW32=no;;
|
|
esac
|
|
case $host_os in
|
|
*cygwin* ) CYGWIN=yes;;
|
|
* ) CYGWIN=no;;
|
|
esac
|
|
case $host_os in
|
|
*linux* ) LINUX=yes;;
|
|
* ) LINUX=no;;
|
|
esac
|
|
case $host_os in
|
|
*darwin* ) MACOSX=yes;;
|
|
* ) MACOSX=no;;
|
|
esac
|
|
|
|
AM_CONDITIONAL(MINGW32, test x$MINGW32 = xyes)
|
|
AM_CONDITIONAL(LINUX, test x$LINUX = xyes)
|
|
AM_CONDITIONAL(MACOSX, test x$MACOSX = xyes)
|
|
|
|
# Check for pkg-config
|
|
#PKG_PROG_PKG_CONFIG
|
|
|
|
#OPENSSL_VERSION=0.9.8
|
|
|
|
#AC_MSG_CHECKING([if you have openssl installed on your system])
|
|
#PKG_CHECK_EXISTS([openssl >= $OPENSSL_VERSION], [AC_MSG_RESULT([yes])], [AC_MSG_FAILURE([openssl not found in your system])])
|
|
#PKG_CHECK_MODULES(OPENSSL, [openssl >= $OPENSSL_VERSION], [], [])
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
AC_CONFIG_FILES([
|
|
Makefile
|
|
src/Makefile
|
|
src/ftp-c.pc
|
|
])
|
|
|
|
AC_OUTPUT
|