version 1.3, 2009/02/21 22:09:11 |
version 1.5, 2009/02/23 03:17:33 |
|
|
MAKEINFO |
MAKEINFO |
DVIPDF |
DVIPDF |
PTEX |
PTEX |
|
CC |
|
CFLAGS |
|
LDFLAGS |
|
CPPFLAGS |
|
ac_ct_CC |
|
EXEEXT |
|
OBJEXT |
|
PTEXFLAGS |
OpenXM_ROOT |
OpenXM_ROOT |
LIBOBJS |
LIBOBJS |
LTLIBOBJS' |
LTLIBOBJS' |
Line 650 enable_option_checking |
|
Line 658 enable_option_checking |
|
' |
' |
ac_precious_vars='build_alias |
ac_precious_vars='build_alias |
host_alias |
host_alias |
target_alias' |
target_alias |
|
CC |
|
CFLAGS |
|
LDFLAGS |
|
LIBS |
|
CPPFLAGS' |
|
|
|
|
# Initialize some variables set by options. |
# Initialize some variables set by options. |
Line 1266 if test -n "$ac_init_help"; then |
|
Line 1279 if test -n "$ac_init_help"; then |
|
|
|
cat <<\_ACEOF |
cat <<\_ACEOF |
|
|
|
Some influential environment variables: |
|
CC C compiler command |
|
CFLAGS C compiler flags |
|
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
|
nonstandard directory <lib dir> |
|
LIBS libraries to pass to the linker, e.g. -l<library> |
|
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
|
you have headers in a nonstandard directory <include dir> |
|
|
|
Use these variables to override the choices made by `configure' or to help |
|
it to find libraries and programs with nonstandard names/locations. |
|
|
_ACEOF |
_ACEOF |
ac_status=$? |
ac_status=$? |
fi |
fi |
|
|
|
|
|
|
|
|
|
ac_ext=c |
|
ac_cpp='$CPP $CPPFLAGS' |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
if test -n "$ac_tool_prefix"; then |
|
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
|
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
|
if test "${ac_cv_prog_CC+set}" = set; then |
|
$as_echo_n "(cached) " >&6 |
|
else |
|
if test -n "$CC"; then |
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
else |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
for as_dir in $PATH |
|
do |
|
IFS=$as_save_IFS |
|
test -z "$as_dir" && as_dir=. |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
break 2 |
|
fi |
|
done |
|
done |
|
IFS=$as_save_IFS |
|
|
|
fi |
|
fi |
|
CC=$ac_cv_prog_CC |
|
if test -n "$CC"; then |
|
{ $as_echo "$as_me:$LINENO: result: $CC" >&5 |
|
$as_echo "$CC" >&6; } |
|
else |
|
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
|
$as_echo "no" >&6; } |
|
fi |
|
|
|
|
|
fi |
|
if test -z "$ac_cv_prog_CC"; then |
|
ac_ct_CC=$CC |
|
# Extract the first word of "gcc", so it can be a program name with args. |
|
set dummy gcc; ac_word=$2 |
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
$as_echo_n "(cached) " >&6 |
|
else |
|
if test -n "$ac_ct_CC"; then |
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
else |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
for as_dir in $PATH |
|
do |
|
IFS=$as_save_IFS |
|
test -z "$as_dir" && as_dir=. |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
ac_cv_prog_ac_ct_CC="gcc" |
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
break 2 |
|
fi |
|
done |
|
done |
|
IFS=$as_save_IFS |
|
|
|
fi |
|
fi |
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
if test -n "$ac_ct_CC"; then |
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
$as_echo "$ac_ct_CC" >&6; } |
|
else |
|
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
|
$as_echo "no" >&6; } |
|
fi |
|
|
|
if test "x$ac_ct_CC" = x; then |
|
CC="" |
|
else |
|
case $cross_compiling:$ac_tool_warned in |
|
yes:) |
|
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
whose name does not start with the host triplet. If you think this |
|
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
whose name does not start with the host triplet. If you think this |
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
ac_tool_warned=yes ;; |
|
esac |
|
CC=$ac_ct_CC |
|
fi |
|
else |
|
CC="$ac_cv_prog_CC" |
|
fi |
|
|
|
if test -z "$CC"; then |
|
if test -n "$ac_tool_prefix"; then |
|
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
|
if test "${ac_cv_prog_CC+set}" = set; then |
|
$as_echo_n "(cached) " >&6 |
|
else |
|
if test -n "$CC"; then |
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
else |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
for as_dir in $PATH |
|
do |
|
IFS=$as_save_IFS |
|
test -z "$as_dir" && as_dir=. |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
ac_cv_prog_CC="${ac_tool_prefix}cc" |
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
break 2 |
|
fi |
|
done |
|
done |
|
IFS=$as_save_IFS |
|
|
|
fi |
|
fi |
|
CC=$ac_cv_prog_CC |
|
if test -n "$CC"; then |
|
{ $as_echo "$as_me:$LINENO: result: $CC" >&5 |
|
$as_echo "$CC" >&6; } |
|
else |
|
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
|
$as_echo "no" >&6; } |
|
fi |
|
|
|
|
|
fi |
|
fi |
|
if test -z "$CC"; then |
|
# Extract the first word of "cc", so it can be a program name with args. |
|
set dummy cc; ac_word=$2 |
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
|
if test "${ac_cv_prog_CC+set}" = set; then |
|
$as_echo_n "(cached) " >&6 |
|
else |
|
if test -n "$CC"; then |
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
else |
|
ac_prog_rejected=no |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
for as_dir in $PATH |
|
do |
|
IFS=$as_save_IFS |
|
test -z "$as_dir" && as_dir=. |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|
ac_prog_rejected=yes |
|
continue |
|
fi |
|
ac_cv_prog_CC="cc" |
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
break 2 |
|
fi |
|
done |
|
done |
|
IFS=$as_save_IFS |
|
|
|
if test $ac_prog_rejected = yes; then |
|
# We found a bogon in the path, so make sure we never use it. |
|
set dummy $ac_cv_prog_CC |
|
shift |
|
if test $# != 0; then |
|
# We chose a different compiler from the bogus one. |
|
# However, it has the same basename, so the bogon will be chosen |
|
# first if we set CC to just the basename; use the full file name. |
|
shift |
|
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|
fi |
|
fi |
|
fi |
|
fi |
|
CC=$ac_cv_prog_CC |
|
if test -n "$CC"; then |
|
{ $as_echo "$as_me:$LINENO: result: $CC" >&5 |
|
$as_echo "$CC" >&6; } |
|
else |
|
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
|
$as_echo "no" >&6; } |
|
fi |
|
|
|
|
|
fi |
|
if test -z "$CC"; then |
|
if test -n "$ac_tool_prefix"; then |
|
for ac_prog in cl.exe |
|
do |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
|
if test "${ac_cv_prog_CC+set}" = set; then |
|
$as_echo_n "(cached) " >&6 |
|
else |
|
if test -n "$CC"; then |
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
else |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
for as_dir in $PATH |
|
do |
|
IFS=$as_save_IFS |
|
test -z "$as_dir" && as_dir=. |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
break 2 |
|
fi |
|
done |
|
done |
|
IFS=$as_save_IFS |
|
|
|
fi |
|
fi |
|
CC=$ac_cv_prog_CC |
|
if test -n "$CC"; then |
|
{ $as_echo "$as_me:$LINENO: result: $CC" >&5 |
|
$as_echo "$CC" >&6; } |
|
else |
|
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
|
$as_echo "no" >&6; } |
|
fi |
|
|
|
|
|
test -n "$CC" && break |
|
done |
|
fi |
|
if test -z "$CC"; then |
|
ac_ct_CC=$CC |
|
for ac_prog in cl.exe |
|
do |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
set dummy $ac_prog; ac_word=$2 |
|
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
$as_echo_n "(cached) " >&6 |
|
else |
|
if test -n "$ac_ct_CC"; then |
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
else |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
for as_dir in $PATH |
|
do |
|
IFS=$as_save_IFS |
|
test -z "$as_dir" && as_dir=. |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
ac_cv_prog_ac_ct_CC="$ac_prog" |
|
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
break 2 |
|
fi |
|
done |
|
done |
|
IFS=$as_save_IFS |
|
|
|
fi |
|
fi |
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
if test -n "$ac_ct_CC"; then |
|
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
$as_echo "$ac_ct_CC" >&6; } |
|
else |
|
{ $as_echo "$as_me:$LINENO: result: no" >&5 |
|
$as_echo "no" >&6; } |
|
fi |
|
|
|
|
|
test -n "$ac_ct_CC" && break |
|
done |
|
|
|
if test "x$ac_ct_CC" = x; then |
|
CC="" |
|
else |
|
case $cross_compiling:$ac_tool_warned in |
|
yes:) |
|
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
|
whose name does not start with the host triplet. If you think this |
|
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
whose name does not start with the host triplet. If you think this |
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
ac_tool_warned=yes ;; |
|
esac |
|
CC=$ac_ct_CC |
|
fi |
|
fi |
|
|
|
fi |
|
|
|
|
|
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
|
See \`config.log' for more details." >&5 |
|
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
|
See \`config.log' for more details." >&2;} |
|
{ (exit 1); exit 1; }; } |
|
|
|
# Provide some information about the compiler. |
|
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
|
set X $ac_compile |
|
ac_compiler=$2 |
|
{ (ac_try="$ac_compiler --version >&5" |
|
case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo") >&5 |
|
(eval "$ac_compiler --version >&5") 2>&5 |
|
ac_status=$? |
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } |
|
{ (ac_try="$ac_compiler -v >&5" |
|
case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo") >&5 |
|
(eval "$ac_compiler -v >&5") 2>&5 |
|
ac_status=$? |
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } |
|
{ (ac_try="$ac_compiler -V >&5" |
|
case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo") >&5 |
|
(eval "$ac_compiler -V >&5") 2>&5 |
|
ac_status=$? |
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } |
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
|
|
int |
|
main () |
|
{ |
|
|
|
; |
|
return 0; |
|
} |
|
_ACEOF |
|
ac_clean_files_save=$ac_clean_files |
|
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
|
# Try to create an executable without -o first, disregard a.out. |
|
# It will help us diagnose broken compilers, and finding out an intuition |
|
# of exeext. |
|
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
|
$as_echo_n "checking for C compiler default output file name... " >&6; } |
|
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
|
|
# The possible output files: |
|
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
|
|
|
ac_rmfiles= |
|
for ac_file in $ac_files |
|
do |
|
case $ac_file in |
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
esac |
|
done |
|
rm -f $ac_rmfiles |
|
|
|
if { (ac_try="$ac_link_default" |
|
case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo") >&5 |
|
(eval "$ac_link_default") 2>&5 |
|
ac_status=$? |
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; then |
|
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
|
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
|
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
|
# so that the user can short-circuit this test for compilers unknown to |
|
# Autoconf. |
|
for ac_file in $ac_files '' |
|
do |
|
test -f "$ac_file" || continue |
|
case $ac_file in |
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
|
;; |
|
[ab].out ) |
|
# We found the default executable, but exeext='' is most |
|
# certainly right. |
|
break;; |
|
*.* ) |
|
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
|
then :; else |
|
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
fi |
|
# We set ac_cv_exeext here because the later test for it is not |
|
# safe: cross compilers may not add the suffix if given an `-o' |
|
# argument, so we may need to know it at that point already. |
|
# Even if this section looks crufty: it has the advantage of |
|
# actually working. |
|
break;; |
|
* ) |
|
break;; |
|
esac |
|
done |
|
test "$ac_cv_exeext" = no && ac_cv_exeext= |
|
|
|
else |
|
ac_file='' |
|
fi |
|
|
|
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
|
$as_echo "$ac_file" >&6; } |
|
if test -z "$ac_file"; then |
|
$as_echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
|
See \`config.log' for more details." >&5 |
|
$as_echo "$as_me: error: C compiler cannot create executables |
|
See \`config.log' for more details." >&2;} |
|
{ (exit 77); exit 77; }; } |
|
fi |
|
|
|
ac_exeext=$ac_cv_exeext |
|
|
|
# Check that the compiler produces executables we can run. If not, either |
|
# the compiler is broken, or we cross compile. |
|
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
|
$as_echo_n "checking whether the C compiler works... " >&6; } |
|
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
|
# If not cross compiling, check that we can run a simple program. |
|
if test "$cross_compiling" != yes; then |
|
if { ac_try='./$ac_file' |
|
{ (case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo") >&5 |
|
(eval "$ac_try") 2>&5 |
|
ac_status=$? |
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
cross_compiling=no |
|
else |
|
if test "$cross_compiling" = maybe; then |
|
cross_compiling=yes |
|
else |
|
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
|
If you meant to cross compile, use \`--host'. |
|
See \`config.log' for more details." >&5 |
|
$as_echo "$as_me: error: cannot run C compiled programs. |
|
If you meant to cross compile, use \`--host'. |
|
See \`config.log' for more details." >&2;} |
|
{ (exit 1); exit 1; }; } |
|
fi |
|
fi |
|
fi |
|
{ $as_echo "$as_me:$LINENO: result: yes" >&5 |
|
$as_echo "yes" >&6; } |
|
|
|
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
|
ac_clean_files=$ac_clean_files_save |
|
# Check that the compiler produces executables we can run. If not, either |
|
# the compiler is broken, or we cross compile. |
|
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
|
$as_echo_n "checking whether we are cross compiling... " >&6; } |
|
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
|
$as_echo "$cross_compiling" >&6; } |
|
|
|
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
|
$as_echo_n "checking for suffix of executables... " >&6; } |
|
if { (ac_try="$ac_link" |
|
case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo") >&5 |
|
(eval "$ac_link") 2>&5 |
|
ac_status=$? |
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; then |
|
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
|
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
|
# work properly (i.e., refer to `conftest.exe'), while it won't with |
|
# `rm'. |
|
for ac_file in conftest.exe conftest conftest.*; do |
|
test -f "$ac_file" || continue |
|
case $ac_file in |
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
break;; |
|
* ) break;; |
|
esac |
|
done |
|
else |
|
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
|
See \`config.log' for more details." >&5 |
|
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
|
See \`config.log' for more details." >&2;} |
|
{ (exit 1); exit 1; }; } |
|
fi |
|
|
|
rm -f conftest$ac_cv_exeext |
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
|
$as_echo "$ac_cv_exeext" >&6; } |
|
|
|
rm -f conftest.$ac_ext |
|
EXEEXT=$ac_cv_exeext |
|
ac_exeext=$EXEEXT |
|
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
|
$as_echo_n "checking for suffix of object files... " >&6; } |
|
if test "${ac_cv_objext+set}" = set; then |
|
$as_echo_n "(cached) " >&6 |
|
else |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
|
|
int |
|
main () |
|
{ |
|
|
|
; |
|
return 0; |
|
} |
|
_ACEOF |
|
rm -f conftest.o conftest.obj |
|
if { (ac_try="$ac_compile" |
|
case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo") >&5 |
|
(eval "$ac_compile") 2>&5 |
|
ac_status=$? |
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; then |
|
for ac_file in conftest.o conftest.obj conftest.*; do |
|
test -f "$ac_file" || continue; |
|
case $ac_file in |
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
|
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|
break;; |
|
esac |
|
done |
|
else |
|
$as_echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
|
See \`config.log' for more details." >&5 |
|
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
|
See \`config.log' for more details." >&2;} |
|
{ (exit 1); exit 1; }; } |
|
fi |
|
|
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|
fi |
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
|
$as_echo "$ac_cv_objext" >&6; } |
|
OBJEXT=$ac_cv_objext |
|
ac_objext=$OBJEXT |
|
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
|
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
|
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
|
$as_echo_n "(cached) " >&6 |
|
else |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
|
|
int |
|
main () |
|
{ |
|
#ifndef __GNUC__ |
|
choke me |
|
#endif |
|
|
|
; |
|
return 0; |
|
} |
|
_ACEOF |
|
rm -f conftest.$ac_objext |
|
if { (ac_try="$ac_compile" |
|
case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo") >&5 |
|
(eval "$ac_compile") 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && { |
|
test -z "$ac_c_werror_flag" || |
|
test ! -s conftest.err |
|
} && test -s conftest.$ac_objext; then |
|
ac_compiler_gnu=yes |
|
else |
|
$as_echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_compiler_gnu=no |
|
fi |
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
|
|
fi |
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
|
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
|
if test $ac_compiler_gnu = yes; then |
|
GCC=yes |
|
else |
|
GCC= |
|
fi |
|
ac_test_CFLAGS=${CFLAGS+set} |
|
ac_save_CFLAGS=$CFLAGS |
|
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
|
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
|
if test "${ac_cv_prog_cc_g+set}" = set; then |
|
$as_echo_n "(cached) " >&6 |
|
else |
|
ac_save_c_werror_flag=$ac_c_werror_flag |
|
ac_c_werror_flag=yes |
|
ac_cv_prog_cc_g=no |
|
CFLAGS="-g" |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
|
|
int |
|
main () |
|
{ |
|
|
|
; |
|
return 0; |
|
} |
|
_ACEOF |
|
rm -f conftest.$ac_objext |
|
if { (ac_try="$ac_compile" |
|
case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo") >&5 |
|
(eval "$ac_compile") 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && { |
|
test -z "$ac_c_werror_flag" || |
|
test ! -s conftest.err |
|
} && test -s conftest.$ac_objext; then |
|
ac_cv_prog_cc_g=yes |
|
else |
|
$as_echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
CFLAGS="" |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
|
|
int |
|
main () |
|
{ |
|
|
|
; |
|
return 0; |
|
} |
|
_ACEOF |
|
rm -f conftest.$ac_objext |
|
if { (ac_try="$ac_compile" |
|
case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo") >&5 |
|
(eval "$ac_compile") 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && { |
|
test -z "$ac_c_werror_flag" || |
|
test ! -s conftest.err |
|
} && test -s conftest.$ac_objext; then |
|
: |
|
else |
|
$as_echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
ac_c_werror_flag=$ac_save_c_werror_flag |
|
CFLAGS="-g" |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
|
|
int |
|
main () |
|
{ |
|
|
|
; |
|
return 0; |
|
} |
|
_ACEOF |
|
rm -f conftest.$ac_objext |
|
if { (ac_try="$ac_compile" |
|
case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo") >&5 |
|
(eval "$ac_compile") 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && { |
|
test -z "$ac_c_werror_flag" || |
|
test ! -s conftest.err |
|
} && test -s conftest.$ac_objext; then |
|
ac_cv_prog_cc_g=yes |
|
else |
|
$as_echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
fi |
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
fi |
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
fi |
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
ac_c_werror_flag=$ac_save_c_werror_flag |
|
fi |
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
|
$as_echo "$ac_cv_prog_cc_g" >&6; } |
|
if test "$ac_test_CFLAGS" = set; then |
|
CFLAGS=$ac_save_CFLAGS |
|
elif test $ac_cv_prog_cc_g = yes; then |
|
if test "$GCC" = yes; then |
|
CFLAGS="-g -O2" |
|
else |
|
CFLAGS="-g" |
|
fi |
|
else |
|
if test "$GCC" = yes; then |
|
CFLAGS="-O2" |
|
else |
|
CFLAGS= |
|
fi |
|
fi |
|
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
|
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
|
if test "${ac_cv_prog_cc_c89+set}" = set; then |
|
$as_echo_n "(cached) " >&6 |
|
else |
|
ac_cv_prog_cc_c89=no |
|
ac_save_CC=$CC |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#include <stdarg.h> |
|
#include <stdio.h> |
|
#include <sys/types.h> |
|
#include <sys/stat.h> |
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
struct buf { int x; }; |
|
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
static char *e (p, i) |
|
char **p; |
|
int i; |
|
{ |
|
return p[i]; |
|
} |
|
static char *f (char * (*g) (char **, int), char **p, ...) |
|
{ |
|
char *s; |
|
va_list v; |
|
va_start (v,p); |
|
s = g (p, va_arg (v,int)); |
|
va_end (v); |
|
return s; |
|
} |
|
|
|
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
function prototypes and stuff, but not '\xHH' hex character constants. |
|
These don't provoke an error unfortunately, instead are silently treated |
|
as 'x'. The following induces an error, until -std is added to get |
|
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
array size at least. It's necessary to write '\x00'==0 to get something |
|
that's true only with -std. */ |
|
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
|
|
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
inside strings and character constants. */ |
|
#define FOO(x) 'x' |
|
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|
|
|
int test (int i, double x); |
|
struct s1 {int (*f) (int a);}; |
|
struct s2 {int (*f) (double a);}; |
|
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
int argc; |
|
char **argv; |
|
int |
|
main () |
|
{ |
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
; |
|
return 0; |
|
} |
|
_ACEOF |
|
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
|
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
do |
|
CC="$ac_save_CC $ac_arg" |
|
rm -f conftest.$ac_objext |
|
if { (ac_try="$ac_compile" |
|
case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo") >&5 |
|
(eval "$ac_compile") 2>conftest.er1 |
|
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
rm -f conftest.er1 |
|
cat conftest.err >&5 |
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && { |
|
test -z "$ac_c_werror_flag" || |
|
test ! -s conftest.err |
|
} && test -s conftest.$ac_objext; then |
|
ac_cv_prog_cc_c89=$ac_arg |
|
else |
|
$as_echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
fi |
|
|
|
rm -f core conftest.err conftest.$ac_objext |
|
test "x$ac_cv_prog_cc_c89" != "xno" && break |
|
done |
|
rm -f conftest.$ac_ext |
|
CC=$ac_save_CC |
|
|
|
fi |
|
# AC_CACHE_VAL |
|
case "x$ac_cv_prog_cc_c89" in |
|
x) |
|
{ $as_echo "$as_me:$LINENO: result: none needed" >&5 |
|
$as_echo "none needed" >&6; } ;; |
|
xno) |
|
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
|
$as_echo "unsupported" >&6; } ;; |
|
*) |
|
CC="$CC $ac_cv_prog_cc_c89" |
|
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
|
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
|
esac |
|
|
|
|
|
ac_ext=c |
|
ac_cpp='$CPP $CPPFLAGS' |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
|
|
|
if test "$cross_compiling" = yes; then |
|
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
|
See \`config.log' for more details." >&5 |
|
$as_echo "$as_me: error: cannot run test program while cross compiling |
|
See \`config.log' for more details." >&2;} |
|
{ (exit 1); exit 1; }; } |
|
else |
|
cat >conftest.$ac_ext <<_ACEOF |
|
/* confdefs.h. */ |
|
_ACEOF |
|
cat confdefs.h >>conftest.$ac_ext |
|
cat >>conftest.$ac_ext <<_ACEOF |
|
/* end confdefs.h. */ |
|
#include "stdlib.h" |
|
int main(){exit(system("ptex -kanji=euc M/test-ja.tex"));} |
|
_ACEOF |
|
rm -f conftest$ac_exeext |
|
if { (ac_try="$ac_link" |
|
case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo") >&5 |
|
(eval "$ac_link") 2>&5 |
|
ac_status=$? |
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
{ (case "(($ac_try" in |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
*) ac_try_echo=$ac_try;; |
|
esac |
|
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
$as_echo "$ac_try_echo") >&5 |
|
(eval "$ac_try") 2>&5 |
|
ac_status=$? |
|
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
(exit $ac_status); }; }; then |
|
PTEXFLAGS="-kanji=euc" |
|
else |
|
$as_echo "$as_me: program exited with status $ac_status" >&5 |
|
$as_echo "$as_me: failed program was:" >&5 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
fi |
|
rm -rf conftest.dSYM |
|
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
fi |
|
|
|
|
|
|
|
rm -f test-ja.dvi test-ja.log |
|
|
OpenXM_ROOT=`cd ../../../..; pwd` |
OpenXM_ROOT=`cd ../../../..; pwd` |
|
|