| 312 |
|
# include <unistd.h> |
| 313 |
|
#endif" |
| 314 |
|
|
| 315 |
< |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC F90_MODULE_NAMES CPP EGREP LIBOBJS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI SPRNG_LIB_DIR SPRNG_INC_DIR SPRNG_LIB USE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LTLIBOBJS' |
| 315 |
> |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC F90_MODULE_NAMES CXXCPP LIBOBJS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT PERLINTERP PERL_SHEBANG AR PS MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI USE_CGAL CGAL_INC_DIR CGAL_LIB_DIR CGAL_RLIB_DIR CGAL_DEFINES CGAL_CXXFLAGS CGAL_LIBS DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LTLIBOBJS' |
| 316 |
|
ac_subst_files='' |
| 317 |
|
|
| 318 |
|
# Initialize some variables set by options. |
| 777 |
|
ac_env_CXXFLAGS_value=$CXXFLAGS |
| 778 |
|
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 779 |
|
ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| 780 |
+ |
ac_env_CPP_set=${CPP+set} |
| 781 |
+ |
ac_env_CPP_value=$CPP |
| 782 |
+ |
ac_cv_env_CPP_set=${CPP+set} |
| 783 |
+ |
ac_cv_env_CPP_value=$CPP |
| 784 |
|
ac_env_F90_set=${F90+set} |
| 785 |
|
ac_env_F90_value=$F90 |
| 786 |
|
ac_cv_env_F90_set=${F90+set} |
| 789 |
|
ac_env_F90FLAGS_value=$F90FLAGS |
| 790 |
|
ac_cv_env_F90FLAGS_set=${F90FLAGS+set} |
| 791 |
|
ac_cv_env_F90FLAGS_value=$F90FLAGS |
| 792 |
< |
ac_env_CPP_set=${CPP+set} |
| 793 |
< |
ac_env_CPP_value=$CPP |
| 794 |
< |
ac_cv_env_CPP_set=${CPP+set} |
| 795 |
< |
ac_cv_env_CPP_value=$CPP |
| 792 |
> |
ac_env_CXXCPP_set=${CXXCPP+set} |
| 793 |
> |
ac_env_CXXCPP_value=$CXXCPP |
| 794 |
> |
ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 795 |
> |
ac_cv_env_CXXCPP_value=$CXXCPP |
| 796 |
|
|
| 797 |
|
# |
| 798 |
|
# Report the --help message. |
| 879 |
|
Optional Packages: |
| 880 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 881 |
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 882 |
+ |
--with-zlib=DIR root directory path of zlib installation defaults to |
| 883 |
+ |
/usr/local or /usr if not found in /usr/local |
| 884 |
+ |
--without-zlib to disable zlib usage completely |
| 885 |
+ |
--with-perl-shebang override what perl thinks is the way for the kernel |
| 886 |
+ |
to start it (seldom needed) |
| 887 |
|
--with-mpi=<prefix> compile with MPI installed in <prefix> [default=no] |
| 888 |
< |
--with-sprng=<prefix> compile with SPRNG installed in <prefix> |
| 880 |
< |
[default=/usr/local] |
| 881 |
< |
--with-mkl Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61 |
| 888 |
> |
--with-cgal-makefile=FILE CGAL makefile that should be used |
| 889 |
|
|
| 890 |
|
Some influential environment variables: |
| 891 |
|
CC C compiler command |
| 896 |
|
headers in a nonstandard directory <include dir> |
| 897 |
|
CXX C++ compiler command |
| 898 |
|
CXXFLAGS C++ compiler flags |
| 899 |
+ |
CPP C preprocessor |
| 900 |
|
F90 Fortran 90 compiler command |
| 901 |
|
F90FLAGS Fortran 90 compiler flags |
| 902 |
< |
CPP C preprocessor |
| 902 |
> |
CXXCPP C++ preprocessor |
| 903 |
|
|
| 904 |
|
Use these variables to override the choices made by `configure' or to help |
| 905 |
|
it to find libraries and programs with nonstandard names/locations. |
| 1832 |
|
# Figure out how the Fortran 90 compiler constructs module file names |
| 1833 |
|
# |
| 1834 |
|
# AC_F90_MODULE_NAMES |
| 1835 |
+ |
|
| 1836 |
+ |
|
| 1837 |
+ |
|
| 1838 |
+ |
|
| 1839 |
+ |
|
| 1840 |
+ |
|
| 1841 |
+ |
|
| 1842 |
+ |
|
| 1843 |
|
|
| 1844 |
|
|
| 1845 |
|
|
| 1885 |
|
|
| 1886 |
|
|
| 1887 |
|
|
| 1888 |
+ |
# |
| 1889 |
+ |
# |
| 1890 |
+ |
# |
| 1891 |
|
|
| 1892 |
|
|
| 1893 |
|
|
| 1902 |
|
|
| 1903 |
|
|
| 1904 |
|
|
| 1905 |
+ |
|
| 1906 |
+ |
|
| 1907 |
+ |
|
| 1908 |
+ |
|
| 1909 |
+ |
|
| 1910 |
+ |
|
| 1911 |
+ |
|
| 1912 |
+ |
|
| 1913 |
+ |
|
| 1914 |
+ |
|
| 1915 |
+ |
|
| 1916 |
+ |
|
| 1917 |
+ |
|
| 1918 |
+ |
|
| 1919 |
+ |
|
| 1920 |
+ |
|
| 1921 |
+ |
|
| 1922 |
+ |
|
| 1923 |
+ |
|
| 1924 |
+ |
|
| 1925 |
+ |
|
| 1926 |
+ |
|
| 1927 |
+ |
|
| 1928 |
+ |
|
| 1929 |
+ |
|
| 1930 |
+ |
|
| 1931 |
+ |
|
| 1932 |
+ |
|
| 1933 |
|
# set program name |
| 1934 |
|
PROGNAME="oopse" |
| 1935 |
|
|
| 2017 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2018 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2019 |
|
if test -n "$ac_tool_prefix"; then |
| 2020 |
< |
for ac_prog in icc xlc gcc cc |
| 2020 |
> |
for ac_prog in pathcc icc xlc gcc cc |
| 2021 |
|
do |
| 2022 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2023 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2059 |
|
fi |
| 2060 |
|
if test -z "$CC"; then |
| 2061 |
|
ac_ct_CC=$CC |
| 2062 |
< |
for ac_prog in icc xlc gcc cc |
| 2062 |
> |
for ac_prog in pathcc icc xlc gcc cc |
| 2063 |
|
do |
| 2064 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2065 |
|
set dummy $ac_prog; ac_word=$2 |
| 2731 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2732 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2733 |
|
if test -n "$ac_tool_prefix"; then |
| 2734 |
< |
for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++ |
| 2734 |
> |
for ac_prog in $CCC pathCC icpc icc xlc++ xlC CC g++ c++ |
| 2735 |
|
do |
| 2736 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2737 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2773 |
|
fi |
| 2774 |
|
if test -z "$CXX"; then |
| 2775 |
|
ac_ct_CXX=$CXX |
| 2776 |
< |
for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++ |
| 2776 |
> |
for ac_prog in $CCC pathCC icpc icc xlc++ xlC CC g++ c++ |
| 2777 |
|
do |
| 2778 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2779 |
|
set dummy $ac_prog; ac_word=$2 |
| 3072 |
|
echo '#ifdef __cplusplus' >>confdefs.h |
| 3073 |
|
echo $ac_declaration >>confdefs.h |
| 3074 |
|
echo '#endif' >>confdefs.h |
| 3075 |
+ |
fi |
| 3076 |
+ |
|
| 3077 |
+ |
ac_ext=c |
| 3078 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
| 3079 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3080 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3081 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3082 |
+ |
|
| 3083 |
+ |
|
| 3084 |
+ |
ac_ext=c |
| 3085 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
| 3086 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3087 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3088 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3089 |
+ |
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3090 |
+ |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3091 |
+ |
# On Suns, sometimes $CPP names a directory. |
| 3092 |
+ |
if test -n "$CPP" && test -d "$CPP"; then |
| 3093 |
+ |
CPP= |
| 3094 |
+ |
fi |
| 3095 |
+ |
if test -z "$CPP"; then |
| 3096 |
+ |
if test "${ac_cv_prog_CPP+set}" = set; then |
| 3097 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3098 |
+ |
else |
| 3099 |
+ |
# Double quotes because CPP needs to be expanded |
| 3100 |
+ |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3101 |
+ |
do |
| 3102 |
+ |
ac_preproc_ok=false |
| 3103 |
+ |
for ac_c_preproc_warn_flag in '' yes |
| 3104 |
+ |
do |
| 3105 |
+ |
# Use a header file that comes with gcc, so configuring glibc |
| 3106 |
+ |
# with a fresh cross-compiler works. |
| 3107 |
+ |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3108 |
+ |
# <limits.h> exists even on freestanding compilers. |
| 3109 |
+ |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 3110 |
+ |
# not just through cpp. "Syntax error" is here to catch this case. |
| 3111 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
| 3112 |
+ |
/* confdefs.h. */ |
| 3113 |
+ |
_ACEOF |
| 3114 |
+ |
cat confdefs.h >>conftest.$ac_ext |
| 3115 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
| 3116 |
+ |
/* end confdefs.h. */ |
| 3117 |
+ |
#ifdef __STDC__ |
| 3118 |
+ |
# include <limits.h> |
| 3119 |
+ |
#else |
| 3120 |
+ |
# include <assert.h> |
| 3121 |
+ |
#endif |
| 3122 |
+ |
Syntax error |
| 3123 |
+ |
_ACEOF |
| 3124 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3125 |
+ |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3126 |
+ |
ac_status=$? |
| 3127 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3128 |
+ |
rm -f conftest.er1 |
| 3129 |
+ |
cat conftest.err >&5 |
| 3130 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3131 |
+ |
(exit $ac_status); } >/dev/null; then |
| 3132 |
+ |
if test -s conftest.err; then |
| 3133 |
+ |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 3134 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3135 |
+ |
else |
| 3136 |
+ |
ac_cpp_err= |
| 3137 |
+ |
fi |
| 3138 |
+ |
else |
| 3139 |
+ |
ac_cpp_err=yes |
| 3140 |
+ |
fi |
| 3141 |
+ |
if test -z "$ac_cpp_err"; then |
| 3142 |
+ |
: |
| 3143 |
+ |
else |
| 3144 |
+ |
echo "$as_me: failed program was:" >&5 |
| 3145 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3146 |
+ |
|
| 3147 |
+ |
# Broken: fails on valid input. |
| 3148 |
+ |
continue |
| 3149 |
+ |
fi |
| 3150 |
+ |
rm -f conftest.err conftest.$ac_ext |
| 3151 |
+ |
|
| 3152 |
+ |
# OK, works on sane cases. Now check whether non-existent headers |
| 3153 |
+ |
# can be detected and how. |
| 3154 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
| 3155 |
+ |
/* confdefs.h. */ |
| 3156 |
+ |
_ACEOF |
| 3157 |
+ |
cat confdefs.h >>conftest.$ac_ext |
| 3158 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
| 3159 |
+ |
/* end confdefs.h. */ |
| 3160 |
+ |
#include <ac_nonexistent.h> |
| 3161 |
+ |
_ACEOF |
| 3162 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3163 |
+ |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3164 |
+ |
ac_status=$? |
| 3165 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3166 |
+ |
rm -f conftest.er1 |
| 3167 |
+ |
cat conftest.err >&5 |
| 3168 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3169 |
+ |
(exit $ac_status); } >/dev/null; then |
| 3170 |
+ |
if test -s conftest.err; then |
| 3171 |
+ |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 3172 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3173 |
+ |
else |
| 3174 |
+ |
ac_cpp_err= |
| 3175 |
+ |
fi |
| 3176 |
+ |
else |
| 3177 |
+ |
ac_cpp_err=yes |
| 3178 |
+ |
fi |
| 3179 |
+ |
if test -z "$ac_cpp_err"; then |
| 3180 |
+ |
# Broken: success on invalid input. |
| 3181 |
+ |
continue |
| 3182 |
+ |
else |
| 3183 |
+ |
echo "$as_me: failed program was:" >&5 |
| 3184 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3185 |
+ |
|
| 3186 |
+ |
# Passes both tests. |
| 3187 |
+ |
ac_preproc_ok=: |
| 3188 |
+ |
break |
| 3189 |
+ |
fi |
| 3190 |
+ |
rm -f conftest.err conftest.$ac_ext |
| 3191 |
+ |
|
| 3192 |
+ |
done |
| 3193 |
+ |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3194 |
+ |
rm -f conftest.err conftest.$ac_ext |
| 3195 |
+ |
if $ac_preproc_ok; then |
| 3196 |
+ |
break |
| 3197 |
+ |
fi |
| 3198 |
+ |
|
| 3199 |
+ |
done |
| 3200 |
+ |
ac_cv_prog_CPP=$CPP |
| 3201 |
+ |
|
| 3202 |
+ |
fi |
| 3203 |
+ |
CPP=$ac_cv_prog_CPP |
| 3204 |
+ |
else |
| 3205 |
+ |
ac_cv_prog_CPP=$CPP |
| 3206 |
+ |
fi |
| 3207 |
+ |
echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3208 |
+ |
echo "${ECHO_T}$CPP" >&6 |
| 3209 |
+ |
ac_preproc_ok=false |
| 3210 |
+ |
for ac_c_preproc_warn_flag in '' yes |
| 3211 |
+ |
do |
| 3212 |
+ |
# Use a header file that comes with gcc, so configuring glibc |
| 3213 |
+ |
# with a fresh cross-compiler works. |
| 3214 |
+ |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3215 |
+ |
# <limits.h> exists even on freestanding compilers. |
| 3216 |
+ |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 3217 |
+ |
# not just through cpp. "Syntax error" is here to catch this case. |
| 3218 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
| 3219 |
+ |
/* confdefs.h. */ |
| 3220 |
+ |
_ACEOF |
| 3221 |
+ |
cat confdefs.h >>conftest.$ac_ext |
| 3222 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
| 3223 |
+ |
/* end confdefs.h. */ |
| 3224 |
+ |
#ifdef __STDC__ |
| 3225 |
+ |
# include <limits.h> |
| 3226 |
+ |
#else |
| 3227 |
+ |
# include <assert.h> |
| 3228 |
+ |
#endif |
| 3229 |
+ |
Syntax error |
| 3230 |
+ |
_ACEOF |
| 3231 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3232 |
+ |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3233 |
+ |
ac_status=$? |
| 3234 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3235 |
+ |
rm -f conftest.er1 |
| 3236 |
+ |
cat conftest.err >&5 |
| 3237 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3238 |
+ |
(exit $ac_status); } >/dev/null; then |
| 3239 |
+ |
if test -s conftest.err; then |
| 3240 |
+ |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 3241 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3242 |
+ |
else |
| 3243 |
+ |
ac_cpp_err= |
| 3244 |
+ |
fi |
| 3245 |
+ |
else |
| 3246 |
+ |
ac_cpp_err=yes |
| 3247 |
+ |
fi |
| 3248 |
+ |
if test -z "$ac_cpp_err"; then |
| 3249 |
+ |
: |
| 3250 |
+ |
else |
| 3251 |
+ |
echo "$as_me: failed program was:" >&5 |
| 3252 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3253 |
+ |
|
| 3254 |
+ |
# Broken: fails on valid input. |
| 3255 |
+ |
continue |
| 3256 |
+ |
fi |
| 3257 |
+ |
rm -f conftest.err conftest.$ac_ext |
| 3258 |
+ |
|
| 3259 |
+ |
# OK, works on sane cases. Now check whether non-existent headers |
| 3260 |
+ |
# can be detected and how. |
| 3261 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
| 3262 |
+ |
/* confdefs.h. */ |
| 3263 |
+ |
_ACEOF |
| 3264 |
+ |
cat confdefs.h >>conftest.$ac_ext |
| 3265 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
| 3266 |
+ |
/* end confdefs.h. */ |
| 3267 |
+ |
#include <ac_nonexistent.h> |
| 3268 |
+ |
_ACEOF |
| 3269 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3270 |
+ |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3271 |
+ |
ac_status=$? |
| 3272 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
| 3273 |
+ |
rm -f conftest.er1 |
| 3274 |
+ |
cat conftest.err >&5 |
| 3275 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3276 |
+ |
(exit $ac_status); } >/dev/null; then |
| 3277 |
+ |
if test -s conftest.err; then |
| 3278 |
+ |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 3279 |
+ |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3280 |
+ |
else |
| 3281 |
+ |
ac_cpp_err= |
| 3282 |
+ |
fi |
| 3283 |
+ |
else |
| 3284 |
+ |
ac_cpp_err=yes |
| 3285 |
|
fi |
| 3286 |
+ |
if test -z "$ac_cpp_err"; then |
| 3287 |
+ |
# Broken: success on invalid input. |
| 3288 |
+ |
continue |
| 3289 |
+ |
else |
| 3290 |
+ |
echo "$as_me: failed program was:" >&5 |
| 3291 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3292 |
|
|
| 3293 |
+ |
# Passes both tests. |
| 3294 |
+ |
ac_preproc_ok=: |
| 3295 |
+ |
break |
| 3296 |
+ |
fi |
| 3297 |
+ |
rm -f conftest.err conftest.$ac_ext |
| 3298 |
+ |
|
| 3299 |
+ |
done |
| 3300 |
+ |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3301 |
+ |
rm -f conftest.err conftest.$ac_ext |
| 3302 |
+ |
if $ac_preproc_ok; then |
| 3303 |
+ |
: |
| 3304 |
+ |
else |
| 3305 |
+ |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3306 |
+ |
See \`config.log' for more details." >&5 |
| 3307 |
+ |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3308 |
+ |
See \`config.log' for more details." >&2;} |
| 3309 |
+ |
{ (exit 1); exit 1; }; } |
| 3310 |
+ |
fi |
| 3311 |
+ |
|
| 3312 |
|
ac_ext=c |
| 3313 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 3314 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3316 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3317 |
|
|
| 3318 |
|
|
| 3319 |
+ |
echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3320 |
+ |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3321 |
+ |
if test "${ac_cv_prog_egrep+set}" = set; then |
| 3322 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3323 |
+ |
else |
| 3324 |
+ |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3325 |
+ |
then ac_cv_prog_egrep='grep -E' |
| 3326 |
+ |
else ac_cv_prog_egrep='egrep' |
| 3327 |
+ |
fi |
| 3328 |
+ |
fi |
| 3329 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3330 |
+ |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3331 |
+ |
EGREP=$ac_cv_prog_egrep |
| 3332 |
+ |
|
| 3333 |
+ |
|
| 3334 |
+ |
|
| 3335 |
|
OOPSE_TEMPLATE_FLAGS="" |
| 3336 |
|
if test $ac_cv_cxx_compiler_gnu = no; then |
| 3337 |
|
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5 |
| 3393 |
|
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3394 |
|
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
| 3395 |
|
if test -n "$ac_tool_prefix"; then |
| 3396 |
< |
for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
| 3396 |
> |
for ac_prog in pathf95 ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
| 3397 |
|
do |
| 3398 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3399 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3435 |
|
fi |
| 3436 |
|
if test -z "$F90"; then |
| 3437 |
|
ac_ct_F90=$F90 |
| 3438 |
< |
for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
| 3438 |
> |
for ac_prog in pathf95 ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
| 3439 |
|
do |
| 3440 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3441 |
|
set dummy $ac_prog; ac_word=$2 |
| 3840 |
|
ac_save_F90FLAGS=$F90FLAGS |
| 3841 |
|
F90FLAGS="$F90FLAGS $ac_verb" |
| 3842 |
|
|
| 3843 |
< |
(eval echo $as_me:3545: \"$ac_link\") >&5 |
| 3843 |
> |
(eval echo $as_me:3843: \"$ac_link\") >&5 |
| 3844 |
|
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
| 3845 |
|
echo "$ac_f90_v_output" >&5 |
| 3846 |
|
F90FLAGS=$ac_save_F90FLAGS |
| 3917 |
|
ac_save_F90FLAGS=$F90FLAGS |
| 3918 |
|
F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v" |
| 3919 |
|
|
| 3920 |
< |
(eval echo $as_me:3622: \"$ac_link\") >&5 |
| 3920 |
> |
(eval echo $as_me:3920: \"$ac_link\") >&5 |
| 3921 |
|
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
| 3922 |
|
echo "$ac_f90_v_output" >&5 |
| 3923 |
|
F90FLAGS=$ac_save_F90FLAGS |
| 4749 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4750 |
|
|
| 4751 |
|
|
| 4752 |
< |
ac_ext=c |
| 4753 |
< |
ac_cpp='$CPP $CPPFLAGS' |
| 4754 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4755 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4756 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4752 |
> |
ac_ext=cc |
| 4753 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 4754 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4755 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4756 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4757 |
|
|
| 4758 |
< |
ac_ext=c |
| 4759 |
< |
ac_cpp='$CPP $CPPFLAGS' |
| 4760 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4761 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4762 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4763 |
< |
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4764 |
< |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 4765 |
< |
# On Suns, sometimes $CPP names a directory. |
| 4766 |
< |
if test -n "$CPP" && test -d "$CPP"; then |
| 4767 |
< |
CPP= |
| 4470 |
< |
fi |
| 4471 |
< |
if test -z "$CPP"; then |
| 4472 |
< |
if test "${ac_cv_prog_CPP+set}" = set; then |
| 4758 |
> |
|
| 4759 |
> |
ac_ext=cc |
| 4760 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 4761 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4762 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4763 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4764 |
> |
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 4765 |
> |
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 4766 |
> |
if test -z "$CXXCPP"; then |
| 4767 |
> |
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 4768 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4769 |
|
else |
| 4770 |
< |
# Double quotes because CPP needs to be expanded |
| 4771 |
< |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4770 |
> |
# Double quotes because CXXCPP needs to be expanded |
| 4771 |
> |
for CXXCPP in "$CXX -E" "/lib/cpp" |
| 4772 |
|
do |
| 4773 |
|
ac_preproc_ok=false |
| 4774 |
< |
for ac_c_preproc_warn_flag in '' yes |
| 4774 |
> |
for ac_cxx_preproc_warn_flag in '' yes |
| 4775 |
|
do |
| 4776 |
|
# Use a header file that comes with gcc, so configuring glibc |
| 4777 |
|
# with a fresh cross-compiler works. |
| 4801 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4802 |
|
(exit $ac_status); } >/dev/null; then |
| 4803 |
|
if test -s conftest.err; then |
| 4804 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 4805 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4804 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4805 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4806 |
|
else |
| 4807 |
|
ac_cpp_err= |
| 4808 |
|
fi |
| 4839 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4840 |
|
(exit $ac_status); } >/dev/null; then |
| 4841 |
|
if test -s conftest.err; then |
| 4842 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 4843 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4842 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4843 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4844 |
|
else |
| 4845 |
|
ac_cpp_err= |
| 4846 |
|
fi |
| 4868 |
|
fi |
| 4869 |
|
|
| 4870 |
|
done |
| 4871 |
< |
ac_cv_prog_CPP=$CPP |
| 4871 |
> |
ac_cv_prog_CXXCPP=$CXXCPP |
| 4872 |
|
|
| 4873 |
|
fi |
| 4874 |
< |
CPP=$ac_cv_prog_CPP |
| 4874 |
> |
CXXCPP=$ac_cv_prog_CXXCPP |
| 4875 |
|
else |
| 4876 |
< |
ac_cv_prog_CPP=$CPP |
| 4876 |
> |
ac_cv_prog_CXXCPP=$CXXCPP |
| 4877 |
|
fi |
| 4878 |
< |
echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4879 |
< |
echo "${ECHO_T}$CPP" >&6 |
| 4878 |
> |
echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 4879 |
> |
echo "${ECHO_T}$CXXCPP" >&6 |
| 4880 |
|
ac_preproc_ok=false |
| 4881 |
< |
for ac_c_preproc_warn_flag in '' yes |
| 4881 |
> |
for ac_cxx_preproc_warn_flag in '' yes |
| 4882 |
|
do |
| 4883 |
|
# Use a header file that comes with gcc, so configuring glibc |
| 4884 |
|
# with a fresh cross-compiler works. |
| 4908 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4909 |
|
(exit $ac_status); } >/dev/null; then |
| 4910 |
|
if test -s conftest.err; then |
| 4911 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 4912 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4911 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4912 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4913 |
|
else |
| 4914 |
|
ac_cpp_err= |
| 4915 |
|
fi |
| 4946 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4947 |
|
(exit $ac_status); } >/dev/null; then |
| 4948 |
|
if test -s conftest.err; then |
| 4949 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 4950 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4949 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4950 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4951 |
|
else |
| 4952 |
|
ac_cpp_err= |
| 4953 |
|
fi |
| 4973 |
|
if $ac_preproc_ok; then |
| 4974 |
|
: |
| 4975 |
|
else |
| 4976 |
< |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4976 |
> |
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 4977 |
|
See \`config.log' for more details." >&5 |
| 4978 |
< |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4978 |
> |
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 4979 |
|
See \`config.log' for more details." >&2;} |
| 4980 |
|
{ (exit 1); exit 1; }; } |
| 4981 |
|
fi |
| 4982 |
|
|
| 4983 |
< |
ac_ext=c |
| 4984 |
< |
ac_cpp='$CPP $CPPFLAGS' |
| 4985 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4986 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4987 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4693 |
< |
|
| 4694 |
< |
|
| 4695 |
< |
echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4696 |
< |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 4697 |
< |
if test "${ac_cv_prog_egrep+set}" = set; then |
| 4698 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4699 |
< |
else |
| 4700 |
< |
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 4701 |
< |
then ac_cv_prog_egrep='grep -E' |
| 4702 |
< |
else ac_cv_prog_egrep='egrep' |
| 4703 |
< |
fi |
| 4704 |
< |
fi |
| 4705 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 4706 |
< |
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 4707 |
< |
EGREP=$ac_cv_prog_egrep |
| 4983 |
> |
ac_ext=cc |
| 4984 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 4985 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4986 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4987 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4988 |
|
|
| 4989 |
|
|
| 4990 |
|
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5020 |
|
cat conftest.err >&5 |
| 5021 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5022 |
|
(exit $ac_status); } && |
| 5023 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 5023 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 5024 |
|
|| test ! -s conftest.err' |
| 5025 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5026 |
|
(eval $ac_try) 2>&5 |
| 5153 |
|
|
| 5154 |
|
fi |
| 5155 |
|
|
| 5156 |
+ |
echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 5157 |
+ |
echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6 |
| 5158 |
+ |
if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 5159 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5160 |
+ |
else |
| 5161 |
+ |
|
| 5162 |
+ |
|
| 5163 |
+ |
ac_ext=cc |
| 5164 |
+ |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 5165 |
+ |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5166 |
+ |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5167 |
+ |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5168 |
+ |
|
| 5169 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
| 5170 |
+ |
/* confdefs.h. */ |
| 5171 |
+ |
_ACEOF |
| 5172 |
+ |
cat confdefs.h >>conftest.$ac_ext |
| 5173 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
| 5174 |
+ |
/* end confdefs.h. */ |
| 5175 |
+ |
namespace Outer { namespace Inner { int i = 0; }} |
| 5176 |
+ |
int |
| 5177 |
+ |
main () |
| 5178 |
+ |
{ |
| 5179 |
+ |
using namespace Outer::Inner; return i; |
| 5180 |
+ |
; |
| 5181 |
+ |
return 0; |
| 5182 |
+ |
} |
| 5183 |
+ |
_ACEOF |
| 5184 |
+ |
rm -f conftest.$ac_objext |
| 5185 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5186 |
+ |
(eval $ac_compile) 2>conftest.er1 |
| 5187 |
+ |
ac_status=$? |
| 5188 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5189 |
+ |
rm -f conftest.er1 |
| 5190 |
+ |
cat conftest.err >&5 |
| 5191 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5192 |
+ |
(exit $ac_status); } && |
| 5193 |
+ |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 5194 |
+ |
|| test ! -s conftest.err' |
| 5195 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5196 |
+ |
(eval $ac_try) 2>&5 |
| 5197 |
+ |
ac_status=$? |
| 5198 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5199 |
+ |
(exit $ac_status); }; } && |
| 5200 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
| 5201 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5202 |
+ |
(eval $ac_try) 2>&5 |
| 5203 |
+ |
ac_status=$? |
| 5204 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5205 |
+ |
(exit $ac_status); }; }; then |
| 5206 |
+ |
ac_cv_cxx_namespaces=yes |
| 5207 |
+ |
else |
| 5208 |
+ |
echo "$as_me: failed program was:" >&5 |
| 5209 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5210 |
+ |
|
| 5211 |
+ |
ac_cv_cxx_namespaces=no |
| 5212 |
+ |
fi |
| 5213 |
+ |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5214 |
+ |
ac_ext=cc |
| 5215 |
+ |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 5216 |
+ |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5217 |
+ |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5218 |
+ |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5219 |
+ |
|
| 5220 |
+ |
|
| 5221 |
+ |
fi |
| 5222 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 5223 |
+ |
echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6 |
| 5224 |
+ |
if test "$ac_cv_cxx_namespaces" = yes; then |
| 5225 |
+ |
|
| 5226 |
+ |
cat >>confdefs.h <<\_ACEOF |
| 5227 |
+ |
#define HAVE_NAMESPACES |
| 5228 |
+ |
_ACEOF |
| 5229 |
+ |
|
| 5230 |
+ |
fi |
| 5231 |
+ |
|
| 5232 |
|
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5233 |
|
|
| 5234 |
|
|
| 5267 |
|
cat conftest.err >&5 |
| 5268 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5269 |
|
(exit $ac_status); } && |
| 5270 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 5270 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 5271 |
|
|| test ! -s conftest.err' |
| 5272 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5273 |
|
(eval $ac_try) 2>&5 |
| 5301 |
|
done |
| 5302 |
|
|
| 5303 |
|
|
| 5304 |
< |
# clean out junk possibly left behind by a previous configuration |
| 5305 |
< |
rm -f src/utils/getopt.h |
| 5306 |
< |
# Check for getopt_long support |
| 5304 |
> |
echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5 |
| 5305 |
> |
echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6 |
| 5306 |
> |
if test "${ac_cv_cxx_have_stl+set}" = set; then |
| 5307 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5308 |
> |
else |
| 5309 |
|
|
| 5310 |
< |
for ac_header in getopt.h |
| 5310 |
> |
|
| 5311 |
> |
|
| 5312 |
> |
ac_ext=cc |
| 5313 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 5314 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5315 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5316 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5317 |
> |
|
| 5318 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 5319 |
> |
/* confdefs.h. */ |
| 5320 |
> |
_ACEOF |
| 5321 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 5322 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 5323 |
> |
/* end confdefs.h. */ |
| 5324 |
> |
#include <list> |
| 5325 |
> |
#include <deque> |
| 5326 |
> |
#ifdef HAVE_NAMESPACES |
| 5327 |
> |
using namespace std; |
| 5328 |
> |
#endif |
| 5329 |
> |
int |
| 5330 |
> |
main () |
| 5331 |
> |
{ |
| 5332 |
> |
list<int> x; x.push_back(5); |
| 5333 |
> |
list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0; |
| 5334 |
> |
; |
| 5335 |
> |
return 0; |
| 5336 |
> |
} |
| 5337 |
> |
_ACEOF |
| 5338 |
> |
rm -f conftest.$ac_objext |
| 5339 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5340 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 5341 |
> |
ac_status=$? |
| 5342 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5343 |
> |
rm -f conftest.er1 |
| 5344 |
> |
cat conftest.err >&5 |
| 5345 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5346 |
> |
(exit $ac_status); } && |
| 5347 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 5348 |
> |
|| test ! -s conftest.err' |
| 5349 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5350 |
> |
(eval $ac_try) 2>&5 |
| 5351 |
> |
ac_status=$? |
| 5352 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5353 |
> |
(exit $ac_status); }; } && |
| 5354 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 5355 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5356 |
> |
(eval $ac_try) 2>&5 |
| 5357 |
> |
ac_status=$? |
| 5358 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5359 |
> |
(exit $ac_status); }; }; then |
| 5360 |
> |
ac_cv_cxx_have_stl=yes |
| 5361 |
> |
else |
| 5362 |
> |
echo "$as_me: failed program was:" >&5 |
| 5363 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5364 |
> |
|
| 5365 |
> |
ac_cv_cxx_have_stl=no |
| 5366 |
> |
fi |
| 5367 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5368 |
> |
ac_ext=cc |
| 5369 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 5370 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5371 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5372 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5373 |
> |
|
| 5374 |
> |
|
| 5375 |
> |
fi |
| 5376 |
> |
echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5 |
| 5377 |
> |
echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6 |
| 5378 |
> |
if test "$ac_cv_cxx_have_stl" = yes; then |
| 5379 |
> |
|
| 5380 |
> |
cat >>confdefs.h <<\_ACEOF |
| 5381 |
> |
#define HAVE_STL |
| 5382 |
> |
_ACEOF |
| 5383 |
> |
|
| 5384 |
> |
fi |
| 5385 |
> |
|
| 5386 |
> |
|
| 5387 |
> |
|
| 5388 |
> |
if test "${ac_cv_header_iostream+set}" = set; then |
| 5389 |
> |
echo "$as_me:$LINENO: checking for iostream" >&5 |
| 5390 |
> |
echo $ECHO_N "checking for iostream... $ECHO_C" >&6 |
| 5391 |
> |
if test "${ac_cv_header_iostream+set}" = set; then |
| 5392 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5393 |
> |
fi |
| 5394 |
> |
echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5 |
| 5395 |
> |
echo "${ECHO_T}$ac_cv_header_iostream" >&6 |
| 5396 |
> |
else |
| 5397 |
> |
# Is the header compilable? |
| 5398 |
> |
echo "$as_me:$LINENO: checking iostream usability" >&5 |
| 5399 |
> |
echo $ECHO_N "checking iostream usability... $ECHO_C" >&6 |
| 5400 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 5401 |
> |
/* confdefs.h. */ |
| 5402 |
> |
_ACEOF |
| 5403 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 5404 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 5405 |
> |
/* end confdefs.h. */ |
| 5406 |
> |
$ac_includes_default |
| 5407 |
> |
#include <iostream> |
| 5408 |
> |
_ACEOF |
| 5409 |
> |
rm -f conftest.$ac_objext |
| 5410 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5411 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 5412 |
> |
ac_status=$? |
| 5413 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5414 |
> |
rm -f conftest.er1 |
| 5415 |
> |
cat conftest.err >&5 |
| 5416 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5417 |
> |
(exit $ac_status); } && |
| 5418 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 5419 |
> |
|| test ! -s conftest.err' |
| 5420 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5421 |
> |
(eval $ac_try) 2>&5 |
| 5422 |
> |
ac_status=$? |
| 5423 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5424 |
> |
(exit $ac_status); }; } && |
| 5425 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 5426 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5427 |
> |
(eval $ac_try) 2>&5 |
| 5428 |
> |
ac_status=$? |
| 5429 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5430 |
> |
(exit $ac_status); }; }; then |
| 5431 |
> |
ac_header_compiler=yes |
| 5432 |
> |
else |
| 5433 |
> |
echo "$as_me: failed program was:" >&5 |
| 5434 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5435 |
> |
|
| 5436 |
> |
ac_header_compiler=no |
| 5437 |
> |
fi |
| 5438 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5439 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5440 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5441 |
> |
|
| 5442 |
> |
# Is the header present? |
| 5443 |
> |
echo "$as_me:$LINENO: checking iostream presence" >&5 |
| 5444 |
> |
echo $ECHO_N "checking iostream presence... $ECHO_C" >&6 |
| 5445 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 5446 |
> |
/* confdefs.h. */ |
| 5447 |
> |
_ACEOF |
| 5448 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 5449 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 5450 |
> |
/* end confdefs.h. */ |
| 5451 |
> |
#include <iostream> |
| 5452 |
> |
_ACEOF |
| 5453 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5454 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5455 |
> |
ac_status=$? |
| 5456 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5457 |
> |
rm -f conftest.er1 |
| 5458 |
> |
cat conftest.err >&5 |
| 5459 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5460 |
> |
(exit $ac_status); } >/dev/null; then |
| 5461 |
> |
if test -s conftest.err; then |
| 5462 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5463 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5464 |
> |
else |
| 5465 |
> |
ac_cpp_err= |
| 5466 |
> |
fi |
| 5467 |
> |
else |
| 5468 |
> |
ac_cpp_err=yes |
| 5469 |
> |
fi |
| 5470 |
> |
if test -z "$ac_cpp_err"; then |
| 5471 |
> |
ac_header_preproc=yes |
| 5472 |
> |
else |
| 5473 |
> |
echo "$as_me: failed program was:" >&5 |
| 5474 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5475 |
> |
|
| 5476 |
> |
ac_header_preproc=no |
| 5477 |
> |
fi |
| 5478 |
> |
rm -f conftest.err conftest.$ac_ext |
| 5479 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5480 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5481 |
> |
|
| 5482 |
> |
# So? What about this header? |
| 5483 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 5484 |
> |
yes:no: ) |
| 5485 |
> |
{ echo "$as_me:$LINENO: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5486 |
> |
echo "$as_me: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5487 |
> |
{ echo "$as_me:$LINENO: WARNING: iostream: proceeding with the compiler's result" >&5 |
| 5488 |
> |
echo "$as_me: WARNING: iostream: proceeding with the compiler's result" >&2;} |
| 5489 |
> |
ac_header_preproc=yes |
| 5490 |
> |
;; |
| 5491 |
> |
no:yes:* ) |
| 5492 |
> |
{ echo "$as_me:$LINENO: WARNING: iostream: present but cannot be compiled" >&5 |
| 5493 |
> |
echo "$as_me: WARNING: iostream: present but cannot be compiled" >&2;} |
| 5494 |
> |
{ echo "$as_me:$LINENO: WARNING: iostream: check for missing prerequisite headers?" >&5 |
| 5495 |
> |
echo "$as_me: WARNING: iostream: check for missing prerequisite headers?" >&2;} |
| 5496 |
> |
{ echo "$as_me:$LINENO: WARNING: iostream: see the Autoconf documentation" >&5 |
| 5497 |
> |
echo "$as_me: WARNING: iostream: see the Autoconf documentation" >&2;} |
| 5498 |
> |
{ echo "$as_me:$LINENO: WARNING: iostream: section \"Present But Cannot Be Compiled\"" >&5 |
| 5499 |
> |
echo "$as_me: WARNING: iostream: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5500 |
> |
{ echo "$as_me:$LINENO: WARNING: iostream: proceeding with the preprocessor's result" >&5 |
| 5501 |
> |
echo "$as_me: WARNING: iostream: proceeding with the preprocessor's result" >&2;} |
| 5502 |
> |
{ echo "$as_me:$LINENO: WARNING: iostream: in the future, the compiler will take precedence" >&5 |
| 5503 |
> |
echo "$as_me: WARNING: iostream: in the future, the compiler will take precedence" >&2;} |
| 5504 |
> |
( |
| 5505 |
> |
cat <<\_ASBOX |
| 5506 |
> |
## ------------------------------ ## |
| 5507 |
> |
## Report this to gezelter@nd.edu ## |
| 5508 |
> |
## ------------------------------ ## |
| 5509 |
> |
_ASBOX |
| 5510 |
> |
) | |
| 5511 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
| 5512 |
> |
;; |
| 5513 |
> |
esac |
| 5514 |
> |
echo "$as_me:$LINENO: checking for iostream" >&5 |
| 5515 |
> |
echo $ECHO_N "checking for iostream... $ECHO_C" >&6 |
| 5516 |
> |
if test "${ac_cv_header_iostream+set}" = set; then |
| 5517 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5518 |
> |
else |
| 5519 |
> |
ac_cv_header_iostream=$ac_header_preproc |
| 5520 |
> |
fi |
| 5521 |
> |
echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5 |
| 5522 |
> |
echo "${ECHO_T}$ac_cv_header_iostream" >&6 |
| 5523 |
> |
|
| 5524 |
> |
fi |
| 5525 |
> |
if test $ac_cv_header_iostream = yes; then |
| 5526 |
> |
|
| 5527 |
> |
|
| 5528 |
> |
cat >>confdefs.h <<\_ACEOF |
| 5529 |
> |
#define HAVE_IOSTREAM 1 |
| 5530 |
> |
_ACEOF |
| 5531 |
> |
|
| 5532 |
> |
|
| 5533 |
> |
else |
| 5534 |
> |
|
| 5535 |
> |
|
| 5536 |
> |
for ac_header in iostream.h |
| 5537 |
|
do |
| 5538 |
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5539 |
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5566 |
|
cat conftest.err >&5 |
| 5567 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5568 |
|
(exit $ac_status); } && |
| 5569 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 5569 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 5570 |
|
|| test ! -s conftest.err' |
| 5571 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5572 |
|
(eval $ac_try) 2>&5 |
| 5610 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5611 |
|
(exit $ac_status); } >/dev/null; then |
| 5612 |
|
if test -s conftest.err; then |
| 5613 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 5614 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5613 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5614 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5615 |
|
else |
| 5616 |
|
ac_cpp_err= |
| 5617 |
|
fi |
| 5631 |
|
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5632 |
|
|
| 5633 |
|
# So? What about this header? |
| 5634 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5634 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 5635 |
|
yes:no: ) |
| 5636 |
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5637 |
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5683 |
|
done |
| 5684 |
|
|
| 5685 |
|
|
| 5686 |
< |
for ac_func in getopt_long |
| 5687 |
< |
do |
| 5688 |
< |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5689 |
< |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5690 |
< |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5691 |
< |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5686 |
> |
fi |
| 5687 |
> |
|
| 5688 |
> |
|
| 5689 |
> |
|
| 5690 |
> |
|
| 5691 |
> |
if test "${ac_cv_header_iomanip+set}" = set; then |
| 5692 |
> |
echo "$as_me:$LINENO: checking for iomanip" >&5 |
| 5693 |
> |
echo $ECHO_N "checking for iomanip... $ECHO_C" >&6 |
| 5694 |
> |
if test "${ac_cv_header_iomanip+set}" = set; then |
| 5695 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5696 |
+ |
fi |
| 5697 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5 |
| 5698 |
+ |
echo "${ECHO_T}$ac_cv_header_iomanip" >&6 |
| 5699 |
|
else |
| 5700 |
< |
cat >conftest.$ac_ext <<_ACEOF |
| 5700 |
> |
# Is the header compilable? |
| 5701 |
> |
echo "$as_me:$LINENO: checking iomanip usability" >&5 |
| 5702 |
> |
echo $ECHO_N "checking iomanip usability... $ECHO_C" >&6 |
| 5703 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 5704 |
|
/* confdefs.h. */ |
| 5705 |
|
_ACEOF |
| 5706 |
|
cat confdefs.h >>conftest.$ac_ext |
| 5707 |
|
cat >>conftest.$ac_ext <<_ACEOF |
| 5708 |
|
/* end confdefs.h. */ |
| 5709 |
< |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 5710 |
< |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5118 |
< |
#define $ac_func innocuous_$ac_func |
| 5119 |
< |
|
| 5120 |
< |
/* System header to define __stub macros and hopefully few prototypes, |
| 5121 |
< |
which can conflict with char $ac_func (); below. |
| 5122 |
< |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5123 |
< |
<limits.h> exists even on freestanding compilers. */ |
| 5124 |
< |
|
| 5125 |
< |
#ifdef __STDC__ |
| 5126 |
< |
# include <limits.h> |
| 5127 |
< |
#else |
| 5128 |
< |
# include <assert.h> |
| 5129 |
< |
#endif |
| 5130 |
< |
|
| 5131 |
< |
#undef $ac_func |
| 5132 |
< |
|
| 5133 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 5134 |
< |
#ifdef __cplusplus |
| 5135 |
< |
extern "C" |
| 5136 |
< |
{ |
| 5137 |
< |
#endif |
| 5138 |
< |
/* We use char because int might match the return type of a gcc2 |
| 5139 |
< |
builtin and then its argument prototype would still apply. */ |
| 5140 |
< |
char $ac_func (); |
| 5141 |
< |
/* The GNU C library defines this for functions which it implements |
| 5142 |
< |
to always fail with ENOSYS. Some functions are actually named |
| 5143 |
< |
something starting with __ and the normal name is an alias. */ |
| 5144 |
< |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5145 |
< |
choke me |
| 5146 |
< |
#else |
| 5147 |
< |
char (*f) () = $ac_func; |
| 5148 |
< |
#endif |
| 5149 |
< |
#ifdef __cplusplus |
| 5150 |
< |
} |
| 5151 |
< |
#endif |
| 5152 |
< |
|
| 5153 |
< |
int |
| 5154 |
< |
main () |
| 5155 |
< |
{ |
| 5156 |
< |
return f != $ac_func; |
| 5157 |
< |
; |
| 5158 |
< |
return 0; |
| 5159 |
< |
} |
| 5709 |
> |
$ac_includes_default |
| 5710 |
> |
#include <iomanip> |
| 5711 |
|
_ACEOF |
| 5712 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 5713 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5714 |
< |
(eval $ac_link) 2>conftest.er1 |
| 5712 |
> |
rm -f conftest.$ac_objext |
| 5713 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5714 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 5715 |
|
ac_status=$? |
| 5716 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
| 5717 |
|
rm -f conftest.er1 |
| 5718 |
|
cat conftest.err >&5 |
| 5719 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5720 |
|
(exit $ac_status); } && |
| 5721 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 5721 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 5722 |
|
|| test ! -s conftest.err' |
| 5723 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5724 |
|
(eval $ac_try) 2>&5 |
| 5725 |
|
ac_status=$? |
| 5726 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5727 |
|
(exit $ac_status); }; } && |
| 5728 |
< |
{ ac_try='test -s conftest$ac_exeext' |
| 5728 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 5729 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5730 |
|
(eval $ac_try) 2>&5 |
| 5731 |
|
ac_status=$? |
| 5732 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5733 |
|
(exit $ac_status); }; }; then |
| 5734 |
< |
eval "$as_ac_var=yes" |
| 5734 |
> |
ac_header_compiler=yes |
| 5735 |
|
else |
| 5736 |
|
echo "$as_me: failed program was:" >&5 |
| 5737 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5738 |
|
|
| 5739 |
< |
eval "$as_ac_var=no" |
| 5739 |
> |
ac_header_compiler=no |
| 5740 |
|
fi |
| 5741 |
< |
rm -f conftest.err conftest.$ac_objext \ |
| 5742 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 5741 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5742 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5743 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5744 |
> |
|
| 5745 |
> |
# Is the header present? |
| 5746 |
> |
echo "$as_me:$LINENO: checking iomanip presence" >&5 |
| 5747 |
> |
echo $ECHO_N "checking iomanip presence... $ECHO_C" >&6 |
| 5748 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 5749 |
> |
/* confdefs.h. */ |
| 5750 |
> |
_ACEOF |
| 5751 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 5752 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 5753 |
> |
/* end confdefs.h. */ |
| 5754 |
> |
#include <iomanip> |
| 5755 |
> |
_ACEOF |
| 5756 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5757 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5758 |
> |
ac_status=$? |
| 5759 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5760 |
> |
rm -f conftest.er1 |
| 5761 |
> |
cat conftest.err >&5 |
| 5762 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5763 |
> |
(exit $ac_status); } >/dev/null; then |
| 5764 |
> |
if test -s conftest.err; then |
| 5765 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5766 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5767 |
> |
else |
| 5768 |
> |
ac_cpp_err= |
| 5769 |
> |
fi |
| 5770 |
> |
else |
| 5771 |
> |
ac_cpp_err=yes |
| 5772 |
|
fi |
| 5773 |
< |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 5774 |
< |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5775 |
< |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 5776 |
< |
cat >>confdefs.h <<_ACEOF |
| 5777 |
< |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 5773 |
> |
if test -z "$ac_cpp_err"; then |
| 5774 |
> |
ac_header_preproc=yes |
| 5775 |
> |
else |
| 5776 |
> |
echo "$as_me: failed program was:" >&5 |
| 5777 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5778 |
> |
|
| 5779 |
> |
ac_header_preproc=no |
| 5780 |
> |
fi |
| 5781 |
> |
rm -f conftest.err conftest.$ac_ext |
| 5782 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5783 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5784 |
> |
|
| 5785 |
> |
# So? What about this header? |
| 5786 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 5787 |
> |
yes:no: ) |
| 5788 |
> |
{ echo "$as_me:$LINENO: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5789 |
> |
echo "$as_me: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5790 |
> |
{ echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the compiler's result" >&5 |
| 5791 |
> |
echo "$as_me: WARNING: iomanip: proceeding with the compiler's result" >&2;} |
| 5792 |
> |
ac_header_preproc=yes |
| 5793 |
> |
;; |
| 5794 |
> |
no:yes:* ) |
| 5795 |
> |
{ echo "$as_me:$LINENO: WARNING: iomanip: present but cannot be compiled" >&5 |
| 5796 |
> |
echo "$as_me: WARNING: iomanip: present but cannot be compiled" >&2;} |
| 5797 |
> |
{ echo "$as_me:$LINENO: WARNING: iomanip: check for missing prerequisite headers?" >&5 |
| 5798 |
> |
echo "$as_me: WARNING: iomanip: check for missing prerequisite headers?" >&2;} |
| 5799 |
> |
{ echo "$as_me:$LINENO: WARNING: iomanip: see the Autoconf documentation" >&5 |
| 5800 |
> |
echo "$as_me: WARNING: iomanip: see the Autoconf documentation" >&2;} |
| 5801 |
> |
{ echo "$as_me:$LINENO: WARNING: iomanip: section \"Present But Cannot Be Compiled\"" >&5 |
| 5802 |
> |
echo "$as_me: WARNING: iomanip: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5803 |
> |
{ echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the preprocessor's result" >&5 |
| 5804 |
> |
echo "$as_me: WARNING: iomanip: proceeding with the preprocessor's result" >&2;} |
| 5805 |
> |
{ echo "$as_me:$LINENO: WARNING: iomanip: in the future, the compiler will take precedence" >&5 |
| 5806 |
> |
echo "$as_me: WARNING: iomanip: in the future, the compiler will take precedence" >&2;} |
| 5807 |
> |
( |
| 5808 |
> |
cat <<\_ASBOX |
| 5809 |
> |
## ------------------------------ ## |
| 5810 |
> |
## Report this to gezelter@nd.edu ## |
| 5811 |
> |
## ------------------------------ ## |
| 5812 |
> |
_ASBOX |
| 5813 |
> |
) | |
| 5814 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
| 5815 |
> |
;; |
| 5816 |
> |
esac |
| 5817 |
> |
echo "$as_me:$LINENO: checking for iomanip" >&5 |
| 5818 |
> |
echo $ECHO_N "checking for iomanip... $ECHO_C" >&6 |
| 5819 |
> |
if test "${ac_cv_header_iomanip+set}" = set; then |
| 5820 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5821 |
> |
else |
| 5822 |
> |
ac_cv_header_iomanip=$ac_header_preproc |
| 5823 |
> |
fi |
| 5824 |
> |
echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5 |
| 5825 |
> |
echo "${ECHO_T}$ac_cv_header_iomanip" >&6 |
| 5826 |
> |
|
| 5827 |
> |
fi |
| 5828 |
> |
if test $ac_cv_header_iomanip = yes; then |
| 5829 |
> |
|
| 5830 |
> |
|
| 5831 |
> |
cat >>confdefs.h <<\_ACEOF |
| 5832 |
> |
#define HAVE_IOMANIP 1 |
| 5833 |
|
_ACEOF |
| 5834 |
|
|
| 5835 |
+ |
|
| 5836 |
|
else |
| 5837 |
< |
# FreeBSD has a gnugetopt library for this |
| 5838 |
< |
echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5 |
| 5839 |
< |
echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6 |
| 5840 |
< |
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then |
| 5837 |
> |
|
| 5838 |
> |
|
| 5839 |
> |
for ac_header in iomanip.h |
| 5840 |
> |
do |
| 5841 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5842 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5843 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5844 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5845 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5846 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5847 |
+ |
fi |
| 5848 |
+ |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5849 |
+ |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5850 |
|
else |
| 5851 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 5852 |
< |
LIBS="-lgnugetopt $LIBS" |
| 5851 |
> |
# Is the header compilable? |
| 5852 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5853 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5854 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 5855 |
|
/* confdefs.h. */ |
| 5856 |
|
_ACEOF |
| 5857 |
|
cat confdefs.h >>conftest.$ac_ext |
| 5858 |
|
cat >>conftest.$ac_ext <<_ACEOF |
| 5859 |
|
/* end confdefs.h. */ |
| 5860 |
< |
|
| 5861 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 5217 |
< |
#ifdef __cplusplus |
| 5218 |
< |
extern "C" |
| 5219 |
< |
#endif |
| 5220 |
< |
/* We use char because int might match the return type of a gcc2 |
| 5221 |
< |
builtin and then its argument prototype would still apply. */ |
| 5222 |
< |
char getopt_long (); |
| 5223 |
< |
int |
| 5224 |
< |
main () |
| 5225 |
< |
{ |
| 5226 |
< |
getopt_long (); |
| 5227 |
< |
; |
| 5228 |
< |
return 0; |
| 5229 |
< |
} |
| 5860 |
> |
$ac_includes_default |
| 5861 |
> |
#include <$ac_header> |
| 5862 |
|
_ACEOF |
| 5863 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 5864 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5865 |
< |
(eval $ac_link) 2>conftest.er1 |
| 5863 |
> |
rm -f conftest.$ac_objext |
| 5864 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5865 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 5866 |
|
ac_status=$? |
| 5867 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
| 5868 |
|
rm -f conftest.er1 |
| 5869 |
|
cat conftest.err >&5 |
| 5870 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5871 |
|
(exit $ac_status); } && |
| 5872 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 5872 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 5873 |
|
|| test ! -s conftest.err' |
| 5874 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5875 |
|
(eval $ac_try) 2>&5 |
| 5876 |
|
ac_status=$? |
| 5877 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5878 |
|
(exit $ac_status); }; } && |
| 5879 |
< |
{ ac_try='test -s conftest$ac_exeext' |
| 5879 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 5880 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5881 |
|
(eval $ac_try) 2>&5 |
| 5882 |
|
ac_status=$? |
| 5883 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5884 |
|
(exit $ac_status); }; }; then |
| 5885 |
< |
ac_cv_lib_gnugetopt_getopt_long=yes |
| 5885 |
> |
ac_header_compiler=yes |
| 5886 |
|
else |
| 5887 |
|
echo "$as_me: failed program was:" >&5 |
| 5888 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5889 |
|
|
| 5890 |
< |
ac_cv_lib_gnugetopt_getopt_long=no |
| 5890 |
> |
ac_header_compiler=no |
| 5891 |
|
fi |
| 5892 |
< |
rm -f conftest.err conftest.$ac_objext \ |
| 5893 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 5894 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 5263 |
< |
fi |
| 5264 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5 |
| 5265 |
< |
echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6 |
| 5266 |
< |
if test $ac_cv_lib_gnugetopt_getopt_long = yes; then |
| 5267 |
< |
cat >>confdefs.h <<\_ACEOF |
| 5268 |
< |
#define HAVE_GETOPT_LONG 1 |
| 5269 |
< |
_ACEOF |
| 5892 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5893 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5894 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5895 |
|
|
| 5896 |
+ |
# Is the header present? |
| 5897 |
+ |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5898 |
+ |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5899 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
| 5900 |
+ |
/* confdefs.h. */ |
| 5901 |
+ |
_ACEOF |
| 5902 |
+ |
cat confdefs.h >>conftest.$ac_ext |
| 5903 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
| 5904 |
+ |
/* end confdefs.h. */ |
| 5905 |
+ |
#include <$ac_header> |
| 5906 |
+ |
_ACEOF |
| 5907 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5908 |
+ |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5909 |
+ |
ac_status=$? |
| 5910 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
| 5911 |
+ |
rm -f conftest.er1 |
| 5912 |
+ |
cat conftest.err >&5 |
| 5913 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5914 |
+ |
(exit $ac_status); } >/dev/null; then |
| 5915 |
+ |
if test -s conftest.err; then |
| 5916 |
+ |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5917 |
+ |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5918 |
+ |
else |
| 5919 |
+ |
ac_cpp_err= |
| 5920 |
+ |
fi |
| 5921 |
|
else |
| 5922 |
< |
# use the GNU replacement |
| 5923 |
< |
case $LIBOBJS in |
| 5924 |
< |
"getopt.$ac_objext" | \ |
| 5925 |
< |
*" getopt.$ac_objext" | \ |
| 5926 |
< |
"getopt.$ac_objext "* | \ |
| 5927 |
< |
*" getopt.$ac_objext "* ) ;; |
| 5928 |
< |
*) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;; |
| 5929 |
< |
esac |
| 5930 |
< |
|
| 5931 |
< |
case $LIBOBJS in |
| 5932 |
< |
"getopt1.$ac_objext" | \ |
| 5933 |
< |
*" getopt1.$ac_objext" | \ |
| 5934 |
< |
"getopt1.$ac_objext "* | \ |
| 5935 |
< |
*" getopt1.$ac_objext "* ) ;; |
| 5936 |
< |
*) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;; |
| 5937 |
< |
esac |
| 5938 |
< |
|
| 5939 |
< |
ac_config_links="$ac_config_links src/utils/getopt.h:src/utils/gnugetopt.h" |
| 5940 |
< |
|
| 5941 |
< |
fi |
| 5942 |
< |
|
| 5943 |
< |
fi |
| 5944 |
< |
done |
| 5945 |
< |
|
| 5946 |
< |
|
| 5947 |
< |
|
| 5948 |
< |
case $debug in |
| 5949 |
< |
1) |
| 5950 |
< |
;; |
| 5951 |
< |
*) |
| 5952 |
< |
|
| 5953 |
< |
|
| 5954 |
< |
|
| 5955 |
< |
|
| 5956 |
< |
|
| 5957 |
< |
|
| 5958 |
< |
echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5 |
| 5959 |
< |
echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6 |
| 5960 |
< |
if test "${ac_cv_prog_really_gcc+set}" = set; then |
| 5961 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5962 |
< |
else |
| 5963 |
< |
|
| 5964 |
< |
cat > conftest.c <<EOF |
| 5965 |
< |
#ifdef __GNUC__ |
| 5966 |
< |
#ifndef __INTEL_COMPILER |
| 5967 |
< |
yes; |
| 5968 |
< |
#endif |
| 5969 |
< |
#endif |
| 5970 |
< |
EOF |
| 5971 |
< |
if { ac_try='${CC-cc} -E conftest.c' |
| 5972 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5973 |
< |
(eval $ac_try) 2>&5 |
| 5974 |
< |
ac_status=$? |
| 5975 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5976 |
< |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
| 5977 |
< |
ac_cv_prog_really_gcc=yes |
| 5978 |
< |
else |
| 5979 |
< |
ac_cv_prog_really_gcc=no |
| 5980 |
< |
fi |
| 5981 |
< |
|
| 5982 |
< |
fi |
| 5983 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5 |
| 5984 |
< |
echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6 |
| 5985 |
< |
if test "$ac_cv_prog_really_gcc" = yes; then |
| 5986 |
< |
: |
| 5987 |
< |
|
| 5988 |
< |
else |
| 5989 |
< |
: |
| 5990 |
< |
|
| 5991 |
< |
fi |
| 5992 |
< |
|
| 5993 |
< |
|
| 5994 |
< |
# Try to determine "good" native compiler flags if none specified on command |
| 5995 |
< |
# line |
| 5996 |
< |
if test "$ac_test_CFLAGS" != "set"; then |
| 5997 |
< |
CFLAGS="" |
| 5998 |
< |
case "${host_cpu}-${host_os}" in |
| 5999 |
< |
|
| 6000 |
< |
*linux*) if test "$CC" = icc; then |
| 6001 |
< |
CFLAGS="-O" |
| 6002 |
< |
fi;; |
| 6003 |
< |
sparc-solaris2*) if test "$CC" = cc; then |
| 6004 |
< |
CFLAGS="-native -fast -xO5 -dalign" |
| 6005 |
< |
fi;; |
| 6006 |
< |
|
| 6007 |
< |
alpha*-osf*) if test "$CC" = cc; then |
| 6008 |
< |
CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1" |
| 6009 |
< |
fi;; |
| 6010 |
< |
|
| 6011 |
< |
hppa*-hpux*) if test "$CC" = cc; then |
| 6012 |
< |
CFLAGS="-Ae +O3 +Oall" |
| 6013 |
< |
fi;; |
| 6014 |
< |
|
| 6015 |
< |
rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then |
| 6016 |
< |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
| 6017 |
< |
fi;; |
| 6018 |
< |
powerpc*-aix*) |
| 6019 |
< |
if test "$CC" = cc -o "$CC" = xlc; then |
| 6020 |
< |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
| 6021 |
< |
echo "*******************************************************" |
| 6022 |
< |
echo "* You have AIX on an unknown powerpc system. It is *" |
| 6023 |
< |
echo "* recommended that you use *" |
| 6024 |
< |
echo "* *" |
| 6025 |
< |
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
| 6026 |
< |
echo "* ^^^ *" |
| 6027 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
| 6028 |
< |
echo "* PowerPC CPU you have. For more info, man cc. *" |
| 6029 |
< |
echo "*******************************************************" |
| 6030 |
< |
fi;; |
| 6031 |
< |
*darwin*) |
| 6032 |
< |
if test "$CC" = xlc -o "$CC" = cc; then |
| 6033 |
< |
CFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
| 6034 |
< |
fi;; |
| 6035 |
< |
esac |
| 6036 |
< |
|
| 6037 |
< |
# use default flags for gcc on all systems |
| 6038 |
< |
if test $ac_cv_prog_really_gcc = yes; then |
| 6039 |
< |
CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
| 6040 |
< |
fi |
| 6041 |
< |
|
| 6042 |
< |
# test for gcc-specific flags: |
| 6043 |
< |
if test $ac_cv_prog_really_gcc = yes; then |
| 6044 |
< |
# -malign-double for x86 systems |
| 6045 |
< |
|
| 6046 |
< |
|
| 6047 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5 |
| 6048 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6 |
| 6049 |
< |
if test "${ac_align_double+set}" = set; then |
| 6050 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6051 |
< |
else |
| 6052 |
< |
echo 'void f(){}' > conftest.c |
| 6053 |
< |
if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then |
| 6054 |
< |
ac_align_double=yes |
| 6055 |
< |
else |
| 6056 |
< |
ac_align_double=no |
| 6057 |
< |
fi |
| 6058 |
< |
rm -f conftest* |
| 6059 |
< |
|
| 6060 |
< |
fi |
| 6061 |
< |
echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
| 6062 |
< |
echo "${ECHO_T}$ac_align_double" >&6 |
| 6063 |
< |
if test "$ac_align_double" = yes; then |
| 6064 |
< |
: |
| 6065 |
< |
CFLAGS="$CFLAGS -malign-double" |
| 6066 |
< |
else |
| 6067 |
< |
: |
| 6068 |
< |
|
| 6069 |
< |
fi |
| 6070 |
< |
|
| 6071 |
< |
# -fstrict-aliasing for gcc-2.95+ |
| 6072 |
< |
|
| 6073 |
< |
|
| 6074 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5 |
| 6075 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6 |
| 6076 |
< |
if test "${ac_fstrict_aliasing+set}" = set; then |
| 6077 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6078 |
< |
else |
| 6079 |
< |
echo 'void f(){}' > conftest.c |
| 6080 |
< |
if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then |
| 6081 |
< |
ac_fstrict_aliasing=yes |
| 6082 |
< |
else |
| 6083 |
< |
ac_fstrict_aliasing=no |
| 6084 |
< |
fi |
| 6085 |
< |
rm -f conftest* |
| 6086 |
< |
|
| 6087 |
< |
fi |
| 6088 |
< |
echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
| 6089 |
< |
echo "${ECHO_T}$ac_fstrict_aliasing" >&6 |
| 6090 |
< |
if test "$ac_fstrict_aliasing" = yes; then |
| 6091 |
< |
: |
| 6092 |
< |
CFLAGS="$CFLAGS -fstrict-aliasing" |
| 6093 |
< |
else |
| 6094 |
< |
: |
| 6095 |
< |
|
| 6096 |
< |
fi |
| 6097 |
< |
|
| 6098 |
< |
fi |
| 6099 |
< |
|
| 6100 |
< |
CPU_FLAGS="" |
| 6101 |
< |
if test $ac_cv_prog_really_gcc = yes; then |
| 6102 |
< |
case "${host_cpu}" in |
| 6103 |
< |
i586*) |
| 6104 |
< |
|
| 6105 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5 |
| 6106 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6 |
| 6107 |
< |
if test "${ac_cpu_pentium+set}" = set; then |
| 6108 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6109 |
< |
else |
| 6110 |
< |
echo 'void f(){}' > conftest.c |
| 6111 |
< |
if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then |
| 6112 |
< |
ac_cpu_pentium=yes |
| 6113 |
< |
else |
| 6114 |
< |
ac_cpu_pentium=no |
| 6115 |
< |
fi |
| 6116 |
< |
rm -f conftest* |
| 6117 |
< |
|
| 6118 |
< |
fi |
| 6119 |
< |
echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 |
| 6120 |
< |
echo "${ECHO_T}$ac_cpu_pentium" >&6 |
| 6121 |
< |
if test "$ac_cpu_pentium" = yes; then |
| 6122 |
< |
: |
| 6123 |
< |
CPU_FLAGS=-mcpu=pentium |
| 6124 |
< |
else |
| 6125 |
< |
: |
| 6126 |
< |
|
| 6127 |
< |
|
| 6128 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5 |
| 6129 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6 |
| 6130 |
< |
if test "${ac_pentium+set}" = set; then |
| 6131 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6132 |
< |
else |
| 6133 |
< |
echo 'void f(){}' > conftest.c |
| 6134 |
< |
if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then |
| 6135 |
< |
ac_pentium=yes |
| 6136 |
< |
else |
| 6137 |
< |
ac_pentium=no |
| 6138 |
< |
fi |
| 6139 |
< |
rm -f conftest* |
| 6140 |
< |
|
| 6141 |
< |
fi |
| 6142 |
< |
echo "$as_me:$LINENO: result: $ac_pentium" >&5 |
| 6143 |
< |
echo "${ECHO_T}$ac_pentium" >&6 |
| 6144 |
< |
if test "$ac_pentium" = yes; then |
| 6145 |
< |
: |
| 6146 |
< |
CPU_FLAGS=-mpentium |
| 6147 |
< |
else |
| 6148 |
< |
: |
| 6149 |
< |
|
| 6150 |
< |
fi |
| 6151 |
< |
|
| 6152 |
< |
fi |
| 6153 |
< |
|
| 6154 |
< |
;; |
| 6155 |
< |
i686*) |
| 6156 |
< |
|
| 6157 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5 |
| 6158 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6 |
| 6159 |
< |
if test "${ac_cpu_pentiumpro+set}" = set; then |
| 6160 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6161 |
< |
else |
| 6162 |
< |
echo 'void f(){}' > conftest.c |
| 6163 |
< |
if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then |
| 6164 |
< |
ac_cpu_pentiumpro=yes |
| 6165 |
< |
else |
| 6166 |
< |
ac_cpu_pentiumpro=no |
| 6167 |
< |
fi |
| 6168 |
< |
rm -f conftest* |
| 6169 |
< |
|
| 6170 |
< |
fi |
| 6171 |
< |
echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 |
| 6172 |
< |
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6 |
| 6173 |
< |
if test "$ac_cpu_pentiumpro" = yes; then |
| 6174 |
< |
: |
| 6175 |
< |
CPU_FLAGS=-mcpu=pentiumpro |
| 6176 |
< |
else |
| 6177 |
< |
: |
| 6178 |
< |
|
| 6179 |
< |
|
| 6180 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5 |
| 6181 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6 |
| 6182 |
< |
if test "${ac_pentiumpro+set}" = set; then |
| 6183 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6184 |
< |
else |
| 6185 |
< |
echo 'void f(){}' > conftest.c |
| 6186 |
< |
if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then |
| 6187 |
< |
ac_pentiumpro=yes |
| 6188 |
< |
else |
| 6189 |
< |
ac_pentiumpro=no |
| 6190 |
< |
fi |
| 6191 |
< |
rm -f conftest* |
| 6192 |
< |
|
| 6193 |
< |
fi |
| 6194 |
< |
echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 |
| 6195 |
< |
echo "${ECHO_T}$ac_pentiumpro" >&6 |
| 6196 |
< |
if test "$ac_pentiumpro" = yes; then |
| 6197 |
< |
: |
| 6198 |
< |
CPU_FLAGS=-mpentiumpro |
| 6199 |
< |
else |
| 6200 |
< |
: |
| 6201 |
< |
|
| 6202 |
< |
fi |
| 6203 |
< |
|
| 6204 |
< |
fi |
| 6205 |
< |
|
| 6206 |
< |
;; |
| 6207 |
< |
powerpc*) |
| 6208 |
< |
cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` |
| 6209 |
< |
is60x=`echo $cputype | egrep "^600-9e?$"` |
| 6210 |
< |
if test -n "$is60x"; then |
| 6211 |
< |
|
| 6212 |
< |
|
| 6213 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5 |
| 6214 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6 |
| 6215 |
< |
if test "${ac_m_cpu_60x+set}" = set; then |
| 6216 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6217 |
< |
else |
| 6218 |
< |
echo 'void f(){}' > conftest.c |
| 6219 |
< |
if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then |
| 6220 |
< |
ac_m_cpu_60x=yes |
| 6221 |
< |
else |
| 6222 |
< |
ac_m_cpu_60x=no |
| 6223 |
< |
fi |
| 6224 |
< |
rm -f conftest* |
| 6225 |
< |
|
| 6226 |
< |
fi |
| 6227 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 |
| 6228 |
< |
echo "${ECHO_T}$ac_m_cpu_60x" >&6 |
| 6229 |
< |
if test "$ac_m_cpu_60x" = yes; then |
| 6230 |
< |
: |
| 6231 |
< |
CPU_FLAGS=-mcpu=$cputype |
| 6232 |
< |
else |
| 6233 |
< |
: |
| 6234 |
< |
|
| 6235 |
< |
fi |
| 6236 |
< |
|
| 6237 |
< |
elif test "$cputype" = 750; then |
| 6238 |
< |
|
| 6239 |
< |
|
| 6240 |
< |
echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5 |
| 6241 |
< |
echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6 |
| 6242 |
< |
if test "${ac_cv_prog_gcc_2_95+set}" = set; then |
| 6243 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6244 |
< |
else |
| 6245 |
< |
|
| 6246 |
< |
cat > conftest.c <<EOF |
| 6247 |
< |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
| 6248 |
< |
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
| 6249 |
< |
yes; |
| 6250 |
< |
# endif |
| 6251 |
< |
#endif |
| 6252 |
< |
EOF |
| 6253 |
< |
if { ac_try='${CC-cc} -E conftest.c' |
| 6254 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6255 |
< |
(eval $ac_try) 2>&5 |
| 6256 |
< |
ac_status=$? |
| 6257 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6258 |
< |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
| 6259 |
< |
ac_cv_prog_gcc_2_95=yes |
| 6260 |
< |
else |
| 6261 |
< |
ac_cv_prog_gcc_2_95=no |
| 6262 |
< |
fi |
| 6263 |
< |
|
| 6264 |
< |
fi |
| 6265 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5 |
| 6266 |
< |
echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6 |
| 6267 |
< |
if test "$ac_cv_prog_gcc_2_95" = yes; then |
| 6268 |
< |
: |
| 6269 |
< |
|
| 6270 |
< |
|
| 6271 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5 |
| 6272 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6 |
| 6273 |
< |
if test "${ac_m_cpu_750+set}" = set; then |
| 6274 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6275 |
< |
else |
| 6276 |
< |
echo 'void f(){}' > conftest.c |
| 6277 |
< |
if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then |
| 6278 |
< |
ac_m_cpu_750=yes |
| 6279 |
< |
else |
| 6280 |
< |
ac_m_cpu_750=no |
| 6281 |
< |
fi |
| 6282 |
< |
rm -f conftest* |
| 6283 |
< |
|
| 6284 |
< |
fi |
| 6285 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 |
| 6286 |
< |
echo "${ECHO_T}$ac_m_cpu_750" >&6 |
| 6287 |
< |
if test "$ac_m_cpu_750" = yes; then |
| 6288 |
< |
: |
| 6289 |
< |
CPU_FLAGS=-mcpu=750 |
| 6290 |
< |
else |
| 6291 |
< |
: |
| 6292 |
< |
|
| 6293 |
< |
fi |
| 6294 |
< |
|
| 6295 |
< |
else |
| 6296 |
< |
: |
| 6297 |
< |
|
| 6298 |
< |
fi |
| 6299 |
< |
|
| 6300 |
< |
fi |
| 6301 |
< |
if test -z "$CPU_FLAGS"; then |
| 6302 |
< |
|
| 6303 |
< |
|
| 6304 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5 |
| 6305 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6 |
| 6306 |
< |
if test "${ac_m_cpu_powerpc+set}" = set; then |
| 6307 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6308 |
< |
else |
| 6309 |
< |
echo 'void f(){}' > conftest.c |
| 6310 |
< |
if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then |
| 6311 |
< |
ac_m_cpu_powerpc=yes |
| 6312 |
< |
else |
| 6313 |
< |
ac_m_cpu_powerpc=no |
| 6314 |
< |
fi |
| 6315 |
< |
rm -f conftest* |
| 6316 |
< |
|
| 6317 |
< |
fi |
| 6318 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 |
| 6319 |
< |
echo "${ECHO_T}$ac_m_cpu_powerpc" >&6 |
| 6320 |
< |
if test "$ac_m_cpu_powerpc" = yes; then |
| 6321 |
< |
: |
| 6322 |
< |
CPU_FLAGS=-mcpu=powerpc |
| 6323 |
< |
else |
| 6324 |
< |
: |
| 6325 |
< |
|
| 6326 |
< |
fi |
| 6327 |
< |
|
| 6328 |
< |
fi |
| 6329 |
< |
if test -z "$CPU_FLAGS"; then |
| 6330 |
< |
|
| 6331 |
< |
|
| 6332 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5 |
| 6333 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6 |
| 6334 |
< |
if test "${ac_m_powerpc+set}" = set; then |
| 6335 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6336 |
< |
else |
| 6337 |
< |
echo 'void f(){}' > conftest.c |
| 6338 |
< |
if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then |
| 6339 |
< |
ac_m_powerpc=yes |
| 6340 |
< |
else |
| 6341 |
< |
ac_m_powerpc=no |
| 6342 |
< |
fi |
| 6343 |
< |
rm -f conftest* |
| 6344 |
< |
|
| 6345 |
< |
fi |
| 6346 |
< |
echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 |
| 6347 |
< |
echo "${ECHO_T}$ac_m_powerpc" >&6 |
| 6348 |
< |
if test "$ac_m_powerpc" = yes; then |
| 6349 |
< |
: |
| 6350 |
< |
CPU_FLAGS=-mpowerpc |
| 6351 |
< |
else |
| 6352 |
< |
: |
| 6353 |
< |
|
| 6354 |
< |
fi |
| 6355 |
< |
|
| 6356 |
< |
fi |
| 6357 |
< |
esac |
| 6358 |
< |
fi |
| 6359 |
< |
|
| 6360 |
< |
if test -n "$CPU_FLAGS"; then |
| 6361 |
< |
CFLAGS="$CFLAGS $CPU_FLAGS" |
| 6362 |
< |
fi |
| 6363 |
< |
|
| 6364 |
< |
if test -z "$CFLAGS"; then |
| 6365 |
< |
echo "" |
| 6366 |
< |
echo "********************************************************" |
| 6367 |
< |
echo "* WARNING: Don't know the best CFLAGS for this system *" |
| 6368 |
< |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
| 6369 |
< |
echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" |
| 6370 |
< |
echo "********************************************************" |
| 6371 |
< |
echo "" |
| 6372 |
< |
CFLAGS="-O3" |
| 6373 |
< |
fi |
| 6374 |
< |
|
| 6375 |
< |
|
| 6376 |
< |
|
| 6377 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5 |
| 6378 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6 |
| 6379 |
< |
if test "${ac_guessed_cflags+set}" = set; then |
| 6380 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6381 |
< |
else |
| 6382 |
< |
echo 'void f(){}' > conftest.c |
| 6383 |
< |
if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then |
| 6384 |
< |
ac_guessed_cflags=yes |
| 6385 |
< |
else |
| 6386 |
< |
ac_guessed_cflags=no |
| 6387 |
< |
fi |
| 6388 |
< |
rm -f conftest* |
| 6389 |
< |
|
| 6390 |
< |
fi |
| 6391 |
< |
echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5 |
| 6392 |
< |
echo "${ECHO_T}$ac_guessed_cflags" >&6 |
| 6393 |
< |
if test "$ac_guessed_cflags" = yes; then |
| 6394 |
< |
: |
| 6395 |
< |
|
| 6396 |
< |
else |
| 6397 |
< |
: |
| 6398 |
< |
|
| 6399 |
< |
echo "" |
| 6400 |
< |
echo "********************************************************" |
| 6401 |
< |
echo "* WARNING: The guessed CFLAGS don't seem to work with *" |
| 6402 |
< |
echo "* your compiler. *" |
| 6403 |
< |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
| 6404 |
< |
echo "********************************************************" |
| 6405 |
< |
echo "" |
| 6406 |
< |
CFLAGS="" |
| 6407 |
< |
|
| 6408 |
< |
fi |
| 6409 |
< |
|
| 6410 |
< |
|
| 6411 |
< |
fi |
| 6412 |
< |
|
| 6413 |
< |
|
| 6414 |
< |
|
| 6415 |
< |
|
| 6416 |
< |
|
| 6417 |
< |
|
| 6418 |
< |
|
| 6419 |
< |
echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5 |
| 6420 |
< |
echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6 |
| 6421 |
< |
if test "${ac_cv_prog_really_gxx+set}" = set; then |
| 6422 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6423 |
< |
else |
| 6424 |
< |
|
| 6425 |
< |
cat > conftest.cpp <<EOF |
| 6426 |
< |
#ifdef __GNUC__ |
| 6427 |
< |
#ifndef __INTEL_COMPILER |
| 6428 |
< |
yes; |
| 6429 |
< |
#endif |
| 6430 |
< |
#endif |
| 6431 |
< |
EOF |
| 6432 |
< |
if { ac_try='${CXX-c++} -E conftest.cpp' |
| 6433 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6434 |
< |
(eval $ac_try) 2>&5 |
| 6435 |
< |
ac_status=$? |
| 6436 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6437 |
< |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
| 6438 |
< |
ac_cv_prog_really_gxx=yes |
| 6439 |
< |
else |
| 6440 |
< |
ac_cv_prog_really_gxx=no |
| 6441 |
< |
fi |
| 6442 |
< |
|
| 6443 |
< |
fi |
| 6444 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5 |
| 6445 |
< |
echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6 |
| 6446 |
< |
if test "$ac_cv_prog_really_gxx" = yes; then |
| 6447 |
< |
: |
| 6448 |
< |
|
| 6449 |
< |
else |
| 6450 |
< |
: |
| 6451 |
< |
|
| 6452 |
< |
fi |
| 6453 |
< |
|
| 6454 |
< |
|
| 6455 |
< |
# Try to determine "good" native compiler flags if none specified on command |
| 6456 |
< |
# line |
| 6457 |
< |
if test "$ac_test_CXXFLAGS" != "set"; then |
| 6458 |
< |
CXXFLAGS="" |
| 6459 |
< |
case "${host_cpu}-${host_os}" in |
| 6460 |
< |
|
| 6461 |
< |
*linux*) if test "$CXX" = icc -o "$CXX" = icpc; then |
| 6462 |
< |
CXXFLAGS="-O" |
| 6463 |
< |
fi;; |
| 6464 |
< |
sparc-solaris2*) if test "$CXX" = CC; then |
| 6465 |
< |
CXXFLAGS="-native -fast -xO5 -dalign" |
| 6466 |
< |
fi;; |
| 6467 |
< |
rs6000*-aix*) if test "$CXX" = xlC; then |
| 6468 |
< |
CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
| 6469 |
< |
fi;; |
| 6470 |
< |
powerpc*-aix*) |
| 6471 |
< |
if test "$CXX" = xlC; then |
| 6472 |
< |
CXXFLAGS="-O3 -qarch=ppc -qansialias -w" |
| 6473 |
< |
echo "*******************************************************" |
| 6474 |
< |
echo "* You have AIX on an unknown powerpc system. It is *" |
| 6475 |
< |
echo "* recommended that you use *" |
| 6476 |
< |
echo "* *" |
| 6477 |
< |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
| 6478 |
< |
echo "* ^^^ *" |
| 6479 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
| 6480 |
< |
echo "* PowerPC CPU you have. For more info, man cc. *" |
| 6481 |
< |
echo "*******************************************************" |
| 6482 |
< |
fi;; |
| 6483 |
< |
*darwin*) |
| 6484 |
< |
if test "$CXX" = xlc++; then |
| 6485 |
< |
CXXFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
| 6486 |
< |
fi;; |
| 6487 |
< |
esac |
| 6488 |
< |
|
| 6489 |
< |
# use default flags for gcc on all systems |
| 6490 |
< |
if test $ac_cv_prog_really_gxx = yes; then |
| 6491 |
< |
CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
| 6492 |
< |
fi |
| 6493 |
< |
|
| 6494 |
< |
# test for gcc-specific flags: |
| 6495 |
< |
if test $ac_cv_prog_really_gxx = yes; then |
| 6496 |
< |
# -malign-double for x86 systems |
| 6497 |
< |
|
| 6498 |
< |
|
| 6499 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5 |
| 6500 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6 |
| 6501 |
< |
if test "${ac_align_double+set}" = set; then |
| 6502 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6503 |
< |
else |
| 6504 |
< |
echo 'void f(){}' > conftest.cpp |
| 6505 |
< |
if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then |
| 6506 |
< |
ac_align_double=yes |
| 6507 |
< |
else |
| 6508 |
< |
ac_align_double=no |
| 6509 |
< |
fi |
| 6510 |
< |
rm -f conftest* |
| 6511 |
< |
|
| 6512 |
< |
fi |
| 6513 |
< |
echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
| 6514 |
< |
echo "${ECHO_T}$ac_align_double" >&6 |
| 6515 |
< |
if test "$ac_align_double" = yes; then |
| 6516 |
< |
: |
| 6517 |
< |
CXXFLAGS="$CXXFLAGS -malign-double" |
| 6518 |
< |
else |
| 6519 |
< |
: |
| 6520 |
< |
|
| 6521 |
< |
fi |
| 6522 |
< |
|
| 6523 |
< |
# -fstrict-aliasing for gcc-2.95+ |
| 6524 |
< |
|
| 6525 |
< |
|
| 6526 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5 |
| 6527 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6 |
| 6528 |
< |
if test "${ac_fstrict_aliasing+set}" = set; then |
| 6529 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6530 |
< |
else |
| 6531 |
< |
echo 'void f(){}' > conftest.cpp |
| 6532 |
< |
if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then |
| 6533 |
< |
ac_fstrict_aliasing=yes |
| 6534 |
< |
else |
| 6535 |
< |
ac_fstrict_aliasing=no |
| 6536 |
< |
fi |
| 6537 |
< |
rm -f conftest* |
| 6538 |
< |
|
| 6539 |
< |
fi |
| 6540 |
< |
echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
| 6541 |
< |
echo "${ECHO_T}$ac_fstrict_aliasing" >&6 |
| 6542 |
< |
if test "$ac_fstrict_aliasing" = yes; then |
| 6543 |
< |
: |
| 6544 |
< |
CXXFLAGS="$CXXFLAGS -fstrict-aliasing" |
| 6545 |
< |
else |
| 6546 |
< |
: |
| 6547 |
< |
|
| 6548 |
< |
fi |
| 6549 |
< |
|
| 6550 |
< |
fi |
| 6551 |
< |
|
| 6552 |
< |
CPU_FLAGS="" |
| 6553 |
< |
if test $ac_cv_prog_really_gxx = yes; then |
| 6554 |
< |
case "${host_cpu}" in |
| 6555 |
< |
i586*) |
| 6556 |
< |
|
| 6557 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5 |
| 6558 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6 |
| 6559 |
< |
if test "${ac_cpu_pentium+set}" = set; then |
| 6560 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6561 |
< |
else |
| 6562 |
< |
echo 'void f(){}' > conftest.cpp |
| 6563 |
< |
if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then |
| 6564 |
< |
ac_cpu_pentium=yes |
| 6565 |
< |
else |
| 6566 |
< |
ac_cpu_pentium=no |
| 6567 |
< |
fi |
| 6568 |
< |
rm -f conftest* |
| 6569 |
< |
|
| 6570 |
< |
fi |
| 6571 |
< |
echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 |
| 6572 |
< |
echo "${ECHO_T}$ac_cpu_pentium" >&6 |
| 6573 |
< |
if test "$ac_cpu_pentium" = yes; then |
| 6574 |
< |
: |
| 6575 |
< |
CPU_FLAGS=-mcpu=pentium |
| 6576 |
< |
else |
| 6577 |
< |
: |
| 6578 |
< |
|
| 6579 |
< |
|
| 6580 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5 |
| 6581 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6 |
| 6582 |
< |
if test "${ac_pentium+set}" = set; then |
| 6583 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6584 |
< |
else |
| 6585 |
< |
echo 'void f(){}' > conftest.cpp |
| 6586 |
< |
if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then |
| 6587 |
< |
ac_pentium=yes |
| 6588 |
< |
else |
| 6589 |
< |
ac_pentium=no |
| 6590 |
< |
fi |
| 6591 |
< |
rm -f conftest* |
| 6592 |
< |
|
| 6593 |
< |
fi |
| 6594 |
< |
echo "$as_me:$LINENO: result: $ac_pentium" >&5 |
| 6595 |
< |
echo "${ECHO_T}$ac_pentium" >&6 |
| 6596 |
< |
if test "$ac_pentium" = yes; then |
| 6597 |
< |
: |
| 6598 |
< |
CPU_FLAGS=-mpentium |
| 6599 |
< |
else |
| 6600 |
< |
: |
| 6601 |
< |
|
| 6602 |
< |
fi |
| 6603 |
< |
|
| 6604 |
< |
fi |
| 6605 |
< |
|
| 6606 |
< |
;; |
| 6607 |
< |
i686*) |
| 6608 |
< |
|
| 6609 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5 |
| 6610 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6 |
| 6611 |
< |
if test "${ac_cpu_pentiumpro+set}" = set; then |
| 6612 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6613 |
< |
else |
| 6614 |
< |
echo 'void f(){}' > conftest.cpp |
| 6615 |
< |
if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then |
| 6616 |
< |
ac_cpu_pentiumpro=yes |
| 6617 |
< |
else |
| 6618 |
< |
ac_cpu_pentiumpro=no |
| 6619 |
< |
fi |
| 6620 |
< |
rm -f conftest* |
| 6621 |
< |
|
| 6622 |
< |
fi |
| 6623 |
< |
echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 |
| 6624 |
< |
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6 |
| 6625 |
< |
if test "$ac_cpu_pentiumpro" = yes; then |
| 6626 |
< |
: |
| 6627 |
< |
CPU_FLAGS=-mcpu=pentiumpro |
| 6628 |
< |
else |
| 6629 |
< |
: |
| 6630 |
< |
|
| 6631 |
< |
|
| 6632 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5 |
| 6633 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6 |
| 6634 |
< |
if test "${ac_pentiumpro+set}" = set; then |
| 6635 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6636 |
< |
else |
| 6637 |
< |
echo 'void f(){}' > conftest.cpp |
| 6638 |
< |
if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then |
| 6639 |
< |
ac_pentiumpro=yes |
| 6640 |
< |
else |
| 6641 |
< |
ac_pentiumpro=no |
| 6642 |
< |
fi |
| 6643 |
< |
rm -f conftest* |
| 6644 |
< |
|
| 6645 |
< |
fi |
| 6646 |
< |
echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 |
| 6647 |
< |
echo "${ECHO_T}$ac_pentiumpro" >&6 |
| 6648 |
< |
if test "$ac_pentiumpro" = yes; then |
| 6649 |
< |
: |
| 6650 |
< |
CPU_FLAGS=-mpentiumpro |
| 6651 |
< |
else |
| 6652 |
< |
: |
| 6653 |
< |
|
| 6654 |
< |
fi |
| 6655 |
< |
|
| 6656 |
< |
fi |
| 6657 |
< |
|
| 6658 |
< |
;; |
| 6659 |
< |
powerpc*) |
| 6660 |
< |
cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` |
| 6661 |
< |
is60x=`echo $cputype | egrep "^600-9e?$"` |
| 6662 |
< |
if test -n "$is60x"; then |
| 6663 |
< |
|
| 6664 |
< |
|
| 6665 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5 |
| 6666 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6 |
| 6667 |
< |
if test "${ac_m_cpu_60x+set}" = set; then |
| 6668 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6669 |
< |
else |
| 6670 |
< |
echo 'void f(){}' > conftest.cpp |
| 6671 |
< |
if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then |
| 6672 |
< |
ac_m_cpu_60x=yes |
| 6673 |
< |
else |
| 6674 |
< |
ac_m_cpu_60x=no |
| 6675 |
< |
fi |
| 6676 |
< |
rm -f conftest* |
| 6677 |
< |
|
| 6678 |
< |
fi |
| 6679 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 |
| 6680 |
< |
echo "${ECHO_T}$ac_m_cpu_60x" >&6 |
| 6681 |
< |
if test "$ac_m_cpu_60x" = yes; then |
| 6682 |
< |
: |
| 6683 |
< |
CPU_FLAGS=-mcpu=$cputype |
| 6684 |
< |
else |
| 6685 |
< |
: |
| 6686 |
< |
|
| 6687 |
< |
fi |
| 6688 |
< |
|
| 6689 |
< |
elif test "$cputype" = 750; then |
| 6690 |
< |
|
| 6691 |
< |
|
| 6692 |
< |
echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5 |
| 6693 |
< |
echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6 |
| 6694 |
< |
if test "${ac_cv_prog_gxx_2_95+set}" = set; then |
| 6695 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6696 |
< |
else |
| 6697 |
< |
|
| 6698 |
< |
cat > conftest.cpp <<EOF |
| 6699 |
< |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
| 6700 |
< |
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
| 6701 |
< |
yes; |
| 6702 |
< |
# endif |
| 6703 |
< |
#endif |
| 6704 |
< |
EOF |
| 6705 |
< |
if { ac_try='${CXX-c++} -E conftest.cpp' |
| 6706 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6707 |
< |
(eval $ac_try) 2>&5 |
| 6708 |
< |
ac_status=$? |
| 6709 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6710 |
< |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
| 6711 |
< |
ac_cv_prog_gxx_2_95=yes |
| 6712 |
< |
else |
| 6713 |
< |
ac_cv_prog_gxx_2_95=no |
| 6714 |
< |
fi |
| 6715 |
< |
|
| 6716 |
< |
fi |
| 6717 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5 |
| 6718 |
< |
echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6 |
| 6719 |
< |
if test "$ac_cv_prog_gxx_2_95" = yes; then |
| 6720 |
< |
: |
| 6721 |
< |
|
| 6722 |
< |
|
| 6723 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5 |
| 6724 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6 |
| 6725 |
< |
if test "${ac_m_cpu_750+set}" = set; then |
| 6726 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6727 |
< |
else |
| 6728 |
< |
echo 'void f(){}' > conftest.cpp |
| 6729 |
< |
if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then |
| 6730 |
< |
ac_m_cpu_750=yes |
| 6731 |
< |
else |
| 6732 |
< |
ac_m_cpu_750=no |
| 6733 |
< |
fi |
| 6734 |
< |
rm -f conftest* |
| 6735 |
< |
|
| 6736 |
< |
fi |
| 6737 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 |
| 6738 |
< |
echo "${ECHO_T}$ac_m_cpu_750" >&6 |
| 6739 |
< |
if test "$ac_m_cpu_750" = yes; then |
| 6740 |
< |
: |
| 6741 |
< |
CPU_FLAGS=-mcpu=750 |
| 6742 |
< |
else |
| 6743 |
< |
: |
| 6744 |
< |
|
| 6745 |
< |
fi |
| 6746 |
< |
|
| 6747 |
< |
else |
| 6748 |
< |
: |
| 6749 |
< |
|
| 6750 |
< |
fi |
| 6751 |
< |
|
| 6752 |
< |
fi |
| 6753 |
< |
if test -z "$CPU_FLAGS"; then |
| 6754 |
< |
|
| 6755 |
< |
|
| 6756 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5 |
| 6757 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6 |
| 6758 |
< |
if test "${ac_m_cpu_powerpc+set}" = set; then |
| 6759 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6760 |
< |
else |
| 6761 |
< |
echo 'void f(){}' > conftest.cpp |
| 6762 |
< |
if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then |
| 6763 |
< |
ac_m_cpu_powerpc=yes |
| 6764 |
< |
else |
| 6765 |
< |
ac_m_cpu_powerpc=no |
| 6766 |
< |
fi |
| 6767 |
< |
rm -f conftest* |
| 6768 |
< |
|
| 6769 |
< |
fi |
| 6770 |
< |
echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 |
| 6771 |
< |
echo "${ECHO_T}$ac_m_cpu_powerpc" >&6 |
| 6772 |
< |
if test "$ac_m_cpu_powerpc" = yes; then |
| 6773 |
< |
: |
| 6774 |
< |
CPU_FLAGS=-mcpu=powerpc |
| 6775 |
< |
else |
| 6776 |
< |
: |
| 6777 |
< |
|
| 6778 |
< |
fi |
| 6779 |
< |
|
| 6780 |
< |
fi |
| 6781 |
< |
if test -z "$CPU_FLAGS"; then |
| 6782 |
< |
|
| 6783 |
< |
|
| 6784 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5 |
| 6785 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6 |
| 6786 |
< |
if test "${ac_m_powerpc+set}" = set; then |
| 6787 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6788 |
< |
else |
| 6789 |
< |
echo 'void f(){}' > conftest.cpp |
| 6790 |
< |
if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then |
| 6791 |
< |
ac_m_powerpc=yes |
| 6792 |
< |
else |
| 6793 |
< |
ac_m_powerpc=no |
| 6794 |
< |
fi |
| 6795 |
< |
rm -f conftest* |
| 6796 |
< |
|
| 6797 |
< |
fi |
| 6798 |
< |
echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 |
| 6799 |
< |
echo "${ECHO_T}$ac_m_powerpc" >&6 |
| 6800 |
< |
if test "$ac_m_powerpc" = yes; then |
| 6801 |
< |
: |
| 6802 |
< |
CPU_FLAGS=-mpowerpc |
| 6803 |
< |
else |
| 6804 |
< |
: |
| 6805 |
< |
|
| 6806 |
< |
fi |
| 6807 |
< |
|
| 6808 |
< |
fi |
| 6809 |
< |
esac |
| 6810 |
< |
fi |
| 6811 |
< |
|
| 6812 |
< |
if test -n "$CPU_FLAGS"; then |
| 6813 |
< |
CXXFLAGS="$CXXFLAGS $CPU_FLAGS" |
| 6814 |
< |
fi |
| 6815 |
< |
|
| 6816 |
< |
if test -z "$CXXFLAGS"; then |
| 6817 |
< |
echo "" |
| 6818 |
< |
echo "**********************************************************" |
| 6819 |
< |
echo "* WARNING: Don't know the best CXXFLAGS for this system *" |
| 6820 |
< |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
| 6821 |
< |
echo "* (otherwise, a default of CXXFLAGS=-O3 will be used) *" |
| 6822 |
< |
echo "**********************************************************" |
| 6823 |
< |
echo "" |
| 6824 |
< |
CXXFLAGS="-O3" |
| 6825 |
< |
fi |
| 6826 |
< |
|
| 6827 |
< |
|
| 6828 |
< |
|
| 6829 |
< |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5 |
| 6830 |
< |
echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6 |
| 6831 |
< |
if test "${ac_guessed_cxxflags+set}" = set; then |
| 6832 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6833 |
< |
else |
| 6834 |
< |
echo 'void f(){}' > conftest.cpp |
| 6835 |
< |
if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then |
| 6836 |
< |
ac_guessed_cxxflags=yes |
| 6837 |
< |
else |
| 6838 |
< |
ac_guessed_cxxflags=no |
| 6839 |
< |
fi |
| 6840 |
< |
rm -f conftest* |
| 6841 |
< |
|
| 6842 |
< |
fi |
| 6843 |
< |
echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5 |
| 6844 |
< |
echo "${ECHO_T}$ac_guessed_cxxflags" >&6 |
| 6845 |
< |
if test "$ac_guessed_cxxflags" = yes; then |
| 6846 |
< |
: |
| 6847 |
< |
|
| 6848 |
< |
else |
| 6849 |
< |
: |
| 6850 |
< |
|
| 6851 |
< |
echo "" |
| 6852 |
< |
echo "**********************************************************" |
| 6853 |
< |
echo "* WARNING: The guessed CXXFLAGS don't seem to work with *" |
| 6854 |
< |
echo "* your compiler. *" |
| 6855 |
< |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
| 6856 |
< |
echo "**********************************************************" |
| 6857 |
< |
echo "" |
| 6858 |
< |
CXXFLAGS="" |
| 6859 |
< |
|
| 6860 |
< |
fi |
| 6861 |
< |
|
| 6862 |
< |
|
| 6863 |
< |
fi |
| 6864 |
< |
|
| 6865 |
< |
|
| 6866 |
< |
|
| 6867 |
< |
|
| 6868 |
< |
|
| 6869 |
< |
# Try to determine "good" native compiler flags if none specified on command |
| 6870 |
< |
# line |
| 6871 |
< |
|
| 6872 |
< |
if test x"$F90FLAGS" = x ; then |
| 6873 |
< |
F90FLAGS="" |
| 6874 |
< |
case "${host_cpu}-${host_os}" in |
| 6875 |
< |
|
| 6876 |
< |
*linux*) if test "$F90" = ifc -o "$F90" = ifort; then |
| 6877 |
< |
F90FLAGS="-O" |
| 6878 |
< |
fi;; |
| 6879 |
< |
rs6000*-aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
| 6880 |
< |
F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
| 6881 |
< |
fi;; |
| 6882 |
< |
powerpc*-aix*) |
| 6883 |
< |
if test "$F90" = f90 -o "$F90" = xlf90; then |
| 6884 |
< |
F90FLAGS="-O3 -qarch=ppc -qansialias -w" |
| 6885 |
< |
echo "*******************************************************" |
| 6886 |
< |
echo "* You have AIX on an unknown powerpc system. It is *" |
| 6887 |
< |
echo "* recommended that you use *" |
| 6888 |
< |
echo "* *" |
| 6889 |
< |
echo "* F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
| 6890 |
< |
echo "* ^^^ *" |
| 6891 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
| 6892 |
< |
echo "* PowerPC CPU you have. For more info, man xlf. *" |
| 6893 |
< |
echo "*******************************************************" |
| 6894 |
< |
fi;; |
| 6895 |
< |
*darwin*) |
| 6896 |
< |
if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then |
| 6897 |
< |
F90FLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto" |
| 6898 |
< |
fi;; |
| 6899 |
< |
esac |
| 6900 |
< |
|
| 6901 |
< |
if test -n "$CPU_FLAGS"; then |
| 6902 |
< |
F90FLAGS="$F90FLAGS $CPU_FLAGS" |
| 6903 |
< |
fi |
| 6904 |
< |
|
| 6905 |
< |
if test -z "$F90FLAGS"; then |
| 6906 |
< |
echo "" |
| 6907 |
< |
echo "**********************************************************" |
| 6908 |
< |
echo "* WARNING: Don't know the best F90FLAGS for this system *" |
| 6909 |
< |
echo "* Use make F90FLAGS=..., or edit the top level Makefile *" |
| 6910 |
< |
echo "* (otherwise, a default of F90FLAGS=-O3 will be used) *" |
| 6911 |
< |
echo "**********************************************************" |
| 6912 |
< |
echo "" |
| 6913 |
< |
F90FLAGS="-O3" |
| 6914 |
< |
fi |
| 6915 |
< |
|
| 6916 |
< |
|
| 6917 |
< |
echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5 |
| 6918 |
< |
echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6 |
| 6919 |
< |
if test "${ac_guessed_f90flags+set}" = set; then |
| 6920 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6921 |
< |
else |
| 6922 |
< |
|
| 6923 |
< |
|
| 6924 |
< |
|
| 6925 |
< |
ac_ext=f90 |
| 6926 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
| 6927 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6928 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
| 6929 |
< |
|
| 6930 |
< |
echo 'program main' > conftest.$ac_ext |
| 6931 |
< |
echo 'end program main' >> conftest.$ac_ext |
| 6932 |
< |
ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5' |
| 6933 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6934 |
< |
(eval $ac_compile) 2>&5 |
| 6935 |
< |
ac_status=$? |
| 6936 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6937 |
< |
(exit $ac_status); }; then |
| 6938 |
< |
ac_guessed_f90flags=yes |
| 6939 |
< |
else |
| 6940 |
< |
ac_guessed_f90flags=no |
| 6941 |
< |
fi |
| 6942 |
< |
rm -f conftest* |
| 6943 |
< |
ac_ext=c |
| 6944 |
< |
ac_cpp='$CPP $CPPFLAGS' |
| 6945 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6946 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6947 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6948 |
< |
|
| 6949 |
< |
|
| 6950 |
< |
fi |
| 6951 |
< |
echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5 |
| 6952 |
< |
echo "${ECHO_T}$ac_guessed_f90flags" >&6 |
| 6953 |
< |
if test "$ac_guessed_f90flags" = yes; then |
| 6954 |
< |
: |
| 6955 |
< |
|
| 6956 |
< |
else |
| 6957 |
< |
: |
| 6958 |
< |
|
| 6959 |
< |
echo "" |
| 6960 |
< |
echo "**********************************************************" |
| 6961 |
< |
echo "* WARNING: The guessed F90FLAGS don't seem to work with *" |
| 6962 |
< |
echo "* your compiler. *" |
| 6963 |
< |
echo "* Use make F90FLAGS=..., or edit the top level Makefile *" |
| 6964 |
< |
echo "**********************************************************" |
| 6965 |
< |
echo "" |
| 6966 |
< |
F90FLAGS="" |
| 6967 |
< |
|
| 6968 |
< |
fi |
| 6969 |
< |
|
| 6970 |
< |
|
| 6971 |
< |
fi |
| 6972 |
< |
|
| 6973 |
< |
;; |
| 6974 |
< |
esac |
| 6975 |
< |
|
| 6976 |
< |
# Find a good install program. We prefer a C program (faster), |
| 6977 |
< |
# so one script is as good as another. But avoid the broken or |
| 6978 |
< |
# incompatible versions: |
| 6979 |
< |
# SysV /etc/install, /usr/sbin/install |
| 6980 |
< |
# SunOS /usr/etc/install |
| 6981 |
< |
# IRIX /sbin/install |
| 6982 |
< |
# AIX /bin/install |
| 6983 |
< |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
| 6984 |
< |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6985 |
< |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6986 |
< |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 6987 |
< |
# OS/2's system install, which has a completely different semantic |
| 6988 |
< |
# ./install, which can be erroneously created by make from ./install.sh. |
| 6989 |
< |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 6990 |
< |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 6991 |
< |
if test -z "$INSTALL"; then |
| 6992 |
< |
if test "${ac_cv_path_install+set}" = set; then |
| 6993 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6994 |
< |
else |
| 6995 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6996 |
< |
for as_dir in $PATH |
| 6997 |
< |
do |
| 6998 |
< |
IFS=$as_save_IFS |
| 6999 |
< |
test -z "$as_dir" && as_dir=. |
| 7000 |
< |
# Account for people who put trailing slashes in PATH elements. |
| 7001 |
< |
case $as_dir/ in |
| 7002 |
< |
./ | .// | /cC/* | \ |
| 7003 |
< |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7004 |
< |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 7005 |
< |
/usr/ucb/* ) ;; |
| 7006 |
< |
*) |
| 7007 |
< |
# OSF1 and SCO ODT 3.0 have their own names for install. |
| 7008 |
< |
# Don't use installbsd from OSF since it installs stuff as root |
| 7009 |
< |
# by default. |
| 7010 |
< |
for ac_prog in ginstall scoinst install; do |
| 7011 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7012 |
< |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 7013 |
< |
if test $ac_prog = install && |
| 7014 |
< |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7015 |
< |
# AIX install. It has an incompatible calling convention. |
| 7016 |
< |
: |
| 7017 |
< |
elif test $ac_prog = install && |
| 7018 |
< |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7019 |
< |
# program-specific install script used by HP pwplus--don't use. |
| 7020 |
< |
: |
| 7021 |
< |
else |
| 7022 |
< |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7023 |
< |
break 3 |
| 7024 |
< |
fi |
| 7025 |
< |
fi |
| 7026 |
< |
done |
| 7027 |
< |
done |
| 7028 |
< |
;; |
| 7029 |
< |
esac |
| 7030 |
< |
done |
| 7031 |
< |
|
| 7032 |
< |
|
| 7033 |
< |
fi |
| 7034 |
< |
if test "${ac_cv_path_install+set}" = set; then |
| 7035 |
< |
INSTALL=$ac_cv_path_install |
| 7036 |
< |
else |
| 7037 |
< |
# As a last resort, use the slow shell script. We don't cache a |
| 7038 |
< |
# path for INSTALL within a source directory, because that will |
| 7039 |
< |
# break other packages using the cache if that directory is |
| 7040 |
< |
# removed, or if the path is relative. |
| 7041 |
< |
INSTALL=$ac_install_sh |
| 7042 |
< |
fi |
| 7043 |
< |
fi |
| 7044 |
< |
echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7045 |
< |
echo "${ECHO_T}$INSTALL" >&6 |
| 7046 |
< |
|
| 7047 |
< |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7048 |
< |
# It thinks the first close brace ends the variable substitution. |
| 7049 |
< |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7050 |
< |
|
| 7051 |
< |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7052 |
< |
|
| 7053 |
< |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7054 |
< |
|
| 7055 |
< |
echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 7056 |
< |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 7057 |
< |
LN_S=$as_ln_s |
| 7058 |
< |
if test "$LN_S" = "ln -s"; then |
| 7059 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
| 7060 |
< |
echo "${ECHO_T}yes" >&6 |
| 7061 |
< |
else |
| 7062 |
< |
echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 7063 |
< |
echo "${ECHO_T}no, using $LN_S" >&6 |
| 7064 |
< |
fi |
| 7065 |
< |
|
| 7066 |
< |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 7067 |
< |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 7068 |
< |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 7069 |
< |
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 7070 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7071 |
< |
else |
| 7072 |
< |
cat >conftest.make <<\_ACEOF |
| 7073 |
< |
all: |
| 7074 |
< |
@echo 'ac_maketemp="$(MAKE)"' |
| 7075 |
< |
_ACEOF |
| 7076 |
< |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 7077 |
< |
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 7078 |
< |
if test -n "$ac_maketemp"; then |
| 7079 |
< |
eval ac_cv_prog_make_${ac_make}_set=yes |
| 7080 |
< |
else |
| 7081 |
< |
eval ac_cv_prog_make_${ac_make}_set=no |
| 7082 |
< |
fi |
| 7083 |
< |
rm -f conftest.make |
| 7084 |
< |
fi |
| 7085 |
< |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 7086 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
| 7087 |
< |
echo "${ECHO_T}yes" >&6 |
| 7088 |
< |
SET_MAKE= |
| 7089 |
< |
else |
| 7090 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
| 7091 |
< |
echo "${ECHO_T}no" >&6 |
| 7092 |
< |
SET_MAKE="MAKE=${MAKE-make}" |
| 7093 |
< |
fi |
| 7094 |
< |
|
| 7095 |
< |
if test -n "$ac_tool_prefix"; then |
| 7096 |
< |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7097 |
< |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 7098 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7099 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7100 |
< |
if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 7101 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7102 |
< |
else |
| 7103 |
< |
if test -n "$RANLIB"; then |
| 7104 |
< |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7105 |
< |
else |
| 7106 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7107 |
< |
for as_dir in $PATH |
| 7108 |
< |
do |
| 7109 |
< |
IFS=$as_save_IFS |
| 7110 |
< |
test -z "$as_dir" && as_dir=. |
| 7111 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7112 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7113 |
< |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 7114 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7115 |
< |
break 2 |
| 7116 |
< |
fi |
| 7117 |
< |
done |
| 7118 |
< |
done |
| 7119 |
< |
|
| 7120 |
< |
fi |
| 7121 |
< |
fi |
| 7122 |
< |
RANLIB=$ac_cv_prog_RANLIB |
| 7123 |
< |
if test -n "$RANLIB"; then |
| 7124 |
< |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 7125 |
< |
echo "${ECHO_T}$RANLIB" >&6 |
| 7126 |
< |
else |
| 7127 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
| 7128 |
< |
echo "${ECHO_T}no" >&6 |
| 7129 |
< |
fi |
| 7130 |
< |
|
| 7131 |
< |
fi |
| 7132 |
< |
if test -z "$ac_cv_prog_RANLIB"; then |
| 7133 |
< |
ac_ct_RANLIB=$RANLIB |
| 7134 |
< |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 7135 |
< |
set dummy ranlib; ac_word=$2 |
| 7136 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7137 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7138 |
< |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 7139 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7140 |
< |
else |
| 7141 |
< |
if test -n "$ac_ct_RANLIB"; then |
| 7142 |
< |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7143 |
< |
else |
| 7144 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7145 |
< |
for as_dir in $PATH |
| 7146 |
< |
do |
| 7147 |
< |
IFS=$as_save_IFS |
| 7148 |
< |
test -z "$as_dir" && as_dir=. |
| 7149 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7150 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7151 |
< |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 7152 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7153 |
< |
break 2 |
| 7154 |
< |
fi |
| 7155 |
< |
done |
| 7156 |
< |
done |
| 7157 |
< |
|
| 7158 |
< |
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 7159 |
< |
fi |
| 7160 |
< |
fi |
| 7161 |
< |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7162 |
< |
if test -n "$ac_ct_RANLIB"; then |
| 7163 |
< |
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7164 |
< |
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 7165 |
< |
else |
| 7166 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
| 7167 |
< |
echo "${ECHO_T}no" >&6 |
| 7168 |
< |
fi |
| 7169 |
< |
|
| 7170 |
< |
RANLIB=$ac_ct_RANLIB |
| 7171 |
< |
else |
| 7172 |
< |
RANLIB="$ac_cv_prog_RANLIB" |
| 7173 |
< |
fi |
| 7174 |
< |
|
| 7175 |
< |
for ac_prog in 'bison -y' byacc |
| 7176 |
< |
do |
| 7177 |
< |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7178 |
< |
set dummy $ac_prog; ac_word=$2 |
| 7179 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7180 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7181 |
< |
if test "${ac_cv_prog_YACC+set}" = set; then |
| 7182 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7183 |
< |
else |
| 7184 |
< |
if test -n "$YACC"; then |
| 7185 |
< |
ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 7186 |
< |
else |
| 7187 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7188 |
< |
for as_dir in $PATH |
| 7189 |
< |
do |
| 7190 |
< |
IFS=$as_save_IFS |
| 7191 |
< |
test -z "$as_dir" && as_dir=. |
| 7192 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7193 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7194 |
< |
ac_cv_prog_YACC="$ac_prog" |
| 7195 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7196 |
< |
break 2 |
| 7197 |
< |
fi |
| 7198 |
< |
done |
| 7199 |
< |
done |
| 7200 |
< |
|
| 7201 |
< |
fi |
| 7202 |
< |
fi |
| 7203 |
< |
YACC=$ac_cv_prog_YACC |
| 7204 |
< |
if test -n "$YACC"; then |
| 7205 |
< |
echo "$as_me:$LINENO: result: $YACC" >&5 |
| 7206 |
< |
echo "${ECHO_T}$YACC" >&6 |
| 7207 |
< |
else |
| 7208 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
| 7209 |
< |
echo "${ECHO_T}no" >&6 |
| 7210 |
< |
fi |
| 7211 |
< |
|
| 7212 |
< |
test -n "$YACC" && break |
| 7213 |
< |
done |
| 7214 |
< |
test -n "$YACC" || YACC="yacc" |
| 7215 |
< |
|
| 7216 |
< |
for ac_prog in flex lex |
| 7217 |
< |
do |
| 7218 |
< |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7219 |
< |
set dummy $ac_prog; ac_word=$2 |
| 7220 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7221 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7222 |
< |
if test "${ac_cv_prog_LEX+set}" = set; then |
| 7223 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7224 |
< |
else |
| 7225 |
< |
if test -n "$LEX"; then |
| 7226 |
< |
ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 7227 |
< |
else |
| 7228 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7229 |
< |
for as_dir in $PATH |
| 7230 |
< |
do |
| 7231 |
< |
IFS=$as_save_IFS |
| 7232 |
< |
test -z "$as_dir" && as_dir=. |
| 7233 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7234 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7235 |
< |
ac_cv_prog_LEX="$ac_prog" |
| 7236 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7237 |
< |
break 2 |
| 7238 |
< |
fi |
| 7239 |
< |
done |
| 7240 |
< |
done |
| 7241 |
< |
|
| 7242 |
< |
fi |
| 7243 |
< |
fi |
| 7244 |
< |
LEX=$ac_cv_prog_LEX |
| 7245 |
< |
if test -n "$LEX"; then |
| 7246 |
< |
echo "$as_me:$LINENO: result: $LEX" >&5 |
| 7247 |
< |
echo "${ECHO_T}$LEX" >&6 |
| 7248 |
< |
else |
| 7249 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
| 7250 |
< |
echo "${ECHO_T}no" >&6 |
| 7251 |
< |
fi |
| 7252 |
< |
|
| 7253 |
< |
test -n "$LEX" && break |
| 7254 |
< |
done |
| 7255 |
< |
test -n "$LEX" || LEX=":" |
| 7256 |
< |
|
| 7257 |
< |
if test -z "$LEXLIB" |
| 7258 |
< |
then |
| 7259 |
< |
echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 7260 |
< |
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 7261 |
< |
if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 7262 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7263 |
< |
else |
| 7264 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 7265 |
< |
LIBS="-lfl $LIBS" |
| 7266 |
< |
cat >conftest.$ac_ext <<_ACEOF |
| 7267 |
< |
/* confdefs.h. */ |
| 7268 |
< |
_ACEOF |
| 7269 |
< |
cat confdefs.h >>conftest.$ac_ext |
| 7270 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
| 7271 |
< |
/* end confdefs.h. */ |
| 7272 |
< |
|
| 7273 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 7274 |
< |
#ifdef __cplusplus |
| 7275 |
< |
extern "C" |
| 7276 |
< |
#endif |
| 7277 |
< |
/* We use char because int might match the return type of a gcc2 |
| 7278 |
< |
builtin and then its argument prototype would still apply. */ |
| 7279 |
< |
char yywrap (); |
| 7280 |
< |
int |
| 7281 |
< |
main () |
| 7282 |
< |
{ |
| 7283 |
< |
yywrap (); |
| 7284 |
< |
; |
| 7285 |
< |
return 0; |
| 7286 |
< |
} |
| 7287 |
< |
_ACEOF |
| 7288 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7289 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7290 |
< |
(eval $ac_link) 2>conftest.er1 |
| 7291 |
< |
ac_status=$? |
| 7292 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7293 |
< |
rm -f conftest.er1 |
| 7294 |
< |
cat conftest.err >&5 |
| 7295 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7296 |
< |
(exit $ac_status); } && |
| 7297 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7298 |
< |
|| test ! -s conftest.err' |
| 7299 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7300 |
< |
(eval $ac_try) 2>&5 |
| 7301 |
< |
ac_status=$? |
| 7302 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7303 |
< |
(exit $ac_status); }; } && |
| 7304 |
< |
{ ac_try='test -s conftest$ac_exeext' |
| 7305 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7306 |
< |
(eval $ac_try) 2>&5 |
| 7307 |
< |
ac_status=$? |
| 7308 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7309 |
< |
(exit $ac_status); }; }; then |
| 7310 |
< |
ac_cv_lib_fl_yywrap=yes |
| 7311 |
< |
else |
| 7312 |
< |
echo "$as_me: failed program was:" >&5 |
| 7313 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7314 |
< |
|
| 7315 |
< |
ac_cv_lib_fl_yywrap=no |
| 7316 |
< |
fi |
| 7317 |
< |
rm -f conftest.err conftest.$ac_objext \ |
| 7318 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 7319 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 7320 |
< |
fi |
| 7321 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 7322 |
< |
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 7323 |
< |
if test $ac_cv_lib_fl_yywrap = yes; then |
| 7324 |
< |
LEXLIB="-lfl" |
| 7325 |
< |
else |
| 7326 |
< |
echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 7327 |
< |
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 7328 |
< |
if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 7329 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7330 |
< |
else |
| 7331 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 7332 |
< |
LIBS="-ll $LIBS" |
| 7333 |
< |
cat >conftest.$ac_ext <<_ACEOF |
| 7334 |
< |
/* confdefs.h. */ |
| 7335 |
< |
_ACEOF |
| 7336 |
< |
cat confdefs.h >>conftest.$ac_ext |
| 7337 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
| 7338 |
< |
/* end confdefs.h. */ |
| 7339 |
< |
|
| 7340 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 7341 |
< |
#ifdef __cplusplus |
| 7342 |
< |
extern "C" |
| 7343 |
< |
#endif |
| 7344 |
< |
/* We use char because int might match the return type of a gcc2 |
| 7345 |
< |
builtin and then its argument prototype would still apply. */ |
| 7346 |
< |
char yywrap (); |
| 7347 |
< |
int |
| 7348 |
< |
main () |
| 7349 |
< |
{ |
| 7350 |
< |
yywrap (); |
| 7351 |
< |
; |
| 7352 |
< |
return 0; |
| 7353 |
< |
} |
| 7354 |
< |
_ACEOF |
| 7355 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7356 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7357 |
< |
(eval $ac_link) 2>conftest.er1 |
| 7358 |
< |
ac_status=$? |
| 7359 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7360 |
< |
rm -f conftest.er1 |
| 7361 |
< |
cat conftest.err >&5 |
| 7362 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7363 |
< |
(exit $ac_status); } && |
| 7364 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7365 |
< |
|| test ! -s conftest.err' |
| 7366 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7367 |
< |
(eval $ac_try) 2>&5 |
| 7368 |
< |
ac_status=$? |
| 7369 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7370 |
< |
(exit $ac_status); }; } && |
| 7371 |
< |
{ ac_try='test -s conftest$ac_exeext' |
| 7372 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7373 |
< |
(eval $ac_try) 2>&5 |
| 7374 |
< |
ac_status=$? |
| 7375 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7376 |
< |
(exit $ac_status); }; }; then |
| 7377 |
< |
ac_cv_lib_l_yywrap=yes |
| 7378 |
< |
else |
| 7379 |
< |
echo "$as_me: failed program was:" >&5 |
| 7380 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7381 |
< |
|
| 7382 |
< |
ac_cv_lib_l_yywrap=no |
| 7383 |
< |
fi |
| 7384 |
< |
rm -f conftest.err conftest.$ac_objext \ |
| 7385 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 7386 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 7387 |
< |
fi |
| 7388 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 7389 |
< |
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 7390 |
< |
if test $ac_cv_lib_l_yywrap = yes; then |
| 7391 |
< |
LEXLIB="-ll" |
| 7392 |
< |
fi |
| 7393 |
< |
|
| 7394 |
< |
fi |
| 7395 |
< |
|
| 7396 |
< |
fi |
| 7397 |
< |
|
| 7398 |
< |
if test "x$LEX" != "x:"; then |
| 7399 |
< |
echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 7400 |
< |
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 7401 |
< |
if test "${ac_cv_prog_lex_root+set}" = set; then |
| 7402 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7403 |
< |
else |
| 7404 |
< |
# The minimal lex program is just a single line: %%. But some broken lexes |
| 7405 |
< |
# (Solaris, I think it was) want two %% lines, so accommodate them. |
| 7406 |
< |
cat >conftest.l <<_ACEOF |
| 7407 |
< |
%% |
| 7408 |
< |
%% |
| 7409 |
< |
_ACEOF |
| 7410 |
< |
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 7411 |
< |
(eval $LEX conftest.l) 2>&5 |
| 7412 |
< |
ac_status=$? |
| 7413 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7414 |
< |
(exit $ac_status); } |
| 7415 |
< |
if test -f lex.yy.c; then |
| 7416 |
< |
ac_cv_prog_lex_root=lex.yy |
| 7417 |
< |
elif test -f lexyy.c; then |
| 7418 |
< |
ac_cv_prog_lex_root=lexyy |
| 7419 |
< |
else |
| 7420 |
< |
{ { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 7421 |
< |
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 7422 |
< |
{ (exit 1); exit 1; }; } |
| 7423 |
< |
fi |
| 7424 |
< |
fi |
| 7425 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 7426 |
< |
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
| 7427 |
< |
rm -f conftest.l |
| 7428 |
< |
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 7429 |
< |
|
| 7430 |
< |
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 7431 |
< |
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 7432 |
< |
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 7433 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7434 |
< |
else |
| 7435 |
< |
# POSIX says lex can declare yytext either as a pointer or an array; the |
| 7436 |
< |
# default is implementation-dependent. Figure out which it is, since |
| 7437 |
< |
# not all implementations provide the %pointer and %array declarations. |
| 7438 |
< |
ac_cv_prog_lex_yytext_pointer=no |
| 7439 |
< |
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 7440 |
< |
ac_save_LIBS=$LIBS |
| 7441 |
< |
LIBS="$LIBS $LEXLIB" |
| 7442 |
< |
cat >conftest.$ac_ext <<_ACEOF |
| 7443 |
< |
`cat $LEX_OUTPUT_ROOT.c` |
| 7444 |
< |
_ACEOF |
| 7445 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7446 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7447 |
< |
(eval $ac_link) 2>conftest.er1 |
| 7448 |
< |
ac_status=$? |
| 7449 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7450 |
< |
rm -f conftest.er1 |
| 7451 |
< |
cat conftest.err >&5 |
| 7452 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7453 |
< |
(exit $ac_status); } && |
| 7454 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7455 |
< |
|| test ! -s conftest.err' |
| 7456 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7457 |
< |
(eval $ac_try) 2>&5 |
| 7458 |
< |
ac_status=$? |
| 7459 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7460 |
< |
(exit $ac_status); }; } && |
| 7461 |
< |
{ ac_try='test -s conftest$ac_exeext' |
| 7462 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7463 |
< |
(eval $ac_try) 2>&5 |
| 7464 |
< |
ac_status=$? |
| 7465 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7466 |
< |
(exit $ac_status); }; }; then |
| 7467 |
< |
ac_cv_prog_lex_yytext_pointer=yes |
| 7468 |
< |
else |
| 7469 |
< |
echo "$as_me: failed program was:" >&5 |
| 7470 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7471 |
< |
|
| 7472 |
< |
fi |
| 7473 |
< |
rm -f conftest.err conftest.$ac_objext \ |
| 7474 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 7475 |
< |
LIBS=$ac_save_LIBS |
| 7476 |
< |
rm -f "${LEX_OUTPUT_ROOT}.c" |
| 7477 |
< |
|
| 7478 |
< |
fi |
| 7479 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 7480 |
< |
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 7481 |
< |
if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 7482 |
< |
|
| 7483 |
< |
cat >>confdefs.h <<\_ACEOF |
| 7484 |
< |
#define YYTEXT_POINTER 1 |
| 7485 |
< |
_ACEOF |
| 7486 |
< |
|
| 7487 |
< |
fi |
| 7488 |
< |
|
| 7489 |
< |
fi |
| 7490 |
< |
# Extract the first word of "ar", so it can be a program name with args. |
| 7491 |
< |
set dummy ar; ac_word=$2 |
| 7492 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7493 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7494 |
< |
if test "${ac_cv_prog_AR+set}" = set; then |
| 7495 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7496 |
< |
else |
| 7497 |
< |
if test -n "$AR"; then |
| 7498 |
< |
ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7499 |
< |
else |
| 7500 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7501 |
< |
for as_dir in $PATH |
| 7502 |
< |
do |
| 7503 |
< |
IFS=$as_save_IFS |
| 7504 |
< |
test -z "$as_dir" && as_dir=. |
| 7505 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7506 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7507 |
< |
ac_cv_prog_AR="ar" |
| 7508 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7509 |
< |
break 2 |
| 7510 |
< |
fi |
| 7511 |
< |
done |
| 7512 |
< |
done |
| 7513 |
< |
|
| 7514 |
< |
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE" |
| 7515 |
< |
fi |
| 7516 |
< |
fi |
| 7517 |
< |
AR=$ac_cv_prog_AR |
| 7518 |
< |
if test -n "$AR"; then |
| 7519 |
< |
echo "$as_me:$LINENO: result: $AR" >&5 |
| 7520 |
< |
echo "${ECHO_T}$AR" >&6 |
| 7521 |
< |
else |
| 7522 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
| 7523 |
< |
echo "${ECHO_T}no" >&6 |
| 7524 |
< |
fi |
| 7525 |
< |
|
| 7526 |
< |
if test "$AR" = "NONE"; then |
| 7527 |
< |
{ { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5 |
| 7528 |
< |
echo "$as_me: error: --> Can't find \`ar'!" >&2;} |
| 7529 |
< |
{ (exit 1); exit 1; }; } |
| 7530 |
< |
cat >confcache <<\_ACEOF |
| 7531 |
< |
# This file is a shell script that caches the results of configure |
| 7532 |
< |
# tests run on this system so they can be shared between configure |
| 7533 |
< |
# scripts and configure runs, see configure's option --config-cache. |
| 7534 |
< |
# It is not useful on other systems. If it contains results you don't |
| 7535 |
< |
# want to keep, you may remove or edit it. |
| 7536 |
< |
# |
| 7537 |
< |
# config.status only pays attention to the cache file if you give it |
| 7538 |
< |
# the --recheck option to rerun configure. |
| 7539 |
< |
# |
| 7540 |
< |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 7541 |
< |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 7542 |
< |
# following values. |
| 7543 |
< |
|
| 7544 |
< |
_ACEOF |
| 7545 |
< |
|
| 7546 |
< |
# The following way of writing the cache mishandles newlines in values, |
| 7547 |
< |
# but we know of no workaround that is simple, portable, and efficient. |
| 7548 |
< |
# So, don't put newlines in cache variables' values. |
| 7549 |
< |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 7550 |
< |
# and sets the high bit in the cache file unless we assign to the vars. |
| 7551 |
< |
{ |
| 7552 |
< |
(set) 2>&1 | |
| 7553 |
< |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 7554 |
< |
*ac_space=\ *) |
| 7555 |
< |
# `set' does not quote correctly, so add quotes (double-quote |
| 7556 |
< |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
| 7557 |
< |
sed -n \ |
| 7558 |
< |
"s/'/'\\\\''/g; |
| 7559 |
< |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 7560 |
< |
;; |
| 7561 |
< |
*) |
| 7562 |
< |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| 7563 |
< |
sed -n \ |
| 7564 |
< |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 7565 |
< |
;; |
| 7566 |
< |
esac; |
| 7567 |
< |
} | |
| 7568 |
< |
sed ' |
| 7569 |
< |
t clear |
| 7570 |
< |
: clear |
| 7571 |
< |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 7572 |
< |
t end |
| 7573 |
< |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 7574 |
< |
: end' >>confcache |
| 7575 |
< |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 7576 |
< |
if test -w $cache_file; then |
| 7577 |
< |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 7578 |
< |
cat confcache >$cache_file |
| 7579 |
< |
else |
| 7580 |
< |
echo "not updating unwritable cache $cache_file" |
| 7581 |
< |
fi |
| 7582 |
< |
fi |
| 7583 |
< |
rm -f confcache |
| 7584 |
< |
exit 1 |
| 7585 |
< |
fi |
| 7586 |
< |
|
| 7587 |
< |
|
| 7588 |
< |
|
| 7589 |
< |
# Check whether --with-mpi or --without-mpi was given. |
| 7590 |
< |
if test "${with_mpi+set}" = set; then |
| 7591 |
< |
withval="$with_mpi" |
| 7592 |
< |
with_mpi=$withval |
| 7593 |
< |
else |
| 7594 |
< |
with_mpi="no" |
| 7595 |
< |
fi; |
| 7596 |
< |
|
| 7597 |
< |
case "x$with_mpi" in |
| 7598 |
< |
xyes | "x") USE_MPI=yes;; |
| 7599 |
< |
xno) USE_MPI=no ;; |
| 7600 |
< |
*) MPI="$with_mpi"; USE_MPI=yes ;; |
| 7601 |
< |
esac |
| 7602 |
< |
if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then |
| 7603 |
< |
MPI="/usr/local" |
| 7604 |
< |
fi |
| 7605 |
< |
if test "$USE_MPI" = "yes"; then |
| 7606 |
< |
|
| 7607 |
< |
|
| 7608 |
< |
# Set variables... |
| 7609 |
< |
MPI_LIB_DIR="$MPI/lib" |
| 7610 |
< |
MPI_INC_DIR="$MPI/include" |
| 7611 |
< |
|
| 7612 |
< |
|
| 7613 |
< |
|
| 7614 |
< |
echo "$as_me:$LINENO: checking for mpi.h" >&5 |
| 7615 |
< |
echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6 |
| 7616 |
< |
have_mpi_h=0 |
| 7617 |
< |
echo '#include <mpi.h>' > conftest.cc |
| 7618 |
< |
if test -z "`${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1`"; then |
| 7619 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
| 7620 |
< |
echo "${ECHO_T}yes" >&6 |
| 7621 |
< |
have_mpi_h=1 |
| 7622 |
< |
else |
| 7623 |
< |
echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
| 7624 |
< |
echo "${ECHO_T}no! Check MPI include paths" >&6 |
| 7625 |
< |
USE_MPI="no" |
| 7626 |
< |
fi |
| 7627 |
< |
rm -f conftest* |
| 7628 |
< |
if test "$have_mpi_h" = 1; then |
| 7629 |
< |
|
| 7630 |
< |
cat >>confdefs.h <<\_ACEOF |
| 7631 |
< |
#define HAVE_MPI_H 1 |
| 7632 |
< |
_ACEOF |
| 7633 |
< |
|
| 7634 |
< |
fi |
| 7635 |
< |
|
| 7636 |
< |
echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5 |
| 7637 |
< |
echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6 |
| 7638 |
< |
have_mpif_h=0 |
| 7639 |
< |
rm -f conftest* |
| 7640 |
< |
cat >conftest.f90 <<EOF |
| 7641 |
< |
program main |
| 7642 |
< |
include 'mpif.h' |
| 7643 |
< |
end |
| 7644 |
< |
EOF |
| 7645 |
< |
if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then |
| 7646 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
| 7647 |
< |
echo "${ECHO_T}yes" >&6 |
| 7648 |
< |
MPI_F90_INC="$MPI_INC_DIR" |
| 7649 |
< |
have_mpif_h=1 |
| 7650 |
< |
else |
| 7651 |
< |
if test -s conftest.out ; then |
| 7652 |
< |
cat conftest.out >> config.log |
| 7653 |
< |
fi |
| 7654 |
< |
echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
| 7655 |
< |
echo "${ECHO_T}no! Check MPI include paths" >&6 |
| 7656 |
< |
USE_MPI="no" |
| 7657 |
< |
fi |
| 7658 |
< |
rm -f conftest* |
| 7659 |
< |
|
| 7660 |
< |
if test "$have_mpif_h" = 1; then |
| 7661 |
< |
|
| 7662 |
< |
cat >>confdefs.h <<\_ACEOF |
| 7663 |
< |
#define HAVE_MPIF_H 1 |
| 7664 |
< |
_ACEOF |
| 7665 |
< |
|
| 7666 |
< |
fi |
| 7667 |
< |
|
| 7668 |
< |
ac_ext=c |
| 7669 |
< |
ac_cpp='$CPP $CPPFLAGS' |
| 7670 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7671 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7672 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7673 |
< |
|
| 7674 |
< |
ac_save_LDFLAGS=$LDFLAGS |
| 7675 |
< |
LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} " |
| 7676 |
< |
|
| 7677 |
< |
if test x = x"$MPI_LIB"; then |
| 7678 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
| 7679 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 |
| 7680 |
< |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
| 7681 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7682 |
< |
else |
| 7683 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 7684 |
< |
LIBS="-lmpich $LIBS" |
| 7685 |
< |
cat >conftest.$ac_ext <<_ACEOF |
| 7686 |
< |
/* confdefs.h. */ |
| 7687 |
< |
_ACEOF |
| 7688 |
< |
cat confdefs.h >>conftest.$ac_ext |
| 7689 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
| 7690 |
< |
/* end confdefs.h. */ |
| 7691 |
< |
|
| 7692 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 7693 |
< |
#ifdef __cplusplus |
| 7694 |
< |
extern "C" |
| 7695 |
< |
#endif |
| 7696 |
< |
/* We use char because int might match the return type of a gcc2 |
| 7697 |
< |
builtin and then its argument prototype would still apply. */ |
| 7698 |
< |
char MPI_Init (); |
| 7699 |
< |
int |
| 7700 |
< |
main () |
| 7701 |
< |
{ |
| 7702 |
< |
MPI_Init (); |
| 7703 |
< |
; |
| 7704 |
< |
return 0; |
| 7705 |
< |
} |
| 7706 |
< |
_ACEOF |
| 7707 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7708 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7709 |
< |
(eval $ac_link) 2>conftest.er1 |
| 7710 |
< |
ac_status=$? |
| 7711 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7712 |
< |
rm -f conftest.er1 |
| 7713 |
< |
cat conftest.err >&5 |
| 7714 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7715 |
< |
(exit $ac_status); } && |
| 7716 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7717 |
< |
|| test ! -s conftest.err' |
| 7718 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7719 |
< |
(eval $ac_try) 2>&5 |
| 7720 |
< |
ac_status=$? |
| 7721 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7722 |
< |
(exit $ac_status); }; } && |
| 7723 |
< |
{ ac_try='test -s conftest$ac_exeext' |
| 7724 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7725 |
< |
(eval $ac_try) 2>&5 |
| 7726 |
< |
ac_status=$? |
| 7727 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7728 |
< |
(exit $ac_status); }; }; then |
| 7729 |
< |
ac_cv_lib_mpich_MPI_Init=yes |
| 7730 |
< |
else |
| 7731 |
< |
echo "$as_me: failed program was:" >&5 |
| 7732 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7733 |
< |
|
| 7734 |
< |
ac_cv_lib_mpich_MPI_Init=no |
| 7735 |
< |
fi |
| 7736 |
< |
rm -f conftest.err conftest.$ac_objext \ |
| 7737 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 7738 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 7739 |
< |
fi |
| 7740 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
| 7741 |
< |
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 |
| 7742 |
< |
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
| 7743 |
< |
MPI_LIB="-lmpich" |
| 7744 |
< |
fi |
| 7745 |
< |
|
| 7746 |
< |
fi |
| 7747 |
< |
if test x = x"$MPI_LIB"; then |
| 7748 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
| 7749 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
| 7750 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
| 7751 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7752 |
< |
else |
| 7753 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 7754 |
< |
LIBS="-lmpi $LIBS" |
| 7755 |
< |
cat >conftest.$ac_ext <<_ACEOF |
| 7756 |
< |
/* confdefs.h. */ |
| 7757 |
< |
_ACEOF |
| 7758 |
< |
cat confdefs.h >>conftest.$ac_ext |
| 7759 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
| 7760 |
< |
/* end confdefs.h. */ |
| 7761 |
< |
|
| 7762 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 7763 |
< |
#ifdef __cplusplus |
| 7764 |
< |
extern "C" |
| 7765 |
< |
#endif |
| 7766 |
< |
/* We use char because int might match the return type of a gcc2 |
| 7767 |
< |
builtin and then its argument prototype would still apply. */ |
| 7768 |
< |
char MPI_Init (); |
| 7769 |
< |
int |
| 7770 |
< |
main () |
| 7771 |
< |
{ |
| 7772 |
< |
MPI_Init (); |
| 7773 |
< |
; |
| 7774 |
< |
return 0; |
| 7775 |
< |
} |
| 7776 |
< |
_ACEOF |
| 7777 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7778 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7779 |
< |
(eval $ac_link) 2>conftest.er1 |
| 7780 |
< |
ac_status=$? |
| 7781 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7782 |
< |
rm -f conftest.er1 |
| 7783 |
< |
cat conftest.err >&5 |
| 7784 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7785 |
< |
(exit $ac_status); } && |
| 7786 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7787 |
< |
|| test ! -s conftest.err' |
| 7788 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7789 |
< |
(eval $ac_try) 2>&5 |
| 7790 |
< |
ac_status=$? |
| 7791 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7792 |
< |
(exit $ac_status); }; } && |
| 7793 |
< |
{ ac_try='test -s conftest$ac_exeext' |
| 7794 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7795 |
< |
(eval $ac_try) 2>&5 |
| 7796 |
< |
ac_status=$? |
| 7797 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7798 |
< |
(exit $ac_status); }; }; then |
| 7799 |
< |
ac_cv_lib_mpi_MPI_Init=yes |
| 7800 |
< |
else |
| 7801 |
< |
echo "$as_me: failed program was:" >&5 |
| 7802 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7803 |
< |
|
| 7804 |
< |
ac_cv_lib_mpi_MPI_Init=no |
| 7805 |
< |
fi |
| 7806 |
< |
rm -f conftest.err conftest.$ac_objext \ |
| 7807 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 7808 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 7809 |
< |
fi |
| 7810 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
| 7811 |
< |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
| 7812 |
< |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
| 7813 |
< |
MPI_LIB="-lmpi" |
| 7814 |
< |
fi |
| 7815 |
< |
|
| 7816 |
< |
fi |
| 7817 |
< |
$as_unset ac_cv_lib_mpi_MPI_Init |
| 7818 |
< |
if test x = x"$MPI_LIB"; then |
| 7819 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
| 7820 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
| 7821 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
| 7822 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7823 |
< |
else |
| 7824 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 7825 |
< |
LIBS="-lmpi "-llam" $LIBS" |
| 7826 |
< |
cat >conftest.$ac_ext <<_ACEOF |
| 7827 |
< |
/* confdefs.h. */ |
| 7828 |
< |
_ACEOF |
| 7829 |
< |
cat confdefs.h >>conftest.$ac_ext |
| 7830 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
| 7831 |
< |
/* end confdefs.h. */ |
| 7832 |
< |
|
| 7833 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 7834 |
< |
#ifdef __cplusplus |
| 7835 |
< |
extern "C" |
| 7836 |
< |
#endif |
| 7837 |
< |
/* We use char because int might match the return type of a gcc2 |
| 7838 |
< |
builtin and then its argument prototype would still apply. */ |
| 7839 |
< |
char MPI_Init (); |
| 7840 |
< |
int |
| 7841 |
< |
main () |
| 7842 |
< |
{ |
| 7843 |
< |
MPI_Init (); |
| 7844 |
< |
; |
| 7845 |
< |
return 0; |
| 7846 |
< |
} |
| 7847 |
< |
_ACEOF |
| 7848 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7849 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7850 |
< |
(eval $ac_link) 2>conftest.er1 |
| 7851 |
< |
ac_status=$? |
| 7852 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7853 |
< |
rm -f conftest.er1 |
| 7854 |
< |
cat conftest.err >&5 |
| 7855 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7856 |
< |
(exit $ac_status); } && |
| 7857 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7858 |
< |
|| test ! -s conftest.err' |
| 7859 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7860 |
< |
(eval $ac_try) 2>&5 |
| 7861 |
< |
ac_status=$? |
| 7862 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7863 |
< |
(exit $ac_status); }; } && |
| 7864 |
< |
{ ac_try='test -s conftest$ac_exeext' |
| 7865 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7866 |
< |
(eval $ac_try) 2>&5 |
| 7867 |
< |
ac_status=$? |
| 7868 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7869 |
< |
(exit $ac_status); }; }; then |
| 7870 |
< |
ac_cv_lib_mpi_MPI_Init=yes |
| 7871 |
< |
else |
| 7872 |
< |
echo "$as_me: failed program was:" >&5 |
| 7873 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7874 |
< |
|
| 7875 |
< |
ac_cv_lib_mpi_MPI_Init=no |
| 7876 |
< |
fi |
| 7877 |
< |
rm -f conftest.err conftest.$ac_objext \ |
| 7878 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 7879 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 7880 |
< |
fi |
| 7881 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
| 7882 |
< |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
| 7883 |
< |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
| 7884 |
< |
MPI_LIB="-lmpi -llam" |
| 7885 |
< |
fi |
| 7886 |
< |
|
| 7887 |
< |
fi |
| 7888 |
< |
|
| 7889 |
< |
$as_unset ac_cv_lib_mpi_MPI_Init |
| 7890 |
< |
if test x = x"$MPI_LIB"; then |
| 7891 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
| 7892 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
| 7893 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
| 7894 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7895 |
< |
else |
| 7896 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 7897 |
< |
LIBS="-lmpi -llam -lpthread $LIBS" |
| 7898 |
< |
cat >conftest.$ac_ext <<_ACEOF |
| 7899 |
< |
/* confdefs.h. */ |
| 7900 |
< |
_ACEOF |
| 7901 |
< |
cat confdefs.h >>conftest.$ac_ext |
| 7902 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
| 7903 |
< |
/* end confdefs.h. */ |
| 7904 |
< |
|
| 7905 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 7906 |
< |
#ifdef __cplusplus |
| 7907 |
< |
extern "C" |
| 7908 |
< |
#endif |
| 7909 |
< |
/* We use char because int might match the return type of a gcc2 |
| 7910 |
< |
builtin and then its argument prototype would still apply. */ |
| 7911 |
< |
char MPI_Init (); |
| 7912 |
< |
int |
| 7913 |
< |
main () |
| 7914 |
< |
{ |
| 7915 |
< |
MPI_Init (); |
| 7916 |
< |
; |
| 7917 |
< |
return 0; |
| 7918 |
< |
} |
| 7919 |
< |
_ACEOF |
| 7920 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7921 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7922 |
< |
(eval $ac_link) 2>conftest.er1 |
| 7923 |
< |
ac_status=$? |
| 7924 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7925 |
< |
rm -f conftest.er1 |
| 7926 |
< |
cat conftest.err >&5 |
| 7927 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7928 |
< |
(exit $ac_status); } && |
| 7929 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7930 |
< |
|| test ! -s conftest.err' |
| 7931 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7932 |
< |
(eval $ac_try) 2>&5 |
| 7933 |
< |
ac_status=$? |
| 7934 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7935 |
< |
(exit $ac_status); }; } && |
| 7936 |
< |
{ ac_try='test -s conftest$ac_exeext' |
| 7937 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7938 |
< |
(eval $ac_try) 2>&5 |
| 7939 |
< |
ac_status=$? |
| 7940 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7941 |
< |
(exit $ac_status); }; }; then |
| 7942 |
< |
ac_cv_lib_mpi_MPI_Init=yes |
| 7943 |
< |
else |
| 7944 |
< |
echo "$as_me: failed program was:" >&5 |
| 7945 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7946 |
< |
|
| 7947 |
< |
ac_cv_lib_mpi_MPI_Init=no |
| 7948 |
< |
fi |
| 7949 |
< |
rm -f conftest.err conftest.$ac_objext \ |
| 7950 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 7951 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 7952 |
< |
fi |
| 7953 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
| 7954 |
< |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
| 7955 |
< |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
| 7956 |
< |
MPI_LIB="-lmpi -llam -lpthread" |
| 7957 |
< |
else |
| 7958 |
< |
|
| 7959 |
< |
{ { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5 |
| 7960 |
< |
echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;} |
| 7961 |
< |
{ (exit 1); exit 1; }; } |
| 7962 |
< |
USE_MPI="no" |
| 7963 |
< |
|
| 7964 |
< |
fi |
| 7965 |
< |
|
| 7966 |
< |
fi |
| 7967 |
< |
|
| 7968 |
< |
|
| 7969 |
< |
|
| 7970 |
< |
echo "$as_me:$LINENO: checking for MPI Fortran library" >&5 |
| 7971 |
< |
echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6 |
| 7972 |
< |
MPI_F90_LIB="" |
| 7973 |
< |
if test -f "$MPI_LIB_DIR/libfmpich.a" ; then |
| 7974 |
< |
MPI_F90_LIB="-lfmpich" |
| 7975 |
< |
elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then |
| 7976 |
< |
MPI_F90_LIB="-llamf77mpi" |
| 7977 |
< |
else |
| 7978 |
< |
MPI_F90_LIB=" " |
| 7979 |
< |
fi |
| 7980 |
< |
echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5 |
| 7981 |
< |
echo "${ECHO_T}found $MPI_F90_LIB" >&6 |
| 7982 |
< |
|
| 7983 |
< |
|
| 7984 |
< |
fi |
| 7985 |
< |
|
| 7986 |
< |
|
| 7987 |
< |
|
| 7988 |
< |
# Check whether --with-sprng or --without-sprng was given. |
| 7989 |
< |
if test "${with_sprng+set}" = set; then |
| 7990 |
< |
withval="$with_sprng" |
| 7991 |
< |
with_sprng=$withval |
| 7992 |
< |
else |
| 7993 |
< |
with_sprng="/usr/local" |
| 7994 |
< |
fi; |
| 7995 |
< |
|
| 7996 |
< |
case "x$with_sprng" in |
| 7997 |
< |
xyes | "x") USE_SPRNG=yes;; |
| 7998 |
< |
xno) USE_SPRNG=no ;; |
| 7999 |
< |
*) SPRNG="$with_sprng"; USE_SPRNG=yes ;; |
| 8000 |
< |
esac |
| 8001 |
< |
if test "$USE_SPRNG" = "yes" -a -z "$with_sprng"; then |
| 8002 |
< |
SPRNG="/usr/local" |
| 8003 |
< |
fi |
| 8004 |
< |
if test "$USE_SPRNG" = "yes"; then |
| 8005 |
< |
|
| 8006 |
< |
|
| 8007 |
< |
# Set variables... |
| 8008 |
< |
SPRNG_LIB_DIR="$SPRNG/lib" |
| 8009 |
< |
SPRNG_INC_DIR="$SPRNG/include" |
| 8010 |
< |
|
| 8011 |
< |
|
| 8012 |
< |
|
| 8013 |
< |
echo "$as_me:$LINENO: checking for sprng.h" >&5 |
| 8014 |
< |
echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6 |
| 8015 |
< |
have_sprng_h=0 |
| 8016 |
< |
echo '#include <sprng.h>' > conftest.cc |
| 8017 |
< |
if test -z "`${CXX} -I${SPRNG_INC_DIR} -c conftest.cc 2>&1`"; then |
| 8018 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
| 8019 |
< |
echo "${ECHO_T}yes" >&6 |
| 8020 |
< |
have_sprng_h=1 |
| 8021 |
< |
else |
| 8022 |
< |
echo "$as_me:$LINENO: result: no! Check SPRNG include path!" >&5 |
| 8023 |
< |
echo "${ECHO_T}no! Check SPRNG include path!" >&6 |
| 8024 |
< |
USE_SPRNG="no" |
| 8025 |
< |
fi |
| 8026 |
< |
rm -f conftest* |
| 8027 |
< |
if test "$have_sprng_h" = 1; then |
| 8028 |
< |
|
| 8029 |
< |
cat >>confdefs.h <<\_ACEOF |
| 8030 |
< |
#define HAVE_SPRNG_H 1 |
| 8031 |
< |
_ACEOF |
| 8032 |
< |
|
| 8033 |
< |
fi |
| 8034 |
< |
|
| 8035 |
< |
ac_ext=c |
| 8036 |
< |
ac_cpp='$CPP $CPPFLAGS' |
| 8037 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8038 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8039 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8040 |
< |
|
| 8041 |
< |
ac_save_LDFLAGS=$LDFLAGS |
| 8042 |
< |
LDFLAGS="${LDFLAGS} -L${SPRNG_LIB_DIR} " |
| 8043 |
< |
|
| 8044 |
< |
echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5 |
| 8045 |
< |
echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6 |
| 8046 |
< |
if test "${ac_cv_lib_sprng_init_rng+set}" = set; then |
| 8047 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8048 |
< |
else |
| 8049 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 8050 |
< |
LIBS="-lsprng $LIBS" |
| 8051 |
< |
cat >conftest.$ac_ext <<_ACEOF |
| 8052 |
< |
/* confdefs.h. */ |
| 8053 |
< |
_ACEOF |
| 8054 |
< |
cat confdefs.h >>conftest.$ac_ext |
| 8055 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
| 8056 |
< |
/* end confdefs.h. */ |
| 8057 |
< |
|
| 8058 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 8059 |
< |
#ifdef __cplusplus |
| 8060 |
< |
extern "C" |
| 8061 |
< |
#endif |
| 8062 |
< |
/* We use char because int might match the return type of a gcc2 |
| 8063 |
< |
builtin and then its argument prototype would still apply. */ |
| 8064 |
< |
char init_rng (); |
| 8065 |
< |
int |
| 8066 |
< |
main () |
| 8067 |
< |
{ |
| 8068 |
< |
init_rng (); |
| 8069 |
< |
; |
| 8070 |
< |
return 0; |
| 8071 |
< |
} |
| 8072 |
< |
_ACEOF |
| 8073 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 8074 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8075 |
< |
(eval $ac_link) 2>conftest.er1 |
| 8076 |
< |
ac_status=$? |
| 8077 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
| 8078 |
< |
rm -f conftest.er1 |
| 8079 |
< |
cat conftest.err >&5 |
| 8080 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8081 |
< |
(exit $ac_status); } && |
| 8082 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 8083 |
< |
|| test ! -s conftest.err' |
| 8084 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8085 |
< |
(eval $ac_try) 2>&5 |
| 8086 |
< |
ac_status=$? |
| 8087 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8088 |
< |
(exit $ac_status); }; } && |
| 8089 |
< |
{ ac_try='test -s conftest$ac_exeext' |
| 8090 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8091 |
< |
(eval $ac_try) 2>&5 |
| 8092 |
< |
ac_status=$? |
| 8093 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8094 |
< |
(exit $ac_status); }; }; then |
| 8095 |
< |
ac_cv_lib_sprng_init_rng=yes |
| 8096 |
< |
else |
| 8097 |
< |
echo "$as_me: failed program was:" >&5 |
| 8098 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 8099 |
< |
|
| 8100 |
< |
ac_cv_lib_sprng_init_rng=no |
| 8101 |
< |
fi |
| 8102 |
< |
rm -f conftest.err conftest.$ac_objext \ |
| 8103 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 8104 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 8105 |
< |
fi |
| 8106 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5 |
| 8107 |
< |
echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6 |
| 8108 |
< |
if test $ac_cv_lib_sprng_init_rng = yes; then |
| 8109 |
< |
SPRNG_LIB="-lsprng" |
| 8110 |
< |
else |
| 8111 |
< |
|
| 8112 |
< |
{ { echo "$as_me:$LINENO: error: Didn't find libsprng; check path for SPRNG package first..." >&5 |
| 8113 |
< |
echo "$as_me: error: Didn't find libsprng; check path for SPRNG package first..." >&2;} |
| 8114 |
< |
{ (exit 1); exit 1; }; } |
| 8115 |
< |
USE_SPRNG="no" |
| 8116 |
< |
|
| 8117 |
< |
fi |
| 8118 |
< |
|
| 8119 |
< |
|
| 8120 |
< |
if test "$USE_SPRNG" = "no"; then |
| 8121 |
< |
{ { echo "$as_me:$LINENO: error: No working SPRNG library found" >&5 |
| 8122 |
< |
echo "$as_me: error: No working SPRNG library found" >&2;} |
| 8123 |
< |
{ (exit 1); exit 1; }; } |
| 8124 |
< |
fi |
| 8125 |
< |
|
| 8126 |
< |
|
| 8127 |
< |
fi |
| 8128 |
< |
|
| 8129 |
< |
|
| 8130 |
< |
|
| 8131 |
< |
echo "$as_me:$LINENO: checking if MKL is wanted" >&5 |
| 8132 |
< |
echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6 |
| 8133 |
< |
|
| 8134 |
< |
# Check whether --with-mkl or --without-mkl was given. |
| 8135 |
< |
if test "${with_mkl+set}" = set; then |
| 8136 |
< |
withval="$with_mkl" |
| 8137 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
| 8138 |
< |
echo "${ECHO_T}yes" >&6 |
| 8139 |
< |
for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do |
| 8140 |
< |
mkldir="$dir" |
| 8141 |
< |
if test -f "$dir/include/mkl.h"; then |
| 8142 |
< |
found_mkl="yes"; |
| 8143 |
< |
break; |
| 8144 |
< |
fi |
| 8145 |
< |
done |
| 8146 |
< |
if test x_$found_mkl != x_yes; then |
| 8147 |
< |
{ { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5 |
| 8148 |
< |
echo "$as_me: error: Cannot find MKL includes" >&2;} |
| 8149 |
< |
{ (exit 1); exit 1; }; } |
| 8150 |
< |
else |
| 8151 |
< |
printf "MKL includes found in $mkldir/include\n"; |
| 8152 |
< |
fi |
| 8153 |
< |
|
| 8154 |
< |
|
| 8155 |
< |
|
| 8156 |
< |
ac_ext=c |
| 8157 |
< |
ac_cpp='$CPP $CPPFLAGS' |
| 8158 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8159 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8160 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8161 |
< |
|
| 8162 |
< |
ac_save_CPPFLAGS=$CPPFLAGS |
| 8163 |
< |
CPPFLAGS="${CPPFLAGS} -I${mkldir}/include" |
| 8164 |
< |
ac_save_LDFLAGS=$LDFLAGS |
| 8165 |
< |
LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide" |
| 8166 |
< |
if test "${ac_cv_header_mkl_h+set}" = set; then |
| 8167 |
< |
echo "$as_me:$LINENO: checking for mkl.h" >&5 |
| 8168 |
< |
echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6 |
| 8169 |
< |
if test "${ac_cv_header_mkl_h+set}" = set; then |
| 8170 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8171 |
< |
fi |
| 8172 |
< |
echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5 |
| 8173 |
< |
echo "${ECHO_T}$ac_cv_header_mkl_h" >&6 |
| 8174 |
< |
else |
| 8175 |
< |
# Is the header compilable? |
| 8176 |
< |
echo "$as_me:$LINENO: checking mkl.h usability" >&5 |
| 8177 |
< |
echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6 |
| 8178 |
< |
cat >conftest.$ac_ext <<_ACEOF |
| 8179 |
< |
/* confdefs.h. */ |
| 8180 |
< |
_ACEOF |
| 8181 |
< |
cat confdefs.h >>conftest.$ac_ext |
| 8182 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
| 8183 |
< |
/* end confdefs.h. */ |
| 8184 |
< |
$ac_includes_default |
| 8185 |
< |
#include <mkl.h> |
| 8186 |
< |
_ACEOF |
| 8187 |
< |
rm -f conftest.$ac_objext |
| 8188 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8189 |
< |
(eval $ac_compile) 2>conftest.er1 |
| 8190 |
< |
ac_status=$? |
| 8191 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
| 8192 |
< |
rm -f conftest.er1 |
| 8193 |
< |
cat conftest.err >&5 |
| 8194 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8195 |
< |
(exit $ac_status); } && |
| 8196 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 8197 |
< |
|| test ! -s conftest.err' |
| 8198 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8199 |
< |
(eval $ac_try) 2>&5 |
| 8200 |
< |
ac_status=$? |
| 8201 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8202 |
< |
(exit $ac_status); }; } && |
| 8203 |
< |
{ ac_try='test -s conftest.$ac_objext' |
| 8204 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8205 |
< |
(eval $ac_try) 2>&5 |
| 8206 |
< |
ac_status=$? |
| 8207 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8208 |
< |
(exit $ac_status); }; }; then |
| 8209 |
< |
ac_header_compiler=yes |
| 8210 |
< |
else |
| 8211 |
< |
echo "$as_me: failed program was:" >&5 |
| 8212 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 8213 |
< |
|
| 8214 |
< |
ac_header_compiler=no |
| 8215 |
< |
fi |
| 8216 |
< |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8217 |
< |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8218 |
< |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8219 |
< |
|
| 8220 |
< |
# Is the header present? |
| 8221 |
< |
echo "$as_me:$LINENO: checking mkl.h presence" >&5 |
| 8222 |
< |
echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6 |
| 8223 |
< |
cat >conftest.$ac_ext <<_ACEOF |
| 8224 |
< |
/* confdefs.h. */ |
| 8225 |
< |
_ACEOF |
| 8226 |
< |
cat confdefs.h >>conftest.$ac_ext |
| 8227 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
| 8228 |
< |
/* end confdefs.h. */ |
| 8229 |
< |
#include <mkl.h> |
| 8230 |
< |
_ACEOF |
| 8231 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8232 |
< |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8233 |
< |
ac_status=$? |
| 8234 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
| 8235 |
< |
rm -f conftest.er1 |
| 8236 |
< |
cat conftest.err >&5 |
| 8237 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8238 |
< |
(exit $ac_status); } >/dev/null; then |
| 8239 |
< |
if test -s conftest.err; then |
| 8240 |
< |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 8241 |
< |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8242 |
< |
else |
| 8243 |
< |
ac_cpp_err= |
| 8244 |
< |
fi |
| 8245 |
< |
else |
| 8246 |
< |
ac_cpp_err=yes |
| 8247 |
< |
fi |
| 8248 |
< |
if test -z "$ac_cpp_err"; then |
| 8249 |
< |
ac_header_preproc=yes |
| 8250 |
< |
else |
| 8251 |
< |
echo "$as_me: failed program was:" >&5 |
| 8252 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 8253 |
< |
|
| 8254 |
< |
ac_header_preproc=no |
| 8255 |
< |
fi |
| 8256 |
< |
rm -f conftest.err conftest.$ac_ext |
| 8257 |
< |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8258 |
< |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8259 |
< |
|
| 8260 |
< |
# So? What about this header? |
| 8261 |
< |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8262 |
< |
yes:no: ) |
| 8263 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8264 |
< |
echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8265 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5 |
| 8266 |
< |
echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;} |
| 8267 |
< |
ac_header_preproc=yes |
| 8268 |
< |
;; |
| 8269 |
< |
no:yes:* ) |
| 8270 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5 |
| 8271 |
< |
echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;} |
| 8272 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5 |
| 8273 |
< |
echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;} |
| 8274 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5 |
| 8275 |
< |
echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;} |
| 8276 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 8277 |
< |
echo "$as_me: WARNING: mkl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8278 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5 |
| 8279 |
< |
echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;} |
| 8280 |
< |
{ echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5 |
| 8281 |
< |
echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;} |
| 8282 |
< |
( |
| 8283 |
< |
cat <<\_ASBOX |
| 8284 |
< |
## ------------------------------ ## |
| 8285 |
< |
## Report this to gezelter@nd.edu ## |
| 8286 |
< |
## ------------------------------ ## |
| 8287 |
< |
_ASBOX |
| 8288 |
< |
) | |
| 8289 |
< |
sed "s/^/$as_me: WARNING: /" >&2 |
| 8290 |
< |
;; |
| 8291 |
< |
esac |
| 8292 |
< |
echo "$as_me:$LINENO: checking for mkl.h" >&5 |
| 8293 |
< |
echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6 |
| 8294 |
< |
if test "${ac_cv_header_mkl_h+set}" = set; then |
| 8295 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8296 |
< |
else |
| 8297 |
< |
ac_cv_header_mkl_h=$ac_header_preproc |
| 8298 |
< |
fi |
| 8299 |
< |
echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5 |
| 8300 |
< |
echo "${ECHO_T}$ac_cv_header_mkl_h" >&6 |
| 8301 |
< |
|
| 8302 |
< |
fi |
| 8303 |
< |
if test $ac_cv_header_mkl_h = yes; then |
| 8304 |
< |
|
| 8305 |
< |
echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5 |
| 8306 |
< |
echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6 |
| 8307 |
< |
if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then |
| 8308 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8309 |
< |
else |
| 8310 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 8311 |
< |
LIBS="-lmkl $LIBS" |
| 8312 |
< |
cat >conftest.$ac_ext <<_ACEOF |
| 8313 |
< |
/* confdefs.h. */ |
| 8314 |
< |
_ACEOF |
| 8315 |
< |
cat confdefs.h >>conftest.$ac_ext |
| 8316 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
| 8317 |
< |
/* end confdefs.h. */ |
| 8318 |
< |
|
| 8319 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 8320 |
< |
#ifdef __cplusplus |
| 8321 |
< |
extern "C" |
| 8322 |
< |
#endif |
| 8323 |
< |
/* We use char because int might match the return type of a gcc2 |
| 8324 |
< |
builtin and then its argument prototype would still apply. */ |
| 8325 |
< |
char vslNewStream (); |
| 8326 |
< |
int |
| 8327 |
< |
main () |
| 8328 |
< |
{ |
| 8329 |
< |
vslNewStream (); |
| 8330 |
< |
; |
| 8331 |
< |
return 0; |
| 8332 |
< |
} |
| 8333 |
< |
_ACEOF |
| 8334 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 8335 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8336 |
< |
(eval $ac_link) 2>conftest.er1 |
| 8337 |
< |
ac_status=$? |
| 8338 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
| 8339 |
< |
rm -f conftest.er1 |
| 8340 |
< |
cat conftest.err >&5 |
| 8341 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8342 |
< |
(exit $ac_status); } && |
| 8343 |
< |
{ ac_try='test -z "$ac_c_werror_flag" |
| 8344 |
< |
|| test ! -s conftest.err' |
| 8345 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8346 |
< |
(eval $ac_try) 2>&5 |
| 8347 |
< |
ac_status=$? |
| 8348 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8349 |
< |
(exit $ac_status); }; } && |
| 8350 |
< |
{ ac_try='test -s conftest$ac_exeext' |
| 8351 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8352 |
< |
(eval $ac_try) 2>&5 |
| 8353 |
< |
ac_status=$? |
| 8354 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8355 |
< |
(exit $ac_status); }; }; then |
| 8356 |
< |
ac_cv_lib_mkl_vslNewStream=yes |
| 8357 |
< |
else |
| 8358 |
< |
echo "$as_me: failed program was:" >&5 |
| 8359 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 8360 |
< |
|
| 8361 |
< |
ac_cv_lib_mkl_vslNewStream=no |
| 8362 |
< |
fi |
| 8363 |
< |
rm -f conftest.err conftest.$ac_objext \ |
| 8364 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 8365 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 8366 |
< |
fi |
| 8367 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5 |
| 8368 |
< |
echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6 |
| 8369 |
< |
if test $ac_cv_lib_mkl_vslNewStream = yes; then |
| 8370 |
< |
MKL_LIBDIR="${mkldir}/lib/32", |
| 8371 |
< |
MKL_LIB="-lmkl -lvml -lguide", |
| 8372 |
< |
HAVE_MKL="yes" |
| 8373 |
< |
fi |
| 8374 |
< |
|
| 8375 |
< |
|
| 8376 |
< |
else |
| 8377 |
< |
MKL_INC="-I${mkldir}/include" |
| 8378 |
< |
fi |
| 8379 |
< |
|
| 8380 |
< |
|
| 8381 |
< |
CPPFLAGS=$ac_save_CPPFLAGS |
| 8382 |
< |
LDFLAGS=$ac_save_LDFLAGS |
| 8383 |
< |
ac_ext=c |
| 8384 |
< |
ac_cpp='$CPP $CPPFLAGS' |
| 8385 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8386 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8387 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8388 |
< |
|
| 8389 |
< |
|
| 8390 |
< |
if test x_$HAVE_MKL != x_yes; then |
| 8391 |
< |
{ { echo "$as_me:$LINENO: error: Can't build with MKL" >&5 |
| 8392 |
< |
echo "$as_me: error: Can't build with MKL" >&2;} |
| 8393 |
< |
{ (exit 1); exit 1; }; } |
| 8394 |
< |
fi |
| 8395 |
< |
|
| 8396 |
< |
|
| 8397 |
< |
|
| 8398 |
< |
|
| 8399 |
< |
|
| 8400 |
< |
else |
| 8401 |
< |
|
| 8402 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
| 8403 |
< |
echo "${ECHO_T}no" >&6 |
| 8404 |
< |
|
| 8405 |
< |
fi; |
| 8406 |
< |
|
| 8407 |
< |
|
| 8408 |
< |
|
| 8409 |
< |
# Check whether --enable-doxygen or --disable-doxygen was given. |
| 8410 |
< |
if test "${enable_doxygen+set}" = set; then |
| 8411 |
< |
enableval="$enable_doxygen" |
| 8412 |
< |
|
| 8413 |
< |
fi; |
| 8414 |
< |
# Check whether --enable-dot or --disable-dot was given. |
| 8415 |
< |
if test "${enable_dot+set}" = set; then |
| 8416 |
< |
enableval="$enable_dot" |
| 8417 |
< |
|
| 8418 |
< |
fi; |
| 8419 |
< |
# Check whether --enable-html-docs or --disable-html-docs was given. |
| 8420 |
< |
if test "${enable_html_docs+set}" = set; then |
| 8421 |
< |
enableval="$enable_html_docs" |
| 8422 |
< |
|
| 8423 |
< |
else |
| 8424 |
< |
enable_html_docs=yes |
| 8425 |
< |
fi; |
| 8426 |
< |
# Check whether --enable-latex-docs or --disable-latex-docs was given. |
| 8427 |
< |
if test "${enable_latex_docs+set}" = set; then |
| 8428 |
< |
enableval="$enable_latex_docs" |
| 8429 |
< |
|
| 8430 |
< |
else |
| 8431 |
< |
enable_latex_docs=no |
| 8432 |
< |
fi; |
| 8433 |
< |
if test "x$enable_doxygen" = xno; then |
| 8434 |
< |
enable_doc=no |
| 8435 |
< |
else |
| 8436 |
< |
# Extract the first word of "doxygen", so it can be a program name with args. |
| 8437 |
< |
set dummy doxygen; ac_word=$2 |
| 8438 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8439 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8440 |
< |
if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 8441 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8442 |
< |
else |
| 8443 |
< |
case $DOXYGEN in |
| 8444 |
< |
[\\/]* | ?:[\\/]*) |
| 8445 |
< |
ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 8446 |
< |
;; |
| 8447 |
< |
*) |
| 8448 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8449 |
< |
for as_dir in $PATH |
| 8450 |
< |
do |
| 8451 |
< |
IFS=$as_save_IFS |
| 8452 |
< |
test -z "$as_dir" && as_dir=. |
| 8453 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8454 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8455 |
< |
ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 8456 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8457 |
< |
break 2 |
| 8458 |
< |
fi |
| 8459 |
< |
done |
| 8460 |
< |
done |
| 8461 |
< |
|
| 8462 |
< |
;; |
| 8463 |
< |
esac |
| 8464 |
< |
fi |
| 8465 |
< |
DOXYGEN=$ac_cv_path_DOXYGEN |
| 8466 |
< |
|
| 8467 |
< |
if test -n "$DOXYGEN"; then |
| 8468 |
< |
echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 8469 |
< |
echo "${ECHO_T}$DOXYGEN" >&6 |
| 8470 |
< |
else |
| 8471 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
| 8472 |
< |
echo "${ECHO_T}no" >&6 |
| 8473 |
< |
fi |
| 8474 |
< |
|
| 8475 |
< |
if test "x$DOXYGEN" = x; then |
| 8476 |
< |
if test "x$enable_doxygen" = xyes; then |
| 8477 |
< |
{ { echo "$as_me:$LINENO: error: could not find doxygen" >&5 |
| 8478 |
< |
echo "$as_me: error: could not find doxygen" >&2;} |
| 8479 |
< |
{ (exit 1); exit 1; }; } |
| 8480 |
< |
fi |
| 8481 |
< |
enable_doc=no |
| 8482 |
< |
else |
| 8483 |
< |
enable_doc=yes |
| 8484 |
< |
# Extract the first word of "dot", so it can be a program name with args. |
| 8485 |
< |
set dummy dot; ac_word=$2 |
| 8486 |
< |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8487 |
< |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8488 |
< |
if test "${ac_cv_path_DOT+set}" = set; then |
| 8489 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8490 |
< |
else |
| 8491 |
< |
case $DOT in |
| 8492 |
< |
[\\/]* | ?:[\\/]*) |
| 8493 |
< |
ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 8494 |
< |
;; |
| 8495 |
< |
*) |
| 8496 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8497 |
< |
for as_dir in $PATH |
| 8498 |
< |
do |
| 8499 |
< |
IFS=$as_save_IFS |
| 8500 |
< |
test -z "$as_dir" && as_dir=. |
| 8501 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8502 |
< |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8503 |
< |
ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 8504 |
< |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8505 |
< |
break 2 |
| 8506 |
< |
fi |
| 8507 |
< |
done |
| 8508 |
< |
done |
| 8509 |
< |
|
| 8510 |
< |
;; |
| 8511 |
< |
esac |
| 8512 |
< |
fi |
| 8513 |
< |
DOT=$ac_cv_path_DOT |
| 8514 |
< |
|
| 8515 |
< |
if test -n "$DOT"; then |
| 8516 |
< |
echo "$as_me:$LINENO: result: $DOT" >&5 |
| 8517 |
< |
echo "${ECHO_T}$DOT" >&6 |
| 8518 |
< |
else |
| 8519 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
| 8520 |
< |
echo "${ECHO_T}no" >&6 |
| 8521 |
< |
fi |
| 8522 |
< |
|
| 8523 |
< |
fi |
| 8524 |
< |
fi |
| 8525 |
< |
|
| 8526 |
< |
if test "x$enable_doc" = xyes; then |
| 8527 |
< |
DOC=1 |
| 8528 |
< |
else |
| 8529 |
< |
DOC=0 |
| 8530 |
< |
fi |
| 8531 |
< |
|
| 8532 |
< |
|
| 8533 |
< |
if test x$DOT = x; then |
| 8534 |
< |
if test "x$enable_dot" = xyes; then |
| 8535 |
< |
{ { echo "$as_me:$LINENO: error: could not find dot" >&5 |
| 8536 |
< |
echo "$as_me: error: could not find dot" >&2;} |
| 8537 |
< |
{ (exit 1); exit 1; }; } |
| 8538 |
< |
fi |
| 8539 |
< |
enable_dot=no |
| 8540 |
< |
else |
| 8541 |
< |
enable_dot=yes |
| 8542 |
< |
fi |
| 8543 |
< |
|
| 8544 |
< |
|
| 8545 |
< |
|
| 8546 |
< |
|
| 8547 |
< |
|
| 8548 |
< |
|
| 8549 |
< |
|
| 8550 |
< |
OBJEXT=".$OBJEXT" |
| 8551 |
< |
|
| 8552 |
< |
OOPSE=oopse |
| 8553 |
< |
|
| 8554 |
< |
if test "x${prefix}" = "xNONE" |
| 8555 |
< |
then |
| 8556 |
< |
OOPSE_HOME=${ac_default_prefix}/oopse |
| 8557 |
< |
else |
| 8558 |
< |
OOPSE_HOME=${prefix}/oopse |
| 8559 |
< |
fi |
| 8560 |
< |
# Check whether --enable-oopse-home or --disable-oopse-home was given. |
| 8561 |
< |
if test "${enable_oopse_home+set}" = set; then |
| 8562 |
< |
enableval="$enable_oopse_home" |
| 8563 |
< |
OOPSE_HOME="${enableval}" |
| 8564 |
< |
fi; |
| 8565 |
< |
|
| 8566 |
< |
case "x$INSTALL" in |
| 8567 |
< |
x/*) ;; |
| 8568 |
< |
*) INSTALL=`pwd`/ac-tools/"shtool install -c" ; |
| 8569 |
< |
esac |
| 8570 |
< |
|
| 8571 |
< |
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f" |
| 8572 |
< |
|
| 8573 |
< |
CFLAGS=${CFLAGS-""} |
| 8574 |
< |
CXXFLAGS=${CXXFLAGS-""} |
| 8575 |
< |
CPPFLAGS=${CPPFLAGS-""} |
| 8576 |
< |
FFLAGS=${FFLAGS-""} |
| 8577 |
< |
F90FLAGS=${F90FLAGS-""} |
| 8578 |
< |
LDFLAGS=${LDFLAGS-""} |
| 8579 |
< |
DEBUG=${DEBUG-"-g"} |
| 8580 |
< |
|
| 8581 |
< |
case $debug in |
| 8582 |
< |
1) |
| 8583 |
< |
FFLAGS="$DEBUG $FFLAGS" |
| 8584 |
< |
F90FLAGS="$DEBUG $F90FLAGS" |
| 8585 |
< |
;; |
| 8586 |
< |
*) |
| 8587 |
< |
;; |
| 8588 |
< |
esac |
| 8589 |
< |
|
| 8590 |
< |
|
| 8591 |
< |
|
| 8592 |
< |
|
| 8593 |
< |
|
| 8594 |
< |
|
| 8595 |
< |
|
| 8596 |
< |
|
| 8597 |
< |
|
| 8598 |
< |
|
| 8599 |
< |
|
| 8600 |
< |
|
| 8601 |
< |
|
| 8602 |
< |
|
| 8603 |
< |
|
| 8604 |
< |
|
| 8605 |
< |
|
| 8606 |
< |
|
| 8607 |
< |
ac_config_headers="$ac_config_headers src/config.h" |
| 8608 |
< |
|
| 8609 |
< |
ac_config_files="$ac_config_files make/Makefile" |
| 8610 |
< |
|
| 8611 |
< |
|
| 8612 |
< |
cat >confcache <<\_ACEOF |
| 8613 |
< |
# This file is a shell script that caches the results of configure |
| 8614 |
< |
# tests run on this system so they can be shared between configure |
| 8615 |
< |
# scripts and configure runs, see configure's option --config-cache. |
| 8616 |
< |
# It is not useful on other systems. If it contains results you don't |
| 8617 |
< |
# want to keep, you may remove or edit it. |
| 8618 |
< |
# |
| 8619 |
< |
# config.status only pays attention to the cache file if you give it |
| 8620 |
< |
# the --recheck option to rerun configure. |
| 8621 |
< |
# |
| 8622 |
< |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 8623 |
< |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 8624 |
< |
# following values. |
| 8625 |
< |
|
| 8626 |
< |
_ACEOF |
| 8627 |
< |
|
| 8628 |
< |
# The following way of writing the cache mishandles newlines in values, |
| 8629 |
< |
# but we know of no workaround that is simple, portable, and efficient. |
| 8630 |
< |
# So, don't put newlines in cache variables' values. |
| 8631 |
< |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 8632 |
< |
# and sets the high bit in the cache file unless we assign to the vars. |
| 8633 |
< |
{ |
| 8634 |
< |
(set) 2>&1 | |
| 8635 |
< |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 8636 |
< |
*ac_space=\ *) |
| 8637 |
< |
# `set' does not quote correctly, so add quotes (double-quote |
| 8638 |
< |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
| 8639 |
< |
sed -n \ |
| 8640 |
< |
"s/'/'\\\\''/g; |
| 8641 |
< |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 8642 |
< |
;; |
| 8643 |
< |
*) |
| 8644 |
< |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| 8645 |
< |
sed -n \ |
| 8646 |
< |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 8647 |
< |
;; |
| 8648 |
< |
esac; |
| 8649 |
< |
} | |
| 8650 |
< |
sed ' |
| 8651 |
< |
t clear |
| 8652 |
< |
: clear |
| 8653 |
< |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 8654 |
< |
t end |
| 8655 |
< |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 8656 |
< |
: end' >>confcache |
| 8657 |
< |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 8658 |
< |
if test -w $cache_file; then |
| 8659 |
< |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 8660 |
< |
cat confcache >$cache_file |
| 8661 |
< |
else |
| 8662 |
< |
echo "not updating unwritable cache $cache_file" |
| 8663 |
< |
fi |
| 8664 |
< |
fi |
| 8665 |
< |
rm -f confcache |
| 8666 |
< |
|
| 8667 |
< |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 8668 |
< |
# Let make expand exec_prefix. |
| 8669 |
< |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 8670 |
< |
|
| 8671 |
< |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 8672 |
< |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 8673 |
< |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 8674 |
< |
# (actually we leave an empty line to preserve line numbers). |
| 8675 |
< |
if test "x$srcdir" = x.; then |
| 8676 |
< |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 8677 |
< |
s/:*\$(srcdir):*/:/; |
| 8678 |
< |
s/:*\${srcdir}:*/:/; |
| 8679 |
< |
s/:*@srcdir@:*/:/; |
| 8680 |
< |
s/^\([^=]*=[ ]*\):*/\1/; |
| 8681 |
< |
s/:*$//; |
| 8682 |
< |
s/^[^=]*=[ ]*$//; |
| 8683 |
< |
}' |
| 8684 |
< |
fi |
| 8685 |
< |
|
| 8686 |
< |
DEFS=-DHAVE_CONFIG_H |
| 8687 |
< |
|
| 8688 |
< |
ac_libobjs= |
| 8689 |
< |
ac_ltlibobjs= |
| 8690 |
< |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 8691 |
< |
# 1. Remove the extension, and $U if already installed. |
| 8692 |
< |
ac_i=`echo "$ac_i" | |
| 8693 |
< |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 8694 |
< |
# 2. Add them. |
| 8695 |
< |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 8696 |
< |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 8697 |
< |
done |
| 8698 |
< |
LIBOBJS=$ac_libobjs |
| 8699 |
< |
|
| 8700 |
< |
LTLIBOBJS=$ac_ltlibobjs |
| 8701 |
< |
|
| 8702 |
< |
|
| 8703 |
< |
|
| 8704 |
< |
: ${CONFIG_STATUS=./config.status} |
| 8705 |
< |
ac_clean_files_save=$ac_clean_files |
| 8706 |
< |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 8707 |
< |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 8708 |
< |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 8709 |
< |
cat >$CONFIG_STATUS <<_ACEOF |
| 8710 |
< |
#! $SHELL |
| 8711 |
< |
# Generated by $as_me. |
| 8712 |
< |
# Run this file to recreate the current configuration. |
| 8713 |
< |
# Compiler output produced by configure, useful for debugging |
| 8714 |
< |
# configure, is in config.log if it exists. |
| 8715 |
< |
|
| 8716 |
< |
debug=false |
| 8717 |
< |
ac_cs_recheck=false |
| 8718 |
< |
ac_cs_silent=false |
| 8719 |
< |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 8720 |
< |
_ACEOF |
| 8721 |
< |
|
| 8722 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 8723 |
< |
## --------------------- ## |
| 8724 |
< |
## M4sh Initialization. ## |
| 8725 |
< |
## --------------------- ## |
| 8726 |
< |
|
| 8727 |
< |
# Be Bourne compatible |
| 8728 |
< |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 8729 |
< |
emulate sh |
| 8730 |
< |
NULLCMD=: |
| 8731 |
< |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 8732 |
< |
# is contrary to our usage. Disable this feature. |
| 8733 |
< |
alias -g '${1+"$@"}'='"$@"' |
| 8734 |
< |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 8735 |
< |
set -o posix |
| 8736 |
< |
fi |
| 8737 |
< |
DUALCASE=1; export DUALCASE # for MKS sh |
| 8738 |
< |
|
| 8739 |
< |
# Support unset when possible. |
| 8740 |
< |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 8741 |
< |
as_unset=unset |
| 8742 |
< |
else |
| 8743 |
< |
as_unset=false |
| 8744 |
< |
fi |
| 8745 |
< |
|
| 8746 |
< |
|
| 8747 |
< |
# Work around bugs in pre-3.0 UWIN ksh. |
| 8748 |
< |
$as_unset ENV MAIL MAILPATH |
| 8749 |
< |
PS1='$ ' |
| 8750 |
< |
PS2='> ' |
| 8751 |
< |
PS4='+ ' |
| 8752 |
< |
|
| 8753 |
< |
# NLS nuisances. |
| 8754 |
< |
for as_var in \ |
| 8755 |
< |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 8756 |
< |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 8757 |
< |
LC_TELEPHONE LC_TIME |
| 8758 |
< |
do |
| 8759 |
< |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 8760 |
< |
eval $as_var=C; export $as_var |
| 8761 |
< |
else |
| 8762 |
< |
$as_unset $as_var |
| 8763 |
< |
fi |
| 8764 |
< |
done |
| 8765 |
< |
|
| 8766 |
< |
# Required to use basename. |
| 8767 |
< |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 8768 |
< |
as_expr=expr |
| 8769 |
< |
else |
| 8770 |
< |
as_expr=false |
| 8771 |
< |
fi |
| 8772 |
< |
|
| 8773 |
< |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 8774 |
< |
as_basename=basename |
| 8775 |
< |
else |
| 8776 |
< |
as_basename=false |
| 8777 |
< |
fi |
| 8778 |
< |
|
| 8779 |
< |
|
| 8780 |
< |
# Name of the executable. |
| 8781 |
< |
as_me=`$as_basename "$0" || |
| 8782 |
< |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 8783 |
< |
X"$0" : 'X\(//\)$' \| \ |
| 8784 |
< |
X"$0" : 'X\(/\)$' \| \ |
| 8785 |
< |
. : '\(.\)' 2>/dev/null || |
| 8786 |
< |
echo X/"$0" | |
| 8787 |
< |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 8788 |
< |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
| 8789 |
< |
/^X\/\(\/\).*/{ s//\1/; q; } |
| 8790 |
< |
s/.*/./; q'` |
| 8791 |
< |
|
| 8792 |
< |
|
| 8793 |
< |
# PATH needs CR, and LINENO needs CR and PATH. |
| 8794 |
< |
# Avoid depending upon Character Ranges. |
| 8795 |
< |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 8796 |
< |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 8797 |
< |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 8798 |
< |
as_cr_digits='0123456789' |
| 8799 |
< |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 8800 |
< |
|
| 8801 |
< |
# The user is always right. |
| 8802 |
< |
if test "${PATH_SEPARATOR+set}" != set; then |
| 8803 |
< |
echo "#! /bin/sh" >conf$$.sh |
| 8804 |
< |
echo "exit 0" >>conf$$.sh |
| 8805 |
< |
chmod +x conf$$.sh |
| 8806 |
< |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 8807 |
< |
PATH_SEPARATOR=';' |
| 8808 |
< |
else |
| 8809 |
< |
PATH_SEPARATOR=: |
| 8810 |
< |
fi |
| 8811 |
< |
rm -f conf$$.sh |
| 8812 |
< |
fi |
| 8813 |
< |
|
| 8814 |
< |
|
| 8815 |
< |
as_lineno_1=$LINENO |
| 8816 |
< |
as_lineno_2=$LINENO |
| 8817 |
< |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 8818 |
< |
test "x$as_lineno_1" != "x$as_lineno_2" && |
| 8819 |
< |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 8820 |
< |
# Find who we are. Look in the path if we contain no path at all |
| 8821 |
< |
# relative or not. |
| 8822 |
< |
case $0 in |
| 8823 |
< |
*[\\/]* ) as_myself=$0 ;; |
| 8824 |
< |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8825 |
< |
for as_dir in $PATH |
| 8826 |
< |
do |
| 8827 |
< |
IFS=$as_save_IFS |
| 8828 |
< |
test -z "$as_dir" && as_dir=. |
| 8829 |
< |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 8830 |
< |
done |
| 8831 |
< |
|
| 8832 |
< |
;; |
| 8833 |
< |
esac |
| 8834 |
< |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 8835 |
< |
# in which case we are not to be found in the path. |
| 8836 |
< |
if test "x$as_myself" = x; then |
| 8837 |
< |
as_myself=$0 |
| 8838 |
< |
fi |
| 8839 |
< |
if test ! -f "$as_myself"; then |
| 8840 |
< |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 8841 |
< |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 8842 |
< |
{ (exit 1); exit 1; }; } |
| 8843 |
< |
fi |
| 8844 |
< |
case $CONFIG_SHELL in |
| 8845 |
< |
'') |
| 8846 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8847 |
< |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 8848 |
< |
do |
| 8849 |
< |
IFS=$as_save_IFS |
| 8850 |
< |
test -z "$as_dir" && as_dir=. |
| 8851 |
< |
for as_base in sh bash ksh sh5; do |
| 8852 |
< |
case $as_dir in |
| 8853 |
< |
/*) |
| 8854 |
< |
if ("$as_dir/$as_base" -c ' |
| 8855 |
< |
as_lineno_1=$LINENO |
| 8856 |
< |
as_lineno_2=$LINENO |
| 8857 |
< |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 8858 |
< |
test "x$as_lineno_1" != "x$as_lineno_2" && |
| 8859 |
< |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 8860 |
< |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 8861 |
< |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 8862 |
< |
CONFIG_SHELL=$as_dir/$as_base |
| 8863 |
< |
export CONFIG_SHELL |
| 8864 |
< |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 8865 |
< |
fi;; |
| 8866 |
< |
esac |
| 8867 |
< |
done |
| 8868 |
< |
done |
| 8869 |
< |
;; |
| 8870 |
< |
esac |
| 8871 |
< |
|
| 8872 |
< |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 8873 |
< |
# uniformly replaced by the line number. The first 'sed' inserts a |
| 8874 |
< |
# line-number line before each line; the second 'sed' does the real |
| 8875 |
< |
# work. The second script uses 'N' to pair each line-number line |
| 8876 |
< |
# with the numbered line, and appends trailing '-' during |
| 8877 |
< |
# substitution so that $LINENO is not a special case at line end. |
| 8878 |
< |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 8879 |
< |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 8880 |
< |
sed '=' <$as_myself | |
| 8881 |
< |
sed ' |
| 8882 |
< |
N |
| 8883 |
< |
s,$,-, |
| 8884 |
< |
: loop |
| 8885 |
< |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 8886 |
< |
t loop |
| 8887 |
< |
s,-$,, |
| 8888 |
< |
s,^['$as_cr_digits']*\n,, |
| 8889 |
< |
' >$as_me.lineno && |
| 8890 |
< |
chmod +x $as_me.lineno || |
| 8891 |
< |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 8892 |
< |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 8893 |
< |
{ (exit 1); exit 1; }; } |
| 8894 |
< |
|
| 8895 |
< |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 8896 |
< |
# (the dirname of $[0] is not the place where we might find the |
| 8897 |
< |
# original and so on. Autoconf is especially sensible to this). |
| 8898 |
< |
. ./$as_me.lineno |
| 8899 |
< |
# Exit status is that of the last command. |
| 8900 |
< |
exit |
| 8901 |
< |
} |
| 8902 |
< |
|
| 8903 |
< |
|
| 8904 |
< |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 8905 |
< |
*c*,-n*) ECHO_N= ECHO_C=' |
| 8906 |
< |
' ECHO_T=' ' ;; |
| 8907 |
< |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 8908 |
< |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 8909 |
< |
esac |
| 8910 |
< |
|
| 8911 |
< |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 8912 |
< |
as_expr=expr |
| 8913 |
< |
else |
| 8914 |
< |
as_expr=false |
| 8915 |
< |
fi |
| 8916 |
< |
|
| 8917 |
< |
rm -f conf$$ conf$$.exe conf$$.file |
| 8918 |
< |
echo >conf$$.file |
| 8919 |
< |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 8920 |
< |
# We could just check for DJGPP; but this test a) works b) is more generic |
| 8921 |
< |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 8922 |
< |
if test -f conf$$.exe; then |
| 8923 |
< |
# Don't use ln at all; we don't have any links |
| 8924 |
< |
as_ln_s='cp -p' |
| 8925 |
< |
else |
| 8926 |
< |
as_ln_s='ln -s' |
| 8927 |
< |
fi |
| 8928 |
< |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 8929 |
< |
as_ln_s=ln |
| 8930 |
< |
else |
| 8931 |
< |
as_ln_s='cp -p' |
| 8932 |
< |
fi |
| 8933 |
< |
rm -f conf$$ conf$$.exe conf$$.file |
| 8934 |
< |
|
| 8935 |
< |
if mkdir -p . 2>/dev/null; then |
| 8936 |
< |
as_mkdir_p=: |
| 8937 |
< |
else |
| 8938 |
< |
test -d ./-p && rmdir ./-p |
| 8939 |
< |
as_mkdir_p=false |
| 8940 |
< |
fi |
| 8941 |
< |
|
| 8942 |
< |
as_executable_p="test -f" |
| 8943 |
< |
|
| 8944 |
< |
# Sed expression to map a string onto a valid CPP name. |
| 8945 |
< |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 8946 |
< |
|
| 8947 |
< |
# Sed expression to map a string onto a valid variable name. |
| 8948 |
< |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 8949 |
< |
|
| 8950 |
< |
|
| 8951 |
< |
# IFS |
| 8952 |
< |
# We need space, tab and new line, in precisely that order. |
| 8953 |
< |
as_nl=' |
| 8954 |
< |
' |
| 8955 |
< |
IFS=" $as_nl" |
| 8956 |
< |
|
| 8957 |
< |
# CDPATH. |
| 8958 |
< |
$as_unset CDPATH |
| 8959 |
< |
|
| 8960 |
< |
exec 6>&1 |
| 8961 |
< |
|
| 8962 |
< |
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 8963 |
< |
# report actual input values of CONFIG_FILES etc. instead of their |
| 8964 |
< |
# values after options handling. Logging --version etc. is OK. |
| 8965 |
< |
exec 5>>config.log |
| 8966 |
< |
{ |
| 8967 |
< |
echo |
| 8968 |
< |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 8969 |
< |
## Running $as_me. ## |
| 8970 |
< |
_ASBOX |
| 8971 |
< |
} >&5 |
| 8972 |
< |
cat >&5 <<_CSEOF |
| 8973 |
< |
|
| 8974 |
< |
This file was extended by OOPSE $as_me 2.0, which was |
| 8975 |
< |
generated by GNU Autoconf 2.59. Invocation command line was |
| 8976 |
< |
|
| 8977 |
< |
CONFIG_FILES = $CONFIG_FILES |
| 8978 |
< |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 8979 |
< |
CONFIG_LINKS = $CONFIG_LINKS |
| 8980 |
< |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 8981 |
< |
$ $0 $@ |
| 8982 |
< |
|
| 8983 |
< |
_CSEOF |
| 8984 |
< |
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 8985 |
< |
echo >&5 |
| 8986 |
< |
_ACEOF |
| 8987 |
< |
|
| 8988 |
< |
# Files that config.status was made for. |
| 8989 |
< |
if test -n "$ac_config_files"; then |
| 8990 |
< |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 8991 |
< |
fi |
| 8992 |
< |
|
| 8993 |
< |
if test -n "$ac_config_headers"; then |
| 8994 |
< |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 8995 |
< |
fi |
| 8996 |
< |
|
| 8997 |
< |
if test -n "$ac_config_links"; then |
| 8998 |
< |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 8999 |
< |
fi |
| 9000 |
< |
|
| 9001 |
< |
if test -n "$ac_config_commands"; then |
| 9002 |
< |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 9003 |
< |
fi |
| 9004 |
< |
|
| 9005 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 9006 |
< |
|
| 9007 |
< |
ac_cs_usage="\ |
| 9008 |
< |
\`$as_me' instantiates files from templates according to the |
| 9009 |
< |
current configuration. |
| 9010 |
< |
|
| 9011 |
< |
Usage: $0 [OPTIONS] [FILE]... |
| 9012 |
< |
|
| 9013 |
< |
-h, --help print this help, then exit |
| 9014 |
< |
-V, --version print version number, then exit |
| 9015 |
< |
-q, --quiet do not print progress messages |
| 9016 |
< |
-d, --debug don't remove temporary files |
| 9017 |
< |
--recheck update $as_me by reconfiguring in the same conditions |
| 9018 |
< |
--file=FILE[:TEMPLATE] |
| 9019 |
< |
instantiate the configuration file FILE |
| 9020 |
< |
--header=FILE[:TEMPLATE] |
| 9021 |
< |
instantiate the configuration header FILE |
| 9022 |
< |
|
| 9023 |
< |
Configuration files: |
| 9024 |
< |
$config_files |
| 9025 |
< |
|
| 9026 |
< |
Configuration headers: |
| 9027 |
< |
$config_headers |
| 9028 |
< |
|
| 9029 |
< |
Configuration links: |
| 9030 |
< |
$config_links |
| 9031 |
< |
|
| 9032 |
< |
Report bugs to <bug-autoconf@gnu.org>." |
| 9033 |
< |
_ACEOF |
| 9034 |
< |
|
| 9035 |
< |
cat >>$CONFIG_STATUS <<_ACEOF |
| 9036 |
< |
ac_cs_version="\\ |
| 9037 |
< |
OOPSE config.status 2.0 |
| 9038 |
< |
configured by $0, generated by GNU Autoconf 2.59, |
| 9039 |
< |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 9040 |
< |
|
| 9041 |
< |
Copyright (C) 2003 Free Software Foundation, Inc. |
| 9042 |
< |
This config.status script is free software; the Free Software Foundation |
| 9043 |
< |
gives unlimited permission to copy, distribute and modify it." |
| 9044 |
< |
srcdir=$srcdir |
| 9045 |
< |
INSTALL="$INSTALL" |
| 9046 |
< |
_ACEOF |
| 9047 |
< |
|
| 9048 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 9049 |
< |
# If no file are specified by the user, then we need to provide default |
| 9050 |
< |
# value. By we need to know if files were specified by the user. |
| 9051 |
< |
ac_need_defaults=: |
| 9052 |
< |
while test $# != 0 |
| 9053 |
< |
do |
| 9054 |
< |
case $1 in |
| 9055 |
< |
--*=*) |
| 9056 |
< |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 9057 |
< |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 9058 |
< |
ac_shift=: |
| 9059 |
< |
;; |
| 9060 |
< |
-*) |
| 9061 |
< |
ac_option=$1 |
| 9062 |
< |
ac_optarg=$2 |
| 9063 |
< |
ac_shift=shift |
| 9064 |
< |
;; |
| 9065 |
< |
*) # This is not an option, so the user has probably given explicit |
| 9066 |
< |
# arguments. |
| 9067 |
< |
ac_option=$1 |
| 9068 |
< |
ac_need_defaults=false;; |
| 9069 |
< |
esac |
| 9070 |
< |
|
| 9071 |
< |
case $ac_option in |
| 9072 |
< |
# Handling of the options. |
| 9073 |
< |
_ACEOF |
| 9074 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 9075 |
< |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 9076 |
< |
ac_cs_recheck=: ;; |
| 9077 |
< |
--version | --vers* | -V ) |
| 9078 |
< |
echo "$ac_cs_version"; exit 0 ;; |
| 9079 |
< |
--he | --h) |
| 9080 |
< |
# Conflict between --help and --header |
| 9081 |
< |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 9082 |
< |
Try \`$0 --help' for more information." >&5 |
| 9083 |
< |
echo "$as_me: error: ambiguous option: $1 |
| 9084 |
< |
Try \`$0 --help' for more information." >&2;} |
| 9085 |
< |
{ (exit 1); exit 1; }; };; |
| 9086 |
< |
--help | --hel | -h ) |
| 9087 |
< |
echo "$ac_cs_usage"; exit 0 ;; |
| 9088 |
< |
--debug | --d* | -d ) |
| 9089 |
< |
debug=: ;; |
| 9090 |
< |
--file | --fil | --fi | --f ) |
| 9091 |
< |
$ac_shift |
| 9092 |
< |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 9093 |
< |
ac_need_defaults=false;; |
| 9094 |
< |
--header | --heade | --head | --hea ) |
| 9095 |
< |
$ac_shift |
| 9096 |
< |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 9097 |
< |
ac_need_defaults=false;; |
| 9098 |
< |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 9099 |
< |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 9100 |
< |
ac_cs_silent=: ;; |
| 9101 |
< |
|
| 9102 |
< |
# This is an error. |
| 9103 |
< |
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 9104 |
< |
Try \`$0 --help' for more information." >&5 |
| 9105 |
< |
echo "$as_me: error: unrecognized option: $1 |
| 9106 |
< |
Try \`$0 --help' for more information." >&2;} |
| 9107 |
< |
{ (exit 1); exit 1; }; } ;; |
| 9108 |
< |
|
| 9109 |
< |
*) ac_config_targets="$ac_config_targets $1" ;; |
| 9110 |
< |
|
| 9111 |
< |
esac |
| 9112 |
< |
shift |
| 9113 |
< |
done |
| 9114 |
< |
|
| 9115 |
< |
ac_configure_extra_args= |
| 9116 |
< |
|
| 9117 |
< |
if $ac_cs_silent; then |
| 9118 |
< |
exec 6>/dev/null |
| 9119 |
< |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 9120 |
< |
fi |
| 9121 |
< |
|
| 9122 |
< |
_ACEOF |
| 9123 |
< |
cat >>$CONFIG_STATUS <<_ACEOF |
| 9124 |
< |
if \$ac_cs_recheck; then |
| 9125 |
< |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 9126 |
< |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 9127 |
< |
fi |
| 9128 |
< |
|
| 9129 |
< |
_ACEOF |
| 9130 |
< |
|
| 9131 |
< |
|
| 9132 |
< |
|
| 9133 |
< |
|
| 9134 |
< |
|
| 9135 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 9136 |
< |
for ac_config_target in $ac_config_targets |
| 9137 |
< |
do |
| 9138 |
< |
case "$ac_config_target" in |
| 9139 |
< |
# Handling of arguments. |
| 9140 |
< |
"make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;; |
| 9141 |
< |
"src/utils/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/utils/getopt.h:src/utils/gnugetopt.h" ;; |
| 9142 |
< |
"src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 9143 |
< |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 9144 |
< |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 9145 |
< |
{ (exit 1); exit 1; }; };; |
| 9146 |
< |
esac |
| 9147 |
< |
done |
| 9148 |
< |
|
| 9149 |
< |
# If the user did not use the arguments to specify the items to instantiate, |
| 9150 |
< |
# then the envvar interface is used. Set only those that are not. |
| 9151 |
< |
# We use the long form for the default assignment because of an extremely |
| 9152 |
< |
# bizarre bug on SunOS 4.1.3. |
| 9153 |
< |
if $ac_need_defaults; then |
| 9154 |
< |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 9155 |
< |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 9156 |
< |
test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
| 9157 |
< |
fi |
| 9158 |
< |
|
| 9159 |
< |
# Have a temporary directory for convenience. Make it in the build tree |
| 9160 |
< |
# simply because there is no reason to put it here, and in addition, |
| 9161 |
< |
# creating and moving files from /tmp can sometimes cause problems. |
| 9162 |
< |
# Create a temporary directory, and hook for its removal unless debugging. |
| 9163 |
< |
$debug || |
| 9164 |
< |
{ |
| 9165 |
< |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 9166 |
< |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 9167 |
< |
} |
| 9168 |
< |
|
| 9169 |
< |
# Create a (secure) tmp directory for tmp files. |
| 9170 |
< |
|
| 9171 |
< |
{ |
| 9172 |
< |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 9173 |
< |
test -n "$tmp" && test -d "$tmp" |
| 9174 |
< |
} || |
| 9175 |
< |
{ |
| 9176 |
< |
tmp=./confstat$$-$RANDOM |
| 9177 |
< |
(umask 077 && mkdir $tmp) |
| 9178 |
< |
} || |
| 9179 |
< |
{ |
| 9180 |
< |
echo "$me: cannot create a temporary directory in ." >&2 |
| 9181 |
< |
{ (exit 1); exit 1; } |
| 9182 |
< |
} |
| 9183 |
< |
|
| 9184 |
< |
_ACEOF |
| 9185 |
< |
|
| 9186 |
< |
cat >>$CONFIG_STATUS <<_ACEOF |
| 9187 |
< |
|
| 9188 |
< |
# |
| 9189 |
< |
# CONFIG_FILES section. |
| 9190 |
< |
# |
| 9191 |
< |
|
| 9192 |
< |
# No need to generate the scripts if there are no CONFIG_FILES. |
| 9193 |
< |
# This happens for instance when ./config.status config.h |
| 9194 |
< |
if test -n "\$CONFIG_FILES"; then |
| 9195 |
< |
# Protect against being on the right side of a sed subst in config.status. |
| 9196 |
< |
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 9197 |
< |
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 9198 |
< |
s,@SHELL@,$SHELL,;t t |
| 9199 |
< |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 9200 |
< |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 9201 |
< |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 9202 |
< |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 9203 |
< |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 9204 |
< |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 9205 |
< |
s,@exec_prefix@,$exec_prefix,;t t |
| 9206 |
< |
s,@prefix@,$prefix,;t t |
| 9207 |
< |
s,@program_transform_name@,$program_transform_name,;t t |
| 9208 |
< |
s,@bindir@,$bindir,;t t |
| 9209 |
< |
s,@sbindir@,$sbindir,;t t |
| 9210 |
< |
s,@libexecdir@,$libexecdir,;t t |
| 9211 |
< |
s,@datadir@,$datadir,;t t |
| 9212 |
< |
s,@sysconfdir@,$sysconfdir,;t t |
| 9213 |
< |
s,@sharedstatedir@,$sharedstatedir,;t t |
| 9214 |
< |
s,@localstatedir@,$localstatedir,;t t |
| 9215 |
< |
s,@libdir@,$libdir,;t t |
| 9216 |
< |
s,@includedir@,$includedir,;t t |
| 9217 |
< |
s,@oldincludedir@,$oldincludedir,;t t |
| 9218 |
< |
s,@infodir@,$infodir,;t t |
| 9219 |
< |
s,@mandir@,$mandir,;t t |
| 9220 |
< |
s,@build_alias@,$build_alias,;t t |
| 9221 |
< |
s,@host_alias@,$host_alias,;t t |
| 9222 |
< |
s,@target_alias@,$target_alias,;t t |
| 9223 |
< |
s,@DEFS@,$DEFS,;t t |
| 9224 |
< |
s,@ECHO_C@,$ECHO_C,;t t |
| 9225 |
< |
s,@ECHO_N@,$ECHO_N,;t t |
| 9226 |
< |
s,@ECHO_T@,$ECHO_T,;t t |
| 9227 |
< |
s,@LIBS@,$LIBS,;t t |
| 9228 |
< |
s,@PROGNAME@,$PROGNAME,;t t |
| 9229 |
< |
s,@debug@,$debug,;t t |
| 9230 |
< |
s,@build@,$build,;t t |
| 9231 |
< |
s,@build_cpu@,$build_cpu,;t t |
| 9232 |
< |
s,@build_vendor@,$build_vendor,;t t |
| 9233 |
< |
s,@build_os@,$build_os,;t t |
| 9234 |
< |
s,@host@,$host,;t t |
| 9235 |
< |
s,@host_cpu@,$host_cpu,;t t |
| 9236 |
< |
s,@host_vendor@,$host_vendor,;t t |
| 9237 |
< |
s,@host_os@,$host_os,;t t |
| 9238 |
< |
s,@CC@,$CC,;t t |
| 9239 |
< |
s,@CFLAGS@,$CFLAGS,;t t |
| 9240 |
< |
s,@LDFLAGS@,$LDFLAGS,;t t |
| 9241 |
< |
s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 9242 |
< |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 9243 |
< |
s,@EXEEXT@,$EXEEXT,;t t |
| 9244 |
< |
s,@OBJEXT@,$OBJEXT,;t t |
| 9245 |
< |
s,@CXX@,$CXX,;t t |
| 9246 |
< |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 9247 |
< |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 9248 |
< |
s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t |
| 9249 |
< |
s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t |
| 9250 |
< |
s,@F90@,$F90,;t t |
| 9251 |
< |
s,@F90FLAGS@,$F90FLAGS,;t t |
| 9252 |
< |
s,@ac_ct_F90@,$ac_ct_F90,;t t |
| 9253 |
< |
s,@PREPFLAG@,$PREPFLAG,;t t |
| 9254 |
< |
s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t |
| 9255 |
< |
s,@F90LIBS@,$F90LIBS,;t t |
| 9256 |
< |
s,@F90_FUNC@,$F90_FUNC,;t t |
| 9257 |
< |
s,@F90_FUNC_@,$F90_FUNC_,;t t |
| 9258 |
< |
s,@MOD@,$MOD,;t t |
| 9259 |
< |
s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t |
| 9260 |
< |
s,@MODDIRFLAG@,$MODDIRFLAG,;t t |
| 9261 |
< |
s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t |
| 9262 |
< |
s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t |
| 9263 |
< |
s,@CPP@,$CPP,;t t |
| 9264 |
< |
s,@EGREP@,$EGREP,;t t |
| 9265 |
< |
s,@LIBOBJS@,$LIBOBJS,;t t |
| 9266 |
< |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 9267 |
< |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 9268 |
< |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 9269 |
< |
s,@LN_S@,$LN_S,;t t |
| 9270 |
< |
s,@SET_MAKE@,$SET_MAKE,;t t |
| 9271 |
< |
s,@RANLIB@,$RANLIB,;t t |
| 9272 |
< |
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 9273 |
< |
s,@YACC@,$YACC,;t t |
| 9274 |
< |
s,@LEX@,$LEX,;t t |
| 9275 |
< |
s,@LEXLIB@,$LEXLIB,;t t |
| 9276 |
< |
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
| 9277 |
< |
s,@AR@,$AR,;t t |
| 9278 |
< |
s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t |
| 9279 |
< |
s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t |
| 9280 |
< |
s,@MPI_F90_INC@,$MPI_F90_INC,;t t |
| 9281 |
< |
s,@MPI_LIB@,$MPI_LIB,;t t |
| 9282 |
< |
s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t |
| 9283 |
< |
s,@USE_MPI@,$USE_MPI,;t t |
| 9284 |
< |
s,@SPRNG_LIB_DIR@,$SPRNG_LIB_DIR,;t t |
| 9285 |
< |
s,@SPRNG_INC_DIR@,$SPRNG_INC_DIR,;t t |
| 9286 |
< |
s,@SPRNG_LIB@,$SPRNG_LIB,;t t |
| 9287 |
< |
s,@USE_SPRNG@,$USE_SPRNG,;t t |
| 9288 |
< |
s,@MKL_LIBDIR@,$MKL_LIBDIR,;t t |
| 9289 |
< |
s,@MKL_LIB@,$MKL_LIB,;t t |
| 9290 |
< |
s,@MKL_INC@,$MKL_INC,;t t |
| 9291 |
< |
s,@HAVE_MKL@,$HAVE_MKL,;t t |
| 9292 |
< |
s,@DOXYGEN@,$DOXYGEN,;t t |
| 9293 |
< |
s,@DOT@,$DOT,;t t |
| 9294 |
< |
s,@DOC@,$DOC,;t t |
| 9295 |
< |
s,@enable_dot@,$enable_dot,;t t |
| 9296 |
< |
s,@enable_html_docs@,$enable_html_docs,;t t |
| 9297 |
< |
s,@enable_latex_docs@,$enable_latex_docs,;t t |
| 9298 |
< |
s,@BATEXT@,$BATEXT,;t t |
| 9299 |
< |
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
| 9300 |
< |
s,@OOPSE@,$OOPSE,;t t |
| 9301 |
< |
s,@OOPSE_HOME@,$OOPSE_HOME,;t t |
| 9302 |
< |
s,@SUBDIRS@,$SUBDIRS,;t t |
| 9303 |
< |
s,@FFLAGS@,$FFLAGS,;t t |
| 9304 |
< |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 9305 |
< |
CEOF |
| 9306 |
< |
|
| 9307 |
< |
_ACEOF |
| 9308 |
< |
|
| 9309 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 9310 |
< |
# Split the substitutions into bite-sized pieces for seds with |
| 9311 |
< |
# small command number limits, like on Digital OSF/1 and HP-UX. |
| 9312 |
< |
ac_max_sed_lines=48 |
| 9313 |
< |
ac_sed_frag=1 # Number of current file. |
| 9314 |
< |
ac_beg=1 # First line for current file. |
| 9315 |
< |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 9316 |
< |
ac_more_lines=: |
| 9317 |
< |
ac_sed_cmds= |
| 9318 |
< |
while $ac_more_lines; do |
| 9319 |
< |
if test $ac_beg -gt 1; then |
| 9320 |
< |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 9321 |
< |
else |
| 9322 |
< |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 9323 |
< |
fi |
| 9324 |
< |
if test ! -s $tmp/subs.frag; then |
| 9325 |
< |
ac_more_lines=false |
| 9326 |
< |
else |
| 9327 |
< |
# The purpose of the label and of the branching condition is to |
| 9328 |
< |
# speed up the sed processing (if there are no `@' at all, there |
| 9329 |
< |
# is no need to browse any of the substitutions). |
| 9330 |
< |
# These are the two extra sed commands mentioned above. |
| 9331 |
< |
(echo ':t |
| 9332 |
< |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 9333 |
< |
if test -z "$ac_sed_cmds"; then |
| 9334 |
< |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 9335 |
< |
else |
| 9336 |
< |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 9337 |
< |
fi |
| 9338 |
< |
ac_sed_frag=`expr $ac_sed_frag + 1` |
| 9339 |
< |
ac_beg=$ac_end |
| 9340 |
< |
ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 9341 |
< |
fi |
| 9342 |
< |
done |
| 9343 |
< |
if test -z "$ac_sed_cmds"; then |
| 9344 |
< |
ac_sed_cmds=cat |
| 9345 |
< |
fi |
| 9346 |
< |
fi # test -n "$CONFIG_FILES" |
| 9347 |
< |
|
| 9348 |
< |
_ACEOF |
| 9349 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 9350 |
< |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 9351 |
< |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 9352 |
< |
case $ac_file in |
| 9353 |
< |
- | *:- | *:-:* ) # input from stdin |
| 9354 |
< |
cat >$tmp/stdin |
| 9355 |
< |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9356 |
< |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 9357 |
< |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9358 |
< |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 9359 |
< |
* ) ac_file_in=$ac_file.in ;; |
| 9360 |
< |
esac |
| 9361 |
< |
|
| 9362 |
< |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 9363 |
< |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 9364 |
< |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9365 |
< |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 9366 |
< |
X"$ac_file" : 'X\(//\)$' \| \ |
| 9367 |
< |
X"$ac_file" : 'X\(/\)' \| \ |
| 9368 |
< |
. : '\(.\)' 2>/dev/null || |
| 9369 |
< |
echo X"$ac_file" | |
| 9370 |
< |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9371 |
< |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9372 |
< |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 9373 |
< |
/^X\(\/\).*/{ s//\1/; q; } |
| 9374 |
< |
s/.*/./; q'` |
| 9375 |
< |
{ if $as_mkdir_p; then |
| 9376 |
< |
mkdir -p "$ac_dir" |
| 9377 |
< |
else |
| 9378 |
< |
as_dir="$ac_dir" |
| 9379 |
< |
as_dirs= |
| 9380 |
< |
while test ! -d "$as_dir"; do |
| 9381 |
< |
as_dirs="$as_dir $as_dirs" |
| 9382 |
< |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 9383 |
< |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9384 |
< |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 9385 |
< |
X"$as_dir" : 'X\(//\)$' \| \ |
| 9386 |
< |
X"$as_dir" : 'X\(/\)' \| \ |
| 9387 |
< |
. : '\(.\)' 2>/dev/null || |
| 9388 |
< |
echo X"$as_dir" | |
| 9389 |
< |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9390 |
< |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9391 |
< |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 9392 |
< |
/^X\(\/\).*/{ s//\1/; q; } |
| 9393 |
< |
s/.*/./; q'` |
| 9394 |
< |
done |
| 9395 |
< |
test ! -n "$as_dirs" || mkdir $as_dirs |
| 9396 |
< |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 9397 |
< |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 9398 |
< |
{ (exit 1); exit 1; }; }; } |
| 9399 |
< |
|
| 9400 |
< |
ac_builddir=. |
| 9401 |
< |
|
| 9402 |
< |
if test "$ac_dir" != .; then |
| 9403 |
< |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 9404 |
< |
# A "../" for each directory in $ac_dir_suffix. |
| 9405 |
< |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 9406 |
< |
else |
| 9407 |
< |
ac_dir_suffix= ac_top_builddir= |
| 9408 |
< |
fi |
| 9409 |
< |
|
| 9410 |
< |
case $srcdir in |
| 9411 |
< |
.) # No --srcdir option. We are building in place. |
| 9412 |
< |
ac_srcdir=. |
| 9413 |
< |
if test -z "$ac_top_builddir"; then |
| 9414 |
< |
ac_top_srcdir=. |
| 9415 |
< |
else |
| 9416 |
< |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 9417 |
< |
fi ;; |
| 9418 |
< |
[\\/]* | ?:[\\/]* ) # Absolute path. |
| 9419 |
< |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 9420 |
< |
ac_top_srcdir=$srcdir ;; |
| 9421 |
< |
*) # Relative path. |
| 9422 |
< |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 9423 |
< |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 9424 |
< |
esac |
| 9425 |
< |
|
| 9426 |
< |
# Do not use `cd foo && pwd` to compute absolute paths, because |
| 9427 |
< |
# the directories may not exist. |
| 9428 |
< |
case `pwd` in |
| 9429 |
< |
.) ac_abs_builddir="$ac_dir";; |
| 9430 |
< |
*) |
| 9431 |
< |
case "$ac_dir" in |
| 9432 |
< |
.) ac_abs_builddir=`pwd`;; |
| 9433 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 9434 |
< |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 9435 |
< |
esac;; |
| 9436 |
< |
esac |
| 9437 |
< |
case $ac_abs_builddir in |
| 9438 |
< |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 9439 |
< |
*) |
| 9440 |
< |
case ${ac_top_builddir}. in |
| 9441 |
< |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
| 9442 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 9443 |
< |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 9444 |
< |
esac;; |
| 9445 |
< |
esac |
| 9446 |
< |
case $ac_abs_builddir in |
| 9447 |
< |
.) ac_abs_srcdir=$ac_srcdir;; |
| 9448 |
< |
*) |
| 9449 |
< |
case $ac_srcdir in |
| 9450 |
< |
.) ac_abs_srcdir=$ac_abs_builddir;; |
| 9451 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 9452 |
< |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 9453 |
< |
esac;; |
| 9454 |
< |
esac |
| 9455 |
< |
case $ac_abs_builddir in |
| 9456 |
< |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 9457 |
< |
*) |
| 9458 |
< |
case $ac_top_srcdir in |
| 9459 |
< |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 9460 |
< |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 9461 |
< |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 9462 |
< |
esac;; |
| 9463 |
< |
esac |
| 9464 |
< |
|
| 9465 |
< |
|
| 9466 |
< |
case $INSTALL in |
| 9467 |
< |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 9468 |
< |
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 9469 |
< |
esac |
| 9470 |
< |
|
| 9471 |
< |
if test x"$ac_file" != x-; then |
| 9472 |
< |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 9473 |
< |
echo "$as_me: creating $ac_file" >&6;} |
| 9474 |
< |
rm -f "$ac_file" |
| 9475 |
< |
fi |
| 9476 |
< |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
| 9477 |
< |
# use $as_me), people would be surprised to read: |
| 9478 |
< |
# /* config.h. Generated by config.status. */ |
| 9479 |
< |
if test x"$ac_file" = x-; then |
| 9480 |
< |
configure_input= |
| 9481 |
< |
else |
| 9482 |
< |
configure_input="$ac_file. " |
| 9483 |
< |
fi |
| 9484 |
< |
configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 9485 |
< |
sed 's,.*/,,'` by configure." |
| 9486 |
< |
|
| 9487 |
< |
# First look for the input files in the build tree, otherwise in the |
| 9488 |
< |
# src tree. |
| 9489 |
< |
ac_file_inputs=`IFS=: |
| 9490 |
< |
for f in $ac_file_in; do |
| 9491 |
< |
case $f in |
| 9492 |
< |
-) echo $tmp/stdin ;; |
| 9493 |
< |
[\\/$]*) |
| 9494 |
< |
# Absolute (can't be DOS-style, as IFS=:) |
| 9495 |
< |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 9496 |
< |
echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9497 |
< |
{ (exit 1); exit 1; }; } |
| 9498 |
< |
echo "$f";; |
| 9499 |
< |
*) # Relative |
| 9500 |
< |
if test -f "$f"; then |
| 9501 |
< |
# Build tree |
| 9502 |
< |
echo "$f" |
| 9503 |
< |
elif test -f "$srcdir/$f"; then |
| 9504 |
< |
# Source tree |
| 9505 |
< |
echo "$srcdir/$f" |
| 9506 |
< |
else |
| 9507 |
< |
# /dev/null tree |
| 9508 |
< |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 9509 |
< |
echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9510 |
< |
{ (exit 1); exit 1; }; } |
| 9511 |
< |
fi;; |
| 9512 |
< |
esac |
| 9513 |
< |
done` || { (exit 1); exit 1; } |
| 9514 |
< |
_ACEOF |
| 9515 |
< |
cat >>$CONFIG_STATUS <<_ACEOF |
| 9516 |
< |
sed "$ac_vpsub |
| 9517 |
< |
$extrasub |
| 9518 |
< |
_ACEOF |
| 9519 |
< |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 9520 |
< |
:t |
| 9521 |
< |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 9522 |
< |
s,@configure_input@,$configure_input,;t t |
| 9523 |
< |
s,@srcdir@,$ac_srcdir,;t t |
| 9524 |
< |
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 9525 |
< |
s,@top_srcdir@,$ac_top_srcdir,;t t |
| 9526 |
< |
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 9527 |
< |
s,@builddir@,$ac_builddir,;t t |
| 9528 |
< |
s,@abs_builddir@,$ac_abs_builddir,;t t |
| 9529 |
< |
s,@top_builddir@,$ac_top_builddir,;t t |
| 9530 |
< |
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 9531 |
< |
s,@INSTALL@,$ac_INSTALL,;t t |
| 9532 |
< |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 9533 |
< |
rm -f $tmp/stdin |
| 9534 |
< |
if test x"$ac_file" != x-; then |
| 9535 |
< |
mv $tmp/out $ac_file |
| 9536 |
< |
else |
| 9537 |
< |
cat $tmp/out |
| 9538 |
< |
rm -f $tmp/out |
| 9539 |
< |
fi |
| 9540 |
< |
|
| 5922 |
> |
ac_cpp_err=yes |
| 5923 |
> |
fi |
| 5924 |
> |
if test -z "$ac_cpp_err"; then |
| 5925 |
> |
ac_header_preproc=yes |
| 5926 |
> |
else |
| 5927 |
> |
echo "$as_me: failed program was:" >&5 |
| 5928 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5929 |
> |
|
| 5930 |
> |
ac_header_preproc=no |
| 5931 |
> |
fi |
| 5932 |
> |
rm -f conftest.err conftest.$ac_ext |
| 5933 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5934 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5935 |
> |
|
| 5936 |
> |
# So? What about this header? |
| 5937 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 5938 |
> |
yes:no: ) |
| 5939 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5940 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5941 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5942 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5943 |
> |
ac_header_preproc=yes |
| 5944 |
> |
;; |
| 5945 |
> |
no:yes:* ) |
| 5946 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5947 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5948 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5949 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5950 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5951 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5952 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5953 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5954 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5955 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5956 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5957 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 5958 |
> |
( |
| 5959 |
> |
cat <<\_ASBOX |
| 5960 |
> |
## ------------------------------ ## |
| 5961 |
> |
## Report this to gezelter@nd.edu ## |
| 5962 |
> |
## ------------------------------ ## |
| 5963 |
> |
_ASBOX |
| 5964 |
> |
) | |
| 5965 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
| 5966 |
> |
;; |
| 5967 |
> |
esac |
| 5968 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5969 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5970 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5971 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5972 |
> |
else |
| 5973 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
| 5974 |
> |
fi |
| 5975 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5976 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5977 |
> |
|
| 5978 |
> |
fi |
| 5979 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5980 |
> |
cat >>confdefs.h <<_ACEOF |
| 5981 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5982 |
> |
_ACEOF |
| 5983 |
> |
|
| 5984 |
> |
fi |
| 5985 |
> |
|
| 5986 |
> |
done |
| 5987 |
> |
|
| 5988 |
> |
|
| 5989 |
> |
fi |
| 5990 |
> |
|
| 5991 |
> |
|
| 5992 |
> |
|
| 5993 |
> |
|
| 5994 |
> |
for ac_header in cmath |
| 5995 |
> |
do |
| 5996 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5997 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5998 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5999 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6000 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6001 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6002 |
> |
fi |
| 6003 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6004 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6005 |
> |
else |
| 6006 |
> |
# Is the header compilable? |
| 6007 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6008 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6009 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6010 |
> |
/* confdefs.h. */ |
| 6011 |
> |
_ACEOF |
| 6012 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6013 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6014 |
> |
/* end confdefs.h. */ |
| 6015 |
> |
$ac_includes_default |
| 6016 |
> |
#include <$ac_header> |
| 6017 |
> |
_ACEOF |
| 6018 |
> |
rm -f conftest.$ac_objext |
| 6019 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6020 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 6021 |
> |
ac_status=$? |
| 6022 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6023 |
> |
rm -f conftest.er1 |
| 6024 |
> |
cat conftest.err >&5 |
| 6025 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6026 |
> |
(exit $ac_status); } && |
| 6027 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 6028 |
> |
|| test ! -s conftest.err' |
| 6029 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6030 |
> |
(eval $ac_try) 2>&5 |
| 6031 |
> |
ac_status=$? |
| 6032 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6033 |
> |
(exit $ac_status); }; } && |
| 6034 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 6035 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6036 |
> |
(eval $ac_try) 2>&5 |
| 6037 |
> |
ac_status=$? |
| 6038 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6039 |
> |
(exit $ac_status); }; }; then |
| 6040 |
> |
ac_header_compiler=yes |
| 6041 |
> |
else |
| 6042 |
> |
echo "$as_me: failed program was:" >&5 |
| 6043 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6044 |
> |
|
| 6045 |
> |
ac_header_compiler=no |
| 6046 |
> |
fi |
| 6047 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6048 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6049 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6050 |
> |
|
| 6051 |
> |
# Is the header present? |
| 6052 |
> |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6053 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6054 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6055 |
> |
/* confdefs.h. */ |
| 6056 |
> |
_ACEOF |
| 6057 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6058 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6059 |
> |
/* end confdefs.h. */ |
| 6060 |
> |
#include <$ac_header> |
| 6061 |
> |
_ACEOF |
| 6062 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6063 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6064 |
> |
ac_status=$? |
| 6065 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6066 |
> |
rm -f conftest.er1 |
| 6067 |
> |
cat conftest.err >&5 |
| 6068 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6069 |
> |
(exit $ac_status); } >/dev/null; then |
| 6070 |
> |
if test -s conftest.err; then |
| 6071 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6072 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6073 |
> |
else |
| 6074 |
> |
ac_cpp_err= |
| 6075 |
> |
fi |
| 6076 |
> |
else |
| 6077 |
> |
ac_cpp_err=yes |
| 6078 |
> |
fi |
| 6079 |
> |
if test -z "$ac_cpp_err"; then |
| 6080 |
> |
ac_header_preproc=yes |
| 6081 |
> |
else |
| 6082 |
> |
echo "$as_me: failed program was:" >&5 |
| 6083 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6084 |
> |
|
| 6085 |
> |
ac_header_preproc=no |
| 6086 |
> |
fi |
| 6087 |
> |
rm -f conftest.err conftest.$ac_ext |
| 6088 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6089 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6090 |
> |
|
| 6091 |
> |
# So? What about this header? |
| 6092 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 6093 |
> |
yes:no: ) |
| 6094 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6095 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6096 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6097 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6098 |
> |
ac_header_preproc=yes |
| 6099 |
> |
;; |
| 6100 |
> |
no:yes:* ) |
| 6101 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6102 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6103 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6104 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6105 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6106 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6107 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6108 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6109 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6110 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6111 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6112 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 6113 |
> |
( |
| 6114 |
> |
cat <<\_ASBOX |
| 6115 |
> |
## ------------------------------ ## |
| 6116 |
> |
## Report this to gezelter@nd.edu ## |
| 6117 |
> |
## ------------------------------ ## |
| 6118 |
> |
_ASBOX |
| 6119 |
> |
) | |
| 6120 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
| 6121 |
> |
;; |
| 6122 |
> |
esac |
| 6123 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6124 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6125 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6126 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6127 |
> |
else |
| 6128 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
| 6129 |
> |
fi |
| 6130 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6131 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6132 |
> |
|
| 6133 |
> |
fi |
| 6134 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6135 |
> |
cat >>confdefs.h <<_ACEOF |
| 6136 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6137 |
> |
_ACEOF |
| 6138 |
> |
|
| 6139 |
> |
fi |
| 6140 |
> |
|
| 6141 |
> |
done |
| 6142 |
> |
|
| 6143 |
> |
|
| 6144 |
> |
|
| 6145 |
> |
|
| 6146 |
> |
echo "$as_me:$LINENO: checking for C++ iostream in namespace std" >&5 |
| 6147 |
> |
echo $ECHO_N "checking for C++ iostream in namespace std... $ECHO_C" >&6 |
| 6148 |
> |
if test "${ac_cv_cxx_have_std_iostream+set}" = set; then |
| 6149 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6150 |
> |
else |
| 6151 |
> |
|
| 6152 |
> |
ac_cv_cxx_have_std_iostream=no |
| 6153 |
> |
ac_cv_cxx_need_use_std_iostream=no |
| 6154 |
> |
if test "x$ac_cv_cxx_namespaces" = xyes; then |
| 6155 |
> |
|
| 6156 |
> |
|
| 6157 |
> |
ac_ext=cc |
| 6158 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 6159 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6160 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6161 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6162 |
> |
|
| 6163 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6164 |
> |
/* confdefs.h. */ |
| 6165 |
> |
_ACEOF |
| 6166 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6167 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6168 |
> |
/* end confdefs.h. */ |
| 6169 |
> |
|
| 6170 |
> |
#ifdef HAVE_IOSTREAM |
| 6171 |
> |
#include <iostream> |
| 6172 |
> |
#else |
| 6173 |
> |
#include <iostream.h> |
| 6174 |
> |
#endif |
| 6175 |
> |
|
| 6176 |
> |
int |
| 6177 |
> |
main () |
| 6178 |
> |
{ |
| 6179 |
> |
std::cout<<"Hello World"<<std::endl;return 0; |
| 6180 |
> |
; |
| 6181 |
> |
return 0; |
| 6182 |
> |
} |
| 6183 |
> |
_ACEOF |
| 6184 |
> |
rm -f conftest.$ac_objext |
| 6185 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6186 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 6187 |
> |
ac_status=$? |
| 6188 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6189 |
> |
rm -f conftest.er1 |
| 6190 |
> |
cat conftest.err >&5 |
| 6191 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6192 |
> |
(exit $ac_status); } && |
| 6193 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 6194 |
> |
|| test ! -s conftest.err' |
| 6195 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6196 |
> |
(eval $ac_try) 2>&5 |
| 6197 |
> |
ac_status=$? |
| 6198 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6199 |
> |
(exit $ac_status); }; } && |
| 6200 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 6201 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6202 |
> |
(eval $ac_try) 2>&5 |
| 6203 |
> |
ac_status=$? |
| 6204 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6205 |
> |
(exit $ac_status); }; }; then |
| 6206 |
> |
ac_cv_cxx_have_std_iostream=yes |
| 6207 |
> |
else |
| 6208 |
> |
echo "$as_me: failed program was:" >&5 |
| 6209 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6210 |
> |
|
| 6211 |
> |
fi |
| 6212 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6213 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6214 |
> |
/* confdefs.h. */ |
| 6215 |
> |
_ACEOF |
| 6216 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6217 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6218 |
> |
/* end confdefs.h. */ |
| 6219 |
> |
|
| 6220 |
> |
#define __USE_STD_IOSTREAM 1 |
| 6221 |
> |
#ifdef HAVE_IOSTREAM |
| 6222 |
> |
#include <iostream> |
| 6223 |
> |
#else |
| 6224 |
> |
#include <iostream.h> |
| 6225 |
> |
#endif |
| 6226 |
> |
|
| 6227 |
> |
int |
| 6228 |
> |
main () |
| 6229 |
> |
{ |
| 6230 |
> |
std::cout<<"Hello World"<<std::endl;return 0; |
| 6231 |
> |
; |
| 6232 |
> |
return 0; |
| 6233 |
> |
} |
| 6234 |
> |
_ACEOF |
| 6235 |
> |
rm -f conftest.$ac_objext |
| 6236 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6237 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 6238 |
> |
ac_status=$? |
| 6239 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6240 |
> |
rm -f conftest.er1 |
| 6241 |
> |
cat conftest.err >&5 |
| 6242 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6243 |
> |
(exit $ac_status); } && |
| 6244 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 6245 |
> |
|| test ! -s conftest.err' |
| 6246 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6247 |
> |
(eval $ac_try) 2>&5 |
| 6248 |
> |
ac_status=$? |
| 6249 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6250 |
> |
(exit $ac_status); }; } && |
| 6251 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 6252 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6253 |
> |
(eval $ac_try) 2>&5 |
| 6254 |
> |
ac_status=$? |
| 6255 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6256 |
> |
(exit $ac_status); }; }; then |
| 6257 |
> |
ac_cv_cxx_have_std_iostream=yes;ac_cv_cxx_need_use_std_iostream=yes |
| 6258 |
> |
else |
| 6259 |
> |
echo "$as_me: failed program was:" >&5 |
| 6260 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6261 |
> |
|
| 6262 |
> |
fi |
| 6263 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6264 |
> |
ac_ext=cc |
| 6265 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 6266 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6267 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6268 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6269 |
> |
|
| 6270 |
> |
fi |
| 6271 |
> |
|
| 6272 |
> |
fi |
| 6273 |
> |
echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iostream" >&5 |
| 6274 |
> |
echo "${ECHO_T}$ac_cv_cxx_have_std_iostream" >&6 |
| 6275 |
> |
if test "$ac_cv_cxx_have_std_iostream" = yes; then |
| 6276 |
> |
|
| 6277 |
> |
cat >>confdefs.h <<\_ACEOF |
| 6278 |
> |
#define HAVE_STD_IOSTREAM 1 |
| 6279 |
> |
_ACEOF |
| 6280 |
> |
|
| 6281 |
> |
fi |
| 6282 |
> |
if test "$ac_cv_cxx_need_use_std_iostream" = yes; then |
| 6283 |
> |
|
| 6284 |
> |
cat >>confdefs.h <<\_ACEOF |
| 6285 |
> |
#define __USE_STD_IOSTREAM 1 |
| 6286 |
> |
_ACEOF |
| 6287 |
> |
|
| 6288 |
> |
fi |
| 6289 |
> |
|
| 6290 |
> |
|
| 6291 |
> |
|
| 6292 |
> |
|
| 6293 |
> |
echo "$as_me:$LINENO: checking for C++ Standard Template Library in namespace std." >&5 |
| 6294 |
> |
echo $ECHO_N "checking for C++ Standard Template Library in namespace std.... $ECHO_C" >&6 |
| 6295 |
> |
if test "${ac_cv_cxx_have_std_stl+set}" = set; then |
| 6296 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6297 |
> |
else |
| 6298 |
> |
|
| 6299 |
> |
ac_cv_cxx_have_std_stl=no |
| 6300 |
> |
if test "x$ac_cv_cxx_namespaces" = xyes; then |
| 6301 |
> |
|
| 6302 |
> |
|
| 6303 |
> |
ac_ext=cc |
| 6304 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 6305 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6306 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6307 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6308 |
> |
|
| 6309 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6310 |
> |
/* confdefs.h. */ |
| 6311 |
> |
_ACEOF |
| 6312 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6313 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6314 |
> |
/* end confdefs.h. */ |
| 6315 |
> |
#include <list> |
| 6316 |
> |
|
| 6317 |
> |
int |
| 6318 |
> |
main () |
| 6319 |
> |
{ |
| 6320 |
> |
std::list<int> foo;return 0; |
| 6321 |
> |
; |
| 6322 |
> |
return 0; |
| 6323 |
> |
} |
| 6324 |
> |
_ACEOF |
| 6325 |
> |
rm -f conftest.$ac_objext |
| 6326 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6327 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 6328 |
> |
ac_status=$? |
| 6329 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6330 |
> |
rm -f conftest.er1 |
| 6331 |
> |
cat conftest.err >&5 |
| 6332 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6333 |
> |
(exit $ac_status); } && |
| 6334 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 6335 |
> |
|| test ! -s conftest.err' |
| 6336 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6337 |
> |
(eval $ac_try) 2>&5 |
| 6338 |
> |
ac_status=$? |
| 6339 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6340 |
> |
(exit $ac_status); }; } && |
| 6341 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 6342 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6343 |
> |
(eval $ac_try) 2>&5 |
| 6344 |
> |
ac_status=$? |
| 6345 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6346 |
> |
(exit $ac_status); }; }; then |
| 6347 |
> |
ac_cv_cxx_have_std_stl=yes |
| 6348 |
> |
else |
| 6349 |
> |
echo "$as_me: failed program was:" >&5 |
| 6350 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6351 |
> |
|
| 6352 |
> |
fi |
| 6353 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6354 |
> |
ac_ext=cc |
| 6355 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 6356 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6357 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6358 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6359 |
> |
|
| 6360 |
> |
fi |
| 6361 |
> |
|
| 6362 |
> |
fi |
| 6363 |
> |
echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_stl" >&5 |
| 6364 |
> |
echo "${ECHO_T}$ac_cv_cxx_have_std_stl" >&6 |
| 6365 |
> |
if test "$ac_cv_cxx_have_std_stl" = yes; then |
| 6366 |
> |
|
| 6367 |
> |
cat >>confdefs.h <<\_ACEOF |
| 6368 |
> |
#define HAVE_STD_STL 1 |
| 6369 |
> |
_ACEOF |
| 6370 |
> |
|
| 6371 |
> |
fi |
| 6372 |
> |
|
| 6373 |
> |
|
| 6374 |
> |
|
| 6375 |
> |
echo "$as_me:$LINENO: checking for fstream::attach()" >&5 |
| 6376 |
> |
echo $ECHO_N "checking for fstream::attach()... $ECHO_C" >&6 |
| 6377 |
> |
if test "${ac_cv_cxx_have_fstream_attach+set}" = set; then |
| 6378 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6379 |
> |
else |
| 6380 |
> |
|
| 6381 |
> |
ac_cv_cxx_have_fstream_attach=no |
| 6382 |
> |
|
| 6383 |
> |
|
| 6384 |
> |
ac_ext=cc |
| 6385 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 6386 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6387 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6388 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6389 |
> |
|
| 6390 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6391 |
> |
/* confdefs.h. */ |
| 6392 |
> |
_ACEOF |
| 6393 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6394 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6395 |
> |
/* end confdefs.h. */ |
| 6396 |
> |
|
| 6397 |
> |
#ifdef HAVE_IOSTREAM |
| 6398 |
> |
#include <fstream> |
| 6399 |
> |
#else |
| 6400 |
> |
#include <fstream.h> |
| 6401 |
> |
#endif |
| 6402 |
> |
#ifdef HAVE_STD_IOSTREAM |
| 6403 |
> |
using namespace std; |
| 6404 |
> |
#endif |
| 6405 |
> |
|
| 6406 |
> |
int |
| 6407 |
> |
main () |
| 6408 |
> |
{ |
| 6409 |
> |
int fd=0;ofstream s;s.attach(fd); |
| 6410 |
> |
; |
| 6411 |
> |
return 0; |
| 6412 |
> |
} |
| 6413 |
> |
_ACEOF |
| 6414 |
> |
rm -f conftest.$ac_objext |
| 6415 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6416 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 6417 |
> |
ac_status=$? |
| 6418 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6419 |
> |
rm -f conftest.er1 |
| 6420 |
> |
cat conftest.err >&5 |
| 6421 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6422 |
> |
(exit $ac_status); } && |
| 6423 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 6424 |
> |
|| test ! -s conftest.err' |
| 6425 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6426 |
> |
(eval $ac_try) 2>&5 |
| 6427 |
> |
ac_status=$? |
| 6428 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6429 |
> |
(exit $ac_status); }; } && |
| 6430 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 6431 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6432 |
> |
(eval $ac_try) 2>&5 |
| 6433 |
> |
ac_status=$? |
| 6434 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6435 |
> |
(exit $ac_status); }; }; then |
| 6436 |
> |
ac_cv_cxx_have_fstream_attach=yes |
| 6437 |
> |
else |
| 6438 |
> |
echo "$as_me: failed program was:" >&5 |
| 6439 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6440 |
> |
|
| 6441 |
> |
fi |
| 6442 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6443 |
> |
ac_ext=cc |
| 6444 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 6445 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6446 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6447 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6448 |
> |
|
| 6449 |
> |
|
| 6450 |
> |
fi |
| 6451 |
> |
echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_attach" >&5 |
| 6452 |
> |
echo "${ECHO_T}$ac_cv_cxx_have_fstream_attach" >&6 |
| 6453 |
> |
if test "$ac_cv_cxx_have_fstream_attach" = yes; then |
| 6454 |
> |
|
| 6455 |
> |
cat >>confdefs.h <<\_ACEOF |
| 6456 |
> |
#define HAVE_FSTREAM_ATTACH 1 |
| 6457 |
> |
_ACEOF |
| 6458 |
> |
|
| 6459 |
> |
fi |
| 6460 |
> |
|
| 6461 |
> |
|
| 6462 |
> |
|
| 6463 |
> |
echo "$as_me:$LINENO: checking for fstream::open()" >&5 |
| 6464 |
> |
echo $ECHO_N "checking for fstream::open()... $ECHO_C" >&6 |
| 6465 |
> |
if test "${ac_cv_cxx_have_fstream_open+set}" = set; then |
| 6466 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6467 |
> |
else |
| 6468 |
> |
|
| 6469 |
> |
ac_cv_cxx_have_fstream_open=no |
| 6470 |
> |
ac_cv_cxx_fstream_open_prot=no |
| 6471 |
> |
|
| 6472 |
> |
|
| 6473 |
> |
ac_ext=cc |
| 6474 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 6475 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6476 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6477 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6478 |
> |
|
| 6479 |
> |
# Try with 2 parameters |
| 6480 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6481 |
> |
/* confdefs.h. */ |
| 6482 |
> |
_ACEOF |
| 6483 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6484 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6485 |
> |
/* end confdefs.h. */ |
| 6486 |
> |
|
| 6487 |
> |
#ifdef HAVE_IOSTREAM |
| 6488 |
> |
#include <fstream> |
| 6489 |
> |
#else |
| 6490 |
> |
#include <fstream.h> |
| 6491 |
> |
#endif |
| 6492 |
> |
#ifdef HAVE_STD_IOSTREAM |
| 6493 |
> |
using namespace std; |
| 6494 |
> |
#endif |
| 6495 |
> |
|
| 6496 |
> |
int |
| 6497 |
> |
main () |
| 6498 |
> |
{ |
| 6499 |
> |
ofstream s;s.open("conftest.txt",ios::out|ios::trunc); |
| 6500 |
> |
; |
| 6501 |
> |
return 0; |
| 6502 |
> |
} |
| 6503 |
> |
_ACEOF |
| 6504 |
> |
rm -f conftest.$ac_objext |
| 6505 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6506 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 6507 |
> |
ac_status=$? |
| 6508 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6509 |
> |
rm -f conftest.er1 |
| 6510 |
> |
cat conftest.err >&5 |
| 6511 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6512 |
> |
(exit $ac_status); } && |
| 6513 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 6514 |
> |
|| test ! -s conftest.err' |
| 6515 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6516 |
> |
(eval $ac_try) 2>&5 |
| 6517 |
> |
ac_status=$? |
| 6518 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6519 |
> |
(exit $ac_status); }; } && |
| 6520 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 6521 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6522 |
> |
(eval $ac_try) 2>&5 |
| 6523 |
> |
ac_status=$? |
| 6524 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6525 |
> |
(exit $ac_status); }; }; then |
| 6526 |
> |
ac_cv_cxx_have_fstream_open=yes |
| 6527 |
> |
else |
| 6528 |
> |
echo "$as_me: failed program was:" >&5 |
| 6529 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6530 |
> |
|
| 6531 |
> |
fi |
| 6532 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6533 |
> |
# Try with mode parameter |
| 6534 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6535 |
> |
/* confdefs.h. */ |
| 6536 |
> |
_ACEOF |
| 6537 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6538 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6539 |
> |
/* end confdefs.h. */ |
| 6540 |
> |
|
| 6541 |
> |
#ifdef HAVE_IOSTREAM |
| 6542 |
> |
#include <fstream> |
| 6543 |
> |
#else |
| 6544 |
> |
#include <fstream.h> |
| 6545 |
> |
#endif |
| 6546 |
> |
#ifdef HAVE_STD_IOSTREAM |
| 6547 |
> |
using namespace std; |
| 6548 |
> |
#endif |
| 6549 |
> |
|
| 6550 |
> |
int |
| 6551 |
> |
main () |
| 6552 |
> |
{ |
| 6553 |
> |
ofstream s;s.open("conftest.txt",ios::out|ios::trunc,0666); |
| 6554 |
> |
; |
| 6555 |
> |
return 0; |
| 6556 |
> |
} |
| 6557 |
> |
_ACEOF |
| 6558 |
> |
rm -f conftest.$ac_objext |
| 6559 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6560 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 6561 |
> |
ac_status=$? |
| 6562 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6563 |
> |
rm -f conftest.er1 |
| 6564 |
> |
cat conftest.err >&5 |
| 6565 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6566 |
> |
(exit $ac_status); } && |
| 6567 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 6568 |
> |
|| test ! -s conftest.err' |
| 6569 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6570 |
> |
(eval $ac_try) 2>&5 |
| 6571 |
> |
ac_status=$? |
| 6572 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6573 |
> |
(exit $ac_status); }; } && |
| 6574 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 6575 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6576 |
> |
(eval $ac_try) 2>&5 |
| 6577 |
> |
ac_status=$? |
| 6578 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6579 |
> |
(exit $ac_status); }; }; then |
| 6580 |
> |
ac_cv_cxx_fstream_open_prot=yes |
| 6581 |
> |
else |
| 6582 |
> |
echo "$as_me: failed program was:" >&5 |
| 6583 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6584 |
> |
|
| 6585 |
> |
fi |
| 6586 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6587 |
> |
ac_ext=cc |
| 6588 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 6589 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6590 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6591 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6592 |
> |
|
| 6593 |
> |
|
| 6594 |
> |
fi |
| 6595 |
> |
echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_open" >&5 |
| 6596 |
> |
echo "${ECHO_T}$ac_cv_cxx_have_fstream_open" >&6 |
| 6597 |
> |
if test "$ac_cv_cxx_have_fstream_open" = yes; then |
| 6598 |
> |
|
| 6599 |
> |
cat >>confdefs.h <<\_ACEOF |
| 6600 |
> |
#define HAVE_FSTREAM_OPEN 1 |
| 6601 |
> |
_ACEOF |
| 6602 |
> |
|
| 6603 |
> |
fi |
| 6604 |
> |
if test "$ac_cv_cxx_fstream_open_prot" = yes; then |
| 6605 |
> |
|
| 6606 |
> |
cat >>confdefs.h <<\_ACEOF |
| 6607 |
> |
#define FSTREAM_OPEN_PROT 1 |
| 6608 |
> |
_ACEOF |
| 6609 |
> |
|
| 6610 |
> |
fi |
| 6611 |
> |
|
| 6612 |
> |
|
| 6613 |
> |
|
| 6614 |
> |
|
| 6615 |
> |
echo "$as_me:$LINENO: checking for asin in -lm" >&5 |
| 6616 |
> |
echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6 |
| 6617 |
> |
if test "${ac_cv_lib_m_asin+set}" = set; then |
| 6618 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6619 |
> |
else |
| 6620 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 6621 |
> |
LIBS="-lm $LIBS" |
| 6622 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6623 |
> |
/* confdefs.h. */ |
| 6624 |
> |
_ACEOF |
| 6625 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6626 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6627 |
> |
/* end confdefs.h. */ |
| 6628 |
> |
|
| 6629 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 6630 |
> |
#ifdef __cplusplus |
| 6631 |
> |
extern "C" |
| 6632 |
> |
#endif |
| 6633 |
> |
/* We use char because int might match the return type of a gcc2 |
| 6634 |
> |
builtin and then its argument prototype would still apply. */ |
| 6635 |
> |
char asin (); |
| 6636 |
> |
int |
| 6637 |
> |
main () |
| 6638 |
> |
{ |
| 6639 |
> |
asin (); |
| 6640 |
> |
; |
| 6641 |
> |
return 0; |
| 6642 |
> |
} |
| 6643 |
> |
_ACEOF |
| 6644 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 6645 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6646 |
> |
(eval $ac_link) 2>conftest.er1 |
| 6647 |
> |
ac_status=$? |
| 6648 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6649 |
> |
rm -f conftest.er1 |
| 6650 |
> |
cat conftest.err >&5 |
| 6651 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6652 |
> |
(exit $ac_status); } && |
| 6653 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 6654 |
> |
|| test ! -s conftest.err' |
| 6655 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6656 |
> |
(eval $ac_try) 2>&5 |
| 6657 |
> |
ac_status=$? |
| 6658 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6659 |
> |
(exit $ac_status); }; } && |
| 6660 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 6661 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6662 |
> |
(eval $ac_try) 2>&5 |
| 6663 |
> |
ac_status=$? |
| 6664 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6665 |
> |
(exit $ac_status); }; }; then |
| 6666 |
> |
ac_cv_lib_m_asin=yes |
| 6667 |
> |
else |
| 6668 |
> |
echo "$as_me: failed program was:" >&5 |
| 6669 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6670 |
> |
|
| 6671 |
> |
ac_cv_lib_m_asin=no |
| 6672 |
> |
fi |
| 6673 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 6674 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 6675 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 6676 |
> |
fi |
| 6677 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5 |
| 6678 |
> |
echo "${ECHO_T}$ac_cv_lib_m_asin" >&6 |
| 6679 |
> |
if test $ac_cv_lib_m_asin = yes; then |
| 6680 |
> |
cat >>confdefs.h <<_ACEOF |
| 6681 |
> |
#define HAVE_LIBM 1 |
| 6682 |
> |
_ACEOF |
| 6683 |
> |
|
| 6684 |
> |
LIBS="-lm $LIBS" |
| 6685 |
> |
|
| 6686 |
> |
else |
| 6687 |
> |
exit |
| 6688 |
> |
fi |
| 6689 |
> |
|
| 6690 |
> |
|
| 6691 |
> |
ac_ext=c |
| 6692 |
> |
ac_cpp='$CPP $CPPFLAGS' |
| 6693 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6694 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6695 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6696 |
> |
|
| 6697 |
> |
|
| 6698 |
> |
# |
| 6699 |
> |
# Handle user hints |
| 6700 |
> |
# |
| 6701 |
> |
echo "$as_me:$LINENO: checking if zlib is wanted" >&5 |
| 6702 |
> |
echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6 |
| 6703 |
> |
|
| 6704 |
> |
# Check whether --with-zlib or --without-zlib was given. |
| 6705 |
> |
if test "${with_zlib+set}" = set; then |
| 6706 |
> |
withval="$with_zlib" |
| 6707 |
> |
if test "$withval" != no ; then |
| 6708 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
| 6709 |
> |
echo "${ECHO_T}yes" >&6 |
| 6710 |
> |
if test -d "$withval" |
| 6711 |
> |
then |
| 6712 |
> |
ZLIB_HOME="$withval" |
| 6713 |
> |
else |
| 6714 |
> |
{ echo "$as_me:$LINENO: WARNING: Sorry, $withval does not exist, checking usual places" >&5 |
| 6715 |
> |
echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;} |
| 6716 |
> |
fi |
| 6717 |
> |
else |
| 6718 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 6719 |
> |
echo "${ECHO_T}no" >&6 |
| 6720 |
> |
fi |
| 6721 |
> |
fi; |
| 6722 |
> |
|
| 6723 |
> |
ZLIB_HOME=/usr/local |
| 6724 |
> |
if test ! -f "${ZLIB_HOME}/include/zlib.h" |
| 6725 |
> |
then |
| 6726 |
> |
ZLIB_HOME=/usr |
| 6727 |
> |
fi |
| 6728 |
> |
|
| 6729 |
> |
# |
| 6730 |
> |
# Locate zlib, if wanted |
| 6731 |
> |
# |
| 6732 |
> |
if test -n "${ZLIB_HOME}" |
| 6733 |
> |
then |
| 6734 |
> |
ZLIB_OLD_LDFLAGS=$LDFLAGS |
| 6735 |
> |
ZLIB_OLD_CPPFLAGS=$LDFLAGS |
| 6736 |
> |
LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" |
| 6737 |
> |
CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" |
| 6738 |
> |
|
| 6739 |
> |
|
| 6740 |
> |
ac_ext=c |
| 6741 |
> |
ac_cpp='$CPP $CPPFLAGS' |
| 6742 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6743 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6744 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6745 |
> |
|
| 6746 |
> |
echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 |
| 6747 |
> |
echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6 |
| 6748 |
> |
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then |
| 6749 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6750 |
> |
else |
| 6751 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 6752 |
> |
LIBS="-lz $LIBS" |
| 6753 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6754 |
> |
/* confdefs.h. */ |
| 6755 |
> |
_ACEOF |
| 6756 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6757 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6758 |
> |
/* end confdefs.h. */ |
| 6759 |
> |
|
| 6760 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 6761 |
> |
#ifdef __cplusplus |
| 6762 |
> |
extern "C" |
| 6763 |
> |
#endif |
| 6764 |
> |
/* We use char because int might match the return type of a gcc2 |
| 6765 |
> |
builtin and then its argument prototype would still apply. */ |
| 6766 |
> |
char inflateEnd (); |
| 6767 |
> |
int |
| 6768 |
> |
main () |
| 6769 |
> |
{ |
| 6770 |
> |
inflateEnd (); |
| 6771 |
> |
; |
| 6772 |
> |
return 0; |
| 6773 |
> |
} |
| 6774 |
> |
_ACEOF |
| 6775 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 6776 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6777 |
> |
(eval $ac_link) 2>conftest.er1 |
| 6778 |
> |
ac_status=$? |
| 6779 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6780 |
> |
rm -f conftest.er1 |
| 6781 |
> |
cat conftest.err >&5 |
| 6782 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6783 |
> |
(exit $ac_status); } && |
| 6784 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6785 |
> |
|| test ! -s conftest.err' |
| 6786 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6787 |
> |
(eval $ac_try) 2>&5 |
| 6788 |
> |
ac_status=$? |
| 6789 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6790 |
> |
(exit $ac_status); }; } && |
| 6791 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 6792 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6793 |
> |
(eval $ac_try) 2>&5 |
| 6794 |
> |
ac_status=$? |
| 6795 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6796 |
> |
(exit $ac_status); }; }; then |
| 6797 |
> |
ac_cv_lib_z_inflateEnd=yes |
| 6798 |
> |
else |
| 6799 |
> |
echo "$as_me: failed program was:" >&5 |
| 6800 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6801 |
> |
|
| 6802 |
> |
ac_cv_lib_z_inflateEnd=no |
| 6803 |
> |
fi |
| 6804 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 6805 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 6806 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 6807 |
> |
fi |
| 6808 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 |
| 6809 |
> |
echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6 |
| 6810 |
> |
if test $ac_cv_lib_z_inflateEnd = yes; then |
| 6811 |
> |
zlib_cv_libz=yes |
| 6812 |
> |
else |
| 6813 |
> |
zlib_cv_libz=no |
| 6814 |
> |
fi |
| 6815 |
> |
|
| 6816 |
> |
if test "${ac_cv_header_zlib_h+set}" = set; then |
| 6817 |
> |
echo "$as_me:$LINENO: checking for zlib.h" >&5 |
| 6818 |
> |
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 |
| 6819 |
> |
if test "${ac_cv_header_zlib_h+set}" = set; then |
| 6820 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6821 |
> |
fi |
| 6822 |
> |
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
| 6823 |
> |
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 |
| 6824 |
> |
else |
| 6825 |
> |
# Is the header compilable? |
| 6826 |
> |
echo "$as_me:$LINENO: checking zlib.h usability" >&5 |
| 6827 |
> |
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 |
| 6828 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6829 |
> |
/* confdefs.h. */ |
| 6830 |
> |
_ACEOF |
| 6831 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6832 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6833 |
> |
/* end confdefs.h. */ |
| 6834 |
> |
$ac_includes_default |
| 6835 |
> |
#include <zlib.h> |
| 6836 |
> |
_ACEOF |
| 6837 |
> |
rm -f conftest.$ac_objext |
| 6838 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6839 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 6840 |
> |
ac_status=$? |
| 6841 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6842 |
> |
rm -f conftest.er1 |
| 6843 |
> |
cat conftest.err >&5 |
| 6844 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6845 |
> |
(exit $ac_status); } && |
| 6846 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 6847 |
> |
|| test ! -s conftest.err' |
| 6848 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6849 |
> |
(eval $ac_try) 2>&5 |
| 6850 |
> |
ac_status=$? |
| 6851 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6852 |
> |
(exit $ac_status); }; } && |
| 6853 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 6854 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6855 |
> |
(eval $ac_try) 2>&5 |
| 6856 |
> |
ac_status=$? |
| 6857 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6858 |
> |
(exit $ac_status); }; }; then |
| 6859 |
> |
ac_header_compiler=yes |
| 6860 |
> |
else |
| 6861 |
> |
echo "$as_me: failed program was:" >&5 |
| 6862 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6863 |
> |
|
| 6864 |
> |
ac_header_compiler=no |
| 6865 |
> |
fi |
| 6866 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6867 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6868 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6869 |
> |
|
| 6870 |
> |
# Is the header present? |
| 6871 |
> |
echo "$as_me:$LINENO: checking zlib.h presence" >&5 |
| 6872 |
> |
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 |
| 6873 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6874 |
> |
/* confdefs.h. */ |
| 6875 |
> |
_ACEOF |
| 6876 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6877 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6878 |
> |
/* end confdefs.h. */ |
| 6879 |
> |
#include <zlib.h> |
| 6880 |
> |
_ACEOF |
| 6881 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6882 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6883 |
> |
ac_status=$? |
| 6884 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 6885 |
> |
rm -f conftest.er1 |
| 6886 |
> |
cat conftest.err >&5 |
| 6887 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6888 |
> |
(exit $ac_status); } >/dev/null; then |
| 6889 |
> |
if test -s conftest.err; then |
| 6890 |
> |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 6891 |
> |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6892 |
> |
else |
| 6893 |
> |
ac_cpp_err= |
| 6894 |
> |
fi |
| 6895 |
> |
else |
| 6896 |
> |
ac_cpp_err=yes |
| 6897 |
> |
fi |
| 6898 |
> |
if test -z "$ac_cpp_err"; then |
| 6899 |
> |
ac_header_preproc=yes |
| 6900 |
> |
else |
| 6901 |
> |
echo "$as_me: failed program was:" >&5 |
| 6902 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6903 |
> |
|
| 6904 |
> |
ac_header_preproc=no |
| 6905 |
> |
fi |
| 6906 |
> |
rm -f conftest.err conftest.$ac_ext |
| 6907 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6908 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6909 |
> |
|
| 6910 |
> |
# So? What about this header? |
| 6911 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6912 |
> |
yes:no: ) |
| 6913 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6914 |
> |
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6915 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
| 6916 |
> |
echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} |
| 6917 |
> |
ac_header_preproc=yes |
| 6918 |
> |
;; |
| 6919 |
> |
no:yes:* ) |
| 6920 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
| 6921 |
> |
echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} |
| 6922 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
| 6923 |
> |
echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} |
| 6924 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 |
| 6925 |
> |
echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} |
| 6926 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6927 |
> |
echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6928 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
| 6929 |
> |
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} |
| 6930 |
> |
{ echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
| 6931 |
> |
echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} |
| 6932 |
> |
( |
| 6933 |
> |
cat <<\_ASBOX |
| 6934 |
> |
## ------------------------------ ## |
| 6935 |
> |
## Report this to gezelter@nd.edu ## |
| 6936 |
> |
## ------------------------------ ## |
| 6937 |
> |
_ASBOX |
| 6938 |
> |
) | |
| 6939 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
| 6940 |
> |
;; |
| 6941 |
> |
esac |
| 6942 |
> |
echo "$as_me:$LINENO: checking for zlib.h" >&5 |
| 6943 |
> |
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 |
| 6944 |
> |
if test "${ac_cv_header_zlib_h+set}" = set; then |
| 6945 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6946 |
> |
else |
| 6947 |
> |
ac_cv_header_zlib_h=$ac_header_preproc |
| 6948 |
> |
fi |
| 6949 |
> |
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
| 6950 |
> |
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 |
| 6951 |
> |
|
| 6952 |
> |
fi |
| 6953 |
> |
if test $ac_cv_header_zlib_h = yes; then |
| 6954 |
> |
zlib_cv_zlib_h=yes |
| 6955 |
> |
else |
| 6956 |
> |
zlib_cv_zlib_h=no |
| 6957 |
> |
fi |
| 6958 |
> |
|
| 6959 |
> |
|
| 6960 |
> |
ac_ext=c |
| 6961 |
> |
ac_cpp='$CPP $CPPFLAGS' |
| 6962 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6963 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6964 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6965 |
> |
|
| 6966 |
> |
if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes" |
| 6967 |
> |
then |
| 6968 |
> |
# |
| 6969 |
> |
# If both library and header were found, use them |
| 6970 |
> |
# |
| 6971 |
> |
|
| 6972 |
> |
echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 |
| 6973 |
> |
echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6 |
| 6974 |
> |
if test "${ac_cv_lib_z_inflateEnd+set}" = set; then |
| 6975 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6976 |
> |
else |
| 6977 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 6978 |
> |
LIBS="-lz $LIBS" |
| 6979 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 6980 |
> |
/* confdefs.h. */ |
| 6981 |
> |
_ACEOF |
| 6982 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 6983 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 6984 |
> |
/* end confdefs.h. */ |
| 6985 |
> |
|
| 6986 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 6987 |
> |
#ifdef __cplusplus |
| 6988 |
> |
extern "C" |
| 6989 |
> |
#endif |
| 6990 |
> |
/* We use char because int might match the return type of a gcc2 |
| 6991 |
> |
builtin and then its argument prototype would still apply. */ |
| 6992 |
> |
char inflateEnd (); |
| 6993 |
> |
int |
| 6994 |
> |
main () |
| 6995 |
> |
{ |
| 6996 |
> |
inflateEnd (); |
| 6997 |
> |
; |
| 6998 |
> |
return 0; |
| 6999 |
> |
} |
| 7000 |
> |
_ACEOF |
| 7001 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7002 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7003 |
> |
(eval $ac_link) 2>conftest.er1 |
| 7004 |
> |
ac_status=$? |
| 7005 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7006 |
> |
rm -f conftest.er1 |
| 7007 |
> |
cat conftest.err >&5 |
| 7008 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7009 |
> |
(exit $ac_status); } && |
| 7010 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7011 |
> |
|| test ! -s conftest.err' |
| 7012 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7013 |
> |
(eval $ac_try) 2>&5 |
| 7014 |
> |
ac_status=$? |
| 7015 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7016 |
> |
(exit $ac_status); }; } && |
| 7017 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 7018 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7019 |
> |
(eval $ac_try) 2>&5 |
| 7020 |
> |
ac_status=$? |
| 7021 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7022 |
> |
(exit $ac_status); }; }; then |
| 7023 |
> |
ac_cv_lib_z_inflateEnd=yes |
| 7024 |
> |
else |
| 7025 |
> |
echo "$as_me: failed program was:" >&5 |
| 7026 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7027 |
> |
|
| 7028 |
> |
ac_cv_lib_z_inflateEnd=no |
| 7029 |
> |
fi |
| 7030 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 7031 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 7032 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 7033 |
> |
fi |
| 7034 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 |
| 7035 |
> |
echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6 |
| 7036 |
> |
if test $ac_cv_lib_z_inflateEnd = yes; then |
| 7037 |
> |
cat >>confdefs.h <<_ACEOF |
| 7038 |
> |
#define HAVE_LIBZ 1 |
| 7039 |
> |
_ACEOF |
| 7040 |
> |
|
| 7041 |
> |
LIBS="-lz $LIBS" |
| 7042 |
> |
|
| 7043 |
> |
fi |
| 7044 |
> |
|
| 7045 |
> |
echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5 |
| 7046 |
> |
echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6 |
| 7047 |
> |
echo "$as_me:$LINENO: result: ok" >&5 |
| 7048 |
> |
echo "${ECHO_T}ok" >&6 |
| 7049 |
> |
else |
| 7050 |
> |
# |
| 7051 |
> |
# If either header or library was not found, revert and bomb |
| 7052 |
> |
# |
| 7053 |
> |
echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5 |
| 7054 |
> |
echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6 |
| 7055 |
> |
LDFLAGS="$ZLIB_OLD_LDFLAGS" |
| 7056 |
> |
CPPFLAGS="$ZLIB_OLD_CPPFLAGS" |
| 7057 |
> |
echo "$as_me:$LINENO: result: failed" >&5 |
| 7058 |
> |
echo "${ECHO_T}failed" >&6 |
| 7059 |
> |
{ { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5 |
| 7060 |
> |
echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;} |
| 7061 |
> |
{ (exit 1); exit 1; }; } |
| 7062 |
> |
fi |
| 7063 |
> |
fi |
| 7064 |
> |
|
| 7065 |
> |
|
| 7066 |
> |
|
| 7067 |
> |
|
| 7068 |
> |
|
| 7069 |
> |
|
| 7070 |
> |
|
| 7071 |
> |
|
| 7072 |
> |
|
| 7073 |
> |
|
| 7074 |
> |
|
| 7075 |
> |
|
| 7076 |
> |
|
| 7077 |
> |
|
| 7078 |
> |
|
| 7079 |
> |
|
| 7080 |
> |
|
| 7081 |
> |
|
| 7082 |
> |
|
| 7083 |
> |
|
| 7084 |
> |
|
| 7085 |
> |
for ac_header in stdlib.h string.h sys/param.h unistd.h sys/time.h stdio.h conio.h strstream.h iostream.h fstream.h math.h time.h sys/pstat.h sys/sysmp.h sys/sysinfo.h sys/table.h sys/sysctl.h sys/sytemcfg.h machine/hal_sysinfo.h |
| 7086 |
> |
do |
| 7087 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7088 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7089 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7090 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7091 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7092 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7093 |
> |
fi |
| 7094 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7095 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7096 |
> |
else |
| 7097 |
> |
# Is the header compilable? |
| 7098 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7099 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7100 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 7101 |
> |
/* confdefs.h. */ |
| 7102 |
> |
_ACEOF |
| 7103 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 7104 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 7105 |
> |
/* end confdefs.h. */ |
| 7106 |
> |
$ac_includes_default |
| 7107 |
> |
#include <$ac_header> |
| 7108 |
> |
_ACEOF |
| 7109 |
> |
rm -f conftest.$ac_objext |
| 7110 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7111 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 7112 |
> |
ac_status=$? |
| 7113 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7114 |
> |
rm -f conftest.er1 |
| 7115 |
> |
cat conftest.err >&5 |
| 7116 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7117 |
> |
(exit $ac_status); } && |
| 7118 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7119 |
> |
|| test ! -s conftest.err' |
| 7120 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7121 |
> |
(eval $ac_try) 2>&5 |
| 7122 |
> |
ac_status=$? |
| 7123 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7124 |
> |
(exit $ac_status); }; } && |
| 7125 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 7126 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7127 |
> |
(eval $ac_try) 2>&5 |
| 7128 |
> |
ac_status=$? |
| 7129 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7130 |
> |
(exit $ac_status); }; }; then |
| 7131 |
> |
ac_header_compiler=yes |
| 7132 |
> |
else |
| 7133 |
> |
echo "$as_me: failed program was:" >&5 |
| 7134 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7135 |
> |
|
| 7136 |
> |
ac_header_compiler=no |
| 7137 |
> |
fi |
| 7138 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7139 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7140 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7141 |
> |
|
| 7142 |
> |
# Is the header present? |
| 7143 |
> |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7144 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7145 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 7146 |
> |
/* confdefs.h. */ |
| 7147 |
> |
_ACEOF |
| 7148 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 7149 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 7150 |
> |
/* end confdefs.h. */ |
| 7151 |
> |
#include <$ac_header> |
| 7152 |
> |
_ACEOF |
| 7153 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7154 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7155 |
> |
ac_status=$? |
| 7156 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7157 |
> |
rm -f conftest.er1 |
| 7158 |
> |
cat conftest.err >&5 |
| 7159 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7160 |
> |
(exit $ac_status); } >/dev/null; then |
| 7161 |
> |
if test -s conftest.err; then |
| 7162 |
> |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 7163 |
> |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7164 |
> |
else |
| 7165 |
> |
ac_cpp_err= |
| 7166 |
> |
fi |
| 7167 |
> |
else |
| 7168 |
> |
ac_cpp_err=yes |
| 7169 |
> |
fi |
| 7170 |
> |
if test -z "$ac_cpp_err"; then |
| 7171 |
> |
ac_header_preproc=yes |
| 7172 |
> |
else |
| 7173 |
> |
echo "$as_me: failed program was:" >&5 |
| 7174 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7175 |
> |
|
| 7176 |
> |
ac_header_preproc=no |
| 7177 |
> |
fi |
| 7178 |
> |
rm -f conftest.err conftest.$ac_ext |
| 7179 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7180 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7181 |
> |
|
| 7182 |
> |
# So? What about this header? |
| 7183 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7184 |
> |
yes:no: ) |
| 7185 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7186 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7187 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7188 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7189 |
> |
ac_header_preproc=yes |
| 7190 |
> |
;; |
| 7191 |
> |
no:yes:* ) |
| 7192 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7193 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7194 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7195 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7196 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7197 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7198 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7199 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7200 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7201 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7202 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7203 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7204 |
> |
( |
| 7205 |
> |
cat <<\_ASBOX |
| 7206 |
> |
## ------------------------------ ## |
| 7207 |
> |
## Report this to gezelter@nd.edu ## |
| 7208 |
> |
## ------------------------------ ## |
| 7209 |
> |
_ASBOX |
| 7210 |
> |
) | |
| 7211 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
| 7212 |
> |
;; |
| 7213 |
> |
esac |
| 7214 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7215 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7216 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7217 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7218 |
> |
else |
| 7219 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
| 7220 |
> |
fi |
| 7221 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7222 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7223 |
> |
|
| 7224 |
> |
fi |
| 7225 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7226 |
> |
cat >>confdefs.h <<_ACEOF |
| 7227 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7228 |
> |
_ACEOF |
| 7229 |
> |
|
| 7230 |
> |
fi |
| 7231 |
> |
|
| 7232 |
> |
done |
| 7233 |
> |
|
| 7234 |
> |
ac_ext=cc |
| 7235 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 7236 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7237 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7238 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7239 |
> |
|
| 7240 |
> |
|
| 7241 |
> |
|
| 7242 |
> |
|
| 7243 |
> |
|
| 7244 |
> |
|
| 7245 |
> |
for ac_header in ctype.h iostream fstream sstream strstream |
| 7246 |
> |
do |
| 7247 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7248 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7249 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7250 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7251 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7252 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7253 |
> |
fi |
| 7254 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7255 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7256 |
> |
else |
| 7257 |
> |
# Is the header compilable? |
| 7258 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7259 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7260 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 7261 |
> |
/* confdefs.h. */ |
| 7262 |
> |
_ACEOF |
| 7263 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 7264 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 7265 |
> |
/* end confdefs.h. */ |
| 7266 |
> |
$ac_includes_default |
| 7267 |
> |
#include <$ac_header> |
| 7268 |
> |
_ACEOF |
| 7269 |
> |
rm -f conftest.$ac_objext |
| 7270 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7271 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 7272 |
> |
ac_status=$? |
| 7273 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7274 |
> |
rm -f conftest.er1 |
| 7275 |
> |
cat conftest.err >&5 |
| 7276 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7277 |
> |
(exit $ac_status); } && |
| 7278 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 7279 |
> |
|| test ! -s conftest.err' |
| 7280 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7281 |
> |
(eval $ac_try) 2>&5 |
| 7282 |
> |
ac_status=$? |
| 7283 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7284 |
> |
(exit $ac_status); }; } && |
| 7285 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 7286 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7287 |
> |
(eval $ac_try) 2>&5 |
| 7288 |
> |
ac_status=$? |
| 7289 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7290 |
> |
(exit $ac_status); }; }; then |
| 7291 |
> |
ac_header_compiler=yes |
| 7292 |
> |
else |
| 7293 |
> |
echo "$as_me: failed program was:" >&5 |
| 7294 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7295 |
> |
|
| 7296 |
> |
ac_header_compiler=no |
| 7297 |
> |
fi |
| 7298 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7299 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7300 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7301 |
> |
|
| 7302 |
> |
# Is the header present? |
| 7303 |
> |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7304 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7305 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 7306 |
> |
/* confdefs.h. */ |
| 7307 |
> |
_ACEOF |
| 7308 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 7309 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 7310 |
> |
/* end confdefs.h. */ |
| 7311 |
> |
#include <$ac_header> |
| 7312 |
> |
_ACEOF |
| 7313 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7314 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7315 |
> |
ac_status=$? |
| 7316 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7317 |
> |
rm -f conftest.er1 |
| 7318 |
> |
cat conftest.err >&5 |
| 7319 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7320 |
> |
(exit $ac_status); } >/dev/null; then |
| 7321 |
> |
if test -s conftest.err; then |
| 7322 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 7323 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 7324 |
> |
else |
| 7325 |
> |
ac_cpp_err= |
| 7326 |
> |
fi |
| 7327 |
> |
else |
| 7328 |
> |
ac_cpp_err=yes |
| 7329 |
> |
fi |
| 7330 |
> |
if test -z "$ac_cpp_err"; then |
| 7331 |
> |
ac_header_preproc=yes |
| 7332 |
> |
else |
| 7333 |
> |
echo "$as_me: failed program was:" >&5 |
| 7334 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7335 |
> |
|
| 7336 |
> |
ac_header_preproc=no |
| 7337 |
> |
fi |
| 7338 |
> |
rm -f conftest.err conftest.$ac_ext |
| 7339 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7340 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7341 |
> |
|
| 7342 |
> |
# So? What about this header? |
| 7343 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 7344 |
> |
yes:no: ) |
| 7345 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7346 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7347 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7348 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7349 |
> |
ac_header_preproc=yes |
| 7350 |
> |
;; |
| 7351 |
> |
no:yes:* ) |
| 7352 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7353 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7354 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7355 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7356 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7357 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7358 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7359 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7360 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7361 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7362 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7363 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7364 |
> |
( |
| 7365 |
> |
cat <<\_ASBOX |
| 7366 |
> |
## ------------------------------ ## |
| 7367 |
> |
## Report this to gezelter@nd.edu ## |
| 7368 |
> |
## ------------------------------ ## |
| 7369 |
> |
_ASBOX |
| 7370 |
> |
) | |
| 7371 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
| 7372 |
> |
;; |
| 7373 |
> |
esac |
| 7374 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7375 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7376 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7377 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7378 |
> |
else |
| 7379 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
| 7380 |
> |
fi |
| 7381 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7382 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7383 |
> |
|
| 7384 |
> |
fi |
| 7385 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7386 |
> |
cat >>confdefs.h <<_ACEOF |
| 7387 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7388 |
> |
_ACEOF |
| 7389 |
> |
|
| 7390 |
> |
fi |
| 7391 |
> |
|
| 7392 |
> |
done |
| 7393 |
> |
|
| 7394 |
> |
ac_ext=c |
| 7395 |
> |
ac_cpp='$CPP $CPPFLAGS' |
| 7396 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7397 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7398 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7399 |
> |
|
| 7400 |
> |
|
| 7401 |
> |
|
| 7402 |
> |
|
| 7403 |
> |
|
| 7404 |
> |
|
| 7405 |
> |
|
| 7406 |
> |
|
| 7407 |
> |
|
| 7408 |
> |
|
| 7409 |
> |
|
| 7410 |
> |
|
| 7411 |
> |
|
| 7412 |
> |
for ac_func in rint snprintf sranddev strcasecmp strncasecmp stricmp strnicmp pstat_getstatic sysmp getsysinfo sysctl table |
| 7413 |
> |
do |
| 7414 |
> |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7415 |
> |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 7416 |
> |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 7417 |
> |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 7418 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7419 |
> |
else |
| 7420 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 7421 |
> |
/* confdefs.h. */ |
| 7422 |
> |
_ACEOF |
| 7423 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 7424 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 7425 |
> |
/* end confdefs.h. */ |
| 7426 |
> |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 7427 |
> |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7428 |
> |
#define $ac_func innocuous_$ac_func |
| 7429 |
> |
|
| 7430 |
> |
/* System header to define __stub macros and hopefully few prototypes, |
| 7431 |
> |
which can conflict with char $ac_func (); below. |
| 7432 |
> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7433 |
> |
<limits.h> exists even on freestanding compilers. */ |
| 7434 |
> |
|
| 7435 |
> |
#ifdef __STDC__ |
| 7436 |
> |
# include <limits.h> |
| 7437 |
> |
#else |
| 7438 |
> |
# include <assert.h> |
| 7439 |
> |
#endif |
| 7440 |
> |
|
| 7441 |
> |
#undef $ac_func |
| 7442 |
> |
|
| 7443 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 7444 |
> |
#ifdef __cplusplus |
| 7445 |
> |
extern "C" |
| 7446 |
> |
{ |
| 7447 |
> |
#endif |
| 7448 |
> |
/* We use char because int might match the return type of a gcc2 |
| 7449 |
> |
builtin and then its argument prototype would still apply. */ |
| 7450 |
> |
char $ac_func (); |
| 7451 |
> |
/* The GNU C library defines this for functions which it implements |
| 7452 |
> |
to always fail with ENOSYS. Some functions are actually named |
| 7453 |
> |
something starting with __ and the normal name is an alias. */ |
| 7454 |
> |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 7455 |
> |
choke me |
| 7456 |
> |
#else |
| 7457 |
> |
char (*f) () = $ac_func; |
| 7458 |
> |
#endif |
| 7459 |
> |
#ifdef __cplusplus |
| 7460 |
> |
} |
| 7461 |
> |
#endif |
| 7462 |
> |
|
| 7463 |
> |
int |
| 7464 |
> |
main () |
| 7465 |
> |
{ |
| 7466 |
> |
return f != $ac_func; |
| 7467 |
> |
; |
| 7468 |
> |
return 0; |
| 7469 |
> |
} |
| 7470 |
> |
_ACEOF |
| 7471 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 7472 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7473 |
> |
(eval $ac_link) 2>conftest.er1 |
| 7474 |
> |
ac_status=$? |
| 7475 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7476 |
> |
rm -f conftest.er1 |
| 7477 |
> |
cat conftest.err >&5 |
| 7478 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7479 |
> |
(exit $ac_status); } && |
| 7480 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7481 |
> |
|| test ! -s conftest.err' |
| 7482 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7483 |
> |
(eval $ac_try) 2>&5 |
| 7484 |
> |
ac_status=$? |
| 7485 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7486 |
> |
(exit $ac_status); }; } && |
| 7487 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 7488 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7489 |
> |
(eval $ac_try) 2>&5 |
| 7490 |
> |
ac_status=$? |
| 7491 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7492 |
> |
(exit $ac_status); }; }; then |
| 7493 |
> |
eval "$as_ac_var=yes" |
| 7494 |
> |
else |
| 7495 |
> |
echo "$as_me: failed program was:" >&5 |
| 7496 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7497 |
> |
|
| 7498 |
> |
eval "$as_ac_var=no" |
| 7499 |
> |
fi |
| 7500 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 7501 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 7502 |
> |
fi |
| 7503 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 7504 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 7505 |
> |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 7506 |
> |
cat >>confdefs.h <<_ACEOF |
| 7507 |
> |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 7508 |
> |
_ACEOF |
| 7509 |
> |
|
| 7510 |
> |
fi |
| 7511 |
> |
done |
| 7512 |
> |
|
| 7513 |
> |
# special check for _system_configuration because AIX <4.3.2 do not |
| 7514 |
> |
# contain the `physmem' member. |
| 7515 |
> |
echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5 |
| 7516 |
> |
echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6 |
| 7517 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 7518 |
> |
/* confdefs.h. */ |
| 7519 |
> |
_ACEOF |
| 7520 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 7521 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 7522 |
> |
/* end confdefs.h. */ |
| 7523 |
> |
#include <sys/systemcfg.h> |
| 7524 |
> |
int |
| 7525 |
> |
main () |
| 7526 |
> |
{ |
| 7527 |
> |
double x = _system_configuration.physmem; |
| 7528 |
> |
; |
| 7529 |
> |
return 0; |
| 7530 |
> |
} |
| 7531 |
> |
_ACEOF |
| 7532 |
> |
rm -f conftest.$ac_objext |
| 7533 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7534 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 7535 |
> |
ac_status=$? |
| 7536 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7537 |
> |
rm -f conftest.er1 |
| 7538 |
> |
cat conftest.err >&5 |
| 7539 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7540 |
> |
(exit $ac_status); } && |
| 7541 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7542 |
> |
|| test ! -s conftest.err' |
| 7543 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7544 |
> |
(eval $ac_try) 2>&5 |
| 7545 |
> |
ac_status=$? |
| 7546 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7547 |
> |
(exit $ac_status); }; } && |
| 7548 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 7549 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7550 |
> |
(eval $ac_try) 2>&5 |
| 7551 |
> |
ac_status=$? |
| 7552 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7553 |
> |
(exit $ac_status); }; }; then |
| 7554 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
| 7555 |
> |
echo "${ECHO_T}yes" >&6 |
| 7556 |
> |
|
| 7557 |
> |
cat >>confdefs.h <<\_ACEOF |
| 7558 |
> |
#define HAVE__SYSTEM_CONFIGURATION 1 |
| 7559 |
> |
_ACEOF |
| 7560 |
> |
|
| 7561 |
> |
else |
| 7562 |
> |
echo "$as_me: failed program was:" >&5 |
| 7563 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7564 |
> |
|
| 7565 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 7566 |
> |
echo "${ECHO_T}no" >&6 |
| 7567 |
> |
fi |
| 7568 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7569 |
> |
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 7570 |
> |
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 7571 |
> |
if test "${ac_cv_header_time+set}" = set; then |
| 7572 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7573 |
> |
else |
| 7574 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 7575 |
> |
/* confdefs.h. */ |
| 7576 |
> |
_ACEOF |
| 7577 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 7578 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 7579 |
> |
/* end confdefs.h. */ |
| 7580 |
> |
#include <sys/types.h> |
| 7581 |
> |
#include <sys/time.h> |
| 7582 |
> |
#include <time.h> |
| 7583 |
> |
|
| 7584 |
> |
int |
| 7585 |
> |
main () |
| 7586 |
> |
{ |
| 7587 |
> |
if ((struct tm *) 0) |
| 7588 |
> |
return 0; |
| 7589 |
> |
; |
| 7590 |
> |
return 0; |
| 7591 |
> |
} |
| 7592 |
> |
_ACEOF |
| 7593 |
> |
rm -f conftest.$ac_objext |
| 7594 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7595 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 7596 |
> |
ac_status=$? |
| 7597 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7598 |
> |
rm -f conftest.er1 |
| 7599 |
> |
cat conftest.err >&5 |
| 7600 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7601 |
> |
(exit $ac_status); } && |
| 7602 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7603 |
> |
|| test ! -s conftest.err' |
| 7604 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7605 |
> |
(eval $ac_try) 2>&5 |
| 7606 |
> |
ac_status=$? |
| 7607 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7608 |
> |
(exit $ac_status); }; } && |
| 7609 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 7610 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7611 |
> |
(eval $ac_try) 2>&5 |
| 7612 |
> |
ac_status=$? |
| 7613 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7614 |
> |
(exit $ac_status); }; }; then |
| 7615 |
> |
ac_cv_header_time=yes |
| 7616 |
> |
else |
| 7617 |
> |
echo "$as_me: failed program was:" >&5 |
| 7618 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7619 |
> |
|
| 7620 |
> |
ac_cv_header_time=no |
| 7621 |
> |
fi |
| 7622 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7623 |
> |
fi |
| 7624 |
> |
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 7625 |
> |
echo "${ECHO_T}$ac_cv_header_time" >&6 |
| 7626 |
> |
if test $ac_cv_header_time = yes; then |
| 7627 |
> |
|
| 7628 |
> |
cat >>confdefs.h <<\_ACEOF |
| 7629 |
> |
#define TIME_WITH_SYS_TIME 1 |
| 7630 |
> |
_ACEOF |
| 7631 |
> |
|
| 7632 |
> |
fi |
| 7633 |
> |
|
| 7634 |
> |
|
| 7635 |
> |
echo "$as_me:$LINENO: checking for clock_t" >&5 |
| 7636 |
> |
echo $ECHO_N "checking for clock_t... $ECHO_C" >&6 |
| 7637 |
> |
if test "${ac_cv_type_clock_t+set}" = set; then |
| 7638 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7639 |
> |
else |
| 7640 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 7641 |
> |
/* confdefs.h. */ |
| 7642 |
> |
_ACEOF |
| 7643 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 7644 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 7645 |
> |
/* end confdefs.h. */ |
| 7646 |
> |
$ac_includes_default |
| 7647 |
> |
int |
| 7648 |
> |
main () |
| 7649 |
> |
{ |
| 7650 |
> |
if ((clock_t *) 0) |
| 7651 |
> |
return 0; |
| 7652 |
> |
if (sizeof (clock_t)) |
| 7653 |
> |
return 0; |
| 7654 |
> |
; |
| 7655 |
> |
return 0; |
| 7656 |
> |
} |
| 7657 |
> |
_ACEOF |
| 7658 |
> |
rm -f conftest.$ac_objext |
| 7659 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7660 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 7661 |
> |
ac_status=$? |
| 7662 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7663 |
> |
rm -f conftest.er1 |
| 7664 |
> |
cat conftest.err >&5 |
| 7665 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7666 |
> |
(exit $ac_status); } && |
| 7667 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7668 |
> |
|| test ! -s conftest.err' |
| 7669 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7670 |
> |
(eval $ac_try) 2>&5 |
| 7671 |
> |
ac_status=$? |
| 7672 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7673 |
> |
(exit $ac_status); }; } && |
| 7674 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 7675 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7676 |
> |
(eval $ac_try) 2>&5 |
| 7677 |
> |
ac_status=$? |
| 7678 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7679 |
> |
(exit $ac_status); }; }; then |
| 7680 |
> |
ac_cv_type_clock_t=yes |
| 7681 |
> |
else |
| 7682 |
> |
echo "$as_me: failed program was:" >&5 |
| 7683 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7684 |
> |
|
| 7685 |
> |
ac_cv_type_clock_t=no |
| 7686 |
> |
fi |
| 7687 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7688 |
> |
fi |
| 7689 |
> |
echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5 |
| 7690 |
> |
echo "${ECHO_T}$ac_cv_type_clock_t" >&6 |
| 7691 |
> |
if test $ac_cv_type_clock_t = yes; then |
| 7692 |
> |
|
| 7693 |
> |
cat >>confdefs.h <<_ACEOF |
| 7694 |
> |
#define HAVE_CLOCK_T 1 |
| 7695 |
> |
_ACEOF |
| 7696 |
> |
|
| 7697 |
> |
|
| 7698 |
> |
fi |
| 7699 |
> |
|
| 7700 |
> |
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 7701 |
> |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 7702 |
> |
if test "${ac_cv_c_const+set}" = set; then |
| 7703 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7704 |
> |
else |
| 7705 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 7706 |
> |
/* confdefs.h. */ |
| 7707 |
> |
_ACEOF |
| 7708 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 7709 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 7710 |
> |
/* end confdefs.h. */ |
| 7711 |
> |
|
| 7712 |
> |
int |
| 7713 |
> |
main () |
| 7714 |
> |
{ |
| 7715 |
> |
/* FIXME: Include the comments suggested by Paul. */ |
| 7716 |
> |
#ifndef __cplusplus |
| 7717 |
> |
/* Ultrix mips cc rejects this. */ |
| 7718 |
> |
typedef int charset[2]; |
| 7719 |
> |
const charset x; |
| 7720 |
> |
/* SunOS 4.1.1 cc rejects this. */ |
| 7721 |
> |
char const *const *ccp; |
| 7722 |
> |
char **p; |
| 7723 |
> |
/* NEC SVR4.0.2 mips cc rejects this. */ |
| 7724 |
> |
struct point {int x, y;}; |
| 7725 |
> |
static struct point const zero = {0,0}; |
| 7726 |
> |
/* AIX XL C 1.02.0.0 rejects this. |
| 7727 |
> |
It does not let you subtract one const X* pointer from another in |
| 7728 |
> |
an arm of an if-expression whose if-part is not a constant |
| 7729 |
> |
expression */ |
| 7730 |
> |
const char *g = "string"; |
| 7731 |
> |
ccp = &g + (g ? g-g : 0); |
| 7732 |
> |
/* HPUX 7.0 cc rejects these. */ |
| 7733 |
> |
++ccp; |
| 7734 |
> |
p = (char**) ccp; |
| 7735 |
> |
ccp = (char const *const *) p; |
| 7736 |
> |
{ /* SCO 3.2v4 cc rejects this. */ |
| 7737 |
> |
char *t; |
| 7738 |
> |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 7739 |
> |
|
| 7740 |
> |
*t++ = 0; |
| 7741 |
> |
} |
| 7742 |
> |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 7743 |
> |
int x[] = {25, 17}; |
| 7744 |
> |
const int *foo = &x[0]; |
| 7745 |
> |
++foo; |
| 7746 |
> |
} |
| 7747 |
> |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 7748 |
> |
typedef const int *iptr; |
| 7749 |
> |
iptr p = 0; |
| 7750 |
> |
++p; |
| 7751 |
> |
} |
| 7752 |
> |
{ /* AIX XL C 1.02.0.0 rejects this saying |
| 7753 |
> |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 7754 |
> |
struct s { int j; const int *ap[3]; }; |
| 7755 |
> |
struct s *b; b->j = 5; |
| 7756 |
> |
} |
| 7757 |
> |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 7758 |
> |
const int foo = 10; |
| 7759 |
> |
} |
| 7760 |
> |
#endif |
| 7761 |
> |
|
| 7762 |
> |
; |
| 7763 |
> |
return 0; |
| 7764 |
> |
} |
| 7765 |
> |
_ACEOF |
| 7766 |
> |
rm -f conftest.$ac_objext |
| 7767 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7768 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 7769 |
> |
ac_status=$? |
| 7770 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7771 |
> |
rm -f conftest.er1 |
| 7772 |
> |
cat conftest.err >&5 |
| 7773 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7774 |
> |
(exit $ac_status); } && |
| 7775 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7776 |
> |
|| test ! -s conftest.err' |
| 7777 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7778 |
> |
(eval $ac_try) 2>&5 |
| 7779 |
> |
ac_status=$? |
| 7780 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7781 |
> |
(exit $ac_status); }; } && |
| 7782 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 7783 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7784 |
> |
(eval $ac_try) 2>&5 |
| 7785 |
> |
ac_status=$? |
| 7786 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7787 |
> |
(exit $ac_status); }; }; then |
| 7788 |
> |
ac_cv_c_const=yes |
| 7789 |
> |
else |
| 7790 |
> |
echo "$as_me: failed program was:" >&5 |
| 7791 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7792 |
> |
|
| 7793 |
> |
ac_cv_c_const=no |
| 7794 |
> |
fi |
| 7795 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7796 |
> |
fi |
| 7797 |
> |
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 7798 |
> |
echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 7799 |
> |
if test $ac_cv_c_const = no; then |
| 7800 |
> |
|
| 7801 |
> |
cat >>confdefs.h <<\_ACEOF |
| 7802 |
> |
#define const |
| 7803 |
> |
_ACEOF |
| 7804 |
> |
|
| 7805 |
> |
fi |
| 7806 |
> |
|
| 7807 |
> |
echo "$as_me:$LINENO: checking for inline" >&5 |
| 7808 |
> |
echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 7809 |
> |
if test "${ac_cv_c_inline+set}" = set; then |
| 7810 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7811 |
> |
else |
| 7812 |
> |
ac_cv_c_inline=no |
| 7813 |
> |
for ac_kw in inline __inline__ __inline; do |
| 7814 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 7815 |
> |
/* confdefs.h. */ |
| 7816 |
> |
_ACEOF |
| 7817 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 7818 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 7819 |
> |
/* end confdefs.h. */ |
| 7820 |
> |
#ifndef __cplusplus |
| 7821 |
> |
typedef int foo_t; |
| 7822 |
> |
static $ac_kw foo_t static_foo () {return 0; } |
| 7823 |
> |
$ac_kw foo_t foo () {return 0; } |
| 7824 |
> |
#endif |
| 7825 |
> |
|
| 7826 |
> |
_ACEOF |
| 7827 |
> |
rm -f conftest.$ac_objext |
| 7828 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7829 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 7830 |
> |
ac_status=$? |
| 7831 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7832 |
> |
rm -f conftest.er1 |
| 7833 |
> |
cat conftest.err >&5 |
| 7834 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7835 |
> |
(exit $ac_status); } && |
| 7836 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7837 |
> |
|| test ! -s conftest.err' |
| 7838 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7839 |
> |
(eval $ac_try) 2>&5 |
| 7840 |
> |
ac_status=$? |
| 7841 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7842 |
> |
(exit $ac_status); }; } && |
| 7843 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 7844 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7845 |
> |
(eval $ac_try) 2>&5 |
| 7846 |
> |
ac_status=$? |
| 7847 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7848 |
> |
(exit $ac_status); }; }; then |
| 7849 |
> |
ac_cv_c_inline=$ac_kw; break |
| 7850 |
> |
else |
| 7851 |
> |
echo "$as_me: failed program was:" >&5 |
| 7852 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7853 |
> |
|
| 7854 |
> |
fi |
| 7855 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7856 |
> |
done |
| 7857 |
> |
|
| 7858 |
> |
fi |
| 7859 |
> |
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 7860 |
> |
echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 7861 |
> |
|
| 7862 |
> |
|
| 7863 |
> |
case $ac_cv_c_inline in |
| 7864 |
> |
inline | yes) ;; |
| 7865 |
> |
*) |
| 7866 |
> |
case $ac_cv_c_inline in |
| 7867 |
> |
no) ac_val=;; |
| 7868 |
> |
*) ac_val=$ac_cv_c_inline;; |
| 7869 |
> |
esac |
| 7870 |
> |
cat >>confdefs.h <<_ACEOF |
| 7871 |
> |
#ifndef __cplusplus |
| 7872 |
> |
#define inline $ac_val |
| 7873 |
> |
#endif |
| 7874 |
> |
_ACEOF |
| 7875 |
> |
;; |
| 7876 |
> |
esac |
| 7877 |
> |
|
| 7878 |
> |
|
| 7879 |
> |
|
| 7880 |
> |
# clean out junk possibly left behind by a previous configuration |
| 7881 |
> |
rm -f src/getopt.h |
| 7882 |
> |
# Check for getopt_long support |
| 7883 |
> |
|
| 7884 |
> |
for ac_header in getopt.h |
| 7885 |
> |
do |
| 7886 |
> |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7887 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7888 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7889 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7890 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7891 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7892 |
> |
fi |
| 7893 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7894 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7895 |
> |
else |
| 7896 |
> |
# Is the header compilable? |
| 7897 |
> |
echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7898 |
> |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7899 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 7900 |
> |
/* confdefs.h. */ |
| 7901 |
> |
_ACEOF |
| 7902 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 7903 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 7904 |
> |
/* end confdefs.h. */ |
| 7905 |
> |
$ac_includes_default |
| 7906 |
> |
#include <$ac_header> |
| 7907 |
> |
_ACEOF |
| 7908 |
> |
rm -f conftest.$ac_objext |
| 7909 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7910 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 7911 |
> |
ac_status=$? |
| 7912 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7913 |
> |
rm -f conftest.er1 |
| 7914 |
> |
cat conftest.err >&5 |
| 7915 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7916 |
> |
(exit $ac_status); } && |
| 7917 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 7918 |
> |
|| test ! -s conftest.err' |
| 7919 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7920 |
> |
(eval $ac_try) 2>&5 |
| 7921 |
> |
ac_status=$? |
| 7922 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7923 |
> |
(exit $ac_status); }; } && |
| 7924 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 7925 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7926 |
> |
(eval $ac_try) 2>&5 |
| 7927 |
> |
ac_status=$? |
| 7928 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7929 |
> |
(exit $ac_status); }; }; then |
| 7930 |
> |
ac_header_compiler=yes |
| 7931 |
> |
else |
| 7932 |
> |
echo "$as_me: failed program was:" >&5 |
| 7933 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7934 |
> |
|
| 7935 |
> |
ac_header_compiler=no |
| 7936 |
> |
fi |
| 7937 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7938 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7939 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7940 |
> |
|
| 7941 |
> |
# Is the header present? |
| 7942 |
> |
echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7943 |
> |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7944 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 7945 |
> |
/* confdefs.h. */ |
| 7946 |
> |
_ACEOF |
| 7947 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 7948 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 7949 |
> |
/* end confdefs.h. */ |
| 7950 |
> |
#include <$ac_header> |
| 7951 |
> |
_ACEOF |
| 7952 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7953 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7954 |
> |
ac_status=$? |
| 7955 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 7956 |
> |
rm -f conftest.er1 |
| 7957 |
> |
cat conftest.err >&5 |
| 7958 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7959 |
> |
(exit $ac_status); } >/dev/null; then |
| 7960 |
> |
if test -s conftest.err; then |
| 7961 |
> |
ac_cpp_err=$ac_c_preproc_warn_flag |
| 7962 |
> |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7963 |
> |
else |
| 7964 |
> |
ac_cpp_err= |
| 7965 |
> |
fi |
| 7966 |
> |
else |
| 7967 |
> |
ac_cpp_err=yes |
| 7968 |
> |
fi |
| 7969 |
> |
if test -z "$ac_cpp_err"; then |
| 7970 |
> |
ac_header_preproc=yes |
| 7971 |
> |
else |
| 7972 |
> |
echo "$as_me: failed program was:" >&5 |
| 7973 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 7974 |
> |
|
| 7975 |
> |
ac_header_preproc=no |
| 7976 |
> |
fi |
| 7977 |
> |
rm -f conftest.err conftest.$ac_ext |
| 7978 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7979 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7980 |
> |
|
| 7981 |
> |
# So? What about this header? |
| 7982 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7983 |
> |
yes:no: ) |
| 7984 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7985 |
> |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7986 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7987 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7988 |
> |
ac_header_preproc=yes |
| 7989 |
> |
;; |
| 7990 |
> |
no:yes:* ) |
| 7991 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7992 |
> |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7993 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7994 |
> |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7995 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7996 |
> |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7997 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7998 |
> |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7999 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8000 |
> |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8001 |
> |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8002 |
> |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8003 |
> |
( |
| 8004 |
> |
cat <<\_ASBOX |
| 8005 |
> |
## ------------------------------ ## |
| 8006 |
> |
## Report this to gezelter@nd.edu ## |
| 8007 |
> |
## ------------------------------ ## |
| 8008 |
> |
_ASBOX |
| 8009 |
> |
) | |
| 8010 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
| 8011 |
> |
;; |
| 8012 |
> |
esac |
| 8013 |
> |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8014 |
> |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8015 |
> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8016 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8017 |
> |
else |
| 8018 |
> |
eval "$as_ac_Header=\$ac_header_preproc" |
| 8019 |
> |
fi |
| 8020 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8021 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8022 |
> |
|
| 8023 |
> |
fi |
| 8024 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8025 |
> |
cat >>confdefs.h <<_ACEOF |
| 8026 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8027 |
> |
_ACEOF |
| 8028 |
> |
|
| 8029 |
> |
fi |
| 8030 |
> |
|
| 8031 |
> |
done |
| 8032 |
> |
|
| 8033 |
> |
|
| 8034 |
> |
for ac_func in getopt_long |
| 8035 |
> |
do |
| 8036 |
> |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8037 |
> |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 8038 |
> |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8039 |
> |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8040 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8041 |
> |
else |
| 8042 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 8043 |
> |
/* confdefs.h. */ |
| 8044 |
> |
_ACEOF |
| 8045 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 8046 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 8047 |
> |
/* end confdefs.h. */ |
| 8048 |
> |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 8049 |
> |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8050 |
> |
#define $ac_func innocuous_$ac_func |
| 8051 |
> |
|
| 8052 |
> |
/* System header to define __stub macros and hopefully few prototypes, |
| 8053 |
> |
which can conflict with char $ac_func (); below. |
| 8054 |
> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8055 |
> |
<limits.h> exists even on freestanding compilers. */ |
| 8056 |
> |
|
| 8057 |
> |
#ifdef __STDC__ |
| 8058 |
> |
# include <limits.h> |
| 8059 |
> |
#else |
| 8060 |
> |
# include <assert.h> |
| 8061 |
> |
#endif |
| 8062 |
> |
|
| 8063 |
> |
#undef $ac_func |
| 8064 |
> |
|
| 8065 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 8066 |
> |
#ifdef __cplusplus |
| 8067 |
> |
extern "C" |
| 8068 |
> |
{ |
| 8069 |
> |
#endif |
| 8070 |
> |
/* We use char because int might match the return type of a gcc2 |
| 8071 |
> |
builtin and then its argument prototype would still apply. */ |
| 8072 |
> |
char $ac_func (); |
| 8073 |
> |
/* The GNU C library defines this for functions which it implements |
| 8074 |
> |
to always fail with ENOSYS. Some functions are actually named |
| 8075 |
> |
something starting with __ and the normal name is an alias. */ |
| 8076 |
> |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8077 |
> |
choke me |
| 8078 |
> |
#else |
| 8079 |
> |
char (*f) () = $ac_func; |
| 8080 |
> |
#endif |
| 8081 |
> |
#ifdef __cplusplus |
| 8082 |
> |
} |
| 8083 |
> |
#endif |
| 8084 |
> |
|
| 8085 |
> |
int |
| 8086 |
> |
main () |
| 8087 |
> |
{ |
| 8088 |
> |
return f != $ac_func; |
| 8089 |
> |
; |
| 8090 |
> |
return 0; |
| 8091 |
> |
} |
| 8092 |
> |
_ACEOF |
| 8093 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 8094 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8095 |
> |
(eval $ac_link) 2>conftest.er1 |
| 8096 |
> |
ac_status=$? |
| 8097 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 8098 |
> |
rm -f conftest.er1 |
| 8099 |
> |
cat conftest.err >&5 |
| 8100 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8101 |
> |
(exit $ac_status); } && |
| 8102 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 8103 |
> |
|| test ! -s conftest.err' |
| 8104 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8105 |
> |
(eval $ac_try) 2>&5 |
| 8106 |
> |
ac_status=$? |
| 8107 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8108 |
> |
(exit $ac_status); }; } && |
| 8109 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 8110 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8111 |
> |
(eval $ac_try) 2>&5 |
| 8112 |
> |
ac_status=$? |
| 8113 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8114 |
> |
(exit $ac_status); }; }; then |
| 8115 |
> |
eval "$as_ac_var=yes" |
| 8116 |
> |
else |
| 8117 |
> |
echo "$as_me: failed program was:" >&5 |
| 8118 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 8119 |
> |
|
| 8120 |
> |
eval "$as_ac_var=no" |
| 8121 |
> |
fi |
| 8122 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 8123 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 8124 |
> |
fi |
| 8125 |
> |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 8126 |
> |
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8127 |
> |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 8128 |
> |
cat >>confdefs.h <<_ACEOF |
| 8129 |
> |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8130 |
> |
_ACEOF |
| 8131 |
> |
|
| 8132 |
> |
else |
| 8133 |
> |
# FreeBSD has a gnugetopt library for this |
| 8134 |
> |
echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5 |
| 8135 |
> |
echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6 |
| 8136 |
> |
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then |
| 8137 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8138 |
> |
else |
| 8139 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 8140 |
> |
LIBS="-lgnugetopt $LIBS" |
| 8141 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 8142 |
> |
/* confdefs.h. */ |
| 8143 |
> |
_ACEOF |
| 8144 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 8145 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 8146 |
> |
/* end confdefs.h. */ |
| 8147 |
> |
|
| 8148 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 8149 |
> |
#ifdef __cplusplus |
| 8150 |
> |
extern "C" |
| 8151 |
> |
#endif |
| 8152 |
> |
/* We use char because int might match the return type of a gcc2 |
| 8153 |
> |
builtin and then its argument prototype would still apply. */ |
| 8154 |
> |
char getopt_long (); |
| 8155 |
> |
int |
| 8156 |
> |
main () |
| 8157 |
> |
{ |
| 8158 |
> |
getopt_long (); |
| 8159 |
> |
; |
| 8160 |
> |
return 0; |
| 8161 |
> |
} |
| 8162 |
> |
_ACEOF |
| 8163 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 8164 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8165 |
> |
(eval $ac_link) 2>conftest.er1 |
| 8166 |
> |
ac_status=$? |
| 8167 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 8168 |
> |
rm -f conftest.er1 |
| 8169 |
> |
cat conftest.err >&5 |
| 8170 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8171 |
> |
(exit $ac_status); } && |
| 8172 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 8173 |
> |
|| test ! -s conftest.err' |
| 8174 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8175 |
> |
(eval $ac_try) 2>&5 |
| 8176 |
> |
ac_status=$? |
| 8177 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8178 |
> |
(exit $ac_status); }; } && |
| 8179 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 8180 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8181 |
> |
(eval $ac_try) 2>&5 |
| 8182 |
> |
ac_status=$? |
| 8183 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8184 |
> |
(exit $ac_status); }; }; then |
| 8185 |
> |
ac_cv_lib_gnugetopt_getopt_long=yes |
| 8186 |
> |
else |
| 8187 |
> |
echo "$as_me: failed program was:" >&5 |
| 8188 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 8189 |
> |
|
| 8190 |
> |
ac_cv_lib_gnugetopt_getopt_long=no |
| 8191 |
> |
fi |
| 8192 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 8193 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 8194 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 8195 |
> |
fi |
| 8196 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5 |
| 8197 |
> |
echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6 |
| 8198 |
> |
if test $ac_cv_lib_gnugetopt_getopt_long = yes; then |
| 8199 |
> |
cat >>confdefs.h <<\_ACEOF |
| 8200 |
> |
#define HAVE_GETOPT_LONG 1 |
| 8201 |
> |
_ACEOF |
| 8202 |
> |
|
| 8203 |
> |
else |
| 8204 |
> |
# use the GNU replacement |
| 8205 |
> |
case $LIBOBJS in |
| 8206 |
> |
"getopt.$ac_objext" | \ |
| 8207 |
> |
*" getopt.$ac_objext" | \ |
| 8208 |
> |
"getopt.$ac_objext "* | \ |
| 8209 |
> |
*" getopt.$ac_objext "* ) ;; |
| 8210 |
> |
*) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;; |
| 8211 |
> |
esac |
| 8212 |
> |
|
| 8213 |
> |
case $LIBOBJS in |
| 8214 |
> |
"getopt1.$ac_objext" | \ |
| 8215 |
> |
*" getopt1.$ac_objext" | \ |
| 8216 |
> |
"getopt1.$ac_objext "* | \ |
| 8217 |
> |
*" getopt1.$ac_objext "* ) ;; |
| 8218 |
> |
*) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;; |
| 8219 |
> |
esac |
| 8220 |
> |
|
| 8221 |
> |
ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h" |
| 8222 |
> |
|
| 8223 |
> |
fi |
| 8224 |
> |
|
| 8225 |
> |
fi |
| 8226 |
> |
done |
| 8227 |
> |
|
| 8228 |
> |
|
| 8229 |
> |
|
| 8230 |
> |
case $debug in |
| 8231 |
> |
1) |
| 8232 |
> |
;; |
| 8233 |
> |
*) |
| 8234 |
> |
|
| 8235 |
> |
|
| 8236 |
> |
|
| 8237 |
> |
|
| 8238 |
> |
|
| 8239 |
> |
|
| 8240 |
> |
echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5 |
| 8241 |
> |
echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6 |
| 8242 |
> |
if test "${ac_cv_prog_really_gcc+set}" = set; then |
| 8243 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8244 |
> |
else |
| 8245 |
> |
|
| 8246 |
> |
cat > conftest.c <<EOF |
| 8247 |
> |
#ifdef __GNUC__ |
| 8248 |
> |
#if defined(__INTEL_COMPILER) || defined(__PATHCC__) |
| 8249 |
> |
no; |
| 8250 |
> |
#else |
| 8251 |
> |
yes; |
| 8252 |
> |
#endif |
| 8253 |
> |
#endif |
| 8254 |
> |
EOF |
| 8255 |
> |
if { ac_try='${CC-cc} -E conftest.c' |
| 8256 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8257 |
> |
(eval $ac_try) 2>&5 |
| 8258 |
> |
ac_status=$? |
| 8259 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8260 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
| 8261 |
> |
ac_cv_prog_really_gcc=yes |
| 8262 |
> |
else |
| 8263 |
> |
ac_cv_prog_really_gcc=no |
| 8264 |
> |
fi |
| 8265 |
> |
|
| 8266 |
> |
fi |
| 8267 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5 |
| 8268 |
> |
echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6 |
| 8269 |
> |
if test "$ac_cv_prog_really_gcc" = yes; then |
| 8270 |
> |
: |
| 8271 |
> |
|
| 8272 |
> |
else |
| 8273 |
> |
: |
| 8274 |
> |
|
| 8275 |
> |
fi |
| 8276 |
> |
|
| 8277 |
> |
|
| 8278 |
> |
# Try to determine "good" native compiler flags if none specified on command |
| 8279 |
> |
# line |
| 8280 |
> |
if test "$ac_test_CFLAGS" != "set"; then |
| 8281 |
> |
CFLAGS="" |
| 8282 |
> |
case "${host_cpu}-${host_os}" in |
| 8283 |
> |
|
| 8284 |
> |
*linux*) if test "$CC" = icc; then |
| 8285 |
> |
CFLAGS="-O" |
| 8286 |
> |
fi;; |
| 8287 |
> |
sparc-solaris2*) if test "$CC" = cc; then |
| 8288 |
> |
CFLAGS="-native -fast -xO5 -dalign" |
| 8289 |
> |
fi;; |
| 8290 |
> |
|
| 8291 |
> |
alpha*-osf*) if test "$CC" = cc; then |
| 8292 |
> |
CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1" |
| 8293 |
> |
fi;; |
| 8294 |
> |
|
| 8295 |
> |
hppa*-hpux*) if test "$CC" = cc; then |
| 8296 |
> |
CFLAGS="-Ae +O3 +Oall" |
| 8297 |
> |
fi;; |
| 8298 |
> |
|
| 8299 |
> |
rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then |
| 8300 |
> |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
| 8301 |
> |
fi;; |
| 8302 |
> |
powerpc*-aix*) |
| 8303 |
> |
if test "$CC" = cc -o "$CC" = xlc; then |
| 8304 |
> |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
| 8305 |
> |
echo "*******************************************************" |
| 8306 |
> |
echo "* You have AIX on an unknown powerpc system. It is *" |
| 8307 |
> |
echo "* recommended that you use *" |
| 8308 |
> |
echo "* *" |
| 8309 |
> |
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
| 8310 |
> |
echo "* ^^^ *" |
| 8311 |
> |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
| 8312 |
> |
echo "* PowerPC CPU you have. For more info, man cc. *" |
| 8313 |
> |
echo "*******************************************************" |
| 8314 |
> |
fi;; |
| 8315 |
> |
*darwin*) |
| 8316 |
> |
if test "$CC" = xlc -o "$CC" = cc; then |
| 8317 |
> |
CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
| 8318 |
> |
fi;; |
| 8319 |
> |
esac |
| 8320 |
> |
|
| 8321 |
> |
# use default flags for gcc on all systems |
| 8322 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
| 8323 |
> |
CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
| 8324 |
> |
fi |
| 8325 |
> |
|
| 8326 |
> |
# test for gcc-specific flags: |
| 8327 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
| 8328 |
> |
# -malign-double for x86 systems |
| 8329 |
> |
|
| 8330 |
> |
|
| 8331 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5 |
| 8332 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6 |
| 8333 |
> |
if test "${ac_align_double+set}" = set; then |
| 8334 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8335 |
> |
else |
| 8336 |
> |
echo 'void f(){}' > conftest.c |
| 8337 |
> |
if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then |
| 8338 |
> |
ac_align_double=yes |
| 8339 |
> |
else |
| 8340 |
> |
ac_align_double=no |
| 8341 |
> |
fi |
| 8342 |
> |
rm -f conftest* |
| 8343 |
> |
|
| 8344 |
> |
fi |
| 8345 |
> |
echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
| 8346 |
> |
echo "${ECHO_T}$ac_align_double" >&6 |
| 8347 |
> |
if test "$ac_align_double" = yes; then |
| 8348 |
> |
: |
| 8349 |
> |
CFLAGS="$CFLAGS -malign-double" |
| 8350 |
> |
else |
| 8351 |
> |
: |
| 8352 |
> |
|
| 8353 |
> |
fi |
| 8354 |
> |
|
| 8355 |
> |
# -fstrict-aliasing for gcc-2.95+ |
| 8356 |
> |
|
| 8357 |
> |
|
| 8358 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5 |
| 8359 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6 |
| 8360 |
> |
if test "${ac_fstrict_aliasing+set}" = set; then |
| 8361 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8362 |
> |
else |
| 8363 |
> |
echo 'void f(){}' > conftest.c |
| 8364 |
> |
if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then |
| 8365 |
> |
ac_fstrict_aliasing=yes |
| 8366 |
> |
else |
| 8367 |
> |
ac_fstrict_aliasing=no |
| 8368 |
> |
fi |
| 8369 |
> |
rm -f conftest* |
| 8370 |
> |
|
| 8371 |
> |
fi |
| 8372 |
> |
echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
| 8373 |
> |
echo "${ECHO_T}$ac_fstrict_aliasing" >&6 |
| 8374 |
> |
if test "$ac_fstrict_aliasing" = yes; then |
| 8375 |
> |
: |
| 8376 |
> |
CFLAGS="$CFLAGS -fstrict-aliasing" |
| 8377 |
> |
else |
| 8378 |
> |
: |
| 8379 |
> |
|
| 8380 |
> |
fi |
| 8381 |
> |
|
| 8382 |
> |
fi |
| 8383 |
> |
|
| 8384 |
> |
CPU_FLAGS="" |
| 8385 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
| 8386 |
> |
case "${host_cpu}" in |
| 8387 |
> |
i586*) |
| 8388 |
> |
|
| 8389 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5 |
| 8390 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6 |
| 8391 |
> |
if test "${ac_cpu_pentium+set}" = set; then |
| 8392 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8393 |
> |
else |
| 8394 |
> |
echo 'void f(){}' > conftest.c |
| 8395 |
> |
if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then |
| 8396 |
> |
ac_cpu_pentium=yes |
| 8397 |
> |
else |
| 8398 |
> |
ac_cpu_pentium=no |
| 8399 |
> |
fi |
| 8400 |
> |
rm -f conftest* |
| 8401 |
> |
|
| 8402 |
> |
fi |
| 8403 |
> |
echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 |
| 8404 |
> |
echo "${ECHO_T}$ac_cpu_pentium" >&6 |
| 8405 |
> |
if test "$ac_cpu_pentium" = yes; then |
| 8406 |
> |
: |
| 8407 |
> |
CPU_FLAGS=-mcpu=pentium |
| 8408 |
> |
else |
| 8409 |
> |
: |
| 8410 |
> |
|
| 8411 |
> |
|
| 8412 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5 |
| 8413 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6 |
| 8414 |
> |
if test "${ac_pentium+set}" = set; then |
| 8415 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8416 |
> |
else |
| 8417 |
> |
echo 'void f(){}' > conftest.c |
| 8418 |
> |
if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then |
| 8419 |
> |
ac_pentium=yes |
| 8420 |
> |
else |
| 8421 |
> |
ac_pentium=no |
| 8422 |
> |
fi |
| 8423 |
> |
rm -f conftest* |
| 8424 |
> |
|
| 8425 |
> |
fi |
| 8426 |
> |
echo "$as_me:$LINENO: result: $ac_pentium" >&5 |
| 8427 |
> |
echo "${ECHO_T}$ac_pentium" >&6 |
| 8428 |
> |
if test "$ac_pentium" = yes; then |
| 8429 |
> |
: |
| 8430 |
> |
CPU_FLAGS=-mpentium |
| 8431 |
> |
else |
| 8432 |
> |
: |
| 8433 |
> |
|
| 8434 |
> |
fi |
| 8435 |
> |
|
| 8436 |
> |
fi |
| 8437 |
> |
|
| 8438 |
> |
;; |
| 8439 |
> |
i686*) |
| 8440 |
> |
|
| 8441 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5 |
| 8442 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6 |
| 8443 |
> |
if test "${ac_cpu_pentiumpro+set}" = set; then |
| 8444 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8445 |
> |
else |
| 8446 |
> |
echo 'void f(){}' > conftest.c |
| 8447 |
> |
if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then |
| 8448 |
> |
ac_cpu_pentiumpro=yes |
| 8449 |
> |
else |
| 8450 |
> |
ac_cpu_pentiumpro=no |
| 8451 |
> |
fi |
| 8452 |
> |
rm -f conftest* |
| 8453 |
> |
|
| 8454 |
> |
fi |
| 8455 |
> |
echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 |
| 8456 |
> |
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6 |
| 8457 |
> |
if test "$ac_cpu_pentiumpro" = yes; then |
| 8458 |
> |
: |
| 8459 |
> |
CPU_FLAGS=-mcpu=pentiumpro |
| 8460 |
> |
else |
| 8461 |
> |
: |
| 8462 |
> |
|
| 8463 |
> |
|
| 8464 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5 |
| 8465 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6 |
| 8466 |
> |
if test "${ac_pentiumpro+set}" = set; then |
| 8467 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8468 |
> |
else |
| 8469 |
> |
echo 'void f(){}' > conftest.c |
| 8470 |
> |
if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then |
| 8471 |
> |
ac_pentiumpro=yes |
| 8472 |
> |
else |
| 8473 |
> |
ac_pentiumpro=no |
| 8474 |
> |
fi |
| 8475 |
> |
rm -f conftest* |
| 8476 |
> |
|
| 8477 |
> |
fi |
| 8478 |
> |
echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 |
| 8479 |
> |
echo "${ECHO_T}$ac_pentiumpro" >&6 |
| 8480 |
> |
if test "$ac_pentiumpro" = yes; then |
| 8481 |
> |
: |
| 8482 |
> |
CPU_FLAGS=-mpentiumpro |
| 8483 |
> |
else |
| 8484 |
> |
: |
| 8485 |
> |
|
| 8486 |
> |
fi |
| 8487 |
> |
|
| 8488 |
> |
fi |
| 8489 |
> |
|
| 8490 |
> |
;; |
| 8491 |
> |
powerpc*) |
| 8492 |
> |
cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` |
| 8493 |
> |
is60x=`echo $cputype | egrep "^600-9e?$"` |
| 8494 |
> |
if test -n "$is60x"; then |
| 8495 |
> |
|
| 8496 |
> |
|
| 8497 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5 |
| 8498 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6 |
| 8499 |
> |
if test "${ac_m_cpu_60x+set}" = set; then |
| 8500 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8501 |
> |
else |
| 8502 |
> |
echo 'void f(){}' > conftest.c |
| 8503 |
> |
if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then |
| 8504 |
> |
ac_m_cpu_60x=yes |
| 8505 |
> |
else |
| 8506 |
> |
ac_m_cpu_60x=no |
| 8507 |
> |
fi |
| 8508 |
> |
rm -f conftest* |
| 8509 |
> |
|
| 8510 |
> |
fi |
| 8511 |
> |
echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 |
| 8512 |
> |
echo "${ECHO_T}$ac_m_cpu_60x" >&6 |
| 8513 |
> |
if test "$ac_m_cpu_60x" = yes; then |
| 8514 |
> |
: |
| 8515 |
> |
CPU_FLAGS=-mcpu=$cputype |
| 8516 |
> |
else |
| 8517 |
> |
: |
| 8518 |
> |
|
| 8519 |
> |
fi |
| 8520 |
> |
|
| 8521 |
> |
elif test "$cputype" = 750; then |
| 8522 |
> |
|
| 8523 |
> |
|
| 8524 |
> |
echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5 |
| 8525 |
> |
echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6 |
| 8526 |
> |
if test "${ac_cv_prog_gcc_2_95+set}" = set; then |
| 8527 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8528 |
> |
else |
| 8529 |
> |
|
| 8530 |
> |
cat > conftest.c <<EOF |
| 8531 |
> |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
| 8532 |
> |
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
| 8533 |
> |
yes; |
| 8534 |
> |
# endif |
| 8535 |
> |
#endif |
| 8536 |
> |
EOF |
| 8537 |
> |
if { ac_try='${CC-cc} -E conftest.c' |
| 8538 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8539 |
> |
(eval $ac_try) 2>&5 |
| 8540 |
> |
ac_status=$? |
| 8541 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8542 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
| 8543 |
> |
ac_cv_prog_gcc_2_95=yes |
| 8544 |
> |
else |
| 8545 |
> |
ac_cv_prog_gcc_2_95=no |
| 8546 |
> |
fi |
| 8547 |
> |
|
| 8548 |
> |
fi |
| 8549 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5 |
| 8550 |
> |
echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6 |
| 8551 |
> |
if test "$ac_cv_prog_gcc_2_95" = yes; then |
| 8552 |
> |
: |
| 8553 |
> |
|
| 8554 |
> |
|
| 8555 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5 |
| 8556 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6 |
| 8557 |
> |
if test "${ac_m_cpu_750+set}" = set; then |
| 8558 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8559 |
> |
else |
| 8560 |
> |
echo 'void f(){}' > conftest.c |
| 8561 |
> |
if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then |
| 8562 |
> |
ac_m_cpu_750=yes |
| 8563 |
> |
else |
| 8564 |
> |
ac_m_cpu_750=no |
| 8565 |
> |
fi |
| 8566 |
> |
rm -f conftest* |
| 8567 |
> |
|
| 8568 |
> |
fi |
| 8569 |
> |
echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 |
| 8570 |
> |
echo "${ECHO_T}$ac_m_cpu_750" >&6 |
| 8571 |
> |
if test "$ac_m_cpu_750" = yes; then |
| 8572 |
> |
: |
| 8573 |
> |
CPU_FLAGS=-mcpu=750 |
| 8574 |
> |
else |
| 8575 |
> |
: |
| 8576 |
> |
|
| 8577 |
> |
fi |
| 8578 |
> |
|
| 8579 |
> |
else |
| 8580 |
> |
: |
| 8581 |
> |
|
| 8582 |
> |
fi |
| 8583 |
> |
|
| 8584 |
> |
fi |
| 8585 |
> |
if test -z "$CPU_FLAGS"; then |
| 8586 |
> |
|
| 8587 |
> |
|
| 8588 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5 |
| 8589 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6 |
| 8590 |
> |
if test "${ac_m_cpu_powerpc+set}" = set; then |
| 8591 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8592 |
> |
else |
| 8593 |
> |
echo 'void f(){}' > conftest.c |
| 8594 |
> |
if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then |
| 8595 |
> |
ac_m_cpu_powerpc=yes |
| 8596 |
> |
else |
| 8597 |
> |
ac_m_cpu_powerpc=no |
| 8598 |
> |
fi |
| 8599 |
> |
rm -f conftest* |
| 8600 |
> |
|
| 8601 |
> |
fi |
| 8602 |
> |
echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 |
| 8603 |
> |
echo "${ECHO_T}$ac_m_cpu_powerpc" >&6 |
| 8604 |
> |
if test "$ac_m_cpu_powerpc" = yes; then |
| 8605 |
> |
: |
| 8606 |
> |
CPU_FLAGS=-mcpu=powerpc |
| 8607 |
> |
else |
| 8608 |
> |
: |
| 8609 |
> |
|
| 8610 |
> |
fi |
| 8611 |
> |
|
| 8612 |
> |
fi |
| 8613 |
> |
if test -z "$CPU_FLAGS"; then |
| 8614 |
> |
|
| 8615 |
> |
|
| 8616 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5 |
| 8617 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6 |
| 8618 |
> |
if test "${ac_m_powerpc+set}" = set; then |
| 8619 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8620 |
> |
else |
| 8621 |
> |
echo 'void f(){}' > conftest.c |
| 8622 |
> |
if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then |
| 8623 |
> |
ac_m_powerpc=yes |
| 8624 |
> |
else |
| 8625 |
> |
ac_m_powerpc=no |
| 8626 |
> |
fi |
| 8627 |
> |
rm -f conftest* |
| 8628 |
> |
|
| 8629 |
> |
fi |
| 8630 |
> |
echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 |
| 8631 |
> |
echo "${ECHO_T}$ac_m_powerpc" >&6 |
| 8632 |
> |
if test "$ac_m_powerpc" = yes; then |
| 8633 |
> |
: |
| 8634 |
> |
CPU_FLAGS=-mpowerpc |
| 8635 |
> |
else |
| 8636 |
> |
: |
| 8637 |
> |
|
| 8638 |
> |
fi |
| 8639 |
> |
|
| 8640 |
> |
fi |
| 8641 |
> |
esac |
| 8642 |
> |
fi |
| 8643 |
> |
|
| 8644 |
> |
if test -n "$CPU_FLAGS"; then |
| 8645 |
> |
CFLAGS="$CFLAGS $CPU_FLAGS" |
| 8646 |
> |
fi |
| 8647 |
> |
|
| 8648 |
> |
if test -z "$CFLAGS"; then |
| 8649 |
> |
echo "" |
| 8650 |
> |
echo "********************************************************" |
| 8651 |
> |
echo "* WARNING: Don't know the best CFLAGS for this system *" |
| 8652 |
> |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
| 8653 |
> |
echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" |
| 8654 |
> |
echo "********************************************************" |
| 8655 |
> |
echo "" |
| 8656 |
> |
CFLAGS="-O3" |
| 8657 |
> |
fi |
| 8658 |
> |
|
| 8659 |
> |
|
| 8660 |
> |
|
| 8661 |
> |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5 |
| 8662 |
> |
echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6 |
| 8663 |
> |
if test "${ac_guessed_cflags+set}" = set; then |
| 8664 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8665 |
> |
else |
| 8666 |
> |
echo 'void f(){}' > conftest.c |
| 8667 |
> |
if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then |
| 8668 |
> |
ac_guessed_cflags=yes |
| 8669 |
> |
else |
| 8670 |
> |
ac_guessed_cflags=no |
| 8671 |
> |
fi |
| 8672 |
> |
rm -f conftest* |
| 8673 |
> |
|
| 8674 |
> |
fi |
| 8675 |
> |
echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5 |
| 8676 |
> |
echo "${ECHO_T}$ac_guessed_cflags" >&6 |
| 8677 |
> |
if test "$ac_guessed_cflags" = yes; then |
| 8678 |
> |
: |
| 8679 |
> |
|
| 8680 |
> |
else |
| 8681 |
> |
: |
| 8682 |
> |
|
| 8683 |
> |
echo "" |
| 8684 |
> |
echo "********************************************************" |
| 8685 |
> |
echo "* WARNING: The guessed CFLAGS don't seem to work with *" |
| 8686 |
> |
echo "* your compiler. *" |
| 8687 |
> |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
| 8688 |
> |
echo "********************************************************" |
| 8689 |
> |
echo "" |
| 8690 |
> |
CFLAGS="" |
| 8691 |
> |
|
| 8692 |
> |
fi |
| 8693 |
> |
|
| 8694 |
> |
|
| 8695 |
> |
fi |
| 8696 |
> |
|
| 8697 |
> |
|
| 8698 |
> |
|
| 8699 |
> |
|
| 8700 |
> |
|
| 8701 |
> |
|
| 8702 |
> |
|
| 8703 |
> |
echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5 |
| 8704 |
> |
echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6 |
| 8705 |
> |
if test "${ac_cv_prog_really_gxx+set}" = set; then |
| 8706 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8707 |
> |
else |
| 8708 |
> |
|
| 8709 |
> |
cat > conftest.cpp <<EOF |
| 8710 |
> |
#ifdef __GNUC__ |
| 8711 |
> |
#if defined(__INTEL_COMPILER) || defined(__PATHCC__) |
| 8712 |
> |
no; |
| 8713 |
> |
#else |
| 8714 |
> |
yes; |
| 8715 |
> |
#endif |
| 8716 |
> |
#endif |
| 8717 |
> |
EOF |
| 8718 |
> |
if { ac_try='${CXX-c++} -E conftest.cpp' |
| 8719 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8720 |
> |
(eval $ac_try) 2>&5 |
| 8721 |
> |
ac_status=$? |
| 8722 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8723 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
| 8724 |
> |
ac_cv_prog_really_gxx=yes |
| 8725 |
> |
else |
| 8726 |
> |
ac_cv_prog_really_gxx=no |
| 8727 |
> |
fi |
| 8728 |
> |
|
| 8729 |
> |
fi |
| 8730 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5 |
| 8731 |
> |
echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6 |
| 8732 |
> |
if test "$ac_cv_prog_really_gxx" = yes; then |
| 8733 |
> |
: |
| 8734 |
> |
|
| 8735 |
> |
else |
| 8736 |
> |
: |
| 8737 |
> |
|
| 8738 |
> |
fi |
| 8739 |
> |
|
| 8740 |
> |
|
| 8741 |
> |
# Try to determine "good" native compiler flags if none specified on command |
| 8742 |
> |
# line |
| 8743 |
> |
if test "$ac_test_CXXFLAGS" != "set"; then |
| 8744 |
> |
CXXFLAGS="" |
| 8745 |
> |
case "${host_cpu}-${host_os}" in |
| 8746 |
> |
|
| 8747 |
> |
*linux*) if test "$CXX" = icc -o "$CXX" = icpc; then |
| 8748 |
> |
CXXFLAGS="-O" |
| 8749 |
> |
fi;; |
| 8750 |
> |
sparc-solaris2*) if test "$CXX" = CC; then |
| 8751 |
> |
CXXFLAGS="-native -fast -xO5 -dalign" |
| 8752 |
> |
fi;; |
| 8753 |
> |
rs6000*-aix*) if test "$CXX" = xlC; then |
| 8754 |
> |
CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
| 8755 |
> |
fi;; |
| 8756 |
> |
powerpc*-aix*) |
| 8757 |
> |
if test "$CXX" = xlC; then |
| 8758 |
> |
CXXFLAGS="-O3 -qarch=ppc -qansialias -w" |
| 8759 |
> |
echo "*******************************************************" |
| 8760 |
> |
echo "* You have AIX on an unknown powerpc system. It is *" |
| 8761 |
> |
echo "* recommended that you use *" |
| 8762 |
> |
echo "* *" |
| 8763 |
> |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
| 8764 |
> |
echo "* ^^^ *" |
| 8765 |
> |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
| 8766 |
> |
echo "* PowerPC CPU you have. For more info, man cc. *" |
| 8767 |
> |
echo "*******************************************************" |
| 8768 |
> |
fi;; |
| 8769 |
> |
*darwin*) |
| 8770 |
> |
if test "$CXX" = xlc++ -o "$CXX" = xlC ; then |
| 8771 |
> |
CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
| 8772 |
> |
fi;; |
| 8773 |
> |
esac |
| 8774 |
> |
|
| 8775 |
> |
# use default flags for gcc on all systems |
| 8776 |
> |
if test $ac_cv_prog_really_gxx = yes; then |
| 8777 |
> |
CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
| 8778 |
> |
fi |
| 8779 |
> |
|
| 8780 |
> |
# test for gcc-specific flags: |
| 8781 |
> |
if test $ac_cv_prog_really_gxx = yes; then |
| 8782 |
> |
# -malign-double for x86 systems |
| 8783 |
> |
|
| 8784 |
> |
|
| 8785 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5 |
| 8786 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6 |
| 8787 |
> |
if test "${ac_align_double+set}" = set; then |
| 8788 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8789 |
> |
else |
| 8790 |
> |
echo 'void f(){}' > conftest.cpp |
| 8791 |
> |
if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then |
| 8792 |
> |
ac_align_double=yes |
| 8793 |
> |
else |
| 8794 |
> |
ac_align_double=no |
| 8795 |
> |
fi |
| 8796 |
> |
rm -f conftest* |
| 8797 |
> |
|
| 8798 |
> |
fi |
| 8799 |
> |
echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
| 8800 |
> |
echo "${ECHO_T}$ac_align_double" >&6 |
| 8801 |
> |
if test "$ac_align_double" = yes; then |
| 8802 |
> |
: |
| 8803 |
> |
CXXFLAGS="$CXXFLAGS -malign-double" |
| 8804 |
> |
else |
| 8805 |
> |
: |
| 8806 |
> |
|
| 8807 |
> |
fi |
| 8808 |
> |
|
| 8809 |
> |
# -fstrict-aliasing for gcc-2.95+ |
| 8810 |
> |
|
| 8811 |
> |
|
| 8812 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5 |
| 8813 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6 |
| 8814 |
> |
if test "${ac_fstrict_aliasing+set}" = set; then |
| 8815 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8816 |
> |
else |
| 8817 |
> |
echo 'void f(){}' > conftest.cpp |
| 8818 |
> |
if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then |
| 8819 |
> |
ac_fstrict_aliasing=yes |
| 8820 |
> |
else |
| 8821 |
> |
ac_fstrict_aliasing=no |
| 8822 |
> |
fi |
| 8823 |
> |
rm -f conftest* |
| 8824 |
> |
|
| 8825 |
> |
fi |
| 8826 |
> |
echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
| 8827 |
> |
echo "${ECHO_T}$ac_fstrict_aliasing" >&6 |
| 8828 |
> |
if test "$ac_fstrict_aliasing" = yes; then |
| 8829 |
> |
: |
| 8830 |
> |
CXXFLAGS="$CXXFLAGS -fstrict-aliasing" |
| 8831 |
> |
else |
| 8832 |
> |
: |
| 8833 |
> |
|
| 8834 |
> |
fi |
| 8835 |
> |
|
| 8836 |
> |
fi |
| 8837 |
> |
|
| 8838 |
> |
CPU_FLAGS="" |
| 8839 |
> |
if test $ac_cv_prog_really_gxx = yes; then |
| 8840 |
> |
case "${host_cpu}" in |
| 8841 |
> |
i586*) |
| 8842 |
> |
|
| 8843 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5 |
| 8844 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6 |
| 8845 |
> |
if test "${ac_cpu_pentium+set}" = set; then |
| 8846 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8847 |
> |
else |
| 8848 |
> |
echo 'void f(){}' > conftest.cpp |
| 8849 |
> |
if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then |
| 8850 |
> |
ac_cpu_pentium=yes |
| 8851 |
> |
else |
| 8852 |
> |
ac_cpu_pentium=no |
| 8853 |
> |
fi |
| 8854 |
> |
rm -f conftest* |
| 8855 |
> |
|
| 8856 |
> |
fi |
| 8857 |
> |
echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 |
| 8858 |
> |
echo "${ECHO_T}$ac_cpu_pentium" >&6 |
| 8859 |
> |
if test "$ac_cpu_pentium" = yes; then |
| 8860 |
> |
: |
| 8861 |
> |
CPU_FLAGS=-mcpu=pentium |
| 8862 |
> |
else |
| 8863 |
> |
: |
| 8864 |
> |
|
| 8865 |
> |
|
| 8866 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5 |
| 8867 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6 |
| 8868 |
> |
if test "${ac_pentium+set}" = set; then |
| 8869 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8870 |
> |
else |
| 8871 |
> |
echo 'void f(){}' > conftest.cpp |
| 8872 |
> |
if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then |
| 8873 |
> |
ac_pentium=yes |
| 8874 |
> |
else |
| 8875 |
> |
ac_pentium=no |
| 8876 |
> |
fi |
| 8877 |
> |
rm -f conftest* |
| 8878 |
> |
|
| 8879 |
> |
fi |
| 8880 |
> |
echo "$as_me:$LINENO: result: $ac_pentium" >&5 |
| 8881 |
> |
echo "${ECHO_T}$ac_pentium" >&6 |
| 8882 |
> |
if test "$ac_pentium" = yes; then |
| 8883 |
> |
: |
| 8884 |
> |
CPU_FLAGS=-mpentium |
| 8885 |
> |
else |
| 8886 |
> |
: |
| 8887 |
> |
|
| 8888 |
> |
fi |
| 8889 |
> |
|
| 8890 |
> |
fi |
| 8891 |
> |
|
| 8892 |
> |
;; |
| 8893 |
> |
i686*) |
| 8894 |
> |
|
| 8895 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5 |
| 8896 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6 |
| 8897 |
> |
if test "${ac_cpu_pentiumpro+set}" = set; then |
| 8898 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8899 |
> |
else |
| 8900 |
> |
echo 'void f(){}' > conftest.cpp |
| 8901 |
> |
if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then |
| 8902 |
> |
ac_cpu_pentiumpro=yes |
| 8903 |
> |
else |
| 8904 |
> |
ac_cpu_pentiumpro=no |
| 8905 |
> |
fi |
| 8906 |
> |
rm -f conftest* |
| 8907 |
> |
|
| 8908 |
> |
fi |
| 8909 |
> |
echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 |
| 8910 |
> |
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6 |
| 8911 |
> |
if test "$ac_cpu_pentiumpro" = yes; then |
| 8912 |
> |
: |
| 8913 |
> |
CPU_FLAGS=-mcpu=pentiumpro |
| 8914 |
> |
else |
| 8915 |
> |
: |
| 8916 |
> |
|
| 8917 |
> |
|
| 8918 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5 |
| 8919 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6 |
| 8920 |
> |
if test "${ac_pentiumpro+set}" = set; then |
| 8921 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8922 |
> |
else |
| 8923 |
> |
echo 'void f(){}' > conftest.cpp |
| 8924 |
> |
if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then |
| 8925 |
> |
ac_pentiumpro=yes |
| 8926 |
> |
else |
| 8927 |
> |
ac_pentiumpro=no |
| 8928 |
> |
fi |
| 8929 |
> |
rm -f conftest* |
| 8930 |
> |
|
| 8931 |
> |
fi |
| 8932 |
> |
echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 |
| 8933 |
> |
echo "${ECHO_T}$ac_pentiumpro" >&6 |
| 8934 |
> |
if test "$ac_pentiumpro" = yes; then |
| 8935 |
> |
: |
| 8936 |
> |
CPU_FLAGS=-mpentiumpro |
| 8937 |
> |
else |
| 8938 |
> |
: |
| 8939 |
> |
|
| 8940 |
> |
fi |
| 8941 |
> |
|
| 8942 |
> |
fi |
| 8943 |
> |
|
| 8944 |
> |
;; |
| 8945 |
> |
powerpc*) |
| 8946 |
> |
cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` |
| 8947 |
> |
is60x=`echo $cputype | egrep "^600-9e?$"` |
| 8948 |
> |
if test -n "$is60x"; then |
| 8949 |
> |
|
| 8950 |
> |
|
| 8951 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5 |
| 8952 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6 |
| 8953 |
> |
if test "${ac_m_cpu_60x+set}" = set; then |
| 8954 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8955 |
> |
else |
| 8956 |
> |
echo 'void f(){}' > conftest.cpp |
| 8957 |
> |
if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then |
| 8958 |
> |
ac_m_cpu_60x=yes |
| 8959 |
> |
else |
| 8960 |
> |
ac_m_cpu_60x=no |
| 8961 |
> |
fi |
| 8962 |
> |
rm -f conftest* |
| 8963 |
> |
|
| 8964 |
> |
fi |
| 8965 |
> |
echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 |
| 8966 |
> |
echo "${ECHO_T}$ac_m_cpu_60x" >&6 |
| 8967 |
> |
if test "$ac_m_cpu_60x" = yes; then |
| 8968 |
> |
: |
| 8969 |
> |
CPU_FLAGS=-mcpu=$cputype |
| 8970 |
> |
else |
| 8971 |
> |
: |
| 8972 |
> |
|
| 8973 |
> |
fi |
| 8974 |
> |
|
| 8975 |
> |
elif test "$cputype" = 750; then |
| 8976 |
> |
|
| 8977 |
> |
|
| 8978 |
> |
echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5 |
| 8979 |
> |
echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6 |
| 8980 |
> |
if test "${ac_cv_prog_gxx_2_95+set}" = set; then |
| 8981 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8982 |
> |
else |
| 8983 |
> |
|
| 8984 |
> |
cat > conftest.cpp <<EOF |
| 8985 |
> |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
| 8986 |
> |
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
| 8987 |
> |
yes; |
| 8988 |
> |
# endif |
| 8989 |
> |
#endif |
| 8990 |
> |
EOF |
| 8991 |
> |
if { ac_try='${CXX-c++} -E conftest.cpp' |
| 8992 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8993 |
> |
(eval $ac_try) 2>&5 |
| 8994 |
> |
ac_status=$? |
| 8995 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8996 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
| 8997 |
> |
ac_cv_prog_gxx_2_95=yes |
| 8998 |
> |
else |
| 8999 |
> |
ac_cv_prog_gxx_2_95=no |
| 9000 |
> |
fi |
| 9001 |
> |
|
| 9002 |
> |
fi |
| 9003 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5 |
| 9004 |
> |
echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6 |
| 9005 |
> |
if test "$ac_cv_prog_gxx_2_95" = yes; then |
| 9006 |
> |
: |
| 9007 |
> |
|
| 9008 |
> |
|
| 9009 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5 |
| 9010 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6 |
| 9011 |
> |
if test "${ac_m_cpu_750+set}" = set; then |
| 9012 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9013 |
> |
else |
| 9014 |
> |
echo 'void f(){}' > conftest.cpp |
| 9015 |
> |
if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then |
| 9016 |
> |
ac_m_cpu_750=yes |
| 9017 |
> |
else |
| 9018 |
> |
ac_m_cpu_750=no |
| 9019 |
> |
fi |
| 9020 |
> |
rm -f conftest* |
| 9021 |
> |
|
| 9022 |
> |
fi |
| 9023 |
> |
echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 |
| 9024 |
> |
echo "${ECHO_T}$ac_m_cpu_750" >&6 |
| 9025 |
> |
if test "$ac_m_cpu_750" = yes; then |
| 9026 |
> |
: |
| 9027 |
> |
CPU_FLAGS=-mcpu=750 |
| 9028 |
> |
else |
| 9029 |
> |
: |
| 9030 |
> |
|
| 9031 |
> |
fi |
| 9032 |
> |
|
| 9033 |
> |
else |
| 9034 |
> |
: |
| 9035 |
> |
|
| 9036 |
> |
fi |
| 9037 |
> |
|
| 9038 |
> |
fi |
| 9039 |
> |
if test -z "$CPU_FLAGS"; then |
| 9040 |
> |
|
| 9041 |
> |
|
| 9042 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5 |
| 9043 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6 |
| 9044 |
> |
if test "${ac_m_cpu_powerpc+set}" = set; then |
| 9045 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9046 |
> |
else |
| 9047 |
> |
echo 'void f(){}' > conftest.cpp |
| 9048 |
> |
if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then |
| 9049 |
> |
ac_m_cpu_powerpc=yes |
| 9050 |
> |
else |
| 9051 |
> |
ac_m_cpu_powerpc=no |
| 9052 |
> |
fi |
| 9053 |
> |
rm -f conftest* |
| 9054 |
> |
|
| 9055 |
> |
fi |
| 9056 |
> |
echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 |
| 9057 |
> |
echo "${ECHO_T}$ac_m_cpu_powerpc" >&6 |
| 9058 |
> |
if test "$ac_m_cpu_powerpc" = yes; then |
| 9059 |
> |
: |
| 9060 |
> |
CPU_FLAGS=-mcpu=powerpc |
| 9061 |
> |
else |
| 9062 |
> |
: |
| 9063 |
> |
|
| 9064 |
> |
fi |
| 9065 |
> |
|
| 9066 |
> |
fi |
| 9067 |
> |
if test -z "$CPU_FLAGS"; then |
| 9068 |
> |
|
| 9069 |
> |
|
| 9070 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5 |
| 9071 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6 |
| 9072 |
> |
if test "${ac_m_powerpc+set}" = set; then |
| 9073 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9074 |
> |
else |
| 9075 |
> |
echo 'void f(){}' > conftest.cpp |
| 9076 |
> |
if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then |
| 9077 |
> |
ac_m_powerpc=yes |
| 9078 |
> |
else |
| 9079 |
> |
ac_m_powerpc=no |
| 9080 |
> |
fi |
| 9081 |
> |
rm -f conftest* |
| 9082 |
> |
|
| 9083 |
> |
fi |
| 9084 |
> |
echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 |
| 9085 |
> |
echo "${ECHO_T}$ac_m_powerpc" >&6 |
| 9086 |
> |
if test "$ac_m_powerpc" = yes; then |
| 9087 |
> |
: |
| 9088 |
> |
CPU_FLAGS=-mpowerpc |
| 9089 |
> |
else |
| 9090 |
> |
: |
| 9091 |
> |
|
| 9092 |
> |
fi |
| 9093 |
> |
|
| 9094 |
> |
fi |
| 9095 |
> |
esac |
| 9096 |
> |
fi |
| 9097 |
> |
|
| 9098 |
> |
if test -n "$CPU_FLAGS"; then |
| 9099 |
> |
CXXFLAGS="$CXXFLAGS $CPU_FLAGS" |
| 9100 |
> |
fi |
| 9101 |
> |
|
| 9102 |
> |
if test -z "$CXXFLAGS"; then |
| 9103 |
> |
echo "" |
| 9104 |
> |
echo "**********************************************************" |
| 9105 |
> |
echo "* WARNING: Don't know the best CXXFLAGS for this system *" |
| 9106 |
> |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
| 9107 |
> |
echo "* (otherwise, a default of CXXFLAGS=-O3 will be used) *" |
| 9108 |
> |
echo "**********************************************************" |
| 9109 |
> |
echo "" |
| 9110 |
> |
CXXFLAGS="-O3" |
| 9111 |
> |
fi |
| 9112 |
> |
|
| 9113 |
> |
|
| 9114 |
> |
|
| 9115 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5 |
| 9116 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6 |
| 9117 |
> |
if test "${ac_guessed_cxxflags+set}" = set; then |
| 9118 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9119 |
> |
else |
| 9120 |
> |
echo 'void f(){}' > conftest.cpp |
| 9121 |
> |
if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then |
| 9122 |
> |
ac_guessed_cxxflags=yes |
| 9123 |
> |
else |
| 9124 |
> |
ac_guessed_cxxflags=no |
| 9125 |
> |
fi |
| 9126 |
> |
rm -f conftest* |
| 9127 |
> |
|
| 9128 |
> |
fi |
| 9129 |
> |
echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5 |
| 9130 |
> |
echo "${ECHO_T}$ac_guessed_cxxflags" >&6 |
| 9131 |
> |
if test "$ac_guessed_cxxflags" = yes; then |
| 9132 |
> |
: |
| 9133 |
> |
|
| 9134 |
> |
else |
| 9135 |
> |
: |
| 9136 |
> |
|
| 9137 |
> |
echo "" |
| 9138 |
> |
echo "**********************************************************" |
| 9139 |
> |
echo "* WARNING: The guessed CXXFLAGS don't seem to work with *" |
| 9140 |
> |
echo "* your compiler. *" |
| 9141 |
> |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
| 9142 |
> |
echo "**********************************************************" |
| 9143 |
> |
echo "" |
| 9144 |
> |
CXXFLAGS="" |
| 9145 |
> |
|
| 9146 |
> |
fi |
| 9147 |
> |
|
| 9148 |
> |
|
| 9149 |
> |
fi |
| 9150 |
> |
|
| 9151 |
> |
|
| 9152 |
> |
|
| 9153 |
> |
|
| 9154 |
> |
|
| 9155 |
> |
# Try to determine "good" native compiler flags if none specified on command |
| 9156 |
> |
# line |
| 9157 |
> |
|
| 9158 |
> |
if test x"$F90FLAGS" = x ; then |
| 9159 |
> |
F90FLAGS="" |
| 9160 |
> |
case "${host_cpu}-${host_os}" in |
| 9161 |
> |
|
| 9162 |
> |
*linux*) if test "$F90" = ifc -o "$F90" = ifort; then |
| 9163 |
> |
F90FLAGS="-O" |
| 9164 |
> |
fi;; |
| 9165 |
> |
rs6000*-aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
| 9166 |
> |
F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
| 9167 |
> |
fi;; |
| 9168 |
> |
powerpc*-aix*) |
| 9169 |
> |
if test "$F90" = f90 -o "$F90" = xlf90; then |
| 9170 |
> |
F90FLAGS="-O3 -qarch=ppc -qansialias -w" |
| 9171 |
> |
echo "*******************************************************" |
| 9172 |
> |
echo "* You have AIX on an unknown powerpc system. It is *" |
| 9173 |
> |
echo "* recommended that you use *" |
| 9174 |
> |
echo "* *" |
| 9175 |
> |
echo "* F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
| 9176 |
> |
echo "* ^^^ *" |
| 9177 |
> |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
| 9178 |
> |
echo "* PowerPC CPU you have. For more info, man xlf. *" |
| 9179 |
> |
echo "*******************************************************" |
| 9180 |
> |
fi;; |
| 9181 |
> |
*darwin*) |
| 9182 |
> |
if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then |
| 9183 |
> |
F90FLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto" |
| 9184 |
> |
fi;; |
| 9185 |
> |
esac |
| 9186 |
> |
|
| 9187 |
> |
if test -n "$CPU_FLAGS"; then |
| 9188 |
> |
F90FLAGS="$F90FLAGS $CPU_FLAGS" |
| 9189 |
> |
fi |
| 9190 |
> |
|
| 9191 |
> |
if test -z "$F90FLAGS"; then |
| 9192 |
> |
echo "" |
| 9193 |
> |
echo "**********************************************************" |
| 9194 |
> |
echo "* WARNING: Don't know the best F90FLAGS for this system *" |
| 9195 |
> |
echo "* Use make F90FLAGS=..., or edit the top level Makefile *" |
| 9196 |
> |
echo "* (otherwise, a default of F90FLAGS=-O3 will be used) *" |
| 9197 |
> |
echo "**********************************************************" |
| 9198 |
> |
echo "" |
| 9199 |
> |
F90FLAGS="-O3" |
| 9200 |
> |
fi |
| 9201 |
> |
|
| 9202 |
> |
|
| 9203 |
> |
echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5 |
| 9204 |
> |
echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6 |
| 9205 |
> |
if test "${ac_guessed_f90flags+set}" = set; then |
| 9206 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9207 |
> |
else |
| 9208 |
> |
|
| 9209 |
> |
|
| 9210 |
> |
|
| 9211 |
> |
ac_ext=f90 |
| 9212 |
> |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
| 9213 |
> |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9214 |
> |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
| 9215 |
> |
|
| 9216 |
> |
echo 'program main' > conftest.$ac_ext |
| 9217 |
> |
echo 'end program main' >> conftest.$ac_ext |
| 9218 |
> |
ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5' |
| 9219 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9220 |
> |
(eval $ac_compile) 2>&5 |
| 9221 |
> |
ac_status=$? |
| 9222 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9223 |
> |
(exit $ac_status); }; then |
| 9224 |
> |
ac_guessed_f90flags=yes |
| 9225 |
> |
else |
| 9226 |
> |
ac_guessed_f90flags=no |
| 9227 |
> |
fi |
| 9228 |
> |
rm -f conftest* |
| 9229 |
> |
ac_ext=c |
| 9230 |
> |
ac_cpp='$CPP $CPPFLAGS' |
| 9231 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9232 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9233 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9234 |
> |
|
| 9235 |
> |
|
| 9236 |
> |
fi |
| 9237 |
> |
echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5 |
| 9238 |
> |
echo "${ECHO_T}$ac_guessed_f90flags" >&6 |
| 9239 |
> |
if test "$ac_guessed_f90flags" = yes; then |
| 9240 |
> |
: |
| 9241 |
> |
|
| 9242 |
> |
else |
| 9243 |
> |
: |
| 9244 |
> |
|
| 9245 |
> |
echo "" |
| 9246 |
> |
echo "**********************************************************" |
| 9247 |
> |
echo "* WARNING: The guessed F90FLAGS don't seem to work with *" |
| 9248 |
> |
echo "* your compiler. *" |
| 9249 |
> |
echo "* Use make F90FLAGS=..., or edit the top level Makefile *" |
| 9250 |
> |
echo "**********************************************************" |
| 9251 |
> |
echo "" |
| 9252 |
> |
F90FLAGS="" |
| 9253 |
> |
|
| 9254 |
> |
fi |
| 9255 |
> |
|
| 9256 |
> |
|
| 9257 |
> |
fi |
| 9258 |
> |
|
| 9259 |
> |
;; |
| 9260 |
> |
esac |
| 9261 |
> |
|
| 9262 |
> |
# Find a good install program. We prefer a C program (faster), |
| 9263 |
> |
# so one script is as good as another. But avoid the broken or |
| 9264 |
> |
# incompatible versions: |
| 9265 |
> |
# SysV /etc/install, /usr/sbin/install |
| 9266 |
> |
# SunOS /usr/etc/install |
| 9267 |
> |
# IRIX /sbin/install |
| 9268 |
> |
# AIX /bin/install |
| 9269 |
> |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
| 9270 |
> |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 9271 |
> |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 9272 |
> |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 9273 |
> |
# OS/2's system install, which has a completely different semantic |
| 9274 |
> |
# ./install, which can be erroneously created by make from ./install.sh. |
| 9275 |
> |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 9276 |
> |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 9277 |
> |
if test -z "$INSTALL"; then |
| 9278 |
> |
if test "${ac_cv_path_install+set}" = set; then |
| 9279 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9280 |
> |
else |
| 9281 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9282 |
> |
for as_dir in $PATH |
| 9283 |
> |
do |
| 9284 |
> |
IFS=$as_save_IFS |
| 9285 |
> |
test -z "$as_dir" && as_dir=. |
| 9286 |
> |
# Account for people who put trailing slashes in PATH elements. |
| 9287 |
> |
case $as_dir/ in |
| 9288 |
> |
./ | .// | /cC/* | \ |
| 9289 |
> |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 9290 |
> |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 9291 |
> |
/usr/ucb/* ) ;; |
| 9292 |
> |
*) |
| 9293 |
> |
# OSF1 and SCO ODT 3.0 have their own names for install. |
| 9294 |
> |
# Don't use installbsd from OSF since it installs stuff as root |
| 9295 |
> |
# by default. |
| 9296 |
> |
for ac_prog in ginstall scoinst install; do |
| 9297 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9298 |
> |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 9299 |
> |
if test $ac_prog = install && |
| 9300 |
> |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 9301 |
> |
# AIX install. It has an incompatible calling convention. |
| 9302 |
> |
: |
| 9303 |
> |
elif test $ac_prog = install && |
| 9304 |
> |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 9305 |
> |
# program-specific install script used by HP pwplus--don't use. |
| 9306 |
> |
: |
| 9307 |
> |
else |
| 9308 |
> |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 9309 |
> |
break 3 |
| 9310 |
> |
fi |
| 9311 |
> |
fi |
| 9312 |
> |
done |
| 9313 |
> |
done |
| 9314 |
> |
;; |
| 9315 |
> |
esac |
| 9316 |
> |
done |
| 9317 |
> |
|
| 9318 |
> |
|
| 9319 |
> |
fi |
| 9320 |
> |
if test "${ac_cv_path_install+set}" = set; then |
| 9321 |
> |
INSTALL=$ac_cv_path_install |
| 9322 |
> |
else |
| 9323 |
> |
# As a last resort, use the slow shell script. We don't cache a |
| 9324 |
> |
# path for INSTALL within a source directory, because that will |
| 9325 |
> |
# break other packages using the cache if that directory is |
| 9326 |
> |
# removed, or if the path is relative. |
| 9327 |
> |
INSTALL=$ac_install_sh |
| 9328 |
> |
fi |
| 9329 |
> |
fi |
| 9330 |
> |
echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 9331 |
> |
echo "${ECHO_T}$INSTALL" >&6 |
| 9332 |
> |
|
| 9333 |
> |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 9334 |
> |
# It thinks the first close brace ends the variable substitution. |
| 9335 |
> |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 9336 |
> |
|
| 9337 |
> |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 9338 |
> |
|
| 9339 |
> |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 9340 |
> |
|
| 9341 |
> |
echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 9342 |
> |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 9343 |
> |
LN_S=$as_ln_s |
| 9344 |
> |
if test "$LN_S" = "ln -s"; then |
| 9345 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
| 9346 |
> |
echo "${ECHO_T}yes" >&6 |
| 9347 |
> |
else |
| 9348 |
> |
echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 9349 |
> |
echo "${ECHO_T}no, using $LN_S" >&6 |
| 9350 |
> |
fi |
| 9351 |
> |
|
| 9352 |
> |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 9353 |
> |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 9354 |
> |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 9355 |
> |
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 9356 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9357 |
> |
else |
| 9358 |
> |
cat >conftest.make <<\_ACEOF |
| 9359 |
> |
all: |
| 9360 |
> |
@echo 'ac_maketemp="$(MAKE)"' |
| 9361 |
> |
_ACEOF |
| 9362 |
> |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 9363 |
> |
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 9364 |
> |
if test -n "$ac_maketemp"; then |
| 9365 |
> |
eval ac_cv_prog_make_${ac_make}_set=yes |
| 9366 |
> |
else |
| 9367 |
> |
eval ac_cv_prog_make_${ac_make}_set=no |
| 9368 |
> |
fi |
| 9369 |
> |
rm -f conftest.make |
| 9370 |
> |
fi |
| 9371 |
> |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 9372 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
| 9373 |
> |
echo "${ECHO_T}yes" >&6 |
| 9374 |
> |
SET_MAKE= |
| 9375 |
> |
else |
| 9376 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 9377 |
> |
echo "${ECHO_T}no" >&6 |
| 9378 |
> |
SET_MAKE="MAKE=${MAKE-make}" |
| 9379 |
> |
fi |
| 9380 |
> |
|
| 9381 |
> |
if test -n "$ac_tool_prefix"; then |
| 9382 |
> |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 9383 |
> |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 9384 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9385 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9386 |
> |
if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 9387 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9388 |
> |
else |
| 9389 |
> |
if test -n "$RANLIB"; then |
| 9390 |
> |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 9391 |
> |
else |
| 9392 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9393 |
> |
for as_dir in $PATH |
| 9394 |
> |
do |
| 9395 |
> |
IFS=$as_save_IFS |
| 9396 |
> |
test -z "$as_dir" && as_dir=. |
| 9397 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9398 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9399 |
> |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 9400 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9401 |
> |
break 2 |
| 9402 |
> |
fi |
| 9403 |
> |
done |
| 9404 |
> |
done |
| 9405 |
> |
|
| 9406 |
> |
fi |
| 9407 |
> |
fi |
| 9408 |
> |
RANLIB=$ac_cv_prog_RANLIB |
| 9409 |
> |
if test -n "$RANLIB"; then |
| 9410 |
> |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 9411 |
> |
echo "${ECHO_T}$RANLIB" >&6 |
| 9412 |
> |
else |
| 9413 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 9414 |
> |
echo "${ECHO_T}no" >&6 |
| 9415 |
> |
fi |
| 9416 |
> |
|
| 9417 |
> |
fi |
| 9418 |
> |
if test -z "$ac_cv_prog_RANLIB"; then |
| 9419 |
> |
ac_ct_RANLIB=$RANLIB |
| 9420 |
> |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 9421 |
> |
set dummy ranlib; ac_word=$2 |
| 9422 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9423 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9424 |
> |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 9425 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9426 |
> |
else |
| 9427 |
> |
if test -n "$ac_ct_RANLIB"; then |
| 9428 |
> |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 9429 |
> |
else |
| 9430 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9431 |
> |
for as_dir in $PATH |
| 9432 |
> |
do |
| 9433 |
> |
IFS=$as_save_IFS |
| 9434 |
> |
test -z "$as_dir" && as_dir=. |
| 9435 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9436 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9437 |
> |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 9438 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9439 |
> |
break 2 |
| 9440 |
> |
fi |
| 9441 |
> |
done |
| 9442 |
> |
done |
| 9443 |
> |
|
| 9444 |
> |
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 9445 |
> |
fi |
| 9446 |
> |
fi |
| 9447 |
> |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 9448 |
> |
if test -n "$ac_ct_RANLIB"; then |
| 9449 |
> |
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 9450 |
> |
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 9451 |
> |
else |
| 9452 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 9453 |
> |
echo "${ECHO_T}no" >&6 |
| 9454 |
> |
fi |
| 9455 |
> |
|
| 9456 |
> |
RANLIB=$ac_ct_RANLIB |
| 9457 |
> |
else |
| 9458 |
> |
RANLIB="$ac_cv_prog_RANLIB" |
| 9459 |
> |
fi |
| 9460 |
> |
|
| 9461 |
> |
for ac_prog in 'bison -y' byacc |
| 9462 |
> |
do |
| 9463 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9464 |
> |
set dummy $ac_prog; ac_word=$2 |
| 9465 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9466 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9467 |
> |
if test "${ac_cv_prog_YACC+set}" = set; then |
| 9468 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9469 |
> |
else |
| 9470 |
> |
if test -n "$YACC"; then |
| 9471 |
> |
ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 9472 |
> |
else |
| 9473 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9474 |
> |
for as_dir in $PATH |
| 9475 |
> |
do |
| 9476 |
> |
IFS=$as_save_IFS |
| 9477 |
> |
test -z "$as_dir" && as_dir=. |
| 9478 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9479 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9480 |
> |
ac_cv_prog_YACC="$ac_prog" |
| 9481 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9482 |
> |
break 2 |
| 9483 |
> |
fi |
| 9484 |
> |
done |
| 9485 |
> |
done |
| 9486 |
> |
|
| 9487 |
> |
fi |
| 9488 |
> |
fi |
| 9489 |
> |
YACC=$ac_cv_prog_YACC |
| 9490 |
> |
if test -n "$YACC"; then |
| 9491 |
> |
echo "$as_me:$LINENO: result: $YACC" >&5 |
| 9492 |
> |
echo "${ECHO_T}$YACC" >&6 |
| 9493 |
> |
else |
| 9494 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 9495 |
> |
echo "${ECHO_T}no" >&6 |
| 9496 |
> |
fi |
| 9497 |
> |
|
| 9498 |
> |
test -n "$YACC" && break |
| 9499 |
> |
done |
| 9500 |
> |
test -n "$YACC" || YACC="yacc" |
| 9501 |
> |
|
| 9502 |
> |
for ac_prog in flex lex |
| 9503 |
> |
do |
| 9504 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9505 |
> |
set dummy $ac_prog; ac_word=$2 |
| 9506 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9507 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9508 |
> |
if test "${ac_cv_prog_LEX+set}" = set; then |
| 9509 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9510 |
> |
else |
| 9511 |
> |
if test -n "$LEX"; then |
| 9512 |
> |
ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 9513 |
> |
else |
| 9514 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9515 |
> |
for as_dir in $PATH |
| 9516 |
> |
do |
| 9517 |
> |
IFS=$as_save_IFS |
| 9518 |
> |
test -z "$as_dir" && as_dir=. |
| 9519 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9520 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9521 |
> |
ac_cv_prog_LEX="$ac_prog" |
| 9522 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9523 |
> |
break 2 |
| 9524 |
> |
fi |
| 9525 |
> |
done |
| 9526 |
> |
done |
| 9527 |
> |
|
| 9528 |
> |
fi |
| 9529 |
> |
fi |
| 9530 |
> |
LEX=$ac_cv_prog_LEX |
| 9531 |
> |
if test -n "$LEX"; then |
| 9532 |
> |
echo "$as_me:$LINENO: result: $LEX" >&5 |
| 9533 |
> |
echo "${ECHO_T}$LEX" >&6 |
| 9534 |
> |
else |
| 9535 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 9536 |
> |
echo "${ECHO_T}no" >&6 |
| 9537 |
> |
fi |
| 9538 |
> |
|
| 9539 |
> |
test -n "$LEX" && break |
| 9540 |
> |
done |
| 9541 |
> |
test -n "$LEX" || LEX=":" |
| 9542 |
> |
|
| 9543 |
> |
if test -z "$LEXLIB" |
| 9544 |
> |
then |
| 9545 |
> |
echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 9546 |
> |
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 9547 |
> |
if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 9548 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9549 |
> |
else |
| 9550 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 9551 |
> |
LIBS="-lfl $LIBS" |
| 9552 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 9553 |
> |
/* confdefs.h. */ |
| 9554 |
> |
_ACEOF |
| 9555 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 9556 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 9557 |
> |
/* end confdefs.h. */ |
| 9558 |
> |
|
| 9559 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 9560 |
> |
#ifdef __cplusplus |
| 9561 |
> |
extern "C" |
| 9562 |
> |
#endif |
| 9563 |
> |
/* We use char because int might match the return type of a gcc2 |
| 9564 |
> |
builtin and then its argument prototype would still apply. */ |
| 9565 |
> |
char yywrap (); |
| 9566 |
> |
int |
| 9567 |
> |
main () |
| 9568 |
> |
{ |
| 9569 |
> |
yywrap (); |
| 9570 |
> |
; |
| 9571 |
> |
return 0; |
| 9572 |
> |
} |
| 9573 |
> |
_ACEOF |
| 9574 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9575 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9576 |
> |
(eval $ac_link) 2>conftest.er1 |
| 9577 |
> |
ac_status=$? |
| 9578 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9579 |
> |
rm -f conftest.er1 |
| 9580 |
> |
cat conftest.err >&5 |
| 9581 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9582 |
> |
(exit $ac_status); } && |
| 9583 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9584 |
> |
|| test ! -s conftest.err' |
| 9585 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9586 |
> |
(eval $ac_try) 2>&5 |
| 9587 |
> |
ac_status=$? |
| 9588 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9589 |
> |
(exit $ac_status); }; } && |
| 9590 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 9591 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9592 |
> |
(eval $ac_try) 2>&5 |
| 9593 |
> |
ac_status=$? |
| 9594 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9595 |
> |
(exit $ac_status); }; }; then |
| 9596 |
> |
ac_cv_lib_fl_yywrap=yes |
| 9597 |
> |
else |
| 9598 |
> |
echo "$as_me: failed program was:" >&5 |
| 9599 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9600 |
> |
|
| 9601 |
> |
ac_cv_lib_fl_yywrap=no |
| 9602 |
> |
fi |
| 9603 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 9604 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 9605 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 9606 |
> |
fi |
| 9607 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 9608 |
> |
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 9609 |
> |
if test $ac_cv_lib_fl_yywrap = yes; then |
| 9610 |
> |
LEXLIB="-lfl" |
| 9611 |
> |
else |
| 9612 |
> |
echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 9613 |
> |
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 9614 |
> |
if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 9615 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9616 |
> |
else |
| 9617 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 9618 |
> |
LIBS="-ll $LIBS" |
| 9619 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 9620 |
> |
/* confdefs.h. */ |
| 9621 |
> |
_ACEOF |
| 9622 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 9623 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 9624 |
> |
/* end confdefs.h. */ |
| 9625 |
> |
|
| 9626 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 9627 |
> |
#ifdef __cplusplus |
| 9628 |
> |
extern "C" |
| 9629 |
> |
#endif |
| 9630 |
> |
/* We use char because int might match the return type of a gcc2 |
| 9631 |
> |
builtin and then its argument prototype would still apply. */ |
| 9632 |
> |
char yywrap (); |
| 9633 |
> |
int |
| 9634 |
> |
main () |
| 9635 |
> |
{ |
| 9636 |
> |
yywrap (); |
| 9637 |
> |
; |
| 9638 |
> |
return 0; |
| 9639 |
> |
} |
| 9640 |
> |
_ACEOF |
| 9641 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9642 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9643 |
> |
(eval $ac_link) 2>conftest.er1 |
| 9644 |
> |
ac_status=$? |
| 9645 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9646 |
> |
rm -f conftest.er1 |
| 9647 |
> |
cat conftest.err >&5 |
| 9648 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9649 |
> |
(exit $ac_status); } && |
| 9650 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9651 |
> |
|| test ! -s conftest.err' |
| 9652 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9653 |
> |
(eval $ac_try) 2>&5 |
| 9654 |
> |
ac_status=$? |
| 9655 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9656 |
> |
(exit $ac_status); }; } && |
| 9657 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 9658 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9659 |
> |
(eval $ac_try) 2>&5 |
| 9660 |
> |
ac_status=$? |
| 9661 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9662 |
> |
(exit $ac_status); }; }; then |
| 9663 |
> |
ac_cv_lib_l_yywrap=yes |
| 9664 |
> |
else |
| 9665 |
> |
echo "$as_me: failed program was:" >&5 |
| 9666 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9667 |
> |
|
| 9668 |
> |
ac_cv_lib_l_yywrap=no |
| 9669 |
> |
fi |
| 9670 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 9671 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 9672 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 9673 |
> |
fi |
| 9674 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 9675 |
> |
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 9676 |
> |
if test $ac_cv_lib_l_yywrap = yes; then |
| 9677 |
> |
LEXLIB="-ll" |
| 9678 |
> |
fi |
| 9679 |
> |
|
| 9680 |
> |
fi |
| 9681 |
> |
|
| 9682 |
> |
fi |
| 9683 |
> |
|
| 9684 |
> |
if test "x$LEX" != "x:"; then |
| 9685 |
> |
echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 9686 |
> |
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 9687 |
> |
if test "${ac_cv_prog_lex_root+set}" = set; then |
| 9688 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9689 |
> |
else |
| 9690 |
> |
# The minimal lex program is just a single line: %%. But some broken lexes |
| 9691 |
> |
# (Solaris, I think it was) want two %% lines, so accommodate them. |
| 9692 |
> |
cat >conftest.l <<_ACEOF |
| 9693 |
> |
%% |
| 9694 |
> |
%% |
| 9695 |
> |
_ACEOF |
| 9696 |
> |
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 9697 |
> |
(eval $LEX conftest.l) 2>&5 |
| 9698 |
> |
ac_status=$? |
| 9699 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9700 |
> |
(exit $ac_status); } |
| 9701 |
> |
if test -f lex.yy.c; then |
| 9702 |
> |
ac_cv_prog_lex_root=lex.yy |
| 9703 |
> |
elif test -f lexyy.c; then |
| 9704 |
> |
ac_cv_prog_lex_root=lexyy |
| 9705 |
> |
else |
| 9706 |
> |
{ { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 9707 |
> |
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 9708 |
> |
{ (exit 1); exit 1; }; } |
| 9709 |
> |
fi |
| 9710 |
> |
fi |
| 9711 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 9712 |
> |
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
| 9713 |
> |
rm -f conftest.l |
| 9714 |
> |
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 9715 |
> |
|
| 9716 |
> |
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 9717 |
> |
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 9718 |
> |
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 9719 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9720 |
> |
else |
| 9721 |
> |
# POSIX says lex can declare yytext either as a pointer or an array; the |
| 9722 |
> |
# default is implementation-dependent. Figure out which it is, since |
| 9723 |
> |
# not all implementations provide the %pointer and %array declarations. |
| 9724 |
> |
ac_cv_prog_lex_yytext_pointer=no |
| 9725 |
> |
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 9726 |
> |
ac_save_LIBS=$LIBS |
| 9727 |
> |
LIBS="$LIBS $LEXLIB" |
| 9728 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 9729 |
> |
`cat $LEX_OUTPUT_ROOT.c` |
| 9730 |
> |
_ACEOF |
| 9731 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 9732 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9733 |
> |
(eval $ac_link) 2>conftest.er1 |
| 9734 |
> |
ac_status=$? |
| 9735 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 9736 |
> |
rm -f conftest.er1 |
| 9737 |
> |
cat conftest.err >&5 |
| 9738 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9739 |
> |
(exit $ac_status); } && |
| 9740 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 9741 |
> |
|| test ! -s conftest.err' |
| 9742 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9743 |
> |
(eval $ac_try) 2>&5 |
| 9744 |
> |
ac_status=$? |
| 9745 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9746 |
> |
(exit $ac_status); }; } && |
| 9747 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 9748 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9749 |
> |
(eval $ac_try) 2>&5 |
| 9750 |
> |
ac_status=$? |
| 9751 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9752 |
> |
(exit $ac_status); }; }; then |
| 9753 |
> |
ac_cv_prog_lex_yytext_pointer=yes |
| 9754 |
> |
else |
| 9755 |
> |
echo "$as_me: failed program was:" >&5 |
| 9756 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 9757 |
> |
|
| 9758 |
> |
fi |
| 9759 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 9760 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 9761 |
> |
LIBS=$ac_save_LIBS |
| 9762 |
> |
rm -f "${LEX_OUTPUT_ROOT}.c" |
| 9763 |
> |
|
| 9764 |
> |
fi |
| 9765 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 9766 |
> |
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 9767 |
> |
if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 9768 |
> |
|
| 9769 |
> |
cat >>confdefs.h <<\_ACEOF |
| 9770 |
> |
#define YYTEXT_POINTER 1 |
| 9771 |
> |
_ACEOF |
| 9772 |
> |
|
| 9773 |
> |
fi |
| 9774 |
> |
|
| 9775 |
> |
fi |
| 9776 |
> |
|
| 9777 |
> |
# Extract the first word of "perl", so it can be a program name with args. |
| 9778 |
> |
set dummy perl; ac_word=$2 |
| 9779 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9780 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9781 |
> |
if test "${ac_cv_path_PERLINTERP+set}" = set; then |
| 9782 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9783 |
> |
else |
| 9784 |
> |
case $PERLINTERP in |
| 9785 |
> |
[\\/]* | ?:[\\/]*) |
| 9786 |
> |
ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path. |
| 9787 |
> |
;; |
| 9788 |
> |
*) |
| 9789 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9790 |
> |
for as_dir in $PATH |
| 9791 |
> |
do |
| 9792 |
> |
IFS=$as_save_IFS |
| 9793 |
> |
test -z "$as_dir" && as_dir=. |
| 9794 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9795 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9796 |
> |
ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext" |
| 9797 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9798 |
> |
break 2 |
| 9799 |
> |
fi |
| 9800 |
> |
done |
| 9801 |
> |
done |
| 9802 |
> |
|
| 9803 |
> |
test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl" |
| 9804 |
> |
;; |
| 9805 |
> |
esac |
| 9806 |
> |
fi |
| 9807 |
> |
PERLINTERP=$ac_cv_path_PERLINTERP |
| 9808 |
> |
|
| 9809 |
> |
if test -n "$PERLINTERP"; then |
| 9810 |
> |
echo "$as_me:$LINENO: result: $PERLINTERP" >&5 |
| 9811 |
> |
echo "${ECHO_T}$PERLINTERP" >&6 |
| 9812 |
> |
else |
| 9813 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 9814 |
> |
echo "${ECHO_T}no" >&6 |
| 9815 |
> |
fi |
| 9816 |
> |
|
| 9817 |
> |
ac_cv_path_perlinterp="$PERLINTERP" |
| 9818 |
> |
_sHpB='#!' |
| 9819 |
> |
|
| 9820 |
> |
|
| 9821 |
> |
# Check whether --with-perl-shebang or --without-perl-shebang was given. |
| 9822 |
> |
if test "${with_perl_shebang+set}" = set; then |
| 9823 |
> |
withval="$with_perl_shebang" |
| 9824 |
> |
opt_perl_shebang="$withval" |
| 9825 |
> |
else |
| 9826 |
> |
opt_perl_shebang="not_set" |
| 9827 |
> |
fi; |
| 9828 |
> |
echo "$as_me:$LINENO: checking whether explicit instead of detected sharpbang is to be used" >&5 |
| 9829 |
> |
echo $ECHO_N "checking whether explicit instead of detected sharpbang is to be used... $ECHO_C" >&6 |
| 9830 |
> |
if test "${ax_cv_opt_perl_shebang+set}" = set; then |
| 9831 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9832 |
> |
else |
| 9833 |
> |
case "$opt_perl_shebang" in |
| 9834 |
> |
not_set ) ax_cv_opt_perl_shebang='' |
| 9835 |
> |
;; |
| 9836 |
> |
* ) |
| 9837 |
> |
ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'` |
| 9838 |
> |
esac |
| 9839 |
> |
|
| 9840 |
> |
fi |
| 9841 |
> |
echo "$as_me:$LINENO: result: $ax_cv_opt_perl_shebang" >&5 |
| 9842 |
> |
echo "${ECHO_T}$ax_cv_opt_perl_shebang" >&6 |
| 9843 |
> |
if test "A$ax_cv_opt_perl_shebang" != "A" |
| 9844 |
> |
then |
| 9845 |
> |
ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang" |
| 9846 |
> |
PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl" |
| 9847 |
> |
{ echo "$as_me:$LINENO: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5 |
| 9848 |
> |
echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;} |
| 9849 |
> |
|
| 9850 |
> |
# Automatic detection of sharpbang formula starts here |
| 9851 |
> |
else |
| 9852 |
> |
_somian_shbangperl=`$PERLINTERP -V:startperl` |
| 9853 |
> |
negclass="[^']"; # must leave this comment: m4 will remove the outer brackets for us, heheh |
| 9854 |
> |
echo "$as_me:$LINENO: checking for kernel sharpbang invocation to start perl" >&5 |
| 9855 |
> |
echo $ECHO_N "checking for kernel sharpbang invocation to start perl... $ECHO_C" >&6 |
| 9856 |
> |
if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then |
| 9857 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9858 |
> |
else |
| 9859 |
> |
_somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"` |
| 9860 |
> |
if test "x$_somian_kspb_perl" == x |
| 9861 |
> |
then _somian_ksbp_warn_empty='durnit' |
| 9862 |
> |
else |
| 9863 |
> |
case "A$_somian_kspb_perl" in |
| 9864 |
> |
A#!*perl* ) |
| 9865 |
> |
ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'` |
| 9866 |
> |
;; |
| 9867 |
> |
A* ) _somian_ksbp_warn_defau='trouble' |
| 9868 |
> |
ac_cv_sys_kernshrpbang_perl="$PERLINTERP" |
| 9869 |
> |
esac |
| 9870 |
> |
fi |
| 9871 |
> |
|
| 9872 |
> |
fi |
| 9873 |
> |
echo "$as_me:$LINENO: result: $ac_cv_sys_kernshrpbang_perl" >&5 |
| 9874 |
> |
echo "${ECHO_T}$ac_cv_sys_kernshrpbang_perl" >&6 |
| 9875 |
> |
# The above prints Checking ... result message to user. |
| 9876 |
> |
PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl" |
| 9877 |
> |
|
| 9878 |
> |
if test A${_somian_ksbp_warn_empty+set} == Aset |
| 9879 |
> |
then { echo "$as_me:$LINENO: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5 |
| 9880 |
> |
echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;} |
| 9881 |
> |
fi |
| 9882 |
> |
# Inform user after printing result value |
| 9883 |
> |
if test A${_somian_ksbp_warn_defau+set} == Aset |
| 9884 |
> |
then { echo "$as_me:$LINENO: Maybe Not good -" >&5 |
| 9885 |
> |
echo "$as_me: Maybe Not good -" >&6;} |
| 9886 |
> |
{ echo "$as_me:$LINENO: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5 |
| 9887 |
> |
echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;} |
| 9888 |
> |
else { echo "$as_me:$LINENO: OK Good result - " >&5 |
| 9889 |
> |
echo "$as_me: OK Good result - " >&6;} |
| 9890 |
> |
{ echo "$as_me:$LINENO: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5 |
| 9891 |
> |
echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;} |
| 9892 |
> |
fi |
| 9893 |
> |
fi |
| 9894 |
> |
|
| 9895 |
> |
# Extract the first word of "ar", so it can be a program name with args. |
| 9896 |
> |
set dummy ar; ac_word=$2 |
| 9897 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9898 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9899 |
> |
if test "${ac_cv_prog_AR+set}" = set; then |
| 9900 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9901 |
> |
else |
| 9902 |
> |
if test -n "$AR"; then |
| 9903 |
> |
ac_cv_prog_AR="$AR" # Let the user override the test. |
| 9904 |
> |
else |
| 9905 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9906 |
> |
for as_dir in $PATH |
| 9907 |
> |
do |
| 9908 |
> |
IFS=$as_save_IFS |
| 9909 |
> |
test -z "$as_dir" && as_dir=. |
| 9910 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9911 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9912 |
> |
ac_cv_prog_AR="ar" |
| 9913 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9914 |
> |
break 2 |
| 9915 |
> |
fi |
| 9916 |
> |
done |
| 9917 |
> |
done |
| 9918 |
> |
|
| 9919 |
> |
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE" |
| 9920 |
> |
fi |
| 9921 |
> |
fi |
| 9922 |
> |
AR=$ac_cv_prog_AR |
| 9923 |
> |
if test -n "$AR"; then |
| 9924 |
> |
echo "$as_me:$LINENO: result: $AR" >&5 |
| 9925 |
> |
echo "${ECHO_T}$AR" >&6 |
| 9926 |
> |
else |
| 9927 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 9928 |
> |
echo "${ECHO_T}no" >&6 |
| 9929 |
> |
fi |
| 9930 |
> |
|
| 9931 |
> |
if test "$AR" = "NONE"; then |
| 9932 |
> |
{ { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5 |
| 9933 |
> |
echo "$as_me: error: --> Can't find \`ar'!" >&2;} |
| 9934 |
> |
{ (exit 1); exit 1; }; } |
| 9935 |
> |
cat >confcache <<\_ACEOF |
| 9936 |
> |
# This file is a shell script that caches the results of configure |
| 9937 |
> |
# tests run on this system so they can be shared between configure |
| 9938 |
> |
# scripts and configure runs, see configure's option --config-cache. |
| 9939 |
> |
# It is not useful on other systems. If it contains results you don't |
| 9940 |
> |
# want to keep, you may remove or edit it. |
| 9941 |
> |
# |
| 9942 |
> |
# config.status only pays attention to the cache file if you give it |
| 9943 |
> |
# the --recheck option to rerun configure. |
| 9944 |
> |
# |
| 9945 |
> |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 9946 |
> |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 9947 |
> |
# following values. |
| 9948 |
> |
|
| 9949 |
> |
_ACEOF |
| 9950 |
> |
|
| 9951 |
> |
# The following way of writing the cache mishandles newlines in values, |
| 9952 |
> |
# but we know of no workaround that is simple, portable, and efficient. |
| 9953 |
> |
# So, don't put newlines in cache variables' values. |
| 9954 |
> |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 9955 |
> |
# and sets the high bit in the cache file unless we assign to the vars. |
| 9956 |
> |
{ |
| 9957 |
> |
(set) 2>&1 | |
| 9958 |
> |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 9959 |
> |
*ac_space=\ *) |
| 9960 |
> |
# `set' does not quote correctly, so add quotes (double-quote |
| 9961 |
> |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
| 9962 |
> |
sed -n \ |
| 9963 |
> |
"s/'/'\\\\''/g; |
| 9964 |
> |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 9965 |
> |
;; |
| 9966 |
> |
*) |
| 9967 |
> |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| 9968 |
> |
sed -n \ |
| 9969 |
> |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 9970 |
> |
;; |
| 9971 |
> |
esac; |
| 9972 |
> |
} | |
| 9973 |
> |
sed ' |
| 9974 |
> |
t clear |
| 9975 |
> |
: clear |
| 9976 |
> |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 9977 |
> |
t end |
| 9978 |
> |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 9979 |
> |
: end' >>confcache |
| 9980 |
> |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 9981 |
> |
if test -w $cache_file; then |
| 9982 |
> |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 9983 |
> |
cat confcache >$cache_file |
| 9984 |
> |
else |
| 9985 |
> |
echo "not updating unwritable cache $cache_file" |
| 9986 |
> |
fi |
| 9987 |
> |
fi |
| 9988 |
> |
rm -f confcache |
| 9989 |
> |
exit 1 |
| 9990 |
> |
fi |
| 9991 |
> |
|
| 9992 |
> |
# Extract the first word of "ps", so it can be a program name with args. |
| 9993 |
> |
set dummy ps; ac_word=$2 |
| 9994 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9995 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9996 |
> |
if test "${ac_cv_path_PS+set}" = set; then |
| 9997 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9998 |
> |
else |
| 9999 |
> |
case $PS in |
| 10000 |
> |
[\\/]* | ?:[\\/]*) |
| 10001 |
> |
ac_cv_path_PS="$PS" # Let the user override the test with a path. |
| 10002 |
> |
;; |
| 10003 |
> |
*) |
| 10004 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10005 |
> |
for as_dir in $PATH |
| 10006 |
> |
do |
| 10007 |
> |
IFS=$as_save_IFS |
| 10008 |
> |
test -z "$as_dir" && as_dir=. |
| 10009 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 10010 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10011 |
> |
ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext" |
| 10012 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10013 |
> |
break 2 |
| 10014 |
> |
fi |
| 10015 |
> |
done |
| 10016 |
> |
done |
| 10017 |
> |
|
| 10018 |
> |
;; |
| 10019 |
> |
esac |
| 10020 |
> |
fi |
| 10021 |
> |
PS=$ac_cv_path_PS |
| 10022 |
> |
|
| 10023 |
> |
if test -n "$PS"; then |
| 10024 |
> |
echo "$as_me:$LINENO: result: $PS" >&5 |
| 10025 |
> |
echo "${ECHO_T}$PS" >&6 |
| 10026 |
> |
else |
| 10027 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 10028 |
> |
echo "${ECHO_T}no" >&6 |
| 10029 |
> |
fi |
| 10030 |
> |
|
| 10031 |
> |
echo "$as_me:$LINENO: checking for POSIX or BSD ps syntax" >&5 |
| 10032 |
> |
echo $ECHO_N "checking for POSIX or BSD ps syntax... $ECHO_C" >&6 |
| 10033 |
> |
if test "${ac_cv_prog_ps_syntax+set}" = set; then |
| 10034 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10035 |
> |
else |
| 10036 |
> |
|
| 10037 |
> |
if $PS ax -o rss > /dev/null 2>&1; then |
| 10038 |
> |
ac_cv_prog_ps_ax=yes |
| 10039 |
> |
else |
| 10040 |
> |
ac_cv_prog_ps_ax=no |
| 10041 |
> |
fi |
| 10042 |
> |
if $PS -ef -o rss > /dev/null 2>&1; then |
| 10043 |
> |
ac_cv_prog_ps_ef=yes |
| 10044 |
> |
else |
| 10045 |
> |
ac_cv_prog_ps_ef=no |
| 10046 |
> |
fi |
| 10047 |
> |
if test "$ac_cv_prog_ps_ax" = yes; then |
| 10048 |
> |
ac_cv_prog_ps_syntax=BSD |
| 10049 |
> |
else |
| 10050 |
> |
if test "$ac_cv_prog_ps_ef" = yes; then |
| 10051 |
> |
ac_cv_prog_ps_syntax=POSIX |
| 10052 |
> |
else |
| 10053 |
> |
{ { echo "$as_me:$LINENO: error: Could not determine ps syntax" >&5 |
| 10054 |
> |
echo "$as_me: error: Could not determine ps syntax" >&2;} |
| 10055 |
> |
{ (exit 1); exit 1; }; } |
| 10056 |
> |
fi |
| 10057 |
> |
fi |
| 10058 |
> |
|
| 10059 |
> |
fi |
| 10060 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_ps_syntax" >&5 |
| 10061 |
> |
echo "${ECHO_T}$ac_cv_prog_ps_syntax" >&6 |
| 10062 |
> |
|
| 10063 |
> |
|
| 10064 |
> |
cat >>confdefs.h <<_ACEOF |
| 10065 |
> |
#define PSCOMMAND $PS |
| 10066 |
> |
_ACEOF |
| 10067 |
> |
|
| 10068 |
> |
|
| 10069 |
> |
cat >>confdefs.h <<\_ACEOF |
| 10070 |
> |
#define OBAPI |
| 10071 |
> |
_ACEOF |
| 10072 |
> |
|
| 10073 |
> |
|
| 10074 |
> |
|
| 10075 |
> |
if test "$ac_cv_prog_ps_syntax" = BSD; then |
| 10076 |
> |
|
| 10077 |
> |
cat >>confdefs.h <<\_ACEOF |
| 10078 |
> |
#define PSTYPE_IS_BSD 1 |
| 10079 |
> |
_ACEOF |
| 10080 |
> |
|
| 10081 |
> |
else |
| 10082 |
> |
if test "$ac_cv_prog_ps_syntax" = POSIX; then |
| 10083 |
> |
|
| 10084 |
> |
cat >>confdefs.h <<\_ACEOF |
| 10085 |
> |
#define PSTYPE_IS_POSIX 1 |
| 10086 |
> |
_ACEOF |
| 10087 |
> |
|
| 10088 |
> |
else |
| 10089 |
> |
{ { echo "$as_me:$LINENO: error: Unknown ps syntax type!" >&5 |
| 10090 |
> |
echo "$as_me: error: Unknown ps syntax type!" >&2;} |
| 10091 |
> |
{ (exit 1); exit 1; }; } |
| 10092 |
> |
fi |
| 10093 |
> |
fi |
| 10094 |
> |
|
| 10095 |
> |
|
| 10096 |
> |
# Check whether --with-mpi or --without-mpi was given. |
| 10097 |
> |
if test "${with_mpi+set}" = set; then |
| 10098 |
> |
withval="$with_mpi" |
| 10099 |
> |
with_mpi=$withval |
| 10100 |
> |
else |
| 10101 |
> |
with_mpi="no" |
| 10102 |
> |
fi; |
| 10103 |
> |
|
| 10104 |
> |
case "x$with_mpi" in |
| 10105 |
> |
xyes | "x") USE_MPI=yes;; |
| 10106 |
> |
xno) USE_MPI=no ;; |
| 10107 |
> |
*) MPI="$with_mpi"; USE_MPI=yes ;; |
| 10108 |
> |
esac |
| 10109 |
> |
if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then |
| 10110 |
> |
MPI="/usr/local" |
| 10111 |
> |
fi |
| 10112 |
> |
if test "$USE_MPI" = "yes"; then |
| 10113 |
> |
|
| 10114 |
> |
|
| 10115 |
> |
# Set variables... |
| 10116 |
> |
MPI_LIB_DIR="$MPI/lib" |
| 10117 |
> |
MPI_INC_DIR="$MPI/include" |
| 10118 |
> |
|
| 10119 |
> |
|
| 10120 |
> |
|
| 10121 |
> |
echo "$as_me:$LINENO: checking for mpi.h" >&5 |
| 10122 |
> |
echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6 |
| 10123 |
> |
have_mpi_h=0 |
| 10124 |
> |
rm -f conftest* |
| 10125 |
> |
echo '#include <mpi.h>' > conftest.cc |
| 10126 |
> |
if ${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1 ; then |
| 10127 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
| 10128 |
> |
echo "${ECHO_T}yes" >&6 |
| 10129 |
> |
have_mpi_h=1 |
| 10130 |
> |
else |
| 10131 |
> |
if test -s conftest.out ; then |
| 10132 |
> |
cat conftest.out >> config.log |
| 10133 |
> |
fi |
| 10134 |
> |
echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
| 10135 |
> |
echo "${ECHO_T}no! Check MPI include paths" >&6 |
| 10136 |
> |
USE_MPI="no" |
| 10137 |
> |
fi |
| 10138 |
> |
rm -f conftest* |
| 10139 |
> |
if test "$have_mpi_h" = 1; then |
| 10140 |
> |
|
| 10141 |
> |
cat >>confdefs.h <<\_ACEOF |
| 10142 |
> |
#define HAVE_MPI_H 1 |
| 10143 |
> |
_ACEOF |
| 10144 |
> |
|
| 10145 |
> |
fi |
| 10146 |
> |
|
| 10147 |
> |
echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5 |
| 10148 |
> |
echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6 |
| 10149 |
> |
have_mpif_h=0 |
| 10150 |
> |
rm -f conftest* |
| 10151 |
> |
cat >conftest.f90 <<EOF |
| 10152 |
> |
program main |
| 10153 |
> |
include 'mpif.h' |
| 10154 |
> |
end |
| 10155 |
> |
EOF |
| 10156 |
> |
if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then |
| 10157 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
| 10158 |
> |
echo "${ECHO_T}yes" >&6 |
| 10159 |
> |
MPI_F90_INC="$MPI_INC_DIR" |
| 10160 |
> |
have_mpif_h=1 |
| 10161 |
> |
else |
| 10162 |
> |
if test -s conftest.out ; then |
| 10163 |
> |
cat conftest.out >> config.log |
| 10164 |
> |
fi |
| 10165 |
> |
echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
| 10166 |
> |
echo "${ECHO_T}no! Check MPI include paths" >&6 |
| 10167 |
> |
USE_MPI="no" |
| 10168 |
> |
fi |
| 10169 |
> |
rm -f conftest* |
| 10170 |
> |
|
| 10171 |
> |
if test "$have_mpif_h" = 1; then |
| 10172 |
> |
|
| 10173 |
> |
cat >>confdefs.h <<\_ACEOF |
| 10174 |
> |
#define HAVE_MPIF_H 1 |
| 10175 |
> |
_ACEOF |
| 10176 |
> |
|
| 10177 |
> |
fi |
| 10178 |
> |
|
| 10179 |
> |
ac_ext=c |
| 10180 |
> |
ac_cpp='$CPP $CPPFLAGS' |
| 10181 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10182 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10183 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10184 |
> |
|
| 10185 |
> |
ac_save_LDFLAGS=$LDFLAGS |
| 10186 |
> |
LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} " |
| 10187 |
> |
|
| 10188 |
> |
if test x = x"$MPI_LIB"; then |
| 10189 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
| 10190 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 |
| 10191 |
> |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
| 10192 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10193 |
> |
else |
| 10194 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 10195 |
> |
LIBS="-lmpich $LIBS" |
| 10196 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 10197 |
> |
/* confdefs.h. */ |
| 10198 |
> |
_ACEOF |
| 10199 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 10200 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 10201 |
> |
/* end confdefs.h. */ |
| 10202 |
> |
|
| 10203 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10204 |
> |
#ifdef __cplusplus |
| 10205 |
> |
extern "C" |
| 10206 |
> |
#endif |
| 10207 |
> |
/* We use char because int might match the return type of a gcc2 |
| 10208 |
> |
builtin and then its argument prototype would still apply. */ |
| 10209 |
> |
char MPI_Init (); |
| 10210 |
> |
int |
| 10211 |
> |
main () |
| 10212 |
> |
{ |
| 10213 |
> |
MPI_Init (); |
| 10214 |
> |
; |
| 10215 |
> |
return 0; |
| 10216 |
> |
} |
| 10217 |
> |
_ACEOF |
| 10218 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10219 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10220 |
> |
(eval $ac_link) 2>conftest.er1 |
| 10221 |
> |
ac_status=$? |
| 10222 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10223 |
> |
rm -f conftest.er1 |
| 10224 |
> |
cat conftest.err >&5 |
| 10225 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10226 |
> |
(exit $ac_status); } && |
| 10227 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10228 |
> |
|| test ! -s conftest.err' |
| 10229 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10230 |
> |
(eval $ac_try) 2>&5 |
| 10231 |
> |
ac_status=$? |
| 10232 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10233 |
> |
(exit $ac_status); }; } && |
| 10234 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 10235 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10236 |
> |
(eval $ac_try) 2>&5 |
| 10237 |
> |
ac_status=$? |
| 10238 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10239 |
> |
(exit $ac_status); }; }; then |
| 10240 |
> |
ac_cv_lib_mpich_MPI_Init=yes |
| 10241 |
> |
else |
| 10242 |
> |
echo "$as_me: failed program was:" >&5 |
| 10243 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10244 |
> |
|
| 10245 |
> |
ac_cv_lib_mpich_MPI_Init=no |
| 10246 |
> |
fi |
| 10247 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 10248 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 10249 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 10250 |
> |
fi |
| 10251 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
| 10252 |
> |
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 |
| 10253 |
> |
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
| 10254 |
> |
MPI_LIB="-lmpich" |
| 10255 |
> |
fi |
| 10256 |
> |
|
| 10257 |
> |
fi |
| 10258 |
> |
if test x = x"$MPI_LIB"; then |
| 10259 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
| 10260 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
| 10261 |
> |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
| 10262 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10263 |
> |
else |
| 10264 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 10265 |
> |
LIBS="-lmpi $LIBS" |
| 10266 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 10267 |
> |
/* confdefs.h. */ |
| 10268 |
> |
_ACEOF |
| 10269 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 10270 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 10271 |
> |
/* end confdefs.h. */ |
| 10272 |
> |
|
| 10273 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10274 |
> |
#ifdef __cplusplus |
| 10275 |
> |
extern "C" |
| 10276 |
> |
#endif |
| 10277 |
> |
/* We use char because int might match the return type of a gcc2 |
| 10278 |
> |
builtin and then its argument prototype would still apply. */ |
| 10279 |
> |
char MPI_Init (); |
| 10280 |
> |
int |
| 10281 |
> |
main () |
| 10282 |
> |
{ |
| 10283 |
> |
MPI_Init (); |
| 10284 |
> |
; |
| 10285 |
> |
return 0; |
| 10286 |
> |
} |
| 10287 |
> |
_ACEOF |
| 10288 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10289 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10290 |
> |
(eval $ac_link) 2>conftest.er1 |
| 10291 |
> |
ac_status=$? |
| 10292 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10293 |
> |
rm -f conftest.er1 |
| 10294 |
> |
cat conftest.err >&5 |
| 10295 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10296 |
> |
(exit $ac_status); } && |
| 10297 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10298 |
> |
|| test ! -s conftest.err' |
| 10299 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10300 |
> |
(eval $ac_try) 2>&5 |
| 10301 |
> |
ac_status=$? |
| 10302 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10303 |
> |
(exit $ac_status); }; } && |
| 10304 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 10305 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10306 |
> |
(eval $ac_try) 2>&5 |
| 10307 |
> |
ac_status=$? |
| 10308 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10309 |
> |
(exit $ac_status); }; }; then |
| 10310 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
| 10311 |
> |
else |
| 10312 |
> |
echo "$as_me: failed program was:" >&5 |
| 10313 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10314 |
> |
|
| 10315 |
> |
ac_cv_lib_mpi_MPI_Init=no |
| 10316 |
> |
fi |
| 10317 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 10318 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 10319 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 10320 |
> |
fi |
| 10321 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
| 10322 |
> |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
| 10323 |
> |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
| 10324 |
> |
MPI_LIB="-lmpi" |
| 10325 |
> |
fi |
| 10326 |
> |
|
| 10327 |
> |
fi |
| 10328 |
> |
$as_unset ac_cv_lib_mpi_MPI_Init |
| 10329 |
> |
if test x = x"$MPI_LIB"; then |
| 10330 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
| 10331 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
| 10332 |
> |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
| 10333 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10334 |
> |
else |
| 10335 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 10336 |
> |
LIBS="-lmpi "-llam" $LIBS" |
| 10337 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 10338 |
> |
/* confdefs.h. */ |
| 10339 |
> |
_ACEOF |
| 10340 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 10341 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 10342 |
> |
/* end confdefs.h. */ |
| 10343 |
> |
|
| 10344 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10345 |
> |
#ifdef __cplusplus |
| 10346 |
> |
extern "C" |
| 10347 |
> |
#endif |
| 10348 |
> |
/* We use char because int might match the return type of a gcc2 |
| 10349 |
> |
builtin and then its argument prototype would still apply. */ |
| 10350 |
> |
char MPI_Init (); |
| 10351 |
> |
int |
| 10352 |
> |
main () |
| 10353 |
> |
{ |
| 10354 |
> |
MPI_Init (); |
| 10355 |
> |
; |
| 10356 |
> |
return 0; |
| 10357 |
> |
} |
| 10358 |
> |
_ACEOF |
| 10359 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10360 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10361 |
> |
(eval $ac_link) 2>conftest.er1 |
| 10362 |
> |
ac_status=$? |
| 10363 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10364 |
> |
rm -f conftest.er1 |
| 10365 |
> |
cat conftest.err >&5 |
| 10366 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10367 |
> |
(exit $ac_status); } && |
| 10368 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10369 |
> |
|| test ! -s conftest.err' |
| 10370 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10371 |
> |
(eval $ac_try) 2>&5 |
| 10372 |
> |
ac_status=$? |
| 10373 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10374 |
> |
(exit $ac_status); }; } && |
| 10375 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 10376 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10377 |
> |
(eval $ac_try) 2>&5 |
| 10378 |
> |
ac_status=$? |
| 10379 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10380 |
> |
(exit $ac_status); }; }; then |
| 10381 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
| 10382 |
> |
else |
| 10383 |
> |
echo "$as_me: failed program was:" >&5 |
| 10384 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10385 |
> |
|
| 10386 |
> |
ac_cv_lib_mpi_MPI_Init=no |
| 10387 |
> |
fi |
| 10388 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 10389 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 10390 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 10391 |
> |
fi |
| 10392 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
| 10393 |
> |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
| 10394 |
> |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
| 10395 |
> |
MPI_LIB="-lmpi -llam" |
| 10396 |
> |
fi |
| 10397 |
> |
|
| 10398 |
> |
fi |
| 10399 |
> |
$as_unset ac_cv_lib_mpich_MPI_Init |
| 10400 |
> |
if test x = x"$MPI_LIB"; then |
| 10401 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
| 10402 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 |
| 10403 |
> |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
| 10404 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10405 |
> |
else |
| 10406 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 10407 |
> |
LIBS="-lmpich "-lpmpich" $LIBS" |
| 10408 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 10409 |
> |
/* confdefs.h. */ |
| 10410 |
> |
_ACEOF |
| 10411 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 10412 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 10413 |
> |
/* end confdefs.h. */ |
| 10414 |
> |
|
| 10415 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10416 |
> |
#ifdef __cplusplus |
| 10417 |
> |
extern "C" |
| 10418 |
> |
#endif |
| 10419 |
> |
/* We use char because int might match the return type of a gcc2 |
| 10420 |
> |
builtin and then its argument prototype would still apply. */ |
| 10421 |
> |
char MPI_Init (); |
| 10422 |
> |
int |
| 10423 |
> |
main () |
| 10424 |
> |
{ |
| 10425 |
> |
MPI_Init (); |
| 10426 |
> |
; |
| 10427 |
> |
return 0; |
| 10428 |
> |
} |
| 10429 |
> |
_ACEOF |
| 10430 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10431 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10432 |
> |
(eval $ac_link) 2>conftest.er1 |
| 10433 |
> |
ac_status=$? |
| 10434 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10435 |
> |
rm -f conftest.er1 |
| 10436 |
> |
cat conftest.err >&5 |
| 10437 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10438 |
> |
(exit $ac_status); } && |
| 10439 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10440 |
> |
|| test ! -s conftest.err' |
| 10441 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10442 |
> |
(eval $ac_try) 2>&5 |
| 10443 |
> |
ac_status=$? |
| 10444 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10445 |
> |
(exit $ac_status); }; } && |
| 10446 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 10447 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10448 |
> |
(eval $ac_try) 2>&5 |
| 10449 |
> |
ac_status=$? |
| 10450 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10451 |
> |
(exit $ac_status); }; }; then |
| 10452 |
> |
ac_cv_lib_mpich_MPI_Init=yes |
| 10453 |
> |
else |
| 10454 |
> |
echo "$as_me: failed program was:" >&5 |
| 10455 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10456 |
> |
|
| 10457 |
> |
ac_cv_lib_mpich_MPI_Init=no |
| 10458 |
> |
fi |
| 10459 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 10460 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 10461 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 10462 |
> |
fi |
| 10463 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
| 10464 |
> |
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 |
| 10465 |
> |
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
| 10466 |
> |
MPI_LIB="-lmpich -lpmpich" |
| 10467 |
> |
fi |
| 10468 |
> |
|
| 10469 |
> |
fi |
| 10470 |
> |
|
| 10471 |
> |
$as_unset ac_cv_lib_mpi_MPI_Init |
| 10472 |
> |
if test x = x"$MPI_LIB"; then |
| 10473 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
| 10474 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
| 10475 |
> |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
| 10476 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10477 |
> |
else |
| 10478 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 10479 |
> |
LIBS="-lmpi -llam -lpthread $LIBS" |
| 10480 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 10481 |
> |
/* confdefs.h. */ |
| 10482 |
> |
_ACEOF |
| 10483 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 10484 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 10485 |
> |
/* end confdefs.h. */ |
| 10486 |
> |
|
| 10487 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 10488 |
> |
#ifdef __cplusplus |
| 10489 |
> |
extern "C" |
| 10490 |
> |
#endif |
| 10491 |
> |
/* We use char because int might match the return type of a gcc2 |
| 10492 |
> |
builtin and then its argument prototype would still apply. */ |
| 10493 |
> |
char MPI_Init (); |
| 10494 |
> |
int |
| 10495 |
> |
main () |
| 10496 |
> |
{ |
| 10497 |
> |
MPI_Init (); |
| 10498 |
> |
; |
| 10499 |
> |
return 0; |
| 10500 |
> |
} |
| 10501 |
> |
_ACEOF |
| 10502 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10503 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10504 |
> |
(eval $ac_link) 2>conftest.er1 |
| 10505 |
> |
ac_status=$? |
| 10506 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10507 |
> |
rm -f conftest.er1 |
| 10508 |
> |
cat conftest.err >&5 |
| 10509 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10510 |
> |
(exit $ac_status); } && |
| 10511 |
> |
{ ac_try='test -z "$ac_c_werror_flag" |
| 10512 |
> |
|| test ! -s conftest.err' |
| 10513 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10514 |
> |
(eval $ac_try) 2>&5 |
| 10515 |
> |
ac_status=$? |
| 10516 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10517 |
> |
(exit $ac_status); }; } && |
| 10518 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 10519 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10520 |
> |
(eval $ac_try) 2>&5 |
| 10521 |
> |
ac_status=$? |
| 10522 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10523 |
> |
(exit $ac_status); }; }; then |
| 10524 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
| 10525 |
> |
else |
| 10526 |
> |
echo "$as_me: failed program was:" >&5 |
| 10527 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10528 |
> |
|
| 10529 |
> |
ac_cv_lib_mpi_MPI_Init=no |
| 10530 |
> |
fi |
| 10531 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 10532 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 10533 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 10534 |
> |
fi |
| 10535 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
| 10536 |
> |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
| 10537 |
> |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
| 10538 |
> |
MPI_LIB="-lmpi -llam -lpthread" |
| 10539 |
> |
else |
| 10540 |
> |
|
| 10541 |
> |
{ { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5 |
| 10542 |
> |
echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;} |
| 10543 |
> |
{ (exit 1); exit 1; }; } |
| 10544 |
> |
USE_MPI="no" |
| 10545 |
> |
|
| 10546 |
> |
fi |
| 10547 |
> |
|
| 10548 |
> |
fi |
| 10549 |
> |
|
| 10550 |
> |
|
| 10551 |
> |
|
| 10552 |
> |
echo "$as_me:$LINENO: checking for MPI Fortran library" >&5 |
| 10553 |
> |
echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6 |
| 10554 |
> |
MPI_F90_LIB="" |
| 10555 |
> |
if test -f "$MPI_LIB_DIR/libfmpich.a" ; then |
| 10556 |
> |
MPI_F90_LIB="-lfmpich" |
| 10557 |
> |
elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then |
| 10558 |
> |
MPI_F90_LIB="-llamf77mpi" |
| 10559 |
> |
else |
| 10560 |
> |
MPI_F90_LIB=" " |
| 10561 |
> |
fi |
| 10562 |
> |
echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5 |
| 10563 |
> |
echo "${ECHO_T}found $MPI_F90_LIB" >&6 |
| 10564 |
> |
|
| 10565 |
> |
|
| 10566 |
> |
fi |
| 10567 |
> |
|
| 10568 |
> |
|
| 10569 |
> |
|
| 10570 |
> |
|
| 10571 |
> |
USE_CGAL=no |
| 10572 |
> |
cgal_makefile=auto |
| 10573 |
> |
|
| 10574 |
> |
# Check whether --with-cgal-makefile or --without-cgal-makefile was given. |
| 10575 |
> |
if test "${with_cgal_makefile+set}" = set; then |
| 10576 |
> |
withval="$with_cgal_makefile" |
| 10577 |
> |
cgal_makefile="$withval" |
| 10578 |
> |
fi; |
| 10579 |
> |
|
| 10580 |
> |
if test "x$cgal_makefile" != xno; then |
| 10581 |
> |
|
| 10582 |
> |
if test "x$cgal_makefile" = xauto -a "x$CGAL_MAKEFILE" != x; then |
| 10583 |
> |
cgal_makefile="$CGAL_MAKEFILE" |
| 10584 |
> |
fi |
| 10585 |
> |
|
| 10586 |
> |
echo "$as_me:$LINENO: checking for cgal_makefile: $cgal_makefile" >&5 |
| 10587 |
> |
echo $ECHO_N "checking for cgal_makefile: $cgal_makefile... $ECHO_C" >&6 |
| 10588 |
> |
|
| 10589 |
> |
if test -f "$cgal_makefile"; then |
| 10590 |
> |
|
| 10591 |
> |
cat >config.tmp.Makefile <<EOF |
| 10592 |
> |
include $cgal_makefile |
| 10593 |
> |
default: |
| 10594 |
> |
@echo CGAL_OS_COMPILER=\"\${CGAL_OS_COMPILER}\" >config.tmp.cgalvariables |
| 10595 |
> |
@echo CGAL_INCLDIR=\"\${CGAL_INCL_DIR}\" >>config.tmp.cgalvariables |
| 10596 |
> |
@echo CGAL_INCLCONFDIR=\"\${CGAL_INCL_CONF_DIR}\" >>config.tmp.cgalvariables |
| 10597 |
> |
@echo CGAL_LIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables |
| 10598 |
> |
@echo CGAL_RLIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables |
| 10599 |
> |
@echo CGAL_CXXFLAGS=\"\${CGAL_CXXFLAGS}\" >>config.tmp.cgalvariables |
| 10600 |
> |
@echo GMP_INCLDIR=\"\${GMP_INCL_DIR}\" >>config.tmp.cgalvariables |
| 10601 |
> |
@echo GMP_LIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables |
| 10602 |
> |
@echo GMP_RLIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables |
| 10603 |
> |
@echo LEDA_INCLDIR=\"\${LEDA_INCL_DIR}\" >>config.tmp.cgalvariables |
| 10604 |
> |
@echo LEDA_LIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables |
| 10605 |
> |
@echo LEDA_RLIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables |
| 10606 |
> |
EOF |
| 10607 |
> |
|
| 10608 |
> |
make -s -f config.tmp.Makefile |
| 10609 |
> |
. config.tmp.cgalvariables |
| 10610 |
> |
|
| 10611 |
> |
rm -f config.tmp.Makefile config.tmp.cgalvariables |
| 10612 |
> |
|
| 10613 |
> |
if test "x$CGAL_INCLDIR" = "x"; then |
| 10614 |
> |
CGAL_INCLDIR="" |
| 10615 |
> |
fi |
| 10616 |
> |
|
| 10617 |
> |
if test "x$CGAL_LIBDIR" = "x"; then |
| 10618 |
> |
CGAL_LIBDIR="" |
| 10619 |
> |
fi |
| 10620 |
> |
|
| 10621 |
> |
if test "x$CGAL_RLIBDIR" = "x"; then |
| 10622 |
> |
CGAL_RLIBDIR="" |
| 10623 |
> |
fi |
| 10624 |
> |
|
| 10625 |
> |
if test "x$LEDA_INCLDIR" = "x"; then |
| 10626 |
> |
LEDA_INCLDIR="" |
| 10627 |
> |
fi |
| 10628 |
> |
|
| 10629 |
> |
if test "x$LEDA_LIBDIR" = "x"; then |
| 10630 |
> |
LEDA_LIBDIR="" |
| 10631 |
> |
fi |
| 10632 |
> |
|
| 10633 |
> |
if test "x$LEDA_RLIBDIR" = "x"; then |
| 10634 |
> |
LEDA_RLIBDIR="" |
| 10635 |
> |
fi |
| 10636 |
> |
|
| 10637 |
> |
if test "x$GMP_INCLDIR" = "x"; then |
| 10638 |
> |
GMP_INCLDIR="" |
| 10639 |
> |
fi |
| 10640 |
> |
|
| 10641 |
> |
if test "x$GMP_LIBDIR" = "x"; then |
| 10642 |
> |
GMP_LIBDIR="" |
| 10643 |
> |
fi |
| 10644 |
> |
|
| 10645 |
> |
if test "x$GMP_RLIBDIR" = "x"; then |
| 10646 |
> |
GMP_RLIBDIR="" |
| 10647 |
> |
fi |
| 10648 |
> |
|
| 10649 |
> |
echo "$as_me:$LINENO: result: CGAL_OS_COMPILER= $CGAL_OS_COMPILER" >&5 |
| 10650 |
> |
echo "${ECHO_T}CGAL_OS_COMPILER= $CGAL_OS_COMPILER" >&6 |
| 10651 |
> |
echo "$as_me:$LINENO: result: CGAL_INCLDIR= $CGAL_INCLDIR" >&5 |
| 10652 |
> |
echo "${ECHO_T}CGAL_INCLDIR= $CGAL_INCLDIR" >&6 |
| 10653 |
> |
echo "$as_me:$LINENO: result: CGAL_INCLCONFDIR= $CGAL_INCLCONFDIR" >&5 |
| 10654 |
> |
echo "${ECHO_T}CGAL_INCLCONFDIR= $CGAL_INCLCONFDIR" >&6 |
| 10655 |
> |
echo "$as_me:$LINENO: result: CGAL_LIBDIR= $CGAL_LIBDIR" >&5 |
| 10656 |
> |
echo "${ECHO_T}CGAL_LIBDIR= $CGAL_LIBDIR" >&6 |
| 10657 |
> |
echo "$as_me:$LINENO: result: CGAL_CXXFLAGS= $CGAL_CXXFLAGS" >&5 |
| 10658 |
> |
echo "${ECHO_T}CGAL_CXXFLAGS= $CGAL_CXXFLAGS" >&6 |
| 10659 |
> |
echo "$as_me:$LINENO: result: LEDA_INCLDIR= $LEDA_INCLDIR" >&5 |
| 10660 |
> |
echo "${ECHO_T}LEDA_INCLDIR= $LEDA_INCLDIR" >&6 |
| 10661 |
> |
echo "$as_me:$LINENO: result: LEDA_LIBDIR= $LEDA_LIBDIR" >&5 |
| 10662 |
> |
echo "${ECHO_T}LEDA_LIBDIR= $LEDA_LIBDIR" >&6 |
| 10663 |
> |
echo "$as_me:$LINENO: result: GMP_INCLDIR= $GMP_INCLDIR" >&5 |
| 10664 |
> |
echo "${ECHO_T}GMP_INCLDIR= $GMP_INCLDIR" >&6 |
| 10665 |
> |
echo "$as_me:$LINENO: result: GMP_LIBDIR= $GMP_LIBDIR" >&5 |
| 10666 |
> |
echo "${ECHO_T}GMP_LIBDIR= $GMP_LIBDIR" >&6 |
| 10667 |
> |
|
| 10668 |
> |
ac_ext=cc |
| 10669 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 10670 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10671 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10672 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10673 |
> |
|
| 10674 |
> |
save_CXXFLAGS="$CXXFLAGS" |
| 10675 |
> |
CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR" |
| 10676 |
> |
if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then |
| 10677 |
> |
echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5 |
| 10678 |
> |
echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6 |
| 10679 |
> |
if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then |
| 10680 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10681 |
> |
fi |
| 10682 |
> |
echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5 |
| 10683 |
> |
echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6 |
| 10684 |
> |
else |
| 10685 |
> |
# Is the header compilable? |
| 10686 |
> |
echo "$as_me:$LINENO: checking CGAL/Cartesian.h usability" >&5 |
| 10687 |
> |
echo $ECHO_N "checking CGAL/Cartesian.h usability... $ECHO_C" >&6 |
| 10688 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 10689 |
> |
/* confdefs.h. */ |
| 10690 |
> |
_ACEOF |
| 10691 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 10692 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 10693 |
> |
/* end confdefs.h. */ |
| 10694 |
> |
$ac_includes_default |
| 10695 |
> |
#include <CGAL/Cartesian.h> |
| 10696 |
> |
_ACEOF |
| 10697 |
> |
rm -f conftest.$ac_objext |
| 10698 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10699 |
> |
(eval $ac_compile) 2>conftest.er1 |
| 10700 |
> |
ac_status=$? |
| 10701 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10702 |
> |
rm -f conftest.er1 |
| 10703 |
> |
cat conftest.err >&5 |
| 10704 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10705 |
> |
(exit $ac_status); } && |
| 10706 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 10707 |
> |
|| test ! -s conftest.err' |
| 10708 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10709 |
> |
(eval $ac_try) 2>&5 |
| 10710 |
> |
ac_status=$? |
| 10711 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10712 |
> |
(exit $ac_status); }; } && |
| 10713 |
> |
{ ac_try='test -s conftest.$ac_objext' |
| 10714 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10715 |
> |
(eval $ac_try) 2>&5 |
| 10716 |
> |
ac_status=$? |
| 10717 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10718 |
> |
(exit $ac_status); }; }; then |
| 10719 |
> |
ac_header_compiler=yes |
| 10720 |
> |
else |
| 10721 |
> |
echo "$as_me: failed program was:" >&5 |
| 10722 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10723 |
> |
|
| 10724 |
> |
ac_header_compiler=no |
| 10725 |
> |
fi |
| 10726 |
> |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10727 |
> |
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10728 |
> |
echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10729 |
> |
|
| 10730 |
> |
# Is the header present? |
| 10731 |
> |
echo "$as_me:$LINENO: checking CGAL/Cartesian.h presence" >&5 |
| 10732 |
> |
echo $ECHO_N "checking CGAL/Cartesian.h presence... $ECHO_C" >&6 |
| 10733 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 10734 |
> |
/* confdefs.h. */ |
| 10735 |
> |
_ACEOF |
| 10736 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 10737 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 10738 |
> |
/* end confdefs.h. */ |
| 10739 |
> |
#include <CGAL/Cartesian.h> |
| 10740 |
> |
_ACEOF |
| 10741 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10742 |
> |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10743 |
> |
ac_status=$? |
| 10744 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10745 |
> |
rm -f conftest.er1 |
| 10746 |
> |
cat conftest.err >&5 |
| 10747 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10748 |
> |
(exit $ac_status); } >/dev/null; then |
| 10749 |
> |
if test -s conftest.err; then |
| 10750 |
> |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 10751 |
> |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 10752 |
> |
else |
| 10753 |
> |
ac_cpp_err= |
| 10754 |
> |
fi |
| 10755 |
> |
else |
| 10756 |
> |
ac_cpp_err=yes |
| 10757 |
> |
fi |
| 10758 |
> |
if test -z "$ac_cpp_err"; then |
| 10759 |
> |
ac_header_preproc=yes |
| 10760 |
> |
else |
| 10761 |
> |
echo "$as_me: failed program was:" >&5 |
| 10762 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10763 |
> |
|
| 10764 |
> |
ac_header_preproc=no |
| 10765 |
> |
fi |
| 10766 |
> |
rm -f conftest.err conftest.$ac_ext |
| 10767 |
> |
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10768 |
> |
echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10769 |
> |
|
| 10770 |
> |
# So? What about this header? |
| 10771 |
> |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 10772 |
> |
yes:no: ) |
| 10773 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10774 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10775 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&5 |
| 10776 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&2;} |
| 10777 |
> |
ac_header_preproc=yes |
| 10778 |
> |
;; |
| 10779 |
> |
no:yes:* ) |
| 10780 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&5 |
| 10781 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&2;} |
| 10782 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: check for missing prerequisite headers?" >&5 |
| 10783 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: check for missing prerequisite headers?" >&2;} |
| 10784 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&5 |
| 10785 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&2;} |
| 10786 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 10787 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10788 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&5 |
| 10789 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&2;} |
| 10790 |
> |
{ echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&5 |
| 10791 |
> |
echo "$as_me: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&2;} |
| 10792 |
> |
( |
| 10793 |
> |
cat <<\_ASBOX |
| 10794 |
> |
## ------------------------------ ## |
| 10795 |
> |
## Report this to gezelter@nd.edu ## |
| 10796 |
> |
## ------------------------------ ## |
| 10797 |
> |
_ASBOX |
| 10798 |
> |
) | |
| 10799 |
> |
sed "s/^/$as_me: WARNING: /" >&2 |
| 10800 |
> |
;; |
| 10801 |
> |
esac |
| 10802 |
> |
echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5 |
| 10803 |
> |
echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6 |
| 10804 |
> |
if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then |
| 10805 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10806 |
> |
else |
| 10807 |
> |
ac_cv_header_CGAL_Cartesian_h=$ac_header_preproc |
| 10808 |
> |
fi |
| 10809 |
> |
echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5 |
| 10810 |
> |
echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6 |
| 10811 |
> |
|
| 10812 |
> |
fi |
| 10813 |
> |
if test $ac_cv_header_CGAL_Cartesian_h = yes; then |
| 10814 |
> |
cgal=yes |
| 10815 |
> |
else |
| 10816 |
> |
cgal=no |
| 10817 |
> |
fi |
| 10818 |
> |
|
| 10819 |
> |
|
| 10820 |
> |
CXXFLAGS="$save_CXXFLAGS" |
| 10821 |
> |
|
| 10822 |
> |
if test "x$cgal" = xyes; then |
| 10823 |
> |
echo "$as_me:$LINENO: checking for CGAL version" >&5 |
| 10824 |
> |
echo $ECHO_N "checking for CGAL version... $ECHO_C" >&6 |
| 10825 |
> |
LOCATION=${CGAL_INCLDIR} |
| 10826 |
> |
LOCATION=${LOCATION:-/usr/include} |
| 10827 |
> |
if test -f $LOCATION/CGAL/version.h; then |
| 10828 |
> |
CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/version.h | sed 's/[^0-9\.]*//g'` |
| 10829 |
> |
else |
| 10830 |
> |
CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/config.h | sed 's/[^0-9\.]*//g'` |
| 10831 |
> |
fi |
| 10832 |
> |
if echo $CGAL_VERSION | grep -q "^[3456789]"; then |
| 10833 |
> |
echo "$as_me:$LINENO: result: ($CGAL_VERSION) yes" >&5 |
| 10834 |
> |
echo "${ECHO_T}($CGAL_VERSION) yes" >&6 |
| 10835 |
> |
else |
| 10836 |
> |
echo "$as_me:$LINENO: result: ($CGAL_VERSION) no" >&5 |
| 10837 |
> |
echo "${ECHO_T}($CGAL_VERSION) no" >&6 |
| 10838 |
> |
cgal=no |
| 10839 |
> |
fi |
| 10840 |
> |
fi |
| 10841 |
> |
|
| 10842 |
> |
if test "x$cgal" = xyes; then |
| 10843 |
> |
CGAL_LIBS="-lCGAL" |
| 10844 |
> |
echo "$as_me:$LINENO: checking whether CGAL uses LEDA" >&5 |
| 10845 |
> |
echo $ECHO_N "checking whether CGAL uses LEDA... $ECHO_C" >&6 |
| 10846 |
> |
if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_LEDA; then |
| 10847 |
> |
CGAL_USES_LEDA=yes |
| 10848 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
| 10849 |
> |
echo "${ECHO_T}yes" >&6 |
| 10850 |
> |
CGAL_DEFINES="-DCGAL_USE_LEDA -DLEDA_PREFIX" |
| 10851 |
> |
else |
| 10852 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 10853 |
> |
echo "${ECHO_T}no" >&6 |
| 10854 |
> |
CGAL_USES_LEDA=no |
| 10855 |
> |
fi |
| 10856 |
> |
|
| 10857 |
> |
echo "$as_me:$LINENO: checking whether CGAL uses GMP" >&5 |
| 10858 |
> |
echo $ECHO_N "checking whether CGAL uses GMP... $ECHO_C" >&6 |
| 10859 |
> |
if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_GMP; then |
| 10860 |
> |
CGAL_USES_GMP=yes |
| 10861 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
| 10862 |
> |
echo "${ECHO_T}yes" >&6 |
| 10863 |
> |
CGAL_DEFINES="-DCGAL_USE_GMP $CGAL_DEFINES" |
| 10864 |
> |
else |
| 10865 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 10866 |
> |
echo "${ECHO_T}no" >&6 |
| 10867 |
> |
CGAL_USES_GMP=no |
| 10868 |
> |
fi |
| 10869 |
> |
|
| 10870 |
> |
CGAL_LIBS="$CGAL_LIBS -lm" |
| 10871 |
> |
|
| 10872 |
> |
CGAL_CXXFLAGS="-ftemplate-depth-50" |
| 10873 |
> |
|
| 10874 |
> |
echo "$as_me:$LINENO: result: CGAL_USES_LEDA= $CGAL_USES_LEDA" >&5 |
| 10875 |
> |
echo "${ECHO_T}CGAL_USES_LEDA= $CGAL_USES_LEDA" >&6 |
| 10876 |
> |
echo "$as_me:$LINENO: result: CGAL_USES_GMP = $CGAL_USES_GMP" >&5 |
| 10877 |
> |
echo "${ECHO_T}CGAL_USES_GMP = $CGAL_USES_GMP" >&6 |
| 10878 |
> |
echo "$as_me:$LINENO: result: CGAL_INCLDIR = $CGAL_INCLDIR" >&5 |
| 10879 |
> |
echo "${ECHO_T}CGAL_INCLDIR = $CGAL_INCLDIR" >&6 |
| 10880 |
> |
echo "$as_me:$LINENO: result: CGAL_LIBDIR = $CGAL_LIBDIR" >&5 |
| 10881 |
> |
echo "${ECHO_T}CGAL_LIBDIR = $CGAL_LIBDIR" >&6 |
| 10882 |
> |
echo "$as_me:$LINENO: result: CGAL_DEFINES = $CGAL_DEFINES" >&5 |
| 10883 |
> |
echo "${ECHO_T}CGAL_DEFINES = $CGAL_DEFINES" >&6 |
| 10884 |
> |
echo "$as_me:$LINENO: result: CGAL_CXXFLAGS = $CGAL_CXXFLAGS" >&5 |
| 10885 |
> |
echo "${ECHO_T}CGAL_CXXFLAGS = $CGAL_CXXFLAGS" >&6 |
| 10886 |
> |
echo "$as_me:$LINENO: result: CGAL_LIBS = $CGAL_LIBS" >&5 |
| 10887 |
> |
echo "${ECHO_T}CGAL_LIBS = $CGAL_LIBS" >&6 |
| 10888 |
> |
fi |
| 10889 |
> |
|
| 10890 |
> |
if test "x$cgal" = xyes; then |
| 10891 |
> |
save_LIBS="$LIBS" |
| 10892 |
> |
LIBS="$LIBS -L$CGAL_LIBDIR" |
| 10893 |
> |
if test "x$CGAL_USES_LEDA" = xyes; then |
| 10894 |
> |
LIBS="-lL $LIBS -L$LEDA_LIBDIR" |
| 10895 |
> |
fi |
| 10896 |
> |
# if test "x$CGAL_USES_GMP" = xyes; then |
| 10897 |
> |
# LIBS="-lgmp $LIBS $GMP_LIBDIR" |
| 10898 |
> |
# fi |
| 10899 |
> |
echo "$as_me:$LINENO: checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL" >&5 |
| 10900 |
> |
echo $ECHO_N "checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL... $ECHO_C" >&6 |
| 10901 |
> |
save_CXXFLAGS_CHECK_CXX_LIB="$CXXFLAGS" |
| 10902 |
> |
CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR" |
| 10903 |
> |
save_LIBS_CHECK_CXX_LIB="$LIBS" |
| 10904 |
> |
LIBS="-lCGAL $LIBS" |
| 10905 |
> |
cat >conftest.$ac_ext <<_ACEOF |
| 10906 |
> |
/* confdefs.h. */ |
| 10907 |
> |
_ACEOF |
| 10908 |
> |
cat confdefs.h >>conftest.$ac_ext |
| 10909 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
| 10910 |
> |
/* end confdefs.h. */ |
| 10911 |
> |
#include <CGAL/Cartesian.h> |
| 10912 |
> |
int |
| 10913 |
> |
main () |
| 10914 |
> |
{ |
| 10915 |
> |
::CGAL::Cartesian<int>::Point_2 P |
| 10916 |
> |
; |
| 10917 |
> |
return 0; |
| 10918 |
> |
} |
| 10919 |
> |
_ACEOF |
| 10920 |
> |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 10921 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10922 |
> |
(eval $ac_link) 2>conftest.er1 |
| 10923 |
> |
ac_status=$? |
| 10924 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
| 10925 |
> |
rm -f conftest.er1 |
| 10926 |
> |
cat conftest.err >&5 |
| 10927 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10928 |
> |
(exit $ac_status); } && |
| 10929 |
> |
{ ac_try='test -z "$ac_cxx_werror_flag" |
| 10930 |
> |
|| test ! -s conftest.err' |
| 10931 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10932 |
> |
(eval $ac_try) 2>&5 |
| 10933 |
> |
ac_status=$? |
| 10934 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10935 |
> |
(exit $ac_status); }; } && |
| 10936 |
> |
{ ac_try='test -s conftest$ac_exeext' |
| 10937 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10938 |
> |
(eval $ac_try) 2>&5 |
| 10939 |
> |
ac_status=$? |
| 10940 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10941 |
> |
(exit $ac_status); }; }; then |
| 10942 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
| 10943 |
> |
echo "${ECHO_T}yes" >&6 |
| 10944 |
> |
cgal=yes |
| 10945 |
> |
else |
| 10946 |
> |
echo "$as_me: failed program was:" >&5 |
| 10947 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 10948 |
> |
|
| 10949 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 10950 |
> |
echo "${ECHO_T}no" >&6 |
| 10951 |
> |
cgal=no |
| 10952 |
> |
fi |
| 10953 |
> |
rm -f conftest.err conftest.$ac_objext \ |
| 10954 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 10955 |
> |
CXXFLAGS="$save_CXXFLAGS_CHECK_CXX_LIB" |
| 10956 |
> |
LIBS="$save_LIBS_CHECK_CXX_LIB" |
| 10957 |
> |
LIBS="$save_LIBS" |
| 10958 |
> |
fi |
| 10959 |
> |
|
| 10960 |
> |
fi |
| 10961 |
> |
ac_ext=c |
| 10962 |
> |
ac_cpp='$CPP $CPPFLAGS' |
| 10963 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10964 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10965 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10966 |
> |
|
| 10967 |
> |
|
| 10968 |
> |
fi |
| 10969 |
> |
|
| 10970 |
> |
if test "x$cgal" = xyes; then |
| 10971 |
> |
USE_CGAL=yes |
| 10972 |
> |
|
| 10973 |
> |
cat >>confdefs.h <<\_ACEOF |
| 10974 |
> |
#define HAVE_CGAL 1 |
| 10975 |
> |
_ACEOF |
| 10976 |
> |
|
| 10977 |
> |
|
| 10978 |
> |
cat >>confdefs.h <<_ACEOF |
| 10979 |
> |
#define CGAL_VERSION $CGAL_VERSION |
| 10980 |
> |
_ACEOF |
| 10981 |
> |
|
| 10982 |
> |
if ! echo $CGAL_VERSION | grep -q "^3.0"; then |
| 10983 |
> |
{ echo "$as_me:$LINENO: WARNING: *****************************************************" >&5 |
| 10984 |
> |
echo "$as_me: WARNING: *****************************************************" >&2;} |
| 10985 |
> |
{ echo "$as_me:$LINENO: WARNING: *** Warning: Your CGAL version is newer than the ***" >&5 |
| 10986 |
> |
echo "$as_me: WARNING: *** Warning: Your CGAL version is newer than the ***" >&2;} |
| 10987 |
> |
{ echo "$as_me:$LINENO: WARNING: *** supported versions. It may still work though. ***" >&5 |
| 10988 |
> |
echo "$as_me: WARNING: *** supported versions. It may still work though. ***" >&2;} |
| 10989 |
> |
{ echo "$as_me:$LINENO: WARNING: *****************************************************" >&5 |
| 10990 |
> |
echo "$as_me: WARNING: *****************************************************" >&2;} |
| 10991 |
> |
fi |
| 10992 |
> |
else |
| 10993 |
> |
if test "x$cgal_makefile" != xno; then |
| 10994 |
> |
echo "$as_me:$LINENO: result: No CGAL support. These are not the droids you want." >&5 |
| 10995 |
> |
echo "${ECHO_T}No CGAL support. These are not the droids you want." >&6 |
| 10996 |
> |
fi |
| 10997 |
> |
CGAL_INCLDIR= |
| 10998 |
> |
CGAL_LIBDIR= |
| 10999 |
> |
CGAL_RLIBDIR= |
| 11000 |
> |
CGAL_DEFINES= |
| 11001 |
> |
CGAL_CXXFLAGS= |
| 11002 |
> |
CGAL_LIBS= |
| 11003 |
> |
fi |
| 11004 |
> |
|
| 11005 |
> |
|
| 11006 |
> |
CGAL_INC_DIR="${CGAL_INCLDIR} ${CGAL_INCLCONFDIR}" |
| 11007 |
> |
|
| 11008 |
> |
CGAL_LIB_DIR=${CGAL_LIBDIR} |
| 11009 |
> |
|
| 11010 |
> |
CGAL_RLIB_DIR=${CGAL_RLIBDIR} |
| 11011 |
> |
|
| 11012 |
> |
|
| 11013 |
> |
|
| 11014 |
> |
|
| 11015 |
> |
|
| 11016 |
> |
|
| 11017 |
> |
|
| 11018 |
> |
# Check whether --enable-doxygen or --disable-doxygen was given. |
| 11019 |
> |
if test "${enable_doxygen+set}" = set; then |
| 11020 |
> |
enableval="$enable_doxygen" |
| 11021 |
> |
|
| 11022 |
> |
fi; |
| 11023 |
> |
# Check whether --enable-dot or --disable-dot was given. |
| 11024 |
> |
if test "${enable_dot+set}" = set; then |
| 11025 |
> |
enableval="$enable_dot" |
| 11026 |
> |
|
| 11027 |
> |
fi; |
| 11028 |
> |
# Check whether --enable-html-docs or --disable-html-docs was given. |
| 11029 |
> |
if test "${enable_html_docs+set}" = set; then |
| 11030 |
> |
enableval="$enable_html_docs" |
| 11031 |
> |
|
| 11032 |
> |
else |
| 11033 |
> |
enable_html_docs=yes |
| 11034 |
> |
fi; |
| 11035 |
> |
# Check whether --enable-latex-docs or --disable-latex-docs was given. |
| 11036 |
> |
if test "${enable_latex_docs+set}" = set; then |
| 11037 |
> |
enableval="$enable_latex_docs" |
| 11038 |
> |
|
| 11039 |
> |
else |
| 11040 |
> |
enable_latex_docs=no |
| 11041 |
> |
fi; |
| 11042 |
> |
if test "x$enable_doxygen" = xno; then |
| 11043 |
> |
enable_doc=no |
| 11044 |
> |
else |
| 11045 |
> |
# Extract the first word of "doxygen", so it can be a program name with args. |
| 11046 |
> |
set dummy doxygen; ac_word=$2 |
| 11047 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11048 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11049 |
> |
if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 11050 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11051 |
> |
else |
| 11052 |
> |
case $DOXYGEN in |
| 11053 |
> |
[\\/]* | ?:[\\/]*) |
| 11054 |
> |
ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 11055 |
> |
;; |
| 11056 |
> |
*) |
| 11057 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11058 |
> |
for as_dir in $PATH |
| 11059 |
> |
do |
| 11060 |
> |
IFS=$as_save_IFS |
| 11061 |
> |
test -z "$as_dir" && as_dir=. |
| 11062 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 11063 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11064 |
> |
ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 11065 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11066 |
> |
break 2 |
| 11067 |
> |
fi |
| 11068 |
> |
done |
| 11069 |
> |
done |
| 11070 |
> |
|
| 11071 |
> |
;; |
| 11072 |
> |
esac |
| 11073 |
> |
fi |
| 11074 |
> |
DOXYGEN=$ac_cv_path_DOXYGEN |
| 11075 |
> |
|
| 11076 |
> |
if test -n "$DOXYGEN"; then |
| 11077 |
> |
echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 11078 |
> |
echo "${ECHO_T}$DOXYGEN" >&6 |
| 11079 |
> |
else |
| 11080 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 11081 |
> |
echo "${ECHO_T}no" >&6 |
| 11082 |
> |
fi |
| 11083 |
> |
|
| 11084 |
> |
if test "x$DOXYGEN" = x; then |
| 11085 |
> |
if test "x$enable_doxygen" = xyes; then |
| 11086 |
> |
{ { echo "$as_me:$LINENO: error: could not find doxygen" >&5 |
| 11087 |
> |
echo "$as_me: error: could not find doxygen" >&2;} |
| 11088 |
> |
{ (exit 1); exit 1; }; } |
| 11089 |
> |
fi |
| 11090 |
> |
enable_doc=no |
| 11091 |
> |
else |
| 11092 |
> |
enable_doc=yes |
| 11093 |
> |
# Extract the first word of "dot", so it can be a program name with args. |
| 11094 |
> |
set dummy dot; ac_word=$2 |
| 11095 |
> |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11096 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11097 |
> |
if test "${ac_cv_path_DOT+set}" = set; then |
| 11098 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11099 |
> |
else |
| 11100 |
> |
case $DOT in |
| 11101 |
> |
[\\/]* | ?:[\\/]*) |
| 11102 |
> |
ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 11103 |
> |
;; |
| 11104 |
> |
*) |
| 11105 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11106 |
> |
for as_dir in $PATH |
| 11107 |
> |
do |
| 11108 |
> |
IFS=$as_save_IFS |
| 11109 |
> |
test -z "$as_dir" && as_dir=. |
| 11110 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 11111 |
> |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11112 |
> |
ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 11113 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11114 |
> |
break 2 |
| 11115 |
> |
fi |
| 11116 |
> |
done |
| 11117 |
> |
done |
| 11118 |
> |
|
| 11119 |
> |
;; |
| 11120 |
> |
esac |
| 11121 |
> |
fi |
| 11122 |
> |
DOT=$ac_cv_path_DOT |
| 11123 |
> |
|
| 11124 |
> |
if test -n "$DOT"; then |
| 11125 |
> |
echo "$as_me:$LINENO: result: $DOT" >&5 |
| 11126 |
> |
echo "${ECHO_T}$DOT" >&6 |
| 11127 |
> |
else |
| 11128 |
> |
echo "$as_me:$LINENO: result: no" >&5 |
| 11129 |
> |
echo "${ECHO_T}no" >&6 |
| 11130 |
> |
fi |
| 11131 |
> |
|
| 11132 |
> |
fi |
| 11133 |
> |
fi |
| 11134 |
> |
|
| 11135 |
> |
if test "x$enable_doc" = xyes; then |
| 11136 |
> |
DOC=1 |
| 11137 |
> |
else |
| 11138 |
> |
DOC=0 |
| 11139 |
> |
fi |
| 11140 |
> |
|
| 11141 |
> |
|
| 11142 |
> |
if test x$DOT = x; then |
| 11143 |
> |
if test "x$enable_dot" = xyes; then |
| 11144 |
> |
{ { echo "$as_me:$LINENO: error: could not find dot" >&5 |
| 11145 |
> |
echo "$as_me: error: could not find dot" >&2;} |
| 11146 |
> |
{ (exit 1); exit 1; }; } |
| 11147 |
> |
fi |
| 11148 |
> |
enable_dot=no |
| 11149 |
> |
else |
| 11150 |
> |
enable_dot=yes |
| 11151 |
> |
fi |
| 11152 |
> |
|
| 11153 |
> |
|
| 11154 |
> |
|
| 11155 |
> |
|
| 11156 |
> |
|
| 11157 |
> |
|
| 11158 |
> |
|
| 11159 |
> |
OBJEXT=".$OBJEXT" |
| 11160 |
> |
|
| 11161 |
> |
OOPSE=oopse |
| 11162 |
> |
|
| 11163 |
> |
if test "x${prefix}" = "xNONE" |
| 11164 |
> |
then |
| 11165 |
> |
OOPSE_HOME=${ac_default_prefix}/oopse |
| 11166 |
> |
else |
| 11167 |
> |
OOPSE_HOME=${prefix}/oopse |
| 11168 |
> |
fi |
| 11169 |
> |
# Check whether --enable-oopse-home or --disable-oopse-home was given. |
| 11170 |
> |
if test "${enable_oopse_home+set}" = set; then |
| 11171 |
> |
enableval="$enable_oopse_home" |
| 11172 |
> |
OOPSE_HOME="${enableval}" |
| 11173 |
> |
fi; |
| 11174 |
> |
|
| 11175 |
> |
case "x$INSTALL" in |
| 11176 |
> |
x/*) ;; |
| 11177 |
> |
*) INSTALL=`pwd`/ac-tools/"shtool install -c" ; |
| 11178 |
> |
esac |
| 11179 |
> |
|
| 11180 |
> |
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f" |
| 11181 |
> |
|
| 11182 |
> |
CFLAGS=${CFLAGS-""} |
| 11183 |
> |
CXXFLAGS=${CXXFLAGS-""} |
| 11184 |
> |
CPPFLAGS=${CPPFLAGS-""} |
| 11185 |
> |
FFLAGS=${FFLAGS-""} |
| 11186 |
> |
F90FLAGS=${F90FLAGS-""} |
| 11187 |
> |
LDFLAGS=${LDFLAGS-""} |
| 11188 |
> |
DEBUG=${DEBUG-"-g"} |
| 11189 |
> |
|
| 11190 |
> |
case $debug in |
| 11191 |
> |
1) |
| 11192 |
> |
FFLAGS="$DEBUG $FFLAGS" |
| 11193 |
> |
F90FLAGS="$DEBUG $F90FLAGS" |
| 11194 |
> |
;; |
| 11195 |
> |
*) |
| 11196 |
> |
;; |
| 11197 |
> |
esac |
| 11198 |
> |
|
| 11199 |
> |
|
| 11200 |
> |
|
| 11201 |
> |
|
| 11202 |
> |
|
| 11203 |
> |
|
| 11204 |
> |
|
| 11205 |
> |
|
| 11206 |
> |
|
| 11207 |
> |
|
| 11208 |
> |
|
| 11209 |
> |
|
| 11210 |
> |
|
| 11211 |
> |
|
| 11212 |
> |
|
| 11213 |
> |
|
| 11214 |
> |
|
| 11215 |
> |
|
| 11216 |
> |
ac_config_headers="$ac_config_headers src/config.h" |
| 11217 |
> |
|
| 11218 |
> |
ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/applications/nanoRodBuilder/Makefile scripts/filepp" |
| 11219 |
> |
|
| 11220 |
> |
|
| 11221 |
> |
cat >confcache <<\_ACEOF |
| 11222 |
> |
# This file is a shell script that caches the results of configure |
| 11223 |
> |
# tests run on this system so they can be shared between configure |
| 11224 |
> |
# scripts and configure runs, see configure's option --config-cache. |
| 11225 |
> |
# It is not useful on other systems. If it contains results you don't |
| 11226 |
> |
# want to keep, you may remove or edit it. |
| 11227 |
> |
# |
| 11228 |
> |
# config.status only pays attention to the cache file if you give it |
| 11229 |
> |
# the --recheck option to rerun configure. |
| 11230 |
> |
# |
| 11231 |
> |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 11232 |
> |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11233 |
> |
# following values. |
| 11234 |
> |
|
| 11235 |
> |
_ACEOF |
| 11236 |
> |
|
| 11237 |
> |
# The following way of writing the cache mishandles newlines in values, |
| 11238 |
> |
# but we know of no workaround that is simple, portable, and efficient. |
| 11239 |
> |
# So, don't put newlines in cache variables' values. |
| 11240 |
> |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 11241 |
> |
# and sets the high bit in the cache file unless we assign to the vars. |
| 11242 |
> |
{ |
| 11243 |
> |
(set) 2>&1 | |
| 11244 |
> |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 11245 |
> |
*ac_space=\ *) |
| 11246 |
> |
# `set' does not quote correctly, so add quotes (double-quote |
| 11247 |
> |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
| 11248 |
> |
sed -n \ |
| 11249 |
> |
"s/'/'\\\\''/g; |
| 11250 |
> |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 11251 |
> |
;; |
| 11252 |
> |
*) |
| 11253 |
> |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| 11254 |
> |
sed -n \ |
| 11255 |
> |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 11256 |
> |
;; |
| 11257 |
> |
esac; |
| 11258 |
> |
} | |
| 11259 |
> |
sed ' |
| 11260 |
> |
t clear |
| 11261 |
> |
: clear |
| 11262 |
> |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11263 |
> |
t end |
| 11264 |
> |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11265 |
> |
: end' >>confcache |
| 11266 |
> |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 11267 |
> |
if test -w $cache_file; then |
| 11268 |
> |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 11269 |
> |
cat confcache >$cache_file |
| 11270 |
> |
else |
| 11271 |
> |
echo "not updating unwritable cache $cache_file" |
| 11272 |
> |
fi |
| 11273 |
> |
fi |
| 11274 |
> |
rm -f confcache |
| 11275 |
> |
|
| 11276 |
> |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11277 |
> |
# Let make expand exec_prefix. |
| 11278 |
> |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11279 |
> |
|
| 11280 |
> |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 11281 |
> |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 11282 |
> |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 11283 |
> |
# (actually we leave an empty line to preserve line numbers). |
| 11284 |
> |
if test "x$srcdir" = x.; then |
| 11285 |
> |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 11286 |
> |
s/:*\$(srcdir):*/:/; |
| 11287 |
> |
s/:*\${srcdir}:*/:/; |
| 11288 |
> |
s/:*@srcdir@:*/:/; |
| 11289 |
> |
s/^\([^=]*=[ ]*\):*/\1/; |
| 11290 |
> |
s/:*$//; |
| 11291 |
> |
s/^[^=]*=[ ]*$//; |
| 11292 |
> |
}' |
| 11293 |
> |
fi |
| 11294 |
> |
|
| 11295 |
> |
DEFS=-DHAVE_CONFIG_H |
| 11296 |
> |
|
| 11297 |
> |
ac_libobjs= |
| 11298 |
> |
ac_ltlibobjs= |
| 11299 |
> |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11300 |
> |
# 1. Remove the extension, and $U if already installed. |
| 11301 |
> |
ac_i=`echo "$ac_i" | |
| 11302 |
> |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 11303 |
> |
# 2. Add them. |
| 11304 |
> |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 11305 |
> |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 11306 |
> |
done |
| 11307 |
> |
LIBOBJS=$ac_libobjs |
| 11308 |
> |
|
| 11309 |
> |
LTLIBOBJS=$ac_ltlibobjs |
| 11310 |
> |
|
| 11311 |
> |
|
| 11312 |
> |
|
| 11313 |
> |
: ${CONFIG_STATUS=./config.status} |
| 11314 |
> |
ac_clean_files_save=$ac_clean_files |
| 11315 |
> |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 11316 |
> |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 11317 |
> |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 11318 |
> |
cat >$CONFIG_STATUS <<_ACEOF |
| 11319 |
> |
#! $SHELL |
| 11320 |
> |
# Generated by $as_me. |
| 11321 |
> |
# Run this file to recreate the current configuration. |
| 11322 |
> |
# Compiler output produced by configure, useful for debugging |
| 11323 |
> |
# configure, is in config.log if it exists. |
| 11324 |
> |
|
| 11325 |
> |
debug=false |
| 11326 |
> |
ac_cs_recheck=false |
| 11327 |
> |
ac_cs_silent=false |
| 11328 |
> |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 11329 |
> |
_ACEOF |
| 11330 |
> |
|
| 11331 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 11332 |
> |
## --------------------- ## |
| 11333 |
> |
## M4sh Initialization. ## |
| 11334 |
> |
## --------------------- ## |
| 11335 |
> |
|
| 11336 |
> |
# Be Bourne compatible |
| 11337 |
> |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 11338 |
> |
emulate sh |
| 11339 |
> |
NULLCMD=: |
| 11340 |
> |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 11341 |
> |
# is contrary to our usage. Disable this feature. |
| 11342 |
> |
alias -g '${1+"$@"}'='"$@"' |
| 11343 |
> |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 11344 |
> |
set -o posix |
| 11345 |
> |
fi |
| 11346 |
> |
DUALCASE=1; export DUALCASE # for MKS sh |
| 11347 |
> |
|
| 11348 |
> |
# Support unset when possible. |
| 11349 |
> |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 11350 |
> |
as_unset=unset |
| 11351 |
> |
else |
| 11352 |
> |
as_unset=false |
| 11353 |
> |
fi |
| 11354 |
> |
|
| 11355 |
> |
|
| 11356 |
> |
# Work around bugs in pre-3.0 UWIN ksh. |
| 11357 |
> |
$as_unset ENV MAIL MAILPATH |
| 11358 |
> |
PS1='$ ' |
| 11359 |
> |
PS2='> ' |
| 11360 |
> |
PS4='+ ' |
| 11361 |
> |
|
| 11362 |
> |
# NLS nuisances. |
| 11363 |
> |
for as_var in \ |
| 11364 |
> |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 11365 |
> |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 11366 |
> |
LC_TELEPHONE LC_TIME |
| 11367 |
> |
do |
| 11368 |
> |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 11369 |
> |
eval $as_var=C; export $as_var |
| 11370 |
> |
else |
| 11371 |
> |
$as_unset $as_var |
| 11372 |
> |
fi |
| 11373 |
> |
done |
| 11374 |
> |
|
| 11375 |
> |
# Required to use basename. |
| 11376 |
> |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 11377 |
> |
as_expr=expr |
| 11378 |
> |
else |
| 11379 |
> |
as_expr=false |
| 11380 |
> |
fi |
| 11381 |
> |
|
| 11382 |
> |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 11383 |
> |
as_basename=basename |
| 11384 |
> |
else |
| 11385 |
> |
as_basename=false |
| 11386 |
> |
fi |
| 11387 |
> |
|
| 11388 |
> |
|
| 11389 |
> |
# Name of the executable. |
| 11390 |
> |
as_me=`$as_basename "$0" || |
| 11391 |
> |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11392 |
> |
X"$0" : 'X\(//\)$' \| \ |
| 11393 |
> |
X"$0" : 'X\(/\)$' \| \ |
| 11394 |
> |
. : '\(.\)' 2>/dev/null || |
| 11395 |
> |
echo X/"$0" | |
| 11396 |
> |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 11397 |
> |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
| 11398 |
> |
/^X\/\(\/\).*/{ s//\1/; q; } |
| 11399 |
> |
s/.*/./; q'` |
| 11400 |
> |
|
| 11401 |
> |
|
| 11402 |
> |
# PATH needs CR, and LINENO needs CR and PATH. |
| 11403 |
> |
# Avoid depending upon Character Ranges. |
| 11404 |
> |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11405 |
> |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11406 |
> |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11407 |
> |
as_cr_digits='0123456789' |
| 11408 |
> |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 11409 |
> |
|
| 11410 |
> |
# The user is always right. |
| 11411 |
> |
if test "${PATH_SEPARATOR+set}" != set; then |
| 11412 |
> |
echo "#! /bin/sh" >conf$$.sh |
| 11413 |
> |
echo "exit 0" >>conf$$.sh |
| 11414 |
> |
chmod +x conf$$.sh |
| 11415 |
> |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 11416 |
> |
PATH_SEPARATOR=';' |
| 11417 |
> |
else |
| 11418 |
> |
PATH_SEPARATOR=: |
| 11419 |
> |
fi |
| 11420 |
> |
rm -f conf$$.sh |
| 11421 |
> |
fi |
| 11422 |
> |
|
| 11423 |
> |
|
| 11424 |
> |
as_lineno_1=$LINENO |
| 11425 |
> |
as_lineno_2=$LINENO |
| 11426 |
> |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 11427 |
> |
test "x$as_lineno_1" != "x$as_lineno_2" && |
| 11428 |
> |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 11429 |
> |
# Find who we are. Look in the path if we contain no path at all |
| 11430 |
> |
# relative or not. |
| 11431 |
> |
case $0 in |
| 11432 |
> |
*[\\/]* ) as_myself=$0 ;; |
| 11433 |
> |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11434 |
> |
for as_dir in $PATH |
| 11435 |
> |
do |
| 11436 |
> |
IFS=$as_save_IFS |
| 11437 |
> |
test -z "$as_dir" && as_dir=. |
| 11438 |
> |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11439 |
> |
done |
| 11440 |
> |
|
| 11441 |
> |
;; |
| 11442 |
> |
esac |
| 11443 |
> |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11444 |
> |
# in which case we are not to be found in the path. |
| 11445 |
> |
if test "x$as_myself" = x; then |
| 11446 |
> |
as_myself=$0 |
| 11447 |
> |
fi |
| 11448 |
> |
if test ! -f "$as_myself"; then |
| 11449 |
> |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 11450 |
> |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 11451 |
> |
{ (exit 1); exit 1; }; } |
| 11452 |
> |
fi |
| 11453 |
> |
case $CONFIG_SHELL in |
| 11454 |
> |
'') |
| 11455 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11456 |
> |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 11457 |
> |
do |
| 11458 |
> |
IFS=$as_save_IFS |
| 11459 |
> |
test -z "$as_dir" && as_dir=. |
| 11460 |
> |
for as_base in sh bash ksh sh5; do |
| 11461 |
> |
case $as_dir in |
| 11462 |
> |
/*) |
| 11463 |
> |
if ("$as_dir/$as_base" -c ' |
| 11464 |
> |
as_lineno_1=$LINENO |
| 11465 |
> |
as_lineno_2=$LINENO |
| 11466 |
> |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 11467 |
> |
test "x$as_lineno_1" != "x$as_lineno_2" && |
| 11468 |
> |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 11469 |
> |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 11470 |
> |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 11471 |
> |
CONFIG_SHELL=$as_dir/$as_base |
| 11472 |
> |
export CONFIG_SHELL |
| 11473 |
> |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 11474 |
> |
fi;; |
| 11475 |
> |
esac |
| 11476 |
> |
done |
| 11477 |
> |
done |
| 11478 |
> |
;; |
| 11479 |
> |
esac |
| 11480 |
> |
|
| 11481 |
> |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 11482 |
> |
# uniformly replaced by the line number. The first 'sed' inserts a |
| 11483 |
> |
# line-number line before each line; the second 'sed' does the real |
| 11484 |
> |
# work. The second script uses 'N' to pair each line-number line |
| 11485 |
> |
# with the numbered line, and appends trailing '-' during |
| 11486 |
> |
# substitution so that $LINENO is not a special case at line end. |
| 11487 |
> |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 11488 |
> |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 11489 |
> |
sed '=' <$as_myself | |
| 11490 |
> |
sed ' |
| 11491 |
> |
N |
| 11492 |
> |
s,$,-, |
| 11493 |
> |
: loop |
| 11494 |
> |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 11495 |
> |
t loop |
| 11496 |
> |
s,-$,, |
| 11497 |
> |
s,^['$as_cr_digits']*\n,, |
| 11498 |
> |
' >$as_me.lineno && |
| 11499 |
> |
chmod +x $as_me.lineno || |
| 11500 |
> |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 11501 |
> |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 11502 |
> |
{ (exit 1); exit 1; }; } |
| 11503 |
> |
|
| 11504 |
> |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 11505 |
> |
# (the dirname of $[0] is not the place where we might find the |
| 11506 |
> |
# original and so on. Autoconf is especially sensible to this). |
| 11507 |
> |
. ./$as_me.lineno |
| 11508 |
> |
# Exit status is that of the last command. |
| 11509 |
> |
exit |
| 11510 |
> |
} |
| 11511 |
> |
|
| 11512 |
> |
|
| 11513 |
> |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 11514 |
> |
*c*,-n*) ECHO_N= ECHO_C=' |
| 11515 |
> |
' ECHO_T=' ' ;; |
| 11516 |
> |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 11517 |
> |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 11518 |
> |
esac |
| 11519 |
> |
|
| 11520 |
> |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 11521 |
> |
as_expr=expr |
| 11522 |
> |
else |
| 11523 |
> |
as_expr=false |
| 11524 |
> |
fi |
| 11525 |
> |
|
| 11526 |
> |
rm -f conf$$ conf$$.exe conf$$.file |
| 11527 |
> |
echo >conf$$.file |
| 11528 |
> |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 11529 |
> |
# We could just check for DJGPP; but this test a) works b) is more generic |
| 11530 |
> |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 11531 |
> |
if test -f conf$$.exe; then |
| 11532 |
> |
# Don't use ln at all; we don't have any links |
| 11533 |
> |
as_ln_s='cp -p' |
| 11534 |
> |
else |
| 11535 |
> |
as_ln_s='ln -s' |
| 11536 |
> |
fi |
| 11537 |
> |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11538 |
> |
as_ln_s=ln |
| 11539 |
> |
else |
| 11540 |
> |
as_ln_s='cp -p' |
| 11541 |
> |
fi |
| 11542 |
> |
rm -f conf$$ conf$$.exe conf$$.file |
| 11543 |
> |
|
| 11544 |
> |
if mkdir -p . 2>/dev/null; then |
| 11545 |
> |
as_mkdir_p=: |
| 11546 |
> |
else |
| 11547 |
> |
test -d ./-p && rmdir ./-p |
| 11548 |
> |
as_mkdir_p=false |
| 11549 |
> |
fi |
| 11550 |
> |
|
| 11551 |
> |
as_executable_p="test -f" |
| 11552 |
> |
|
| 11553 |
> |
# Sed expression to map a string onto a valid CPP name. |
| 11554 |
> |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11555 |
> |
|
| 11556 |
> |
# Sed expression to map a string onto a valid variable name. |
| 11557 |
> |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 11558 |
> |
|
| 11559 |
> |
|
| 11560 |
> |
# IFS |
| 11561 |
> |
# We need space, tab and new line, in precisely that order. |
| 11562 |
> |
as_nl=' |
| 11563 |
> |
' |
| 11564 |
> |
IFS=" $as_nl" |
| 11565 |
> |
|
| 11566 |
> |
# CDPATH. |
| 11567 |
> |
$as_unset CDPATH |
| 11568 |
> |
|
| 11569 |
> |
exec 6>&1 |
| 11570 |
> |
|
| 11571 |
> |
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 11572 |
> |
# report actual input values of CONFIG_FILES etc. instead of their |
| 11573 |
> |
# values after options handling. Logging --version etc. is OK. |
| 11574 |
> |
exec 5>>config.log |
| 11575 |
> |
{ |
| 11576 |
> |
echo |
| 11577 |
> |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 11578 |
> |
## Running $as_me. ## |
| 11579 |
> |
_ASBOX |
| 11580 |
> |
} >&5 |
| 11581 |
> |
cat >&5 <<_CSEOF |
| 11582 |
> |
|
| 11583 |
> |
This file was extended by OOPSE $as_me 2.0, which was |
| 11584 |
> |
generated by GNU Autoconf 2.59. Invocation command line was |
| 11585 |
> |
|
| 11586 |
> |
CONFIG_FILES = $CONFIG_FILES |
| 11587 |
> |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 11588 |
> |
CONFIG_LINKS = $CONFIG_LINKS |
| 11589 |
> |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 11590 |
> |
$ $0 $@ |
| 11591 |
> |
|
| 11592 |
> |
_CSEOF |
| 11593 |
> |
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 11594 |
> |
echo >&5 |
| 11595 |
> |
_ACEOF |
| 11596 |
> |
|
| 11597 |
> |
# Files that config.status was made for. |
| 11598 |
> |
if test -n "$ac_config_files"; then |
| 11599 |
> |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 11600 |
> |
fi |
| 11601 |
> |
|
| 11602 |
> |
if test -n "$ac_config_headers"; then |
| 11603 |
> |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 11604 |
> |
fi |
| 11605 |
> |
|
| 11606 |
> |
if test -n "$ac_config_links"; then |
| 11607 |
> |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 11608 |
> |
fi |
| 11609 |
> |
|
| 11610 |
> |
if test -n "$ac_config_commands"; then |
| 11611 |
> |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 11612 |
> |
fi |
| 11613 |
> |
|
| 11614 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 11615 |
> |
|
| 11616 |
> |
ac_cs_usage="\ |
| 11617 |
> |
\`$as_me' instantiates files from templates according to the |
| 11618 |
> |
current configuration. |
| 11619 |
> |
|
| 11620 |
> |
Usage: $0 [OPTIONS] [FILE]... |
| 11621 |
> |
|
| 11622 |
> |
-h, --help print this help, then exit |
| 11623 |
> |
-V, --version print version number, then exit |
| 11624 |
> |
-q, --quiet do not print progress messages |
| 11625 |
> |
-d, --debug don't remove temporary files |
| 11626 |
> |
--recheck update $as_me by reconfiguring in the same conditions |
| 11627 |
> |
--file=FILE[:TEMPLATE] |
| 11628 |
> |
instantiate the configuration file FILE |
| 11629 |
> |
--header=FILE[:TEMPLATE] |
| 11630 |
> |
instantiate the configuration header FILE |
| 11631 |
> |
|
| 11632 |
> |
Configuration files: |
| 11633 |
> |
$config_files |
| 11634 |
> |
|
| 11635 |
> |
Configuration headers: |
| 11636 |
> |
$config_headers |
| 11637 |
> |
|
| 11638 |
> |
Configuration links: |
| 11639 |
> |
$config_links |
| 11640 |
> |
|
| 11641 |
> |
Report bugs to <bug-autoconf@gnu.org>." |
| 11642 |
> |
_ACEOF |
| 11643 |
> |
|
| 11644 |
> |
cat >>$CONFIG_STATUS <<_ACEOF |
| 11645 |
> |
ac_cs_version="\\ |
| 11646 |
> |
OOPSE config.status 2.0 |
| 11647 |
> |
configured by $0, generated by GNU Autoconf 2.59, |
| 11648 |
> |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 11649 |
> |
|
| 11650 |
> |
Copyright (C) 2003 Free Software Foundation, Inc. |
| 11651 |
> |
This config.status script is free software; the Free Software Foundation |
| 11652 |
> |
gives unlimited permission to copy, distribute and modify it." |
| 11653 |
> |
srcdir=$srcdir |
| 11654 |
> |
INSTALL="$INSTALL" |
| 11655 |
> |
_ACEOF |
| 11656 |
> |
|
| 11657 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 11658 |
> |
# If no file are specified by the user, then we need to provide default |
| 11659 |
> |
# value. By we need to know if files were specified by the user. |
| 11660 |
> |
ac_need_defaults=: |
| 11661 |
> |
while test $# != 0 |
| 11662 |
> |
do |
| 11663 |
> |
case $1 in |
| 11664 |
> |
--*=*) |
| 11665 |
> |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 11666 |
> |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 11667 |
> |
ac_shift=: |
| 11668 |
> |
;; |
| 11669 |
> |
-*) |
| 11670 |
> |
ac_option=$1 |
| 11671 |
> |
ac_optarg=$2 |
| 11672 |
> |
ac_shift=shift |
| 11673 |
> |
;; |
| 11674 |
> |
*) # This is not an option, so the user has probably given explicit |
| 11675 |
> |
# arguments. |
| 11676 |
> |
ac_option=$1 |
| 11677 |
> |
ac_need_defaults=false;; |
| 11678 |
> |
esac |
| 11679 |
> |
|
| 11680 |
> |
case $ac_option in |
| 11681 |
> |
# Handling of the options. |
| 11682 |
> |
_ACEOF |
| 11683 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 11684 |
> |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 11685 |
> |
ac_cs_recheck=: ;; |
| 11686 |
> |
--version | --vers* | -V ) |
| 11687 |
> |
echo "$ac_cs_version"; exit 0 ;; |
| 11688 |
> |
--he | --h) |
| 11689 |
> |
# Conflict between --help and --header |
| 11690 |
> |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 11691 |
> |
Try \`$0 --help' for more information." >&5 |
| 11692 |
> |
echo "$as_me: error: ambiguous option: $1 |
| 11693 |
> |
Try \`$0 --help' for more information." >&2;} |
| 11694 |
> |
{ (exit 1); exit 1; }; };; |
| 11695 |
> |
--help | --hel | -h ) |
| 11696 |
> |
echo "$ac_cs_usage"; exit 0 ;; |
| 11697 |
> |
--debug | --d* | -d ) |
| 11698 |
> |
debug=: ;; |
| 11699 |
> |
--file | --fil | --fi | --f ) |
| 11700 |
> |
$ac_shift |
| 11701 |
> |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 11702 |
> |
ac_need_defaults=false;; |
| 11703 |
> |
--header | --heade | --head | --hea ) |
| 11704 |
> |
$ac_shift |
| 11705 |
> |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 11706 |
> |
ac_need_defaults=false;; |
| 11707 |
> |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 11708 |
> |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 11709 |
> |
ac_cs_silent=: ;; |
| 11710 |
> |
|
| 11711 |
> |
# This is an error. |
| 11712 |
> |
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 11713 |
> |
Try \`$0 --help' for more information." >&5 |
| 11714 |
> |
echo "$as_me: error: unrecognized option: $1 |
| 11715 |
> |
Try \`$0 --help' for more information." >&2;} |
| 11716 |
> |
{ (exit 1); exit 1; }; } ;; |
| 11717 |
> |
|
| 11718 |
> |
*) ac_config_targets="$ac_config_targets $1" ;; |
| 11719 |
> |
|
| 11720 |
> |
esac |
| 11721 |
> |
shift |
| 11722 |
> |
done |
| 11723 |
> |
|
| 11724 |
> |
ac_configure_extra_args= |
| 11725 |
> |
|
| 11726 |
> |
if $ac_cs_silent; then |
| 11727 |
> |
exec 6>/dev/null |
| 11728 |
> |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 11729 |
> |
fi |
| 11730 |
> |
|
| 11731 |
> |
_ACEOF |
| 11732 |
> |
cat >>$CONFIG_STATUS <<_ACEOF |
| 11733 |
> |
if \$ac_cs_recheck; then |
| 11734 |
> |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 11735 |
> |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 11736 |
> |
fi |
| 11737 |
> |
|
| 11738 |
> |
_ACEOF |
| 11739 |
> |
|
| 11740 |
> |
|
| 11741 |
> |
|
| 11742 |
> |
|
| 11743 |
> |
|
| 11744 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 11745 |
> |
for ac_config_target in $ac_config_targets |
| 11746 |
> |
do |
| 11747 |
> |
case "$ac_config_target" in |
| 11748 |
> |
# Handling of arguments. |
| 11749 |
> |
"make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;; |
| 11750 |
> |
"src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;; |
| 11751 |
> |
"src/applications/nanoRodBuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/applications/nanoRodBuilder/Makefile" ;; |
| 11752 |
> |
"scripts/filepp" ) CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;; |
| 11753 |
> |
"src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;; |
| 11754 |
> |
"src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 11755 |
> |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 11756 |
> |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 11757 |
> |
{ (exit 1); exit 1; }; };; |
| 11758 |
> |
esac |
| 11759 |
> |
done |
| 11760 |
> |
|
| 11761 |
> |
# If the user did not use the arguments to specify the items to instantiate, |
| 11762 |
> |
# then the envvar interface is used. Set only those that are not. |
| 11763 |
> |
# We use the long form for the default assignment because of an extremely |
| 11764 |
> |
# bizarre bug on SunOS 4.1.3. |
| 11765 |
> |
if $ac_need_defaults; then |
| 11766 |
> |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 11767 |
> |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 11768 |
> |
test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
| 11769 |
> |
fi |
| 11770 |
> |
|
| 11771 |
> |
# Have a temporary directory for convenience. Make it in the build tree |
| 11772 |
> |
# simply because there is no reason to put it here, and in addition, |
| 11773 |
> |
# creating and moving files from /tmp can sometimes cause problems. |
| 11774 |
> |
# Create a temporary directory, and hook for its removal unless debugging. |
| 11775 |
> |
$debug || |
| 11776 |
> |
{ |
| 11777 |
> |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 11778 |
> |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 11779 |
> |
} |
| 11780 |
> |
|
| 11781 |
> |
# Create a (secure) tmp directory for tmp files. |
| 11782 |
> |
|
| 11783 |
> |
{ |
| 11784 |
> |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 11785 |
> |
test -n "$tmp" && test -d "$tmp" |
| 11786 |
> |
} || |
| 11787 |
> |
{ |
| 11788 |
> |
tmp=./confstat$$-$RANDOM |
| 11789 |
> |
(umask 077 && mkdir $tmp) |
| 11790 |
> |
} || |
| 11791 |
> |
{ |
| 11792 |
> |
echo "$me: cannot create a temporary directory in ." >&2 |
| 11793 |
> |
{ (exit 1); exit 1; } |
| 11794 |
> |
} |
| 11795 |
> |
|
| 11796 |
> |
_ACEOF |
| 11797 |
> |
|
| 11798 |
> |
cat >>$CONFIG_STATUS <<_ACEOF |
| 11799 |
> |
|
| 11800 |
> |
# |
| 11801 |
> |
# CONFIG_FILES section. |
| 11802 |
> |
# |
| 11803 |
> |
|
| 11804 |
> |
# No need to generate the scripts if there are no CONFIG_FILES. |
| 11805 |
> |
# This happens for instance when ./config.status config.h |
| 11806 |
> |
if test -n "\$CONFIG_FILES"; then |
| 11807 |
> |
# Protect against being on the right side of a sed subst in config.status. |
| 11808 |
> |
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 11809 |
> |
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 11810 |
> |
s,@SHELL@,$SHELL,;t t |
| 11811 |
> |
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 11812 |
> |
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 11813 |
> |
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 11814 |
> |
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 11815 |
> |
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 11816 |
> |
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 11817 |
> |
s,@exec_prefix@,$exec_prefix,;t t |
| 11818 |
> |
s,@prefix@,$prefix,;t t |
| 11819 |
> |
s,@program_transform_name@,$program_transform_name,;t t |
| 11820 |
> |
s,@bindir@,$bindir,;t t |
| 11821 |
> |
s,@sbindir@,$sbindir,;t t |
| 11822 |
> |
s,@libexecdir@,$libexecdir,;t t |
| 11823 |
> |
s,@datadir@,$datadir,;t t |
| 11824 |
> |
s,@sysconfdir@,$sysconfdir,;t t |
| 11825 |
> |
s,@sharedstatedir@,$sharedstatedir,;t t |
| 11826 |
> |
s,@localstatedir@,$localstatedir,;t t |
| 11827 |
> |
s,@libdir@,$libdir,;t t |
| 11828 |
> |
s,@includedir@,$includedir,;t t |
| 11829 |
> |
s,@oldincludedir@,$oldincludedir,;t t |
| 11830 |
> |
s,@infodir@,$infodir,;t t |
| 11831 |
> |
s,@mandir@,$mandir,;t t |
| 11832 |
> |
s,@build_alias@,$build_alias,;t t |
| 11833 |
> |
s,@host_alias@,$host_alias,;t t |
| 11834 |
> |
s,@target_alias@,$target_alias,;t t |
| 11835 |
> |
s,@DEFS@,$DEFS,;t t |
| 11836 |
> |
s,@ECHO_C@,$ECHO_C,;t t |
| 11837 |
> |
s,@ECHO_N@,$ECHO_N,;t t |
| 11838 |
> |
s,@ECHO_T@,$ECHO_T,;t t |
| 11839 |
> |
s,@LIBS@,$LIBS,;t t |
| 11840 |
> |
s,@PROGNAME@,$PROGNAME,;t t |
| 11841 |
> |
s,@debug@,$debug,;t t |
| 11842 |
> |
s,@build@,$build,;t t |
| 11843 |
> |
s,@build_cpu@,$build_cpu,;t t |
| 11844 |
> |
s,@build_vendor@,$build_vendor,;t t |
| 11845 |
> |
s,@build_os@,$build_os,;t t |
| 11846 |
> |
s,@host@,$host,;t t |
| 11847 |
> |
s,@host_cpu@,$host_cpu,;t t |
| 11848 |
> |
s,@host_vendor@,$host_vendor,;t t |
| 11849 |
> |
s,@host_os@,$host_os,;t t |
| 11850 |
> |
s,@CC@,$CC,;t t |
| 11851 |
> |
s,@CFLAGS@,$CFLAGS,;t t |
| 11852 |
> |
s,@LDFLAGS@,$LDFLAGS,;t t |
| 11853 |
> |
s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 11854 |
> |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 11855 |
> |
s,@EXEEXT@,$EXEEXT,;t t |
| 11856 |
> |
s,@OBJEXT@,$OBJEXT,;t t |
| 11857 |
> |
s,@CXX@,$CXX,;t t |
| 11858 |
> |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 11859 |
> |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 11860 |
> |
s,@CPP@,$CPP,;t t |
| 11861 |
> |
s,@EGREP@,$EGREP,;t t |
| 11862 |
> |
s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t |
| 11863 |
> |
s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t |
| 11864 |
> |
s,@F90@,$F90,;t t |
| 11865 |
> |
s,@F90FLAGS@,$F90FLAGS,;t t |
| 11866 |
> |
s,@ac_ct_F90@,$ac_ct_F90,;t t |
| 11867 |
> |
s,@PREPFLAG@,$PREPFLAG,;t t |
| 11868 |
> |
s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t |
| 11869 |
> |
s,@F90LIBS@,$F90LIBS,;t t |
| 11870 |
> |
s,@F90_FUNC@,$F90_FUNC,;t t |
| 11871 |
> |
s,@F90_FUNC_@,$F90_FUNC_,;t t |
| 11872 |
> |
s,@MOD@,$MOD,;t t |
| 11873 |
> |
s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t |
| 11874 |
> |
s,@MODDIRFLAG@,$MODDIRFLAG,;t t |
| 11875 |
> |
s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t |
| 11876 |
> |
s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t |
| 11877 |
> |
s,@CXXCPP@,$CXXCPP,;t t |
| 11878 |
> |
s,@LIBOBJS@,$LIBOBJS,;t t |
| 11879 |
> |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 11880 |
> |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 11881 |
> |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 11882 |
> |
s,@LN_S@,$LN_S,;t t |
| 11883 |
> |
s,@SET_MAKE@,$SET_MAKE,;t t |
| 11884 |
> |
s,@RANLIB@,$RANLIB,;t t |
| 11885 |
> |
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 11886 |
> |
s,@YACC@,$YACC,;t t |
| 11887 |
> |
s,@LEX@,$LEX,;t t |
| 11888 |
> |
s,@LEXLIB@,$LEXLIB,;t t |
| 11889 |
> |
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
| 11890 |
> |
s,@PERLINTERP@,$PERLINTERP,;t t |
| 11891 |
> |
s,@PERL_SHEBANG@,$PERL_SHEBANG,;t t |
| 11892 |
> |
s,@AR@,$AR,;t t |
| 11893 |
> |
s,@PS@,$PS,;t t |
| 11894 |
> |
s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t |
| 11895 |
> |
s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t |
| 11896 |
> |
s,@MPI_F90_INC@,$MPI_F90_INC,;t t |
| 11897 |
> |
s,@MPI_LIB@,$MPI_LIB,;t t |
| 11898 |
> |
s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t |
| 11899 |
> |
s,@USE_MPI@,$USE_MPI,;t t |
| 11900 |
> |
s,@USE_CGAL@,$USE_CGAL,;t t |
| 11901 |
> |
s,@CGAL_INC_DIR@,$CGAL_INC_DIR,;t t |
| 11902 |
> |
s,@CGAL_LIB_DIR@,$CGAL_LIB_DIR,;t t |
| 11903 |
> |
s,@CGAL_RLIB_DIR@,$CGAL_RLIB_DIR,;t t |
| 11904 |
> |
s,@CGAL_DEFINES@,$CGAL_DEFINES,;t t |
| 11905 |
> |
s,@CGAL_CXXFLAGS@,$CGAL_CXXFLAGS,;t t |
| 11906 |
> |
s,@CGAL_LIBS@,$CGAL_LIBS,;t t |
| 11907 |
> |
s,@DOXYGEN@,$DOXYGEN,;t t |
| 11908 |
> |
s,@DOT@,$DOT,;t t |
| 11909 |
> |
s,@DOC@,$DOC,;t t |
| 11910 |
> |
s,@enable_dot@,$enable_dot,;t t |
| 11911 |
> |
s,@enable_html_docs@,$enable_html_docs,;t t |
| 11912 |
> |
s,@enable_latex_docs@,$enable_latex_docs,;t t |
| 11913 |
> |
s,@BATEXT@,$BATEXT,;t t |
| 11914 |
> |
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
| 11915 |
> |
s,@OOPSE@,$OOPSE,;t t |
| 11916 |
> |
s,@OOPSE_HOME@,$OOPSE_HOME,;t t |
| 11917 |
> |
s,@SUBDIRS@,$SUBDIRS,;t t |
| 11918 |
> |
s,@FFLAGS@,$FFLAGS,;t t |
| 11919 |
> |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 11920 |
> |
CEOF |
| 11921 |
> |
|
| 11922 |
> |
_ACEOF |
| 11923 |
> |
|
| 11924 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 11925 |
> |
# Split the substitutions into bite-sized pieces for seds with |
| 11926 |
> |
# small command number limits, like on Digital OSF/1 and HP-UX. |
| 11927 |
> |
ac_max_sed_lines=48 |
| 11928 |
> |
ac_sed_frag=1 # Number of current file. |
| 11929 |
> |
ac_beg=1 # First line for current file. |
| 11930 |
> |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 11931 |
> |
ac_more_lines=: |
| 11932 |
> |
ac_sed_cmds= |
| 11933 |
> |
while $ac_more_lines; do |
| 11934 |
> |
if test $ac_beg -gt 1; then |
| 11935 |
> |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 11936 |
> |
else |
| 11937 |
> |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 11938 |
> |
fi |
| 11939 |
> |
if test ! -s $tmp/subs.frag; then |
| 11940 |
> |
ac_more_lines=false |
| 11941 |
> |
else |
| 11942 |
> |
# The purpose of the label and of the branching condition is to |
| 11943 |
> |
# speed up the sed processing (if there are no `@' at all, there |
| 11944 |
> |
# is no need to browse any of the substitutions). |
| 11945 |
> |
# These are the two extra sed commands mentioned above. |
| 11946 |
> |
(echo ':t |
| 11947 |
> |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 11948 |
> |
if test -z "$ac_sed_cmds"; then |
| 11949 |
> |
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 11950 |
> |
else |
| 11951 |
> |
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 11952 |
> |
fi |
| 11953 |
> |
ac_sed_frag=`expr $ac_sed_frag + 1` |
| 11954 |
> |
ac_beg=$ac_end |
| 11955 |
> |
ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 11956 |
> |
fi |
| 11957 |
> |
done |
| 11958 |
> |
if test -z "$ac_sed_cmds"; then |
| 11959 |
> |
ac_sed_cmds=cat |
| 11960 |
> |
fi |
| 11961 |
> |
fi # test -n "$CONFIG_FILES" |
| 11962 |
> |
|
| 11963 |
> |
_ACEOF |
| 11964 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 11965 |
> |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 11966 |
> |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 11967 |
> |
case $ac_file in |
| 11968 |
> |
- | *:- | *:-:* ) # input from stdin |
| 11969 |
> |
cat >$tmp/stdin |
| 11970 |
> |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11971 |
> |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 11972 |
> |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 11973 |
> |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 11974 |
> |
* ) ac_file_in=$ac_file.in ;; |
| 11975 |
> |
esac |
| 11976 |
> |
|
| 11977 |
> |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 11978 |
> |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 11979 |
> |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11980 |
> |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 11981 |
> |
X"$ac_file" : 'X\(//\)$' \| \ |
| 11982 |
> |
X"$ac_file" : 'X\(/\)' \| \ |
| 11983 |
> |
. : '\(.\)' 2>/dev/null || |
| 11984 |
> |
echo X"$ac_file" | |
| 11985 |
> |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 11986 |
> |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 11987 |
> |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 11988 |
> |
/^X\(\/\).*/{ s//\1/; q; } |
| 11989 |
> |
s/.*/./; q'` |
| 11990 |
> |
{ if $as_mkdir_p; then |
| 11991 |
> |
mkdir -p "$ac_dir" |
| 11992 |
> |
else |
| 11993 |
> |
as_dir="$ac_dir" |
| 11994 |
> |
as_dirs= |
| 11995 |
> |
while test ! -d "$as_dir"; do |
| 11996 |
> |
as_dirs="$as_dir $as_dirs" |
| 11997 |
> |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 11998 |
> |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11999 |
> |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 12000 |
> |
X"$as_dir" : 'X\(//\)$' \| \ |
| 12001 |
> |
X"$as_dir" : 'X\(/\)' \| \ |
| 12002 |
> |
. : '\(.\)' 2>/dev/null || |
| 12003 |
> |
echo X"$as_dir" | |
| 12004 |
> |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 12005 |
> |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 12006 |
> |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 12007 |
> |
/^X\(\/\).*/{ s//\1/; q; } |
| 12008 |
> |
s/.*/./; q'` |
| 12009 |
> |
done |
| 12010 |
> |
test ! -n "$as_dirs" || mkdir $as_dirs |
| 12011 |
> |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 12012 |
> |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 12013 |
> |
{ (exit 1); exit 1; }; }; } |
| 12014 |
> |
|
| 12015 |
> |
ac_builddir=. |
| 12016 |
> |
|
| 12017 |
> |
if test "$ac_dir" != .; then |
| 12018 |
> |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 12019 |
> |
# A "../" for each directory in $ac_dir_suffix. |
| 12020 |
> |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 12021 |
> |
else |
| 12022 |
> |
ac_dir_suffix= ac_top_builddir= |
| 12023 |
> |
fi |
| 12024 |
> |
|
| 12025 |
> |
case $srcdir in |
| 12026 |
> |
.) # No --srcdir option. We are building in place. |
| 12027 |
> |
ac_srcdir=. |
| 12028 |
> |
if test -z "$ac_top_builddir"; then |
| 12029 |
> |
ac_top_srcdir=. |
| 12030 |
> |
else |
| 12031 |
> |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 12032 |
> |
fi ;; |
| 12033 |
> |
[\\/]* | ?:[\\/]* ) # Absolute path. |
| 12034 |
> |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 12035 |
> |
ac_top_srcdir=$srcdir ;; |
| 12036 |
> |
*) # Relative path. |
| 12037 |
> |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 12038 |
> |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 12039 |
> |
esac |
| 12040 |
> |
|
| 12041 |
> |
# Do not use `cd foo && pwd` to compute absolute paths, because |
| 12042 |
> |
# the directories may not exist. |
| 12043 |
> |
case `pwd` in |
| 12044 |
> |
.) ac_abs_builddir="$ac_dir";; |
| 12045 |
> |
*) |
| 12046 |
> |
case "$ac_dir" in |
| 12047 |
> |
.) ac_abs_builddir=`pwd`;; |
| 12048 |
> |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 12049 |
> |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 12050 |
> |
esac;; |
| 12051 |
> |
esac |
| 12052 |
> |
case $ac_abs_builddir in |
| 12053 |
> |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 12054 |
> |
*) |
| 12055 |
> |
case ${ac_top_builddir}. in |
| 12056 |
> |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
| 12057 |
> |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 12058 |
> |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 12059 |
> |
esac;; |
| 12060 |
> |
esac |
| 12061 |
> |
case $ac_abs_builddir in |
| 12062 |
> |
.) ac_abs_srcdir=$ac_srcdir;; |
| 12063 |
> |
*) |
| 12064 |
> |
case $ac_srcdir in |
| 12065 |
> |
.) ac_abs_srcdir=$ac_abs_builddir;; |
| 12066 |
> |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 12067 |
> |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 12068 |
> |
esac;; |
| 12069 |
> |
esac |
| 12070 |
> |
case $ac_abs_builddir in |
| 12071 |
> |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 12072 |
> |
*) |
| 12073 |
> |
case $ac_top_srcdir in |
| 12074 |
> |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 12075 |
> |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 12076 |
> |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 12077 |
> |
esac;; |
| 12078 |
> |
esac |
| 12079 |
> |
|
| 12080 |
> |
|
| 12081 |
> |
case $INSTALL in |
| 12082 |
> |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 12083 |
> |
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 12084 |
> |
esac |
| 12085 |
> |
|
| 12086 |
> |
if test x"$ac_file" != x-; then |
| 12087 |
> |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 12088 |
> |
echo "$as_me: creating $ac_file" >&6;} |
| 12089 |
> |
rm -f "$ac_file" |
| 12090 |
> |
fi |
| 12091 |
> |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12092 |
> |
# use $as_me), people would be surprised to read: |
| 12093 |
> |
# /* config.h. Generated by config.status. */ |
| 12094 |
> |
if test x"$ac_file" = x-; then |
| 12095 |
> |
configure_input= |
| 12096 |
> |
else |
| 12097 |
> |
configure_input="$ac_file. " |
| 12098 |
> |
fi |
| 12099 |
> |
configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 12100 |
> |
sed 's,.*/,,'` by configure." |
| 12101 |
> |
|
| 12102 |
> |
# First look for the input files in the build tree, otherwise in the |
| 12103 |
> |
# src tree. |
| 12104 |
> |
ac_file_inputs=`IFS=: |
| 12105 |
> |
for f in $ac_file_in; do |
| 12106 |
> |
case $f in |
| 12107 |
> |
-) echo $tmp/stdin ;; |
| 12108 |
> |
[\\/$]*) |
| 12109 |
> |
# Absolute (can't be DOS-style, as IFS=:) |
| 12110 |
> |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 12111 |
> |
echo "$as_me: error: cannot find input file: $f" >&2;} |
| 12112 |
> |
{ (exit 1); exit 1; }; } |
| 12113 |
> |
echo "$f";; |
| 12114 |
> |
*) # Relative |
| 12115 |
> |
if test -f "$f"; then |
| 12116 |
> |
# Build tree |
| 12117 |
> |
echo "$f" |
| 12118 |
> |
elif test -f "$srcdir/$f"; then |
| 12119 |
> |
# Source tree |
| 12120 |
> |
echo "$srcdir/$f" |
| 12121 |
> |
else |
| 12122 |
> |
# /dev/null tree |
| 12123 |
> |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 12124 |
> |
echo "$as_me: error: cannot find input file: $f" >&2;} |
| 12125 |
> |
{ (exit 1); exit 1; }; } |
| 12126 |
> |
fi;; |
| 12127 |
> |
esac |
| 12128 |
> |
done` || { (exit 1); exit 1; } |
| 12129 |
> |
_ACEOF |
| 12130 |
> |
cat >>$CONFIG_STATUS <<_ACEOF |
| 12131 |
> |
sed "$ac_vpsub |
| 12132 |
> |
$extrasub |
| 12133 |
> |
_ACEOF |
| 12134 |
> |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 12135 |
> |
:t |
| 12136 |
> |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 12137 |
> |
s,@configure_input@,$configure_input,;t t |
| 12138 |
> |
s,@srcdir@,$ac_srcdir,;t t |
| 12139 |
> |
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 12140 |
> |
s,@top_srcdir@,$ac_top_srcdir,;t t |
| 12141 |
> |
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 12142 |
> |
s,@builddir@,$ac_builddir,;t t |
| 12143 |
> |
s,@abs_builddir@,$ac_abs_builddir,;t t |
| 12144 |
> |
s,@top_builddir@,$ac_top_builddir,;t t |
| 12145 |
> |
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 12146 |
> |
s,@INSTALL@,$ac_INSTALL,;t t |
| 12147 |
> |
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 12148 |
> |
rm -f $tmp/stdin |
| 12149 |
> |
if test x"$ac_file" != x-; then |
| 12150 |
> |
mv $tmp/out $ac_file |
| 12151 |
> |
else |
| 12152 |
> |
cat $tmp/out |
| 12153 |
> |
rm -f $tmp/out |
| 12154 |
> |
fi |
| 12155 |
> |
|
| 12156 |
> |
# Run the commands associated with the file. |
| 12157 |
> |
case $ac_file in |
| 12158 |
> |
make/Makefile ) chmod 0755 scripts/* ;; |
| 12159 |
> |
src/utils/Makefile ) chmod 0755 scripts/* ;; |
| 12160 |
> |
src/applications/nanoRodBuilder/Makefile ) chmod 0755 scripts/* ;; |
| 12161 |
> |
scripts/filepp ) chmod 0755 scripts/* ;; |
| 12162 |
> |
esac |
| 12163 |
|
done |
| 12164 |
|
_ACEOF |
| 12165 |
|
cat >>$CONFIG_STATUS <<\_ACEOF |