43 |
# |
# |
44 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
45 |
|
|
46 |
|
GUILE_ERROR_ON_WARNING="yes" |
47 |
|
|
48 |
AC_ARG_ENABLE(error-on-warning, |
AC_ARG_ENABLE(error-on-warning, |
49 |
[ --enable-error-on-warning treat compile warnings as errors], |
[ --enable-error-on-warning treat compile warnings as errors], |
50 |
[case "${enableval}" in |
[case "${enableval}" in |
51 |
yes | y) CFLAGS="${CFLAGS} -Werror"; enable_compile_warnings=no ;; |
yes | y) GUILE_ERROR_ON_WARNING="yes" ;; |
52 |
no | n) ;; |
no | n) GUILE_ERROR_ON_WARNING="no" ;; |
53 |
*) AC_MSG_ERROR(bad value ${enableval} for --enable-error-on-warning) ;; |
*) AC_MSG_ERROR(bad value ${enableval} for --enable-error-on-warning) ;; |
54 |
esac]) |
esac]) |
55 |
|
|
|
|
|
56 |
AC_ARG_ENABLE(debug-freelist, |
AC_ARG_ENABLE(debug-freelist, |
57 |
[ --enable-debug-freelist include garbage collector freelist debugging code], |
[ --enable-debug-freelist include garbage collector freelist debugging code], |
58 |
if test "$enable_debug_freelist" = y || test "$enable_debug_freelist" = yes; then |
if test "$enable_debug_freelist" = y || test "$enable_debug_freelist" = yes; then |
151 |
AC_MINGW32 |
AC_MINGW32 |
152 |
AC_LIBTOOL_WIN32_DLL |
AC_LIBTOOL_WIN32_DLL |
153 |
|
|
|
AC_LIBLTDL_CONVENIENCE |
|
|
AC_CONFIG_SUBDIRS(libltdl) |
|
|
|
|
154 |
AC_PROG_INSTALL |
AC_PROG_INSTALL |
155 |
AC_PROG_CC |
AC_PROG_CC |
156 |
AC_PROG_CPP |
AC_PROG_CPP |
157 |
AC_LIBTOOL_DLOPEN |
AC_PROG_AWK |
158 |
|
|
159 |
AC_AIX |
AC_AIX |
160 |
AC_ISC_POSIX |
AC_ISC_POSIX |
162 |
|
|
163 |
AM_PROG_CC_STDC |
AM_PROG_CC_STDC |
164 |
|
|
165 |
## Needed for building DLLs on Cygwin, before AM_PROG_LIBTOOL |
AC_LIBTOOL_DLOPEN |
|
AC_LIBTOOL_WIN32_DLL |
|
166 |
AM_PROG_LIBTOOL |
AM_PROG_LIBTOOL |
167 |
|
AC_LIB_LTDL |
168 |
|
|
169 |
AC_CHECK_PROG(have_makeinfo, makeinfo, yes, no) |
AC_CHECK_PROG(have_makeinfo, makeinfo, yes, no) |
170 |
AM_CONDITIONAL(HAVE_MAKEINFO, test "$have_makeinfo" = yes) |
AM_CONDITIONAL(HAVE_MAKEINFO, test "$have_makeinfo" = yes) |
262 |
AC_HEADER_DIRENT |
AC_HEADER_DIRENT |
263 |
AC_HEADER_TIME |
AC_HEADER_TIME |
264 |
AC_HEADER_SYS_WAIT |
AC_HEADER_SYS_WAIT |
265 |
AC_CHECK_HEADERS(io.h libc.h limits.h malloc.h memory.h string.h regex.h rxposix.h rx/rxposix.h sys/ioctl.h sys/select.h sys/time.h sys/timeb.h sys/times.h sys/stdtypes.h sys/types.h sys/utime.h time.h unistd.h utime.h pwd.h grp.h sys/utsname.h direct.h) |
|
266 |
|
AC_CHECK_HEADERS([io.h libc.h limits.h malloc.h memory.h string.h \ |
267 |
|
regex.h rxposix.h rx/rxposix.h sys/dir.h sys/ioctl.h sys/select.h \ |
268 |
|
sys/time.h sys/timeb.h sys/times.h sys/stdtypes.h sys/types.h \ |
269 |
|
sys/utime.h time.h unistd.h utime.h pwd.h grp.h sys/utsname.h \ |
270 |
|
direct.h]) |
271 |
|
|
272 |
GUILE_HEADER_LIBC_WITH_UNISTD |
GUILE_HEADER_LIBC_WITH_UNISTD |
273 |
|
|
274 |
AC_TYPE_GETGROUPS |
AC_TYPE_GETGROUPS |
310 |
fi |
fi |
311 |
AC_SUBST(EXTRA_DEFS) |
AC_SUBST(EXTRA_DEFS) |
312 |
|
|
313 |
AC_SUBST(INCLTDL) |
# FIXME: check to see if we still need these. |
314 |
AC_SUBST(LIBLTDL) |
#AC_SUBST(INCLTDL) |
315 |
|
#AC_SUBST(LIBLTDL) |
316 |
|
|
317 |
AC_SUBST(DLPREOPEN) |
AC_SUBST(DLPREOPEN) |
318 |
|
|
319 |
AC_CHECK_FUNCS(ctermid ftime fchown getcwd geteuid gettimeofday lstat mkdir mknod nice readlink rename rmdir select setegid seteuid setlocale setpgid setsid sigaction siginterrupt strftime strptime symlink sync tcgetpgrp tcsetpgrp times uname waitpid strdup system usleep atexit on_exit chown link fcntl ttyname getpwent getgrent kill getppid getpgrp fork setitimer getitimer) |
AC_CHECK_HEADERS([assert.h]) |
320 |
|
|
321 |
|
AC_CHECK_FUNCS([ctermid ftime fchown getcwd geteuid gettimeofday lstat mkdir mknod nice readlink rename rmdir select setegid seteuid setlocale setpgid setsid sigaction siginterrupt strftime strptime symlink sync tcgetpgrp tcsetpgrp times uname waitpid strdup system usleep atexit on_exit chown link fcntl ttyname getpwent getgrent kill getppid getpgrp fork setitimer getitimer strchr strcmp index bcopy memcpy rindex]) |
322 |
|
|
323 |
AC_CHECK_HEADERS(crypt.h sys/resource.h sys/file.h) |
AC_CHECK_HEADERS(crypt.h sys/resource.h sys/file.h) |
324 |
AC_CHECK_FUNCS(chroot flock getlogin cuserid getpriority setpriority getpass sethostname gethostname) |
AC_CHECK_FUNCS(chroot flock getlogin cuserid getpriority setpriority getpass sethostname gethostname) |
747 |
fi |
fi |
748 |
AC_SUBST(GUILE_FOR_BUILD) |
AC_SUBST(GUILE_FOR_BUILD) |
749 |
|
|
750 |
|
# Do this here so we don't screw up any of the tests above that might |
751 |
|
# not be "warning free" |
752 |
|
|
753 |
|
if test "${GUILE_ERROR_ON_WARNING}" = yes |
754 |
|
then |
755 |
|
CFLAGS="${CFLAGS} -Werror" |
756 |
|
enable_compile_warnings=no |
757 |
|
fi |
758 |
|
|
759 |
## If we're using GCC, ask for aggressive warnings. |
## If we're using GCC, ask for aggressive warnings. |
760 |
case "$GCC" in |
case "$GCC" in |
761 |
yes ) |
yes ) |
767 |
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes" ;; |
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes" ;; |
768 |
esac |
esac |
769 |
|
|
|
AC_PROG_AWK |
|
|
|
|
770 |
## NOTE the code below sets LIBOBJS directly and so is now forbidden |
## NOTE the code below sets LIBOBJS directly and so is now forbidden |
771 |
## -- I'm disabling it for now in the hopes that the newer autoconf |
## -- I'm disabling it for now in the hopes that the newer autoconf |
772 |
## will DTRT -- if not, we need to fix up the sed command to match the |
## will DTRT -- if not, we need to fix up the sed command to match the |
839 |
libguile/guile-func-name-check |
libguile/guile-func-name-check |
840 |
libguile/guile-snarf-docs |
libguile/guile-snarf-docs |
841 |
libguile/version.h |
libguile/version.h |
842 |
|
libguile-ltdl/Makefile |
843 |
|
libguile-ltdl/upstream/Makefile |
844 |
ice-9/Makefile |
ice-9/Makefile |
845 |
lang/Makefile |
lang/Makefile |
846 |
lang/elisp/Makefile |
lang/elisp/Makefile |