File:  [ELWIX - Embedded LightWeight unIX -] / ansh / configure.in
Revision 1.6: download - view: text, annotated - select for diffs - revision graph
Tue May 19 23:25:29 2015 UTC (9 years ago) by misho
Branches: MAIN
CVS tags: ansh2_1, HEAD, ANSH2_0
version 2.0

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.6 2015/05/19 23:25:29 misho Exp $
    4: #
    5: AC_INIT(ansh, 2.0, misho@elwix.org)
    6: AC_CONFIG_SRCDIR([src/anshd.c])
    7: AC_CONFIG_HEADERS([inc/config.h])
    8: 
    9: ac_cv_func_malloc_0_nonnull="yes"
   10: ac_cv_func_realloc_0_nonnull="yes"
   11: 
   12: # Checks for programs.
   13: AC_PROG_CC
   14: AC_PROG_INSTALL
   15: 
   16: AC_CANONICAL_HOST
   17: AC_CANONICAL_TARGET
   18: 
   19: AC_CHECK_TOOL(MKDEP, mkdep, no)
   20: AC_SUBST(MKDEP)
   21: 
   22: CFLAGS="-Wall -O2 -fPIC ${CFLAGS}"
   23: LDFLAGS="${LDFLAGS}"
   24: 
   25: # Checks for libraries.
   26: AC_CHECK_LIB([crypto], [AES_ctr128_encrypt])
   27: AC_CHECK_LIB([util], [openpty])
   28: AC_CHECK_LIB([elwix], [crcAdler])
   29: AC_CHECK_LIB([aitio], [ioForkPTY])
   30: #AC_CHECK_LIB([aitsched], [schedRead])
   31: 
   32: # Checks for header files.
   33: AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h syslog.h unistd.h])
   34: 
   35: # Checks for typedefs, structures, and compiler characteristics.
   36: AC_TYPE_INT8_T
   37: AC_TYPE_PID_T
   38: AC_TYPE_UINT16_T
   39: AC_TYPE_UINT32_T
   40: AC_TYPE_UINT8_T
   41: 
   42: # Checks for library functions.
   43: AC_FUNC_FORK
   44: AC_FUNC_MALLOC
   45: AC_CHECK_FUNCS([dup2 endpwent gethostbyname memset select socket strerror strtol])
   46: 
   47: STATIC="no"
   48: AC_MSG_CHECKING(Static build for ansh)
   49: AC_ARG_ENABLE(static,
   50: 	[  --enable-static         Static build for ansh software ],
   51: 	[ STATIC=$enableval
   52: 		case "$enableval" in
   53: 			yes)
   54: 				LDFLAGS="-static ${LDFLAGS}"
   55: 				;;
   56: 			*)
   57: 				;;
   58: 		esac ],)
   59: AC_MSG_RESULT($STATIC)
   60: 
   61: AC_CONFIG_FILES([Makefile
   62:                  bin/Makefile
   63:                  inc/Makefile
   64:                  src/Makefile])
   65: AC_OUTPUT

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>