Subversion Repositories Vertical

Rev

Blame | Last modification | View Log | RSS feed

dnl Process this file with autoconf to produce a configure script.

AC_CONFIG_MACRO_DIRS([m4])
AC_INIT([metal],[1.2],[mike@hamble.online])

dnl support cross compiling
dnl AC_CANONICAL_TARGET
AC_CANONICAL_HOST

dnl AC_CONFIG_AUX_DIR(config)
AC_CONFIG_SRCDIR(.)

AM_INIT_AUTOMAKE

LT_INIT


AC_PROG_LEX


AC_PROG_YACC
dnl Tell YACC to produce header
AM_YFLAGS = -d

dnl use config.h for configuration macros
AC_CONFIG_HEADERS([config.h:config.in])
AM_MAINTAINER_MODE

AC_CHECK_HEADERS([regexp.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h termios.h unistd.h netdb.h])

AC_SEARCH_LIBS([regcomp], [pcre2 pcre regex ], [], [
  AC_MSG_ERROR([unable to find regcomp() function]) 
])

dnl support C and C++
AC_PROG_CC

test ! -z "$GCC" &&  CFLAGS="$CFLAGS -Wall -W -Wundef -Wshadow -Wsequence-point"

AC_PROG_CXX

AC_PROG_INSTALL


dnl
AC_CONFIG_FILES([Makefile  vertlib/Makefile cmdlib/Makefile versionlib/Makefile  acf_src/Makefile cdi_src/Makefile eagle_src/Makefile frb_src/Makefile gen_src/Makefile mentor_src/Makefile net_src/Makefile orcad_src/Makefile pads_src/Makefile protel_src/Makefile rep2_src/Makefile rep_src/Makefile ])
AC_OUTPUT