#### Copyright (C) 2005 Malcolm Purvis.
#### Copyright (C) 2005, 2006, 2007 Steve Youngs.
#### Copyright (C) 2006, 2007, 2008 Sebastian Freundt.
+#### Copyright (C) 2007, 2010, 2011 Nelson Ferreira
### Don't edit this script!
### This script was automatically generated by the `autoconf' program
SXE_CHECK_CC
SXE_CHECK_CFLAGS
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
+
## check machine chars
AS_MESSAGE([Let's have a detailed glance at your machine])
SXE_PROC_CPUID
dnl AIX uses pthreads instead of pthread, and HP/UX uses cma
dnl FreeBSD uses -pthread
AC_CHECK_LIB(pthread, pthread_create)
-if test $ac_cv_lib_pthread_pthread_create = yes; then
- have_threads=yes
- have_pthreads_opt=yes
- case "`$CC -pthreads 2>&1`" in
- *unrecognized\ option*) have_pthreads_opt=no ;;
- esac
- if test "$have_pthreads_opt" = "yes"; then
- SXE_PREPEND_UNDUP(-pthreads, c_switch_site)
- fi
- have_pthread_opt=yes
- case "`$CC -pthread 2>&1`" in
- *unrecognized\ option*) have_pthread_opt=no ;;
- esac
- if test "$have_pthread_opt" = "yes"; then
- SXE_PREPEND_UNDUP(-pthread, c_switch_site)
- fi
- SXE_PREPEND(-lpthread, MM_LIBS)
+if test "${ac_cv_lib_pthread_pthread_create}" = "yes"; then
+ have_threads=yes
+
+ SXE_CHECK_COMPILER_FLAGS([-pthreads])
+ SXE_CHECK_COMPILER_FLAGS([-pthread])
+ if test "${sxe_cv_c_flags__pthreads}" = "yes"; then
+ SXE_PREPEND_UNDUP([-pthreads], [c_switch_site])
+ fi
+ if test "${sxe_cv_c_flags__pthread}" = "yes"; then
+ SXE_PREPEND_UNDUP([-pthread], [c_switch_site])
+ fi
+ SXE_PREPEND([-lpthread], [MM_LIBS])
fi
dnl test for AIX pthreads
have_ase_perm="yes"
have_ase_resclass="yes"
fi
-
-if test "$with_modules_cl" = "yes" -a "$have_bison" = "yes"; then
- have_modules_cl="yes"
-fi
-if test "$with_static_modules_cl" = "yes" -a "$have_bison" = "yes"; then
- have_static_modules_cl="yes"
+if test "$have_bison" = "yes"; then
+ if test "$with_modules_cl" = "yes" ; then
+ have_modules_cl="yes"
+ fi
+ if test "$with_static_modules_cl" = "yes"; then
+ have_static_modules_cl="yes"
+ fi
+else
+ if test "$with_modules_cl" = "yes" -o "$with_static_modules_cl" = "yes"; then
+ AC_MSG_WARN([Sorry no bison means no cl module for you.])
+ fi
fi
SXE_EMOD_STATMOD([cl])
PREFIX=$prefix
while true; do
case "$PREFIX" in
- *\$* ) eval "PREFIX=$PREFIX" ;;
+ *\$* ) eval "PREFIX=\"${PREFIX}\"" ;;
*) break ;;
esac
done
EXEC_PREFIX=$exec_prefix
while true; do
case "$EXEC_PREFIX" in
- *\$* ) eval "EXEC_PREFIX=$EXEC_PREFIX" ;;
+ *\$* ) eval "EXEC_PREFIX=\"${EXEC_PREFIX}\"" ;;
*) break ;;
esac
done
INFODIR=$infodir
while true; do
case "$INFODIR" in
- *\$* ) eval "INFODIR=$INFODIR" ;;
+ *\$* ) eval "INFODIR=\"${INFODIR}\"" ;;
*) break ;;
esac
done
INFOPATH=$with_infopath
while true; do
case "$INFOPATH" in
- *\$* ) eval "INFOPATH=$INFOPATH" ;;
+ *\$* ) eval "INFOPATH=\"${INFOPATH}\"" ;;
*) break ;;
esac
done
MODULE_PATH=$with_module_path
while true; do
case "$MODULE_PATH" in
- *\$* ) eval "MODULE_PATH=$MODULE_PATH" ;;
+ *\$* ) eval "MODULE_PATH=\"${MODULE_PATH}\"" ;;
*) break ;;
esac
done
if test -z "$with_package_path" && test -n "$with_package_prefix" ; then
if test "$with_mule" = "yes" ; then
- with_package_path="~/.sxemacs/site-packages:~/.sxemacs/xemacs-packages:~/.sxemacs/mule-packages:~/.sxemacs/sxemacs-packages::${with_package_prefix}/site-packages:${with_package_prefix}/xemacs-packages:${with_package_prefix}/mule-packages:${with_package_prefix}/sxemacs-packages"
+ with_package_path="~/.sxemacs/site-packages:~/.sxemacs/sxemacs-packages:~/.sxemacs/xemacs-packages:~/.sxemacs/mule-packages"
+ with_package_path="${with_package_path}:${with_package_prefix}/site-packages:${with_package_prefix}/sxemacs-packages:${with_package_prefix}/xemacs-packages:${with_package_prefix}/mule-packages"
else
- with_package_path="~/.sxemacs/site-packages:~/.sxemacs/xemacs-packages:~/.sxemacs/sxemacs-packages::${with_package_prefix}/site-packages:${with_package_prefix}/xemacs-packages:${with_package_prefix}/sxemacs-packages"
+ with_package_path="~/.sxemacs/site-packages:~/.sxemacs/sxemacs-packages:~/.sxemacs/xemacs-packages"
+ with_package_path="${with_package_path}:${with_package_prefix}/site-packages:${with_package_prefix}/sxemacs-packages:${with_package_prefix}/xemacs-packages"
fi
fi
PACKAGE_PATH=$with_package_path
while true; do
case "$PACKAGE_PATH" in
- *\$* ) eval "PACKAGE_PATH=$PACKAGE_PATH" ;;
+ *\$* ) eval "PACKAGE_PATH=\"${PACKAGE_PATH}\"" ;;
*) break ;;
esac
done
LISPDIR=$with_lispdir
while true; do
case "$LISPDIR" in
- *\$* ) eval "LISPDIR=$LISPDIR" ;;
+ *\$* ) eval "LISPDIR=\"${LISPDIR}\"" ;;
*) break ;;
esac
done
MODULEDIR=$with_moduledir
while true; do
case "$MODULEDIR" in
- *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
+ *\$* ) eval "MODULEDIR=\"${MODULEDIR}\"" ;;
*) break ;;
esac
done
SITELISPDIR=$sitelispdir
while true; do
case "$SITELISPDIR" in
- *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
+ *\$* ) eval "SITELISPDIR=\"${SITELISPDIR}\"" ;;
*) break ;;
esac
done
SITEMODULEDIR=$with_sitemoduledir
while true; do
case "$SITEMODULEDIR" in
- *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
+ *\$* ) eval "SITEMODULEDIR=\"${SITEMODULEDIR}\"" ;;
*) break ;;
esac
done
ETCDIR=$with_etcdir
while true; do
case "$ETCDIR" in
- *\$* ) eval "ETCDIR=$ETCDIR" ;;
+ *\$* ) eval "ETCDIR=\"${ETCDIR}\"" ;;
*) break ;;
esac
done
ARCHLIBDIR=$with_archlibdir
while true; do
case "$ARCHLIBDIR" in
- *\$* ) eval "ARCHLIBDIR=$ARCHLIBDIR" ;;
+ *\$* ) eval "ARCHLIBDIR=\"${ARCHLIBDIR}\"" ;;
*) break ;;
esac
done
DOCDIR=$with_docdir
while true; do
case "$DOCDIR" in
- *\$* ) eval "DOCDIR=$DOCDIR" ;;
+ *\$* ) eval "DOCDIR=\"${DOCDIR}\"" ;;
*) break ;;
esac
done