Subversion Repositories Vertical

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 mjames 1
dnl Process this file with autoconf to produce a configure script.
2
 
3
AC_CONFIG_MACRO_DIRS([m4])
4
AC_INIT([metal],[1.2],[mike@hamble.online])
5
 
6
dnl support cross compiling
7
dnl AC_CANONICAL_TARGET
8
AC_CANONICAL_HOST
9
 
10
dnl AC_CONFIG_AUX_DIR(config)
11
AC_CONFIG_SRCDIR(.)
12
 
13
AM_INIT_AUTOMAKE
14
 
15
LT_INIT
16
 
17
 
18
AC_PROG_LEX
19
 
20
 
21
AC_PROG_YACC
22
dnl Tell YACC to produce header
23
AM_YFLAGS = -d
24
 
25
dnl use config.h for configuration macros
26
AC_CONFIG_HEADERS([config.h:config.in])
27
AM_MAINTAINER_MODE
28
 
29
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])
30
 
31
AC_SEARCH_LIBS([regcomp], [pcre2 pcre regex ], [], [
32
  AC_MSG_ERROR([unable to find regcomp() function]) 
33
])
34
 
35
dnl support C and C++
36
AC_PROG_CC
37
 
38
test ! -z "$GCC" &&  CFLAGS="$CFLAGS -Wall -W -Wundef -Wshadow -Wsequence-point"
39
 
40
AC_PROG_CXX
41
 
42
AC_PROG_INSTALL
43
 
44
 
45
dnl
46
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 ])
47
AC_OUTPUT
48