1 | dnl Process this file with autoconf to produce a configure script. |
1 | dnl Process this file with autoconf to produce a configure script. |
2 | |
2 | |
3 | AC_PREREQ(2.57) |
3 | AC_PREREQ(2.57) |
4 | AC_INIT(src/vped.C) |
4 | AC_INIT(src/vped.C) |
5 | AC_CANONICAL_TARGET |
5 | AC_CANONICAL_TARGET |
6 | AM_INIT_AUTOMAKE(vpe, 1.2) |
6 | AM_INIT_AUTOMAKE(vpe, 1.4) |
7 | AM_CONFIG_HEADER(config.h) |
7 | AM_CONFIG_HEADER(config.h) |
8 | AM_MAINTAINER_MODE |
8 | AM_MAINTAINER_MODE |
9 | |
9 | |
10 | AH_TOP([ |
10 | AH_TOP([ |
11 | #ifndef CONFIG_H__ |
11 | #ifndef CONFIG_H__ |
… | |
… | |
146 | AC_CHECK_HEADERS(ext/hash_map) |
146 | AC_CHECK_HEADERS(ext/hash_map) |
147 | |
147 | |
148 | dnl Checks for header files. |
148 | dnl Checks for header files. |
149 | AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ |
149 | AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ |
150 | sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h arpa/inet.h \ |
150 | sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h arpa/inet.h \ |
151 | sys/poll.h sys/mman.h netinet/in.h]) |
151 | sys/mman.h netinet/in.h]) |
152 | AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], |
152 | AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], |
153 | [ |
153 | [ |
154 | #include <sys/types.h> |
154 | #include <sys/types.h> |
155 | #include <sys/socket.h> |
155 | #include <sys/socket.h> |
156 | #ifdef HAVE_NETINET_IN_H |
156 | #ifdef HAVE_NETINET_IN_H |
… | |
… | |
204 | AC_LANG_PUSH(C) |
204 | AC_LANG_PUSH(C) |
205 | |
205 | |
206 | AC_HEADER_STDC |
206 | AC_HEADER_STDC |
207 | |
207 | |
208 | dnl argl, could somebody catapult darwin into the 21st century??? |
208 | dnl argl, could somebody catapult darwin into the 21st century??? |
209 | AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall poll) |
209 | AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall) |
210 | |
210 | |
211 | AC_FUNC_ALLOCA |
211 | AC_FUNC_ALLOCA |
212 | |
212 | |
213 | dnl Support for SunOS |
213 | dnl Support for SunOS |
214 | |
214 | |
… | |
… | |
329 | |
329 | |
330 | if $CXX -v --help 2>&1 | grep -q fexceptions; then |
330 | if $CXX -v --help 2>&1 | grep -q fexceptions; then |
331 | CXXFLAGS="$CXXFLAGS -fno-exceptions" |
331 | CXXFLAGS="$CXXFLAGS -fno-exceptions" |
332 | fi |
332 | fi |
333 | |
333 | |
334 | if $CXX -v --help 2>&1 | grep -q ffunction-sections; then |
334 | dnl if $CXX -v --help 2>&1 | grep -q ffunction-sections; then |
335 | CXXFLAGS="$CXXFLAGS -ffunction-sections" |
335 | dnl CXXFLAGS="$CXXFLAGS -ffunction-sections" |
336 | fi |
336 | dnl fi |
337 | |
337 | dnl |
338 | if $LD -v --help 2>&1 | grep -q gc-sections; then |
338 | dnl if $LD -v --help 2>&1 | grep -q gc-sections; then |
339 | LDFLAGS="$LDFLAGS -Wl,--gc-sections" |
339 | dnl LDFLAGS="$LDFLAGS -Wl,--gc-sections" |
340 | fi |
340 | dnl fi |
341 | |
341 | |
342 | AC_CONFIG_COMMANDS_POST([ |
342 | AC_CONFIG_COMMANDS_POST([ |
343 | |
343 | |
344 | echo |
344 | echo |
345 | echo "***" |
345 | echo "***" |