25 |
chmod 755 ${srcdir}/${file} |
chmod 755 ${srcdir}/${file} |
26 |
done |
done |
27 |
|
|
28 |
AC_ARG_ENABLE(demos, |
AC_ARG_ENABLE(demos, [AC_HELP_STRING([--enable-demos], [Build demo programs])]) |
29 |
[AC_HELP_STRING([--enable-demos], [Build demo programs (default is NO)])], |
AM_CONDITIONAL(BUILD_DEMOS, test x$enable_demos = xyes) |
|
[case "${enableval}" in |
|
|
yes) demos=true ;; |
|
|
no) demos=false ;; |
|
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-demos) ;; |
|
|
esac],[demos=false]) |
|
|
AM_CONDITIONAL(BUILD_DEMOS, test x$demos = xtrue) |
|
30 |
|
|
31 |
### Check for programs |
### Check for programs |
32 |
XFORMS_PROG_CC |
XFORMS_PROG_CC |
80 |
AC_CHECK_LIB(c, fopen) |
AC_CHECK_LIB(c, fopen) |
81 |
|
|
82 |
# Checks for header files. |
# Checks for header files. |
83 |
dnl we should do something clever when GL is not installed |
AC_CHECK_HEADERS([sys/select.h]) |
84 |
AC_CHECK_HEADERS([sys/select.h GL/glx.h]) |
|
85 |
|
# Check whether we want to build the gl code |
86 |
|
AC_ARG_ENABLE(gl, |
87 |
|
[AC_HELP_STRING([--disable-gl], [Do not build GL support library])]) |
88 |
|
if test x$enable_gl != xno ; then |
89 |
|
AC_CHECK_HEADER([GL/glx.h],, [enable_gl=no]) |
90 |
|
fi |
91 |
|
AM_CONDITIONAL(BUILD_GL, [test x$enable_gl != xno]) |
92 |
|
|
93 |
|
|
94 |
dnl we have some code in lib/listdir.c that could use that... |
dnl we have some code in lib/listdir.c that could use that... |
95 |
dnl AC_HEADER_DIRENT |
dnl AC_HEADER_DIRENT |