use native objective-c exceptions
--enable-strip-makefiles Enable stripping makefiles after installation
--disable-move-obsolete Disable moving obsolete dir structure
+--enable-pch Enable precompiled headers
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
else
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
fi
- cd "$ac_popdir"
+ cd $ac_popdir
done
fi
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
# Check if compiler supports -MMD -MP to generate %.d files ...
#--------------------------------------------------------------------
-echo "$as_me:$LINENO: checking if the compiler supports autodependencies/pch" >&5
-echo $ECHO_N "checking if the compiler supports autodependencies/pch... $ECHO_C" >&6
+echo "$as_me:$LINENO: checking if the compiler supports autodependencies" >&5
+echo $ECHO_N "checking if the compiler supports autodependencies... $ECHO_C" >&6
# What we want to do: set AUTO_DEPENDENCIES to yes if gcc => 3.x
if test "${gs_cv_gcc_major_version}" -ge "3" ; then
AUTO_DEPENDENCIES=yes
- if test "${gs_cv_gcc_major_version}" -ge "4" ; then
- PRECOMPILED_HEADERS=yes
- echo "$as_me:$LINENO: result: yes/yes: gcc major version is ${gs_cv_gcc_major_version}" >&5
-echo "${ECHO_T}yes/yes: gcc major version is ${gs_cv_gcc_major_version}" >&6
- else
- PRECOMPILED_HEADERS=""
- echo "$as_me:$LINENO: result: yes/no: gcc major version is ${gs_cv_gcc_major_version}" >&5
-echo "${ECHO_T}yes/no: gcc major version is ${gs_cv_gcc_major_version}" >&6
- fi
+ echo "$as_me:$LINENO: result: yes: gcc major version is ${gs_cv_gcc_major_version}" >&5
+echo "${ECHO_T}yes: gcc major version is ${gs_cv_gcc_major_version}" >&6
else
AUTO_DEPENDENCIES=""
PRECOMPILED_HEADERS=""
fi
+#--------------------------------------------------------------------
+# Enable/disable precompiled headers
+#--------------------------------------------------------------------
+# TODO: replace with / add a check whether PCH works with the
+# compiler
+gs_enable_pch=no
+echo "$as_me:$LINENO: checking if we should enable precompiled headers (pch)" >&5
+echo $ECHO_N "checking if we should enable precompiled headers (pch)... $ECHO_C" >&6
+# Check whether --enable-pch or --disable-pch was given.
+if test "${enable_pch+set}" = set; then
+ enableval="$enable_pch"
+ gs_enable_pch=$enableval
+else
+ gs_enable_pch=no
+fi;
+
+if test "$gs_enable_pch" = "yes"; then
+ PRECOMPILED_HEADERS=yes
+ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6;
+else
+ PRECOMPILED_HEADERS=
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6;
+fi
+
+
#--------------------------------------------------------------------
# Record the version
#--------------------------------------------------------------------
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
esac
+ if test x"$ac_file" != x-; then
+ { echo "$as_me:$LINENO: creating $ac_file" >&5
+echo "$as_me: creating $ac_file" >&6;}
+ rm -f "$ac_file"
+ fi
# Let's still pretend it is `configure' which instantiates (i.e., don't
# use $as_me), people would be surprised to read:
# /* config.h. Generated by config.status. */
fi;;
esac
done` || { (exit 1); exit 1; }
-
- if test x"$ac_file" != x-; then
- { echo "$as_me:$LINENO: creating $ac_file" >&5
-echo "$as_me: creating $ac_file" >&6;}
- rm -f "$ac_file"
- fi
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
sed "$ac_vpsub
# Check if compiler supports -MMD -MP to generate %.d files ...
#--------------------------------------------------------------------
-AC_MSG_CHECKING(if the compiler supports autodependencies/pch)
+AC_MSG_CHECKING(if the compiler supports autodependencies)
# What we want to do: set AUTO_DEPENDENCIES to yes if gcc => 3.x
if test "${gs_cv_gcc_major_version}" -ge "3" ; then
AUTO_DEPENDENCIES=yes
- if test "${gs_cv_gcc_major_version}" -ge "4" ; then
- PRECOMPILED_HEADERS=yes
- AC_MSG_RESULT(yes/yes: gcc major version is ${gs_cv_gcc_major_version})
- else
- PRECOMPILED_HEADERS=""
- AC_MSG_RESULT(yes/no: gcc major version is ${gs_cv_gcc_major_version})
- fi
+ AC_MSG_RESULT(yes: gcc major version is ${gs_cv_gcc_major_version})
else
AUTO_DEPENDENCIES=""
PRECOMPILED_HEADERS=""
fi
AC_SUBST(GNUSTEP_MOVE_OBSOLETE)
+#--------------------------------------------------------------------
+# Enable/disable precompiled headers
+#--------------------------------------------------------------------
+# TODO: replace with / add a check whether PCH works with the
+# compiler
+gs_enable_pch=no
+AC_MSG_CHECKING(if we should enable precompiled headers (pch))
+AC_ARG_ENABLE(pch,
+[--enable-pch Enable precompiled headers],
+ gs_enable_pch=$enableval,
+ gs_enable_pch=no)
+
+if test "$gs_enable_pch" = "yes"; then
+ PRECOMPILED_HEADERS=yes
+ AC_MSG_RESULT(yes);
+else
+ PRECOMPILED_HEADERS=
+ AC_MSG_RESULT(no);
+fi
+AC_SUBST(PRECOMPILED_HEADERS)
+
#--------------------------------------------------------------------
# Record the version
#--------------------------------------------------------------------